/titanic_50/usr/src/uts/sun4v/io/ |
H A D | vsw_phys.c | 85 static void vsw_mac_add_vlans(vsw_t *vswp, mac_client_handle_t mch, 87 static void vsw_mac_remove_vlans(mac_client_handle_t mch, vsw_vlanid_t *vids, 337 mac_client_handle_t mch; in vsw_mac_multicast_add() local 341 mch = (type == VSW_LOCALDEV) ? vswp->mch : port->p_mch; in vsw_mac_multicast_add() 343 if (mch != NULL) { in vsw_mac_multicast_add() 344 ret = mac_multicast_add(mch, mcst_p->mca.ether_addr_octet); in vsw_mac_multicast_add() 367 mac_client_handle_t mch; in vsw_mac_multicast_remove() local 370 mch = (type == VSW_LOCALDEV) ? vswp->mch : port->p_mch; in vsw_mac_multicast_remove() 372 if (mch != NULL && mcst_p->mac_added) { in vsw_mac_multicast_remove() 373 mac_multicast_remove(mch, mcst_p->mca.ether_addr_octet); in vsw_mac_multicast_remove() [all …]
|
H A D | vnet.c | 2693 mac_client_handle_t mch = NULL; in vnet_hio_mac_init() local 2726 rv = mac_client_open(mh, &mch, client_name, MAC_OPEN_FLAGS_EXCLUSIVE); in vnet_hio_mac_init() 2730 vnetp->hio_mch = mch; in vnet_hio_mac_init() 2732 rv = mac_unicast_add(mch, vnetp->curr_macaddr, mac_flags, &muh, 0, in vnet_hio_mac_init()
|
/titanic_50/usr/src/uts/common/io/mac/ |
H A D | mac_hio.c | 113 mac_share_bind(mac_client_handle_t mch, uint64_t cookie, uint64_t *rcookie) in mac_share_bind() argument 115 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_share_bind() 133 mac_tx_client_quiesce(mch); in mac_share_bind() 152 mac_tx_client_restart(mch); in mac_share_bind() 164 mac_share_unbind(mac_client_handle_t mch) in mac_share_unbind() argument 166 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_share_unbind()
|
H A D | mac_client.c | 467 mac_client_name(mac_client_handle_t mch) in mac_client_name() argument 469 return (((mac_client_impl_t *)mch)->mci_name); in mac_client_name() 483 mac_client_vid(mac_client_handle_t mch) in mac_client_vid() argument 486 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_client_vid() 505 mac_client_is_vlan_vnic(mac_client_handle_t mch) in mac_client_is_vlan_vnic() argument 507 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_client_is_vlan_vnic() 610 mac_client_stat_get(mac_client_handle_t mch, uint_t stat) in mac_client_stat_get() argument 612 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_client_stat_get() 925 mac_vnic_unicast_set(mac_client_handle_t mch, const uint8_t *addr) in mac_vnic_unicast_set() argument 927 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_vnic_unicast_set() [all …]
|
H A D | mac_flow.c | 397 mac_flow_add_subflow(mac_client_handle_t mch, flow_entry_t *flent, in mac_flow_add_subflow() argument 400 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_flow_add_subflow() 1122 mac_link_init_flows(mac_client_handle_t mch) in mac_link_init_flows() argument 1124 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_link_init_flows() 1138 mac_link_has_flows(mac_client_handle_t mch) in mac_link_has_flows() argument 1140 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_link_has_flows() 1158 mac_link_release_flows(mac_client_handle_t mch) in mac_link_release_flows() argument 1160 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_link_release_flows() 1187 mac_link_flow_init(mac_client_handle_t mch, flow_entry_t *sub_flow) in mac_link_flow_init() argument 1189 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_link_flow_init() [all …]
|
H A D | mac.c | 1324 mac_addr_factory_reserve(mac_client_handle_t mch, int *slot) in mac_addr_factory_reserve() argument 1326 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_addr_factory_reserve() 1379 mac_addr_factory_release(mac_client_handle_t mch, uint_t slot) in mac_addr_factory_release() argument 1381 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_addr_factory_release() 1487 mac_hwrings_get(mac_client_handle_t mch, mac_group_handle_t *hwgh, in mac_hwrings_get() argument 1490 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_hwrings_get() 1676 mac_hwring_send_priv(mac_client_handle_t mch, mac_ring_handle_t rh, mblk_t *mp) in mac_hwring_send_priv() argument 1678 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_hwring_send_priv() 2092 mac_srs_perm_quiesce(mac_client_handle_t mch, boolean_t on) in mac_srs_perm_quiesce() argument 2094 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_srs_perm_quiesce() [all …]
|
H A D | mac_util.c | 823 mac_client_set_intr_cpu(void *arg, mac_client_handle_t mch, int32_t cpuid) in mac_client_set_intr_cpu() argument 826 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_client_set_intr_cpu() 847 mac_client_intr_cpu(mac_client_handle_t mch) in mac_client_intr_cpu() argument 849 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_client_intr_cpu()
|
H A D | mac_protect.c | 2342 mac_protect_check(mac_client_handle_t mch, mblk_t *mp) in mac_protect_check() argument 2344 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_protect_check() 2371 mac_protect_enabled(mac_client_handle_t mch, uint32_t type) in mac_protect_enabled() argument 2373 return (MAC_PROTECT_ENABLED((mac_client_impl_t *)mch, type)); in mac_protect_enabled() 2497 mac_protect_set(mac_client_handle_t mch, mac_resource_props_t *mrp) in mac_protect_set() argument 2499 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_protect_set()
|
H A D | mac_sched.c | 4300 mac_tx_send(mac_client_handle_t mch, mac_ring_handle_t ring, mblk_t *mp_chain, in mac_tx_send() argument 4303 mac_client_impl_t *src_mcip = (mac_client_impl_t *)mch; in mac_tx_send() 4314 vid = mac_client_vid(mch); in mac_tx_send()
|
/titanic_50/usr/src/cmd/mdb/common/modules/crypto/ |
H A D | common.c | 47 crypto_mechanism_t mch; in crypto_mechanism() local 52 if (mdb_vread(&mch, sizeof (crypto_mechanism_t), addr) == -1) { in crypto_mechanism() 57 mdb_printf("cm_type\t%ll#x\n", mch.cm_type); in crypto_mechanism() 58 mdb_printf("cm_param\t%p\n", mch.cm_param); in crypto_mechanism() 59 mdb_printf("cm_param_len\t%u\n", mch.cm_param_len); in crypto_mechanism()
|
/titanic_50/usr/src/uts/common/inet/sockmods/ |
H A D | sockmod_pfp.c | 586 mac_client_handle_t mch; in sdpfp_bind() local 600 error = pfp_open_index(addr_ll->sll_ifindex, &mh, &mch, cred); in sdpfp_bind() 609 pfp_close(mh, mch); in sdpfp_bind() 613 ps->ps_mch = mch; in sdpfp_bind() 739 mac_client_handle_t mch; in sdpfp_senduio() local 754 mch = ps->ps_mch; in sdpfp_senduio() 789 error = pfp_open_index(sol->sll_ifindex, &mh, &mch, in sdpfp_senduio() 837 error = mac_tx(mch, mp, 0, MAC_DROP_ON_NO_DESC, NULL); in sdpfp_senduio() 848 ASSERT(mch != ps->ps_mch); in sdpfp_senduio() 850 pfp_close(mh, mch); in sdpfp_senduio() [all …]
|
/titanic_50/usr/src/cmd/picl/plugins/common/memcfg/ |
H A D | piclmemcfg_comm.c | 132 picl_nodehdl_t mch; member 160 del_plugout_mmodgrp(picl_nodehdl_t mch) in del_plugout_mmodgrp() argument 167 if (mmghdl->mch == mch) { in del_plugout_mmodgrp() 228 mmghdl->mch = mmghdl->mmgh = NULL; in undo_phymem_tree() 554 create_physical_tree(picl_nodehdl_t mch, void *args) in create_physical_tree() argument 570 err = ptree_get_propval_by_name(mch, OBP_PROP_PORTID, &portid, in create_physical_tree() 617 err = ptree_create_and_add_node(mch, PICL_NAME_MEM_MOD_GROUP, in create_physical_tree() 635 mmghdl->mch = mch; in create_physical_tree()
|
/titanic_50/usr/src/cmd/picl/plugins/sun4u/grover/memcfg/ |
H A D | piclmemcfg.c | 206 picl_nodehdl_t mch, memmodh; in create_physical_tree() local 216 PICL_CLASS_MEMORY_CONTROLLER, &mch); in create_physical_tree() 232 err = ptree_create_and_add_node(mch, PICL_NAME_MEMORY_MODULE, in create_physical_tree() 282 (void) ptree_delete_node(mch); in create_physical_tree() 283 (void) ptree_destroy_node(mch); in create_physical_tree()
|
/titanic_50/usr/src/uts/intel/io/mc-amd/ |
H A D | mcamd_subr.c | 59 mc_hdr_t *mch = (mc_hdr_t *)node; in nodetype() local 60 return (mch->mch_type); in nodetype() 66 mc_hdr_t *mch = (mc_hdr_t *)node; in node2type() local 67 ASSERT(mch->mch_type == type); in node2type() 68 return (mch); in node2type() 276 mc_hdr_t *mch = (mc_hdr_t *)node; in findoffset() local 277 int nt = mch->mch_type; in findoffset()
|
/titanic_50/usr/src/uts/common/io/aggr/ |
H A D | aggr_port.c | 136 mac_client_handle_t mch = NULL; in aggr_port_create() local 187 if ((err = mac_client_open(mh, &mch, client_name, in aggr_port_create() 207 if ((err = mac_unicast_add(mch, NULL, MAC_UNICAST_PRIMARY | in aggr_port_create() 219 port->lp_mch = mch; in aggr_port_create() 262 if (mch != NULL) in aggr_port_create() 263 mac_client_close(mch, MAC_CLOSE_FLAGS_EXCLUSIVE); in aggr_port_create()
|
/titanic_50/usr/src/lib/libprtdiag_psr/sparc/schumacher/common/ |
H A D | schumacher.c | 1241 find_memory_module_group(picl_nodehdl_t mch, int *print_header) in find_memory_module_group() argument 1248 mcid = picldiag_get_uint_propval(mch, OBP_PROP_PORTID, &err); in find_memory_module_group() 1254 err = picl_get_propval_by_name(mch, PICL_PROP_CHILD, in find_memory_module_group() 1294 picl_nodehdl_t mch; in print_memory_module_group_table() local 1304 err = picl_get_propval_by_name(plafh, PICL_PROP_CHILD, &mch, in print_memory_module_group_table() 1307 err = picl_get_propval_by_name(mch, PICL_PROP_CLASSNAME, in print_memory_module_group_table() 1313 err = print_memory_module_group_table(mch); in print_memory_module_group_table() 1316 err = picl_get_propval_by_name(mch, PICL_PROP_PEER, in print_memory_module_group_table() 1317 &mch, sizeof (picl_nodehdl_t)); in print_memory_module_group_table() 1321 err = find_memory_module_group(mch, &print_header); in print_memory_module_group_table() [all …]
|
/titanic_50/usr/src/lib/libprtdiag_psr/sparc/desktop/common/ |
H A D | picldiag.c | 1334 find_memory_module_group(picl_nodehdl_t mch, int *print_header) in find_memory_module_group() argument 1341 mcid = picldiag_get_uint_propval(mch, OBP_PROP_PORTID, &err); in find_memory_module_group() 1347 err = picl_get_propval_by_name(mch, PICL_PROP_CHILD, in find_memory_module_group() 1387 picl_nodehdl_t mch; in print_memory_module_group_table() local 1397 err = picl_get_propval_by_name(plafh, PICL_PROP_CHILD, &mch, in print_memory_module_group_table() 1400 err = picl_get_propval_by_name(mch, PICL_PROP_CLASSNAME, in print_memory_module_group_table() 1406 err = print_memory_module_group_table(mch); in print_memory_module_group_table() 1409 err = picl_get_propval_by_name(mch, PICL_PROP_PEER, in print_memory_module_group_table() 1410 &mch, sizeof (picl_nodehdl_t)); in print_memory_module_group_table() 1414 err = find_memory_module_group(mch, &print_header); in print_memory_module_group_table() [all …]
|
/titanic_50/usr/src/lib/libprtdiag_psr/sparc/lw8/common/ |
H A D | lw8.c | 1351 find_memory_module_group(picl_nodehdl_t mch, int *print_header) in find_memory_module_group() argument 1358 mcid = picldiag_get_uint_propval(mch, OBP_PROP_PORTID, &err); in find_memory_module_group() 1364 err = picl_get_propval_by_name(mch, PICL_PROP_CHILD, in find_memory_module_group() 1404 picl_nodehdl_t mch; in print_memory_module_group_table() local 1414 err = picl_get_propval_by_name(plafh, PICL_PROP_CHILD, &mch, in print_memory_module_group_table() 1417 err = picl_get_propval_by_name(mch, PICL_PROP_CLASSNAME, in print_memory_module_group_table() 1423 err = print_memory_module_group_table(mch); in print_memory_module_group_table() 1426 err = picl_get_propval_by_name(mch, PICL_PROP_PEER, in print_memory_module_group_table() 1427 &mch, sizeof (picl_nodehdl_t)); in print_memory_module_group_table() 1431 err = find_memory_module_group(mch, &print_header); in print_memory_module_group_table() [all …]
|
/titanic_50/usr/src/uts/common/io/bpf/ |
H A D | bpf.c | 338 uintptr_t mch; in bpf_detachd() local 342 mch = d->bd_mcip; in bpf_detachd() 377 if (mch != 0) in bpf_detachd() 378 MBPF_CLIENT_CLOSE(&d->bd_mac, mch); in bpf_detachd() 707 uintptr_t mch; in bpfwrite() local 740 mch = d->bd_mcip; in bpfwrite() 762 error = MBPF_TX(&d->bd_mac, mch, m); in bpfwrite()
|
/titanic_50/usr/src/uts/sun4v/sys/ |
H A D | vsw.h | 156 mac_client_handle_t mch; /* mac client handle */ member
|
/titanic_50/usr/src/cmd/picl/plugins/common/devtree/ |
H A D | picldevtree.c | 280 picl_nodehdl_t mch; in mc_completion_handler() local 285 mch = NULL; in mc_completion_handler() 287 PICLEVENTARG_NODEHANDLE, &mch); in mc_completion_handler() 288 if (mch != NULL) { in mc_completion_handler() 292 mch); in mc_completion_handler() 293 (void) ptree_destroy_node(mch); in mc_completion_handler() 306 post_mc_event(char *ename, picl_nodehdl_t mch) in post_mc_event() argument 323 if (nvlist_add_uint64(nvl, PICLEVENTARG_NODEHANDLE, mch) || in post_mc_event() 333 ev_name, mch); in post_mc_event()
|
/titanic_50/usr/src/uts/common/io/dld/ |
H A D | dld_str.c | 1766 mac_client_handle_t mch = dsp->ds_mch; in str_notify() local 1836 switch (mac_client_stat_get(mch, dsp->ds_lowlink ? in str_notify()
|