/drivers/usb/gadget/ |
D | composite.c | 1425 u16 w_length = le16_to_cpu(ctrl->wLength); in composite_setup() local 1460 value = min(w_length, (u16) sizeof cdev->desc); in composite_setup() 1468 value = min_t(int, w_length, in composite_setup() 1479 value = min(w_length, (u16) value); in composite_setup() 1485 value = min(w_length, (u16) value); in composite_setup() 1490 value = min(w_length, (u16) value); in composite_setup() 1519 value = min(w_length, (u16) 1); in composite_setup() 1558 value = min(w_length, (u16) 1); in composite_setup() 1633 memset(buf, 0, w_length); in composite_setup() 1640 if (w_length == 0x10) { in composite_setup() [all …]
|
/drivers/usb/gadget/function/ |
D | f_ncm.c | 621 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 …]
|
D | f_mtp.c | 1073 u16 w_length = le16_to_cpu(ctrl->wLength); in mtp_ctrlrequest() local 1079 w_value, w_index, w_length); in mtp_ctrlrequest() 1087 value = (w_length < sizeof(mtp_os_string) in mtp_ctrlrequest() 1088 ? w_length : sizeof(mtp_os_string)); in mtp_ctrlrequest() 1093 ctrl->bRequest, w_index, w_value, w_length); in mtp_ctrlrequest() 1098 value = (w_length < sizeof(mtp_ext_config_desc) ? in mtp_ctrlrequest() 1099 w_length : sizeof(mtp_ext_config_desc)); in mtp_ctrlrequest() 1111 ctrl->bRequest, w_index, w_value, w_length); in mtp_ctrlrequest() 1129 value = w_length; in mtp_ctrlrequest() 1155 cdev->req->zero = value < w_length; in mtp_ctrlrequest()
|
D | f_acm.c | 348 u16 w_length = le16_to_cpu(ctrl->wLength); in acm_setup() local 363 if (w_length != sizeof(struct usb_cdc_line_coding) in acm_setup() 367 value = w_length; in acm_setup() 378 value = min_t(unsigned, w_length, in acm_setup() 403 w_value, w_index, w_length); in acm_setup() 411 w_value, w_index, w_length); in acm_setup()
|
D | f_uac2.c | 1259 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_cur() local 1279 value = min_t(unsigned, w_length, sizeof c); in in_rq_cur() 1283 value = min_t(unsigned, w_length, 1); in in_rq_cur() 1300 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_range() local 1325 value = min_t(unsigned, w_length, sizeof r); in in_rq_range() 1350 u16 w_length = le16_to_cpu(cr->wLength); in out_rq_cur() local 1355 return w_length; in out_rq_cur() 1389 u16 w_length = le16_to_cpu(cr->wLength); in afunc_setup() local 1403 req->zero = value < w_length; in afunc_setup()
|
D | f_accessory.c | 832 u16 w_length = le16_to_cpu(ctrl->wLength); in acc_ctrlrequest() local 853 value = w_length; in acc_ctrlrequest() 855 w_index == 0 && w_length == 0) { in acc_ctrlrequest() 875 || offset + w_length > hid->report_desc_len) { in acc_ctrlrequest() 881 value = w_length; in acc_ctrlrequest() 892 value = w_length; in acc_ctrlrequest() 926 w_value, w_index, w_length); in acc_ctrlrequest()
|
D | f_rndis.c | 499 u16 w_length = le16_to_cpu(ctrl->wLength); in rndis_setup() local 514 value = w_length; in rndis_setup() 545 w_value, w_index, w_length); in rndis_setup() 552 w_value, w_index, w_length); in rndis_setup() 553 req->zero = (value < w_length); in rndis_setup()
|
D | f_sourcesink.c | 1086 u16 w_length = le16_to_cpu(ctrl->wLength); in sourcesink_setup() local 1110 if (w_length > req->length) in sourcesink_setup() 1112 value = w_length; in sourcesink_setup() 1120 if (w_length > req->length) in sourcesink_setup() 1122 value = w_length; in sourcesink_setup() 1130 w_value, w_index, w_length); in sourcesink_setup() 1137 w_value, w_index, w_length); in sourcesink_setup()
|
D | f_ecm.c | 477 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()
|
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()
|
D | f_uac1.c | 524 u16 w_length = le16_to_cpu(ctrl->wLength); in f_audio_setup() local 549 w_value, w_index, w_length); in f_audio_setup() 556 w_value, w_index, w_length); in f_audio_setup()
|
D | f_audio_source.c | 530 u16 w_length = le16_to_cpu(ctrl->wLength); in audio_setup() local 549 w_value, w_index, w_length); in audio_setup()
|
D | f_mass_storage.c | 504 u16 w_length = le16_to_cpu(ctrl->wLength); in fsg_setup() local 521 w_length != 0) in fsg_setup() 537 w_length != 1) in fsg_setup() 543 req->length = min((u16)1, w_length); in fsg_setup() 550 le16_to_cpu(ctrl->wValue), w_index, w_length); in fsg_setup()
|
/drivers/pci/hotplug/ |
D | cpqphp_pci.c | 700 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()
|
/drivers/usb/gadget/legacy/ |
D | inode.c | 1429 u16 w_length = le16_to_cpu(ctrl->wLength); in gadgetfs_setup() local 1468 value = min (w_length, (u16) sizeof *dev->dev); in gadgetfs_setup() 1475 value = min (w_length, (u16) in gadgetfs_setup() 1486 value = min (w_length, (u16) value); in gadgetfs_setup() 1549 value = min (w_length, (u16) 1); in gadgetfs_setup() 1558 w_value, le16_to_cpu(ctrl->wIndex), w_length); in gadgetfs_setup() 1566 dev->setup_wLength = w_length; in gadgetfs_setup() 1572 if (unlikely (!dev->setup_in && w_length)) { in gadgetfs_setup() 1574 w_length); in gadgetfs_setup() 1605 req->zero = value < w_length; in gadgetfs_setup()
|
D | tcm_usb_gadget.c | 436 u16 w_length = le16_to_cpu(ctrl->wLength); in usbg_bot_setup() local 446 if (w_length < 1) in usbg_bot_setup()
|
/drivers/usb/gadget/udc/ |
D | net2280.c | 2862 #define w_length le16_to_cpu(r.wLength) in handle_stat0_irqs_superspeed() macro 3025 w_value, w_index, w_length, in handle_stat0_irqs_superspeed() 3046 #undef w_length in handle_stat0_irqs_superspeed() 3140 #define w_length le16_to_cpu(u.r.wLength) in handle_stat0_irqs() macro 3182 if (!e || w_length > 2) in handle_stat0_irqs() 3192 set_fifo_bytecount(ep, w_length); in handle_stat0_irqs() 3205 if (w_value != USB_ENDPOINT_HALT || w_length != 0) in handle_stat0_irqs() 3230 if (w_value != USB_ENDPOINT_HALT || w_length != 0) in handle_stat0_irqs() 3250 w_value, w_index, w_length, in handle_stat0_irqs() 3274 #undef w_length in handle_stat0_irqs()
|
D | omap_udc.c | 1530 #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()
|
D | at91_udc.c | 1084 #define w_length le16_to_cpu(pkt.r.wLength) in handle_setup() macro 1088 w_value, w_index, w_length); in handle_setup() 1244 #undef w_length in handle_setup()
|
/drivers/memstick/core/ |
D | memstick.c | 399 card->reg_addr.w_length = sizeof(id_reg); in memstick_alloc_card()
|
D | ms_block.c | 214 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()
|
D | mspro_block.c | 1141 card->reg_addr.w_length = sizeof(struct mspro_param_register); in mspro_block_init_card()
|