Home
last modified time | relevance | path

Searched refs:mac (Results 1 – 25 of 423) sorted by relevance

12345678910>>...17

/illumos-gate/usr/src/uts/common/io/fcoe/
H A Dfcoe_eth.c73 ret = mac_open_by_linkid(mac->fm_linkid, &mac->fm_handle); in fcoe_open_mac()
76 mac->fm_linkid, ret); in fcoe_open_mac()
92 mac_unicast_primary_get(mac->fm_handle, mac->fm_primary_addr); in fcoe_open_mac()
93 bcopy(mac->fm_primary_addr, mac->fm_current_addr, in fcoe_open_mac()
107 mac_sdu_get(mac->fm_handle, NULL, &mac->fm_eport.eport_mtu); in fcoe_open_mac()
126 mac->fm_running = B_TRUE; in fcoe_open_mac()
141 if (mac->fm_running) { in fcoe_close_mac()
170 mac->fm_handle = NULL; in fcoe_close_mac()
194 mac_rx_set(mac->fm_cli_handle, fcoe_rx, mac); in fcoe_enable_callback()
198 mac->fm_link_state = in fcoe_enable_callback()
[all …]
H A Dfcoe_fc.c74 fcoe_mac_t *mac; in fcoe_register_client() local
87 for (mac = list_head(&fcoe_global_ss->ss_mac_list); mac; in fcoe_register_client()
88 mac = list_next(&fcoe_global_ss->ss_mac_list, mac)) { in fcoe_register_client()
94 if (mac == NULL) { in fcoe_register_client()
110 eport = &mac->fm_eport; in fcoe_register_client()
216 (void) cv_reltimedwait(&mac->fm_tx_cv, &mac->fm_mutex, in fcoe_tx_frame()
238 mac->fm_frm_cnt ++; in fcoe_tx_frame()
418 mac->fm_client.ect_port_event(&mac->fm_eport, in fcoe_mac_notify_link_up()
427 mac->fm_client.ect_port_event(&mac->fm_eport, in fcoe_mac_notify_link_down()
470 fcoe_mac_t *mac; in fcoe_delete_port() local
[all …]
/illumos-gate/usr/src/uts/intel/io/dnet/
H A Ddnet_mii.c98 *macp = mac; in mii_create()
301 mac->mii_write(mac->mii_dip, phy, MII_CONTROL, in mii_reset_phy()
376 mac->mii_write(mac->mii_dip, phy, in mii_sync()
471 mac->mii_read(mac->mii_dip, phy, MII_STATUS); in mii_linkup()
472 status = mac->mii_read(mac->mii_dip, phy, MII_STATUS); in mii_linkup()
668 if (mac->mii_linknotify || mac->portmon_timer) in mii_start_portmon()
684 if (!mac->mii_linknotify || !mac->portmon_timer) in mii_stop_portmon()
728 mac->mii_linknotify(mac->mii_dip, i, state); in mii_portmon()
755 kmem_free(mac, sizeof (*mac)); in mii_destroy()
766 if (!mac || phy > 31 || phy < 0 || !mac->phys[phy]) { in mii_get_valid_phydata()
[all …]
/illumos-gate/usr/src/uts/common/io/chxge/com/
H A Dixf1010.c154 #define MACREG(mac, mac_reg) ((mac)->instance->mac_base + (mac_reg)) argument
173 (void) t1_tpi_read((mac)->adapter, MACREG(mac, REG_##name), &val); \
303 (void) t1_tpi_write(mac->adapter, MACREG(mac, REG_MAX_FRAME_SIZE), in mac_set_mtu()
323 (void) t1_tpi_read(mac->adapter, MACREG(mac, REG_FC_ENABLE), &val); in mac_set_speed_duplex_fc()
329 (void) t1_tpi_write(mac->adapter, MACREG(mac, REG_FC_ENABLE), val); in mac_set_speed_duplex_fc()
341 (void) t1_tpi_read(mac->adapter, MACREG(mac, REG_RGMII_SPEED), in mac_get_speed_duplex_fc()
409 enable_port(mac); in mac_enable()
448 t1_os_free((void *)mac, sizeof(*mac) + sizeof(cmac_instance)); in mac_destroy()
510 struct cmac *mac; in ixf1010_mac_create() local
519 mac->instance = (cmac_instance *)(mac + 1); in ixf1010_mac_create()
[all …]
H A Dch_mac.c97 t1_write_reg_4(mac->adapter, in mac_intr_enable()
123 t1_write_reg_4(mac->adapter, in mac_intr_disable()
209 t1_write_reg_4(mac->adapter, in mac_set_rx_mode()
326 return (&mac->stats); in mac_update_statistics()
331 t1_os_free((void *)mac, sizeof (*mac) + sizeof (cmac_instance)); in mac_destroy()
373 struct cmac *mac; in mac_create() local
379 mac = t1_os_malloc_wait_zero(sizeof (*mac) + sizeof (cmac_instance)); in mac_create()
380 if (!mac) in mac_create()
384 mac->instance = (cmac_instance *) (mac + 1); in mac_create()
387 mac->adapter = adapter; in mac_create()
[all …]
H A Dvsc7326.c615 rmon_update(mac, REG_RX_OK_BYTES(port), &mac->stats.RxOctetsOK); in port_stats_update()
616 rmon_update(mac, REG_RX_BAD_BYTES(port), &mac->stats.RxOctetsBad); in port_stats_update()
622 rmon_update(mac, REG_CRC(port), &mac->stats.RxFCSErrors); in port_stats_update()
626 rmon_update(mac, REG_RX_PAUSE(port), &mac->stats.RxPauseFrames); in port_stats_update()
636 rmon_update(mac, REG_TX_OK_BYTES(port), &mac->stats.TxOctetsOK); in port_stats_update()
642 rmon_update(mac, REG_TX_PAUSE(port), &mac->stats.TxPauseFrames); in port_stats_update()
643 rmon_update(mac, REG_TX_UNDERRUN(port), &mac->stats.TxUnderrun); in port_stats_update()
680 t1_os_free((void *)mac, sizeof(*mac) + sizeof(cmac_instance)); in mac_destroy()
724 struct cmac *mac; in vsc7326_mac_create() local
732 mac->instance = (cmac_instance *)(mac + 1); in vsc7326_mac_create()
[all …]
H A Dvsc7321.c240 struct cmac *mac; in vsc7321_mac_create() local
244 mac = t1_os_malloc_wait_zero(sizeof(*mac) + sizeof(cmac_instance)); in vsc7321_mac_create()
245 if (!mac) return NULL; in vsc7321_mac_create()
247 mac->ops = &vsc7321_ops; in vsc7321_mac_create()
248 mac->instance = (cmac_instance *)(mac + 1); in vsc7321_mac_create()
250 mac->adapter = adapter; in vsc7321_mac_create()
273 t1_os_free((void *)mac, sizeof(*mac) + sizeof(cmac_instance)); in vsc7321_mac_create()
280 return mac; in vsc7321_mac_create()
410 port_stats_update(mac);
419 return &mac->stats; in mac_update_statistics()
[all …]
/illumos-gate/usr/src/uts/common/io/e1000api/
H A De1000_api.c152 struct e1000_mac_info *mac = &hw->mac; in e1000_set_mac_type() local
159 mac->type = e1000_82542; in e1000_set_mac_type()
163 mac->type = e1000_82543; in e1000_set_mac_type()
169 mac->type = e1000_82544; in e1000_set_mac_type()
176 mac->type = e1000_82540; in e1000_set_mac_type()
180 mac->type = e1000_82545; in e1000_set_mac_type()
190 mac->type = e1000_82546; in e1000_set_mac_type()
203 mac->type = e1000_82541; in e1000_set_mac_type()
213 mac->type = e1000_82547; in e1000_set_mac_type()
490 switch (hw->mac.type) { in e1000_setup_init_funcs()
[all …]
H A De1000_mac.c50 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_ops_generic() local
179 struct e1000_mac_info *mac = &hw->mac; in e1000_get_bus_info_pci_generic() local
234 struct e1000_mac_info *mac = &hw->mac; in e1000_get_bus_info_pcie_generic() local
380 hw->mac.ops.rar_set(hw, hw->mac.addr, 0); in e1000_init_rx_addrs_generic()
711 struct e1000_mac_info *mac = &hw->mac; in e1000_check_for_copper_link_generic() local
776 struct e1000_mac_info *mac = &hw->mac; in e1000_check_for_fiber_link_generic() local
843 struct e1000_mac_info *mac = &hw->mac; in e1000_check_for_serdes_link_generic() local
1060 struct e1000_mac_info *mac = &hw->mac; in e1000_commit_fc_settings_generic() local
1129 struct e1000_mac_info *mac = &hw->mac; in e1000_poll_fiber_serdes_link_generic() local
1353 struct e1000_mac_info *mac = &hw->mac; in e1000_config_fc_after_link_up_generic() local
[all …]
H A De1000_82571.c117 switch (hw->mac.type) { in e1000_init_phy_params_82571()
175 switch (hw->mac.type) { in e1000_init_phy_params_82571()
230 switch (hw->mac.type) { in e1000_init_nvm_params_82571()
288 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_82571() local
375 mac->has_fwsm = TRUE; in e1000_init_mac_params_82571()
394 mac->has_fwsm = TRUE; in e1000_init_mac_params_82571()
1192 struct e1000_mac_info *mac = &hw->mac; in e1000_init_hw_82571() local
1235 switch (mac->type) { in e1000_init_hw_82571()
1652 struct e1000_mac_info *mac = &hw->mac; in e1000_check_for_serdes_link_82571() local
1880 hw->mac.ops.rar_set(hw, hw->mac.addr, in e1000_set_laa_state_82571()
[all …]
H A De1000_82540.c94 switch (hw->mac.type) { in e1000_init_phy_params_82540()
160 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_82540() local
183 mac->mta_reg_count = 128; in e1000_init_mac_params_82540()
221 mac->ops.get_link_up_info = in e1000_init_mac_params_82540()
293 switch (hw->mac.type) { in e1000_reset_hw_82540()
330 struct e1000_mac_info *mac = &hw->mac; in e1000_init_hw_82540() local
349 mac->ops.clear_vfta(hw); in e1000_init_hw_82540()
462 struct e1000_mac_info *mac = &hw->mac; in e1000_setup_fiber_serdes_link_82540() local
467 switch (mac->type) { in e1000_setup_fiber_serdes_link_82540()
711 hw->mac.perm_addr[5] ^= 1; in e1000_read_mac_addr_82540()
[all …]
H A De1000_82542.c102 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_82542() local
110 mac->mta_reg_count = 128; in e1000_init_mac_params_82542()
123 mac->ops.init_hw = e1000_init_hw_82542; in e1000_init_mac_params_82542()
127 mac->ops.setup_physical_interface = in e1000_init_mac_params_82542()
142 mac->ops.led_on = e1000_led_on_82542; in e1000_init_mac_params_82542()
147 mac->ops.get_link_up_info = in e1000_init_mac_params_82542()
245 struct e1000_mac_info *mac = &hw->mac; in e1000_init_hw_82542() local
255 mac->ops.clear_vfta(hw); in e1000_init_hw_82542()
319 struct e1000_mac_info *mac = &hw->mac; in e1000_setup_link_82542() local
330 if (mac->report_tx_early) in e1000_setup_link_82542()
[all …]
H A De1000_82543.c140 switch (hw->mac.type) { in e1000_init_phy_params_82543()
195 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_82543() local
211 mac->mta_reg_count = 128; in e1000_init_mac_params_82543()
232 mac->ops.check_for_link = in e1000_init_mac_params_82543()
751 if (!hw->mac.autoneg && (hw->mac.forced_speed_duplex & in e1000_phy_force_speed_duplex_82543()
958 struct e1000_mac_info *mac = &hw->mac; in e1000_init_hw_82543() local
1091 if (hw->mac.autoneg) { in e1000_setup_copper_link_82543()
1199 struct e1000_mac_info *mac = &hw->mac; in e1000_check_for_copper_link_82543() local
1227 if (!mac->autoneg) { in e1000_check_for_copper_link_82543()
1335 struct e1000_mac_info *mac = &hw->mac; in e1000_check_for_fiber_link_82543() local
[all …]
H A De1000_vf.c93 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_vf() local
106 mac->asf_firmware_present = FALSE; in e1000_init_mac_params_vf()
108 mac->arc_subsystem_valid = FALSE; in e1000_init_mac_params_vf()
110 mac->adaptive_ifs = FALSE; in e1000_init_mac_params_vf()
112 mac->mta_reg_count = 128; in e1000_init_mac_params_vf()
114 mac->rar_entry_count = 1; in e1000_init_mac_params_vf()
520 hw->mac.addr[i] = hw->mac.perm_addr[i]; in e1000_read_mac_addr_vf()
536 struct e1000_mac_info *mac = &hw->mac; in e1000_check_for_link_vf() local
550 mac->get_link_status = TRUE; in e1000_check_for_link_vf()
552 if (!mac->get_link_status) in e1000_check_for_link_vf()
[all …]
/illumos-gate/usr/src/cmd/checknr/
H A Dchecknr.c297 mac[1] = 0; in process()
299 mac[2] = 0; in process()
300 } else if (mac[0] != '\\' || mac[1] != '\"') { in process()
515 if (mac[0] == '\\' && mac[1] == '"') /* comments */ in checkknown()
528 char *mac; in addcmd() local
531 mac = line+4; in addcmd()
533 mac++; in addcmd()
539 mac[2] = 0; in addcmd()
540 if (isspace(mac[1]) || mac[1] == '\\') in addcmd()
541 mac[1] = 0; in addcmd()
[all …]
/illumos-gate/usr/src/uts/common/io/ixgbe/core/
H A Dixgbe_x540.c62 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_ops_X540() local
113 mac->rar_highwater = 1; in ixgbe_init_ops_X540()
271 hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr); in ixgbe_reset_hw_X540()
278 hw->mac.num_rar_entries = 128; in ixgbe_reset_hw_X540()
282 hw->mac.ops.get_san_mac_addr(hw, hw->mac.san_addr); in ixgbe_reset_hw_X540()
287 hw->mac.san_mac_rar_index = hw->mac.num_rar_entries - 1; in ixgbe_reset_hw_X540()
289 hw->mac.ops.set_rar(hw, hw->mac.san_mac_rar_index, in ixgbe_reset_hw_X540()
293 hw->mac.ops.clear_vmdq(hw, hw->mac.san_mac_rar_index, in ixgbe_reset_hw_X540()
297 hw->mac.num_rar_entries--; in ixgbe_reset_hw_X540()
301 hw->mac.ops.get_wwn_prefix(hw, &hw->mac.wwnn_prefix, in ixgbe_reset_hw_X540()
[all …]
H A Dixgbe_api.c70 if (hw->mac.ops.get_rtrup2tc) in ixgbe_dcb_get_rtrup2tc()
97 switch (hw->mac.type) { in ixgbe_init_shared_code()
222 hw->mac.type, ret_val); in ixgbe_set_mac_type()
413 return hw->mac.max_tx_queues; in ixgbe_get_num_of_tx_queues()
424 return hw->mac.max_rx_queues; in ixgbe_get_num_of_rx_queues()
1269 if (hw->mac.ops.disable_mdd) in ixgbe_disable_mdd()
1280 if (hw->mac.ops.enable_mdd) in ixgbe_enable_mdd()
1292 if (hw->mac.ops.mdd_event) in ixgbe_mdd_event()
1697 if (hw->mac.ops.disable_rx) in ixgbe_disable_rx()
1703 if (hw->mac.ops.enable_rx) in ixgbe_enable_rx()
[all …]
H A Dixgbe_vf.c67 hw->mac.ops.get_bus_info = NULL; in ixgbe_init_ops_vf()
81 hw->mac.ops.enable_mc = NULL; in ixgbe_init_ops_vf()
82 hw->mac.ops.disable_mc = NULL; in ixgbe_init_ops_vf()
83 hw->mac.ops.clear_vfta = NULL; in ixgbe_init_ops_vf()
87 hw->mac.max_tx_queues = 1; in ixgbe_init_ops_vf()
88 hw->mac.max_rx_queues = 1; in ixgbe_init_ops_vf()
166 hw->mac.ops.get_mac_addr(hw, hw->mac.addr); in ixgbe_init_hw_vf()
189 hw->mac.ops.stop_adapter(hw); in ixgbe_reset_hw_vf()
586 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_check_mac_link_vf() local
594 mac->get_link_status = TRUE; in ixgbe_check_mac_link_vf()
[all …]
H A Dixgbe_82599.c64 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_mac_link_ops_82599() local
118 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_phy_ops_82599() local
324 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_ops_82599() local
363 mac->rar_highwater = 1; in ixgbe_init_ops_82599()
1148 hw->mac.orig_autoc = in ixgbe_reset_hw_82599()
1170 hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr); in ixgbe_reset_hw_82599()
1181 hw->mac.ops.get_san_mac_addr(hw, hw->mac.san_addr); in ixgbe_reset_hw_82599()
1186 hw->mac.san_mac_rar_index = hw->mac.num_rar_entries - 1; in ixgbe_reset_hw_82599()
1188 hw->mac.ops.set_rar(hw, hw->mac.san_mac_rar_index, in ixgbe_reset_hw_82599()
1192 hw->mac.ops.clear_vmdq(hw, hw->mac.san_mac_rar_index, in ixgbe_reset_hw_82599()
[all …]
H A Dixgbe_82598.c122 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_ops_82598() local
150 mac->ops.set_vlvf = NULL; in ixgbe_init_ops_82598()
171 mac->ops.flap_tx_laser = NULL; in ixgbe_init_ops_82598()
176 mac->ops.set_fw_drv_ver = NULL; in ixgbe_init_ops_82598()
178 mac->ops.get_rtrup2tc = NULL; in ixgbe_init_ops_82598()
194 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_phy_ops_82598() local
207 mac->ops.get_link_capabilities = in ixgbe_init_phy_ops_82598()
312 autoc = hw->mac.orig_autoc; in ixgbe_get_link_capabilities_82598()
919 hw->mac.orig_autoc = autoc; in ixgbe_reset_hw_82598()
926 hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr); in ixgbe_reset_hw_82598()
[all …]
H A Dixgbe_x550.c56 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_ops_X550() local
606 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_ops_X550EM() local
790 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_ops_X550EM_a() local
848 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_ops_X550EM_x() local
1683 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_setup_sgmii() local
1752 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_setup_sgmii_fw() local
1822 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_mac_link_ops_X550em() local
2533 hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr); in ixgbe_reset_hw_X550em()
2667 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_setup_sfi_x550a() local
2819 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_setup_ixfi_x550em_x() local
[all …]
/illumos-gate/usr/src/uts/common/io/igc/core/
H A Digc_api.c20 if (hw->mac.ops.init_params) { in igc_init_mac_params()
98 struct igc_mac_info *mac = &hw->mac; in igc_set_mac_type() local
118 mac->type = igc_i225; in igc_set_mac_type()
171 switch (hw->mac.type) { in igc_setup_init_funcs()
228 if (hw->mac.ops.clear_vfta) in igc_clear_vfta()
229 hw->mac.ops.clear_vfta(hw); in igc_clear_vfta()
243 if (hw->mac.ops.write_vfta) in igc_write_vfta()
302 if (hw->mac.ops.reset_hw) in igc_reset_hw()
317 if (hw->mac.ops.init_hw) in igc_init_hw()
333 if (hw->mac.ops.setup_link) in igc_setup_link()
[all …]
/illumos-gate/usr/src/uts/common/io/cxgbe/cxgbe/
H A Dcxgbe.c122 mac_register_t *mac; in cxgbe_devo_attach() local
133 mac = mac_alloc(MAC_VERSION); in cxgbe_devo_attach()
134 if (mac == NULL) { in cxgbe_devo_attach()
142 mac->m_driver = pi; in cxgbe_devo_attach()
143 mac->m_dip = dip; in cxgbe_devo_attach()
144 mac->m_src_addr = pi->hw_addr; in cxgbe_devo_attach()
145 mac->m_callbacks = pi->mc; in cxgbe_devo_attach()
146 mac->m_max_sdu = pi->mtu; in cxgbe_devo_attach()
147 mac->m_priv_props = pi->props; in cxgbe_devo_attach()
157 rc = mac_register(mac, &mh); in cxgbe_devo_attach()
[all …]
/illumos-gate/usr/src/lib/iconv_modules/euro/utils/
H A DMakefile.com34 alt%koi8.c alt%mac.c alt%win.c alt%win5.c dhn%dos2.c dhn%ib2.c dhn%is2.c dhn%iso2.c dhn%maz.c dhn%w…
36 is2%wi2.c iso%alt.c iso%koi.c iso%mac.c iso%win.c iso2%dhn.c iso2%dos2.c iso2%maz.c iso2%win2.c iso…
37 iso5%mac.c iso5%win5.c koi%alt.c koi%iso.c koi%mac.c koi%win.c koi8%alt.c koi8%iso5.c koi8%mac.c ko…
38 mac%iso.c mac%iso5.c mac%koi.c mac%koi8.c mac%win.c mac%win5.c maz%dhn.c maz%dos2.c maz%ib2.c maz%i…
40 table.alt.mac.c table.alt.win.c table.dhn.ib2.c table.dhn.is2.c table.dhn.maz.c table.dhn.wi2.c tab…
42 table.iso.mac.c table.iso.win.c table.koi.alt.c table.koi.iso.c table.koi.mac.c table.koi.win.c tab…
43 table.mac.koi.c table.mac.win.c table.maz.dhn.c table.maz.ib2.c table.maz.is2.c table.maz.wi2.c tab…
44 table.wi2.is2.c table.wi2.maz.c table.win.alt.c table.win.iso.c table.win.koi.c table.win.mac.c wi2…
45 wi2%maz.c win%alt.c win%iso.c win%koi.c win%mac.c win2%dhn.c win2%dos2.c win2%iso2.c win2%maz.c win…
46 win5%mac.c
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/
H A Dppcontrol.c660 old = *mac; in ppcontrol()
824 if (mac->arity && (s = newof(mac->formals, char, p - mac->formals, 0)) != mac->formals) in ppcontrol()
1144 …if (p > &mac->value[n - MAXTOKEN] && (s = newof(mac->value, char, n += MAXTOKEN, 0)) != mac->value) in ppcontrol()
1178 s = (char*)&mac->formkeys[mac->arity]; in ppcontrol()
1214 if (mac->formkeys) free(mac->formkeys); in ppcontrol()
1220 if (mac->formals) free(mac->formals); in ppcontrol()
1240 mac->value = newof(mac->value, char, (mac->size = p - mac->value) + 1, 0); in ppcontrol()
1442 if (mac->value) free(mac->value); in ppcontrol()
1775 if (mac->formals) free(mac->formals); in ppcontrol()
2155 if (mac->formals) free(mac->formals); in ppcontrol()
[all …]

12345678910>>...17