Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/usb/gadget/
Dconfigfs.c55 struct usb_gadget_strings *gstrings[MAX_USB_STRING_LANGS + 1]; member
77 struct usb_gadget_strings *gstrings[MAX_USB_STRING_LANGS + 1]; member
525 INIT_LIST_HEAD(&cdev->gstrings); in composite_init_dev()
1281 gi->gstrings[i] = &gs->stringtab_dev; in configfs_composite_bind()
1289 gi->gstrings[i] = NULL; in configfs_composite_bind()
1290 s = usb_gstrings_attach(&gi->cdev, gi->gstrings, in configfs_composite_bind()
1335 cfg->gstrings[i] = &cn->stringtab_dev; in configfs_composite_bind()
1340 cfg->gstrings[i] = NULL; in configfs_composite_bind()
1341 s = usb_gstrings_attach(&gi->cdev, cfg->gstrings, 1); in configfs_composite_bind()
Dcomposite.c1087 list_for_each_entry(uc, &cdev->gstrings, list) { in get_string()
1116 list_for_each_entry(uc, &cdev->gstrings, list) { in get_string()
1315 list_add_tail(&uc->list, &cdev->gstrings); in usb_gstrings_attach()
2149 list_for_each_entry_safe(uc, tmp, &cdev->gstrings, list) { in composite_dev_cleanup()
2201 INIT_LIST_HEAD(&cdev->gstrings); in composite_bind()
/Linux-v4.19/net/core/
Dethtool.c1851 struct ethtool_gstrings gstrings; in ethtool_get_strings() local
1855 if (copy_from_user(&gstrings, useraddr, sizeof(gstrings))) in ethtool_get_strings()
1858 ret = __ethtool_get_sset_count(dev, gstrings.string_set); in ethtool_get_strings()
1865 gstrings.len = ret; in ethtool_get_strings()
1866 data = vzalloc(array_size(gstrings.len, ETH_GSTRING_LEN)); in ethtool_get_strings()
1867 if (gstrings.len && !data) in ethtool_get_strings()
1870 __ethtool_get_strings(dev, gstrings.string_set, data); in ethtool_get_strings()
1873 if (copy_to_user(useraddr, &gstrings, sizeof(gstrings))) in ethtool_get_strings()
1875 useraddr += sizeof(gstrings); in ethtool_get_strings()
1876 if (gstrings.len && in ethtool_get_strings()
[all …]
/Linux-v4.19/include/linux/usb/
Dcomposite.h493 struct list_head gstrings; member