Home
last modified time | relevance | path

Searched refs:mac_index (Results 1 – 16 of 16) sorted by relevance

/drivers/infiniband/hw/nes/
Dnes_nic.c224 list_for_each_safe(list_pos, list_temp, &nesdev->nesadapter->nesvnic_list[nesdev->mac_index]) { in nes_netdev_open()
231 nes_write_indexed(nesdev, NES_IDX_MAC_INT_MASK + (0x200 * nesdev->mac_index), in nes_netdev_open()
245 if (nesdev->nesadapter->phy_type[nesdev->mac_index] == NES_PHY_TYPE_SFP_D) { in nes_netdev_open()
298 list_for_each_safe(list_pos, list_temp, &nesdev->nesadapter->nesvnic_list[nesdev->mac_index]) { in nes_netdev_stop()
308 (0x200*nesdev->mac_index), 0xffffffff); in nes_netdev_stop()
311 (0x200*first_nesvnic->nesdev->mac_index), in nes_netdev_stop()
315 nes_write_indexed(nesdev, NES_IDX_MAC_INT_MASK+(0x200*nesdev->mac_index), 0xffffffff); in nes_netdev_stop()
745 NES_IDX_MAC_RX_SHORT_FRAMES + (nesvnic->nesdev->mac_index*0x200)); in nes_netdev_get_stats()
751 NES_IDX_MAC_RX_OVERSIZED_FRAMES + (nesvnic->nesdev->mac_index*0x200)); in nes_netdev_get_stats()
757 NES_IDX_MAC_RX_JABBER_FRAMES + (nesvnic->nesdev->mac_index*0x200)); in nes_netdev_get_stats()
[all …]
Dnes_hw.c1367 u32 mac_index = nesdev->mac_index; in nes_init_2025_phy() local
1495 sds = nes_read_indexed(nesdev, NES_IDX_ETH_SERDES_COMMON_CONTROL0 + mac_index * 0x200); in nes_init_2025_phy()
1497 nes_write_indexed(nesdev, NES_IDX_ETH_SERDES_COMMON_CONTROL0 + mac_index * 0x200, sds); in nes_init_2025_phy()
1499 nes_write_indexed(nesdev, NES_IDX_ETH_SERDES_COMMON_CONTROL0 + mac_index * 0x200, sds); in nes_init_2025_phy()
1516 u32 mac_index = nesdev->mac_index; in nes_init_phy() local
1519 u8 phy_type = nesadapter->phy_type[mac_index]; in nes_init_phy()
1520 u8 phy_index = nesadapter->phy_index[mac_index]; in nes_init_phy()
2215 int_status_bit = 1 << (24 + nesdev->mac_index); in nes_dpc()
2217 nes_process_mac_intr(nesdev, nesdev->mac_index); in nes_dpc()
2392 static void nes_reset_link(struct nes_device *nesdev, u32 mac_index) in nes_reset_link() argument
[all …]
Dnes.c583 nesdev->mac_index = 2; in nes_probe()
586 nesdev->mac_index = 1; in nes_probe()
589 nesdev->mac_index = 3; in nes_probe()
593 nesdev->mac_index = 0; in nes_probe()
596 nesdev->mac_index = PCI_FUNC(nesdev->pcidev->devfn) % in nes_probe()
629 nesdev->int_req |= (1 << (PCI_FUNC(nesdev->mac_index)+24)); in nes_probe()
Dnes.h242 unsigned int mac_index; member
Dnes_mgt.c912 mgtvnic->mgt.qp_id = nesdev->mac_index + NES_MGT_QP_OFFSET + i; in nes_init_mgt_qp()
/drivers/net/ethernet/qlogic/
Dqla3xxx.c156 (QL_RESOURCE_BITS_BASE_CODE | (qdev->mac_index) in ql_wait_for_drvr_lock()
536 (QL_RESOURCE_BITS_BASE_CODE | (qdev->mac_index) * in ql_get_nvram_params()
799 PHYAddr[qdev->mac_index]); in ql_petbi_reset_ex()
808 PHYAddr[qdev->mac_index]); in ql_petbi_start_neg_ex()
811 PHYAddr[qdev->mac_index]); in ql_petbi_start_neg_ex()
815 PHYAddr[qdev->mac_index]); in ql_petbi_start_neg_ex()
820 PHYAddr[qdev->mac_index]); in ql_petbi_start_neg_ex()
868 0x0020 | (PHYAddr[qdev->mac_index] >> 8), miiAddr); in phyAgereSpecificInit()
999 if (qdev->mac_index == 0) in PHY_Setup()
1050 if (qdev->mac_index) in ql_mac_enable()
[all …]
Dqla3xxx.h1175 …u32 mac_index; /* Driver's MAC number can be 0 or 1 for first and second networking functions res… member
/drivers/net/fddi/skfp/
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) in smt_emulate_token_ct() argument
217 count = ((time - smc->sm.last_tok_time[mac_index]) * in smt_emulate_token_ct()
227 smc->mib.m[mac_index].fddiMACToken_Ct += count; in smt_emulate_token_ct()
231 smc->sm.last_tok_time[mac_index] = time; in smt_emulate_token_ct()
1322 neighbor->nb_mac_index = mac_index(smc,1) ; in smt_fill_neighbor()
1389 st->st_mac_index = mac_index(smc,1) ; in smt_fill_mac_status()
1476 mc->mc_index = mac_index(smc,1) ; in smt_fill_mac_counter()
1488 fnc->nc_index = mac_index(smc,1) ; in smt_fill_mac_fnc()
1754 static int mac_index(struct s_smc *smc, int mac) in mac_index() function
[all …]
/drivers/scsi/qla4xxx/
Dql4_def.h603 uint32_t mac_index; member
944 (a->mac_index)) << 13); in ql4xxx_lock_flash()
963 (a->mac_index)) << 10); in ql4xxx_lock_nvram()
982 (a->mac_index)) << 1); in ql4xxx_lock_drvr()
Dql4_init.c28 ha->mac_index = 1; in ql4xxx_set_mac_number()
31 ha->mac_index = 3; in ql4xxx_set_mac_number()
40 ha->mac_index)); in ql4xxx_set_mac_number()
Dql4_os.c3388 if (is_qla40XX(ha) && (ha->mac_index == 3)) in qla4xxx_recover_adapter()
/drivers/net/wireless/iwlwifi/mvm/
Drs.c851 int rs_index, mac_index, i; in rs_tx_status() local
898 mac_index = info->status.rates[0].idx; in rs_tx_status()
902 mac_index &= RATE_HT_MCS_RATE_CODE_MSK; in rs_tx_status()
903 if (mac_index >= (IWL_RATE_9M_INDEX - IWL_FIRST_OFDM_RATE)) in rs_tx_status()
904 mac_index++; in rs_tx_status()
910 mac_index += IWL_FIRST_OFDM_RATE; in rs_tx_status()
913 if ((mac_index < 0) || in rs_tx_status()
921 (rs_index != mac_index)) { in rs_tx_status()
924 mac_index, rs_index, tx_rate); in rs_tx_status()
/drivers/net/wireless/iwlwifi/dvm/
Drs.c909 int rs_index, mac_index, i; in rs_tx_status() local
957 mac_index = info->status.rates[0].idx; in rs_tx_status()
960 mac_index &= RATE_MCS_CODE_MSK; /* Remove # of streams */ in rs_tx_status()
961 if (mac_index >= (IWL_RATE_9M_INDEX - IWL_FIRST_OFDM_RATE)) in rs_tx_status()
962 mac_index++; in rs_tx_status()
968 mac_index += IWL_FIRST_OFDM_RATE; in rs_tx_status()
971 if ((mac_index < 0) || in rs_tx_status()
978 (rs_index != mac_index)) { in rs_tx_status()
979 IWL_DEBUG_RATE(priv, "initial rate %d does not match %d (0x%x)\n", mac_index, rs_index, tx_rate); in rs_tx_status()
/drivers/net/ethernet/mellanox/mlx4/
Dmlx4_en.h499 int mac_index; member
Den_netdev.c2167 priv->mac_index = -1; in mlx4_en_init_netdev()
/drivers/net/fddi/skfp/h/
Dcmtdef.h634 void smt_emulate_token_ct(struct s_smc *smc, int mac_index);