Home
last modified time | relevance | path

Searched refs:ni (Results 1 – 25 of 57) sorted by relevance

123

/illumos-gate/usr/src/uts/common/io/net80211/
H A Dnet80211_amrr.c41 #define is_min_rate(ni) \ argument
42 ((ni)->in_txrate == 0)
43 #define is_max_rate(ni) \ argument
44 ((ni)->in_txrate == (ni)->in_rates.ir_nrates - 1)
45 #define increase_rate(ni) \ argument
46 ((ni)->in_txrate++)
47 #define decrease_rate(ni) \ argument
48 ((ni)->in_txrate--)
67 ieee80211_amrr_choose(struct ieee80211_amrr *amrr, struct ieee80211_node *ni, in ieee80211_amrr_choose() argument
76 !is_max_rate(ni)) { in ieee80211_amrr_choose()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dniprop.c71 void *ni = NULL; variable
116 nis = ni_open(NULL, LOCAL_NETINFO_DOMAIN, &ni);
126 lastni = ni;
127 nis = ni_open(lastni, PARENT_NETINFO_DOMAIN, &ni);
149 if (ni_pathsearch(ni, &nid, keybuf) != 0)
156 if (ni_lookupprop(ni, &nid, valprop, &ninl) != 0)
202 if (ni != NULL)
203 ni_free(ni);
204 if (lastni != NULL && ni != lastni)
/illumos-gate/usr/src/uts/common/io/rwd/
H A Drt2661.c696 if (data->ni != NULL) { in rt2661_reset_tx_ring()
697 ieee80211_free_node(data->ni); in rt2661_reset_tx_ring()
698 data->ni = NULL; in rt2661_reset_tx_ring()
729 if (data->ni != NULL) { in rt2661_free_tx_ring()
730 ieee80211_free_node(data->ni); in rt2661_free_tx_ring()
731 data->ni = NULL; in rt2661_free_tx_ring()
911 rn = (struct rt2661_node *)data->ni; in rt2661_tx_intr()
948 ieee80211_free_node(data->ni); in rt2661_tx_intr()
949 data->ni = NULL; in rt2661_tx_intr()
973 struct ieee80211_node *ni; in rt2661_rx_intr() local
[all …]
H A Drt2661_var.h48 struct ieee80211_node *ni; member
93 struct ieee80211_node ni; member
/illumos-gate/usr/src/uts/common/io/
H A Dufmtest.c330 uint_t ni; in ufmtest_nimages() local
337 &ni) != 0) in ufmtest_nimages()
340 *nimgs = ni; in ufmtest_nimages()
350 uint_t ni, ns; in ufmtest_fill_image() local
355 &images, &ni) != 0) in ufmtest_fill_image()
358 if (imgno >= ni) in ufmtest_fill_image()
389 uint_t ni, ns; in ufmtest_fill_slot() local
394 &images, &ni) != 0) in ufmtest_fill_slot()
397 if (imgno >= ni) in ufmtest_fill_slot()
H A Dneti_impl.c592 net_inject_t *ni; in net_inject_alloc() local
594 ni = kmem_zalloc(sizeof (*ni), KM_NOSLEEP); in net_inject_alloc()
595 if (ni == NULL) in net_inject_alloc()
598 ni->ni_version = version; in net_inject_alloc()
599 return (ni); in net_inject_alloc()
603 net_inject_free(net_inject_t *ni) in net_inject_free() argument
605 kmem_free(ni, sizeof (*ni)); in net_inject_free()
/illumos-gate/usr/src/uts/common/io/ral/
H A Drt2560.c633 if (data->ni != NULL) { in rt2560_reset_tx_ring()
634 ieee80211_free_node(data->ni); in rt2560_reset_tx_ring()
635 data->ni = NULL; in rt2560_reset_tx_ring()
659 if (data->ni != NULL) { in rt2560_free_tx_ring()
660 ieee80211_free_node(data->ni); in rt2560_free_tx_ring()
661 data->ni = NULL; in rt2560_free_tx_ring()
792 return ((rn != NULL) ? &rn->ni : NULL); in rt2560_node_alloc()
825 rt2560_iter_func(void *arg, struct ieee80211_node *ni) in rt2560_iter_func() argument
827 struct rt2560_node *rn = (struct rt2560_node *)ni; in rt2560_iter_func()
871 struct ieee80211_node *ni; in rt2560_newstate() local
[all …]
H A Dral_rate.c133 ral_rssadapt_input(struct ieee80211com *ic, struct ieee80211_node *ni, in ral_rssadapt_input() argument
148 ral_rssadapt_lower_rate(struct ieee80211com *ic, struct ieee80211_node *ni, in ral_rssadapt_lower_rate() argument
151 struct ieee80211_rateset *rs = &ni->in_rates; in ral_rssadapt_lower_rate()
180 struct ieee80211_node *ni = id->id_node; in ral_rssadapt_raise_rate() local
181 struct ieee80211_rateset *rs = &ni->in_rates; in ral_rssadapt_raise_rate()
H A Drt2560_var.h86 struct ieee80211_node *ni; member
133 struct ieee80211_node ni; member
/illumos-gate/usr/src/uts/common/io/ural/
H A Dural.c448 struct ieee80211_node *ni; in ural_rxeof() local
515 ni = ieee80211_find_rxnode(ic, wh); in ural_rxeof()
518 (void) ieee80211_input(ic, m, ni, desc->rssi, 0); in ural_rxeof()
521 ieee80211_free_node(ni); in ural_rxeof()
677 struct ieee80211_node *ni = NULL; in ural_send() local
720 ni = ieee80211_find_txnode(ic, wh->i_addr1); in ural_send()
721 if (ni == NULL) { in ural_send()
730 (void) ieee80211_encap(ic, m, ni); in ural_send()
753 rate = ni->in_rates.ir_rates[ni->in_txrate]; in ural_send()
811 if (ni != NULL) in ural_send()
[all …]
/illumos-gate/usr/src/uts/common/io/rum/
H A Drum.c513 struct ieee80211_node *ni; in rum_rxeof() local
577 ni = ieee80211_find_rxnode(ic, wh); in rum_rxeof()
580 (void) ieee80211_input(ic, m, ni, desc->rssi, 0); in rum_rxeof()
583 ieee80211_free_node(ni); in rum_rxeof()
738 struct ieee80211_node *ni = NULL; in rum_send() local
781 ni = ieee80211_find_txnode(ic, wh->i_addr1); in rum_send()
782 if (ni == NULL) { in rum_send()
791 (void) ieee80211_encap(ic, m, ni); in rum_send()
814 rate = ni->in_rates.ir_rates[ni->in_txrate]; in rum_send()
876 if (ni != NULL) in rum_send()
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dtest-dissect.c59 struct ident *ni, *si, *mi; in r_member() local
63 ni = built_in_ident("?"); in r_member()
64 si = sym->ident ?: ni; in r_member()
66 mi = mem ? (mem->ident ?: ni) : built_in_ident("*"); in r_member()
/illumos-gate/usr/src/lib/libmd/amd64/
H A DMakefile37 CAPFILES = pics/sha1-ni.o \
38 pics/sha256-ni.o
53 pics/sha1-ni.o.objcap := CAPFILE = capabilities/sha.cap
54 pics/sha256-ni.o.objcap := CAPFILE = capabilities/sha.cap
/illumos-gate/usr/src/uts/common/inet/ipf/
H A Dip_nat6.c280 static INLINE int nat6_newmap(fin, nat, ni) in nat6_newmap() argument
283 natinfo_t *ni;
300 np = ni->nai_np;
303 flags = ni->nai_flags;
304 sport = ni->nai_sport;
305 dport = ni->nai_dport;
528 ni->nai_port = port;
529 ni->nai_nport = dport;
546 static INLINE int nat6_newrdr(fin, nat, ni) in nat6_newrdr() argument
549 natinfo_t *ni;
[all …]
H A Dip_nat.c2090 static INLINE int nat_newmap(fin, nat, ni) in nat_newmap() argument
2093 natinfo_t *ni;
2111 np = ni->nai_np;
2114 flags = ni->nai_flags;
2115 sport = ni->nai_sport;
2116 dport = ni->nai_dport;
2319 ni->nai_ip.s_addr = in.s_addr;
2320 ni->nai_port = port;
2321 ni->nai_nport = dport;
2338 static INLINE int nat_newrdr(fin, nat, ni) in nat_newrdr() argument
[all …]
/illumos-gate/usr/src/uts/common/io/rwn/
H A Drt2860.c801 if (data->ni != NULL) { in rt2860_reset_tx_ring()
802 ieee80211_free_node(data->ni); in rt2860_reset_tx_ring()
803 data->ni = NULL; /* node already freed */ in rt2860_reset_tx_ring()
1088 struct ieee80211_node *ni; in rt2860_send() local
1137 ni = ieee80211_find_txnode(ic, wh->i_addr1); in rt2860_send()
1138 if (ni == NULL) { in rt2860_send()
1146 (void) ieee80211_encap(ic, m, ni); in rt2860_send()
1166 rate = ni->in_rates.ir_rates[0]; in rt2860_send()
1171 rate = ni->in_rates.ir_rates[ni->in_txrate]; in rt2860_send()
1182 RT2860_AID2WCID(ni->in_associd) : 0xff; in rt2860_send()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_nic.c212 smb_nic_getfirst(smb_niciter_t *ni) in smb_nic_getfirst() argument
216 if (ni == NULL) in smb_nic_getfirst()
222 ni->ni_nic = smb_niclist.nl_nics[0]; in smb_nic_getfirst()
223 ni->ni_cookie = 1; in smb_nic_getfirst()
224 ni->ni_seqnum = smb_niclist.nl_seqnum; in smb_nic_getfirst()
251 smb_nic_getnext(smb_niciter_t *ni) in smb_nic_getnext() argument
255 if ((ni == NULL) || (ni->ni_cookie < 1)) in smb_nic_getnext()
260 if ((smb_niclist.nl_cnt > ni->ni_cookie) && in smb_nic_getnext()
261 (smb_niclist.nl_seqnum == ni->ni_seqnum)) { in smb_nic_getnext()
262 ni->ni_nic = smb_niclist.nl_nics[ni->ni_cookie]; in smb_nic_getnext()
[all …]
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_parse.c146 tf_idata_insert(tf_idata_t **head, tf_idata_t *ni) in tf_idata_insert() argument
152 if (ni->ti_i < l->ti_i) in tf_idata_insert()
156 ni->ti_next = l; in tf_idata_insert()
158 *head = ni; in tf_idata_insert()
160 p->ti_next = ni; in tf_idata_insert()
/illumos-gate/usr/src/common/crypto/ecc/
H A Decp_jac.c338 int i, ni, d; in ec_GFp_pt_mul_jac() local
375 ni = MP_GET_BIT(n, 4 * i + 3); in ec_GFp_pt_mul_jac()
376 ni <<= 1; in ec_GFp_pt_mul_jac()
377 ni |= MP_GET_BIT(n, 4 * i + 2); in ec_GFp_pt_mul_jac()
378 ni <<= 1; in ec_GFp_pt_mul_jac()
379 ni |= MP_GET_BIT(n, 4 * i + 1); in ec_GFp_pt_mul_jac()
380 ni <<= 1; in ec_GFp_pt_mul_jac()
381 ni |= MP_GET_BIT(n, 4 * i); in ec_GFp_pt_mul_jac()
389 (rx, ry, &rz, &precomp[ni][0], &precomp[ni][1], rx, ry, in ec_GFp_pt_mul_jac()
/illumos-gate/usr/src/lib/libnisdb/
H A Dldap_ruleval.c479 int i, n, ni = 0, nv = 0; in buildLvalue() local
532 item = concatenateMappingItem(item, ni, in buildLvalue()
534 freeMappingItem(olditem, ni); in buildLvalue()
536 ni = 0; in buildLvalue()
539 ni++; in buildLvalue()
553 item = concatenateMappingItem(item, ni, tmpitem); in buildLvalue()
554 freeMappingItem(olditem, ni); in buildLvalue()
556 ni++; in buildLvalue()
558 ni = 0; in buildLvalue()
565 *numItems = ni; in buildLvalue()
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_comm.c1316 ndmp_handler_t *ni = &ndmp_msghdl_tab[(message >> 8) % INT_MAXCMD]; in ndmp_get_interface() local
1318 if ((message & 0xff) >= ni->hd_cnt) in ndmp_get_interface()
1322 if (ni->hd_msgs[message & 0xff].hm_message != message) in ndmp_get_interface()
1325 return (ni); in ndmp_get_interface()
1346 ndmp_handler_t *ni = ndmp_get_interface(message); in ndmp_get_handler() local
1349 if (ni) in ndmp_get_handler()
1350 handler = &ni->hd_msgs[message & 0xff].hm_msg_v[ver - 2]; in ndmp_get_handler()
1372 ndmp_handler_t *ni = ndmp_get_interface(message); in ndmp_check_auth_required() local
1374 if (ni) in ndmp_check_auth_required()
1375 auth_req = ni->hd_msgs[message & 0xff].hm_auth_required; in ndmp_check_auth_required()
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_browser.c1121 smb_niciter_t ni; in smb_browser_init() local
1130 if (smb_nic_getfirst(&ni) != SMB_NIC_SUCCESS) { in smb_browser_init()
1140 if ((ni.ni_nic.nic_smbflags & SMB_NICF_NBEXCL) || in smb_browser_init()
1141 (ni.ni_nic.nic_smbflags & SMB_NICF_ALIAS)) in smb_browser_init()
1151 hinfo->hi_nic = ni.ni_nic; in smb_browser_init()
1173 } while (smb_nic_getnext(&ni) == SMB_NIC_SUCCESS); in smb_browser_init()
H A Dsmbns_dyndns.c2020 smb_niciter_t ni; in dyndns_update_core() local
2051 if (smb_nic_getfirst(&ni) != SMB_NIC_SUCCESS) in dyndns_update_core()
2055 if (ni.ni_nic.nic_sysflags & IFF_PRIVATE) in dyndns_update_core()
2058 my_str = smb_inet_ntop(&ni.ni_nic.nic_ip, my_ip, in dyndns_update_core()
2059 SMB_IPSTRLEN(ni.ni_nic.nic_ip.a_family)); in dyndns_update_core()
2082 } while (smb_nic_getnext(&ni) == SMB_NIC_SUCCESS); in dyndns_update_core()
2103 smb_niciter_t ni; in dyndns_clear_rev_zone() local
2123 if (smb_nic_getfirst(&ni) != SMB_NIC_SUCCESS) in dyndns_clear_rev_zone()
2127 if (ni.ni_nic.nic_sysflags & IFF_PRIVATE) in dyndns_clear_rev_zone()
2129 my_str = smb_inet_ntop(&ni.ni_nic.nic_ip, my_ip, in dyndns_clear_rev_zone()
[all …]
/illumos-gate/usr/src/uts/common/io/uath/
H A Duath.c1568 struct ieee80211_node *ni; in uath_data_rxeof() local
1677 ni = ieee80211_find_rxnode(ic, wh); in uath_data_rxeof()
1680 (void) ieee80211_input(ic, m, ni, (int)BE_32(desc->rssi), 0); in uath_data_rxeof()
1683 ieee80211_free_node(ni); in uath_data_rxeof()
1783 struct ieee80211_node *ni = ic->ic_bss; in uath_create_connection() local
1793 rs = &ni->in_rates; in uath_create_connection()
1799 if (UATH_IS_CHAN_A(ni->in_chan)) in uath_create_connection()
1801 else if (UATH_IS_CHAN_ANYG(ni->in_chan)) in uath_create_connection()
1835 struct ieee80211_node *ni = ic->ic_bss; in uath_write_associd() local
1841 associd.associd = BE_32(ni->in_associd); in uath_write_associd()
[all …]
/illumos-gate/usr/src/uts/common/io/iwn/
H A Dif_iwn.c649 int ni, na; in iwn_intr_add() local
653 if (ddi_intr_get_nintrs(sc->sc_dip, intr_type, &ni) != DDI_SUCCESS) in iwn_intr_add()
2428 iwn_newassoc(struct ieee80211_node *ni, int isnew) in iwn_newassoc() argument
2431 struct iwn_softc *sc = (struct iwn_softc *)&ni->in_ic; in iwn_newassoc()
2432 struct iwn_node *wn = (void *)ni; in iwn_newassoc()
2440 ni->in_txrate = ni->in_rates.ir_nrates / 2; in iwn_newassoc()
2442 for (i = 0; i < ni->in_rates.ir_nrates; i++) { in iwn_newassoc()
2443 rate = ni->in_rates.ir_rates[i] & IEEE80211_RATE_VAL; in iwn_newassoc()
2582 iwn_iter_func(void *arg, struct ieee80211_node *ni) in iwn_iter_func() argument
2585 struct iwn_node *wn = (struct iwn_node *)ni; in iwn_iter_func()
[all …]

123