/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vsw_phys.c | 341 mch = (type == VSW_LOCALDEV) ? vswp->mch : port->p_mch; in vsw_mac_multicast_add() 343 if (mch != NULL) { in vsw_mac_multicast_add() 370 mch = (type == VSW_LOCALDEV) ? vswp->mch : port->p_mch; in vsw_mac_multicast_remove() 394 mch = vswp->mch; in vsw_mac_multicast_add_all() 404 if (mch == NULL) in vsw_mac_multicast_add_all() 436 mch = vswp->mch; in vsw_mac_multicast_remove_all() 446 if (mch == NULL) in vsw_mac_multicast_remove_all() 847 mch = vswp->mch; in vsw_unset_hw_addr() 853 if (mch == NULL) { in vsw_unset_hw_addr() 956 mch = (caller == VSW_LOCALDEV) ? vswp->mch : port->p_mch; in vsw_tx_msg() [all …]
|
H A D | vnet.c | 2694 mac_client_handle_t mch = NULL; in vnet_hio_mac_init() local 2727 rv = mac_client_open(mh, &mch, client_name, MAC_OPEN_FLAGS_EXCLUSIVE); in vnet_hio_mac_init() 2731 vnetp->hio_mch = mch; in vnet_hio_mac_init() 2733 rv = mac_unicast_add(mch, vnetp->curr_macaddr, mac_flags, &muh, 0, in vnet_hio_mac_init()
|
/illumos-gate/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 | 1610 mac_rx_client_quiesce(mch); in mac_rx_set() 1614 mac_rx_client_restart(mch); in mac_rx_set() 1632 mac_rx_clear(mac_client_handle_t mch) in mac_rx_clear() argument 1634 mac_rx_set(mch, mac_rx_def, NULL); in mac_rx_clear() 1647 mac_rx_client_quiesce(mch); in mac_rx_barrier() 1648 mac_rx_client_restart(mch); in mac_rx_barrier() 2914 mac_rx_set(mch, rx_fn, arg); in mac_unicast_add_set_rx() 2957 mac_link_release_flows(mch); in mac_client_datapath_teardown() 3609 mac_client_vid(mch)); in mac_tx() 4040 err = mac_cpu_set(mch, mrp); in mac_client_set_resources() [all …]
|
H A D | mac_flow.c | 401 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_flow_add_subflow() 1123 mac_link_init_flows(mac_client_handle_t mch) in mac_link_init_flows() argument 1125 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_link_init_flows() 1139 mac_link_has_flows(mac_client_handle_t mch) in mac_link_has_flows() argument 1141 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_link_has_flows() 1159 mac_link_release_flows(mac_client_handle_t mch) in mac_link_release_flows() argument 1161 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_link_release_flows() 1190 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_link_flow_init() 1194 ASSERT(mch != NULL); in mac_link_flow_init() 1324 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_link_flow_clean() [all …]
|
H A D | mac.c | 1413 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_addr_factory_reserve() 1468 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_addr_factory_release() 1577 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_hwrings_get() 1754 mac_client_clear_flow_cb(mac_client_handle_t mch) in mac_client_clear_flow_cb() argument 2445 mac_rx_client_quiesce(mac_client_handle_t mch) in mac_rx_client_quiesce() argument 2461 mac_rx_client_restart(mac_client_handle_t mch) in mac_rx_client_restart() argument 2563 mac_tx_client_quiesce(mac_client_handle_t mch) in mac_tx_client_quiesce() argument 2565 i_mac_tx_client_quiesce(mch, SRS_QUIESCE); in mac_tx_client_quiesce() 2569 mac_tx_client_condemn(mac_client_handle_t mch) in mac_tx_client_condemn() argument 2571 i_mac_tx_client_quiesce(mch, SRS_CONDEMNED); in mac_tx_client_condemn() [all …]
|
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_util.c | 1929 mac_client_set_intr_cpu(void *arg, mac_client_handle_t mch, int32_t cpuid) in mac_client_set_intr_cpu() argument 1932 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_client_set_intr_cpu() 1953 mac_client_intr_cpu(mac_client_handle_t mch) in mac_client_intr_cpu() argument 1955 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_client_intr_cpu()
|
H A D | mac_sched.c | 4311 mac_tx_send(mac_client_handle_t mch, mac_ring_handle_t ring, mblk_t *mp_chain, in mac_tx_send() argument 4314 mac_client_impl_t *src_mcip = (mac_client_impl_t *)mch; in mac_tx_send() 4325 vid = mac_client_vid(mch); in mac_tx_send()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/crypto/ |
H A D | common.c | 45 crypto_mechanism_t mch; in crypto_mechanism() local 50 if (mdb_vread(&mch, sizeof (crypto_mechanism_t), addr) == -1) { in crypto_mechanism() 55 mdb_printf("cm_type\t%ll#x\n", mch.cm_type); in crypto_mechanism() 56 mdb_printf("cm_param\t%p\n", mch.cm_param); in crypto_mechanism() 57 mdb_printf("cm_param_len\t%u\n", mch.cm_param_len); in crypto_mechanism()
|
/illumos-gate/usr/src/uts/common/inet/sockmods/ |
H A D | sockmod_pfp.c | 586 mac_client_handle_t mch; in sdpfp_bind() local 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() 850 pfp_close(mh, mch); in sdpfp_senduio() 1422 mac_client_handle_t mch; in pfp_open_index() local 1429 mch = 0; in pfp_open_index() 1454 *mcip = mch; in pfp_open_index() 1459 if (mch != 0) in pfp_open_index() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/common/memcfg/ |
H A D | piclmemcfg_comm.c | 134 picl_nodehdl_t mch; member 162 del_plugout_mmodgrp(picl_nodehdl_t mch) in del_plugout_mmodgrp() argument 169 if (mmghdl->mch == mch) { in del_plugout_mmodgrp() 230 mmghdl->mch = mmghdl->mmgh = 0; in undo_phymem_tree() 556 create_physical_tree(picl_nodehdl_t mch, void *args) in create_physical_tree() argument 572 err = ptree_get_propval_by_name(mch, OBP_PROP_PORTID, &portid, in create_physical_tree() 619 err = ptree_create_and_add_node(mch, PICL_NAME_MEM_MOD_GROUP, in create_physical_tree() 637 mmghdl->mch = mch; in create_physical_tree()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/grover/memcfg/ |
H A D | piclmemcfg.c | 204 picl_nodehdl_t mch, memmodh; in create_physical_tree() local 214 PICL_CLASS_MEMORY_CONTROLLER, &mch); in create_physical_tree() 230 err = ptree_create_and_add_node(mch, PICL_NAME_MEMORY_MODULE, in create_physical_tree() 280 (void) ptree_delete_node(mch); in create_physical_tree() 281 (void) ptree_destroy_node(mch); in create_physical_tree()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/uts/common/io/aggr/ |
H A D | aggr_port.c | 137 mac_client_handle_t mch = NULL; in aggr_port_create() local 188 if ((err = mac_client_open(mh, &mch, client_name, in aggr_port_create() 208 if ((err = mac_unicast_add(mch, NULL, MAC_UNICAST_PRIMARY | in aggr_port_create() 220 port->lp_mch = mch; in aggr_port_create() 263 if (mch != NULL) in aggr_port_create() 264 mac_client_close(mch, MAC_CLOSE_FLAGS_EXCLUSIVE); in aggr_port_create()
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/schumacher/common/ |
H A D | schumacher.c | 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 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() 1325 err = picl_get_propval_by_name(mch, PICL_PROP_PEER, in print_memory_module_group_table() 1326 &mch, sizeof (picl_nodehdl_t)); in print_memory_module_group_table() 1343 picl_nodehdl_t mch; in print_bank_table() local 1380 PICL_PROP_PARENT, &mch, sizeof (picl_nodehdl_t)); in print_bank_table() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/desktop/common/ |
H A D | picldiag.c | 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 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() 1418 err = picl_get_propval_by_name(mch, PICL_PROP_PEER, in print_memory_module_group_table() 1419 &mch, sizeof (picl_nodehdl_t)); in print_memory_module_group_table() 1436 picl_nodehdl_t mch; in print_bank_table() local 1473 PICL_PROP_PARENT, &mch, sizeof (picl_nodehdl_t)); in print_bank_table() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/lw8/common/ |
H A D | lw8.c | 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 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() 1435 err = picl_get_propval_by_name(mch, PICL_PROP_PEER, in print_memory_module_group_table() 1436 &mch, sizeof (picl_nodehdl_t)); in print_memory_module_group_table() 1453 picl_nodehdl_t mch; in print_bank_table() local 1490 PICL_PROP_PARENT, &mch, sizeof (picl_nodehdl_t)); in print_bank_table() [all …]
|
/illumos-gate/usr/src/uts/common/io/bpf/ |
H A D | bpf.c | 345 uintptr_t mch; in bpf_detachd() local 349 mch = d->bd_mcip; in bpf_detachd() 384 if (mch != 0) in bpf_detachd() 385 MBPF_CLIENT_CLOSE(&d->bd_mac, mch); in bpf_detachd() 714 uintptr_t mch; in bpfwrite() local 747 mch = d->bd_mcip; in bpfwrite() 769 error = MBPF_TX(&d->bd_mac, mch, m); in bpfwrite()
|
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | vsw.h | 156 mac_client_handle_t mch; /* mac client handle */ member
|
/illumos-gate/usr/src/cmd/picl/plugins/common/devtree/ |
H A D | picldevtree.c | 283 picl_nodehdl_t mch; in mc_completion_handler() local 288 mch = 0; in mc_completion_handler() 290 PICLEVENTARG_NODEHANDLE, &mch); in mc_completion_handler() 291 if (mch != 0) { in mc_completion_handler() 295 mch); in mc_completion_handler() 296 (void) ptree_destroy_node(mch); in mc_completion_handler() 309 post_mc_event(char *ename, picl_nodehdl_t mch) in post_mc_event() argument 326 if (nvlist_add_uint64(nvl, PICLEVENTARG_NODEHANDLE, mch) || in post_mc_event() 336 ev_name, mch); in post_mc_event()
|
/illumos-gate/usr/src/uts/common/io/dld/ |
H A D | dld_str.c | 1783 mac_client_handle_t mch = dsp->ds_mch; in str_notify() local 1853 switch (mac_client_stat_get(mch, dsp->ds_lowlink ? in str_notify()
|