Lines Matching refs:dev_size
1048 u32 user_size, dev_size; in ethtool_get_rxfh_indir() local
1055 dev_size = dev->ethtool_ops->get_rxfh_indir_size(dev); in ethtool_get_rxfh_indir()
1056 if (dev_size == 0) in ethtool_get_rxfh_indir()
1065 &dev_size, sizeof(dev_size))) in ethtool_get_rxfh_indir()
1072 if (user_size < dev_size) in ethtool_get_rxfh_indir()
1075 indir = kcalloc(dev_size, sizeof(indir[0]), GFP_USER); in ethtool_get_rxfh_indir()
1085 indir, dev_size * sizeof(indir[0]))) in ethtool_get_rxfh_indir()
1097 u32 user_size, dev_size, i; in ethtool_set_rxfh_indir() local
1107 dev_size = ops->get_rxfh_indir_size(dev); in ethtool_set_rxfh_indir()
1108 if (dev_size == 0) in ethtool_set_rxfh_indir()
1116 if (user_size != 0 && user_size != dev_size) in ethtool_set_rxfh_indir()
1119 indir = kcalloc(dev_size, sizeof(indir[0]), GFP_USER); in ethtool_set_rxfh_indir()
1129 for (i = 0; i < dev_size; i++) in ethtool_set_rxfh_indir()
1135 dev_size); in ethtool_set_rxfh_indir()