Home
last modified time | relevance | path

Searched refs:pi (Results 1 – 25 of 185) sorted by relevance

12345678

/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/
H A Dmain.c657 for (pi = phyints; pi != NULL; pi = pi->pi_next) { in initifs()
689 for (pi = phyints; pi != NULL; pi = next_pi) { in initifs()
967 for (pi = phyints; pi != NULL; pi = pi->pi_next) { in check_daemonize()
982 for (pi = phyints; pi != NULL; pi = pi->pi_next) { in check_daemonize()
1233 for (pi = phyints; pi != NULL; pi = next_pi) { in run_timeouts()
1367 for (pi = phyints; pi != NULL; pi = next_pi) { in in_signal()
1399 for (pi = phyints; pi != NULL; pi = next_pi) { in in_signal()
1736 for (pi = phyints; pi != NULL; pi = pi->pi_next) { in process_mibsock()
2082 for (pi = phyints; pi != NULL; pi = pi->pi_next) { in main()
2484 pi->pi_stateless = pi->pi_StatelessAddrConf; in ndpd_delete_addrs()
[all …]
H A Dtables.c68 for (pi = phyints; pi != NULL; pi = pi->pi_next) { in phyint_lookup()
83 for (pi = phyints; pi != NULL; pi = pi->pi_next) { in phyint_lookup_on_index()
311 pi->pi_LinkMTU = pi->pi_mtu; in phyint_init_from_k()
505 pi->pi_next = pi->pi_prev = NULL; in phyint_delete()
581 pi->pi_name, pi->pi_index, pi->pi_state, pi->pi_kernel_state, in phyint_print()
612 pi->pi_sol_time_left, pi->pi_sol_state, pi->pi_sol_count); in phyint_print()
617 pi->pi_adv_time_left, pi->pi_adv_state, pi->pi_adv_count, in phyint_print()
739 for (pi = phyints; pi != NULL; pi = pi->pi_next) { in tmptoken_isvalid()
795 pi->pi_name, pi->pi_name); in tmptoken_create()
1108 for (pi = phyints; pi != NULL; pi = pi->pi_next) { in prefix_lookup_addr_match()
[all …]
H A Dndp.c176 pi->pi_name); in in_data()
230 pi->pi_name); in in_data()
329 pi->pi_ra_flags &= in dhcp_op()
464 pi->pi_CurHopLimit, pi->pi_name, in incoming_ra()
515 if (pi->pi_autoconf && pi->pi_stateful && in incoming_ra()
523 pi->pi_name); in incoming_ra()
526 start_dhcp(pi); in incoming_ra()
619 pi->pi_stateless && pi->pi_autoconf) { in incoming_prefix_opt()
626 if (pi->pi_stateful && pi->pi_autoconf) in incoming_prefix_opt()
963 pi->pi_TmpPreferredLifetime - pi->pi_TmpDesyncFactor; in incoming_prefix_addrconf_process()
[all …]
H A Dtables.h257 extern int phyint_init_from_k(struct phyint *pi);
258 extern void phyint_delete(struct phyint *pi);
262 extern void phyint_reach_random(struct phyint *pi,
264 extern void phyint_cleanup(struct phyint *pi);
266 extern boolean_t tmptoken_create(struct phyint *pi);
267 extern void tmptoken_delete(struct phyint *pi);
301 extern void check_to_solicit(struct phyint *pi,
308 extern void print_route_sol(char *str, struct phyint *pi,
317 extern void in_data(struct phyint *pi);
319 extern void start_dhcp(struct phyint *pi);
[all …]
/illumos-gate/usr/src/cmd/bhyve/
H A Dpci_emul.c562 (*pe->pe_baraddr)(pi->pi_vmctx, pi, idx, registration, in modify_bar_registration()
580 (*pe->pe_baraddr)(pi->pi_vmctx, pi, idx, registration, in modify_bar_registration()
586 (*pe->pe_baraddr)(pi->pi_vmctx, pi, idx, registration, in modify_bar_registration()
941 pci_set_cfgdata8(pi, pi->pi_prevcap + 1, capoff); in pci_emul_add_capability()
1669 if (pi != NULL && pi->pi_d->pe_write_dsdt != NULL) in pci_bus_write_dsdt()
1670 pi->pi_d->pe_write_dsdt(pi); in pci_bus_write_dsdt()
1724 return (pi->pi_msix.enabled && !pi->pi_msi.enabled); in pci_msix_enabled()
1753 vm_lapic_msi(pi->pi_vmctx, pi->pi_msi.addr, in pci_generate_msi()
1878 pi->pi_d->pe_lintrupdate(pi); in pci_lintr_update()
2200 if (memen(pi) && romen(pi)) { in pci_cfgrw()
[all …]
H A Dpci_passthru.c115 pi.pci_off = reg; in passthru_read_config()
130 pi.pci_off = reg; in passthru_write_config()
132 pi.pci_data = data; in passthru_write_config()
330 pi->pi_msix.pba_size = PBA_SIZE(pi->pi_msix.table_count); in cfginitmsi()
381 pi = sc->psc_pi; in msix_table_read()
455 pi = sc->psc_pi; in msix_table_write()
776 pi->pi_arg = sc; in passthru_init()
777 sc->psc_pi = pi; in passthru_init()
845 sc = pi->pi_arg; in passthru_cfgread()
899 sc = pi->pi_arg; in passthru_cfgwrite()
[all …]
H A Dpci_emul.h69 struct pci_devinst *pi, int offset,
72 struct pci_devinst *pi, int offset,
77 struct pci_devinst *pi, int baridx,
80 struct pci_devinst *pi, int baridx,
86 void (*pe_lintrupdate)(struct pci_devinst *pi);
248 void pci_lintr_assert(struct pci_devinst *pi);
251 int pci_msi_enabled(struct pci_devinst *pi);
252 int pci_msix_enabled(struct pci_devinst *pi);
254 int pci_msix_pba_bar(struct pci_devinst *pi);
255 int pci_msi_maxmsgnum(struct pci_devinst *pi);
[all …]
H A Dpci_uart.c55 struct pci_devinst *pi = arg; in pci_uart_intr_assert() local
57 pci_lintr_assert(pi); in pci_uart_intr_assert()
63 struct pci_devinst *pi = arg; in pci_uart_intr_deassert() local
65 pci_lintr_deassert(pi); in pci_uart_intr_deassert()
76 uart_write(pi->pi_arg, offset, value); in pci_uart_write()
88 val = uart_read(pi->pi_arg, offset); in pci_uart_read()
108 pci_lintr_request(pi); in pci_uart_init()
111 pci_set_cfgdata16(pi, PCIR_DEVICE, COM_DEV); in pci_uart_init()
112 pci_set_cfgdata16(pi, PCIR_VENDOR, COM_VENDOR); in pci_uart_init()
116 pi->pi_arg = sc; in pci_uart_init()
[all …]
H A Dpci_virtio_viona.c140 if (pci_msix_enabled(pi)) { in pci_viona_iosize()
411 pi->pi_arg = sc; in pci_viona_init()
412 sc->vsc_pi = pi; in pci_viona_init()
489 pci_lintr_request(pi); in pci_viona_init()
501 if (!pci_msix_enabled(pi)) { in viona_adjust_offset()
528 mte = pi->pi_msix.table[tab_index]; in pci_viona_ring_set_msix()
548 msix_on = pci_msix_enabled(pi) && (pi->pi_msix.function_mask == 0); in pci_viona_lintrupdate()
556 pci_viona_ring_set_msix(pi, i); in pci_viona_lintrupdate()
586 pci_viona_ring_set_msix(pi, i); in pci_viona_msix_update()
656 pci_viona_msix_update(pi, offset); in pci_viona_write()
[all …]
H A Dpci_irq.c156 pci_irq_assert(struct pci_devinst *pi) in pci_irq_assert() argument
160 if (pi->pi_lintr.pirq_pin > 0) { in pci_irq_assert()
167 pi->pi_lintr.ioapic_irq); in pci_irq_assert()
173 vm_ioapic_assert_irq(pi->pi_vmctx, pi->pi_lintr.ioapic_irq); in pci_irq_assert()
177 pci_irq_deassert(struct pci_devinst *pi) in pci_irq_deassert() argument
181 if (pi->pi_lintr.pirq_pin > 0) { in pci_irq_deassert()
188 pi->pi_lintr.ioapic_irq); in pci_irq_deassert()
194 vm_ioapic_deassert_irq(pi->pi_vmctx, pi->pi_lintr.ioapic_irq); in pci_irq_deassert()
198 pirq_alloc_pin(struct pci_devinst *pi) in pirq_alloc_pin() argument
200 struct vmctx *ctx = pi->pi_vmctx; in pirq_alloc_pin()
[all …]
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/
H A Dt4_mac.c579 if (pi->adapter->props.multi_rings && pi->macaddr_cnt) { in t4_mc_unicst()
613 pi->macaddr_cnt--; in t4_remmac()
782 rxq = &pi->adapter->sge.rxq[pi->first_rxq + ring_index]; in t4_fill_ring()
1148 pi->mtu = v32; in t4_mc_setprop()
1555 rc = t4_change_mac(sc, sc->mbox, pi->viid, pi->xact_addr_filt, in t4_init_synchronized()
1556 pi->hw_addr, true, &pi->smt_idx); in t4_init_synchronized()
1565 rc = -t4_link_l1cfg(sc, sc->mbox, pi->tx_chan, &pi->link_cfg, in t4_init_synchronized()
1660 v = pi->tmr_idx; in getprop()
1673 v = pi->mtu; in getprop()
1702 pi->tmr_idx = v; in setprop()
[all …]
H A Dadapter.h87 #define IS_DOOMED(pi) (pi->flags & DOOMED) argument
88 #define SET_DOOMED(pi) do { pi->flags |= DOOMED; } while (0) argument
598 #define PORT_LOCK(pi) mutex_enter(&(pi)->lock) argument
599 #define PORT_UNLOCK(pi) mutex_exit(&(pi)->lock) argument
600 #define PORT_LOCK_ASSERT_OWNED(pi) ASSERT(mutex_owned(&(pi)->lock)) argument
634 txq = &pi->adapter->sge.txq[pi->first_txq]; \
637 rxq = &pi->adapter->sge.rxq[pi->first_rxq]; \
640 ofld_txq = &pi->adapter->sge.ofld_txq[pi->first_ofld_txq]; \
643 ofld_rxq = &pi->adapter->sge.ofld_rxq[pi->first_ofld_rxq]; \
800 return (is_10G_port(pi) || is_40G_port(pi) || in is_10XG_port()
[all …]
H A Dt4_nexus.c531 pi = kmem_zalloc(sizeof (*pi), KM_SLEEP); in t4_devo_attach()
655 pi->nrxq = (is_10XG_port(pi)) ? iaq.nrxq10g in t4_devo_attach()
660 pi->ntxq = (is_10XG_port(pi)) ? iaq.ntxq10g in t4_devo_attach()
670 pi->nofldrxq = max(1, pi->nrxq / 4); in t4_devo_attach()
674 pi->nofldtxq = max(1, pi->ntxq / 2); in t4_devo_attach()
741 pi->nofldrxq > pi->nrxq) in t4_devo_attach()
846 if (pi && pi->flags & PORT_INIT_DONE) in t4_devo_detach()
913 kmem_free(pi, sizeof (*pi)); in t4_devo_detach()
2383 (void) ddi_set_parent_data(pi->dip, pi);
2421 if (!pi)
[all …]
H A Dt4_sge.c429 idx %= pi->nrxq + pi->nofldrxq; in port_intr_iq()
438 idx %= max(pi->nrxq, pi->nofldrxq); in port_intr_iq()
440 if (pi->nrxq >= pi->nofldrxq) in port_intr_iq()
474 pi->ksp_config = setup_port_config_kstats(pi); in t4_setup_port_queues()
475 pi->ksp_info = setup_port_info_kstats(pi); in t4_setup_port_queues()
495 || (sc->intr_count > 1 && pi->nrxq >= pi->nofldrxq) in t4_setup_port_queues()
512 init_iq(&ofld_rxq->iq, sc, pi->tmr_idx, pi->pktc_idx, in t4_setup_port_queues()
518 (sc->intr_count > 1 && pi->nofldrxq > pi->nrxq)) { in t4_setup_port_queues()
1495 dip = pi ? pi->dip : sc->dip; in free_iq_fl()
1597 t4_get_tp_ch_map(pi->adapter, pi->tx_chan)); in alloc_rxq()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/
H A Dmpd_tables.c97 for (pi = phyints; pi != NULL; pi = pi->pi_next) { in phyint_lookup()
335 pi->pi_pgnext->pi_pgprev = pi; in phyint_insert()
1151 for (pi = pg->pg_phyint; pi != NULL; pi = pi->pi_pgnext) { in phyint_group_refresh_state()
1302 pi->pi_v4->pii_flags = pi->pi_flags; in phyint_inst_update_from_k()
1370 pi->pi_prev->pi_next = pi->pi_next; in phyint_delete()
1373 pi->pi_next->pi_prev = pi->pi_prev; in phyint_delete()
2519 for (pi = pg->pg_phyint; pi != NULL; pi = pi->pi_pgnext) { in target_flush_hosts()
3197 for (pi = pg->pg_phyint; pi != NULL; pi = pi->pi_pgnext) in getgroupinfo()
3201 for (i = 0, pi = pg->pg_phyint; pi != NULL; pi = pi->pi_pgnext, i++) { in getgroupinfo()
3322 ifstate(pi), iftype(pi), iflinkstate(pi), ifprobestate(pi), in getifinfo()
[all …]
H A Dmpd_probe.c1033 for (pi = pg->pg_phyint; pi != NULL; pi = pi->pi_pgnext) { in check_pg_crtt_improved()
1178 pi = pi->pi_group->pg_phyint; in incoming_mcast_reply()
1179 for (; pi != NULL; pi = pi->pi_pgnext) in incoming_mcast_reply()
1502 pi->pi_name, pi->pi_group->pg_name); in phyint_check_for_repair()
1620 if (pi->pi_state == PI_FAILED && LINK_UP(pi)) { in phyint_inst_timer()
1621 check_time = pi->pi_whenup[pi->pi_whendx] + MSEC_PERMIN; in phyint_inst_timer()
1981 pi->pi_whenup[pi->pi_whendx++] = getcurrenttime(); in process_link_state_up()
1996 for (pi = phyints; pi != NULL; pi = pi->pi_next) { in process_link_state_changes()
2547 if ((pi->pi_whenup[pi->pi_whendx] == 0 || in phyint_repaired()
2641 pi->pi_v4->pii_flags = pi->pi_flags; in change_pif_flags()
[all …]
H A Dmpd_tables.h76 #define PHYINT_INSTANCE(pi, af) \ argument
77 ((af) == AF_INET ? (pi)->pi_v4 : (pi)->pi_v6)
127 #define LINK_DOWN(pi) ((pi)->pi_link_state == 0) argument
128 #define LINK_UP(pi) (!LINK_DOWN(pi)) argument
129 #define FLAGS_TO_LINK_STATE(pi) (((pi)->pi_flags & IFF_RUNNING) != 0) argument
130 #define UPDATE_LINK_STATE(pi) ((pi)->pi_link_state = \ argument
131 FLAGS_TO_LINK_STATE(pi) ? 1 : 0)
132 #define INIT_LINK_STATE(pi) ((pi)->pi_link_state = 1) argument
421 extern void phyint_changed(struct phyint *pi);
460 extern void reset_crtt_all(struct phyint *pi);
[all …]
H A Dmpd_main.c508 for (pi = pg->pg_phyint; pi != NULL; pi = pi->pi_pgnext) { in check_addr_unique()
767 for (pi = phyints; pi != NULL; pi = pi->pi_next) { in select_test_ifs()
802 for (pi = phyints; pi != NULL; pi = pi->pi_next) { in check_testconfig()
886 for (pi = pg->pg_phyint; pi != NULL; pi = pi->pi_pgnext) { in check_config()
898 for (pi = pg->pg_phyint; pi != NULL; pi = pi->pi_pgnext) { in check_config()
932 pi->pi_name, pi->pi_group->pg_name); in check_config()
1400 pii = (type == AF_INET) ? pi->pi_v4 : pi->pi_v6; in process_rtm_ifinfo()
1690 pi = pi->pi_group->pg_phyint; in router_add_common()
1691 for (; pi != NULL; pi = pi->pi_pgnext) in router_add_common()
1851 for (pi = desired_pii->pii_phyint; pi != NULL; pi = pi->pi_pgnext) { in dup_host_targets()
[all …]
/illumos-gate/usr/src/boot/common/
H A Dpnp.c35 struct pnpinfo *pi; in pnp_scan() local
91 struct pnpinfo *pi; in pnp_discard() local
96 pnp_freeinfo(pi); in pnp_discard()
128 return(pi); in pnp_allocinfo()
145 if (pi->pi_desc) in pnp_freeinfo()
146 free(pi->pi_desc); in pnp_freeinfo()
147 if (pi->pi_module) in pnp_freeinfo()
148 free(pi->pi_module); in pnp_freeinfo()
149 if (pi->pi_argv) in pnp_freeinfo()
150 free(pi->pi_argv); in pnp_freeinfo()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/
H A Din.rdisc.c620 for (pi = phyint; pi != NULL; pi = pi->pi_next) { in advertise()
1136 for (pi = phyint; pi != NULL; pi = pi->pi_next) { in sendbcast()
1205 for (pi = phyint; pi != NULL; pi = pi->pi_next) { in sendmcast()
1287 for (pi = phyint; pi != NULL; pi = pi->pi_next) { in force_preference()
1321 for (pi = phyint; pi != NULL; pi = pi->pi_next) { in initifs()
1472 for (pi = phyint; pi != NULL; pi = pi->pi_next) { in initifs()
1490 for (pi = phyint; pi != NULL; pi = pi->pi_next) { in initifs()
1510 for (pi = phyint; pi != NULL; pi = nextpi) { in initifs()
1641 for (; pi != NULL; pi = pi->pi_next) { in find_directly_connected_logint()
1670 for (pi = phyint; pi != NULL; pi = pi->pi_next) { in report_interfaces()
[all …]
/illumos-gate/usr/src/uts/common/io/cxgbe/cxgbe/
H A Dcxgbe.c130 if (pi == NULL) in cxgbe_devo_attach()
136 ddi_driver_name(pi->dip), ddi_get_instance(pi->dip), in cxgbe_devo_attach()
142 mac->m_driver = pi; in cxgbe_devo_attach()
146 mac->m_max_sdu = pi->mtu; in cxgbe_devo_attach()
152 ddi_driver_name(pi->dip), ddi_get_instance(pi->dip)); in cxgbe_devo_attach()
156 ddi_driver_name(pi->dip), ddi_get_instance(pi->dip)); in cxgbe_devo_attach()
161 ddi_driver_name(pi->dip), ddi_get_instance(pi->dip), in cxgbe_devo_attach()
165 pi->mh = mh; in cxgbe_devo_attach()
190 if (pi == NULL) in cxgbe_devo_detach()
193 mh = pi->mh; in cxgbe_devo_detach()
[all …]
/illumos-gate/usr/src/test/util-tests/tests/smbios/
H A Dsmbios_test_pinfo.c36 smb_processor_info_t pi; in smbios_test_pinfo_mktable_amd64() local
41 pi.smbpai_len = 0; in smbios_test_pinfo_mktable_amd64()
44 (void) smbios_test_table_append(table, &pi, sizeof (pi)); in smbios_test_pinfo_mktable_amd64()
107 smb_processor_info_t pi; in smbios_test_pinfo_mktable_riscv() local
117 (void) smbios_test_table_append(table, &pi, sizeof (pi)); in smbios_test_pinfo_mktable_riscv()
378 pi.smbpai_len = 0; in smbios_test_pinfo_mktable_invlen1()
381 (void) smbios_test_table_append(table, &pi, sizeof (pi)); in smbios_test_pinfo_mktable_invlen1()
403 (void) smbios_test_table_append(table, &pi, sizeof (pi)); in smbios_test_pinfo_mktable_invlen2()
428 pi.smbpai_len = 0; in smbios_test_pinfo_mktable_invlen3()
431 (void) smbios_test_table_append(table, &pi, sizeof (pi)); in smbios_test_pinfo_mktable_invlen3()
[all …]
/illumos-gate/usr/src/cmd/troff/troff.d/
H A Dt10.c286 ptout0(pi) in ptout0() argument
287 tchar *pi; in ptout0()
295 i = *pi;
319 pi++;
320 while( cbits(*pi) != XOFF && pi < olinep )
321 outascii(*pi++);
324 pi++;
325 return pi;
396 if (isnmot(pi[3]))
399 if (isnmot(pi[4]))
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/
H A Dpcibus_hba.c71 di_node_t cn, int instance, di_path_t pi) in pci_scsi_device_create() argument
88 if (pi != NULL) { in pci_scsi_device_create()
97 if (di_path_prop_lookup_int64s(pi, in pci_scsi_device_create()
194 di_path_t pi; in pci_iports_instantiate() local
220 for (pi = di_path_phci_next_path(cn, DI_PATH_NIL); in pci_iports_instantiate()
221 pi != DI_PATH_NIL; pi = di_path_phci_next_path(cn, pi)) in pci_iports_instantiate()
222 if (di_path_client_node(pi) != NULL && in pci_iports_instantiate()
223 strcmp(di_node_name(di_path_client_node(pi)), in pci_iports_instantiate()
234 pi != DI_PATH_NIL; pi = di_path_phci_next_path(cn, pi)) in pci_iports_instantiate()
235 if (di_path_client_node(pi) != NULL && in pci_iports_instantiate()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/
H A Dinetd.c840 for (pi = uu_list_first(cfg->proto_list); pi != NULL; in poll_bound_fds()
841 pi = uu_list_next(cfg->proto_list, pi)) { in poll_bound_fds()
893 pi = uu_list_next(cfg->proto_list, pi)) { in handle_bind_failure()
1046 pi = uu_list_next(cfg->proto_list, pi)) { in is_rpc_num_in_use()
1086 for (pi = uu_list_first(cfg->proto_list); pi != NULL; in create_bound_fds()
1087 pi = uu_list_next(cfg->proto_list, pi)) { in create_bound_fds()
1118 if (is_rpc_num_in_use(pi->ri->prognum, pi->proto, in create_bound_fds()
1119 pi->ri->lowver, pi->ri->highver)) { in create_bound_fds()
1195 pi = uu_list_next(cfg->proto_list, pi)) { in destroy_bound_fds()
2206 pi = uu_list_next(cfg->proto_list, pi)) { in process_start_term()
[all …]

12345678