Lines Matching defs:size
63 .size = ETHTOOL_DEV_FEATURE_WORDS,
81 sizeaddr = useraddr + offsetof(struct ethtool_gfeatures, size);
108 if (cmd.size != ETHTOOL_DEV_FEATURE_WORDS)
322 unsigned int size = BITS_TO_LONGS(__ETHTOOL_LINK_MODE_MASK_NBITS);
325 for (; idx < size; idx++) {
774 /* calculate size of return buffer */
817 size_t size)
837 if (copy_from_user(&crxnfc, useraddr, min(size, sizeof(crxnfc))))
861 size_t size)
864 return ethtool_rxnfc_copy_from_compat(rxnfc, useraddr, size);
866 if (copy_from_user(rxnfc, useraddr, size))
874 size_t size, const u32 *rule_buf)
895 if (copy_to_user(useraddr, &crxnfc, min(size, sizeof(crxnfc))))
903 size_t size, const u32 *rule_buf)
908 ret = ethtool_rxnfc_copy_to_compat(useraddr, rxnfc, size,
912 ret = copy_to_user(useraddr, rxnfc, size);
1023 u32 size)
1027 if (copy_from_user(indir, useraddr, size * sizeof(indir[0])))
1031 for (i = 0; i < size; i++)
1063 useraddr + offsetof(struct ethtool_rxfh_indir, size),
1067 if (copy_to_user(useraddr + offsetof(struct ethtool_rxfh_indir, size),
1071 /* If the user buffer size is 0, this is just a query for the
1072 * device table size. Otherwise, if it's smaller than the
1073 * device table size it's an error.
1115 useraddr + offsetof(struct ethtool_rxfh_indir, size),
1270 * Must request at least one change: indir size, hash key or function.
2103 if (epaddr.size < dev->addr_len)
2105 epaddr.size = dev->addr_len;
2110 if (copy_to_user(useraddr, dev->perm_addr, epaddr.size))