Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/usb/gadget/
Dconfigfs.c43 struct usb_gadget_strings *gstrings[MAX_USB_STRING_LANGS + 1]; member
67 struct usb_gadget_strings *gstrings[MAX_USB_STRING_LANGS + 1]; member
579 INIT_LIST_HEAD(&cdev->gstrings); in composite_init_dev()
1323 gi->gstrings[i] = &gs->stringtab_dev; in configfs_composite_bind()
1331 gi->gstrings[i] = NULL; in configfs_composite_bind()
1332 s = usb_gstrings_attach(&gi->cdev, gi->gstrings, in configfs_composite_bind()
1377 cfg->gstrings[i] = &cn->stringtab_dev; in configfs_composite_bind()
1382 cfg->gstrings[i] = NULL; in configfs_composite_bind()
1383 s = usb_gstrings_attach(&gi->cdev, cfg->gstrings, 1); in configfs_composite_bind()
Dcomposite.c1211 list_for_each_entry(uc, &cdev->gstrings, list) { in get_string()
1240 list_for_each_entry(uc, &cdev->gstrings, list) { in get_string()
1439 list_add_tail(&uc->list, &cdev->gstrings); in usb_gstrings_attach()
2307 list_for_each_entry_safe(uc, tmp, &cdev->gstrings, list) { in composite_dev_cleanup()
2363 INIT_LIST_HEAD(&cdev->gstrings); in composite_bind()
/linux-6.1.9/net/ethtool/
Dioctl.c1923 struct ethtool_gstrings gstrings; in ethtool_get_strings() local
1927 if (copy_from_user(&gstrings, useraddr, sizeof(gstrings))) in ethtool_get_strings()
1930 ret = __ethtool_get_sset_count(dev, gstrings.string_set); in ethtool_get_strings()
1937 gstrings.len = ret; in ethtool_get_strings()
1939 if (gstrings.len) { in ethtool_get_strings()
1940 data = vzalloc(array_size(gstrings.len, ETH_GSTRING_LEN)); in ethtool_get_strings()
1944 __ethtool_get_strings(dev, gstrings.string_set, data); in ethtool_get_strings()
1950 if (copy_to_user(useraddr, &gstrings, sizeof(gstrings))) in ethtool_get_strings()
1952 useraddr += sizeof(gstrings); in ethtool_get_strings()
1953 if (gstrings.len && in ethtool_get_strings()
[all …]
/linux-6.1.9/include/linux/usb/
Dcomposite.h482 struct list_head gstrings; member