Home
last modified time | relevance | path

Searched refs:w_value (Results 1 – 16 of 16) sorted by relevance

/linux-3.4.99/drivers/usb/gadget/
Df_uac1.c361 u16 w_value = le16_to_cpu(ctrl->wValue); in audio_set_intf_req() local
362 u8 con_sel = (w_value >> 8) & 0xFF; in audio_set_intf_req()
368 ctrl->bRequest, w_value, len, id); in audio_set_intf_req()
398 u16 w_value = le16_to_cpu(ctrl->wValue); in audio_get_intf_req() local
399 u8 con_sel = (w_value >> 8) & 0xFF; in audio_get_intf_req()
405 ctrl->bRequest, w_value, len, id); in audio_get_intf_req()
433 u16 w_value = le16_to_cpu(ctrl->wValue); in audio_set_endpoint_req() local
436 ctrl->bRequest, w_value, len, ep); in audio_set_endpoint_req()
469 u16 w_value = le16_to_cpu(ctrl->wValue); in audio_get_endpoint_req() local
472 ctrl->bRequest, w_value, len, ep); in audio_get_endpoint_req()
[all …]
Dcomposite.c412 static int config_desc(struct usb_composite_dev *cdev, unsigned w_value) in config_desc() argument
416 u8 type = w_value >> 8; in config_desc()
433 w_value &= 0xff; in config_desc()
450 if (w_value == 0) in config_desc()
452 w_value--; in config_desc()
1030 u16 w_value = le16_to_cpu(ctrl->wValue); in composite_setup() local
1050 switch (w_value >> 8) { in composite_setup()
1083 value = config_desc(cdev, w_value); in composite_setup()
1089 w_index, w_value & 0xff); in composite_setup()
1115 value = set_config(cdev, ctrl, w_value); in composite_setup()
[all …]
Df_ncm.c596 u16 w_value = le16_to_cpu(ctrl->wValue); in ncm_setup() local
612 DBG(cdev, "packet filter %02x\n", w_value); in ncm_setup()
618 ncm->port.cdc_filter = w_value; in ncm_setup()
634 if (w_length == 0 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
645 if (w_length < 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
656 if (w_length != 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
671 if (w_length < 2 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
685 switch (w_value) { in ncm_setup()
705 if (w_length < 2 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
721 switch (w_value) { in ncm_setup()
[all …]
Df_sourcesink.c482 u16 w_value = le16_to_cpu(ctrl->wValue); in sourcesink_setup() local
504 if (w_value || w_index) in sourcesink_setup()
514 if (w_value || w_index) in sourcesink_setup()
527 w_value, w_index, w_length); in sourcesink_setup()
534 w_value, w_index, w_length); in sourcesink_setup()
Ddummy_hcd.c1508 unsigned w_value; in handle_control_request() local
1511 w_value = le16_to_cpu(setup->wValue); in handle_control_request()
1516 dum->address = w_value; in handle_control_request()
1519 w_value); in handle_control_request()
1525 switch (w_value) { in handle_control_request()
1540 w_value = USB_DEV_STAT_U1_ENABLED; in handle_control_request()
1547 w_value = USB_DEV_STAT_U2_ENABLED; in handle_control_request()
1554 w_value = USB_DEV_STAT_LTM_ENABLED; in handle_control_request()
1562 dum->devstatus |= (1 << w_value); in handle_control_request()
1580 switch (w_value) { in handle_control_request()
[all …]
Df_ecm.c472 u16 w_value = le16_to_cpu(ctrl->wValue); in ecm_setup() local
486 DBG(cdev, "packet filter %02x\n", w_value); in ecm_setup()
491 ecm->port.cdc_filter = w_value; in ecm_setup()
508 w_value, w_index, w_length); in ecm_setup()
515 w_value, w_index, w_length); in ecm_setup()
Df_rndis.c468 u16 w_value = le16_to_cpu(ctrl->wValue); in rndis_setup() local
481 if (w_value || w_index != rndis->ctrl_id) in rndis_setup()
492 if (w_value || w_index != rndis->ctrl_id) in rndis_setup()
515 w_value, w_index, w_length); in rndis_setup()
522 w_value, w_index, w_length); in rndis_setup()
Df_acm.c346 u16 w_value = le16_to_cpu(ctrl->wValue); in acm_setup() local
394 acm->port_handshake_bits = w_value; in acm_setup()
401 w_value, w_index, w_length); in acm_setup()
408 w_value, w_index, w_length); in acm_setup()
Dfile_storage.c848 u16 w_value = le16_to_cpu(ctrl->wValue); in class_setup_req() local
862 if (w_index != 0 || w_value != 0 || w_length != 0) { in class_setup_req()
878 if (w_index != 0 || w_value != 0 || w_length != 1) { in class_setup_req()
897 if (w_index != 0 || w_value != 0) { in class_setup_req()
931 u16 w_value = le16_to_cpu(ctrl->wValue); in standard_setup_req() local
941 switch (w_value >> 8) { in standard_setup_req()
974 w_value >> 8, in standard_setup_req()
975 w_value & 0xff); in standard_setup_req()
983 w_value & 0xff, req->buf); in standard_setup_req()
1002 if (w_value == CONFIG_VALUE || w_value == 0) { in standard_setup_req()
[all …]
Dat91_udc.c1081 #define w_value le16_to_cpu(pkt.r.wValue) in handle_setup() macro
1086 w_value, w_index, w_length); in handle_setup()
1101 udc->addr = w_value; in handle_setup()
1135 if (w_value != USB_DEVICE_REMOTE_WAKEUP) in handle_setup()
1143 if (w_value != USB_DEVICE_REMOTE_WAKEUP) in handle_setup()
1198 if (w_value != USB_ENDPOINT_HALT || tmp >= NUM_ENDPOINTS) in handle_setup()
1217 if (w_value != USB_ENDPOINT_HALT || tmp >= NUM_ENDPOINTS) in handle_setup()
1240 #undef w_value in handle_setup()
Df_uac2.c1174 u16 w_value = le16_to_cpu(cr->wValue); in in_rq_cur() local
1176 u8 control_selector = w_value >> 8; in in_rq_cur()
1209 u16 w_value = le16_to_cpu(cr->wValue); in in_rq_range() local
1211 u8 control_selector = w_value >> 8; in in_rq_range()
1253 u16 w_value = le16_to_cpu(cr->wValue); in out_rq_cur() local
1254 u8 control_selector = w_value >> 8; in out_rq_cur()
Dinode.c1385 u16 w_value = le16_to_cpu(ctrl->wValue); in gadgetfs_setup() local
1423 switch (w_value >> 8) { in gadgetfs_setup()
1443 w_value >> 8, in gadgetfs_setup()
1444 w_value & 0xff); in gadgetfs_setup()
1460 if (0 == (u8) w_value) { in gadgetfs_setup()
1477 if (config == (u8) w_value) { in gadgetfs_setup()
1517 w_value, le16_to_cpu(ctrl->wIndex), w_length); in gadgetfs_setup()
Df_eem.c172 u16 w_value = le16_to_cpu(ctrl->wValue); in eem_setup() local
177 w_value, w_index, w_length); in eem_setup()
Domap_udc.c1582 #define w_value le16_to_cpu(u.r.wValue) in ep0_irq() macro
1603 udc->ep0_reset_config = (w_value == 0); in ep0_irq()
1604 VDBG("set config %d\n", w_value); in ep0_irq()
1620 if (w_value != USB_ENDPOINT_HALT in ep0_irq()
1649 if (w_value != USB_ENDPOINT_HALT in ep0_irq()
1734 w_value, w_index, w_length); in ep0_irq()
1736 #undef w_value in ep0_irq()
Dnet2280.c2278 #define w_value le16_to_cpu(u.r.wValue) in handle_stat0_irqs() macro
2340 if (w_value != USB_ENDPOINT_HALT in handle_stat0_irqs()
2362 if (w_value != USB_ENDPOINT_HALT in handle_stat0_irqs()
2380 w_value, w_index, w_length, in handle_stat0_irqs()
2402 #undef w_value in handle_stat0_irqs()
Df_mass_storage.c610 u16 w_value = le16_to_cpu(ctrl->wValue); in fsg_setup() local
627 if (w_index != fsg->interface_number || w_value != 0 || in fsg_setup()
643 if (w_index != fsg->interface_number || w_value != 0 || in fsg_setup()