Home
last modified time | relevance | path

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

/linux/net/ethtool/
H A Dioctl.c2214 struct ethtool_gstrings gstrings; in ethtool_get_strings() local
2218 if (copy_from_user(&gstrings, useraddr, sizeof(gstrings))) in ethtool_get_strings()
2221 ret = __ethtool_get_sset_count(dev, gstrings.string_set); in ethtool_get_strings()
2228 gstrings.len = ret; in ethtool_get_strings()
2230 if (gstrings.len) { in ethtool_get_strings()
2231 data = vzalloc(array_size(gstrings.len, ETH_GSTRING_LEN)); in ethtool_get_strings()
2235 __ethtool_get_strings(dev, gstrings.string_set, data); in ethtool_get_strings()
2241 if (copy_to_user(useraddr, &gstrings, sizeof(gstrings))) in ethtool_get_strings()
2243 useraddr += sizeof(gstrings); in ethtool_get_strings()
2244 if (gstrings.len && in ethtool_get_strings()
[all …]
/linux/drivers/usb/gadget/
H A Dconfigfs.c46 struct usb_gadget_strings *gstrings[MAX_USB_STRING_LANGS + 1]; member
75 struct usb_gadget_strings *gstrings[MAX_USB_STRING_LANGS + 1]; member
598 INIT_LIST_HEAD(&cdev->gstrings); in composite_init_dev()
1777 cfg->gstrings[i] = &cn->stringtab_dev; in configfs_composite_bind()
1782 cfg->gstrings[i] = NULL; in configfs_composite_bind()
1783 s = usb_gstrings_attach(&gi->cdev, cfg->gstrings, 1); in configfs_composite_bind()
H A Dcomposite.c1305 list_for_each_entry(uc, &cdev->gstrings, list) { in get_string()
1334 list_for_each_entry(uc, &cdev->gstrings, list) { in get_string()
1533 list_add_tail(&uc->list, &cdev->gstrings); in usb_gstrings_attach()
2494 list_for_each_entry_safe(uc, tmp, &cdev->gstrings, list) { in composite_dev_cleanup()
2550 INIT_LIST_HEAD(&cdev->gstrings); in composite_bind()
/linux/include/linux/usb/
H A Dcomposite.h486 struct list_head gstrings; member