Home
last modified time | relevance | path

Searched refs:wValue (Results 1 – 25 of 165) sorted by relevance

1234567

/linux-6.15/drivers/usb/common/
H A Ddebug.c36 switch (wValue) { in usb_decode_device_feature()
73 __u8 bRequest, __u16 wValue, in usb_decode_set_clear_feature() argument
80 usb_decode_device_feature(wValue), in usb_decode_set_clear_feature()
81 wValue == USB_DEVICE_TEST_MODE ? in usb_decode_set_clear_feature()
106 __u16 wValue, __u16 wIndex, in usb_decode_get_set_descriptor() argument
111 switch (wValue >> 8) { in usb_decode_get_set_descriptor()
167 s, wValue & 0xff, wLength); in usb_decode_get_set_descriptor()
191 wIndex, wValue); in usb_decode_set_intf()
274 wValue, wIndex, wLength); in usb_decode_ctrl_standard()
307 wValue, wIndex, wLength); in usb_decode_ctrl()
[all …]
/linux-6.15/drivers/usb/gadget/udc/aspeed-vhub/
H A Dhub.c170 u16 wIndex, u16 wValue) in ast_vhub_hub_dev_status() argument
193 u16 wIndex, u16 wValue) in ast_vhub_hub_ep_status() argument
212 u16 wIndex, u16 wValue, in ast_vhub_hub_dev_feature() argument
240 u16 wIndex, u16 wValue, in ast_vhub_hub_ep_feature() argument
252 if (wValue != USB_ENDPOINT_HALT) in ast_vhub_hub_ep_feature()
405 u16 wValue, wIndex, wLength; in ast_vhub_std_hub_request() local
407 wValue = le16_to_cpu(crq->wValue); in ast_vhub_std_hub_request()
451 if (wValue != 1) in ast_vhub_std_hub_request()
457 switch (wValue >> 8) { in ast_vhub_std_hub_request()
769 u16 wValue, wIndex, wLength; in ast_vhub_class_hub_request() local
[all …]
H A Ddev.c109 u16 wIndex, u16 wValue, in ast_vhub_dev_feature() argument
115 is_set ? "SET" : "CLEAR", wValue); in ast_vhub_dev_feature()
117 if (wValue == USB_DEVICE_REMOTE_WAKEUP) { in ast_vhub_dev_feature()
122 if (wValue == USB_DEVICE_TEST_MODE) { in ast_vhub_dev_feature()
135 u16 wIndex, u16 wValue, bool is_set) in ast_vhub_ep_feature() argument
147 if (wValue != USB_ENDPOINT_HALT) in ast_vhub_ep_feature()
167 u16 wIndex, u16 wValue) in ast_vhub_dev_status() argument
181 u16 wIndex, u16 wValue) in ast_vhub_ep_status() argument
221 u16 wValue, wIndex; in ast_vhub_std_dev_request() local
246 wValue = le16_to_cpu(crq->wValue); in ast_vhub_std_dev_request()
[all …]
/linux-6.15/drivers/usb/cdns3/
H A Dcdnsp-ep0.c60 cfg = le16_to_cpu(ctrl->wValue); in cdnsp_ep0_set_config()
93 addr = le16_to_cpu(ctrl->wValue); in cdnsp_ep0_set_address()
107 pdev->device_address = le16_to_cpu(ctrl->wValue); in cdnsp_ep0_set_address()
213 switch (le16_to_cpu(ctrl->wValue)) { in cdnsp_ep0_handle_feature_device()
267 u16 wValue, wIndex; in cdnsp_ep0_handle_feature_intf() local
270 wValue = le16_to_cpu(ctrl->wValue); in cdnsp_ep0_handle_feature_intf()
273 switch (wValue) { in cdnsp_ep0_handle_feature_intf()
302 u16 wValue; in cdnsp_ep0_handle_feature_endpoint() local
304 wValue = le16_to_cpu(ctrl->wValue); in cdnsp_ep0_handle_feature_endpoint()
307 switch (wValue) { in cdnsp_ep0_handle_feature_endpoint()
[all …]
H A Dcdns3-ep0.c140 u32 config = le16_to_cpu(ctrl_req->wValue); in cdns3_req_ep0_set_configuration()
187 addr = le16_to_cpu(ctrl_req->wValue); in cdns3_req_ep0_set_address()
281 u32 wValue; in cdns3_ep0_feature_handle_device() local
284 wValue = le16_to_cpu(ctrl->wValue); in cdns3_ep0_feature_handle_device()
288 switch (wValue) { in cdns3_ep0_feature_handle_device()
341 u32 wValue; in cdns3_ep0_feature_handle_intf() local
344 wValue = le16_to_cpu(ctrl->wValue); in cdns3_ep0_feature_handle_intf()
346 switch (wValue) { in cdns3_ep0_feature_handle_intf()
364 if (le16_to_cpu(ctrl->wValue) != USB_ENDPOINT_HALT) in cdns3_ep0_feature_handle_endpoint()
458 priv_dev->isoch_delay = le16_to_cpu(ctrl_req->wValue); in cdns3_req_ep0_set_isoch_delay()
/linux-6.15/drivers/usb/gadget/udc/cdns2/
H A Dcdns2-ep0.c217 u32 wValue; in cdns2_ep0_handle_feature_device() local
220 wValue = le16_to_cpu(ctrl->wValue); in cdns2_ep0_handle_feature_device()
224 switch (wValue) { in cdns2_ep0_handle_feature_device()
268 u32 wValue; in cdns2_ep0_handle_feature_intf() local
270 wValue = le16_to_cpu(ctrl->wValue); in cdns2_ep0_handle_feature_intf()
272 switch (wValue) { in cdns2_ep0_handle_feature_intf()
287 u8 wValue; in cdns2_ep0_handle_feature_endpoint() local
289 wValue = le16_to_cpu(ctrl->wValue); in cdns2_ep0_handle_feature_endpoint()
292 if (wValue != USB_ENDPOINT_HALT) in cdns2_ep0_handle_feature_endpoint()
298 switch (wValue) { in cdns2_ep0_handle_feature_endpoint()
[all …]
/linux-6.15/drivers/usb/musb/
H A Dmusb_virthub.c263 u16 wValue, in musb_hub_control() argument
288 switch (wValue) { in musb_hub_control()
300 switch (wValue) { in musb_hub_control()
319 musb_dbg(musb, "clear feature %d", wValue); in musb_hub_control()
320 musb->port1_status &= ~(1 << wValue); in musb_hub_control()
360 switch (wValue) { in musb_hub_control()
424 musb_dbg(musb, "set feature %d", wValue); in musb_hub_control()
425 musb->port1_status |= 1 << wValue; in musb_hub_control()
H A Dmusb_gadget_ep0.c220 musb->address = (u8) (ctrlrequest->wValue & 0x7f); in service_zero_data_request()
227 if (ctrlrequest->wValue in service_zero_data_request()
246 ctrlrequest->wValue != USB_ENDPOINT_HALT) in service_zero_data_request()
303 switch (ctrlrequest->wValue) { in service_zero_data_request()
406 ctrlrequest->wValue != USB_ENDPOINT_HALT) in service_zero_data_request()
588 le16_to_cpu(req->wValue), in musb_read_setup()
/linux-6.15/drivers/usb/host/
H A Dfhci-hub.c201 int fhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in fhci_hub_control() argument
216 switch (wValue) { in fhci_hub_control()
225 fhci->vroot_hub->feature &= (1 << wValue); in fhci_hub_control()
227 switch (wValue) { in fhci_hub_control()
285 switch (wValue) { in fhci_hub_control()
294 fhci->vroot_hub->feature |= (1 << wValue); in fhci_hub_control()
296 switch (wValue) { in fhci_hub_control()
H A Dohci-s3c2410.c163 u16 wValue, in ohci_s3c2410_hub_control() argument
175 hcd, typeReq, wValue, wIndex, buf, wLength); in ohci_s3c2410_hub_control()
181 ret = ohci_hub_control(hcd, typeReq, wValue, in ohci_s3c2410_hub_control()
190 if (wValue == USB_PORT_FEAT_POWER) { in ohci_s3c2410_hub_control()
198 switch (wValue) { in ohci_s3c2410_hub_control()
231 ret = ohci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); in ohci_s3c2410_hub_control()
H A Duhci-hub.c243 static int uhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in uhci_hub_control() argument
319 switch (wValue) { in uhci_hub_control()
331 switch (wValue) { in uhci_hub_control()
356 switch (wValue) { in uhci_hub_control()
H A Dohci-at91.c351 static int ohci_at91_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in ohci_at91_hub_control() argument
362 hcd, typeReq, wValue, wIndex, buf, wLength); in ohci_at91_hub_control()
368 switch (wValue) { in ohci_at91_hub_control()
389 switch (wValue) { in ohci_at91_hub_control()
431 ret = ohci_hub_control(hcd, typeReq, wValue, wIndex + 1, buf, wLength); in ohci_at91_hub_control()
/linux-6.15/drivers/media/usb/gspca/
H A Ddtcs033.c19 u16 wValue; member
27 u16 wValue, u16 wIndex, u16 wLength) in reg_rw() argument
39 wValue, wIndex, in reg_rw()
61 preq->wValue, preq->wIndex, preq->wLength); in reg_reqs()
155 u16 wValue = (0xFF00&gainVal)>>8; in dtcs033_setexposure() local
166 bRequestType, bRequest, wValue, wIndex, 0); in dtcs033_setexposure()
/linux-6.15/drivers/usb/dwc3/
H A Dep0.c479 u32 wValue; in dwc3_ep0_handle_device() local
483 wValue = le16_to_cpu(ctrl->wValue); in dwc3_ep0_handle_device()
487 switch (wValue) { in dwc3_ep0_handle_device()
520 u32 wValue; in dwc3_ep0_handle_intf() local
523 wValue = le16_to_cpu(ctrl->wValue); in dwc3_ep0_handle_intf()
525 switch (wValue) { in dwc3_ep0_handle_intf()
540 u32 wValue; in dwc3_ep0_handle_endpoint() local
543 wValue = le16_to_cpu(ctrl->wValue); in dwc3_ep0_handle_endpoint()
545 switch (wValue) { in dwc3_ep0_handle_endpoint()
774 u16 wValue; in dwc3_ep0_set_isoch_delay() local
[all …]
/linux-6.15/drivers/usb/c67x00/
H A Dc67x00-hcd.c66 static int c67x00_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in c67x00_hub_control() argument
113 switch (wValue) { in c67x00_hub_control()
128 switch (wValue) { in c67x00_hub_control()
148 __func__, port, wValue); in c67x00_hub_control()
157 switch (wValue) { in c67x00_hub_control()
209 __func__, port, wValue); in c67x00_hub_control()
/linux-6.15/drivers/usb/usbip/
H A Dvhci_hcd.c374 switch (wValue) { in vhci_hub_control()
399 wValue); in vhci_hub_control()
400 if (wValue >= 32) in vhci_hub_control()
410 wValue != (USB_DT_SS_HUB << 8))) { in vhci_hub_control()
423 if ((wValue >> 8) != USB_DT_BOS) in vhci_hub_control()
503 switch (wValue) { in vhci_hub_control()
599 wValue); in vhci_hub_control()
604 if (wValue >= 32) in vhci_hub_control()
638 typeReq, wValue, wIndex, wLength); in vhci_hub_control()
765 ctrlreq->wValue, vdev->rhport); in vhci_urb_enqueue()
[all …]
/linux-6.15/drivers/staging/greybus/
H A Dusb.c24 __le16 wValue; member
98 static int hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, in hub_control() argument
121 request->wValue = cpu_to_le16(wValue); in hub_control()
/linux-6.15/drivers/usb/renesas_usbhs/
H A Dmod_host.c779 req.wValue = usbhsh_device_number(hpriv, udev); in usbhsh_setup_stage_packet_push()
1092 u16 typeReq, u16 wValue, in __usbhsh_hub_hub_feature() argument
1098 switch (wValue) { in __usbhsh_hub_hub_feature()
1109 u16 typeReq, u16 wValue, in __usbhsh_hub_port_feature() argument
1123 switch (wValue) { in __usbhsh_hub_port_feature()
1186 usbhsh_port_stat_set(hpriv, (1 << wValue)); in __usbhsh_hub_port_feature()
1188 usbhsh_port_stat_clear(hpriv, (1 << wValue)); in __usbhsh_hub_port_feature()
1194 u16 typeReq, u16 wValue, in __usbhsh_hub_get_status() argument
1248 wValue, wIndex, buf, wLength); in usbhsh_hub_control()
1255 wValue, wIndex, buf, wLength); in usbhsh_hub_control()
[all …]
/linux-6.15/drivers/usb/mtu3/
H A Dmtu3_trace.h94 __field(__u16, wValue)
101 __entry->wValue = le16_to_cpu(setup->wValue);
107 __entry->wValue, __entry->wIndex, __entry->wLength
/linux-6.15/drivers/usb/gadget/udc/bdc/
H A Dbdc_ep.c386 u16 wValue; in setup_first_bd_ep0() local
398 wValue = le16_to_cpu(bdc->setup_pkt.wValue); in setup_first_bd_ep0()
399 if ((wValue > req_len) && in setup_first_bd_ep0()
402 wValue, req_len, in setup_first_bd_ep0()
1112 addr = le16_to_cpu(ctrl->wValue); in ep0_set_address()
1154 switch (wValue) { in ep0_handle_feature_dev()
1234 u16 wValue; in ep0_handle_feature() local
1238 wValue = le16_to_cpu(setup_pkt->wValue); in ep0_handle_feature()
1243 __func__, wValue, wIndex, state, in ep0_handle_feature()
1252 if (wValue != USB_INTRF_FUNC_SUSPEND) in ep0_handle_feature()
[all …]
/linux-6.15/drivers/usb/chipidea/
H A Dhost.c244 u16 wValue, in ci_ehci_hub_control() argument
273 retval = ci->platdata->hub_control(ci, typeReq, wValue, wIndex, in ci_ehci_hub_control()
279 if (typeReq == SetPortFeature && wValue == USB_PORT_FEAT_SUSPEND) { in ci_ehci_hub_control()
322 wValue == USB_PORT_FEAT_C_SUSPEND) { in ci_ehci_hub_control()
331 return ehci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); in ci_ehci_hub_control()
/linux-6.15/drivers/media/usb/cx231xx/
H A Dcx231xx-core.c163 ven_req.wValue = (req_data->dev_addr << 9 | _i2c_period << 4 | in cx231xx_send_usb_command()
355 ven_req->wValue = ven_req->wValue & 0xFFFB; in cx231xx_send_vendor_cmd()
356 ven_req->wValue = (ven_req->wValue & 0xFFBD) | 0x2; in cx231xx_send_vendor_cmd()
359 ven_req->wValue, ven_req->wIndex, pdata, in cx231xx_send_vendor_cmd()
364 ven_req->wValue = (ven_req->wValue & 0xFFBD) | 0x42; in cx231xx_send_vendor_cmd()
370 ven_req->wValue, ven_req->wIndex, pdata, in cx231xx_send_vendor_cmd()
376 ven_req->wValue = (ven_req->wValue & 0xFFBD) | 0x40; in cx231xx_send_vendor_cmd()
380 ven_req->wValue, ven_req->wIndex, pdata, in cx231xx_send_vendor_cmd()
385 ven_req->wValue, ven_req->wIndex, in cx231xx_send_vendor_cmd()
1478 ven_req.wValue = (u16) (gpio_bit >> 16 & 0xffff); in cx231xx_send_gpio_cmd()
/linux-6.15/drivers/input/misc/
H A Dpowermate.c130 pm->configcr->wValue = cpu_to_le16( SET_PULSE_ASLEEP ); in powermate_sync_state()
134 pm->configcr->wValue = cpu_to_le16( SET_PULSE_AWAKE ); in powermate_sync_state()
166 pm->configcr->wValue = cpu_to_le16( (pm->pulse_table << 8) | SET_PULSE_MODE ); in powermate_sync_state()
170 pm->configcr->wValue = cpu_to_le16( SET_STATIC_BRIGHTNESS ); in powermate_sync_state()
/linux-6.15/drivers/hid/
H A Dhid-thrustmaster.c132 .wValue = 0,
140 .wValue = 0, // Will be filled by the driver
253 tm_wheel->change_request->wValue = cpu_to_le16(twi->switch_value); in thrustmaster_model_handler()
/linux-6.15/drivers/net/usb/
H A Dcdc_ether.c420 event->wValue ? "on" : "off"); in usbnet_cdc_status()
421 if (netif_carrier_ok(dev->net) != !!event->wValue) in usbnet_cdc_status()
422 usbnet_link_change(dev, !!event->wValue, 0); in usbnet_cdc_status()
516 event->wValue ? "on" : "off"); in usbnet_cdc_zte_status()
518 if (event->wValue && in usbnet_cdc_zte_status()
522 usbnet_link_change(dev, !!event->wValue, 0); in usbnet_cdc_zte_status()

1234567