Home
last modified time | relevance | path

Searched refs:w_length (Results 1 – 16 of 16) 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()
1880 value = min_t(int, w_length, otg_desc_len); in composite_setup()
1910 value = min_t(u16, w_length, 1); in composite_setup()
[all …]
/linux/drivers/usb/gadget/function/
H A Df_uac1.c492 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_cur() local
512 value = min_t(unsigned int, w_length, 1); in in_rq_cur()
521 value = min_t(unsigned int, w_length, sizeof(c)); in in_rq_cur()
543 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_min() local
568 value = min_t(unsigned int, w_length, sizeof(r)); in in_rq_min()
590 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_max() local
615 value = min_t(unsigned int, w_length, sizeof(r)); in in_rq_max()
637 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_res() local
662 value = min_t(unsigned int, w_length, sizeof(r)); in in_rq_res()
739 u16 w_length = le16_to_cpu(cr->wLength); in out_rq_cur() local
[all …]
H A Df_sourcesink.c770 u16 w_length = le16_to_cpu(ctrl->wLength); in sourcesink_setup() local
794 if (w_length > req->length) in sourcesink_setup()
796 value = w_length; in sourcesink_setup()
804 if (w_length > req->length) in sourcesink_setup()
806 value = w_length; in sourcesink_setup()
814 w_value, w_index, w_length); in sourcesink_setup()
821 w_value, w_index, w_length); in sourcesink_setup()
H A Df_uac2.c1529 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_cur() local
1551 value = min_t(unsigned int, w_length, sizeof(c)); in in_rq_cur()
1555 value = min_t(unsigned int, w_length, 1); in in_rq_cur()
1574 value = min_t(unsigned int, w_length, 1); in in_rq_cur()
1584 value = min_t(unsigned int, w_length, sizeof(c)); in in_rq_cur()
1606 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_range() local
1641 value = min_t(unsigned int, w_length, ranges_lay3_size(rs)); in in_rq_range()
1676 value = min_t(unsigned int, w_length, sizeof(r)); in in_rq_range()
1778 u16 w_length = le16_to_cpu(cr->wLength); in out_rq_cur() local
1792 return w_length; in out_rq_cur()
[all …]
H A Df_eem.c176 u16 w_length = le16_to_cpu(ctrl->wLength); in eem_setup() local
180 w_value, w_index, w_length); in eem_setup()
H A Df_uac1_legacy.c530 u16 w_length = le16_to_cpu(ctrl->wLength); in f_audio_setup() local
555 w_value, w_index, w_length); in f_audio_setup()
562 w_value, w_index, w_length); in f_audio_setup()
H A Df_printer.c963 u16 w_length = le16_to_cpu(ctrl->wLength); in gprinter_req_match() local
979 if (!w_value && w_length == 1 && in gprinter_req_match()
984 if (!w_value && !w_length && in gprinter_req_match()
H A Df_mass_storage.c464 u16 w_length = le16_to_cpu(ctrl->wLength); in fsg_setup() local
481 w_length != 0) in fsg_setup()
497 w_length != 1) in fsg_setup()
503 req->length = min_t(u16, 1, w_length); in fsg_setup()
510 le16_to_cpu(ctrl->wValue), w_index, w_length); in fsg_setup()
H A Df_tcm.c428 u16 w_length = le16_to_cpu(ctrl->wLength); in usbg_bot_setup() local
438 if (w_length < 1) in usbg_bot_setup()
/linux/drivers/usb/gadget/legacy/
H A Dinode.c1340 u16 w_length = le16_to_cpu(ctrl->wLength); in gadgetfs_setup() local
1342 if (w_length > RBUF_SIZE) { in gadgetfs_setup()
1348 w_length = RBUF_SIZE; in gadgetfs_setup()
1390 value = min (w_length, (u16) sizeof *dev->dev); in gadgetfs_setup()
1397 value = min (w_length, (u16) in gadgetfs_setup()
1407 value = min (w_length, (u16) value); in gadgetfs_setup()
1470 value = min (w_length, (u16) 1); in gadgetfs_setup()
1479 w_value, le16_to_cpu(ctrl->wIndex), w_length); in gadgetfs_setup()
1487 dev->setup_wLength = w_length; in gadgetfs_setup()
1492 if (unlikely (!dev->setup_in && w_length)) { in gadgetfs_setup()
[all …]
/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.c1530 #define w_length le16_to_cpu(u.r.wLength) in ep0_irq() macro
1546 if (w_length != 0) in ep0_irq()
1567 || w_length != 0) in ep0_irq()
1596 || w_length != 0) in ep0_irq()
1669 if (!udc->ep0_in && w_length) { in ep0_irq()
1680 w_value, w_index, w_length); in ep0_irq()
1684 #undef w_length in ep0_irq()
H A Dat91_udc.c1085 #define w_length le16_to_cpu(pkt.r.wLength) in handle_setup() macro
1089 w_value, w_index, w_length); in handle_setup()
1245 #undef w_length in handle_setup()
H A Drenesas_usb3.c1835 u16 w_length = le16_to_cpu(ctrl->wLength); in usb3_std_req_set_sel() local
1837 if (w_length != 6) in usb3_std_req_set_sel()
/linux/drivers/memstick/core/
H A Dmspro_block.c1055 card->reg_addr.w_length = sizeof(struct mspro_param_register); in mspro_block_init_card()