/linux-4.1.27/drivers/usb/gadget/ |
H A D | composite.c | 1461 u16 w_length = le16_to_cpu(ctrl->wLength); composite_setup() local 1504 value = min(w_length, (u16) sizeof cdev->desc); composite_setup() 1512 value = min_t(int, w_length, composite_setup() 1523 value = min(w_length, (u16) value); composite_setup() 1529 value = min(w_length, (u16) value); composite_setup() 1534 value = min(w_length, (u16) value); composite_setup() 1563 value = min(w_length, (u16) 1); composite_setup() 1602 value = min(w_length, (u16) 1); composite_setup() 1678 memset(buf, 0, w_length); composite_setup() 1685 if (w_length == 0x10) { composite_setup() 1692 value = w_length; composite_setup() 1702 value = w_length; composite_setup() 1710 if (w_length == 0x0A) { composite_setup() 1718 value = w_length; composite_setup() 1732 value = w_length; composite_setup() 1738 req->zero = value < w_length; composite_setup() 1751 w_value, w_index, w_length); composite_setup() 1817 req->zero = value < w_length; composite_setup() 1824 } else if (value == USB_GADGET_DELAYED_STATUS && w_length != 0) { composite_setup() 1826 "%s: Delayed status not supported for w_length != 0", composite_setup()
|
/linux-4.1.27/drivers/usb/gadget/function/ |
H A D | f_ncm.c | 621 u16 w_length = le16_to_cpu(ctrl->wLength); ncm_setup() local 634 if (w_length != 0 || w_index != ncm->ctrl_id) ncm_setup() 658 if (w_length == 0 || w_value != 0 || w_index != ncm->ctrl_id) ncm_setup() 660 value = w_length > sizeof ntb_parameters ? ncm_setup() 661 sizeof ntb_parameters : w_length; ncm_setup() 669 if (w_length < 4 || w_value != 0 || w_index != ncm->ctrl_id) ncm_setup() 680 if (w_length != 4 || w_value != 0 || w_index != ncm->ctrl_id) ncm_setup() 683 req->length = w_length; ncm_setup() 695 if (w_length < 2 || w_value != 0 || w_index != ncm->ctrl_id) ncm_setup() 707 if (w_length != 0 || w_index != ncm->ctrl_id) ncm_setup() 729 if (w_length < 2 || w_value != 0 || w_index != ncm->ctrl_id) ncm_setup() 743 if (w_length != 0 || w_index != ncm->ctrl_id) ncm_setup() 774 w_value, w_index, w_length); ncm_setup() 781 w_value, w_index, w_length); ncm_setup()
|
H A D | f_acm.c | 348 u16 w_length = le16_to_cpu(ctrl->wLength); acm_setup() local 363 if (w_length != sizeof(struct usb_cdc_line_coding) acm_setup() 367 value = w_length; acm_setup() 378 value = min_t(unsigned, w_length, acm_setup() 403 w_value, w_index, w_length); acm_setup() 411 w_value, w_index, w_length); acm_setup()
|
H A D | f_uac2.c | 1286 u16 w_length = le16_to_cpu(cr->wLength); in_rq_cur() local 1306 value = min_t(unsigned, w_length, sizeof c); in_rq_cur() 1310 value = min_t(unsigned, w_length, 1); in_rq_cur() 1327 u16 w_length = le16_to_cpu(cr->wLength); in_rq_range() local 1352 value = min_t(unsigned, w_length, sizeof r); in_rq_range() 1377 u16 w_length = le16_to_cpu(cr->wLength); out_rq_cur() local 1382 return w_length; out_rq_cur() 1416 u16 w_length = le16_to_cpu(cr->wLength); afunc_setup() local 1430 req->zero = value < w_length; afunc_setup()
|
H A D | f_sourcesink.c | 801 u16 w_length = le16_to_cpu(ctrl->wLength); sourcesink_setup() local 825 if (w_length > req->length) sourcesink_setup() 827 value = w_length; sourcesink_setup() 835 if (w_length > req->length) sourcesink_setup() 837 value = w_length; sourcesink_setup() 845 w_value, w_index, w_length); sourcesink_setup() 852 w_value, w_index, w_length); sourcesink_setup()
|
H A D | f_ecm.c | 477 u16 w_length = le16_to_cpu(ctrl->wLength); ecm_setup() local 488 if (w_length != 0 || w_index != ecm->ctrl_id) ecm_setup() 512 w_value, w_index, w_length); ecm_setup() 519 w_value, w_index, w_length); ecm_setup()
|
H A D | f_rndis.c | 472 u16 w_length = le16_to_cpu(ctrl->wLength); rndis_setup() local 487 value = w_length; rndis_setup() 518 w_value, w_index, w_length); rndis_setup() 525 w_value, w_index, w_length); rndis_setup() 526 req->zero = (value < w_length); rndis_setup()
|
H A D | f_uac1.c | 528 u16 w_length = le16_to_cpu(ctrl->wLength); f_audio_setup() local 553 w_value, w_index, w_length); f_audio_setup() 560 w_value, w_index, w_length); f_audio_setup()
|
H A D | f_eem.c | 176 u16 w_length = le16_to_cpu(ctrl->wLength); eem_setup() local 180 w_value, w_index, w_length); eem_setup()
|
H A D | f_printer.c | 901 u16 w_length = le16_to_cpu(ctrl->wLength); gprinter_req_match() local 910 if (w_length <= PNP_STRING_LEN && gprinter_req_match() 915 if (!w_value && w_length == 1 && gprinter_req_match() 920 if (!w_value && !w_length && gprinter_req_match()
|
H A D | f_mass_storage.c | 509 u16 w_length = le16_to_cpu(ctrl->wLength); fsg_setup() local 526 w_length != 0) fsg_setup() 542 w_length != 1) fsg_setup() 548 req->length = min((u16)1, w_length); fsg_setup() 555 le16_to_cpu(ctrl->wValue), w_index, w_length); fsg_setup()
|
/linux-4.1.27/drivers/pci/hotplug/ |
H A D | cpqphp_pci.c | 700 u16 w_length; cpqhp_save_used_resources() local 763 pci_bus_read_config_word(pci_bus, devfn, PCI_MEMORY_LIMIT, &w_length); cpqhp_save_used_resources() 765 if ((w_base <= w_length) && (save_command & 0x02)) { cpqhp_save_used_resources() 771 mem_node->length = (w_length - w_base + 0x10) << 16; cpqhp_save_used_resources() 779 pci_bus_read_config_word(pci_bus, devfn, PCI_PREF_MEMORY_LIMIT, &w_length); cpqhp_save_used_resources() 781 if ((w_base <= w_length) && (save_command & 0x02)) { cpqhp_save_used_resources() 787 p_mem_node->length = (w_length - w_base + 0x10) << 16; cpqhp_save_used_resources()
|
/linux-4.1.27/drivers/usb/gadget/legacy/ |
H A D | inode.c | 1308 u16 w_length = le16_to_cpu(ctrl->wLength); gadgetfs_setup() local 1347 value = min (w_length, (u16) sizeof *dev->dev); gadgetfs_setup() 1354 value = min (w_length, (u16) gadgetfs_setup() 1365 value = min (w_length, (u16) value); gadgetfs_setup() 1428 value = min (w_length, (u16) 1); gadgetfs_setup() 1437 w_value, le16_to_cpu(ctrl->wIndex), w_length); gadgetfs_setup() 1445 dev->setup_wLength = w_length; gadgetfs_setup() 1451 if (unlikely (!dev->setup_in && w_length)) { gadgetfs_setup() 1453 w_length); gadgetfs_setup() 1479 req->zero = value < w_length; gadgetfs_setup()
|
H A D | tcm_usb_gadget.c | 436 u16 w_length = le16_to_cpu(ctrl->wLength); usbg_bot_setup() local 446 if (w_length < 1) usbg_bot_setup()
|
/linux-4.1.27/include/linux/ |
H A D | memstick.h | 147 unsigned char w_length; member in struct:ms_register_addr
|
/linux-4.1.27/drivers/usb/gadget/udc/ |
H A D | net2280.c | 2676 #define w_length le16_to_cpu(r.wLength) handle_stat0_irqs_superspeed() macro 2851 w_value, w_index, w_length, handle_stat0_irqs_superspeed() 2872 #undef w_length handle_stat0_irqs_superspeed() macro 2964 #define w_length le16_to_cpu(u.r.wLength) handle_stat0_irqs() macro 3006 if (!e || w_length > 2) handle_stat0_irqs() 3016 set_fifo_bytecount(ep, w_length); handle_stat0_irqs() 3029 if (w_value != USB_ENDPOINT_HALT || w_length != 0) handle_stat0_irqs() 3054 if (w_value != USB_ENDPOINT_HALT || w_length != 0) handle_stat0_irqs() 3074 w_value, w_index, w_length, handle_stat0_irqs() 3098 #undef w_length handle_stat0_irqs() macro
|
H A D | omap_udc.c | 1530 #define w_length le16_to_cpu(u.r.wLength) ep0_irq() macro 1546 if (w_length != 0) ep0_irq() 1567 || w_length != 0) ep0_irq() 1596 || w_length != 0) ep0_irq() 1669 if (!udc->ep0_in && w_length) { ep0_irq() 1680 w_value, w_index, w_length); ep0_irq() 1684 #undef w_length ep0_irq() macro
|
H A D | at91_udc.c | 1079 #define w_length le16_to_cpu(pkt.r.wLength) handle_setup() macro 1083 w_value, w_index, w_length); handle_setup() 1239 #undef w_length handle_setup() macro
|
/linux-4.1.27/drivers/memstick/core/ |
H A D | memstick.c | 399 card->reg_addr.w_length = sizeof(id_reg); memstick_alloc_card()
|
H A D | ms_block.c | 214 msb->reg_addr.w_length = sizeof(struct ms_id_register); msb_invalidate_reg_window() 312 msb->reg_addr.w_length != len || !msb->addr_valid) { msb_write_regs() 315 msb->reg_addr.w_length = len; msb_write_regs()
|
H A D | mspro_block.c | 1141 card->reg_addr.w_length = sizeof(struct mspro_param_register); mspro_block_init_card()
|