| /linux-6.15/drivers/usb/gadget/ |
| H A D | composite.c | 1798 w_length = USB_COMP_EP0_BUFSIZ; in composite_setup() 1856 value = min_t(int, w_length, in composite_setup() 1934 value = min_t(u16, w_length, 1); in composite_setup() 2109 w_length = min_t(u16, w_length, USB_COMP_EP0_OS_DESC_BUFSIZ); in composite_setup() 2110 memset(buf, 0, w_length); in composite_setup() 2135 value = w_length; in composite_setup() 2136 if (w_length > 0x10) { in composite_setup() 2155 value = w_length; in composite_setup() 2156 if (w_length > 0x0A) { in composite_setup() 2217 w_value, w_index, w_length); in composite_setup() [all …]
|
| /linux-6.15/drivers/usb/gadget/function/ |
| H A D | f_ncm.c | 685 u16 w_length = le16_to_cpu(ctrl->wLength); in ncm_setup() local 698 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup() 724 value = w_length > sizeof ntb_parameters ? in ncm_setup() 725 sizeof ntb_parameters : w_length; in ncm_setup() 733 if (w_length < 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 747 req->length = w_length; in ncm_setup() 759 if (w_length < 2 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 771 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup() 805 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup() 833 w_value, w_index, w_length); in ncm_setup() [all …]
|
| H A D | f_acm.c | 337 u16 w_length = le16_to_cpu(ctrl->wLength); in acm_setup() local 352 if (w_length != sizeof(struct usb_cdc_line_coding) in acm_setup() 356 value = w_length; in acm_setup() 367 value = min_t(unsigned, w_length, in acm_setup() 400 w_value, w_index, w_length); in acm_setup() 408 w_value, w_index, w_length); in acm_setup()
|
| H A D | f_uac1.c | 492 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 590 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_max() local 637 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_res() local 739 u16 w_length = le16_to_cpu(cr->wLength); in out_rq_cur() local 751 return w_length; in out_rq_cur() 891 u16 w_length = le16_to_cpu(ctrl->wLength); in f_audio_setup() local 914 w_value, w_index, w_length); in f_audio_setup() [all …]
|
| H A D | f_sourcesink.c | 770 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 D | f_uac2.c | 1529 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 1778 u16 w_length = le16_to_cpu(cr->wLength); in out_rq_cur() local 1792 return w_length; in out_rq_cur() 1800 return w_length; in out_rq_cur() 1837 u16 w_length = le16_to_cpu(cr->wLength); in afunc_setup() local [all …]
|
| H A D | f_rndis.c | 460 u16 w_length = le16_to_cpu(ctrl->wLength); in rndis_setup() local 475 value = w_length; in rndis_setup() 506 w_value, w_index, w_length); in rndis_setup() 513 w_value, w_index, w_length); in rndis_setup() 514 req->zero = (value < w_length); in rndis_setup()
|
| H A D | f_ecm.c | 465 u16 w_length = le16_to_cpu(ctrl->wLength); in ecm_setup() local 476 if (w_length != 0 || w_index != ecm->ctrl_id) in ecm_setup() 500 w_value, w_index, w_length); in ecm_setup() 507 w_value, w_index, w_length); in ecm_setup()
|
| H A D | f_eem.c | 176 u16 w_length = le16_to_cpu(ctrl->wLength); in eem_setup() local 180 w_value, w_index, w_length); in eem_setup()
|
| H A D | f_uac1_legacy.c | 530 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 D | f_printer.c | 963 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 D | f_mass_storage.c | 464 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 D | f_tcm.c | 428 u16 w_length = le16_to_cpu(ctrl->wLength); in usbg_bot_setup() local 438 if (w_length < 1) in usbg_bot_setup()
|
| /linux-6.15/drivers/usb/gadget/legacy/ |
| H A D | inode.c | 1342 u16 w_length = le16_to_cpu(ctrl->wLength); in gadgetfs_setup() local 1344 if (w_length > RBUF_SIZE) { in gadgetfs_setup() 1350 w_length = RBUF_SIZE; in gadgetfs_setup() 1399 value = min (w_length, (u16) in gadgetfs_setup() 1409 value = min (w_length, (u16) value); in gadgetfs_setup() 1472 value = min (w_length, (u16) 1); in gadgetfs_setup() 1481 w_value, le16_to_cpu(ctrl->wIndex), w_length); in gadgetfs_setup() 1489 dev->setup_wLength = w_length; in gadgetfs_setup() 1494 if (unlikely (!dev->setup_in && w_length)) { in gadgetfs_setup() 1496 w_length); in gadgetfs_setup() [all …]
|
| /linux-6.15/drivers/pci/hotplug/ |
| H A D | cpqphp_pci.c | 689 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-6.15/include/linux/ |
| H A D | memstick.h | 143 unsigned char w_length; member
|
| /linux-6.15/drivers/usb/gadget/udc/ |
| H A D | net2280.c | 2872 #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 D | omap_udc.c | 1530 #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 D | at91_udc.c | 1085 #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 D | renesas_usb3.c | 1835 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-6.15/drivers/memstick/core/ |
| H A D | memstick.c | 397 card->reg_addr.w_length = sizeof(id_reg); in memstick_alloc_card()
|
| H A D | ms_block.c | 210 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 D | mspro_block.c | 1056 card->reg_addr.w_length = sizeof(struct mspro_param_register); in mspro_block_init_card()
|