Home
last modified time | relevance | path

Searched refs:w_length (Results 1 – 21 of 21) sorted by relevance

/drivers/usb/gadget/
Df_ncm.c598 u16 w_length = le16_to_cpu(ctrl->wLength); in ncm_setup() local
611 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup()
635 if (w_length == 0 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
637 value = w_length > sizeof ntb_parameters ? in ncm_setup()
638 sizeof ntb_parameters : w_length; in ncm_setup()
646 if (w_length < 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
657 if (w_length != 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
660 req->length = w_length; in ncm_setup()
672 if (w_length < 2 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
684 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup()
[all …]
Df_mtp.c1002 u16 w_length = le16_to_cpu(ctrl->wLength); in mtp_ctrlrequest() local
1008 w_value, w_index, w_length); in mtp_ctrlrequest()
1016 value = (w_length < sizeof(mtp_os_string) in mtp_ctrlrequest()
1017 ? w_length : sizeof(mtp_os_string)); in mtp_ctrlrequest()
1022 ctrl->bRequest, w_index, w_value, w_length); in mtp_ctrlrequest()
1027 value = (w_length < sizeof(mtp_ext_config_desc) ? in mtp_ctrlrequest()
1028 w_length : sizeof(mtp_ext_config_desc)); in mtp_ctrlrequest()
1033 ctrl->bRequest, w_index, w_value, w_length); in mtp_ctrlrequest()
1051 value = w_length; in mtp_ctrlrequest()
1079 cdev->req->zero = value < w_length; in mtp_ctrlrequest()
Df_sourcesink.c806 u16 w_length = le16_to_cpu(ctrl->wLength); in sourcesink_setup() local
830 if (w_length > req->length) in sourcesink_setup()
832 value = w_length; in sourcesink_setup()
840 if (w_length > req->length) in sourcesink_setup()
842 value = w_length; in sourcesink_setup()
850 w_value, w_index, w_length); in sourcesink_setup()
857 w_value, w_index, w_length); in sourcesink_setup()
Df_acm.c347 u16 w_length = le16_to_cpu(ctrl->wLength); in acm_setup() local
362 if (w_length != sizeof(struct usb_cdc_line_coding) in acm_setup()
366 value = w_length; in acm_setup()
377 value = min_t(unsigned, w_length, in acm_setup()
401 w_value, w_index, w_length); in acm_setup()
408 w_value, w_index, w_length); in acm_setup()
Dcomposite.c1226 u16 w_length = le16_to_cpu(ctrl->wLength); in composite_setup() local
1261 value = min(w_length, (u16) sizeof cdev->desc); in composite_setup()
1269 value = min_t(int, w_length, in composite_setup()
1280 value = min(w_length, (u16) value); in composite_setup()
1286 value = min(w_length, (u16) value); in composite_setup()
1291 value = min(w_length, (u16) value); in composite_setup()
1320 value = min(w_length, (u16) 1); in composite_setup()
1359 value = min(w_length, (u16) 1); in composite_setup()
1421 w_value, w_index, w_length); in composite_setup()
1465 req->zero = value < w_length; in composite_setup()
[all …]
Df_uac2.c1161 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_cur() local
1176 value = min_t(unsigned, w_length, sizeof c); in in_rq_cur()
1180 value = min_t(unsigned, w_length, 1); in in_rq_cur()
1196 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_range() local
1216 value = min_t(unsigned, w_length, sizeof r); in in_rq_range()
1241 u16 w_length = le16_to_cpu(cr->wLength); in out_rq_cur() local
1246 return w_length; in out_rq_cur()
1280 u16 w_length = le16_to_cpu(cr->wLength); in afunc_setup() local
1294 req->zero = value < w_length; in afunc_setup()
Df_rndis.c495 u16 w_length = le16_to_cpu(ctrl->wLength); in rndis_setup() local
510 value = w_length; in rndis_setup()
541 w_value, w_index, w_length); in rndis_setup()
548 w_value, w_index, w_length); in rndis_setup()
549 req->zero = (value < w_length); in rndis_setup()
Df_accessory.c810 u16 w_length = le16_to_cpu(ctrl->wLength); in acc_ctrlrequest() local
830 value = w_length; in acc_ctrlrequest()
832 w_index == 0 && w_length == 0) { in acc_ctrlrequest()
849 || offset + w_length > hid->report_desc_len) { in acc_ctrlrequest()
855 value = w_length; in acc_ctrlrequest()
866 value = w_length; in acc_ctrlrequest()
900 w_value, w_index, w_length); in acc_ctrlrequest()
Df_ecm.c474 u16 w_length = le16_to_cpu(ctrl->wLength); in ecm_setup() local
485 if (w_length != 0 || w_index != ecm->ctrl_id) in ecm_setup()
509 w_value, w_index, w_length); in ecm_setup()
516 w_value, w_index, w_length); in ecm_setup()
Dinode.c1399 u16 w_length = le16_to_cpu(ctrl->wLength); in gadgetfs_setup() local
1438 value = min (w_length, (u16) sizeof *dev->dev); in gadgetfs_setup()
1445 value = min (w_length, (u16) in gadgetfs_setup()
1456 value = min (w_length, (u16) value); in gadgetfs_setup()
1518 value = min (w_length, (u16) 1); in gadgetfs_setup()
1527 w_value, le16_to_cpu(ctrl->wIndex), w_length); in gadgetfs_setup()
1535 dev->setup_wLength = w_length; in gadgetfs_setup()
1541 if (unlikely (!dev->setup_in && w_length)) { in gadgetfs_setup()
1543 w_length); in gadgetfs_setup()
1569 req->zero = value < w_length; in gadgetfs_setup()
Df_uac1.c499 u16 w_length = le16_to_cpu(ctrl->wLength); in f_audio_setup() local
524 w_value, w_index, w_length); in f_audio_setup()
531 w_value, w_index, w_length); in f_audio_setup()
Df_eem.c173 u16 w_length = le16_to_cpu(ctrl->wLength); in eem_setup() local
177 w_value, w_index, w_length); in eem_setup()
Dnet2280.c2292 #define w_length le16_to_cpu(u.r.wLength) in handle_stat0_irqs() macro
2328 || w_length > 2) in handle_stat0_irqs()
2339 set_fifo_bytecount (ep, w_length); in handle_stat0_irqs()
2353 || w_length != 0) in handle_stat0_irqs()
2375 || w_length != 0) in handle_stat0_irqs()
2392 w_value, w_index, w_length, in handle_stat0_irqs()
2416 #undef w_length in handle_stat0_irqs()
Domap_udc.c1531 #define w_length le16_to_cpu(u.r.wLength) in ep0_irq() macro
1547 if (w_length != 0) in ep0_irq()
1568 || w_length != 0) in ep0_irq()
1597 || w_length != 0) in ep0_irq()
1670 if (!udc->ep0_in && w_length) { in ep0_irq()
1681 w_value, w_index, w_length); in ep0_irq()
1685 #undef w_length in ep0_irq()
Df_audio_source.c492 u16 w_length = le16_to_cpu(ctrl->wLength); in audio_setup() local
511 w_value, w_index, w_length); in audio_setup()
Df_mass_storage.c512 u16 w_length = le16_to_cpu(ctrl->wLength); in fsg_setup() local
529 w_length != 0) in fsg_setup()
545 w_length != 1) in fsg_setup()
551 req->length = min((u16)1, w_length); in fsg_setup()
558 le16_to_cpu(ctrl->wValue), w_index, w_length); in fsg_setup()
Dat91_udc.c1080 #define w_length le16_to_cpu(pkt.r.wLength) in handle_setup() macro
1084 w_value, w_index, w_length); in handle_setup()
1240 #undef w_length in handle_setup()
Dtcm_usb_gadget.c436 u16 w_length = le16_to_cpu(ctrl->wLength); in usbg_bot_setup() local
446 if (w_length < 1) in usbg_bot_setup()
/drivers/pci/hotplug/
Dcpqphp_pci.c694 u16 w_length; in cpqhp_save_used_resources() local
757 pci_bus_read_config_word(pci_bus, devfn, PCI_MEMORY_LIMIT, &w_length); in cpqhp_save_used_resources()
759 if ((w_base <= w_length) && (save_command & 0x02)) { in cpqhp_save_used_resources()
765 mem_node->length = (w_length - w_base + 0x10) << 16; in cpqhp_save_used_resources()
773 pci_bus_read_config_word(pci_bus, devfn, PCI_PREF_MEMORY_LIMIT, &w_length); in cpqhp_save_used_resources()
775 if ((w_base <= w_length) && (save_command & 0x02)) { in cpqhp_save_used_resources()
781 p_mem_node->length = (w_length - w_base + 0x10) << 16; in cpqhp_save_used_resources()
/drivers/memstick/core/
Dmemstick.c399 card->reg_addr.w_length = sizeof(id_reg); in memstick_alloc_card()
Dmspro_block.c1140 card->reg_addr.w_length = sizeof(struct mspro_param_register); in mspro_block_init_card()