/titanic_41/usr/src/uts/common/io/mac/ |
H A D | mac_protect.c | 346 find_dhcpv4_pending_txn(mac_client_impl_t *mcip, uint32_t xid) in find_dhcpv4_pending_txn() argument 350 ASSERT(MUTEX_HELD(&mcip->mci_protect_lock)); in find_dhcpv4_pending_txn() 352 return (avl_find(&mcip->mci_v4_pending_txn, &tmp_txn, NULL)); in find_dhcpv4_pending_txn() 356 insert_dhcpv4_pending_txn(mac_client_impl_t *mcip, dhcpv4_txn_t *txn) in insert_dhcpv4_pending_txn() argument 360 ASSERT(MUTEX_HELD(&mcip->mci_protect_lock)); in insert_dhcpv4_pending_txn() 361 if (avl_find(&mcip->mci_v4_pending_txn, txn, &where) != NULL) in insert_dhcpv4_pending_txn() 364 if (avl_numnodes(&mcip->mci_v4_pending_txn) >= dhcp_max_pending_txn) { in insert_dhcpv4_pending_txn() 365 BUMP_STAT(mcip, dhcpdropped); in insert_dhcpv4_pending_txn() 368 avl_insert(&mcip->mci_v4_pending_txn, txn, where); in insert_dhcpv4_pending_txn() 373 remove_dhcpv4_pending_txn(mac_client_impl_t *mcip, dhcpv4_txn_t *txn) in remove_dhcpv4_pending_txn() argument [all …]
|
H A D | mac_client.c | 169 mac_client_impl_t *mcip = buf; in i_mac_client_impl_ctor() local 172 mutex_init(&mcip->mci_tx_cb_lock, NULL, MUTEX_DRIVER, NULL); in i_mac_client_impl_ctor() 173 mcip->mci_tx_notify_cb_info.mcbi_lockp = &mcip->mci_tx_cb_lock; in i_mac_client_impl_ctor() 177 mutex_init(&mcip->mci_tx_pcpu[i].pcpu_tx_lock, NULL, in i_mac_client_impl_ctor() 180 cv_init(&mcip->mci_tx_cv, NULL, CV_DRIVER, NULL); in i_mac_client_impl_ctor() 190 mac_client_impl_t *mcip = buf; in i_mac_client_impl_dtor() local 192 ASSERT(mcip->mci_promisc_list == NULL); in i_mac_client_impl_dtor() 193 ASSERT(mcip->mci_unicast_list == NULL); in i_mac_client_impl_dtor() 194 ASSERT(mcip->mci_state_flags == 0); in i_mac_client_impl_dtor() 195 ASSERT(mcip->mci_tx_flag == 0); in i_mac_client_impl_dtor() [all …]
|
H A D | mac_hio.c | 56 i_mac_share_alloc(mac_client_impl_t *mcip) in i_mac_share_alloc() argument 58 mac_impl_t *mip = mcip->mci_mip; in i_mac_share_alloc() 63 ASSERT(mcip->mci_share == NULL); in i_mac_share_alloc() 65 if (mac_share_capable((mac_handle_t)mcip->mci_mip) == 0) { in i_mac_share_alloc() 67 mac_client_impl_t *, mcip); in i_mac_share_alloc() 73 &mcip->mci_share); in i_mac_share_alloc() 74 DTRACE_PROBE3(i__mac__share__alloc, mac_client_impl_t *, mcip, in i_mac_share_alloc() 75 int, rv, mac_share_handle_t, mcip->mci_share); in i_mac_share_alloc() 77 mcip->mci_state_flags &= ~MCIS_SHARE_BOUND; in i_mac_share_alloc() 88 i_mac_share_free(mac_client_impl_t *mcip) in i_mac_share_free() argument [all …]
|
H A D | mac.c | 860 mac_client_impl_t *mcip; in i_mac_perim_enter() local 867 mcip = mac_vnic_lower(mip); in i_mac_perim_enter() 868 mip = mcip->mci_mip; in i_mac_perim_enter() 922 mac_client_impl_t *mcip; in i_mac_perim_exit() local 929 mcip = mac_vnic_lower(mip); in i_mac_perim_exit() 930 mip = mcip->mci_mip; in i_mac_perim_exit() 951 mac_client_impl_t *mcip; in mac_perim_held() local 958 mcip = mac_vnic_lower(mip); in mac_perim_held() 959 mip = mcip->mci_mip; in mac_perim_held() 1329 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_addr_factory_reserve() local [all …]
|
H A D | mac_datapath_setup.c | 188 #define RETARGETABLE_CLIENT(group, mcip) \ argument 191 mac_is_primary_client(mcip)) 315 mac_srs_client_poll_quiesce(mac_client_impl_t *mcip, in mac_srs_client_poll_quiesce() argument 320 ASSERT(MAC_PERIM_HELD((mac_handle_t)mcip->mci_mip)); in mac_srs_client_poll_quiesce() 331 mcip->mci_resource_quiesce(mcip->mci_resource_arg, in mac_srs_client_poll_quiesce() 338 mac_srs_client_poll_restart(mac_client_impl_t *mcip, in mac_srs_client_poll_restart() argument 343 ASSERT(MAC_PERIM_HELD((mac_handle_t)mcip->mci_mip)); in mac_srs_client_poll_restart() 354 mcip->mci_resource_restart(mcip->mci_resource_arg, in mac_srs_client_poll_restart() 366 mac_srs_client_poll_enable(mac_client_impl_t *mcip, in mac_srs_client_poll_enable() argument 372 ASSERT(mac_srs->srs_mcip == mcip); in mac_srs_client_poll_enable() [all …]
|
H A D | mac_flow.c | 370 mac_client_impl_t *mcip = ft->ft_mcip; in mac_flow_rem_subflow() local 383 mcip->mci_subflow_tab = NULL; in mac_flow_rem_subflow() 387 mac_link_flow_clean((mac_client_handle_t)mcip, flent); in mac_flow_rem_subflow() 400 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_flow_add_subflow() local 401 mac_handle_t mh = (mac_handle_t)mcip->mci_mip; in mac_flow_add_subflow() 417 ft = mcip->mci_subflow_tab; in mac_flow_add_subflow() 430 mcip->mci_mip, &ft); in mac_flow_add_subflow() 444 ASSERT(MCIP_DATAPATH_SETUP(mcip)); in mac_flow_add_subflow() 445 err = mac_link_flow_init((mac_client_handle_t)mcip, flent); in mac_flow_add_subflow() 457 ASSERT(mcip->mci_subflow_tab == NULL); in mac_flow_add_subflow() [all …]
|
H A D | mac_bcast.c | 263 mac_bcast_add(mac_client_impl_t *mcip, const uint8_t *addr, uint16_t vid, in mac_bcast_add() argument 266 mac_impl_t *mip = mcip->mci_mip; in mac_bcast_add() 317 prev_mci_addr = &mcip->mci_mcast_addrs; in mac_bcast_add() 439 if (grp->mbg_clients[i].mgb_client == mcip) { in mac_bcast_add() 469 grp->mbg_clients[index].mgb_client = mcip; in mac_bcast_add() 503 mac_bcast_delete(mac_client_impl_t *mcip, const uint8_t *addr, uint16_t vid) in mac_bcast_delete() argument 505 mac_impl_t *mip = mcip->mci_mip; in mac_bcast_delete() 536 if (grp->mbg_clients[i].mgb_client == mcip) in mac_bcast_delete() 572 mprev = &mcip->mci_mcast_addrs; in mac_bcast_delete() 573 for (maddr = mcip->mci_mcast_addrs; maddr != NULL; in mac_bcast_delete() [all …]
|
H A D | mac_sched.c | 1510 mac_client_impl_t *mcip = mac_srs->srs_mcip; in mac_rx_srs_proto_fanout() local 1512 is_ether = (mcip->mci_mip->mi_info.mi_nativemedia == DL_ETHER); in mac_rx_srs_proto_fanout() 1532 ((mcip->mci_state_flags & MCIS_RX_BYPASS_DISABLE) == 0); in mac_rx_srs_proto_fanout() 1575 if (!mac_client_check_flow_vid(mcip, in mac_rx_srs_proto_fanout() 1589 if (mac_header_info((mac_handle_t)mcip->mci_mip, in mac_rx_srs_proto_fanout() 1611 if (hw_classified && mcip->mci_promisc_list != NULL) { in mac_rx_srs_proto_fanout() 1614 rw_enter(&mcip->mci_rw_lock, RW_READER); in mac_rx_srs_proto_fanout() 1615 map = mcip->mci_unicast; in mac_rx_srs_proto_fanout() 1619 rw_exit(&mcip->mci_rw_lock); in mac_rx_srs_proto_fanout() 1689 mac_rx_soft_ring_process(mcip, softring, in mac_rx_srs_proto_fanout() [all …]
|
H A D | mac_soft_ring.c | 150 pri_t pri, mac_client_impl_t *mcip, mac_soft_ring_set_t *mac_srs, in mac_soft_ring_create() argument 183 ringp->s_ring_mcip = mcip; in mac_soft_ring_create() 209 if (mcip->mci_state_flags & MCIS_IS_AGGR) { in mac_soft_ring_create() 710 mac_client_impl_t *mcip = ringp->s_ring_mcip; in mac_tx_soft_ring_drain() local 721 mac_tx_invoke_callbacks(mcip, (mac_tx_cookie_t)ringp); in mac_tx_soft_ring_drain() 727 mac_tx_notify(mcip->mci_upper_mip != NULL ? in mac_tx_soft_ring_drain() 728 mcip->mci_upper_mip : mcip->mci_mip); in mac_tx_soft_ring_drain()
|
H A D | mac_stat.c | 682 mac_client_impl_t *mcip = flent->fe_mcip; in i_mac_misc_stat_get() local 683 mac_misc_stats_t *mac_misc_stat = &mcip->mci_misc_stat; in i_mac_misc_stat_get() 1158 mac_client_impl_t *mcip = mac_srs->srs_mcip; in mac_srs_stat_delete() local 1159 mac_misc_stats_t *mac_misc_stat = &mcip->mci_misc_stat; in mac_srs_stat_delete() 1194 mac_client_impl_t *mcip = mac_srs->srs_mcip; in mac_soft_ring_stat_delete() local 1195 mac_misc_stats_t *mac_misc_stat = &mcip->mci_misc_stat; in mac_soft_ring_stat_delete() 1237 mac_stat_rename(mac_client_impl_t *mcip) in mac_stat_rename() argument 1239 flow_entry_t *flent = mcip->mci_flent; in mac_stat_rename() 1280 mac_client_impl_t *mcip = tx_srs->srs_mcip; in mac_tx_srs_stat_recreate() local 1281 mac_misc_stats_t *mac_misc_stat = &mcip->mci_misc_stat; in mac_tx_srs_stat_recreate()
|
H A D | mac_util.c | 826 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_client_set_intr_cpu() local 829 flow_entry_t *flent = mcip->mci_flent; in mac_client_set_intr_cpu() 835 mac_perim_enter_by_mh((mac_handle_t)mcip->mci_mip, &mph); in mac_client_set_intr_cpu() 836 mrp = MCIP_RESOURCE_PROPS(mcip); in mac_client_set_intr_cpu() 849 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_client_intr_cpu() local 852 flow_entry_t *flent = mcip->mci_flent; in mac_client_intr_cpu() 853 mac_resource_props_t *mrp = MCIP_RESOURCE_PROPS(mcip); in mac_client_intr_cpu() 862 if (mac_is_primary_client(mcip) && flent->fe_rx_srs_cnt == 2) { in mac_client_intr_cpu()
|
H A D | mac_provider.c | 993 mac_client_impl_t *mcip; in mac_ring_intr_retarget() local 999 if (((mcip = MAC_GROUP_ONLY_CLIENT(group)) != NULL) && in mac_ring_intr_retarget() 1003 flent = mcip->mci_flent; in mac_ring_intr_retarget()
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | mac_client_impl.h | 211 #define MCIP_TX_SRS(mcip) \ argument 212 ((mcip)->mci_flent == NULL ? NULL : (mcip)->mci_flent->fe_tx_srs) 216 #define MCIP_DATAPATH_SETUP(mcip) \ argument 217 ((mcip)->mci_flent == NULL ? B_FALSE : \ 218 !((mcip)->mci_flent->fe_flags & FE_MC_NO_DATAPATH)) 220 #define MCIP_RESOURCE_PROPS(mcip) \ argument 221 ((mcip)->mci_flent == NULL ? NULL : \ 222 &(mcip)->mci_flent->fe_resource_props) 224 #define MCIP_EFFECTIVE_PROPS(mcip) \ argument 225 (mcip->mci_flent == NULL ? NULL : \ [all …]
|
H A D | mac_impl.h | 714 #define MAC_PROTECT_ENABLED(mcip, type) \ argument 715 (((mcip)->mci_flent-> \ 717 ((mcip)->mci_flent-> \
|
/titanic_41/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_ctf.c | 197 mdb_ctf_impl_t *mcip = (mdb_ctf_impl_t *)p; in set_ctf_id() local 199 mcip->mci_fp = fp; in set_ctf_id() 200 mcip->mci_id = id; in set_ctf_id() 321 mdb_ctf_impl_t *mcip = (mdb_ctf_impl_t *)p; in mdb_ctf_lookup_by_name() local 324 if (mcip == NULL) in mdb_ctf_lookup_by_name() 327 if ((fp = name_to_type(t, name, &mcip->mci_id)) == NULL) { in mdb_ctf_lookup_by_name() 332 mcip->mci_fp = fp; in mdb_ctf_lookup_by_name() 342 mdb_ctf_impl_t *mcip = (mdb_ctf_impl_t *)p; in mdb_ctf_lookup_by_symbol() local 345 if (mcip == NULL) in mdb_ctf_lookup_by_symbol() 358 if ((mcip->mci_id = ctf_lookup_by_symbol(fp, sip->sym_id)) == CTF_ERR) { in mdb_ctf_lookup_by_symbol() [all …]
|
/titanic_41/usr/src/uts/common/io/bpf/ |
H A D | bpf.c | 247 uintptr_t mcip; in bpf_attachd() local 260 mcip = 0; in bpf_attachd() 266 error = MBPF_CLIENT_OPEN(bpr, mh, &mcip); in bpf_attachd() 292 if (mcip != 0) { in bpf_attachd() 293 MBPF_CLIENT_CLOSE(bpr, mcip); in bpf_attachd() 294 mcip = 0; in bpf_attachd() 315 d->bd_mcip = mcip; in bpf_attachd() 321 (void) strlcpy(d->bd_ifname, MBPF_CLIENT_NAME(&d->bd_mac, mcip), in bpf_attachd() 1688 uintptr_t mcip; in bpf_getdltlist() local 1696 mcip = 0; in bpf_getdltlist() [all …]
|
/titanic_41/usr/src/cmd/mdb/common/modules/mac/ |
H A D | mac.c | 199 mac_client_impl_t mcip; in mac_flow_dcmd_output() local 216 bzero(&mcip, sizeof (mcip)); in mac_flow_dcmd_output() 218 if (fe.fe_mcip != NULL && mdb_vread(&mcip, sizeof (mcip), in mac_flow_dcmd_output() 219 (uintptr_t)fe.fe_mcip) == sizeof (mcip)) { in mac_flow_dcmd_output() 220 (void) mdb_vread(&mip, sizeof (mip), (uintptr_t)mcip.mci_mip); in mac_flow_dcmd_output() 227 mcip.mci_mip, mip.mi_name); in mac_flow_dcmd_output()
|
/titanic_41/usr/src/uts/i86xpv/cpu/generic_cpu/ |
H A D | gcpu_mca_xpv.c | 248 struct mc_info **mcip = (struct mc_info **) in mctelem_traverse() local 251 gcpu_xpv_mci_process(*mcip, in mctelem_traverse()
|
/titanic_41/usr/src/uts/i86pc/cpu/generic_cpu/ |
H A D | gcpu_mca.c | 634 int mcip = mcg & MCG_STATUS_MCIP; in gcpu_ereport_add_logout() local 709 DATA_TYPE_BOOLEAN_VALUE, mcip ? B_TRUE : B_FALSE, NULL); in gcpu_ereport_add_logout() 716 if (mcip && members & FM_EREPORT_PAYLOAD_FLAG_IP && in gcpu_ereport_add_logout() 725 if (mcip && members & FM_EREPORT_PAYLOAD_FLAG_PRIV) { in gcpu_ereport_add_logout()
|
/titanic_41/usr/src/uts/common/inet/sockmods/ |
H A D | sockmod_pfp.c | 1419 pfp_open_index(int index, mac_handle_t *mhp, mac_client_handle_t *mcip, in pfp_open_index() argument 1454 *mcip = mch; in pfp_open_index()
|