Home
last modified time | relevance | path

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

123456

/titanic_50/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/
H A Dmain.c32 static void advertise(struct sockaddr_in6 *sin6, struct phyint *pi,
34 static void solicit(struct sockaddr_in6 *sin6, struct phyint *pi);
36 static void check_if_removed(struct phyint *pi);
37 static void loopback_ra_enqueue(struct phyint *pi,
154 add_opt_lla(struct phyint *pi, struct nd_opt_lla *optp) in add_opt_lla() argument
161 if (phyint_get_lla(pi, &lifr) == -1) in add_opt_lla()
177 solicit(struct sockaddr_in6 *sin6, struct phyint *pi) in solicit() argument
192 packetlen += add_opt_lla(pi, (struct nd_opt_lla *)pptr); in solicit()
195 print_route_sol("Sending solicitation to ", pi, rs, packetlen, in solicit()
198 sendpacket(sin6, pi->pi_sock, packetlen, 0); in solicit()
[all …]
H A Dtables.c35 static void phyint_print(struct phyint *pi);
36 static void phyint_insert(struct phyint *pi);
41 static void prefix_insert(struct phyint *pi, struct prefix *pr);
47 static void adv_prefix_insert(struct phyint *pi, struct adv_prefix *adv_pr);
51 static void router_insert(struct phyint *pi, struct router *dr);
63 struct phyint *pi; in phyint_lookup() local
68 for (pi = phyints; pi != NULL; pi = pi->pi_next) { in phyint_lookup()
69 if (strcmp(pi->pi_name, name) == 0) in phyint_lookup()
72 return (pi); in phyint_lookup()
78 struct phyint *pi; in phyint_lookup_on_index() local
[all …]
H A Dndp.c40 struct phyint *pi, struct sockaddr_in6 *from);
42 static void incoming_rs(struct phyint *pi, struct nd_router_solicit *rs,
45 void incoming_ra(struct phyint *pi, struct nd_router_advert *ra,
47 static void incoming_prefix_opt(struct phyint *pi, uchar_t *opt,
49 static void incoming_prefix_onlink(struct phyint *pi, uchar_t *opt);
53 static boolean_t incoming_prefix_addrconf(struct phyint *pi,
56 boolean_t incoming_prefix_addrconf_process(struct phyint *pi,
60 static void incoming_mtu_opt(struct phyint *pi, uchar_t *opt,
62 static void incoming_lla_opt(struct phyint *pi, uchar_t *opt,
65 static void verify_ra_consistency(struct phyint *pi,
[all …]
H A Dtables.h257 extern int phyint_init_from_k(struct phyint *pi);
258 extern void phyint_delete(struct phyint *pi);
259 extern uint_t phyint_timer(struct phyint *pi, uint_t elapsed);
261 extern int phyint_get_lla(struct phyint *pi, struct lifreq *lifrp);
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);
268 extern uint_t tmptoken_timer(struct phyint *pi, uint_t elapsed);
272 extern struct prefix *prefix_create(struct phyint *pi, struct in6_addr addr,
[all …]
/titanic_50/usr/src/uts/common/io/cxgbe/t4nex/
H A Dt4_mac.c49 static int begin_synchronized_op(struct port_info *pi, int hold, int waitok);
50 static void end_synchronized_op(struct port_info *pi, int held);
51 static int t4_init_synchronized(struct port_info *pi);
52 static int t4_uninit_synchronized(struct port_info *pi);
53 static void propinfo(struct port_info *pi, const char *name,
55 static int getprop(struct port_info *pi, const char *name, uint_t size,
57 static int setprop(struct port_info *pi, const char *name, const void *val);
99 struct port_info *pi = arg; in t4_mc_getstat() local
100 struct adapter *sc = pi->adapter; in t4_mc_getstat()
101 struct link_config *lc = &pi->link_cfg; in t4_mc_getstat()
[all …]
H A Dadapter.h78 #define IS_DOOMED(pi) (pi->flags & DOOMED) argument
79 #define SET_DOOMED(pi) do { pi->flags |= DOOMED; } while (0) argument
514 #define PORT_LOCK(pi) mutex_enter(&(pi)->lock) argument
515 #define PORT_UNLOCK(pi) mutex_exit(&(pi)->lock) argument
516 #define PORT_LOCK_ASSERT_OWNED(pi) ASSERT(mutex_owned(&(pi)->lock)) argument
517 #define PORT_LOCK_ASSERT_NOTOWNED(pi) ASSERT(!mutex_owned(&(pi)->lock)) argument
549 #define for_each_txq(pi, iter, txq) \ argument
550 txq = &pi->adapter->sge.txq[pi->first_txq]; \
551 for (iter = 0; iter < pi->ntxq; ++iter, ++txq)
552 #define for_each_rxq(pi, iter, rxq) \ argument
[all …]
H A Dt4_nexus.c155 static int toe_capability(struct port_info *pi, int enable);
425 struct port_info *pi; in t4_devo_attach() local
427 pi = kmem_zalloc(sizeof (*pi), KM_SLEEP); in t4_devo_attach()
428 sc->port[i] = pi; in t4_devo_attach()
431 pi->adapter = sc; in t4_devo_attach()
433 pi->port_id = i; in t4_devo_attach()
436 rc = -t4_port_init(pi, sc->mbox, sc->pf, 0); in t4_devo_attach()
440 kmem_free(pi, sizeof (*pi)); in t4_devo_attach()
445 mutex_init(&pi->lock, NULL, MUTEX_DRIVER, NULL); in t4_devo_attach()
446 pi->mtu = ETHERMTU; in t4_devo_attach()
[all …]
H A Dt4_sge.c80 static int alloc_iq_fl(struct port_info *pi, struct sge_iq *iq,
82 static int free_iq_fl(struct port_info *pi, struct sge_iq *iq,
87 static int alloc_rxq(struct port_info *pi, struct sge_rxq *rxq, int intr_idx,
89 static int free_rxq(struct port_info *pi, struct sge_rxq *rxq);
91 static int alloc_ofld_rxq(struct port_info *pi, struct sge_ofld_rxq *ofld_rxq,
93 static int free_ofld_rxq(struct port_info *pi, struct sge_ofld_rxq *ofld_rxq);
96 static int eth_eq_alloc(struct adapter *sc, struct port_info *pi,
99 static int ofld_eq_alloc(struct adapter *sc, struct port_info *pi,
102 static int alloc_eq(struct adapter *sc, struct port_info *pi,
105 static int alloc_wrq(struct adapter *sc, struct port_info *pi,
[all …]
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/
H A Dmpd_tables.c46 static void phyint_insert(struct phyint *pi, struct phyint_group *pg);
47 static void phyint_delete(struct phyint *pi);
48 static boolean_t phyint_is_usable(struct phyint *pi);
65 static int phyint_state_event(struct phyint_group *pg, struct phyint *pi);
68 static int phyint_group_member_event(struct phyint_group *pg, struct phyint *pi,
71 static int logint_upcount(struct phyint *pi);
92 struct phyint *pi; in phyint_lookup() local
97 for (pi = phyints; pi != NULL; pi = pi->pi_next) { in phyint_lookup()
98 if (strncmp(pi->pi_name, name, sizeof (pi->pi_name)) == 0) in phyint_lookup()
101 return (pi); in phyint_lookup()
[all …]
H A Dmpd_probe.c78 static boolean_t phyint_repaired(struct phyint *pi);
1024 struct phyint *pi; in check_pg_crtt_improved() local
1033 for (pi = pg->pg_phyint; pi != NULL; pi = pi->pi_pgnext) { in check_pg_crtt_improved()
1034 if (!check_pii_crtt_improved(pi->pi_v4) || in check_pg_crtt_improved()
1035 !check_pii_crtt_improved(pi->pi_v6)) in check_pg_crtt_improved()
1127 struct phyint *pi; in incoming_mcast_reply() local
1174 pi = pii->pii_phyint; in incoming_mcast_reply()
1175 if (pi->pi_group == phyint_anongroup) { in incoming_mcast_reply()
1178 pi = pi->pi_group->pg_phyint; in incoming_mcast_reply()
1179 for (; pi != NULL; pi = pi->pi_pgnext) in incoming_mcast_reply()
[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);
422 extern void phyint_chstate(struct phyint *pi, enum pi_state state);
[all …]
H A Dmpd_main.c480 struct phyint *pi; in check_addr_unique() local
506 for (pi = pg->pg_phyint; pi != NULL; pi = pi->pi_pgnext) { in check_addr_unique()
507 pii = PHYINT_INSTANCE(pi, ss->ss_family); in check_addr_unique()
526 stop_probing(struct phyint *pi) in stop_probing() argument
530 pii = pi->pi_v4; in stop_probing()
537 pii = pi->pi_v6; in stop_probing()
544 phyint_chstate(pi, PI_OFFLINE); in stop_probing()
581 struct phyint *pi; in select_test_ifs() local
765 for (pi = phyints; pi != NULL; pi = pi->pi_next) { in select_test_ifs()
766 if ((!PROBE_ENABLED(pi->pi_v4) && !PROBE_ENABLED(pi->pi_v6)) && in select_test_ifs()
[all …]
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/
H A Din.rdisc.c162 struct phyint *pi);
174 static void free_phyint(struct phyint *pi);
175 static struct logint *find_logint(struct phyint *pi, char *name);
176 static struct logint *add_logint(struct phyint *pi, char *name);
179 static void deleted_phyint(struct phyint *pi, int s,
608 struct phyint *pi; in advertise() local
620 for (pi = phyint; pi != NULL; pi = pi->pi_next) { in advertise()
629 for (li = pi->pi_logical_first; li != NULL; li = li->li_next) { in advertise()
658 pi->pi_logical_first); in advertise()
661 pi->pi_logical_first); in advertise()
[all …]
/titanic_50/usr/src/uts/common/io/cxgbe/cxgbe/
H A Dcxgbe.c121 struct port_info_stub *pi; in cxgbe_devo_attach() local
129 pi = ddi_get_parent_data(dip); in cxgbe_devo_attach()
130 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()
144 mac->m_src_addr = pi->hw_addr; in cxgbe_devo_attach()
145 mac->m_callbacks = pi->mc; in cxgbe_devo_attach()
146 mac->m_max_sdu = pi->mtu; in cxgbe_devo_attach()
147 mac->m_priv_props = pi->props; in cxgbe_devo_attach()
154 ddi_driver_name(pi->dip), ddi_get_instance(pi->dip), in cxgbe_devo_attach()
[all …]
/titanic_50/usr/src/cmd/troff/troff.d/
H A Dt10.c286 ptout0(pi) in ptout0() argument
287 tchar *pi; in ptout0()
295 i = *pi;
305 return(pi+outsize);
319 pi++;
320 while( cbits(*pi) != XOFF && pi < olinep )
321 outascii(*pi++);
323 if ( cbits(*pi) == XOFF )
324 pi++;
325 return pi;
[all …]
/titanic_50/usr/src/lib/fm/topo/modules/common/pcibus/
H A Dpcibus_hba.c62 di_node_t cn, int instance, di_path_t pi) in pci_scsi_device_create() argument
79 if (pi != NULL) { in pci_scsi_device_create()
80 pci_pi_prop_set(child, pi, SCSI_ADDR_PROP_TARGET_PORT, in pci_scsi_device_create()
82 pci_pi_prop_set(child, pi, SCSI_ADDR_PROP_ATTACHED_PORT, in pci_scsi_device_create()
84 pci_pi_prop_set(child, pi, SCSI_ADDR_PROP_TARGET_PORT_PM, in pci_scsi_device_create()
86 pci_pi_prop_set(child, pi, SCSI_ADDR_PROP_ATTACHED_PORT_PM, in pci_scsi_device_create()
88 if (di_path_prop_lookup_int64s(pi, in pci_scsi_device_create()
185 di_path_t pi; in pci_iports_instantiate() local
211 for (pi = di_path_phci_next_path(cn, DI_PATH_NIL); in pci_iports_instantiate()
212 pi != DI_PATH_NIL; pi = di_path_phci_next_path(cn, pi)) in pci_iports_instantiate()
[all …]
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/inetd/
H A Dinetd.c245 struct method_context *mthd_ctxt, const proto_info_t *pi) __NORETURN;
837 proto_info_t *pi; in poll_bound_fds() local
840 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()
842 if (pi->listen_fd != -1) { /* fd bound */ in poll_bound_fds()
844 strcmp(pi->proto, proto_name) == 0) { in poll_bound_fds()
846 clear_pollfd(pi->listen_fd); in poll_bound_fds()
847 } else if (set_pollfd(pi->listen_fd, in poll_bound_fds()
884 proto_info_t *pi; in handle_bind_failure() local
892 for (pi = uu_list_first(cfg->proto_list); pi != NULL; in handle_bind_failure()
[all …]
/titanic_50/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/
H A Dsun4vpi.c124 pi_enum_t pi; in pi_enum() local
142 bzero(&pi, sizeof (pi_enum_t)); in pi_enum()
143 result = pi_ldompri_open(mod, &pi); in pi_enum()
150 pi.mod = mod; in pi_enum()
156 num_components = pi_find_mdenodes(mod, pi.mdp, MDE_INVAL_ELEM_COOKIE, in pi_enum()
179 component_cookie = md_find_name(pi.mdp, MD_STR_COMPONENT); in pi_enum()
180 arc_cookie = md_find_name(pi.mdp, MD_STR_FWD); in pi_enum()
189 skip = pi_skip_node(mod, pi.mdp, components[idx]); in pi_enum()
195 result = pi_enum_components(&pi, t_parent, name, in pi_enum()
202 pi_ldompri_close(mod, &pi); in pi_enum()
/titanic_50/usr/src/lib/libsqlite/src/
H A Dutil.c60 int *pi; in sqliteMalloc_() local
76 pi = malloc( (N_GUARD*2+1+k)*sizeof(int)); in sqliteMalloc_()
77 if( pi==0 ){ in sqliteMalloc_()
82 for(i=0; i<N_GUARD; i++) pi[i] = 0xdead1122; in sqliteMalloc_()
83 pi[N_GUARD] = n; in sqliteMalloc_()
84 for(i=0; i<N_GUARD; i++) pi[k+1+N_GUARD+i] = 0xdead3344; in sqliteMalloc_()
85 p = &pi[N_GUARD+1]; in sqliteMalloc_()
102 int *pi = p; in sqliteCheckMemory() local
104 pi -= N_GUARD+1; in sqliteCheckMemory()
106 assert( pi[i]==0xdead1122 ); in sqliteCheckMemory()
[all …]
/titanic_50/usr/src/uts/sun4u/os/
H A Dmach_mp_startup.c43 processor_info_t *pi = &cp->cpu_type_info; in init_cpu_info() local
52 pi->pi_clock = (cpunode->clock_freq + 500000) / 1000000; in init_cpu_info()
64 (void) strcpy(pi->pi_processor_type, "sparcv9"); in init_cpu_info()
65 (void) strcpy(pi->pi_fputypes, "sparcv9"); in init_cpu_info()
182 processor_info_t *pi; in populate_idstr() local
185 pi = &cp->cpu_type_info; in populate_idstr()
189 cpunode->version, pi->pi_clock); in populate_idstr()
/titanic_50/usr/src/uts/sun4v/os/
H A Dmach_mp_startup.c48 processor_info_t *pi = &cp->cpu_type_info; in init_cpu_info() local
57 pi->pi_clock = (cpunode->clock_freq + 500000) / 1000000; in init_cpu_info()
69 (void) strcpy(pi->pi_processor_type, "sparcv9"); in init_cpu_info()
70 (void) strcpy(pi->pi_fputypes, "sparcv9"); in init_cpu_info()
277 processor_info_t *pi; in populate_idstr() local
280 pi = &cp->cpu_type_info; in populate_idstr()
284 cpunode->name, cpunode->cpuid, pi->pi_clock); in populate_idstr()
288 cpunode->name, cp->cpu_m.cpu_chip, pi->pi_clock); in populate_idstr()
/titanic_50/usr/src/test/os-tests/tests/spoof-ras/
H A Dspoof-ras.c175 struct nd_opt_prefix_info pi; in spoof_bad_lla_optlen_test() local
180 spoof_prepare_pi("fd00::", 64, &pi, &iovs[2]); in spoof_bad_lla_optlen_test()
238 struct nd_opt_prefix_info pi; in spoof_bad_pi_optlen_test() local
243 spoof_prepare_pi("fd00::", 64, &pi, &iovs[2]); in spoof_bad_pi_optlen_test()
252 old_pi_len = pi.nd_opt_pi_len; in spoof_bad_pi_optlen_test()
258 pi.nd_opt_pi_len = 0; in spoof_bad_pi_optlen_test()
267 pi.nd_opt_pi_len = 3; in spoof_bad_pi_optlen_test()
277 pi.nd_opt_pi_len = 5; in spoof_bad_pi_optlen_test()
288 pi.nd_opt_pi_len = old_pi_len; in spoof_bad_pi_optlen_test()
309 struct nd_opt_prefix_info pi; in spoof_bad_plen_test() local
[all …]
/titanic_50/usr/src/lib/storage/libg_fc/common/
H A Dmpath.c99 sv_path_info_t *pi = NULL; in g_get_lun_str() local
125 pi = (sv_path_info_t *)calloc((size_t)num_paths, in g_get_lun_str()
128 ioc.ret_buf = pi; in g_get_lun_str()
133 pi[i].ret_prop.buf_size = SV_PROP_MAX_BUF_SIZE; in g_get_lun_str()
134 if (((pi[i].ret_prop.buf = in g_get_lun_str()
136 ((pi[i].ret_prop.ret_buf_size = in g_get_lun_str()
137 malloc(sizeof (*pi[i].ret_prop.ret_buf_size))) in g_get_lun_str()
140 g_free_pi_list(pi, num_paths); in g_get_lun_str()
149 g_free_pi_list(pi, num_paths); in g_get_lun_str()
155 charptr1 = strchr(pi[path_num].ret_addr, ','); in g_get_lun_str()
[all …]
/titanic_50/usr/src/cmd/getdevpolicy/
H A Dgetdevpolicy.c44 static const priv_impl_info_t *pi; variable
68 ss = priv_set_to_str(DEVPLCYSYS_RDP(ds, pi), ',', PRIV_STR_SHORT); in printpolicy()
71 ss = priv_set_to_str(DEVPLCYSYS_WRP(ds, pi), ',', PRIV_STR_SHORT); in printpolicy()
148 if ((pi = getprivimplinfo()) == NULL) in main()
151 sz = DEVPLCYSYS_SZ(pi); in main()
/titanic_50/usr/src/lib/libm/common/C/
H A D__lgamma.c43 pi = 3.1415926535897932384626434, variable
130 return (__k_sin(pi * x, 0.0)); in sin_pi()
145 y = __k_sin(pi * y, 0.0); in sin_pi()
149 y = __k_cos(pi * (0.5 - y), 0.0); in sin_pi()
153 y = __k_sin(pi * (1.0 - y), 0.0); in sin_pi()
157 y = -__k_cos(pi * (y - 1.5), 0.0); in sin_pi()
160 y = __k_sin(pi * (y - 2.0), 0.0); in sin_pi()
199 p = log(pi / (fabs(t) * z)) - __k_lgamma(z, signgamp); in neg()

123456