Home
last modified time | relevance | path

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

/linux/drivers/usb/gadget/
H A Dcomposite.c1763 u16 w_length = le16_to_cpu(ctrl->wLength); in composite_setup() local
1768 if (w_length > USB_COMP_EP0_BUFSIZ) { in composite_setup()
1774 w_length = USB_COMP_EP0_BUFSIZ; in composite_setup()
1824 value = min_t(u16, w_length, sizeof(cdev->desc)); in composite_setup()
1832 value = min_t(int, w_length, in composite_setup()
1843 value = min_t(u16, w_length, value); in composite_setup()
1849 value = min_t(u16, w_length, value); in composite_setup()
1855 value = min_t(u16, w_length, value); in composite_setup()
1881 value = min_t(int, w_length, otg_desc_len); in composite_setup()
1911 value = min_t(u16, w_length, 1); in composite_setup()
[all …]
/linux/drivers/usb/gadget/function/
H A Df_ncm.c687 u16 w_length = le16_to_cpu(ctrl->wLength); in ncm_setup() local
700 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup()
724 if (w_length == 0 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
726 value = w_length > sizeof ntb_parameters ? in ncm_setup()
727 sizeof ntb_parameters : w_length; in ncm_setup()
735 if (w_length < 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
746 if (w_length != 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
749 req->length = w_length; in ncm_setup()
761 if (w_length < 2 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
773 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup()
[all …]
H A Df_acm.c340 u16 w_length = le16_to_cpu(ctrl->wLength); in acm_setup() local
355 if (w_length != sizeof(struct usb_cdc_line_coding) in acm_setup()
359 value = w_length; in acm_setup()
370 value = min_t(unsigned, w_length, in acm_setup()
403 w_value, w_index, w_length); in acm_setup()
411 w_value, w_index, w_length); in acm_setup()
H A Df_sourcesink.c777 u16 w_length = le16_to_cpu(ctrl->wLength); in sourcesink_setup() local
801 if (w_length > req->length) in sourcesink_setup()
803 value = w_length; in sourcesink_setup()
811 if (w_length > req->length) in sourcesink_setup()
813 value = w_length; in sourcesink_setup()
821 w_value, w_index, w_length); in sourcesink_setup()
828 w_value, w_index, w_length); in sourcesink_setup()
H A Df_rndis.c463 u16 w_length = le16_to_cpu(ctrl->wLength); in rndis_setup() local
478 value = w_length; in rndis_setup()
509 w_value, w_index, w_length); in rndis_setup()
516 w_value, w_index, w_length); in rndis_setup()
517 req->zero = (value < w_length); in rndis_setup()
H A Df_ecm.c468 u16 w_length = le16_to_cpu(ctrl->wLength); in ecm_setup() local
479 if (w_length != 0 || w_index != ecm->ctrl_id) in ecm_setup()
503 w_value, w_index, w_length); in ecm_setup()
510 w_value, w_index, w_length); in ecm_setup()
H A Df_eem.c177 u16 w_length = le16_to_cpu(ctrl->wLength); in eem_setup() local
181 w_value, w_index, w_length); in eem_setup()
H A Df_printer.c975 u16 w_length = le16_to_cpu(ctrl->wLength); in gprinter_req_match() local
991 if (!w_value && w_length == 1 && in gprinter_req_match()
996 if (!w_value && !w_length && in gprinter_req_match()
/linux/drivers/pci/hotplug/
H A Dcpqphp_pci.c689 u16 w_length; in cpqhp_save_used_resources() local
752 pci_bus_read_config_word(pci_bus, devfn, PCI_MEMORY_LIMIT, &w_length); in cpqhp_save_used_resources()
754 if ((w_base <= w_length) && (save_command & 0x02)) { in cpqhp_save_used_resources()
760 mem_node->length = (w_length - w_base + 0x10) << 16; in cpqhp_save_used_resources()
768 pci_bus_read_config_word(pci_bus, devfn, PCI_PREF_MEMORY_LIMIT, &w_length); in cpqhp_save_used_resources()
770 if ((w_base <= w_length) && (save_command & 0x02)) { in cpqhp_save_used_resources()
776 p_mem_node->length = (w_length - w_base + 0x10) << 16; in cpqhp_save_used_resources()
/linux/drivers/usb/gadget/udc/
H A Dnet2280.c2872 #define w_length le16_to_cpu(r.wLength) in handle_stat0_irqs_superspeed() macro
3044 w_value, w_index, w_length, in handle_stat0_irqs_superspeed()
3067 #undef w_length in handle_stat0_irqs_superspeed()
3179 #define w_length le16_to_cpu(u.r.wLength) in handle_stat0_irqs() macro
3221 if (!e || w_length > 2) in handle_stat0_irqs()
3231 set_fifo_bytecount(ep, w_length); in handle_stat0_irqs()
3244 if (w_value != USB_ENDPOINT_HALT || w_length != 0) in handle_stat0_irqs()
3269 if (w_value != USB_ENDPOINT_HALT || w_length != 0) in handle_stat0_irqs()
3289 w_value, w_index, w_length, in handle_stat0_irqs()
3315 #undef w_length in handle_stat0_irqs()
H A Domap_udc.c1526 #define w_length le16_to_cpu(u.r.wLength) in ep0_irq() macro
1542 if (w_length != 0) in ep0_irq()
1563 || w_length != 0) in ep0_irq()
1592 || w_length != 0) in ep0_irq()
1665 if (!udc->ep0_in && w_length) { in ep0_irq()
1676 w_value, w_index, w_length); in ep0_irq()
1680 #undef w_length in ep0_irq()
/linux/drivers/memstick/core/
H A Dmemstick.c398 card->reg_addr.w_length = sizeof(id_reg); in memstick_alloc_card()
H A Dms_block.c210 msb->reg_addr.w_length = sizeof(struct ms_id_register); in msb_invalidate_reg_window()
308 msb->reg_addr.w_length != len || !msb->addr_valid) { in msb_write_regs()
311 msb->reg_addr.w_length = len; in msb_write_regs()
H A Dmspro_block.c1054 card->reg_addr.w_length = sizeof(struct mspro_param_register); in mspro_block_init_card()