Searched refs:mac_index (Results 1 - 23 of 23) sorted by relevance

/linux-4.1.27/drivers/infiniband/hw/nes/
H A Dnes_nic.c224 list_for_each_safe(list_pos, list_temp, &nesdev->nesadapter->nesvnic_list[nesdev->mac_index]) { nes_netdev_open()
231 nes_write_indexed(nesdev, NES_IDX_MAC_INT_MASK + (0x200 * nesdev->mac_index), nes_netdev_open()
245 if (nesdev->nesadapter->phy_type[nesdev->mac_index] == NES_PHY_TYPE_SFP_D) { nes_netdev_open()
298 list_for_each_safe(list_pos, list_temp, &nesdev->nesadapter->nesvnic_list[nesdev->mac_index]) { nes_netdev_stop()
308 (0x200*nesdev->mac_index), 0xffffffff); nes_netdev_stop()
311 (0x200*first_nesvnic->nesdev->mac_index), nes_netdev_stop()
315 nes_write_indexed(nesdev, NES_IDX_MAC_INT_MASK+(0x200*nesdev->mac_index), 0xffffffff); nes_netdev_stop()
746 NES_IDX_MAC_RX_SHORT_FRAMES + (nesvnic->nesdev->mac_index*0x200)); nes_netdev_get_stats()
752 NES_IDX_MAC_RX_OVERSIZED_FRAMES + (nesvnic->nesdev->mac_index*0x200)); nes_netdev_get_stats()
758 NES_IDX_MAC_RX_JABBER_FRAMES + (nesvnic->nesdev->mac_index*0x200)); nes_netdev_get_stats()
764 NES_IDX_MAC_RX_SYMBOL_ERR_FRAMES + (nesvnic->nesdev->mac_index*0x200)); nes_netdev_get_stats()
770 NES_IDX_MAC_RX_LENGTH_ERR_FRAMES + (nesvnic->nesdev->mac_index*0x200)); nes_netdev_get_stats()
775 NES_IDX_MAC_RX_CRC_ERR_FRAMES + (nesvnic->nesdev->mac_index*0x200)); nes_netdev_get_stats()
781 NES_IDX_MAC_TX_ERRORS + (nesvnic->nesdev->mac_index*0x200)); nes_netdev_get_stats()
1143 NES_IDX_MAC_TX_PAUSE_FRAMES + (nesvnic->nesdev->mac_index*0x200)); nes_netdev_get_ethtool_stats()
1148 NES_IDX_MAC_RX_PAUSE_FRAMES + (nesvnic->nesdev->mac_index*0x200)); nes_netdev_get_ethtool_stats()
1152 NES_IDX_PORT_RX_DISCARDS + (nesvnic->nesdev->mac_index*0x40)); nes_netdev_get_ethtool_stats()
1157 NES_IDX_PORT_TX_DISCARDS + (nesvnic->nesdev->mac_index*0x40)); nes_netdev_get_ethtool_stats()
1162 NES_IDX_MAC_RX_SHORT_FRAMES + (nesvnic->nesdev->mac_index*0x200)); nes_netdev_get_ethtool_stats()
1168 NES_IDX_MAC_RX_OVERSIZED_FRAMES + (nesvnic->nesdev->mac_index*0x200)); nes_netdev_get_ethtool_stats()
1174 NES_IDX_MAC_RX_JABBER_FRAMES + (nesvnic->nesdev->mac_index*0x200)); nes_netdev_get_ethtool_stats()
1180 NES_IDX_MAC_RX_SYMBOL_ERR_FRAMES + (nesvnic->nesdev->mac_index*0x200)); nes_netdev_get_ethtool_stats()
1186 NES_IDX_MAC_RX_LENGTH_ERR_FRAMES + (nesvnic->nesdev->mac_index*0x200)); nes_netdev_get_ethtool_stats()
1191 NES_IDX_MAC_RX_CRC_ERR_FRAMES + (nesvnic->nesdev->mac_index*0x200)); nes_netdev_get_ethtool_stats()
1197 NES_IDX_MAC_TX_ERRORS + (nesvnic->nesdev->mac_index*0x200)); nes_netdev_get_ethtool_stats()
1448 NES_IDX_MAC_TX_CONFIG + (nesdev->mac_index*0x200)); nes_netdev_set_pauseparam()
1451 NES_IDX_MAC_TX_CONFIG + (nesdev->mac_index*0x200), u32temp); nes_netdev_set_pauseparam()
1455 NES_IDX_MAC_TX_CONFIG + (nesdev->mac_index*0x200)); nes_netdev_set_pauseparam()
1458 NES_IDX_MAC_TX_CONFIG + (nesdev->mac_index*0x200), u32temp); nes_netdev_set_pauseparam()
1463 NES_IDX_MPP_DEBUG + (nesdev->mac_index*0x40)); nes_netdev_set_pauseparam()
1466 NES_IDX_MPP_DEBUG + (nesdev->mac_index*0x40), u32temp); nes_netdev_set_pauseparam()
1470 NES_IDX_MPP_DEBUG + (nesdev->mac_index*0x40)); nes_netdev_set_pauseparam()
1473 NES_IDX_MPP_DEBUG + (nesdev->mac_index*0x40), u32temp); nes_netdev_set_pauseparam()
1489 u32 mac_index = nesdev->mac_index; nes_netdev_get_settings() local
1490 u8 phy_type = nesadapter->phy_type[mac_index]; nes_netdev_get_settings()
1491 u8 phy_index = nesadapter->phy_index[mac_index]; nes_netdev_get_settings()
1506 et_cmd->phy_address = mac_index; nes_netdev_get_settings()
1537 et_cmd->phy_address = mac_index; nes_netdev_get_settings()
1555 (nesadapter->phy_type[nesdev->mac_index] != NES_PHY_TYPE_PUMA_1G)) { nes_netdev_set_settings()
1558 u8 phy_index = nesadapter->phy_index[nesdev->mac_index]; nes_netdev_set_settings()
1662 u8 phy_type = nesdev->nesadapter->phy_type[nesdev->mac_index]; nes_netdev_init()
1718 " nic_index = %d, logical_port = %d, mac_index = %d.\n", nes_netdev_init()
1720 nesvnic->nic_index, nesvnic->logical_port, nesdev->mac_index); nes_netdev_init()
1765 nesvnic, nesdev->mac_index); nes_netdev_init()
1766 list_add_tail(&nesvnic->list, &nesdev->nesadapter->nesvnic_list[nesdev->mac_index]); nes_netdev_init()
1769 ((PCI_FUNC(nesdev->pcidev->devfn) == nesdev->mac_index) || nes_netdev_init()
1771 (((PCI_FUNC(nesdev->pcidev->devfn) == 1) && (nesdev->mac_index == 2)) || nes_netdev_init()
1772 ((PCI_FUNC(nesdev->pcidev->devfn) == 2) && (nesdev->mac_index == 1)))))) { nes_netdev_init()
1781 (0x200 * (nesdev->mac_index & 1))); nes_netdev_init()
1785 (0x200 * (nesdev->mac_index & 1)), u32temp); nes_netdev_init()
1792 if (nesdev->mac_index < 2) { nes_netdev_init()
1803 nesdev->nesadapter->phy_index[nesdev->mac_index], nes_netdev_init()
1807 nesdev->nesadapter->phy_index[nesdev->mac_index], nes_netdev_init()
1811 nesdev->nesadapter->phy_index[nesdev->mac_index], nes_netdev_init()
1825 (0x200 * (nesdev->mac_index & 1))); nes_netdev_init()
1836 u32temp = nes_read_indexed(nesdev, NES_IDX_MAC_INT_STATUS + (0x200 * nesdev->mac_index)); nes_netdev_init()
1838 nes_write_indexed(nesdev, NES_IDX_MAC_INT_STATUS + (0x200 * nesdev->mac_index), u32temp); nes_netdev_init()
H A Dnes_hw.c1367 u32 mac_index = nesdev->mac_index; nes_init_2025_phy() local
1495 sds = nes_read_indexed(nesdev, NES_IDX_ETH_SERDES_COMMON_CONTROL0 + mac_index * 0x200); nes_init_2025_phy()
1497 nes_write_indexed(nesdev, NES_IDX_ETH_SERDES_COMMON_CONTROL0 + mac_index * 0x200, sds); nes_init_2025_phy()
1499 nes_write_indexed(nesdev, NES_IDX_ETH_SERDES_COMMON_CONTROL0 + mac_index * 0x200, sds); nes_init_2025_phy()
1516 u32 mac_index = nesdev->mac_index; nes_init_phy() local
1519 u8 phy_type = nesadapter->phy_type[mac_index]; nes_init_phy()
1520 u8 phy_index = nesadapter->phy_index[mac_index]; nes_init_phy()
2215 int_status_bit = 1 << (24 + nesdev->mac_index); nes_dpc()
2217 nes_process_mac_intr(nesdev, nesdev->mac_index); nes_dpc()
2392 static void nes_reset_link(struct nes_device *nesdev, u32 mac_index) nes_reset_link() argument
2406 if ((mac_index == 0) || ((mac_index == 1) && (nesadapter->OneG_Mode))) nes_reset_link()
2411 if (4 <= (nesadapter->link_interrupt_count[mac_index] / ((u16)NES_MAX_LINK_INTERRUPTS))) { nes_reset_link()
2423 nesadapter->link_interrupt_count[mac_index] = 0; nes_reset_link()
2470 u32 mac_index = nesdev->mac_index; nes_process_mac_intr() local
2486 mac_status = nes_read_indexed(nesdev, NES_IDX_MAC_INT_STATUS + (mac_index * 0x200)); nes_process_mac_intr()
2488 nes_write_indexed(nesdev, NES_IDX_MAC_INT_STATUS + (mac_index * 0x200), mac_status); nes_process_mac_intr()
2494 if (0 == (++nesadapter->link_interrupt_count[mac_index] % ((u16)NES_MAX_LINK_INTERRUPTS))) nes_process_mac_intr()
2495 nes_reset_link(nesdev, mac_index); nes_process_mac_intr()
2499 (nesadapter->phy_type[mac_index] != NES_PHY_TYPE_PUMA_1G)) { nes_process_mac_intr()
2502 nesadapter->phy_index[mac_index], &phy_data); nes_process_mac_intr()
2504 nesadapter->phy_index[mac_index], phy_data); nes_process_mac_intr()
2510 nesadapter->phy_index[mac_index], &phy_data); nes_process_mac_intr()
2512 nesadapter->phy_index[mac_index], phy_data); nes_process_mac_intr()
2519 nesadapter->phy_index[mac_index], &phy_data); nes_process_mac_intr()
2521 nesadapter->phy_index[mac_index], phy_data); nes_process_mac_intr()
2524 nesadapter->phy_index[mac_index], &phy_data); nes_process_mac_intr()
2526 nesadapter->phy_index[mac_index], phy_data); nes_process_mac_intr()
2539 if (nesadapter->phy_type[mac_index] == NES_PHY_TYPE_PUMA_1G) { nes_process_mac_intr()
2540 switch (mac_index) { nes_process_mac_intr()
2553 NES_IDX_PHY_PCS_CONTROL_STATUS0 + ((mac_index & 1) * 0x200)); nes_process_mac_intr()
2555 NES_IDX_PHY_PCS_CONTROL_STATUS0 + ((mac_index & 1) * 0x200)); nes_process_mac_intr()
2559 mac_index, pcs_control_status); nes_process_mac_intr()
2561 (nesadapter->phy_type[mac_index] != NES_PHY_TYPE_PUMA_1G)) { nes_process_mac_intr()
2571 switch (nesadapter->phy_type[mac_index]) { nes_process_mac_intr()
2576 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 4, 0x0008); nes_process_mac_intr()
2577 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 4, 0xc001); nes_process_mac_intr()
2578 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 4, 0xc002); nes_process_mac_intr()
2579 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 4, 0xc005); nes_process_mac_intr()
2580 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 4, 0xc006); nes_process_mac_intr()
2581 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 1, 0x9003); nes_process_mac_intr()
2582 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 1, 0x9004); nes_process_mac_intr()
2583 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 1, 0x9005); nes_process_mac_intr()
2585 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 1, 0x9003); nes_process_mac_intr()
2588 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 3, 0x0021); nes_process_mac_intr()
2590 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 3, 0x0021); nes_process_mac_intr()
2596 __func__, phy_data, nesadapter->mac_link_down[mac_index] ? "DOWN" : "UP"); nes_process_mac_intr()
2600 if (mac_index < 2) nes_process_mac_intr()
2613 (nesadapter->phy_type[mac_index] == NES_PHY_TYPE_CX4) && nes_process_mac_intr()
2617 mac_index * 0x200); nes_process_mac_intr()
2620 mac_index * 0x200, nes_process_mac_intr()
2623 nesadapter->mac_link_down[mac_index] = 0; nes_process_mac_intr()
2624 list_for_each_entry(nesvnic, &nesadapter->nesvnic_list[mac_index], list) { nes_process_mac_intr()
2647 (nesadapter->phy_type[mac_index] == NES_PHY_TYPE_CX4) && nes_process_mac_intr()
2651 mac_index * 0x200); nes_process_mac_intr()
2654 mac_index * 0x200, nes_process_mac_intr()
2657 nesadapter->mac_link_down[mac_index] = 1; nes_process_mac_intr()
2658 list_for_each_entry(nesvnic, &nesadapter->nesvnic_list[mac_index], list) { nes_process_mac_intr()
2680 if (nesadapter->phy_type[mac_index] == NES_PHY_TYPE_SFP_D) { nes_process_mac_intr()
2698 u32 mac_index = nesdev->mac_index; nes_recheck_link_status() local
2705 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 1, 0x9003); nes_recheck_link_status()
2708 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 3, 0x0021); nes_recheck_link_status()
2710 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 3, 0x0021); nes_recheck_link_status()
2717 nesadapter->mac_link_down[mac_index] ? "DOWN" : "UP"); nes_recheck_link_status()
2720 nesadapter->mac_link_down[mac_index] = 0; nes_recheck_link_status()
2721 list_for_each_entry(nesvnic, &nesadapter->nesvnic_list[mac_index], list) { nes_recheck_link_status()
2742 nesadapter->mac_link_down[mac_index] = 1; nes_recheck_link_status()
2743 list_for_each_entry(nesvnic, &nesadapter->nesvnic_list[mac_index], list) { nes_recheck_link_status()
H A Dnes.c593 nesdev->mac_index = 2; nes_probe()
596 nesdev->mac_index = 1; nes_probe()
599 nesdev->mac_index = 3; nes_probe()
603 nesdev->mac_index = 0; nes_probe()
606 nesdev->mac_index = PCI_FUNC(nesdev->pcidev->devfn) % nes_probe()
639 nesdev->int_req |= (1 << (PCI_FUNC(nesdev->mac_index)+24)); nes_probe()
H A Dnes.h245 unsigned int mac_index; member in struct:nes_device
H A Dnes_utils.c445 /* nes_debug(NES_DBG_PHY, "phy addr = %d, mac_index = %d\n", nes_read_1G_phy_reg()
446 phy_addr, nesdev->mac_index); */ nes_read_1G_phy_reg()
H A Dnes_mgt.c912 mgtvnic->mgt.qp_id = nesdev->mac_index + NES_MGT_QP_OFFSET + i; nes_init_mgt_qp()
/linux-4.1.27/drivers/net/ethernet/qlogic/
H A Dqla3xxx.c152 (QL_RESOURCE_BITS_BASE_CODE | (qdev->mac_index) ql_wait_for_drvr_lock()
533 (QL_RESOURCE_BITS_BASE_CODE | (qdev->mac_index) * ql_get_nvram_params()
796 PHYAddr[qdev->mac_index]); ql_petbi_reset_ex()
805 PHYAddr[qdev->mac_index]); ql_petbi_start_neg_ex()
808 PHYAddr[qdev->mac_index]); ql_petbi_start_neg_ex()
812 PHYAddr[qdev->mac_index]); ql_petbi_start_neg_ex()
817 PHYAddr[qdev->mac_index]); ql_petbi_start_neg_ex()
865 0x0020 | (PHYAddr[qdev->mac_index] >> 8), miiAddr); phyAgereSpecificInit()
996 if (qdev->mac_index == 0) PHY_Setup()
1047 if (qdev->mac_index) ql_mac_enable()
1067 if (qdev->mac_index) ql_mac_cfg_soft_reset()
1087 if (qdev->mac_index) ql_mac_cfg_gig()
1107 if (qdev->mac_index) ql_mac_cfg_full_dup()
1129 if (qdev->mac_index) ql_mac_cfg_pause()
1145 switch (qdev->mac_index) { ql_is_fiber()
1175 switch (qdev->mac_index) { ql_is_auto_neg_complete()
1211 switch (qdev->mac_index) { ql_auto_neg_error()
1249 switch (qdev->mac_index) { ql_link_down_detect()
1271 switch (qdev->mac_index) { ql_link_down_detect_clear()
1303 switch (qdev->mac_index) { ql_this_adapter_controls_port()
1328 PHYAddr[qdev->mac_index]); ql_phy_reset_ex()
1340 if (qdev->mac_index == 0) ql_phy_start_neg_ex()
1354 PHYAddr[qdev->mac_index]); ql_phy_start_neg_ex()
1365 PHYAddr[qdev->mac_index]); ql_phy_start_neg_ex()
1369 PHYAddr[qdev->mac_index]); ql_phy_start_neg_ex()
1395 PHYAddr[qdev->mac_index]); ql_phy_start_neg_ex()
1397 ql_mii_read_reg_ex(qdev, CONTROL_REG, &reg, PHYAddr[qdev->mac_index]); ql_phy_start_neg_ex()
1401 PHYAddr[qdev->mac_index]); ql_phy_start_neg_ex()
1421 switch (qdev->mac_index) { ql_get_link_state()
1442 (QL_RESOURCE_BITS_BASE_CODE | (qdev->mac_index) * ql_port_start()
1463 (QL_RESOURCE_BITS_BASE_CODE | (qdev->mac_index) * ql_finish_auto_neg()
1621 (QL_RESOURCE_BITS_BASE_CODE | (qdev->mac_index) * ql_mii_setup()
1666 (qdev->mac_index) * 2) << 7)) { ql_get_auto_cfg_status()
1683 (qdev->mac_index) * 2) << 7)) { ql_get_speed()
1700 (qdev->mac_index) * 2) << 7)) { ql_get_full_dup()
1763 if (qdev->mac_index == 0) ql_get_pauseparam()
2954 (QL_RESOURCE_BITS_BASE_CODE | (qdev->mac_index) * ql_init_misc_registers()
3148 (QL_RESOURCE_BITS_BASE_CODE | (qdev->mac_index) ql_adapter_initialize()
3161 if (qdev->mac_index) ql_adapter_initialize()
3171 (QL_RESOURCE_BITS_BASE_CODE | (qdev->mac_index) * ql_adapter_initialize()
3207 (qdev->mac_index << 2))); ql_adapter_initialize()
3212 ((qdev->mac_index << 2) + 1))); ql_adapter_initialize()
3354 qdev->mac_index = 0; ql_set_mac_info()
3365 qdev->mac_index = 1; ql_set_mac_info()
3857 if (qdev->mac_index) { ql3xxx_probe()
H A Dqla3xxx.h1175 u32 mac_index; /* Driver's MAC number can be 0 or 1 for first and second networking functions respectively */ member in struct:ql3_adapter
/linux-4.1.27/arch/avr32/include/asm/
H A Dsetup.h89 u8 mac_index; member in struct:tag_ethernet
/linux-4.1.27/drivers/net/fddi/skfp/
H A Dsmt.c63 static int mac_index(struct s_smc *smc, int mac);
210 void smt_emulate_token_ct(struct s_smc *smc, int mac_index) smt_emulate_token_ct() argument
217 count = ((time - smc->sm.last_tok_time[mac_index]) * smt_emulate_token_ct()
227 smc->mib.m[mac_index].fddiMACToken_Ct += count; smt_emulate_token_ct()
231 smc->sm.last_tok_time[mac_index] = time; smt_emulate_token_ct()
1322 neighbor->nb_mac_index = mac_index(smc,1) ; smt_fill_neighbor()
1389 st->st_mac_index = mac_index(smc,1) ; smt_fill_mac_status()
1458 * mac_index ()i ! smt_fill_fsc()
1476 mc->mc_index = mac_index(smc,1) ; smt_fill_mac_counter()
1488 fnc->nc_index = mac_index(smc,1) ; smt_fill_mac_fnc()
1742 static int mac_index(struct s_smc *smc, int mac) mac_index() function
1814 return mac_index(smc, 1); entity_to_index()
/linux-4.1.27/drivers/scsi/qla4xxx/
H A Dql4_def.h648 uint32_t mac_index; member in struct:scsi_qla_host
1000 (a->mac_index)) << 13); ql4xxx_lock_flash()
1019 (a->mac_index)) << 10); ql4xxx_lock_nvram()
1038 (a->mac_index)) << 1); ql4xxx_lock_drvr()
H A Dql4_init.c28 ha->mac_index = 1; ql4xxx_set_mac_number()
31 ha->mac_index = 3; ql4xxx_set_mac_number()
39 DEBUG2(printk("scsi%ld: %s: mac_index %d.\n", ha->host_no, __func__, ql4xxx_set_mac_number()
40 ha->mac_index)); ql4xxx_set_mac_number()
H A Dql4_os.c4914 if (is_qla40XX(ha) && (ha->mac_index == 3)) qla4xxx_recover_adapter()
/linux-4.1.27/arch/avr32/boards/hammerhead/
H A Dsetup.c117 int i = tag->u.ethernet.mac_index; parse_tag_ethernet()
/linux-4.1.27/arch/avr32/boards/merisc/
H A Dsetup.c110 i = tag->u.ethernet.mac_index; parse_tag_ethernet()
/linux-4.1.27/arch/avr32/boards/mimc200/
H A Dsetup.c133 i = tag->u.ethernet.mac_index; parse_tag_ethernet()
/linux-4.1.27/arch/avr32/boards/atngw100/
H A Dsetup.c156 i = tag->u.ethernet.mac_index; parse_tag_ethernet()
/linux-4.1.27/arch/avr32/boards/atstk1000/
H A Datstk1002.c170 i = tag->u.ethernet.mac_index; parse_tag_ethernet()
/linux-4.1.27/arch/avr32/boards/favr-32/
H A Dsetup.c182 i = tag->u.ethernet.mac_index; parse_tag_ethernet()
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
H A Drs.c897 int rs_index, mac_index, i; rs_tx_status() local
945 mac_index = info->status.rates[0].idx; rs_tx_status()
948 mac_index &= RATE_MCS_CODE_MSK; /* Remove # of streams */ rs_tx_status()
949 if (mac_index >= (IWL_RATE_9M_INDEX - IWL_FIRST_OFDM_RATE)) rs_tx_status()
950 mac_index++; rs_tx_status()
956 mac_index += IWL_FIRST_OFDM_RATE; rs_tx_status()
959 if ((mac_index < 0) || rs_tx_status()
966 (rs_index != mac_index)) { rs_tx_status()
967 IWL_DEBUG_RATE(priv, "initial rate %d does not match %d (0x%x)\n", mac_index, rs_index, tx_rate); rs_tx_status()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
H A Dmlx4_en.h536 int mac_index; member in struct:mlx4_en_priv
H A Den_netdev.c2823 priv->mac_index = -1; mlx4_en_init_netdev()
/linux-4.1.27/drivers/net/fddi/skfp/h/
H A Dcmtdef.h634 void smt_emulate_token_ct(struct s_smc *smc, int mac_index);

Completed in 587 milliseconds