| /linux/drivers/usb/gadget/ |
| A D | composite.c | 1746 value = min_t(int, w_length, in composite_setup() 1824 value = min(w_length, (u16) 1); in composite_setup() 1870 value = min(w_length, (u16) 1); in composite_setup() 1954 w_length = min_t(u16, w_length, USB_COMP_EP0_OS_DESC_BUFSIZ); in composite_setup() 1955 memset(buf, 0, w_length); in composite_setup() 1968 value = w_length; in composite_setup() 1969 if (w_length > 0x10) { in composite_setup() 1985 value = w_length; in composite_setup() 1986 if (w_length > 0x0A) { in composite_setup() 2001 w_value, w_index, w_length); in composite_setup() [all …]
|
| /linux/drivers/usb/gadget/function/ |
| A D | f_ncm.c | 692 u16 w_length = le16_to_cpu(ctrl->wLength); in ncm_setup() local 705 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup() 731 value = w_length > sizeof ntb_parameters ? in ncm_setup() 732 sizeof ntb_parameters : w_length; in ncm_setup() 740 if (w_length < 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 754 req->length = w_length; in ncm_setup() 766 if (w_length < 2 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 778 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup() 812 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup() 840 w_value, w_index, w_length); in ncm_setup() [all …]
|
| A D | f_uac1.c | 405 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_cur() local 425 value = min_t(unsigned int, w_length, 1); in in_rq_cur() 434 value = min_t(unsigned int, w_length, sizeof(c)); in in_rq_cur() 456 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_min() local 503 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_max() local 550 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_res() local 652 u16 w_length = le16_to_cpu(cr->wLength); in out_rq_cur() local 664 return w_length; in out_rq_cur() 778 u16 w_length = le16_to_cpu(ctrl->wLength); in f_audio_setup() local 801 w_value, w_index, w_length); in f_audio_setup() [all …]
|
| A D | f_acm.c | 344 u16 w_length = le16_to_cpu(ctrl->wLength); in acm_setup() local 359 if (w_length != sizeof(struct usb_cdc_line_coding) in acm_setup() 363 value = w_length; in acm_setup() 374 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()
|
| A D | f_uac2.c | 1420 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_cur() local 1442 value = min_t(unsigned int, w_length, sizeof(c)); in in_rq_cur() 1446 value = min_t(unsigned int, w_length, 1); in in_rq_cur() 1465 value = min_t(unsigned int, w_length, 1); in in_rq_cur() 1475 value = min_t(unsigned int, w_length, sizeof(c)); in in_rq_cur() 1497 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_range() local 1638 u16 w_length = le16_to_cpu(cr->wLength); in out_rq_cur() local 1646 return w_length; in out_rq_cur() 1653 return w_length; in out_rq_cur() 1690 u16 w_length = le16_to_cpu(cr->wLength); in afunc_setup() local [all …]
|
| A D | f_sourcesink.c | 771 u16 w_length = le16_to_cpu(ctrl->wLength); in sourcesink_setup() local 795 if (w_length > req->length) in sourcesink_setup() 797 value = w_length; in sourcesink_setup() 805 if (w_length > req->length) in sourcesink_setup() 807 value = w_length; in sourcesink_setup() 815 w_value, w_index, w_length); in sourcesink_setup() 822 w_value, w_index, w_length); in sourcesink_setup()
|
| A D | f_rndis.c | 473 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()
|
| A D | f_ecm.c | 476 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()
|
| 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()
|
| 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()
|
| A D | f_printer.c | 945 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()
|
| A D | f_mass_storage.c | 462 u16 w_length = le16_to_cpu(ctrl->wLength); in fsg_setup() local 479 w_length != 0) in fsg_setup() 495 w_length != 1) in fsg_setup() 501 req->length = min((u16)1, w_length); in fsg_setup() 508 le16_to_cpu(ctrl->wValue), w_index, w_length); in fsg_setup()
|
| A D | f_tcm.c | 425 u16 w_length = le16_to_cpu(ctrl->wLength); in usbg_bot_setup() local 435 if (w_length < 1) in usbg_bot_setup()
|
| /linux/drivers/usb/gadget/legacy/ |
| A D | inode.c | 1334 u16 w_length = le16_to_cpu(ctrl->wLength); in gadgetfs_setup() local 1336 if (w_length > RBUF_SIZE) { in gadgetfs_setup() 1342 w_length = RBUF_SIZE; in gadgetfs_setup() 1391 value = min (w_length, (u16) in gadgetfs_setup() 1401 value = min (w_length, (u16) value); in gadgetfs_setup() 1464 value = min (w_length, (u16) 1); in gadgetfs_setup() 1473 w_value, le16_to_cpu(ctrl->wIndex), w_length); in gadgetfs_setup() 1481 dev->setup_wLength = w_length; in gadgetfs_setup() 1486 if (unlikely (!dev->setup_in && w_length)) { in gadgetfs_setup() 1488 w_length); in gadgetfs_setup() [all …]
|
| /linux/drivers/pci/hotplug/ |
| A D | cpqphp_pci.c | 698 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/include/linux/ |
| A D | memstick.h | 143 unsigned char w_length; member
|
| /linux/drivers/usb/gadget/udc/ |
| A D | net2280.c | 2878 #define w_length le16_to_cpu(r.wLength) in handle_stat0_irqs_superspeed() macro 3050 w_value, w_index, w_length, in handle_stat0_irqs_superspeed() 3073 #undef w_length in handle_stat0_irqs_superspeed() 3185 #define w_length le16_to_cpu(u.r.wLength) in handle_stat0_irqs() macro 3227 if (!e || w_length > 2) in handle_stat0_irqs() 3237 set_fifo_bytecount(ep, w_length); in handle_stat0_irqs() 3250 if (w_value != USB_ENDPOINT_HALT || w_length != 0) in handle_stat0_irqs() 3275 if (w_value != USB_ENDPOINT_HALT || w_length != 0) in handle_stat0_irqs() 3295 w_value, w_index, w_length, in handle_stat0_irqs() 3321 #undef w_length in handle_stat0_irqs()
|
| A D | omap_udc.c | 1526 #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()
|
| A D | at91_udc.c | 1082 #define w_length le16_to_cpu(pkt.r.wLength) in handle_setup() macro 1086 w_value, w_index, w_length); in handle_setup() 1242 #undef w_length in handle_setup()
|
| A D | renesas_usb3.c | 1777 u16 w_length = le16_to_cpu(ctrl->wLength); in usb3_std_req_set_sel() local 1779 if (w_length != 6) in usb3_std_req_set_sel()
|
| /linux/drivers/memstick/core/ |
| A D | memstick.c | 394 card->reg_addr.w_length = sizeof(id_reg); in memstick_alloc_card()
|
| 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()
|
| A D | mspro_block.c | 1130 card->reg_addr.w_length = sizeof(struct mspro_param_register); in mspro_block_init_card()
|