| /OK3568_Linux_fs/kernel/drivers/usb/gadget/ |
| H A D | composite.c | 1691 u16 w_length = le16_to_cpu(ctrl->wLength); in composite_setup() local 1695 if (w_length > USB_COMP_EP0_BUFSIZ) { in composite_setup() 1701 w_length = USB_COMP_EP0_BUFSIZ; in composite_setup() 1751 value = min(w_length, (u16) sizeof cdev->desc); in composite_setup() 1759 value = min_t(int, w_length, in composite_setup() 1770 value = min(w_length, (u16) value); in composite_setup() 1776 value = min(w_length, (u16) value); in composite_setup() 1782 value = min(w_length, (u16) value); in composite_setup() 1807 value = min_t(int, w_length, otg_desc_len); in composite_setup() 1837 value = min(w_length, (u16) 1); in composite_setup() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/usb/gadget/ |
| H A D | composite.c | 796 u16 w_length = le16_to_cpu(ctrl->wLength); in composite_setup() local 852 value = min(w_length, (u16) sizeof cdev->desc); in composite_setup() 859 value = min_t(int, w_length, in composite_setup() 869 value = min(w_length, (u16) value); in composite_setup() 875 value = min(w_length, (u16) value); in composite_setup() 888 value = min(w_length, (u16) value); in composite_setup() 925 value = min(w_length, (u16) 1); in composite_setup() 957 value = min(w_length, (u16) 1); in composite_setup() 963 w_value, w_index, w_length); in composite_setup() 1028 req->zero = value < w_length; in composite_setup()
|
| H A D | at91_udc.c | 886 #define w_length le16_to_cpu(pkt.r.wLength) in handle_setup() macro 890 w_value, w_index, w_length); in handle_setup() 1046 #undef w_length in handle_setup()
|
| H A D | f_mass_storage.c | 538 u16 w_length = get_unaligned_le16(&ctrl->wLength); in fsg_setup() local 568 req->length = min((u16)1, w_length); in fsg_setup() 576 get_unaligned_le16(&ctrl->wValue), w_index, w_length); in fsg_setup()
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/function/ |
| H A D | f_ncm.c | 694 u16 w_length = le16_to_cpu(ctrl->wLength); in ncm_setup() local 707 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup() 731 if (w_length == 0 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 733 value = w_length > sizeof ntb_parameters ? in ncm_setup() 734 sizeof ntb_parameters : w_length; in ncm_setup() 742 if (w_length < 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 753 if (w_length != 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 756 req->length = w_length; in ncm_setup() 768 if (w_length < 2 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 780 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup() [all …]
|
| H 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()
|
| H A D | f_accessory.c | 986 u16 w_length = le16_to_cpu(ctrl->wLength); in acc_ctrlrequest() local 1008 value = w_length; in acc_ctrlrequest() 1010 w_index == 0 && w_length == 0) { in acc_ctrlrequest() 1030 || offset + w_length > hid->report_desc_len) { in acc_ctrlrequest() 1036 value = w_length; in acc_ctrlrequest() 1047 value = w_length; in acc_ctrlrequest() 1082 w_value, w_index, w_length); in acc_ctrlrequest() 1091 u16 w_length = le16_to_cpu(ctrl->wLength); in acc_ctrlrequest_composite() local 1093 if (w_length > USB_COMP_EP0_BUFSIZ) { in acc_ctrlrequest_composite() 1099 w_length = USB_COMP_EP0_BUFSIZ; in acc_ctrlrequest_composite()
|
| H A D | f_uac1.c | 653 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_cur() local 673 value = min_t(unsigned int, w_length, 1); in in_rq_cur() 682 value = min_t(unsigned int, w_length, sizeof(c)); in in_rq_cur() 704 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_min() local 729 value = min_t(unsigned int, w_length, sizeof(r)); in in_rq_min() 751 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_max() local 776 value = min_t(unsigned int, w_length, sizeof(r)); in in_rq_max() 798 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_res() local 823 value = min_t(unsigned int, w_length, sizeof(r)); in in_rq_res() 929 u16 w_length = le16_to_cpu(cr->wLength); in ac_rq_out() local [all …]
|
| H 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() 523 if (w_length != 0 || w_index != rndis->ctrl_id) in rndis_setup() 533 w_value, w_index, w_length); in rndis_setup() 540 w_value, w_index, w_length); in rndis_setup() 541 req->zero = (value < w_length); in rndis_setup()
|
| H A D | f_uac2.c | 1518 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 …]
|
| H 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()
|
| H 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()
|
| 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_audio_source.c | 533 u16 w_length = le16_to_cpu(ctrl->wLength); in audio_setup() local 552 w_value, w_index, w_length); in audio_setup()
|
| H A D | f_printer.c | 946 u16 w_length = le16_to_cpu(ctrl->wLength); in gprinter_req_match() local 962 if (!w_value && w_length == 1 && in gprinter_req_match() 967 if (!w_value && !w_length && in gprinter_req_match()
|
| H A D | f_mass_storage.c | 494 u16 w_length = le16_to_cpu(ctrl->wLength); in fsg_setup() local 511 w_length != 0) in fsg_setup() 527 w_length != 1) in fsg_setup() 533 req->length = min((u16)1, w_length); in fsg_setup() 540 le16_to_cpu(ctrl->wValue), w_index, w_length); in fsg_setup()
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/legacy/ |
| H A D | inode.c | 1337 u16 w_length = le16_to_cpu(ctrl->wLength); in gadgetfs_setup() local 1339 if (w_length > RBUF_SIZE) { in gadgetfs_setup() 1345 w_length = RBUF_SIZE; in gadgetfs_setup() 1387 value = min (w_length, (u16) sizeof *dev->dev); in gadgetfs_setup() 1394 value = min (w_length, (u16) in gadgetfs_setup() 1404 value = min (w_length, (u16) value); in gadgetfs_setup() 1467 value = min (w_length, (u16) 1); in gadgetfs_setup() 1476 w_value, le16_to_cpu(ctrl->wIndex), w_length); in gadgetfs_setup() 1484 dev->setup_wLength = w_length; in gadgetfs_setup() 1489 if (unlikely (!dev->setup_in && w_length)) { in gadgetfs_setup() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/pci/hotplug/ |
| H A D | cpqphp_pci.c | 696 u16 w_length; in cpqhp_save_used_resources() local 759 pci_bus_read_config_word(pci_bus, devfn, PCI_MEMORY_LIMIT, &w_length); in cpqhp_save_used_resources() 761 if ((w_base <= w_length) && (save_command & 0x02)) { in cpqhp_save_used_resources() 767 mem_node->length = (w_length - w_base + 0x10) << 16; in cpqhp_save_used_resources() 775 pci_bus_read_config_word(pci_bus, devfn, PCI_PREF_MEMORY_LIMIT, &w_length); in cpqhp_save_used_resources() 777 if ((w_base <= w_length) && (save_command & 0x02)) { in cpqhp_save_used_resources() 783 p_mem_node->length = (w_length - w_base + 0x10) << 16; in cpqhp_save_used_resources()
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | memstick.h | 143 unsigned char w_length; member
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/ |
| H A D | net2280.c | 2869 #define w_length le16_to_cpu(r.wLength) in handle_stat0_irqs_superspeed() macro 3041 w_value, w_index, w_length, in handle_stat0_irqs_superspeed() 3062 #undef w_length in handle_stat0_irqs_superspeed() 3174 #define w_length le16_to_cpu(u.r.wLength) in handle_stat0_irqs() macro 3216 if (!e || w_length > 2) in handle_stat0_irqs() 3226 set_fifo_bytecount(ep, w_length); in handle_stat0_irqs() 3239 if (w_value != USB_ENDPOINT_HALT || w_length != 0) in handle_stat0_irqs() 3264 if (w_value != USB_ENDPOINT_HALT || w_length != 0) in handle_stat0_irqs() 3284 w_value, w_index, w_length, in handle_stat0_irqs() 3308 #undef w_length in handle_stat0_irqs()
|
| H 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()
|
| H 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()
|
| /OK3568_Linux_fs/kernel/drivers/memstick/core/ |
| H A D | memstick.c | 396 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()
|