Home
last modified time | relevance | path

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

/drivers/usb/gadget/
Dconfigfs.c987 static ssize_t ext_prop_type_show(struct usb_os_desc_ext_prop *ext_prop, in ext_prop_type_show() argument
990 return sprintf(page, "%d", ext_prop->type); in ext_prop_type_show()
993 static ssize_t ext_prop_type_store(struct usb_os_desc_ext_prop *ext_prop, in ext_prop_type_store() argument
996 struct usb_os_desc *desc = to_usb_os_desc(ext_prop->item.ci_parent); in ext_prop_type_store()
1010 if ((ext_prop->type == USB_EXT_PROP_BINARY || in ext_prop_type_store()
1011 ext_prop->type == USB_EXT_PROP_LE32 || in ext_prop_type_store()
1012 ext_prop->type == USB_EXT_PROP_BE32) && in ext_prop_type_store()
1016 ext_prop->data_len <<= 1; in ext_prop_type_store()
1017 else if ((ext_prop->type == USB_EXT_PROP_UNICODE || in ext_prop_type_store()
1018 ext_prop->type == USB_EXT_PROP_UNICODE_ENV || in ext_prop_type_store()
[all …]
Dcomposite.c1355 struct usb_os_desc_ext_prop *ext_prop; in fill_ext_prop() local
1365 list_for_each_entry(ext_prop, &d->ext_prop, entry) { in fill_ext_prop()
1371 count = ext_prop->data_len + in fill_ext_prop()
1372 ext_prop->name_len + 14; in fill_ext_prop()
1376 usb_ext_prop_put_type(buf, ext_prop->type); in fill_ext_prop()
1377 ret = usb_ext_prop_put_name(buf, ext_prop->name, in fill_ext_prop()
1378 ext_prop->name_len); in fill_ext_prop()
1381 switch (ext_prop->type) { in fill_ext_prop()
1386 ext_prop->data, in fill_ext_prop()
1387 ext_prop->data_len); in fill_ext_prop()
[all …]
/drivers/usb/gadget/function/
Df_fs.c2619 struct usb_os_desc_ext_prop *ext_prop; in __ffs_func_bind_do_os_desc() local
2626 ext_prop = func->ffs->ms_os_descs_ext_prop_avail; in __ffs_func_bind_do_os_desc()
2627 func->ffs->ms_os_descs_ext_prop_avail += sizeof(*ext_prop); in __ffs_func_bind_do_os_desc()
2629 ext_prop->type = le32_to_cpu(desc->dwPropertyDataType); in __ffs_func_bind_do_os_desc()
2630 ext_prop->name_len = le16_to_cpu(desc->wPropertyNameLength); in __ffs_func_bind_do_os_desc()
2631 ext_prop->data_len = le32_to_cpu(*(u32 *) in __ffs_func_bind_do_os_desc()
2632 usb_ext_prop_data_len_ptr(data, ext_prop->name_len)); in __ffs_func_bind_do_os_desc()
2633 length = ext_prop->name_len + ext_prop->data_len + 14; in __ffs_func_bind_do_os_desc()
2637 ext_prop->name_len; in __ffs_func_bind_do_os_desc()
2641 ext_prop->data_len; in __ffs_func_bind_do_os_desc()
[all …]
Df_rndis.c957 INIT_LIST_HEAD(&opts->rndis_os_desc.ext_prop); in rndis_alloc_inst()
Df_mtp.c1495 INIT_LIST_HEAD(&fi_mtp->mtp_os_desc.ext_prop); in alloc_inst_mtp_ptp()