Home
last modified time | relevance | path

Searched refs:pi (Results 1 – 25 of 188) 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()
2485 pi->pi_stateless = pi->pi_StatelessAddrConf; in ndpd_delete_addrs()
[all …]
H A Dtables.c70 for (pi = phyints; pi != NULL; pi = pi->pi_next) { in phyint_lookup()
85 for (pi = phyints; pi != NULL; pi = pi->pi_next) { in phyint_lookup_on_index()
313 pi->pi_LinkMTU = pi->pi_mtu; in phyint_init_from_k()
507 pi->pi_next = pi->pi_prev = NULL; in phyint_delete()
583 pi->pi_name, pi->pi_index, pi->pi_state, pi->pi_kernel_state, in phyint_print()
614 pi->pi_sol_time_left, pi->pi_sol_state, pi->pi_sol_count); in phyint_print()
619 pi->pi_adv_time_left, pi->pi_adv_state, pi->pi_adv_count, in phyint_print()
741 for (pi = phyints; pi != NULL; pi = pi->pi_next) { in tmptoken_isvalid()
797 pi->pi_name, pi->pi_name); in tmptoken_create()
1110 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/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/cmd/bhyve/
H A Dpci_emul.c1039 pci_set_cfgdata8(pi, pi->pi_prevcap + 1, capoff); in pci_emul_add_capability()
1797 if (pi != NULL && pi->pi_d->pe_write_dsdt != NULL) in pci_bus_write_dsdt()
1798 pi->pi_d->pe_write_dsdt(pi); in pci_bus_write_dsdt()
1852 return (pi->pi_msix.enabled && !pi->pi_msi.enabled); in pci_msix_enabled()
1881 vm_lapic_msi(pi->pi_vmctx, pi->pi_msi.addr, in pci_generate_msi()
1892 return (!(pi->pi_msi.enabled || pi->pi_msix.enabled || in pci_lintr_permitted()
2006 pi->pi_d->pe_lintrupdate(pi); in pci_lintr_update()
2204 pi = NULL; in pci_cfgrw()
2323 if (memen(pi) && romen(pi)) { in pci_cfgrw()
2330 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()
314 pi->pi_msix.pba_size = PBA_SIZE(pi->pi_msix.table_count); in cfginitmsi()
365 pi = sc->psc_pi; in msix_table_read()
439 pi = sc->psc_pi; in msix_table_write()
806 pi->pi_arg = sc; in passthru_init()
807 sc->psc_pi = pi; in passthru_init()
920 sc = pi->pi_arg; in passthru_cfgread()
943 pi->pi_msi.addr, pi->pi_msi.msg_data, pi->pi_msi.maxmsgnum); in passthru_cfgwrite_default()
[all …]
H A Dpci_emul.h77 void (*pe_baraddr)(struct pci_devinst *pi,
80 void (*pe_lintrupdate)(struct pci_devinst *pi);
245 void pci_lintr_assert(struct pci_devinst *pi);
247 void pci_lintr_request(struct pci_devinst *pi);
248 int pci_msi_enabled(struct pci_devinst *pi);
249 int pci_msix_enabled(struct pci_devinst *pi);
251 int pci_msix_pba_bar(struct pci_devinst *pi);
252 int pci_msi_maxmsgnum(struct pci_devinst *pi);
271 *(uint8_t *)(pi->pi_cfgdata + offset) = val; in pci_set_cfgdata8()
278 *(uint16_t *)(pi->pi_cfgdata + offset) = val; in pci_set_cfgdata16()
[all …]
H A Dpci_uart.c52 struct pci_devinst *pi = arg; in pci_uart_intr_assert() local
54 pci_lintr_assert(pi); in pci_uart_intr_assert()
60 struct pci_devinst *pi = arg; in pci_uart_intr_deassert() local
62 pci_lintr_deassert(pi); in pci_uart_intr_deassert()
72 uart_write(pi->pi_arg, offset, value); in pci_uart_write()
83 val = uart_read(pi->pi_arg, offset); in pci_uart_read()
103 pci_lintr_request(pi); in pci_uart_init()
106 pci_set_cfgdata16(pi, PCIR_DEVICE, COM_DEV); in pci_uart_init()
107 pci_set_cfgdata16(pi, PCIR_VENDOR, COM_VENDOR); in pci_uart_init()
111 pi->pi_arg = sc; in pci_uart_init()
[all …]
H A Dpci_virtio_viona.c183 pci_viona_iosize(struct pci_devinst *pi) in pci_viona_iosize() argument
185 if (pci_msix_enabled(pi)) { in pci_viona_iosize()
811 pci_lintr_request(pi); in pci_viona_init()
823 if (!pci_msix_enabled(pi)) { in viona_adjust_offset()
853 mte = pi->pi_msix.table[tab_index]; in pci_viona_ring_set_msix()
873 msix_on = pci_msix_enabled(pi) && (pi->pi_msix.function_mask == 0); in pci_viona_lintrupdate()
881 pci_viona_ring_set_msix(pi, i); in pci_viona_lintrupdate()
911 pci_viona_ring_set_msix(pi, i); in pci_viona_msix_update()
981 baridx == pci_msix_pba_bar(pi)) { in pci_viona_write()
983 pci_viona_msix_update(pi, offset); in pci_viona_write()
[all …]
H A Dpci_irq.c157 pci_irq_assert(struct pci_devinst *pi) in pci_irq_assert() argument
162 pin = pi->pi_lintr.pirq_pin; in pci_irq_assert()
170 pi->pi_lintr.ioapic_irq); in pci_irq_assert()
176 vm_ioapic_assert_irq(pi->pi_vmctx, pi->pi_lintr.ioapic_irq); in pci_irq_assert()
180 pci_irq_deassert(struct pci_devinst *pi) in pci_irq_deassert() argument
185 pin = pi->pi_lintr.pirq_pin; in pci_irq_deassert()
193 pi->pi_lintr.ioapic_irq); in pci_irq_deassert()
199 vm_ioapic_deassert_irq(pi->pi_vmctx, pi->pi_lintr.ioapic_irq); in pci_irq_deassert()
203 pirq_alloc_pin(struct pci_devinst *pi) in pirq_alloc_pin() argument
205 struct vmctx *ctx = pi->pi_vmctx; in pirq_alloc_pin()
[all …]
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/
H A Dt4_mac.c774 if (pi->adapter->props.multi_rings && pi->macaddr_cnt) { in t4_mc_unicst()
808 pi->macaddr_cnt--; in t4_remmac()
977 rxq = &pi->adapter->sge.rxq[pi->first_rxq + ring_index]; in t4_fill_ring()
1343 pi->mtu = v32; in t4_mc_setprop()
1754 rc = t4_change_mac(sc, sc->mbox, pi->viid, pi->xact_addr_filt, in t4_init_synchronized()
1755 pi->hw_addr, true, &pi->smt_idx); in t4_init_synchronized()
1764 rc = -t4_link_l1cfg(sc, sc->mbox, pi->tx_chan, &pi->link_cfg, in t4_init_synchronized()
1859 v = pi->tmr_idx; in getprop()
1872 v = pi->mtu; in getprop()
1901 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
599 #define PORT_LOCK(pi) mutex_enter(&(pi)->lock) argument
600 #define PORT_UNLOCK(pi) mutex_exit(&(pi)->lock) argument
601 #define PORT_LOCK_ASSERT_OWNED(pi) ASSERT(mutex_owned(&(pi)->lock)) argument
635 txq = &pi->adapter->sge.txq[pi->first_txq]; \
638 rxq = &pi->adapter->sge.rxq[pi->first_rxq]; \
641 ofld_txq = &pi->adapter->sge.ofld_txq[pi->first_ofld_txq]; \
644 ofld_rxq = &pi->adapter->sge.ofld_rxq[pi->first_ofld_rxq]; \
805 return (is_10G_port(pi) || is_40G_port(pi) || in is_10XG_port()
[all …]
H A Dt4_nexus.c529 pi = kmem_zalloc(sizeof (*pi), KM_SLEEP); in t4_devo_attach()
653 pi->nrxq = (is_10XG_port(pi)) ? iaq.nrxq10g in t4_devo_attach()
658 pi->ntxq = (is_10XG_port(pi)) ? iaq.ntxq10g in t4_devo_attach()
668 pi->nofldrxq = max(1, pi->nrxq / 4); in t4_devo_attach()
672 pi->nofldtxq = max(1, pi->ntxq / 2); in t4_devo_attach()
739 pi->nofldrxq > pi->nrxq) in t4_devo_attach()
844 if (pi && pi->flags & PORT_INIT_DONE) in t4_devo_detach()
911 kmem_free(pi, sizeof (*pi)); in t4_devo_detach()
2388 (void) ddi_set_parent_data(pi->dip, pi);
2832 pi->rss_size, rss, pi->nrxq);
[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/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.c618 for (pi = phyint; pi != NULL; pi = pi->pi_next) { in advertise()
1134 for (pi = phyint; pi != NULL; pi = pi->pi_next) { in sendbcast()
1203 for (pi = phyint; pi != NULL; pi = pi->pi_next) { in sendmcast()
1285 for (pi = phyint; pi != NULL; pi = pi->pi_next) { in force_preference()
1319 for (pi = phyint; pi != NULL; pi = pi->pi_next) { in initifs()
1470 for (pi = phyint; pi != NULL; pi = pi->pi_next) { in initifs()
1488 for (pi = phyint; pi != NULL; pi = pi->pi_next) { in initifs()
1508 for (pi = phyint; pi != NULL; pi = nextpi) { in initifs()
1639 for (; pi != NULL; pi = pi->pi_next) { in find_directly_connected_logint()
1668 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.c284 ptout0(pi) in ptout0() argument
285 tchar *pi; in ptout0()
293 i = *pi;
317 pi++;
318 while( cbits(*pi) != XOFF && pi < olinep )
319 outascii(*pi++);
322 pi++;
323 return pi;
394 if (isnmot(pi[3]))
397 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