Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/usb/gadget/
H A Dconfigfs.c69 struct usb_gadget_strings *gstrings[MAX_USB_STRING_LANGS + 1]; member
99 struct usb_gadget_strings *gstrings[MAX_USB_STRING_LANGS + 1]; member
606 INIT_LIST_HEAD(&cdev->gstrings); in composite_init_dev()
1366 gi->gstrings[i] = &gs->stringtab_dev; in configfs_composite_bind()
1374 gi->gstrings[i] = NULL; in configfs_composite_bind()
1375 s = usb_gstrings_attach(&gi->cdev, gi->gstrings, in configfs_composite_bind()
1420 cfg->gstrings[i] = &cn->stringtab_dev; in configfs_composite_bind()
1425 cfg->gstrings[i] = NULL; in configfs_composite_bind()
1426 s = usb_gstrings_attach(&gi->cdev, cfg->gstrings, 1); in configfs_composite_bind()
H A Dcomposite.c1210 list_for_each_entry(uc, &cdev->gstrings, list) { in get_string()
1239 list_for_each_entry(uc, &cdev->gstrings, list) { in get_string()
1438 list_add_tail(&uc->list, &cdev->gstrings); in usb_gstrings_attach()
2305 list_for_each_entry_safe(uc, tmp, &cdev->gstrings, list) { in composite_dev_cleanup()
2361 INIT_LIST_HEAD(&cdev->gstrings); in composite_bind()
/OK3568_Linux_fs/kernel/net/ethtool/
H A Dioctl.c1895 struct ethtool_gstrings gstrings; in ethtool_get_strings() local
1899 if (copy_from_user(&gstrings, useraddr, sizeof(gstrings))) in ethtool_get_strings()
1902 ret = __ethtool_get_sset_count(dev, gstrings.string_set); in ethtool_get_strings()
1909 gstrings.len = ret; in ethtool_get_strings()
1911 if (gstrings.len) { in ethtool_get_strings()
1912 data = vzalloc(array_size(gstrings.len, ETH_GSTRING_LEN)); in ethtool_get_strings()
1916 __ethtool_get_strings(dev, gstrings.string_set, data); in ethtool_get_strings()
1922 if (copy_to_user(useraddr, &gstrings, sizeof(gstrings))) in ethtool_get_strings()
1924 useraddr += sizeof(gstrings); in ethtool_get_strings()
1925 if (gstrings.len && in ethtool_get_strings()
[all …]
/OK3568_Linux_fs/kernel/include/linux/usb/
H A Dcomposite.h496 struct list_head gstrings; member
/OK3568_Linux_fs/kernel/drivers/net/ethernet/realtek/r8168/
H A Dr8168_n.c24694 struct ethtool_gstrings gstrings; in ethtool_get_strings() local
24702 if (copy_from_user(&gstrings, useraddr, sizeof(gstrings))) in ethtool_get_strings()
24705 switch (gstrings.string_set) { in ethtool_get_strings()
24709 gstrings.len = ops->self_test_count(dev); in ethtool_get_strings()
24714 gstrings.len = ops->get_stats_count(dev); in ethtool_get_strings()
24720 data = kmalloc(gstrings.len * ETH_GSTRING_LEN, GFP_USER); in ethtool_get_strings()
24724 ops->get_strings(dev, gstrings.string_set, data); in ethtool_get_strings()
24727 if (copy_to_user(useraddr, &gstrings, sizeof(gstrings))) in ethtool_get_strings()
24729 useraddr += sizeof(gstrings); in ethtool_get_strings()
24730 if (copy_to_user(useraddr, data, gstrings.len * ETH_GSTRING_LEN)) in ethtool_get_strings()