Searched refs:indir (Results 1 – 2 of 2) sorted by relevance
/net/ethtool/ |
D | ioctl.c | 1019 static int ethtool_copy_validate_indir(u32 *indir, void __user *useraddr, in ethtool_copy_validate_indir() argument 1025 if (copy_from_user(indir, useraddr, size * sizeof(indir[0]))) in ethtool_copy_validate_indir() 1030 if (indir[i] >= rx_rings->data) in ethtool_copy_validate_indir() 1050 u32 *indir; in ethtool_get_rxfh_indir() local 1076 indir = kcalloc(dev_size, sizeof(indir[0]), GFP_USER); in ethtool_get_rxfh_indir() 1077 if (!indir) in ethtool_get_rxfh_indir() 1080 ret = dev->ethtool_ops->get_rxfh(dev, indir, NULL, NULL); in ethtool_get_rxfh_indir() 1086 indir, dev_size * sizeof(indir[0]))) in ethtool_get_rxfh_indir() 1090 kfree(indir); in ethtool_get_rxfh_indir() 1099 u32 *indir; in ethtool_set_rxfh_indir() local [all …]
|
D | common.c | 500 u32 *indir; in ethtool_get_max_rxfh_channel() local 510 indir = kcalloc(dev_size, sizeof(indir[0]), GFP_USER); in ethtool_get_max_rxfh_channel() 511 if (!indir) in ethtool_get_max_rxfh_channel() 514 ret = dev->ethtool_ops->get_rxfh(dev, indir, NULL, NULL); in ethtool_get_max_rxfh_channel() 519 current_max = max(current_max, indir[dev_size]); in ethtool_get_max_rxfh_channel() 524 kfree(indir); in ethtool_get_max_rxfh_channel()
|