Home
last modified time | relevance | path

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

/linux-2.6.39/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-2.6.39/net/core/
Dethtool.c772 struct ethtool_rxfh_indir *indir; in ethtool_get_rxfh_indir() local
786 (KMALLOC_MAX_SIZE - sizeof(*indir)) / sizeof(*indir->ring_index)) in ethtool_get_rxfh_indir()
788 full_size = sizeof(*indir) + sizeof(*indir->ring_index) * table_size; in ethtool_get_rxfh_indir()
789 indir = kzalloc(full_size, GFP_USER); in ethtool_get_rxfh_indir()
790 if (!indir) in ethtool_get_rxfh_indir()
793 indir->cmd = ETHTOOL_GRXFHINDIR; in ethtool_get_rxfh_indir()
794 indir->size = table_size; in ethtool_get_rxfh_indir()
795 ret = dev->ethtool_ops->get_rxfh_indir(dev, indir); in ethtool_get_rxfh_indir()
799 if (copy_to_user(useraddr, indir, full_size)) in ethtool_get_rxfh_indir()
803 kfree(indir); in ethtool_get_rxfh_indir()
[all …]
/linux-2.6.39/drivers/net/sfc/
Dethtool.c1020 struct ethtool_rxfh_indir *indir) in efx_ethtool_get_rxfh_indir() argument
1024 min_t(size_t, indir->size, ARRAY_SIZE(efx->rx_indir_table)); in efx_ethtool_get_rxfh_indir()
1029 indir->size = ARRAY_SIZE(efx->rx_indir_table); in efx_ethtool_get_rxfh_indir()
1030 memcpy(indir->ring_index, efx->rx_indir_table, in efx_ethtool_get_rxfh_indir()
1031 copy_size * sizeof(indir->ring_index[0])); in efx_ethtool_get_rxfh_indir()
1036 const struct ethtool_rxfh_indir *indir) in efx_ethtool_set_rxfh_indir() argument
1045 if (indir->size != ARRAY_SIZE(efx->rx_indir_table)) in efx_ethtool_set_rxfh_indir()
1048 if (indir->ring_index[i] >= efx->n_rx_channels) in efx_ethtool_set_rxfh_indir()
1051 memcpy(efx->rx_indir_table, indir->ring_index, in efx_ethtool_set_rxfh_indir()
/linux-2.6.39/drivers/net/bnx2x/
Dbnx2x_ethtool.c2149 struct ethtool_rxfh_indir *indir) in bnx2x_get_rxfh_indir() argument
2153 min_t(size_t, indir->size, TSTORM_INDIRECTION_TABLE_SIZE); in bnx2x_get_rxfh_indir()
2158 indir->size = TSTORM_INDIRECTION_TABLE_SIZE; in bnx2x_get_rxfh_indir()
2159 memcpy(indir->ring_index, bp->rx_indir_table, in bnx2x_get_rxfh_indir()
2165 const struct ethtool_rxfh_indir *indir) in bnx2x_set_rxfh_indir() argument
2174 if (indir->size != TSTORM_INDIRECTION_TABLE_SIZE) in bnx2x_set_rxfh_indir()
2177 if (indir->ring_index[i] >= BNX2X_NUM_ETH_QUEUES(bp)) in bnx2x_set_rxfh_indir()
2180 memcpy(bp->rx_indir_table, indir->ring_index, in bnx2x_set_rxfh_indir()
2181 indir->size * sizeof(bp->rx_indir_table[0])); in bnx2x_set_rxfh_indir()