Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/net/ethernet/intel/i40evf/
Di40evf_ethtool.c631 static int i40evf_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in i40evf_get_rxfh() argument
641 if (!indir) in i40evf_get_rxfh()
644 if (indir) { in i40evf_get_rxfh()
647 indir[j++] = hlut_val & 0xff; in i40evf_get_rxfh()
648 indir[j++] = (hlut_val >> 8) & 0xff; in i40evf_get_rxfh()
649 indir[j++] = (hlut_val >> 16) & 0xff; in i40evf_get_rxfh()
650 indir[j++] = (hlut_val >> 24) & 0xff; in i40evf_get_rxfh()
665 static int i40evf_set_rxfh(struct net_device *netdev, const u32 *indir, in i40evf_set_rxfh() argument
677 if (!indir) in i40evf_set_rxfh()
681 hlut_val = indir[j++]; in i40evf_set_rxfh()
[all …]
/linux-4.1.27/fs/freevxfs/
Dvxfs_bmap.c88 u32 *indir; in vxfs_bmap_ext4() local
94 indir = (u32 *)buf->b_data; in vxfs_bmap_ext4()
95 bno = indir[(bn/indsize) % (indsize*bn)] + (bn%indsize); in vxfs_bmap_ext4()
128 vxfs_bmap_indir(struct inode *ip, long indir, int size, long block) in vxfs_bmap_indir() argument
139 indir + (i / VXFS_TYPED_PER_BLOCK(ip->i_sb))); in vxfs_bmap_indir()
/linux-4.1.27/net/core/
Dethtool.c573 static int ethtool_copy_validate_indir(u32 *indir, void __user *useraddr, in ethtool_copy_validate_indir() argument
579 if (copy_from_user(indir, useraddr, size * sizeof(indir[0]))) in ethtool_copy_validate_indir()
584 if (indir[i] >= rx_rings->data) in ethtool_copy_validate_indir()
604 u32 *indir; in ethtool_get_rxfh_indir() local
630 indir = kcalloc(dev_size, sizeof(indir[0]), GFP_USER); in ethtool_get_rxfh_indir()
631 if (!indir) in ethtool_get_rxfh_indir()
634 ret = dev->ethtool_ops->get_rxfh(dev, indir, NULL, NULL); in ethtool_get_rxfh_indir()
640 indir, dev_size * sizeof(indir[0]))) in ethtool_get_rxfh_indir()
644 kfree(indir); in ethtool_get_rxfh_indir()
653 u32 *indir; in ethtool_set_rxfh_indir() local
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
Dfm10k_ethtool.c888 static int fm10k_get_reta(struct net_device *netdev, u32 *indir) in fm10k_get_reta() argument
893 if (!indir) in fm10k_get_reta()
896 for (i = 0; i < FM10K_RETA_SIZE; i++, indir += 4) { in fm10k_get_reta()
899 indir[0] = (reta << 24) >> 24; in fm10k_get_reta()
900 indir[1] = (reta << 16) >> 24; in fm10k_get_reta()
901 indir[2] = (reta << 8) >> 24; in fm10k_get_reta()
902 indir[3] = (reta) >> 24; in fm10k_get_reta()
908 static int fm10k_set_reta(struct net_device *netdev, const u32 *indir) in fm10k_set_reta() argument
915 if (!indir) in fm10k_set_reta()
921 if (indir[i] < rss_i) in fm10k_set_reta()
[all …]
/linux-4.1.27/drivers/net/dsa/
Dbcm_sf2.h108 u32 indir, dir; \
111 indir = reg_readl(priv, REG_DIR_DATA_READ); \
113 return (u64)indir << 32 | dir; \
/linux-4.1.27/drivers/net/ethernet/amd/xgbe/
Dxgbe-ethtool.c499 static int xgbe_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in xgbe_get_rxfh() argument
505 if (indir) { in xgbe_get_rxfh()
507 indir[i] = XGMAC_GET_BITS(pdata->rss_table[i], in xgbe_get_rxfh()
520 static int xgbe_set_rxfh(struct net_device *netdev, const u32 *indir, in xgbe_set_rxfh() argument
530 if (indir) { in xgbe_set_rxfh()
531 ret = hw_if->set_rss_lookup_table(pdata, indir); in xgbe_set_rxfh()
/linux-4.1.27/include/linux/
Dethtool.h261 int (*get_rxfh)(struct net_device *, u32 *indir, u8 *key,
263 int (*set_rxfh)(struct net_device *, const u32 *indir,
/linux-4.1.27/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c456 static int enic_get_rxfh(struct net_device *netdev, u32 *indir, u8 *hkey, in enic_get_rxfh() argument
470 static int enic_set_rxfh(struct net_device *netdev, const u32 *indir, in enic_set_rxfh() argument
476 indir) in enic_set_rxfh()
/linux-4.1.27/drivers/net/ethernet/sfc/
Dethtool.c1089 static int efx_ethtool_get_rxfh(struct net_device *net_dev, u32 *indir, u8 *key, in efx_ethtool_get_rxfh() argument
1096 if (indir) in efx_ethtool_get_rxfh()
1097 memcpy(indir, efx->rx_indir_table, sizeof(efx->rx_indir_table)); in efx_ethtool_get_rxfh()
1101 static int efx_ethtool_set_rxfh(struct net_device *net_dev, const u32 *indir, in efx_ethtool_set_rxfh() argument
1110 if (!indir) in efx_ethtool_set_rxfh()
1112 memcpy(efx->rx_indir_table, indir, sizeof(efx->rx_indir_table)); in efx_ethtool_set_rxfh()
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c2442 static int i40e_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in i40e_get_rxfh() argument
2455 if (!indir) in i40e_get_rxfh()
2460 indir[j++] = reg_val & 0xff; in i40e_get_rxfh()
2461 indir[j++] = (reg_val >> 8) & 0xff; in i40e_get_rxfh()
2462 indir[j++] = (reg_val >> 16) & 0xff; in i40e_get_rxfh()
2463 indir[j++] = (reg_val >> 24) & 0xff; in i40e_get_rxfh()
2487 static int i40e_set_rxfh(struct net_device *netdev, const u32 *indir, in i40e_set_rxfh() argument
2500 if (!indir) in i40e_set_rxfh()
2504 reg_val = indir[j++]; in i40e_set_rxfh()
2505 reg_val |= indir[j++] << 8; in i40e_set_rxfh()
[all …]
/linux-4.1.27/drivers/net/ethernet/emulex/benet/
Dbe_ethtool.c1176 static int be_get_rxfh(struct net_device *netdev, u32 *indir, u8 *hkey, in be_get_rxfh() argument
1183 if (indir) { in be_get_rxfh()
1185 indir[i] = rss->rss_queue[i]; in be_get_rxfh()
1197 static int be_set_rxfh(struct net_device *netdev, const u32 *indir, in be_set_rxfh() argument
1208 if (indir) { in be_set_rxfh()
1212 j = indir[i]; in be_set_rxfh()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbevf/
Dethtool.c834 static int ixgbevf_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in ixgbevf_get_rxfh() argument
846 if (!indir && !key) in ixgbevf_get_rxfh()
850 if (indir) in ixgbevf_get_rxfh()
851 err = ixgbevf_get_reta_locked(&adapter->hw, indir, in ixgbevf_get_rxfh()
/linux-4.1.27/drivers/net/ethernet/intel/igb/
Digb_ethtool.c2845 static int igb_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in igb_get_rxfh() argument
2853 if (!indir) in igb_get_rxfh()
2856 indir[i] = adapter->rss_indir_tbl[i]; in igb_get_rxfh()
2896 static int igb_set_rxfh(struct net_device *netdev, const u32 *indir, in igb_set_rxfh() argument
2908 if (!indir) in igb_set_rxfh()
2925 if (indir[i] >= num_queues) in igb_set_rxfh()
2930 adapter->rss_indir_tbl[i] = indir[i]; in igb_set_rxfh()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_ethtool.c3373 static int bnx2x_get_rxfh(struct net_device *dev, u32 *indir, u8 *key, in bnx2x_get_rxfh() argument
3382 if (!indir) in bnx2x_get_rxfh()
3398 indir[i] = ind_table[i] - bp->fp->cl_id; in bnx2x_get_rxfh()
3403 static int bnx2x_set_rxfh(struct net_device *dev, const u32 *indir, in bnx2x_set_rxfh() argument
3416 if (!indir) in bnx2x_set_rxfh()
3429 bp->rss_conf_obj.ind_table[i] = indir[i] + bp->fp->cl_id; in bnx2x_set_rxfh()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c2870 static void ixgbe_get_reta(struct ixgbe_adapter *adapter, u32 *indir) in ixgbe_get_reta() argument
2875 indir[i] = adapter->rss_indir_tbl[i]; in ixgbe_get_reta()
2878 static int ixgbe_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in ixgbe_get_rxfh() argument
2886 if (indir) in ixgbe_get_rxfh()
2887 ixgbe_get_reta(adapter, indir); in ixgbe_get_rxfh()
/linux-4.1.27/Documentation/networking/
Dscaling.txt62 commands (--show-rxfh-indir and --set-rxfh-indir). Modifying the
/linux-4.1.27/drivers/net/ethernet/broadcom/
Dtg3.c12579 static int tg3_get_rxfh(struct net_device *dev, u32 *indir, u8 *key, u8 *hfunc) in tg3_get_rxfh() argument
12586 if (!indir) in tg3_get_rxfh()
12590 indir[i] = tp->rss_ind_tbl[i]; in tg3_get_rxfh()
12595 static int tg3_set_rxfh(struct net_device *dev, const u32 *indir, const u8 *key, in tg3_set_rxfh() argument
12608 if (!indir) in tg3_set_rxfh()
12612 tp->rss_ind_tbl[i] = indir[i]; in tg3_set_rxfh()