Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/usb/gadget/
Dcomposite.c1466 u16 w_length = le16_to_cpu(ctrl->wLength); in composite_setup() local
1511 value = min(w_length, (u16) sizeof cdev->desc); in composite_setup()
1519 value = min_t(int, w_length, in composite_setup()
1530 value = min(w_length, (u16) value); in composite_setup()
1536 value = min(w_length, (u16) value); in composite_setup()
1541 value = min(w_length, (u16) value); in composite_setup()
1566 value = min_t(int, w_length, otg_desc_len); in composite_setup()
1596 value = min(w_length, (u16) 1); in composite_setup()
1635 value = min(w_length, (u16) 1); in composite_setup()
1711 memset(buf, 0, w_length); in composite_setup()
[all …]
/linux-4.4.14/drivers/usb/gadget/function/
Df_ncm.c621 u16 w_length = le16_to_cpu(ctrl->wLength); in ncm_setup() local
634 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup()
658 if (w_length == 0 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
660 value = w_length > sizeof ntb_parameters ? in ncm_setup()
661 sizeof ntb_parameters : w_length; in ncm_setup()
669 if (w_length < 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
680 if (w_length != 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
683 req->length = w_length; in ncm_setup()
695 if (w_length < 2 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
707 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup()
[all …]
Df_acm.c347 u16 w_length = le16_to_cpu(ctrl->wLength); in acm_setup() local
362 if (w_length != sizeof(struct usb_cdc_line_coding) in acm_setup()
366 value = w_length; in acm_setup()
377 value = min_t(unsigned, w_length, in acm_setup()
402 w_value, w_index, w_length); in acm_setup()
410 w_value, w_index, w_length); in acm_setup()
Df_sourcesink.c786 u16 w_length = le16_to_cpu(ctrl->wLength); in sourcesink_setup() local
810 if (w_length > req->length) in sourcesink_setup()
812 value = w_length; in sourcesink_setup()
820 if (w_length > req->length) in sourcesink_setup()
822 value = w_length; in sourcesink_setup()
830 w_value, w_index, w_length); in sourcesink_setup()
837 w_value, w_index, w_length); in sourcesink_setup()
Df_rndis.c472 u16 w_length = le16_to_cpu(ctrl->wLength); in rndis_setup() local
487 value = w_length; in rndis_setup()
518 w_value, w_index, w_length); in rndis_setup()
525 w_value, w_index, w_length); in rndis_setup()
526 req->zero = (value < w_length); in rndis_setup()
Df_uac2.c1280 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_cur() local
1300 value = min_t(unsigned, w_length, sizeof c); in in_rq_cur()
1304 value = min_t(unsigned, w_length, 1); in in_rq_cur()
1321 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_range() local
1346 value = min_t(unsigned, w_length, sizeof r); in in_rq_range()
1371 u16 w_length = le16_to_cpu(cr->wLength); in out_rq_cur() local
1376 return w_length; in out_rq_cur()
1410 u16 w_length = le16_to_cpu(cr->wLength); in afunc_setup() local
1424 req->zero = value < w_length; in afunc_setup()
Df_ecm.c477 u16 w_length = le16_to_cpu(ctrl->wLength); in ecm_setup() local
488 if (w_length != 0 || w_index != ecm->ctrl_id) in ecm_setup()
512 w_value, w_index, w_length); in ecm_setup()
519 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_printer.c905 u16 w_length = le16_to_cpu(ctrl->wLength); in gprinter_req_match() local
914 if (w_length <= PNP_STRING_LEN && in gprinter_req_match()
919 if (!w_value && w_length == 1 && in gprinter_req_match()
924 if (!w_value && !w_length && in gprinter_req_match()
Df_uac1.c528 u16 w_length = le16_to_cpu(ctrl->wLength); in f_audio_setup() local
553 w_value, w_index, w_length); in f_audio_setup()
560 w_value, w_index, w_length); in f_audio_setup()
Df_mass_storage.c509 u16 w_length = le16_to_cpu(ctrl->wLength); in fsg_setup() local
526 w_length != 0) in fsg_setup()
542 w_length != 1) in fsg_setup()
548 req->length = min((u16)1, w_length); in fsg_setup()
555 le16_to_cpu(ctrl->wValue), w_index, w_length); in fsg_setup()
/linux-4.4.14/drivers/pci/hotplug/
Dcpqphp_pci.c700 u16 w_length; in cpqhp_save_used_resources() local
763 pci_bus_read_config_word(pci_bus, devfn, PCI_MEMORY_LIMIT, &w_length); in cpqhp_save_used_resources()
765 if ((w_base <= w_length) && (save_command & 0x02)) { in cpqhp_save_used_resources()
771 mem_node->length = (w_length - w_base + 0x10) << 16; in cpqhp_save_used_resources()
779 pci_bus_read_config_word(pci_bus, devfn, PCI_PREF_MEMORY_LIMIT, &w_length); in cpqhp_save_used_resources()
781 if ((w_base <= w_length) && (save_command & 0x02)) { in cpqhp_save_used_resources()
787 p_mem_node->length = (w_length - w_base + 0x10) << 16; in cpqhp_save_used_resources()
/linux-4.4.14/drivers/usb/gadget/legacy/
Dinode.c1311 u16 w_length = le16_to_cpu(ctrl->wLength); in gadgetfs_setup() local
1350 value = min (w_length, (u16) sizeof *dev->dev); in gadgetfs_setup()
1357 value = min (w_length, (u16) in gadgetfs_setup()
1368 value = min (w_length, (u16) value); in gadgetfs_setup()
1431 value = min (w_length, (u16) 1); in gadgetfs_setup()
1440 w_value, le16_to_cpu(ctrl->wIndex), w_length); in gadgetfs_setup()
1448 dev->setup_wLength = w_length; in gadgetfs_setup()
1454 if (unlikely (!dev->setup_in && w_length)) { in gadgetfs_setup()
1456 w_length); in gadgetfs_setup()
1482 req->zero = value < w_length; in gadgetfs_setup()
Dtcm_usb_gadget.c430 u16 w_length = le16_to_cpu(ctrl->wLength); in usbg_bot_setup() local
440 if (w_length < 1) in usbg_bot_setup()
/linux-4.4.14/include/linux/
Dmemstick.h147 unsigned char w_length; member
/linux-4.4.14/drivers/usb/gadget/udc/
Dnet2280.c2792 #define w_length le16_to_cpu(r.wLength) in handle_stat0_irqs_superspeed() macro
2967 w_value, w_index, w_length, in handle_stat0_irqs_superspeed()
2988 #undef w_length in handle_stat0_irqs_superspeed()
3100 #define w_length le16_to_cpu(u.r.wLength) in handle_stat0_irqs() macro
3142 if (!e || w_length > 2) in handle_stat0_irqs()
3152 set_fifo_bytecount(ep, w_length); in handle_stat0_irqs()
3165 if (w_value != USB_ENDPOINT_HALT || w_length != 0) in handle_stat0_irqs()
3190 if (w_value != USB_ENDPOINT_HALT || w_length != 0) in handle_stat0_irqs()
3210 w_value, w_index, w_length, in handle_stat0_irqs()
3234 #undef w_length in handle_stat0_irqs()
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()
Dat91_udc.c1099 #define w_length le16_to_cpu(pkt.r.wLength) in handle_setup() macro
1103 w_value, w_index, w_length); in handle_setup()
1259 #undef w_length in handle_setup()
/linux-4.4.14/drivers/memstick/core/
Dmemstick.c399 card->reg_addr.w_length = sizeof(id_reg); in memstick_alloc_card()
Dms_block.c214 msb->reg_addr.w_length = sizeof(struct ms_id_register); in msb_invalidate_reg_window()
312 msb->reg_addr.w_length != len || !msb->addr_valid) { in msb_write_regs()
315 msb->reg_addr.w_length = len; in msb_write_regs()
Dmspro_block.c1141 card->reg_addr.w_length = sizeof(struct mspro_param_register); in mspro_block_init_card()