Home
last modified time | relevance | path

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

/Linux-v4.19/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()
743 NES_IDX_MAC_RX_SHORT_FRAMES + (nesvnic->nesdev->mac_index*0x200)); in nes_netdev_get_stats()
749 NES_IDX_MAC_RX_OVERSIZED_FRAMES + (nesvnic->nesdev->mac_index*0x200)); in nes_netdev_get_stats()
755 NES_IDX_MAC_RX_JABBER_FRAMES + (nesvnic->nesdev->mac_index*0x200)); in nes_netdev_get_stats()
[all …]
Dnes_hw.c1353 u32 mac_index = nesdev->mac_index; in nes_init_2025_phy() local
1481 sds = nes_read_indexed(nesdev, NES_IDX_ETH_SERDES_COMMON_CONTROL0 + mac_index * 0x200); in nes_init_2025_phy()
1483 nes_write_indexed(nesdev, NES_IDX_ETH_SERDES_COMMON_CONTROL0 + mac_index * 0x200, sds); in nes_init_2025_phy()
1485 nes_write_indexed(nesdev, NES_IDX_ETH_SERDES_COMMON_CONTROL0 + mac_index * 0x200, sds); in nes_init_2025_phy()
1502 u32 mac_index = nesdev->mac_index; in nes_init_phy() local
1505 u8 phy_type = nesadapter->phy_type[mac_index]; in nes_init_phy()
1506 u8 phy_index = nesadapter->phy_index[mac_index]; in nes_init_phy()
2173 int_status_bit = 1 << (24 + nesdev->mac_index); in nes_dpc()
2175 nes_process_mac_intr(nesdev, nesdev->mac_index); in nes_dpc()
2350 static void nes_reset_link(struct nes_device *nesdev, u32 mac_index) in nes_reset_link() argument
[all …]
Dnes.c584 nesdev->mac_index = 2; in nes_probe()
587 nesdev->mac_index = 1; in nes_probe()
590 nesdev->mac_index = 3; in nes_probe()
594 nesdev->mac_index = 0; in nes_probe()
597 nesdev->mac_index = PCI_FUNC(nesdev->pcidev->devfn) % in nes_probe()
630 nesdev->int_req |= (1 << (PCI_FUNC(nesdev->mac_index)+24)); in nes_probe()
Dnes.h246 unsigned int mac_index; member
Dnes_mgt.c910 mgtvnic->mgt.qp_id = nesdev->mac_index + NES_MGT_QP_OFFSET + i; in nes_init_mgt_qp()
/Linux-v4.19/drivers/net/ethernet/qlogic/
Dqla3xxx.c152 (QL_RESOURCE_BITS_BASE_CODE | (qdev->mac_index) in ql_wait_for_drvr_lock()
531 (QL_RESOURCE_BITS_BASE_CODE | (qdev->mac_index) * in ql_get_nvram_params()
794 PHYAddr[qdev->mac_index]); in ql_petbi_reset_ex()
803 PHYAddr[qdev->mac_index]); in ql_petbi_start_neg_ex()
806 PHYAddr[qdev->mac_index]); in ql_petbi_start_neg_ex()
810 PHYAddr[qdev->mac_index]); in ql_petbi_start_neg_ex()
815 PHYAddr[qdev->mac_index]); in ql_petbi_start_neg_ex()
863 0x0020 | (PHYAddr[qdev->mac_index] >> 8), miiAddr); in phyAgereSpecificInit()
994 if (qdev->mac_index == 0) in PHY_Setup()
1045 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
/Linux-v4.19/drivers/net/fddi/skfp/
Dsmt.c62 static int mac_index(struct s_smc *smc, int mac);
209 void smt_emulate_token_ct(struct s_smc *smc, int mac_index) in smt_emulate_token_ct() argument
216 count = ((time - smc->sm.last_tok_time[mac_index]) * in smt_emulate_token_ct()
226 smc->mib.m[mac_index].fddiMACToken_Ct += count; in smt_emulate_token_ct()
230 smc->sm.last_tok_time[mac_index] = time; in smt_emulate_token_ct()
1321 neighbor->nb_mac_index = mac_index(smc,1) ; in smt_fill_neighbor()
1388 st->st_mac_index = mac_index(smc,1) ; in smt_fill_mac_status()
1475 mc->mc_index = mac_index(smc,1) ; in smt_fill_mac_counter()
1487 fnc->nc_index = mac_index(smc,1) ; in smt_fill_mac_fnc()
1741 static int mac_index(struct s_smc *smc, int mac) in mac_index() function
[all …]
/Linux-v4.19/drivers/scsi/qla4xxx/
Dql4_def.h636 uint32_t mac_index; member
986 (a->mac_index)) << 13); in ql4xxx_lock_flash()
1005 (a->mac_index)) << 10); in ql4xxx_lock_nvram()
1024 (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.c4927 if (is_qla40XX(ha) && (ha->mac_index == 3)) in qla4xxx_recover_adapter()
/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/dvm/
Drs.c897 int rs_index, mac_index, i; in rs_tx_status() local
945 mac_index = info->status.rates[0].idx; in rs_tx_status()
948 mac_index &= RATE_MCS_CODE_MSK; /* Remove # of streams */ in rs_tx_status()
949 if (mac_index >= (IWL_RATE_9M_INDEX - IWL_FIRST_OFDM_RATE)) in rs_tx_status()
950 mac_index++; in rs_tx_status()
956 mac_index += IWL_FIRST_OFDM_RATE; in rs_tx_status()
959 if ((mac_index < 0) || in rs_tx_status()
966 (rs_index != mac_index)) { in rs_tx_status()
967 IWL_DEBUG_RATE(priv, "initial rate %d does not match %d (0x%x)\n", mac_index, rs_index, tx_rate); in rs_tx_status()
/Linux-v4.19/drivers/infiniband/hw/i40iw/
Di40iw.h523 u8 *mac_addr, u8 *mac_index);
/Linux-v4.19/drivers/net/fddi/skfp/h/
Dcmtdef.h639 void smt_emulate_token_ct(struct s_smc *smc, int mac_index);
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/
Dmlx4_en.h573 int mac_index; member
Den_netdev.c3322 priv->mac_index = -1; in mlx4_en_init_netdev()