Searched refs:indir (Results 1 – 2 of 2) sorted by relevance
/net/ethtool/ |
D | common.c | 345 u32 *indir; in ethtool_get_max_rxfh_channel() local 355 indir = kcalloc(dev_size, sizeof(indir[0]), GFP_USER); in ethtool_get_max_rxfh_channel() 356 if (!indir) in ethtool_get_max_rxfh_channel() 359 ret = dev->ethtool_ops->get_rxfh(dev, indir, NULL, NULL); in ethtool_get_max_rxfh_channel() 364 current_max = max(current_max, indir[dev_size]); in ethtool_get_max_rxfh_channel() 369 kfree(indir); in ethtool_get_max_rxfh_channel()
|
D | ioctl.c | 1018 static int ethtool_copy_validate_indir(u32 *indir, void __user *useraddr, in ethtool_copy_validate_indir() argument 1024 if (copy_from_user(indir, useraddr, size * sizeof(indir[0]))) in ethtool_copy_validate_indir() 1029 if (indir[i] >= rx_rings->data) in ethtool_copy_validate_indir() 1049 u32 *indir; in ethtool_get_rxfh_indir() local 1075 indir = kcalloc(dev_size, sizeof(indir[0]), GFP_USER); in ethtool_get_rxfh_indir() 1076 if (!indir) in ethtool_get_rxfh_indir() 1079 ret = dev->ethtool_ops->get_rxfh(dev, indir, NULL, NULL); in ethtool_get_rxfh_indir() 1085 indir, dev_size * sizeof(indir[0]))) in ethtool_get_rxfh_indir() 1089 kfree(indir); in ethtool_get_rxfh_indir() 1098 u32 *indir; in ethtool_set_rxfh_indir() local [all …]
|