Searched refs:ext_prop (Results 1 – 6 of 6) sorted by relevance
1294 struct usb_os_desc_ext_prop *ext_prop = to_usb_os_desc_ext_prop(item); in ext_prop_type_store() local1295 struct usb_os_desc *desc = to_usb_os_desc(ext_prop->item.ci_parent); in ext_prop_type_store()1309 if ((ext_prop->type == USB_EXT_PROP_BINARY || in ext_prop_type_store()1310 ext_prop->type == USB_EXT_PROP_LE32 || in ext_prop_type_store()1311 ext_prop->type == USB_EXT_PROP_BE32) && in ext_prop_type_store()1315 ext_prop->data_len <<= 1; in ext_prop_type_store()1316 else if ((ext_prop->type == USB_EXT_PROP_UNICODE || in ext_prop_type_store()1317 ext_prop->type == USB_EXT_PROP_UNICODE_ENV || in ext_prop_type_store()1318 ext_prop->type == USB_EXT_PROP_UNICODE_LINK) && in ext_prop_type_store()1322 ext_prop->data_len >>= 1; in ext_prop_type_store()[all …]
1696 struct usb_os_desc_ext_prop *ext_prop; in fill_ext_prop() local1707 list_for_each_entry(ext_prop, &d->ext_prop, entry) { in fill_ext_prop()1708 n = ext_prop->data_len + in fill_ext_prop()1709 ext_prop->name_len + 14; in fill_ext_prop()1713 usb_ext_prop_put_type(buf, ext_prop->type); in fill_ext_prop()1714 ret = usb_ext_prop_put_name(buf, ext_prop->name, in fill_ext_prop()1715 ext_prop->name_len); in fill_ext_prop()1718 switch (ext_prop->type) { in fill_ext_prop()1723 ext_prop->data, in fill_ext_prop()1724 ext_prop->data_len); in fill_ext_prop()[all …]
3455 struct usb_os_desc_ext_prop *ext_prop; in __ffs_func_bind_do_os_desc() local3462 ext_prop = func->ffs->ms_os_descs_ext_prop_avail; in __ffs_func_bind_do_os_desc()3463 func->ffs->ms_os_descs_ext_prop_avail += sizeof(*ext_prop); in __ffs_func_bind_do_os_desc()3465 ext_prop->type = le32_to_cpu(desc->dwPropertyDataType); in __ffs_func_bind_do_os_desc()3466 ext_prop->name_len = le16_to_cpu(desc->wPropertyNameLength); in __ffs_func_bind_do_os_desc()3467 ext_prop->data_len = le32_to_cpu(*(__le32 *) in __ffs_func_bind_do_os_desc()3468 usb_ext_prop_data_len_ptr(data, ext_prop->name_len)); in __ffs_func_bind_do_os_desc()3469 length = ext_prop->name_len + ext_prop->data_len + 14; in __ffs_func_bind_do_os_desc()3473 ext_prop->name_len; in __ffs_func_bind_do_os_desc()3477 ext_prop->data_len; in __ffs_func_bind_do_os_desc()[all …]
908 INIT_LIST_HEAD(&opts->rndis_os_desc.ext_prop); in rndis_alloc_inst()
1692 INIT_LIST_HEAD(&opts->ncm_os_desc.ext_prop); in ncm_alloc_inst()
90 struct list_head ext_prop; member