/kernel/linux/linux-6.6/drivers/usb/gadget/ |
H A D | composite.c | 1786 u16 w_length = le16_to_cpu(ctrl->wLength); in composite_setup() local 1791 if (w_length > USB_COMP_EP0_BUFSIZ) { in composite_setup() 1797 w_length = USB_COMP_EP0_BUFSIZ; in composite_setup() 1847 value = min(w_length, (u16) sizeof cdev->desc); in composite_setup() 1855 value = min_t(int, w_length, in composite_setup() 1866 value = min(w_length, (u16) value); in composite_setup() 1872 value = min(w_length, (u16) value); in composite_setup() 1878 value = min(w_length, (u16) value); in composite_setup() 1903 value = min_t(int, w_length, otg_desc_len); in composite_setup() 1933 value = min(w_length, (u1 in composite_setup() [all...] |
/kernel/linux/linux-5.10/drivers/usb/gadget/ |
H A D | composite.c | 1647 u16 w_length = le16_to_cpu(ctrl->wLength); in composite_setup() local 1651 if (w_length > USB_COMP_EP0_BUFSIZ) { in composite_setup() 1657 w_length = USB_COMP_EP0_BUFSIZ; in composite_setup() 1707 value = min(w_length, (u16) sizeof cdev->desc); in composite_setup() 1715 value = min_t(int, w_length, in composite_setup() 1726 value = min(w_length, (u16) value); in composite_setup() 1732 value = min(w_length, (u16) value); in composite_setup() 1738 value = min(w_length, (u16) value); in composite_setup() 1763 value = min_t(int, w_length, otg_desc_len); in composite_setup() 1793 value = min(w_length, (u1 in composite_setup() [all...] |
/kernel/linux/linux-6.6/drivers/usb/gadget/function/ |
H A D | f_ncm.c | 675 u16 w_length = le16_to_cpu(ctrl->wLength); in ncm_setup() local 688 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup() 712 if (w_length == 0 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 714 value = w_length > sizeof ntb_parameters ? in ncm_setup() 715 sizeof ntb_parameters : w_length; in ncm_setup() 723 if (w_length < 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 734 if (w_length != 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 737 req->length = w_length; in ncm_setup() 749 if (w_length < 2 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 761 if (w_length ! in ncm_setup() [all...] |
H A D | f_acm.c | 336 u16 w_length = le16_to_cpu(ctrl->wLength); in acm_setup() local 351 if (w_length != sizeof(struct usb_cdc_line_coding) in acm_setup() 355 value = w_length; in acm_setup() 366 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_uac1.c | 435 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_cur() local 455 value = min_t(unsigned int, w_length, 1); in in_rq_cur() 464 value = min_t(unsigned int, w_length, sizeof(c)); in in_rq_cur() 486 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_min() local 511 value = min_t(unsigned int, w_length, sizeof(r)); in in_rq_min() 533 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_max() local 558 value = min_t(unsigned int, w_length, sizeof(r)); in in_rq_max() 580 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_res() local 605 value = min_t(unsigned int, w_length, sizeof(r)); in in_rq_res() 682 u16 w_length in out_rq_cur() local 834 u16 w_length = le16_to_cpu(ctrl->wLength); f_audio_setup() local [all...] |
H A D | f_uac2.c | 1519 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_cur() local 1541 value = min_t(unsigned int, w_length, sizeof(c)); in in_rq_cur() 1545 value = min_t(unsigned int, w_length, 1); in in_rq_cur() 1564 value = min_t(unsigned int, w_length, 1); in in_rq_cur() 1574 value = min_t(unsigned int, w_length, sizeof(c)); in in_rq_cur() 1596 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_range() local 1631 value = min_t(unsigned int, w_length, ranges_lay3_size(rs)); in in_rq_range() 1666 value = min_t(unsigned int, w_length, sizeof(r)); in in_rq_range() 1768 u16 w_length = le16_to_cpu(cr->wLength); in out_rq_cur() local 1782 return w_length; in out_rq_cur() 1827 u16 w_length = le16_to_cpu(cr->wLength); afunc_setup() local [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_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()
|
/kernel/linux/linux-5.10/drivers/usb/gadget/function/ |
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_ncm.c | 696 u16 w_length = le16_to_cpu(ctrl->wLength); in ncm_setup() local 709 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup() 733 if (w_length == 0 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 735 value = w_length > sizeof ntb_parameters ? in ncm_setup() 736 sizeof ntb_parameters : w_length; in ncm_setup() 744 if (w_length < 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 755 if (w_length != 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 758 req->length = w_length; in ncm_setup() 770 if (w_length < 2 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 782 if (w_length ! in ncm_setup() [all...] |
H A D | f_uac2.c | 890 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_cur() local 911 value = min_t(unsigned, w_length, sizeof c); in in_rq_cur() 915 value = min_t(unsigned, w_length, 1); in in_rq_cur() 931 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_range() local 956 value = min_t(unsigned, w_length, sizeof r); in in_rq_range() 981 u16 w_length = le16_to_cpu(cr->wLength); in out_rq_cur() local 986 return w_length; in out_rq_cur() 1019 u16 w_length = le16_to_cpu(cr->wLength); in afunc_setup() local 1034 req->zero = value < w_length; in afunc_setup()
|
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_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()
|
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_uac1.c | 401 u16 w_length = le16_to_cpu(ctrl->wLength); in f_audio_setup() local 418 w_value, w_index, w_length); in f_audio_setup() 425 w_value, w_index, w_length); in f_audio_setup()
|
/kernel/linux/linux-5.10/drivers/usb/gadget/legacy/ |
H A D | inode.c | 1338 u16 w_length = le16_to_cpu(ctrl->wLength); in gadgetfs_setup() local 1340 if (w_length > RBUF_SIZE) { in gadgetfs_setup() 1346 w_length = RBUF_SIZE; in gadgetfs_setup() 1388 value = min (w_length, (u16) sizeof *dev->dev); in gadgetfs_setup() 1395 value = min (w_length, (u16) in gadgetfs_setup() 1405 value = min (w_length, (u16) value); in gadgetfs_setup() 1468 value = min (w_length, (u16) 1); in gadgetfs_setup() 1477 w_value, le16_to_cpu(ctrl->wIndex), w_length); in gadgetfs_setup() 1485 dev->setup_wLength = w_length; in gadgetfs_setup() 1490 if (unlikely (!dev->setup_in && w_length)) { in gadgetfs_setup() [all...] |
/kernel/linux/linux-6.6/drivers/usb/gadget/legacy/ |
H A D | inode.c | 1336 u16 w_length = le16_to_cpu(ctrl->wLength); in gadgetfs_setup() local 1338 if (w_length > RBUF_SIZE) { in gadgetfs_setup() 1344 w_length = RBUF_SIZE; in gadgetfs_setup() 1386 value = min (w_length, (u16) sizeof *dev->dev); in gadgetfs_setup() 1393 value = min (w_length, (u16) in gadgetfs_setup() 1403 value = min (w_length, (u16) value); in gadgetfs_setup() 1466 value = min (w_length, (u16) 1); in gadgetfs_setup() 1475 w_value, le16_to_cpu(ctrl->wIndex), w_length); in gadgetfs_setup() 1483 dev->setup_wLength = w_length; in gadgetfs_setup() 1488 if (unlikely (!dev->setup_in && w_length)) { in gadgetfs_setup() [all...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/drivers/pci/hotplug/ |
H 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()
|
/kernel/linux/linux-5.10/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() macro 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() macro [all...] |