Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/usb/gadget/
Dcomposite.c1692 u16 w_length = le16_to_cpu(ctrl->wLength); in composite_setup() local
1697 if (w_length > USB_COMP_EP0_BUFSIZ) { in composite_setup()
1703 w_length = USB_COMP_EP0_BUFSIZ; in composite_setup()
1753 value = min(w_length, (u16) sizeof cdev->desc); in composite_setup()
1761 value = min_t(int, w_length, in composite_setup()
1772 value = min(w_length, (u16) value); in composite_setup()
1778 value = min(w_length, (u16) value); in composite_setup()
1784 value = min(w_length, (u16) value); in composite_setup()
1809 value = min_t(int, w_length, otg_desc_len); in composite_setup()
1839 value = min(w_length, (u16) 1); in composite_setup()
[all …]
/linux-6.1.9/drivers/usb/gadget/function/
Df_ncm.c690 u16 w_length = le16_to_cpu(ctrl->wLength); in ncm_setup() local
703 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup()
727 if (w_length == 0 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
729 value = w_length > sizeof ntb_parameters ? in ncm_setup()
730 sizeof ntb_parameters : w_length; in ncm_setup()
738 if (w_length < 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
749 if (w_length != 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
752 req->length = w_length; in ncm_setup()
764 if (w_length < 2 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
776 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup()
[all …]
Df_uac1.c435 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_cur() local
455 value = min_t(unsigned int, w_length, 1); in in_rq_cur()
464 value = min_t(unsigned int, w_length, sizeof(c)); in in_rq_cur()
486 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_min() local
511 value = min_t(unsigned int, w_length, sizeof(r)); in in_rq_min()
533 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_max() local
558 value = min_t(unsigned int, w_length, sizeof(r)); in in_rq_max()
580 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_res() local
605 value = min_t(unsigned int, w_length, sizeof(r)); in in_rq_res()
682 u16 w_length = le16_to_cpu(cr->wLength); in out_rq_cur() local
[all …]
Df_acm.c336 u16 w_length = le16_to_cpu(ctrl->wLength); in acm_setup() local
351 if (w_length != sizeof(struct usb_cdc_line_coding) in acm_setup()
355 value = w_length; in acm_setup()
366 value = min_t(unsigned, w_length, in acm_setup()
399 w_value, w_index, w_length); in acm_setup()
407 w_value, w_index, w_length); in acm_setup()
Df_sourcesink.c772 u16 w_length = le16_to_cpu(ctrl->wLength); in sourcesink_setup() local
796 if (w_length > req->length) in sourcesink_setup()
798 value = w_length; in sourcesink_setup()
806 if (w_length > req->length) in sourcesink_setup()
808 value = w_length; in sourcesink_setup()
816 w_value, w_index, w_length); in sourcesink_setup()
823 w_value, w_index, w_length); in sourcesink_setup()
Df_uac2.c1518 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_cur() local
1540 value = min_t(unsigned int, w_length, sizeof(c)); in in_rq_cur()
1544 value = min_t(unsigned int, w_length, 1); in in_rq_cur()
1563 value = min_t(unsigned int, w_length, 1); in in_rq_cur()
1573 value = min_t(unsigned int, w_length, sizeof(c)); in in_rq_cur()
1595 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_range() local
1630 value = min_t(unsigned int, w_length, ranges_lay3_size(rs)); in in_rq_range()
1665 value = min_t(unsigned int, w_length, sizeof(r)); in in_rq_range()
1767 u16 w_length = le16_to_cpu(cr->wLength); in out_rq_cur() local
1781 return w_length; in out_rq_cur()
[all …]
Df_rndis.c473 u16 w_length = le16_to_cpu(ctrl->wLength); in rndis_setup() local
488 value = w_length; in rndis_setup()
519 w_value, w_index, w_length); in rndis_setup()
526 w_value, w_index, w_length); in rndis_setup()
527 req->zero = (value < w_length); in rndis_setup()
Df_ecm.c476 u16 w_length = le16_to_cpu(ctrl->wLength); in ecm_setup() local
487 if (w_length != 0 || w_index != ecm->ctrl_id) in ecm_setup()
511 w_value, w_index, w_length); in ecm_setup()
518 w_value, w_index, w_length); in ecm_setup()
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()
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()
Df_printer.c945 u16 w_length = le16_to_cpu(ctrl->wLength); in gprinter_req_match() local
961 if (!w_value && w_length == 1 && in gprinter_req_match()
966 if (!w_value && !w_length && in gprinter_req_match()
Df_mass_storage.c463 u16 w_length = le16_to_cpu(ctrl->wLength); in fsg_setup() local
480 w_length != 0) in fsg_setup()
496 w_length != 1) in fsg_setup()
502 req->length = min((u16)1, w_length); in fsg_setup()
509 le16_to_cpu(ctrl->wValue), w_index, w_length); in fsg_setup()
Df_tcm.c425 u16 w_length = le16_to_cpu(ctrl->wLength); in usbg_bot_setup() local
435 if (w_length < 1) in usbg_bot_setup()
/linux-6.1.9/drivers/usb/gadget/legacy/
Dinode.c1336 u16 w_length = le16_to_cpu(ctrl->wLength); in gadgetfs_setup() local
1338 if (w_length > RBUF_SIZE) { in gadgetfs_setup()
1344 w_length = RBUF_SIZE; in gadgetfs_setup()
1386 value = min (w_length, (u16) sizeof *dev->dev); in gadgetfs_setup()
1393 value = min (w_length, (u16) in gadgetfs_setup()
1403 value = min (w_length, (u16) value); in gadgetfs_setup()
1466 value = min (w_length, (u16) 1); in gadgetfs_setup()
1475 w_value, le16_to_cpu(ctrl->wIndex), w_length); in gadgetfs_setup()
1483 dev->setup_wLength = w_length; in gadgetfs_setup()
1488 if (unlikely (!dev->setup_in && w_length)) { in gadgetfs_setup()
[all …]
/linux-6.1.9/drivers/pci/hotplug/
Dcpqphp_pci.c698 u16 w_length; in cpqhp_save_used_resources() local
761 pci_bus_read_config_word(pci_bus, devfn, PCI_MEMORY_LIMIT, &w_length); in cpqhp_save_used_resources()
763 if ((w_base <= w_length) && (save_command & 0x02)) { in cpqhp_save_used_resources()
769 mem_node->length = (w_length - w_base + 0x10) << 16; in cpqhp_save_used_resources()
777 pci_bus_read_config_word(pci_bus, devfn, PCI_PREF_MEMORY_LIMIT, &w_length); in cpqhp_save_used_resources()
779 if ((w_base <= w_length) && (save_command & 0x02)) { in cpqhp_save_used_resources()
785 p_mem_node->length = (w_length - w_base + 0x10) << 16; in cpqhp_save_used_resources()
/linux-6.1.9/include/linux/
Dmemstick.h143 unsigned char w_length; member
/linux-6.1.9/drivers/usb/gadget/udc/
Dnet2280.c2873 #define w_length le16_to_cpu(r.wLength) in handle_stat0_irqs_superspeed() macro
3045 w_value, w_index, w_length, in handle_stat0_irqs_superspeed()
3068 #undef w_length in handle_stat0_irqs_superspeed()
3180 #define w_length le16_to_cpu(u.r.wLength) in handle_stat0_irqs() macro
3222 if (!e || w_length > 2) in handle_stat0_irqs()
3232 set_fifo_bytecount(ep, w_length); in handle_stat0_irqs()
3245 if (w_value != USB_ENDPOINT_HALT || w_length != 0) in handle_stat0_irqs()
3270 if (w_value != USB_ENDPOINT_HALT || w_length != 0) in handle_stat0_irqs()
3290 w_value, w_index, w_length, in handle_stat0_irqs()
3316 #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()
Dat91_udc.c1084 #define w_length le16_to_cpu(pkt.r.wLength) in handle_setup() macro
1088 w_value, w_index, w_length); in handle_setup()
1244 #undef w_length in handle_setup()
Drenesas_usb3.c1794 u16 w_length = le16_to_cpu(ctrl->wLength); in usb3_std_req_set_sel() local
1796 if (w_length != 6) in usb3_std_req_set_sel()
/linux-6.1.9/drivers/memstick/core/
Dmemstick.c394 card->reg_addr.w_length = sizeof(id_reg); in memstick_alloc_card()
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()
Dmspro_block.c1091 card->reg_addr.w_length = sizeof(struct mspro_param_register); in mspro_block_init_card()