Home
last modified time | relevance | path

Searched refs:indir (Results 1 – 25 of 41) sorted by relevance

12

/Linux-v4.19/drivers/net/ethernet/microchip/
Dlan743x_ethtool.c454 u32 *indir, u8 *key, u8 *hfunc) in lan743x_ethtool_get_rxfh() argument
458 if (indir) { in lan743x_ethtool_get_rxfh()
467 indir[byte_index + 0] = in lan743x_ethtool_get_rxfh()
469 indir[byte_index + 1] = in lan743x_ethtool_get_rxfh()
471 indir[byte_index + 2] = in lan743x_ethtool_get_rxfh()
473 indir[byte_index + 3] = in lan743x_ethtool_get_rxfh()
503 const u32 *indir, const u8 *key, in lan743x_ethtool_set_rxfh() argument
511 if (indir) { in lan743x_ethtool_set_rxfh()
519 (((indir[byte_index + 0] & 0x000000FF) << 0) | in lan743x_ethtool_set_rxfh()
520 ((indir[byte_index + 1] & 0x000000FF) << 8) | in lan743x_ethtool_set_rxfh()
[all …]
/Linux-v4.19/net/core/
Dethtool.c1053 static int ethtool_copy_validate_indir(u32 *indir, void __user *useraddr, in ethtool_copy_validate_indir() argument
1059 if (copy_from_user(indir, useraddr, size * sizeof(indir[0]))) in ethtool_copy_validate_indir()
1064 if (indir[i] >= rx_rings->data) in ethtool_copy_validate_indir()
1083 u32 *indir; in ethtool_get_max_rxfh_channel() local
1093 indir = kcalloc(dev_size, sizeof(indir[0]), GFP_USER); in ethtool_get_max_rxfh_channel()
1094 if (!indir) in ethtool_get_max_rxfh_channel()
1097 ret = dev->ethtool_ops->get_rxfh(dev, indir, NULL, NULL); in ethtool_get_max_rxfh_channel()
1102 current_max = max(current_max, indir[dev_size]); in ethtool_get_max_rxfh_channel()
1107 kfree(indir); in ethtool_get_max_rxfh_channel()
1115 u32 *indir; in ethtool_get_rxfh_indir() local
[all …]
/Linux-v4.19/fs/freevxfs/
Dvxfs_bmap.c89 __fs32 *indir; in vxfs_bmap_ext4() local
96 indir = (__fs32 *)buf->b_data; in vxfs_bmap_ext4()
97 bno = fs32_to_cpu(sbi, indir[(bn / indsize) % (indsize * bn)]) + in vxfs_bmap_ext4()
131 vxfs_bmap_indir(struct inode *ip, long indir, int size, long block) in vxfs_bmap_indir() argument
143 indir + (i / VXFS_TYPED_PER_BLOCK(ip->i_sb))); in vxfs_bmap_indir()
/Linux-v4.19/drivers/net/ethernet/intel/fm10k/
Dfm10k_ethtool.c972 void fm10k_write_reta(struct fm10k_intfc *interface, const u32 *indir) in fm10k_write_reta() argument
985 if (indir) in fm10k_write_reta()
986 n = indir[4 * i + j]; in fm10k_write_reta()
1007 static int fm10k_get_reta(struct net_device *netdev, u32 *indir) in fm10k_get_reta() argument
1012 if (!indir) in fm10k_get_reta()
1015 for (i = 0; i < FM10K_RETA_SIZE; i++, indir += 4) { in fm10k_get_reta()
1018 indir[0] = (reta << 24) >> 24; in fm10k_get_reta()
1019 indir[1] = (reta << 16) >> 24; in fm10k_get_reta()
1020 indir[2] = (reta << 8) >> 24; in fm10k_get_reta()
1021 indir[3] = (reta) >> 24; in fm10k_get_reta()
[all …]
/Linux-v4.19/include/linux/
Dethtool.h375 int (*get_rxfh)(struct net_device *, u32 *indir, u8 *key,
377 int (*set_rxfh)(struct net_device *, const u32 *indir,
379 int (*get_rxfh_context)(struct net_device *, u32 *indir, u8 *key,
381 int (*set_rxfh_context)(struct net_device *, const u32 *indir,
/Linux-v4.19/drivers/net/dsa/
Dbcm_sf2.h149 u32 indir, dir; \
152 indir = reg_readl(priv, REG_DIR_DATA_READ); \
154 return (u64)indir << 32 | dir; \
/Linux-v4.19/drivers/net/ethernet/sfc/
Dethtool.c1329 static int efx_ethtool_get_rxfh(struct net_device *net_dev, u32 *indir, u8 *key, in efx_ethtool_get_rxfh() argument
1341 if (indir) in efx_ethtool_get_rxfh()
1342 memcpy(indir, efx->rss_context.rx_indir_table, in efx_ethtool_get_rxfh()
1350 static int efx_ethtool_set_rxfh(struct net_device *net_dev, const u32 *indir, in efx_ethtool_set_rxfh() argument
1358 if (!indir && !key) in efx_ethtool_set_rxfh()
1363 if (!indir) in efx_ethtool_set_rxfh()
1364 indir = efx->rss_context.rx_indir_table; in efx_ethtool_set_rxfh()
1366 return efx->type->rx_push_rss_config(efx, true, indir, key); in efx_ethtool_set_rxfh()
1369 static int efx_ethtool_get_rxfh_context(struct net_device *net_dev, u32 *indir, in efx_ethtool_get_rxfh_context() argument
1391 if (indir) in efx_ethtool_get_rxfh_context()
[all …]
/Linux-v4.19/drivers/net/ethernet/intel/i40evf/
Di40evf_ethtool.c730 static int i40evf_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in i40evf_get_rxfh() argument
738 if (!indir) in i40evf_get_rxfh()
745 indir[i] = (u32)adapter->rss_lut[i]; in i40evf_get_rxfh()
760 static int i40evf_set_rxfh(struct net_device *netdev, const u32 *indir, in i40evf_set_rxfh() argument
770 if (!indir) in i40evf_set_rxfh()
779 adapter->rss_lut[i] = (u8)(indir[i]); in i40evf_set_rxfh()
/Linux-v4.19/drivers/net/ethernet/amd/xgbe/
Dxgbe-ethtool.c548 static int xgbe_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in xgbe_get_rxfh() argument
554 if (indir) { in xgbe_get_rxfh()
556 indir[i] = XGMAC_GET_BITS(pdata->rss_table[i], in xgbe_get_rxfh()
569 static int xgbe_set_rxfh(struct net_device *netdev, const u32 *indir, in xgbe_set_rxfh() argument
581 if (indir) { in xgbe_set_rxfh()
582 ret = hw_if->set_rss_lookup_table(pdata, indir); in xgbe_set_rxfh()
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns/
Dhns_ae_adapt.c913 static int hns_ae_get_rss(struct hnae_handle *handle, u32 *indir, u8 *key, in hns_ae_get_rss() argument
927 if (indir) in hns_ae_get_rss()
928 memcpy(indir, ppe_cb->rss_indir_table, in hns_ae_get_rss()
929 HNS_PPEV2_RSS_IND_TBL_SIZE * sizeof(*indir)); in hns_ae_get_rss()
934 static int hns_ae_set_rss(struct hnae_handle *handle, const u32 *indir, in hns_ae_set_rss() argument
945 if (indir) { in hns_ae_set_rss()
947 memcpy(ppe_cb->rss_indir_table, indir, in hns_ae_set_rss()
948 HNS_PPEV2_RSS_IND_TBL_SIZE * sizeof(*indir)); in hns_ae_set_rss()
Dhns_ethtool.c1205 hns_get_rss(struct net_device *netdev, u32 *indir, u8 *key, u8 *hfunc) in hns_get_rss() argument
1218 if (!indir) in hns_get_rss()
1221 return ops->get_rss(priv->ae_handle, indir, key, hfunc); in hns_get_rss()
1225 hns_set_rss(struct net_device *netdev, const u32 *indir, const u8 *key, in hns_set_rss() argument
1244 return ops->set_rss(priv->ae_handle, indir, key, hfunc); in hns_set_rss()
/Linux-v4.19/drivers/net/ethernet/aquantia/atlantic/
Daq_ethtool.c185 static int aq_ethtool_get_rss(struct net_device *ndev, u32 *indir, u8 *key, in aq_ethtool_get_rss() argument
194 if (indir) { in aq_ethtool_get_rss()
196 indir[i] = cfg->aq_rss.indirection_table[i]; in aq_ethtool_get_rss()
/Linux-v4.19/drivers/net/ethernet/cavium/thunder/
Dnicvf_ethtool.c654 static int nicvf_get_rxfh(struct net_device *dev, u32 *indir, u8 *hkey, in nicvf_get_rxfh() argument
661 if (indir) { in nicvf_get_rxfh()
663 indir[idx] = rss->ind_tbl[idx]; in nicvf_get_rxfh()
675 static int nicvf_set_rxfh(struct net_device *dev, const u32 *indir, in nicvf_set_rxfh() argument
691 if (indir) { in nicvf_set_rxfh()
693 rss->ind_tbl[idx] = indir[idx]; in nicvf_set_rxfh()
/Linux-v4.19/drivers/net/ethernet/amazon/ena/
Dena_ethtool.c652 static int ena_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in ena_get_rxfh() argument
660 rc = ena_com_indirect_table_get(adapter->ena_dev, indir); in ena_get_rxfh()
687 static int ena_set_rxfh(struct net_device *netdev, const u32 *indir, in ena_set_rxfh() argument
695 if (indir) { in ena_set_rxfh()
698 ENA_IO_RXQ_IDX(indir[i]), in ena_set_rxfh()
/Linux-v4.19/drivers/net/ethernet/intel/ice/
Dice_ethtool.c832 ice_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, u8 *hfunc) in ice_get_rxfh() argument
843 if (!indir) in ice_get_rxfh()
862 indir[i] = (u32)(lut[i]); in ice_get_rxfh()
879 static int ice_set_rxfh(struct net_device *netdev, const u32 *indir, in ice_set_rxfh() argument
918 if (indir) { in ice_set_rxfh()
922 vsi->rss_lut_user[i] = (u8)(indir[i]); in ice_set_rxfh()
/Linux-v4.19/drivers/net/ethernet/intel/ixgbevf/
Dethtool.c902 static int ixgbevf_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in ixgbevf_get_rxfh() argument
916 if (indir) { in ixgbevf_get_rxfh()
920 indir[i] = adapter->rss_indir_tbl[i]; in ixgbevf_get_rxfh()
926 if (!indir && !key) in ixgbevf_get_rxfh()
930 if (indir) in ixgbevf_get_rxfh()
931 err = ixgbevf_get_reta_locked(&adapter->hw, indir, in ixgbevf_get_rxfh()
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/
Dnfp_net_ethtool.c933 static int nfp_net_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in nfp_net_get_rxfh() argument
942 if (indir) in nfp_net_get_rxfh()
944 indir[i] = nn->rss_itbl[i]; in nfp_net_get_rxfh()
957 const u32 *indir, const u8 *key, in nfp_net_set_rxfh() argument
967 if (!key && !indir) in nfp_net_set_rxfh()
974 if (indir) { in nfp_net_set_rxfh()
976 nn->rss_itbl[i] = indir[i]; in nfp_net_set_rxfh()
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/
Dhns3_ethtool.c655 static int hns3_get_rss(struct net_device *netdev, u32 *indir, u8 *key, in hns3_get_rss() argument
663 return h->ae_algo->ops->get_rss(h, indir, key, hfunc); in hns3_get_rss()
666 static int hns3_set_rss(struct net_device *netdev, const u32 *indir, in hns3_set_rss() argument
680 if (!indir) { in hns3_set_rss()
686 return h->ae_algo->ops->set_rss(h, indir, key, hfunc); in hns3_set_rss()
Dhnae3.h366 int (*get_rss)(struct hnae3_handle *handle, u32 *indir, u8 *key,
368 int (*set_rss)(struct hnae3_handle *handle, const u32 *indir,
/Linux-v4.19/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c599 static int enic_get_rxfh(struct net_device *netdev, u32 *indir, u8 *hkey, in enic_get_rxfh() argument
613 static int enic_set_rxfh(struct net_device *netdev, const u32 *indir, in enic_set_rxfh() argument
619 indir) in enic_set_rxfh()
/Linux-v4.19/drivers/net/ethernet/emulex/benet/
Dbe_ethtool.c1256 static int be_get_rxfh(struct net_device *netdev, u32 *indir, u8 *hkey, in be_get_rxfh() argument
1263 if (indir) { in be_get_rxfh()
1265 indir[i] = rss->rss_queue[i]; in be_get_rxfh()
1277 static int be_set_rxfh(struct net_device *netdev, const u32 *indir, in be_set_rxfh() argument
1288 if (indir) { in be_set_rxfh()
1292 j = indir[i]; in be_set_rxfh()
/Linux-v4.19/drivers/net/ethernet/sfc/falcon/
Dethtool.c1256 static int ef4_ethtool_get_rxfh(struct net_device *net_dev, u32 *indir, u8 *key, in ef4_ethtool_get_rxfh() argument
1263 if (indir) in ef4_ethtool_get_rxfh()
1264 memcpy(indir, efx->rx_indir_table, sizeof(efx->rx_indir_table)); in ef4_ethtool_get_rxfh()
1268 static int ef4_ethtool_set_rxfh(struct net_device *net_dev, const u32 *indir, in ef4_ethtool_set_rxfh() argument
1277 if (!indir) in ef4_ethtool_set_rxfh()
1280 return efx->type->rx_push_rss_config(efx, true, indir); in ef4_ethtool_set_rxfh()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Den_ethtool.c867 static int mlx5e_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in mlx5e_get_rxfh() argument
872 if (indir) in mlx5e_get_rxfh()
873 memcpy(indir, priv->channels.params.indirection_rqt, in mlx5e_get_rxfh()
911 static int mlx5e_set_rxfh(struct net_device *dev, const u32 *indir, in mlx5e_set_rxfh() argument
936 if (indir) { in mlx5e_set_rxfh()
937 memcpy(priv->channels.params.indirection_rqt, indir, in mlx5e_set_rxfh()
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c400 const u8 *indir = hdev->rss_cfg.rss_indirection_tbl; in hclgevf_set_rss_indir_table() local
415 indir[i * HCLGEVF_RSS_CFG_TBL_SIZE + j]; in hclgevf_set_rss_indir_table()
518 static int hclgevf_get_rss(struct hnae3_handle *handle, u32 *indir, u8 *key, in hclgevf_get_rss() argument
525 if (indir) in hclgevf_get_rss()
527 indir[i] = rss_cfg->rss_indirection_tbl[i]; in hclgevf_get_rss()
532 static int hclgevf_set_rss(struct hnae3_handle *handle, const u32 *indir, in hclgevf_set_rss() argument
541 rss_cfg->rss_indirection_tbl[i] = indir[i]; in hclgevf_set_rss()
/Linux-v4.19/drivers/net/hyperv/
Dnetvsc_drv.c1595 static int netvsc_get_rxfh(struct net_device *dev, u32 *indir, u8 *key, in netvsc_get_rxfh() argument
1610 if (indir) { in netvsc_get_rxfh()
1612 indir[i] = rndis_dev->rx_table[i]; in netvsc_get_rxfh()
1621 static int netvsc_set_rxfh(struct net_device *dev, const u32 *indir, in netvsc_set_rxfh() argument
1636 if (indir) { in netvsc_set_rxfh()
1638 if (indir[i] >= ndev->num_chn) in netvsc_set_rxfh()
1642 rndis_dev->rx_table[i] = indir[i]; in netvsc_set_rxfh()
1646 if (!indir) in netvsc_set_rxfh()

12