Home
last modified time | relevance | path

Searched refs:mip (Results 1 – 25 of 59) sorted by relevance

123

/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_provider.c164 mac_impl_t *mip; in mac_register() local
183 mip = kmem_cache_alloc(i_mac_impl_cachep, KM_SLEEP); in mac_register()
188 mip->mi_state_flags |= MIS_DISABLED; in mac_register()
230 mip->mi_minor = (minor_t)(instance + 1); in mac_register()
231 mip->mi_dip = mregp->m_dip; in mac_register()
232 mip->mi_clients_list = NULL; in mac_register()
233 mip->mi_nclients = 0; in mac_register()
236 mip->mi_pvid = 1; in mac_register()
239 mip->mi_llimit = 1000; in mac_register()
240 mip->mi_ldecay = 200; in mac_register()
[all …]
H A Dmac_client.c272 mac_vnic_lower(mac_impl_t *mip) in mac_vnic_lower() argument
277 VERIFY(i_mac_capab_get((mac_handle_t)mip, MAC_CAPAB_VNIC, &cap)); in mac_vnic_lower()
287 mac_vnic_secondary_update(mac_impl_t *mip) in mac_vnic_secondary_update() argument
291 VERIFY(i_mac_capab_get((mac_handle_t)mip, MAC_CAPAB_VNIC, &cap)); in mac_vnic_secondary_update()
300 mac_primary_client_handle(mac_impl_t *mip) in mac_primary_client_handle() argument
304 if (mip->mi_state_flags & MIS_IS_VNIC) in mac_primary_client_handle()
305 return (mac_vnic_lower(mip)); in mac_primary_client_handle()
307 ASSERT(MAC_PERIM_HELD((mac_handle_t)mip)); in mac_primary_client_handle()
309 for (mcip = mip->mi_clients_list; mcip != NULL; in mac_primary_client_handle()
323 mac_impl_t *mip; in mac_open() local
[all …]
H A Dmac.c533 mac_impl_t *mip = buf; in i_mac_constructor() local
537 mip->mi_linkstate = LINK_STATE_UNKNOWN; in i_mac_constructor()
539 rw_init(&mip->mi_rw_lock, NULL, RW_DRIVER, NULL); in i_mac_constructor()
540 mutex_init(&mip->mi_notify_lock, NULL, MUTEX_DRIVER, NULL); in i_mac_constructor()
541 mutex_init(&mip->mi_promisc_lock, NULL, MUTEX_DRIVER, NULL); in i_mac_constructor()
542 mutex_init(&mip->mi_ring_lock, NULL, MUTEX_DEFAULT, NULL); in i_mac_constructor()
544 mip->mi_notify_cb_info.mcbi_lockp = &mip->mi_notify_lock; in i_mac_constructor()
545 cv_init(&mip->mi_notify_cb_info.mcbi_cv, NULL, CV_DRIVER, NULL); in i_mac_constructor()
546 mip->mi_promisc_cb_info.mcbi_lockp = &mip->mi_promisc_lock; in i_mac_constructor()
547 cv_init(&mip->mi_promisc_cb_info.mcbi_cv, NULL, CV_DRIVER, NULL); in i_mac_constructor()
[all …]
H A Dmac_hio.c45 mac_impl_t *mip = (mac_impl_t *)mh; in mac_share_capable() local
47 return (mip->mi_share_capab.ms_snum); in mac_share_capable()
58 mac_impl_t *mip = mcip->mci_mip; in i_mac_share_alloc() local
61 i_mac_perim_enter(mip); in i_mac_share_alloc()
68 i_mac_perim_exit(mip); in i_mac_share_alloc()
72 rv = mip->mi_share_capab.ms_salloc(mip->mi_share_capab.ms_handle, in i_mac_share_alloc()
79 i_mac_perim_exit(mip); in i_mac_share_alloc()
90 mac_impl_t *mip = mcip->mci_mip; in i_mac_share_free() local
92 i_mac_perim_enter(mip); in i_mac_share_free()
98 i_mac_perim_exit(mip); in i_mac_share_free()
[all …]
H A Dmac_ndd.c94 mac_ndd_get_names(mac_impl_t *mip, mblk_t *mp) in mac_ndd_get_names() argument
107 for (i = 0; i < mip->mi_type->mt_mappingcount; i++) { in mac_ndd_get_names()
108 if ((mip->mi_type->mt_mapping[i].mp_flags & MAC_PROP_MAP_KSTAT) in mac_ndd_get_names()
112 status = mip->mi_callbacks->mc_getprop(mip->mi_driver, in mac_ndd_get_names()
113 mip->mi_type->mt_mapping[i].mp_name, in mac_ndd_get_names()
114 mip->mi_type->mt_mapping[i].mp_prop_id, in mac_ndd_get_names()
115 mip->mi_type->mt_mapping[i].mp_valsize, &value); in mac_ndd_get_names()
118 status = mac_prop_info((mac_handle_t)mip, in mac_ndd_get_names()
119 mip->mi_type->mt_mapping[i].mp_prop_id, in mac_ndd_get_names()
120 mip->mi_type->mt_mapping[i].mp_name, NULL, 0, in mac_ndd_get_names()
[all …]
H A Dmac_bcast.c124 mac_impl_t *mip = grp->mbg_mac_impl; in mac_bcast_grp_free() local
126 ASSERT(MAC_PERIM_HELD((mac_handle_t)mip)); in mac_bcast_grp_free()
129 kmem_free(grp->mbg_addr, mip->mi_type->mt_addr_length); in mac_bcast_grp_free()
132 mip->mi_bcast_ngrps--; in mac_bcast_grp_free()
146 mac_impl_t *mip = grp->mbg_mac_impl; in mac_bcast_send() local
153 rw_enter(&mip->mi_rw_lock, RW_READER); in mac_bcast_send()
195 rw_exit(&mip->mi_rw_lock); in mac_bcast_send()
206 rw_enter(&mip->mi_rw_lock, RW_READER); in mac_bcast_send()
225 rw_exit(&mip->mi_rw_lock); in mac_bcast_send()
230 rw_exit(&mip->mi_rw_lock); in mac_bcast_send()
[all …]
H A Dmac_stat.c301 mac_impl_t *mip = ksp->ks_private; in i_mac_driver_stat_update() local
311 for (i = 0; i < mip->mi_kstat_count; i++, msi_index++) { in i_mac_driver_stat_update()
320 msi = mip->mi_type->mt_stats; in i_mac_driver_stat_update()
323 val = mac_stat_get((mac_handle_t)mip, msi[msi_index].msi_stat); in i_mac_driver_stat_update()
944 mac_driver_stat_create(mac_impl_t *mip) in mac_driver_stat_create() argument
949 major_t major = getmajor(mip->mi_phy_dev); in mac_driver_stat_create()
951 count = MAC_MOD_NKSTAT + MAC_NKSTAT + mip->mi_type->mt_statcount; in mac_driver_stat_create()
953 getminor(mip->mi_phy_dev) - 1, MAC_KSTAT_NAME, in mac_driver_stat_create()
959 ksp->ks_private = mip; in mac_driver_stat_create()
960 mip->mi_ksp = ksp; in mac_driver_stat_create()
[all …]
H A Dmac_datapath_setup.c1625 mac_impl_t *mip = mcip->mci_mip; in mac_client_update_classifier() local
1630 ASSERT(MAC_PERIM_HELD((mac_handle_t)mip)); in mac_client_update_classifier()
1638 if (mip->mi_state_flags & MIS_POLL_DISABLE) in mac_client_update_classifier()
1663 flent->fe_cb_arg1 = (void *)mip; in mac_client_update_classifier()
2394 mac_impl_t *mip = mcip->mci_mip; in mac_rx_srs_group_setup() local
2434 flent->fe_cb_arg1 = (void *)mip; in mac_rx_srs_group_setup()
2670 mac_impl_t *mip = (mac_impl_t *)grp->mrg_mh; in mac_group_next_state() local
2699 if (rx_group && mip->mi_nactiveclients != 1) in mac_group_next_state()
2888 mac_impl_t *mip = mcip->mci_mip; in mac_datapath_setup() local
2909 ASSERT(MAC_PERIM_HELD((mac_handle_t)mip)); in mac_datapath_setup()
[all …]
/illumos-gate/usr/src/cmd/tail/
H A Dmisc.c64 mapprint(struct mapinfo *mip, off_t startoff, off_t len) in mapprint() argument
69 if (startoff < mip->mapoff || startoff >= mip->mapoff + in mapprint()
70 (off_t)mip->maplen) { in mapprint()
71 if (maparound(mip, startoff) != 0) in mapprint()
74 n = (mip->mapoff + mip->maplen) - startoff; in mapprint()
77 WR(mip->start + (startoff - mip->mapoff), n); in mapprint()
90 maparound(struct mapinfo *mip, off_t offset) in maparound() argument
93 if (mip->start != NULL && munmap(mip->start, mip->maplen) != 0) in maparound()
96 mip->mapoff = offset & ~((off_t)TAILMAPLEN - 1); in maparound()
97 mip->maplen = TAILMAPLEN; in maparound()
[all …]
/illumos-gate/usr/src/cmd/sgs/demo_rdb/common/
H A Dmaps.c66 map_info_t *mip; in str_to_map() local
69 mip = (map_info_t *)&(ph->pp_ldsomap); in str_to_map()
71 mip = (map_info_t *)&(ph->pp_execmap); in str_to_map()
73 for (mip = ph->pp_lmaplist.ml_head; mip; mip = mip->mi_next) in str_to_map()
74 if (strcmp(soname, mip->mi_name) == 0) in str_to_map()
77 return (mip); in str_to_map()
83 map_info_t *mip; in addr_to_map() local
100 for (mip = ph->pp_lmaplist.ml_head; mip; mip = mip->mi_next) in addr_to_map()
101 if ((addr >= mip->mi_addr) && in addr_to_map()
102 (addr <= mip->mi_end)) in addr_to_map()
[all …]
H A Dsyms.c211 map_info_t *mip; in addr_to_sym() local
213 if ((mip = addr_to_map(ph, addr)) == NULL) in addr_to_sym()
216 return (addr_map_sym(mip, addr, symp, str)); in addr_to_sym()
222 map_info_t *mip; in str_to_sym() local
231 for (mip = ph->pp_lmaplist.ml_head; mip; mip = mip->mi_next) in str_to_sym()
232 if (str_map_sym(name, mip, symp, NULL) == RET_OK) in str_to_sym()
H A Dps.c281 map_info_t *mip; in ps_pglobal_sym() local
284 if ((mip = str_to_map(ph, object_name)) == NULL) in ps_pglobal_sym()
287 if (str_map_sym(sym_name, mip, &gsym, NULL) == RET_FAILED) in ps_pglobal_sym()
304 map_info_t *mip; in ps_pglobal_lookup() local
306 if ((mip = str_to_map(ph, object_name)) == NULL) in ps_pglobal_lookup()
309 if (str_map_sym(sym_name, mip, &sym, NULL) == RET_FAILED) in ps_pglobal_lookup()
H A Ddis.c76 map_info_t *mip; in print_address_ps() local
83 if ((mip = addr_to_map(ph, address)) != 0) { in print_address_ps()
84 (void) strcpy(buf, mip->mi_name); in print_address_ps()
/illumos-gate/usr/src/common/smbclnt/
H A Dsmbfs_ntacl.c764 struct mapinfo2uid *mip, in mkrq_idmap_sid2ux() argument
782 mip->mi_uid = (uid_t)-1; in mkrq_idmap_sid2ux()
783 mip->mi_isuser = IDM_EVERYONE; in mkrq_idmap_sid2ux()
784 mip->mi_status = 0; in mkrq_idmap_sid2ux()
791 mip->mi_isuser = req_type; in mkrq_idmap_sid2ux()
793 &mip->mi_uid, &mip->mi_status); in mkrq_idmap_sid2ux()
797 mip->mi_isuser = req_type; in mkrq_idmap_sid2ux()
799 &mip->mi_uid, &mip->mi_status); in mkrq_idmap_sid2ux()
804 &mip->mi_uid, &mip->mi_isuser, &mip->mi_status); in mkrq_idmap_sid2ux()
823 ntace2zace(ace_t *zacep, i_ntace_t *ntace, struct mapinfo2uid *mip) in ntace2zace() argument
[all …]
/illumos-gate/usr/src/lib/libipmp/common/
H A Dipmp_admin.c100 mi_ping_t mip; in ipmp_ping_daemon() local
102 mip.mip_command = MI_PING; in ipmp_ping_daemon()
103 return (ipmp_command(handle, &mip, sizeof (mip))); in ipmp_ping_daemon()
/illumos-gate/usr/src/lib/libipadm/common/
H A Dipadm_prop.c1078 mod_ioc_prop_t *mip; in i_ipadm_get_prop() local
1084 if ((mip = calloc(1, iocsize)) == NULL) in i_ipadm_get_prop()
1087 mip->mpr_version = MOD_PROP_VERSION; in i_ipadm_get_prop()
1088 mip->mpr_flags = valtype; in i_ipadm_get_prop()
1089 mip->mpr_proto = proto; in i_ipadm_get_prop()
1091 (void) strlcpy(mip->mpr_ifname, ifname, in i_ipadm_get_prop()
1092 sizeof (mip->mpr_ifname)); in i_ipadm_get_prop()
1094 (void) strlcpy(mip->mpr_name, pname, sizeof (mip->mpr_name)); in i_ipadm_get_prop()
1095 mip->mpr_valsize = *bufsize; in i_ipadm_get_prop()
1097 if (i_ipadm_strioctl(iph->iph_sock, SIOCGETPROP, (char *)mip, in i_ipadm_get_prop()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dmac_impl.h134 #define MAC_PROMISC_WALKER_INC(mip) \ argument
135 mac_callback_walker_enter(&(mip)->mi_promisc_cb_info)
137 #define MAC_PROMISC_WALKER_DCR(mip) \ argument
138 mac_callback_walker_exit(&(mip)->mi_promisc_cb_info, \
139 &(mip)->mi_promisc_list, B_TRUE)
539 #define MAC_DEFAULT_TX_GROUP(mip) \ argument
540 (mip)->mi_tx_groups + (mip)->mi_tx_group_count
545 #define MAC_DEFAULT_RX_GROUP(mip) (mip)->mi_rx_groups argument
639 #define MAC_DECODE_MPH(mph, mip, need_close) { \ argument
640 mip = (mac_impl_t *)(((uintptr_t)mph) & ~0x1); \
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_fw_hdr.c53 _info(struct modinfo *mip) in _info() argument
55 return (mod_info(&modlinkage, mip)); in _info()
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_fw_2200.c5922 _info(struct modinfo *mip) in _info() argument
5924 return (mod_info(&modlinkage, mip)); in _info()
H A Dql_fw_2300.c7551 _info(struct modinfo *mip) in _info() argument
7553 return (mod_info(&modlinkage, mip)); in _info()
H A Dql_fw_6322.c6956 _info(struct modinfo *mip) in _info() argument
6958 return (mod_info(&modlinkage, mip)); in _info()
H A Dql_fw_2400.c16632 _info(struct modinfo *mip) in _info() argument
16634 return (mod_info(&modlinkage, mip)); in _info()
H A Dql_fw_2500.c17259 _info(struct modinfo *mip) in _info() argument
17261 return (mod_info(&modlinkage, mip)); in _info()
H A Dql_fw_8100.c15333 _info(struct modinfo *mip) in _info() argument
15335 return (mod_info(&modlinkage, mip)); in _info()
/illumos-gate/usr/src/uts/i86pc/dboot/
H A Ddboot_multiboot2.c252 multiboot_tag_basic_meminfo_t *mip; in dboot_multiboot2_basicmeminfo() local
254 mip = dboot_multiboot2_find_tag(mbi, MULTIBOOT_TAG_TYPE_BASIC_MEMINFO); in dboot_multiboot2_basicmeminfo()
255 if (mip != NULL) { in dboot_multiboot2_basicmeminfo()
256 *lower = mip->mb_mem_lower; in dboot_multiboot2_basicmeminfo()
257 *upper = mip->mb_mem_upper; in dboot_multiboot2_basicmeminfo()

123