Searched refs:w_length (Results 1 - 23 of 23) sorted by relevance

/linux-master/drivers/usb/gadget/function/
H A Df_ncm.c684 u16 w_length = le16_to_cpu(ctrl->wLength); local
697 if (w_length != 0 || w_index != ncm->ctrl_id)
721 if (w_length == 0 || w_value != 0 || w_index != ncm->ctrl_id)
723 value = w_length > sizeof ntb_parameters ?
724 sizeof ntb_parameters : w_length;
732 if (w_length < 4 || w_value != 0 || w_index != ncm->ctrl_id)
743 if (w_length != 4 || w_value != 0 || w_index != ncm->ctrl_id)
746 req->length = w_length;
758 if (w_length < 2 || w_value != 0 || w_index != ncm->ctrl_id)
770 if (w_length !
[all...]
H A Df_uac1.c506 u16 w_length = le16_to_cpu(cr->wLength); local
526 value = min_t(unsigned int, w_length, 1);
535 value = min_t(unsigned int, w_length, sizeof(c));
557 u16 w_length = le16_to_cpu(cr->wLength); local
582 value = min_t(unsigned int, w_length, sizeof(r));
604 u16 w_length = le16_to_cpu(cr->wLength); local
629 value = min_t(unsigned int, w_length, sizeof(r));
651 u16 w_length = le16_to_cpu(cr->wLength); local
676 value = min_t(unsigned int, w_length, sizeof(r));
753 u16 w_length local
905 u16 w_length = le16_to_cpu(ctrl->wLength); local
[all...]
H A Df_sourcesink.c770 u16 w_length = le16_to_cpu(ctrl->wLength); local
794 if (w_length > req->length)
796 value = w_length;
804 if (w_length > req->length)
806 value = w_length;
814 w_value, w_index, w_length);
821 w_value, w_index, w_length);
H A Df_acm.c336 u16 w_length = le16_to_cpu(ctrl->wLength); local
351 if (w_length != sizeof(struct usb_cdc_line_coding)
355 value = w_length;
366 value = min_t(unsigned, w_length,
399 w_value, w_index, w_length);
407 w_value, w_index, w_length);
H A Df_uac2.c1522 u16 w_length = le16_to_cpu(cr->wLength); local
1544 value = min_t(unsigned int, w_length, sizeof(c));
1548 value = min_t(unsigned int, w_length, 1);
1567 value = min_t(unsigned int, w_length, 1);
1577 value = min_t(unsigned int, w_length, sizeof(c));
1599 u16 w_length = le16_to_cpu(cr->wLength); local
1634 value = min_t(unsigned int, w_length, ranges_lay3_size(rs));
1669 value = min_t(unsigned int, w_length, sizeof(r));
1771 u16 w_length = le16_to_cpu(cr->wLength); local
1785 return w_length;
1830 u16 w_length = le16_to_cpu(cr->wLength); local
[all...]
H A Df_rndis.c460 u16 w_length = le16_to_cpu(ctrl->wLength); local
475 value = w_length;
506 w_value, w_index, w_length);
513 w_value, w_index, w_length);
514 req->zero = (value < w_length);
H A Df_ecm.c465 u16 w_length = le16_to_cpu(ctrl->wLength); local
476 if (w_length != 0 || w_index != ecm->ctrl_id)
500 w_value, w_index, w_length);
507 w_value, w_index, w_length);
H A Df_eem.c176 u16 w_length = le16_to_cpu(ctrl->wLength); local
180 w_value, w_index, w_length);
H A Df_uac1_legacy.c530 u16 w_length = le16_to_cpu(ctrl->wLength); local
555 w_value, w_index, w_length);
562 w_value, w_index, w_length);
H A Df_printer.c943 u16 w_length = le16_to_cpu(ctrl->wLength); local
959 if (!w_value && w_length == 1 &&
964 if (!w_value && !w_length &&
H A Df_mass_storage.c464 u16 w_length = le16_to_cpu(ctrl->wLength); local
481 w_length != 0)
497 w_length != 1)
503 req->length = min((u16)1, w_length);
510 le16_to_cpu(ctrl->wValue), w_index, w_length);
H A Df_tcm.c425 u16 w_length = le16_to_cpu(ctrl->wLength); local
435 if (w_length < 1)
/linux-master/drivers/usb/gadget/
H A Dcomposite.c1786 u16 w_length = le16_to_cpu(ctrl->wLength); local
1791 if (w_length > USB_COMP_EP0_BUFSIZ) {
1797 w_length = USB_COMP_EP0_BUFSIZ;
1847 value = min(w_length, (u16) sizeof cdev->desc);
1855 value = min_t(int, w_length,
1866 value = min(w_length, (u16) value);
1872 value = min(w_length, (u16) value);
1878 value = min(w_length, (u16) value);
1903 value = min_t(int, w_length, otg_desc_len);
1933 value = min(w_length, (u1
[all...]
/linux-master/drivers/usb/gadget/legacy/
H A Dinode.c1342 u16 w_length = le16_to_cpu(ctrl->wLength); local
1344 if (w_length > RBUF_SIZE) {
1350 w_length = RBUF_SIZE;
1392 value = min (w_length, (u16) sizeof *dev->dev);
1399 value = min (w_length, (u16)
1409 value = min (w_length, (u16) value);
1472 value = min (w_length, (u16) 1);
1481 w_value, le16_to_cpu(ctrl->wIndex), w_length);
1489 dev->setup_wLength = w_length;
1494 if (unlikely (!dev->setup_in && w_length)) {
[all...]
/linux-master/drivers/pci/hotplug/
H A Dcpqphp_pci.c698 u16 w_length; local
761 pci_bus_read_config_word(pci_bus, devfn, PCI_MEMORY_LIMIT, &w_length);
763 if ((w_base <= w_length) && (save_command & 0x02)) {
769 mem_node->length = (w_length - w_base + 0x10) << 16;
777 pci_bus_read_config_word(pci_bus, devfn, PCI_PREF_MEMORY_LIMIT, &w_length);
779 if ((w_base <= w_length) && (save_command & 0x02)) {
785 p_mem_node->length = (w_length - w_base + 0x10) << 16;
/linux-master/include/linux/
H A Dmemstick.h143 unsigned char w_length; member in struct:ms_register_addr
/linux-master/drivers/usb/gadget/udc/
H A Domap_udc.c1531 #define w_length le16_to_cpu(u.r.wLength) macro
1547 if (w_length != 0)
1568 || w_length != 0)
1597 || w_length != 0)
1670 if (!udc->ep0_in && w_length) {
1681 w_value, w_index, w_length);
1685 #undef w_length macro
H A Dnet2280.c2872 #define w_length le16_to_cpu(r.wLength) macro
3044 w_value, w_index, w_length,
3067 #undef w_length macro
3179 #define w_length le16_to_cpu(u.r.wLength) macro
3221 if (!e || w_length > 2)
3231 set_fifo_bytecount(ep, w_length);
3244 if (w_value != USB_ENDPOINT_HALT || w_length != 0)
3269 if (w_value != USB_ENDPOINT_HALT || w_length != 0)
3289 w_value, w_index, w_length,
3315 #undef w_length macro
[all...]
H A Dat91_udc.c1084 #define w_length le16_to_cpu(pkt.r.wLength) macro
1088 w_value, w_index, w_length);
1244 #undef w_length macro
H A Drenesas_usb3.c1835 u16 w_length = le16_to_cpu(ctrl->wLength); local
1837 if (w_length != 6)
/linux-master/drivers/memstick/core/
H A Dmemstick.c394 card->reg_addr.w_length = sizeof(id_reg);
H A Dms_block.c210 msb->reg_addr.w_length = sizeof(struct ms_id_register);
308 msb->reg_addr.w_length != len || !msb->addr_valid) {
311 msb->reg_addr.w_length = len;
H A Dmspro_block.c1058 card->reg_addr.w_length = sizeof(struct mspro_param_register);

Completed in 723 milliseconds