Home
last modified time | relevance | path

Searched refs:ext_prop (Results 1 – 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/drivers/usb/gadget/
Dconfigfs.c963 struct usb_os_desc_ext_prop *ext_prop = to_usb_os_desc_ext_prop(item); in ext_prop_type_store() local
964 struct usb_os_desc *desc = to_usb_os_desc(ext_prop->item.ci_parent); in ext_prop_type_store()
978 if ((ext_prop->type == USB_EXT_PROP_BINARY || in ext_prop_type_store()
979 ext_prop->type == USB_EXT_PROP_LE32 || in ext_prop_type_store()
980 ext_prop->type == USB_EXT_PROP_BE32) && in ext_prop_type_store()
984 ext_prop->data_len <<= 1; in ext_prop_type_store()
985 else if ((ext_prop->type == USB_EXT_PROP_UNICODE || in ext_prop_type_store()
986 ext_prop->type == USB_EXT_PROP_UNICODE_ENV || in ext_prop_type_store()
987 ext_prop->type == USB_EXT_PROP_UNICODE_LINK) && in ext_prop_type_store()
991 ext_prop->data_len >>= 1; in ext_prop_type_store()
[all …]
Dcomposite.c1580 struct usb_os_desc_ext_prop *ext_prop; in fill_ext_prop() local
1591 list_for_each_entry(ext_prop, &d->ext_prop, entry) { in fill_ext_prop()
1592 n = ext_prop->data_len + in fill_ext_prop()
1593 ext_prop->name_len + 14; in fill_ext_prop()
1597 usb_ext_prop_put_type(buf, ext_prop->type); in fill_ext_prop()
1598 ret = usb_ext_prop_put_name(buf, ext_prop->name, in fill_ext_prop()
1599 ext_prop->name_len); in fill_ext_prop()
1602 switch (ext_prop->type) { in fill_ext_prop()
1607 ext_prop->data, in fill_ext_prop()
1608 ext_prop->data_len); in fill_ext_prop()
[all …]
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
Df_fs.c3000 struct usb_os_desc_ext_prop *ext_prop; in __ffs_func_bind_do_os_desc() local
3007 ext_prop = func->ffs->ms_os_descs_ext_prop_avail; in __ffs_func_bind_do_os_desc()
3008 func->ffs->ms_os_descs_ext_prop_avail += sizeof(*ext_prop); in __ffs_func_bind_do_os_desc()
3010 ext_prop->type = le32_to_cpu(desc->dwPropertyDataType); in __ffs_func_bind_do_os_desc()
3011 ext_prop->name_len = le16_to_cpu(desc->wPropertyNameLength); in __ffs_func_bind_do_os_desc()
3012 ext_prop->data_len = le32_to_cpu(*(__le32 *) in __ffs_func_bind_do_os_desc()
3013 usb_ext_prop_data_len_ptr(data, ext_prop->name_len)); in __ffs_func_bind_do_os_desc()
3014 length = ext_prop->name_len + ext_prop->data_len + 14; in __ffs_func_bind_do_os_desc()
3018 ext_prop->name_len; in __ffs_func_bind_do_os_desc()
3022 ext_prop->data_len; in __ffs_func_bind_do_os_desc()
[all …]
Df_generic.c2838 struct usb_os_desc_ext_prop *ext_prop; in __ffs_func_bind_do_os_desc() local
2845 ext_prop = func->ffs->ms_os_descs_ext_prop_avail; in __ffs_func_bind_do_os_desc()
2846 func->ffs->ms_os_descs_ext_prop_avail += sizeof(*ext_prop); in __ffs_func_bind_do_os_desc()
2848 ext_prop->type = le32_to_cpu(desc->dwPropertyDataType); in __ffs_func_bind_do_os_desc()
2849 ext_prop->name_len = le16_to_cpu(desc->wPropertyNameLength); in __ffs_func_bind_do_os_desc()
2850 ext_prop->data_len = le32_to_cpu(*(__le32 *) in __ffs_func_bind_do_os_desc()
2851 usb_ext_prop_data_len_ptr(data, ext_prop->name_len)); in __ffs_func_bind_do_os_desc()
2852 length = ext_prop->name_len + ext_prop->data_len + 14; in __ffs_func_bind_do_os_desc()
2856 ext_prop->name_len; in __ffs_func_bind_do_os_desc()
2860 ext_prop->data_len; in __ffs_func_bind_do_os_desc()
[all …]
Df_rndis.c934 INIT_LIST_HEAD(&opts->rndis_os_desc.ext_prop); in rndis_alloc_inst()
Df_ncm.c1646 INIT_LIST_HEAD(&opts->ncm_os_desc.ext_prop); in ncm_alloc_inst()
/kernel/linux/linux-5.10/include/linux/usb/
Dcomposite.h95 struct list_head ext_prop; member
/kernel/linux/patches/linux-5.10/unionpi_tiger_pacth/
Dlinux-5.10.patch17944 - struct usb_os_desc_ext_prop *ext_prop;
17951 - ext_prop = func->ffs->ms_os_descs_ext_prop_avail;
17952 - func->ffs->ms_os_descs_ext_prop_avail += sizeof(*ext_prop);
17954 - ext_prop->type = le32_to_cpu(desc->dwPropertyDataType);
17955 - ext_prop->name_len = le16_to_cpu(desc->wPropertyNameLength);
17956 - ext_prop->data_len = le32_to_cpu(*(__le32 *)
17957 - usb_ext_prop_data_len_ptr(data, ext_prop->name_len));
17958 - length = ext_prop->name_len + ext_prop->data_len + 14;
17962 - ext_prop->name_len;
17966 - ext_prop->data_len;
[all …]