/titanic_41/usr/src/uts/common/io/mac/ |
H A D | mac_provider.c | 123 mac_impl_t *mip; in mac_register() local 142 mip = kmem_cache_alloc(i_mac_impl_cachep, KM_SLEEP); in mac_register() 147 mip->mi_state_flags |= MIS_DISABLED; in mac_register() 189 mip->mi_minor = (minor_t)(instance + 1); in mac_register() 190 mip->mi_dip = mregp->m_dip; in mac_register() 191 mip->mi_clients_list = NULL; in mac_register() 192 mip->mi_nclients = 0; in mac_register() 195 mip->mi_pvid = 1; in mac_register() 198 mip->mi_llimit = 1000; in mac_register() 199 mip->mi_ldecay = 200; in mac_register() [all …]
|
H A D | mac_client.c | 269 mac_vnic_lower(mac_impl_t *mip) in mac_vnic_lower() argument 274 VERIFY(i_mac_capab_get((mac_handle_t)mip, MAC_CAPAB_VNIC, &cap)); in mac_vnic_lower() 284 mac_vnic_secondary_update(mac_impl_t *mip) in mac_vnic_secondary_update() argument 288 VERIFY(i_mac_capab_get((mac_handle_t)mip, MAC_CAPAB_VNIC, &cap)); in mac_vnic_secondary_update() 297 mac_primary_client_handle(mac_impl_t *mip) in mac_primary_client_handle() argument 301 if (mip->mi_state_flags & MIS_IS_VNIC) in mac_primary_client_handle() 302 return (mac_vnic_lower(mip)); in mac_primary_client_handle() 304 ASSERT(MAC_PERIM_HELD((mac_handle_t)mip)); in mac_primary_client_handle() 306 for (mcip = mip->mi_clients_list; mcip != NULL; in mac_primary_client_handle() 320 mac_impl_t *mip; in mac_open() local [all …]
|
H A D | mac.c | 532 mac_impl_t *mip = buf; in i_mac_constructor() local 536 mip->mi_linkstate = LINK_STATE_UNKNOWN; in i_mac_constructor() 538 rw_init(&mip->mi_rw_lock, NULL, RW_DRIVER, NULL); in i_mac_constructor() 539 mutex_init(&mip->mi_notify_lock, NULL, MUTEX_DRIVER, NULL); in i_mac_constructor() 540 mutex_init(&mip->mi_promisc_lock, NULL, MUTEX_DRIVER, NULL); in i_mac_constructor() 541 mutex_init(&mip->mi_ring_lock, NULL, MUTEX_DEFAULT, NULL); in i_mac_constructor() 543 mip->mi_notify_cb_info.mcbi_lockp = &mip->mi_notify_lock; in i_mac_constructor() 544 cv_init(&mip->mi_notify_cb_info.mcbi_cv, NULL, CV_DRIVER, NULL); in i_mac_constructor() 545 mip->mi_promisc_cb_info.mcbi_lockp = &mip->mi_promisc_lock; in i_mac_constructor() 546 cv_init(&mip->mi_promisc_cb_info.mcbi_cv, NULL, CV_DRIVER, NULL); in i_mac_constructor() [all …]
|
H A D | mac_hio.c | 45 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 D | mac_ndd.c | 94 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 D | mac_bcast.c | 123 mac_impl_t *mip = grp->mbg_mac_impl; in mac_bcast_grp_free() local 125 ASSERT(MAC_PERIM_HELD((mac_handle_t)mip)); in mac_bcast_grp_free() 128 kmem_free(grp->mbg_addr, mip->mi_type->mt_addr_length); in mac_bcast_grp_free() 131 mip->mi_bcast_ngrps--; in mac_bcast_grp_free() 145 mac_impl_t *mip = grp->mbg_mac_impl; in mac_bcast_send() local 152 rw_enter(&mip->mi_rw_lock, RW_READER); in mac_bcast_send() 201 rw_exit(&mip->mi_rw_lock); in mac_bcast_send() 212 rw_enter(&mip->mi_rw_lock, RW_READER); in mac_bcast_send() 231 rw_exit(&mip->mi_rw_lock); in mac_bcast_send() 236 rw_exit(&mip->mi_rw_lock); in mac_bcast_send() [all …]
|
H A D | mac_stat.c | 300 mac_impl_t *mip = ksp->ks_private; in i_mac_driver_stat_update() local 310 for (i = 0; i < mip->mi_kstat_count; i++, msi_index++) { in i_mac_driver_stat_update() 319 msi = mip->mi_type->mt_stats; in i_mac_driver_stat_update() 322 val = mac_stat_get((mac_handle_t)mip, msi[msi_index].msi_stat); in i_mac_driver_stat_update() 943 mac_driver_stat_create(mac_impl_t *mip) in mac_driver_stat_create() argument 948 major_t major = getmajor(mip->mi_phy_dev); in mac_driver_stat_create() 950 count = MAC_MOD_NKSTAT + MAC_NKSTAT + mip->mi_type->mt_statcount; in mac_driver_stat_create() 952 getminor(mip->mi_phy_dev) - 1, MAC_KSTAT_NAME, in mac_driver_stat_create() 958 ksp->ks_private = mip; in mac_driver_stat_create() 959 mip->mi_ksp = ksp; in mac_driver_stat_create() [all …]
|
H A D | mac_datapath_setup.c | 1638 mac_impl_t *mip = mcip->mci_mip; in mac_client_update_classifier() local 1643 ASSERT(MAC_PERIM_HELD((mac_handle_t)mip)); in mac_client_update_classifier() 1651 if (mip->mi_state_flags & MIS_POLL_DISABLE) in mac_client_update_classifier() 1676 flent->fe_cb_arg1 = (void *)mip; in mac_client_update_classifier() 2400 mac_impl_t *mip = mcip->mci_mip; in mac_rx_srs_group_setup() local 2416 flent->fe_cb_arg1 = (void *)mip; in mac_rx_srs_group_setup() 2641 mac_impl_t *mip = (mac_impl_t *)grp->mrg_mh; in mac_group_next_state() local 2670 if (rx_group && mip->mi_nactiveclients != 1) in mac_group_next_state() 2858 mac_impl_t *mip = mcip->mci_mip; in mac_datapath_setup() local 2877 ASSERT(MAC_PERIM_HELD((mac_handle_t)mip)); in mac_datapath_setup() [all …]
|
/titanic_41/usr/src/cmd/tail/ |
H A D | misc.c | 64 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 …]
|
/titanic_41/usr/src/cmd/sgs/librtld_db/demo/common/ |
H A D | maps.c | 66 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 D | syms.c | 211 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 D | ps.c | 281 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 D | dis.c | 75 map_info_t *mip; in print_address_ps() local 82 if ((mip = addr_to_map(ph, address)) != 0) { in print_address_ps() 83 (void) strcpy(buf, mip->mi_name); in print_address_ps()
|
/titanic_41/usr/src/common/smbclnt/ |
H A D | smbfs_ntacl.c | 761 struct mapinfo2uid *mip, in mkrq_idmap_sid2ux() argument 779 mip->mi_uid = (uid_t)-1; in mkrq_idmap_sid2ux() 780 mip->mi_isuser = IDM_EVERYONE; in mkrq_idmap_sid2ux() 781 mip->mi_status = 0; in mkrq_idmap_sid2ux() 788 mip->mi_isuser = req_type; in mkrq_idmap_sid2ux() 790 &mip->mi_uid, &mip->mi_status); in mkrq_idmap_sid2ux() 794 mip->mi_isuser = req_type; in mkrq_idmap_sid2ux() 796 &mip->mi_uid, &mip->mi_status); in mkrq_idmap_sid2ux() 801 &mip->mi_uid, &mip->mi_isuser, &mip->mi_status); in mkrq_idmap_sid2ux() 820 ntace2zace(ace_t *zacep, i_ntace_t *ntace, struct mapinfo2uid *mip) in ntace2zace() argument [all …]
|
/titanic_41/usr/src/cmd/fs.d/cachefs/cachefswssize/ |
H A D | cachefswssize.c | 65 mount_info *mip; in main() local 151 mip = stats_dbm_fetch_byvfsp(sc, vfsp); in main() 152 if (mip == NULL) in main() 154 if (! mip->mi_used) in main() 157 printf("\n %s\n", mip->mi_path); in main() 158 if (! mip->mi_mounted) in main() 160 printf("\t end size: %17lldk\n", mip->mi_current / 1024); in main() 161 printf("\thigh water size: %17lldk\n", mip->mi_high / 1024); in main() 162 free(mip); in main()
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | mac_impl.h | 146 #define MAC_PROMISC_WALKER_INC(mip) \ argument 147 MAC_CALLBACK_WALKER_INC(&(mip)->mi_promisc_cb_info) 149 #define MAC_PROMISC_WALKER_DCR(mip) { \ argument 152 mcbi = &(mip)->mi_promisc_cb_info; \ 155 i_mac_promisc_walker_cleanup(mip); \ 322 #define MAC_TX(mip, rh, mp, src_mcip) { \ argument 332 rhandle = (mip)->mi_default_tx_ring; \ 333 if (mip->mi_promisc_list != NULL) \ 334 mac_promisc_dispatch(mip, mp, src_mcip); \ 340 if (mip->mi_bridge_link == NULL) { \ [all …]
|
/titanic_41/usr/src/lib/libipmp/common/ |
H A D | ipmp_admin.c | 100 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()
|
/titanic_41/usr/src/lib/libipadm/common/ |
H A D | ipadm_prop.c | 1059 mod_ioc_prop_t *mip; in i_ipadm_get_prop() local 1065 if ((mip = calloc(1, iocsize)) == NULL) in i_ipadm_get_prop() 1068 mip->mpr_version = MOD_PROP_VERSION; in i_ipadm_get_prop() 1069 mip->mpr_flags = valtype; in i_ipadm_get_prop() 1070 mip->mpr_proto = proto; in i_ipadm_get_prop() 1072 (void) strlcpy(mip->mpr_ifname, ifname, in i_ipadm_get_prop() 1073 sizeof (mip->mpr_ifname)); in i_ipadm_get_prop() 1075 (void) strlcpy(mip->mpr_name, pname, sizeof (mip->mpr_name)); in i_ipadm_get_prop() 1076 mip->mpr_valsize = *bufsize; in i_ipadm_get_prop() 1078 if (i_ipadm_strioctl(iph->iph_sock, SIOCGETPROP, (char *)mip, in i_ipadm_get_prop() [all …]
|
/titanic_41/usr/src/uts/common/io/scsi/adapters/pmcs/ |
H A D | pmcs_fw_hdr.c | 53 _info(struct modinfo *mip) in _info() argument 55 return (mod_info(&modlinkage, mip)); in _info()
|
/titanic_41/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_fw_2200.c | 5924 _info(struct modinfo *mip) in _info() argument 5926 return (mod_info(&modlinkage, mip)); in _info()
|
H A D | ql_fw_2300.c | 7552 _info(struct modinfo *mip) in _info() argument 7554 return (mod_info(&modlinkage, mip)); in _info()
|
H A D | ql_fw_6322.c | 6958 _info(struct modinfo *mip) in _info() argument 6960 return (mod_info(&modlinkage, mip)); in _info()
|
H A D | ql_fw_2400.c | 15697 _info(struct modinfo *mip) in _info() argument 15699 return (mod_info(&modlinkage, mip)); in _info()
|
H A D | ql_fw_2500.c | 15021 _info(struct modinfo *mip) in _info() argument 15023 return (mod_info(&modlinkage, mip)); in _info()
|
/titanic_41/usr/src/cmd/fs.d/cachefs/common/ |
H A D | stats_log.c | 1656 mount_info *mi = NULL, *mip; in stats_log_compute_wssize() local 1704 mip = stats_dbm_fetch_byvfsp(st, vfsp); in stats_log_compute_wssize() 1705 if (mip == NULL) in stats_log_compute_wssize() 1708 len1 = strlen(mip->mi_path); in stats_log_compute_wssize() 1709 len2 = strlen(mip->mi_path + len1 + 1); in stats_log_compute_wssize() 1710 memcpy((caddr_t)mi, mip, sizeof (*mi) + in stats_log_compute_wssize() 1712 free(mip); in stats_log_compute_wssize() 1763 mip = stats_dbm_fetch_byvfsp(st, in stats_log_compute_wssize() 1765 if (mip == NULL) in stats_log_compute_wssize() 1767 mip->mi_mounted = 0; in stats_log_compute_wssize() [all …]
|