/freebsd/sys/dev/usb/ |
H A D | usb_request.c | 281 req.wIndex[0] = ep->edesc->bEndpointAddress; in usb_do_clear_stall_callback() 282 req.wIndex[1] = 0; in usb_do_clear_stall_callback() 447 req->wIndex[1], req->wIndex[0], in usbd_do_request_flags() 1011 USETW(req.wIndex, id); in usbd_req_get_desc() 1247 USETW(req.wIndex, 0); in usbd_req_get_descriptor_ptr() 1429 req.wIndex[0] = iface->idesc->bInterfaceNumber; in usbd_req_get_alt_interface_no() 1430 req.wIndex[1] = 0; in usbd_req_get_alt_interface_no() 1457 req.wIndex[0] = iface->idesc->bInterfaceNumber; in usbd_req_set_alt_interface_no() 1458 req.wIndex[1] = 0; in usbd_req_set_alt_interface_no() 1489 USETW(req.wIndex, 0); in usbd_req_get_device_status() [all …]
|
H A D | usb_handle_request.c | 230 iface_index = req.wIndex[0]; /* unicast */ in usb_handle_iface_request() 544 req.bRequest, wValue, UGETW(req.wIndex), off, rem, state); in usb_handle_request() 707 if (usb_handle_set_stall(xfer, req.wIndex[0], 0)) { in usb_handle_request() 723 if (usb_handle_set_stall(xfer, req.wIndex[0], 1)) { in usb_handle_request() 740 usb_handle_get_stall(udev, req.wIndex[0]); in usb_handle_request()
|
/freebsd/sys/dev/usb/serial/ |
H A D | umodem.c | 622 req.wIndex[0] = sc->sc_ctrl_iface_no; in umodem_cfg_param() 623 req.wIndex[1] = 0; in umodem_cfg_param() 687 req.wIndex[0] = sc->sc_ctrl_iface_no; in umodem_cfg_set_dtr() 688 req.wIndex[1] = 0; in umodem_cfg_set_dtr() 711 req.wIndex[0] = sc->sc_ctrl_iface_no; in umodem_cfg_set_rts() 712 req.wIndex[1] = 0; in umodem_cfg_set_rts() 734 req.wIndex[0] = sc->sc_ctrl_iface_no; in umodem_cfg_set_break() 735 req.wIndex[1] = 0; in umodem_cfg_set_break() 943 req.wIndex[0] = iface_no; in umodem_set_comm_feature() 944 req.wIndex[1] = 0; in umodem_set_comm_feature() [all …]
|
H A D | uplcom.c | 433 req.wIndex[0] = sc->sc_data_iface_no; in uplcom_attach() 434 req.wIndex[1] = 0; in uplcom_attach() 598 req.wIndex[0] = sc->sc_data_iface_no; in uplcom_reset() 599 req.wIndex[1] = 0; in uplcom_reset() 616 USETW(req.wIndex, index); in uplcom_pl2303_do() 675 req.wIndex[0] = sc->sc_data_iface_no; in uplcom_cfg_set_dtr() 676 req.wIndex[1] = 0; in uplcom_cfg_set_dtr() 699 req.wIndex[0] = sc->sc_data_iface_no; in uplcom_cfg_set_rts() 700 req.wIndex[1] = 0; in uplcom_cfg_set_rts() 721 req.wIndex[0] = sc->sc_data_iface_no; in uplcom_cfg_set_break() [all …]
|
H A D | uslcom.c | 501 USETW(req.wIndex, sc->sc_iface_no); in uslcom_cfg_open() 529 USETW(req.wIndex, sc->sc_iface_no); in uslcom_cfg_close() 549 USETW(req.wIndex, sc->sc_iface_no); in uslcom_get_partnum() 575 USETW(req.wIndex, sc->sc_iface_no); in uslcom_cfg_set_dtr() 599 USETW(req.wIndex, sc->sc_iface_no); in uslcom_cfg_set_rts() 649 USETW(req.wIndex, sc->sc_iface_no); in uslcom_cfg_param() 686 USETW(req.wIndex, sc->sc_iface_no); in uslcom_cfg_param() 706 USETW(req.wIndex, sc->sc_iface_no); in uslcom_cfg_param() 737 USETW(req.wIndex, sc->sc_iface_no); in uslcom_cfg_set_break() 766 USETW(req.wIndex, sc->sc_iface_no); in uslcom_ioctl() [all …]
|
H A D | uftdi.c | 1374 uint16_t wIndex = ucom->sc_portno; in uftdi_cfg_set_dtr() local 1385 USETW(req.wIndex, wIndex); in uftdi_cfg_set_dtr() 1395 uint16_t wIndex = ucom->sc_portno; in uftdi_cfg_set_rts() local 1406 USETW(req.wIndex, wIndex); in uftdi_cfg_set_rts() 1416 uint16_t wIndex = ucom->sc_portno; in uftdi_cfg_set_break() local 1433 USETW(req.wIndex, wIndex); in uftdi_cfg_set_break() 1655 uint16_t wIndex = ucom->sc_portno; in uftdi_cfg_param() local 1670 USETW(req.wIndex, cfg.baud_hibits | wIndex); in uftdi_cfg_param() 1678 USETW(req.wIndex, wIndex); in uftdi_cfg_param() 1686 USETW2(req.wIndex, cfg.v_flow, wIndex); in uftdi_cfg_param() [all …]
|
H A D | uvisor.c | 412 USETW(req.wIndex, 0); in uvisor_init() 464 USETW(req.wIndex, 0); in uvisor_init() 492 USETW(req.wIndex, 0); in uvisor_init() 506 USETW(req.wIndex, 0); in uvisor_init() 518 USETW(req.wIndex, 0); in uvisor_init() 532 USETW(req.wIndex, 5); in uvisor_init() 563 USETW(req.wIndex, 0); in uvisor_cfg_close()
|
H A D | ufoma.c | 541 USETW(req.wIndex, sc->sc_ctrl_iface_no); in ufoma_cfg_link_state() 563 USETW(req.wIndex, sc->sc_ctrl_iface_no); in ufoma_cfg_activate_state() 603 USETW(req.wIndex, sc->sc_ctrl_iface_no); in ufoma_ctrl_read_callback() 644 USETW(req.wIndex, sc->sc_ctrl_iface_no); in ufoma_ctrl_write_callback() 884 req.wIndex[0] = sc->sc_ctrl_iface_no; in ufoma_cfg_set_break() 885 req.wIndex[1] = 0; in ufoma_cfg_set_break() 914 req.wIndex[0] = sc->sc_ctrl_iface_no; in ufoma_cfg_set_line_state() 915 req.wIndex[1] = 0; in ufoma_cfg_set_line_state() 1011 req.wIndex[0] = sc->sc_ctrl_iface_no; in ufoma_cfg_param() 1012 req.wIndex[1] = 0; in ufoma_cfg_param()
|
H A D | ubser.c | 249 req.wIndex[0] = sc->sc_iface_no; in ubser_attach() 250 req.wIndex[1] = 0; in ubser_attach() 495 req.wIndex[0] = sc->sc_iface_no; in ubser_cfg_set_break() 496 req.wIndex[1] = 0; in ubser_cfg_set_break()
|
H A D | uipaq.c | 1135 USETW(req.wIndex, 0x0); in uipaq_attach() 1256 req.wIndex[0] = UIPAQ_IFACE_INDEX; in uipaq_cfg_set_dtr() 1257 req.wIndex[1] = 0; in uipaq_cfg_set_dtr() 1280 req.wIndex[0] = UIPAQ_IFACE_INDEX; in uipaq_cfg_set_rts() 1281 req.wIndex[1] = 0; in uipaq_cfg_set_rts() 1300 req.wIndex[0] = UIPAQ_IFACE_INDEX; in uipaq_cfg_set_break() 1301 req.wIndex[1] = 0; in uipaq_cfg_set_break()
|
H A D | ucycom.c | 402 req.wIndex[0] = sc->sc_iface_no; in ucycom_ctrl_write_callback() 403 req.wIndex[1] = 0; in ucycom_ctrl_write_callback() 454 req.wIndex[0] = sc->sc_iface_no; in ucycom_cfg_write() 455 req.wIndex[1] = 0; in ucycom_cfg_write()
|
H A D | ulpt.c | 175 USETW(req.wIndex, sc->sc_iface_no); in ulpt_reset() 330 req.wIndex[0] = sc->sc_iface_no; in ulpt_status_callback() 331 req.wIndex[1] = 0; in ulpt_status_callback() 617 USETW2(req.wIndex, id->bInterfaceNumber, id->bAlternateSetting); in ulpt_attach()
|
/freebsd/sys/dev/usb/template/ |
H A D | usb_template_mtp.c | 211 (req->wValue[1] == 0) && (req->wIndex[1] == 0) && in mtp_get_vendor_desc() 212 ((req->wIndex[0] == 4) || (req->wIndex[0] == 5))) { in mtp_get_vendor_desc()
|
H A D | usb_template_kbd.c | 199 (req->wIndex[1] == 0) && (req->wIndex[0] == 0)) { in keyboard_get_vendor_desc()
|
H A D | usb_template_mouse.c | 197 (req->wIndex[1] == 0) && (req->wIndex[0] == 0)) { in mouse_get_vendor_desc()
|
/freebsd/sys/dev/usb/net/ |
H A D | if_cue.c | 205 USETW(req.wIndex, reg); in cue_csr_read_1() 223 USETW(req.wIndex, reg); in cue_csr_read_2() 238 USETW(req.wIndex, reg); in cue_csr_write_1() 255 USETW(req.wIndex, addr); in cue_mem() 269 USETW(req.wIndex, 0); in cue_getmac() 359 USETW(req.wIndex, 0); in cue_reset()
|
H A D | if_cdce.c | 356 req.wIndex[0] = sc->sc_ifaces_index[1]; in cdce_ncm_init() 357 req.wIndex[1] = 0; in cdce_ncm_init() 458 req.wIndex[0] = sc->sc_ifaces_index[1]; in cdce_ncm_init() 459 req.wIndex[1] = 0; in cdce_ncm_init() 482 req.wIndex[0] = sc->sc_ifaces_index[1]; in cdce_ncm_init() 483 req.wIndex[1] = 0; in cdce_ncm_init() 495 req.wIndex[0] = sc->sc_ifaces_index[1]; in cdce_ncm_init() 496 req.wIndex[1] = 0; in cdce_ncm_init() 1057 req.wIndex[0] = sc->sc_ifaces_index[1]; in cdce_set_filter() 1058 req.wIndex[1] = 0; in cdce_set_filter() [all …]
|
H A D | if_mos.c | 276 USETW(req.wIndex, reg); in mos_reg_read_1() 300 USETW(req.wIndex, reg); in mos_reg_read_2() 323 USETW(req.wIndex, reg); in mos_reg_write_1() 347 USETW(req.wIndex, reg); in mos_reg_write_2() 368 USETW(req.wIndex, MOS_MAC); in mos_readmac() 388 USETW(req.wIndex, MOS_MAC); in mos_writemac() 409 USETW(req.wIndex, MOS_MCAST_TABLE); in mos_write_mcast()
|
H A D | if_udav.c | 333 USETW(req.wIndex, offset); 350 USETW(req.wIndex, offset); 365 USETW(req.wIndex, offset); 382 USETW(req.wIndex, offset); in udav_csr_read() 399 USETW(req.wIndex, offset); in udav_csr_write() 425 USETW(req.wIndex, offset); in udav_csr_write1()
|
H A D | if_ipheth.c | 193 req.wIndex[0] = sc->sc_iface_no; in ipheth_get_mac_addr() 194 req.wIndex[1] = 0; in ipheth_get_mac_addr() 320 req.wIndex[0] = sc->sc_iface_no; in ipheth_tick() 321 req.wIndex[1] = 0; in ipheth_tick()
|
/freebsd/sys/dev/usb/input/ |
H A D | usbhid.c | 569 req.ctrl.wIndex[0] = sc->sc_iface_no; in usbhid_get_report() 570 req.ctrl.wIndex[1] = 0; in usbhid_get_report() 595 req.ctrl.wIndex[0] = sc->sc_iface_no; in usbhid_set_report() 596 req.ctrl.wIndex[1] = 0; in usbhid_set_report() 656 req.ctrl.wIndex[0] = sc->sc_iface_no; in usbhid_set_idle() 657 req.ctrl.wIndex[1] = 0; in usbhid_set_idle() 677 req.ctrl.wIndex[0] = sc->sc_iface_no; in usbhid_set_protocol() 678 req.ctrl.wIndex[1] = 0; in usbhid_set_protocol()
|
/freebsd/sys/dev/rtwn/usb/ |
H A D | rtwn_usb_reg.c | 95 USETW(req.wIndex, 0); in rtwn_usb_write_region_1() 129 USETW(req.wIndex, 0); in rtwn_usb_read_region_1()
|
/freebsd/lib/libusb/ |
H A D | libusb10_io.c | 471 uint8_t bmRequestType, uint8_t bRequest, uint16_t wValue, uint16_t wIndex, in libusb_control_transfer() argument 489 req.wIndex = wIndex; in libusb_control_transfer() 716 uint16_t wIndex, uint16_t wLength) in libusb_fill_control_setup() argument 724 req->wIndex = htole16(wIndex); in libusb_fill_control_setup()
|
/freebsd/share/examples/libusb20/ |
H A D | control.c | 79 setup.wIndex, in doit() 292 setup.wIndex = strtoul(argv[idx], 0, 0); in parse_req()
|
/freebsd/tools/tools/usbtest/ |
H A D | usb_control_ep_test.c | 109 req.wIndex = 0; in usb_control_ep_error_test() 509 setup_set_stall.wIndex = epno; in usb_set_and_clear_stall_test() 516 setup_get_status.wIndex = epno; in usb_set_and_clear_stall_test()
|