Searched refs:mac (Results 1 - 25 of 478) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/uts/common/io/fcoe/
H A Dfcoe_eth.c60 fcoe_open_mac(fcoe_mac_t *mac, int force_promisc, fcoeio_stat_t *err_detail) argument
73 ret = mac_open_by_linkid(mac->fm_linkid, &mac->fm_handle);
76 mac->fm_linkid, ret);
80 (void) sprintf(cli_name, "%s-%d", "fcoe", mac->fm_linkid);
82 ret = mac_client_open(mac->fm_handle,
83 &mac->fm_cli_handle, cli_name, fm_open_flag);
85 (void) fcoe_close_mac(mac);
92 mac_unicast_primary_get(mac->fm_handle, mac
133 fcoe_close_mac(fcoe_mac_t *mac) argument
176 fcoe_enable_callback(fcoe_mac_t *mac) argument
214 fcoe_disable_callback(fcoe_mac_t *mac) argument
241 fcoe_mac_t *mac = (fcoe_mac_t *)arg; local
276 fcoe_mac_t *mac = (fcoe_mac_t *)arg; local
341 fcoe_mac_t *mac = EPORT2MAC(eport); local
[all...]
H A Dfcoe_fc.c72 fcoe_mac_t *mac; local
85 for (mac = list_head(&fcoe_global_ss->ss_mac_list); mac;
86 mac = list_next(&fcoe_global_ss->ss_mac_list, mac)) {
87 if (client->ect_channelid == mac->fm_linkid) {
92 if (mac == NULL) {
97 if (mac->fm_flags & FCOE_MAC_FLAG_BOUND) {
102 atomic_or_32(&mac->fm_flags, FCOE_MAC_FLAG_BOUND);
103 bcopy(client, &mac
136 fcoe_mac_t *mac = EPORT2MAC(eport); local
160 fcoe_mac_t *mac = EPORT2MAC(eport); local
202 fcoe_mac_t *mac = FRM2MAC(frm); local
411 fcoe_mac_t *mac = (fcoe_mac_t *)arg; local
421 fcoe_mac_t *mac = (fcoe_mac_t *)arg; local
430 fcoe_create_port(dev_info_t *parent, fcoe_mac_t *mac, int is_target) argument
467 fcoe_mac_t *mac; local
[all...]
/illumos-gate/usr/src/boot/sys/boot/arm/at91/boot2/
H A Dcentipad_board.c36 unsigned char mac[6] = { 0x42, 0x53, 0x44, 0, 1, 1 }; variable
47 ReadEEPROM(12 * 1024 + 4, mac, 6);
49 printf("MAC %x:%x:%x:%x:%x:%x\n", mac[0],
50 mac[1], mac[2], mac[3], mac[4], mac[5]);
59 EMAC_SetMACAddress(mac);
H A Dkb920x_board.c36 unsigned char mac[6] = { 0x42, 0x53, 0x44, 0, 0, 1 }; variable
46 ReadEEPROM(12 * 1024 + 4, mac, 6);
47 printf("MAC %x:%x:%x:%x:%x:%x\n", mac[0],
48 mac[1], mac[2], mac[3], mac[4], mac[5]);
57 EMAC_SetMACAddress(mac);
H A Dbwct_board.c14 unsigned char mac[6] = { 0x00, 0x0e, 0x42, 0x02, 0x00, 0x28 }; variable
111 printf("MAC %x:%x:%x:%x:%x:%x\n", mac[0],
112 mac[1], mac[2], mac[3], mac[4], mac[5]);
114 EMAC_SetMACAddress(mac);
/illumos-gate/usr/src/uts/common/io/chxge/com/
H A Dch_mac.c80 static int mac_intr_enable(struct cmac *mac) argument
84 if (t1_is_asic(mac->adapter)) {
92 mac_intr = t1_read_reg_4(mac->adapter, A_PL_ENABLE);
94 t1_write_reg_4(mac->adapter, A_PL_ENABLE, mac_intr);
96 mac_intr = t1_read_reg_4(mac->adapter,
98 mac_intr |= static_aPorts[mac->instance->index];
99 t1_write_reg_4(mac->adapter,
106 static int mac_intr_disable(struct cmac *mac) argument
110 if (t1_is_asic(mac->adapter)) {
118 mac_intr = t1_read_reg_4(mac
132 mac_intr_clear(struct cmac *mac) argument
157 mac_get_address(struct cmac *mac, u8 addr[6]) argument
175 mac_reset(struct cmac *mac) argument
202 mac_set_rx_mode(struct cmac *mac, struct t1_rx_mode *rm) argument
217 mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, int fc) argument
253 mac_enable(struct cmac *mac, int which) argument
268 mac_disable(struct cmac *mac, int which) argument
284 mac_set_ifs(struct cmac *mac, u32 mode) argument
293 mac_enable_isl(struct cmac *mac) argument
304 mac_set_mtu(struct cmac *mac, int mtu) argument
315 mac_update_statistics(struct cmac *mac, int flag) argument
331 mac_destroy(struct cmac *mac) argument
375 struct cmac *mac; local
[all...]
H A Dixf1010.c156 #define MACREG(mac, mac_reg) ((mac)->instance->mac_base + (mac_reg))
165 static void disable_port(struct cmac *mac) argument
169 (void) t1_tpi_read(mac->adapter, REG_PORT_ENABLE, &val);
170 val &= ~(1 << mac->instance->index);
171 (void) t1_tpi_write(mac->adapter, REG_PORT_ENABLE, val);
174 #define RMON_UPDATE(mac, name, stat_name) \
175 (void) t1_tpi_read((mac)->adapter, MACREG(mac, REG_##name), &val); \
176 (mac)
182 port_stats_update(struct cmac *mac) argument
220 mac_intr_op(struct cmac *mac) argument
226 mac_set_address(struct cmac *mac, u8 addr[6]) argument
243 mac_get_address(struct cmac *mac, u8 addr[6]) argument
261 mac_reset(struct cmac *mac) argument
266 mac_set_rx_mode(struct cmac *mac, struct t1_rx_mode *rm) argument
301 mac_set_mtu(struct cmac *mac, int mtu) argument
310 mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, int fc) argument
335 mac_get_speed_duplex_fc(struct cmac *mac, int *speed, int *duplex, int *fc) argument
358 enable_port(struct cmac *mac) argument
408 mac_enable(struct cmac *mac, int which) argument
415 mac_disable(struct cmac *mac, int which) argument
431 mac_update_statistics(struct cmac *mac, int flag) argument
448 mac_destroy(struct cmac *mac) argument
512 struct cmac *mac; local
[all...]
H A Dvsc7326.c104 val |= 0x1; /* Enable mac MAC itself */
384 static int mac_intr_handler(struct cmac *mac) argument
390 static int mac_intr_enable(struct cmac *mac) argument
396 static int mac_intr_disable(struct cmac *mac) argument
402 static int mac_intr_clear(struct cmac *mac) argument
408 static int mac_set_address(struct cmac* mac, u8 addr[6]) argument
411 int port = mac->instance->index;
413 vsc_write(mac->adapter, REG_MAC_LOW_ADDR(port),
415 vsc_write(mac->adapter, REG_MAC_HIGH_ADDR(port),
418 vsc_read(mac
431 mac_get_address(struct cmac *mac, u8 addr[6]) argument
449 mac_reset(struct cmac *mac) argument
459 mac_set_rx_mode(struct cmac *mac, struct t1_rx_mode *rm) argument
476 mac_set_mtu(struct cmac *mac, int mtu) argument
488 mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, int fc) argument
557 mac_enable(struct cmac *mac, int which) argument
571 mac_disable(struct cmac *mac, int which) argument
597 rmon_update(struct cmac *mac, unsigned int addr, u64 *stat) argument
612 port_stats_update(struct cmac *mac) argument
659 mac_update_statistics(struct cmac *mac, int flag) argument
680 mac_destroy(struct cmac *mac) argument
726 struct cmac *mac; local
[all...]
H A Dvsc7321.c242 struct cmac *mac; local
246 mac = t1_os_malloc_wait_zero(sizeof(*mac) + sizeof(cmac_instance));
247 if (!mac) return NULL;
249 mac->ops = &vsc7321_ops;
250 mac->instance = (cmac_instance *)(mac + 1);
252 mac->adapter = adapter;
253 mac->instance->index = index;
275 t1_os_free((void *)mac, sizeo
286 mac_intr_handler(struct cmac *mac) argument
292 mac_intr_enable(struct cmac *mac) argument
298 mac_intr_disable(struct cmac *mac) argument
304 mac_intr_clear(struct cmac *mac) argument
311 mac_set_address(struct cmac* mac, u8 addr[6]) argument
329 mac_get_address(struct cmac *mac, u8 addr[6]) argument
347 mac_reset(struct cmac *mac) argument
357 mac_set_rx_mode(struct cmac *mac, struct t1_rx_mode *rm) argument
364 mac_set_mtu(struct cmac *mac, int mtu) argument
370 mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, int fc) argument
377 mac_enable(struct cmac *mac, int which) argument
391 mac_disable(struct cmac *mac, int which) argument
418 mac_update_statistics(struct cmac *mac, int flag) argument
424 mac_destroy(struct cmac *mac) argument
[all...]
/illumos-gate/usr/src/cmd/mdb/intel/amd64/mac/
H A DMakefile26 MODULE = mac.so
29 MODSRCS = mac.c
/illumos-gate/usr/src/cmd/mdb/intel/ia32/mac/
H A DMakefile26 MODULE = mac.so
29 MODSRCS = mac.c
/illumos-gate/usr/src/cmd/mdb/sparc/v9/mac/
H A DMakefile26 MODULE = mac.so
29 MODSRCS = mac.c
/illumos-gate/usr/src/uts/intel/io/dnet/
H A Ddnet_mii.c61 static struct phydata *mii_get_valid_phydata(mii_handle_t mac, int phy);
62 static void mii_portmon(mii_handle_t mac);
71 static void postreset_ICS1890(mii_handle_t mac, int phy);
72 static void postreset_NS83840(mii_handle_t mac, int phy);
88 mii_handle_t mac; local
91 if ((mac = (mii_handle_t)
95 mac->mii_write = writefunc;
96 mac->mii_read = readfunc;
97 mac->mii_dip = dip;
98 *macp = mac;
109 mii_probe_phy(mii_handle_t mac, int phy) argument
148 mii_init_phy(mii_handle_t mac, int phy) argument
292 mii_reset_phy(mii_handle_t mac, int phy, enum mii_wait_type wait) argument
352 mii_sync(mii_handle_t mac, int phy) argument
405 mii_disable_fullduplex(mii_handle_t mac, int phy) argument
449 mii_autoneg_enab(mii_handle_t mac, int phy) argument
463 mii_linkup(mii_handle_t mac, int phy) argument
486 mii_getspeed(mii_handle_t mac, int phy, int *speed, int *fulld) argument
514 mii_fixspeed(mii_handle_t mac, int phy, int speed, int fullduplex) argument
551 mii_isolate(mii_handle_t mac, int phy) argument
567 mii_unisolate(mii_handle_t mac, int phy) argument
584 mii_rsan(mii_handle_t mac, int phy, enum mii_wait_type wait) argument
627 mii_dump_phy(mii_handle_t mac, int phy) argument
666 mii_start_portmon(mii_handle_t mac, mii_linkfunc_t notify, kmutex_t *lock) argument
682 mii_stop_portmon(mii_handle_t mac) argument
695 mii_portmon(mii_handle_t mac) argument
744 mii_destroy(mii_handle_t mac) argument
764 mii_get_valid_phydata(mii_handle_t mac, int phy) argument
778 dump_NS83840(mii_handle_t mac, int phy) argument
813 getspeed_NS83840(mii_handle_t mac, int phy, int *speed, int *fulld) argument
857 getspeed_82553(mii_handle_t mac, int phy, int *speed, int *fulld) argument
870 getspeed_ICS1890(mii_handle_t mac, int phy, int *speed, int *fulld) argument
879 dump_ICS1890(mii_handle_t mac, int phy) argument
889 postreset_NS83840(mii_handle_t mac, int phy) argument
929 postreset_ICS1890(mii_handle_t mac, int phy) argument
939 getspeed_generic(mii_handle_t mac, int phy, int *speed, int *fulld) argument
[all...]
/illumos-gate/usr/src/cmd/checknr/
H A Dchecknr.c158 static void chkcmd(char *line, char *mac);
159 static void nomatch(char *mac);
162 static void checkknown(char *mac);
164 static void addmac(char *mac);
165 static int binsrch(char *mac);
281 char mac[5]; /* The current macro or nroff command */ local
290 (void) strncpy(mac, line+1, 4);
291 if (isspace(mac[0])) {
294 } else if (isspace(mac[1])) {
295 mac[
407 chkcmd(char *line, char *mac) argument
443 nomatch(char *mac) argument
506 checkknown(char *mac) argument
526 char *mac; local
556 addmac(char *mac) argument
590 binsrch(char *mac) argument
[all...]
/illumos-gate/usr/src/uts/common/io/e1000api/
H A De1000_api.c48 if (hw->mac.ops.init_params) {
49 ret_val = hw->mac.ops.init_params(hw);
55 DEBUGOUT("mac.init_mac_params was NULL\n");
145 * This function sets the mac type of the adapter based on the
152 struct e1000_mac_info *mac = &hw->mac; local
159 mac->type = e1000_82542;
163 mac->type = e1000_82543;
169 mac->type = e1000_82544;
176 mac
[all...]
H A De1000_mac.c50 struct e1000_mac_info *mac = &hw->mac; local
54 mac->ops.init_params = e1000_null_ops_generic;
55 mac->ops.init_hw = e1000_null_ops_generic;
56 mac->ops.reset_hw = e1000_null_ops_generic;
57 mac->ops.setup_physical_interface = e1000_null_ops_generic;
58 mac->ops.get_bus_info = e1000_null_ops_generic;
59 mac->ops.set_lan_id = e1000_set_lan_id_multi_port_pcie;
60 mac->ops.read_mac_addr = e1000_read_mac_addr_generic;
61 mac
179 struct e1000_mac_info *mac = &hw->mac; local
234 struct e1000_mac_info *mac = &hw->mac; local
711 struct e1000_mac_info *mac = &hw->mac; local
776 struct e1000_mac_info *mac = &hw->mac; local
843 struct e1000_mac_info *mac = &hw->mac; local
1060 struct e1000_mac_info *mac = &hw->mac; local
1129 struct e1000_mac_info *mac = &hw->mac; local
1353 struct e1000_mac_info *mac = &hw->mac; local
1839 struct e1000_mac_info *mac = &hw->mac; local
2124 struct e1000_mac_info *mac = &hw->mac; local
2152 struct e1000_mac_info *mac = &hw->mac; local
[all...]
H A De1000_82571.c117 switch (hw->mac.type) {
175 switch (hw->mac.type) {
230 switch (hw->mac.type) {
262 switch (hw->mac.type) {
288 struct e1000_mac_info *mac = &hw->mac; local
301 mac->ops.setup_physical_interface =
303 mac->ops.check_for_link = e1000_check_for_fiber_link_generic;
304 mac->ops.get_link_up_info =
312 mac
1192 struct e1000_mac_info *mac = &hw->mac; local
1652 struct e1000_mac_info *mac = &hw->mac; local
1973 struct e1000_mac_info *mac = &hw->mac; local
[all...]
H A De1000_vf.c93 struct e1000_mac_info *mac = &hw->mac; local
106 mac->asf_firmware_present = FALSE;
108 mac->arc_subsystem_valid = FALSE;
110 mac->adaptive_ifs = FALSE;
112 mac->mta_reg_count = 128;
114 mac->rar_entry_count = 1;
118 mac->ops.setup_link = e1000_setup_link_vf;
120 mac->ops.get_bus_info = e1000_get_bus_info_pcie_vf;
122 mac
534 struct e1000_mac_info *mac = &hw->mac; local
[all...]
H A De1000_82542.c102 struct e1000_mac_info *mac = &hw->mac; local
110 mac->mta_reg_count = 128;
112 mac->rar_entry_count = E1000_RAR_ENTRIES;
117 mac->ops.get_bus_info = e1000_get_bus_info_82542;
119 mac->ops.set_lan_id = e1000_set_lan_id_multi_port_pci;
121 mac->ops.reset_hw = e1000_reset_hw_82542;
123 mac->ops.init_hw = e1000_init_hw_82542;
125 mac->ops.setup_link = e1000_setup_link_82542;
127 mac
245 struct e1000_mac_info *mac = &hw->mac; local
319 struct e1000_mac_info *mac = &hw->mac; local
[all...]
/illumos-gate/usr/src/boot/sys/boot/arm/at91/libat91/
H A Demac_init.c73 EMAC_SetMACAddress(unsigned char mac[6]) argument
81 memcpy(localMACAddr, mac, 6);
82 localMAClow = (mac[3] << 24) | (mac[2] << 16) | (mac[1] << 8) | mac[0];
83 localMAChigh = (mac[5] << 8) | mac[4];
/illumos-gate/usr/src/uts/common/io/ixgbe/core/
H A Dixgbe_x540.c61 struct ixgbe_mac_info *mac = &hw->mac; local
88 mac->ops.reset_hw = ixgbe_reset_hw_X540;
89 mac->ops.enable_relaxed_ordering = ixgbe_enable_relaxed_ordering_gen2;
90 mac->ops.get_media_type = ixgbe_get_media_type_X540;
91 mac->ops.get_supported_physical_layer =
93 mac->ops.read_analog_reg8 = NULL;
94 mac->ops.write_analog_reg8 = NULL;
95 mac->ops.start_hw = ixgbe_start_hw_X540;
96 mac
[all...]
H A Dixgbe_api.c65 if (hw->mac.ops.get_rtrup2tc)
66 hw->mac.ops.get_rtrup2tc(hw, map);
88 * Set the mac type
92 switch (hw->mac.type) {
118 hw->mac.max_link_up_time = IXGBE_LINK_UP_TIME;
127 * This function sets the mac type of the adapter based on the
157 hw->mac.type = ixgbe_mac_82598EB;
175 hw->mac.type = ixgbe_mac_82599EB;
179 hw->mac.type = ixgbe_mac_82599_vf;
183 hw->mac
[all...]
H A Dixgbe_vf.c59 hw->mac.ops.init_hw = ixgbe_init_hw_vf;
60 hw->mac.ops.reset_hw = ixgbe_reset_hw_vf;
61 hw->mac.ops.start_hw = ixgbe_start_hw_vf;
63 hw->mac.ops.clear_hw_cntrs = NULL;
64 hw->mac.ops.get_media_type = NULL;
65 hw->mac.ops.get_mac_addr = ixgbe_get_mac_addr_vf;
66 hw->mac.ops.stop_adapter = ixgbe_stop_adapter_vf;
67 hw->mac.ops.get_bus_info = NULL;
70 hw->mac.ops.setup_link = ixgbe_setup_mac_link_vf;
71 hw->mac
546 struct ixgbe_mac_info *mac = &hw->mac; local
[all...]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/
H A Decore_common.h68 * @param mac
71 u8 *mac)
73 ((u8 *)fw_hi)[0] = mac[1];
74 ((u8 *)fw_hi)[1] = mac[0];
75 ((u8 *)fw_mid)[0] = mac[3];
76 ((u8 *)fw_mid)[1] = mac[2];
77 ((u8 *)fw_lo)[0] = mac[5];
78 ((u8 *)fw_lo)[1] = mac[4];
70 ecore_set_fw_mac_addr(u16 *fw_hi, u16 *fw_mid, u16 *fw_lo, u8 *mac) argument
/illumos-gate/usr/src/uts/common/io/cxgbe/cxgbe/
H A Dcxgbe.c34 * whose only purpose is to register the mac.
122 mac_register_t *mac; local
133 mac = mac_alloc(MAC_VERSION);
134 if (mac == NULL) {
135 cmn_err(CE_WARN, "%s%d: failed to allocate version %d mac.",
141 mac->m_type_ident = MAC_PLUGIN_IDENT_ETHER;
142 mac->m_driver = pi;
143 mac->m_dip = dip;
144 mac->m_src_addr = pi->hw_addr;
145 mac
[all...]

Completed in 135 milliseconds

1234567891011>>