Home
last modified time | relevance | path

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

/linux-4.4.14/net/core/
Dethtool.c1274 struct ethtool_gstrings gstrings; in ethtool_get_strings() local
1278 if (copy_from_user(&gstrings, useraddr, sizeof(gstrings))) in ethtool_get_strings()
1281 ret = __ethtool_get_sset_count(dev, gstrings.string_set); in ethtool_get_strings()
1285 gstrings.len = ret; in ethtool_get_strings()
1287 data = kcalloc(gstrings.len, ETH_GSTRING_LEN, GFP_USER); in ethtool_get_strings()
1291 __ethtool_get_strings(dev, gstrings.string_set, data); in ethtool_get_strings()
1294 if (copy_to_user(useraddr, &gstrings, sizeof(gstrings))) in ethtool_get_strings()
1296 useraddr += sizeof(gstrings); in ethtool_get_strings()
1297 if (copy_to_user(useraddr, data, gstrings.len * ETH_GSTRING_LEN)) in ethtool_get_strings()
/linux-4.4.14/drivers/usb/gadget/
Dconfigfs.c55 struct usb_gadget_strings *gstrings[MAX_USB_STRING_LANGS + 1]; member
79 struct usb_gadget_strings *gstrings[MAX_USB_STRING_LANGS + 1]; member
523 INIT_LIST_HEAD(&cdev->gstrings); in composite_init_dev()
1282 gi->gstrings[i] = &gs->stringtab_dev; in configfs_composite_bind()
1290 gi->gstrings[i] = NULL; in configfs_composite_bind()
1291 s = usb_gstrings_attach(&gi->cdev, gi->gstrings, in configfs_composite_bind()
1336 cfg->gstrings[i] = &cn->stringtab_dev; in configfs_composite_bind()
1341 cfg->gstrings[i] = NULL; in configfs_composite_bind()
1342 s = usb_gstrings_attach(&gi->cdev, cfg->gstrings, 1); in configfs_composite_bind()
Dcomposite.c985 list_for_each_entry(uc, &cdev->gstrings, list) { in get_string()
1014 list_for_each_entry(uc, &cdev->gstrings, list) { in get_string()
1213 list_add_tail(&uc->list, &cdev->gstrings); in usb_gstrings_attach()
2041 list_for_each_entry_safe(uc, tmp, &cdev->gstrings, list) { in composite_dev_cleanup()
2078 INIT_LIST_HEAD(&cdev->gstrings); in composite_bind()
/linux-4.4.14/Documentation/DocBook/
Dgadget.xml.db64 API-usb-gstrings-attach
/linux-4.4.14/include/linux/usb/
Dcomposite.h481 struct list_head gstrings; member