| /openbsd/src/sys/dev/usb/ |
| D | usbdi_util.c | 67 USETW(req.wIndex, 0); in usbd_get_desc() 68 USETW(req.wLength, len); in usbd_get_desc() 79 USETW(req.wValue, 0); in usbd_get_device_status() 80 USETW(req.wIndex, 0); in usbd_get_device_status() 81 USETW(req.wLength, sizeof(usb_status_t)); in usbd_get_device_status() 95 USETW(req.wIndex, 0); in usbd_get_hub_descriptor() 96 USETW(req.wLength, len); in usbd_get_hub_descriptor() 110 USETW(req.wIndex, 0); in usbd_get_hub_ss_descriptor() 111 USETW(req.wLength, len); in usbd_get_hub_ss_descriptor() 122 USETW(req.wValue, 0); in usbd_get_port_status() [all …]
|
| D | uplcom.c | 270 USETW(req.wValue, UPLCOM_HX_STATUS_REG); in uplcom_attach() 271 USETW(req.wIndex, sc->sc_iface_number); in uplcom_attach() 272 USETW(req.wLength, 1); in uplcom_attach() 447 USETW(req.wValue, 0); in uplcom_reset() 448 USETW(req.wIndex, sc->sc_iface_number); in uplcom_reset() 449 USETW(req.wLength, 0); in uplcom_reset() 475 USETW(req.wValue, ls); in uplcom_set_line_state() 476 USETW(req.wIndex, sc->sc_iface_number); in uplcom_set_line_state() 477 USETW(req.wLength, 0); in uplcom_set_line_state() 539 USETW(req.wValue, onoff ? UCDC_BREAK_ON : UCDC_BREAK_OFF); in uplcom_break() [all …]
|
| D | uberry.c | 137 USETW(req.wValue, 1); in uberry_pearlmode() 138 USETW(req.wIndex, 1); in uberry_pearlmode() 139 USETW(req.wLength, 2); in uberry_pearlmode() 151 USETW(req.wValue, 0); in uberry_charge() 152 USETW(req.wIndex, 1); in uberry_charge() 153 USETW(req.wLength, 2); in uberry_charge() 158 USETW(req.wValue, 0); in uberry_charge() 159 USETW(req.wIndex, 1); in uberry_charge() 160 USETW(req.wLength, 0); in uberry_charge()
|
| D | uslcom.c | 364 USETW(req.wValue, USLCOM_UART_ENABLE); in uslcom_open() 365 USETW(req.wIndex, portno); in uslcom_open() 366 USETW(req.wLength, 0); in uslcom_open() 385 USETW(req.wValue, USLCOM_UART_DISABLE); in uslcom_close() 386 USETW(req.wIndex, portno); in uslcom_close() 387 USETW(req.wLength, 0); in uslcom_close() 415 USETW(req.wValue, ctl); in uslcom_set() 416 USETW(req.wIndex, portno); in uslcom_set() 417 USETW(req.wLength, 0); in uslcom_set() 436 USETW(req.wValue, 0); in uslcom_param() [all …]
|
| D | uticom.c | 470 USETW(req.wValue, 0); in uticom_reset() 471 USETW(req.wIndex, 0); in uticom_reset() 472 USETW(req.wLength, 0); in uticom_reset() 520 USETW(req.wValue, sc->sc_dtr ? UCDC_LINE_DTR : 0); in uticom_dtr() 521 USETW(req.wIndex, 0); in uticom_dtr() 522 USETW(req.wLength, 0); in uticom_dtr() 544 USETW(req.wValue, sc->sc_rts ? UCDC_LINE_RTS : 0); in uticom_rts() 545 USETW(req.wIndex, 0); in uticom_rts() 546 USETW(req.wLength, 0); in uticom_rts() 565 USETW(req.wValue, onoff ? 1 : 0); in uticom_break() [all …]
|
| D | umct.c | 319 USETW(req.wValue, 0); in umct_set_line_state() 320 USETW(req.wIndex, sc->sc_iface_number); in umct_set_line_state() 321 USETW(req.wLength, LENGTH_SET_MCR); in umct_set_line_state() 389 USETW(req.wValue, 0); in umct_set_lcr() 390 USETW(req.wIndex, sc->sc_iface_number); in umct_set_lcr() 391 USETW(req.wLength, LENGTH_SET_LCR); in umct_set_lcr() 426 USETW(req.wValue, 0); in umct_set_baudrate() 427 USETW(req.wIndex, sc->sc_iface_number); in umct_set_baudrate() 428 USETW(req.wLength, LENGTH_BAUD_RATE); in umct_set_baudrate() 437 USETW(req.wValue, 0); in umct_set_baudrate() [all …]
|
| D | uxrcom.c | 280 USETW(req.wValue, value); in uxrcom_set() 281 USETW(req.wIndex, index); in uxrcom_set() 282 USETW(req.wLength, 0); in uxrcom_set() 298 USETW(req.wValue, 0); in uxrcom_set_line_coding() 299 USETW(req.wIndex, UXRCOM_INTR_IFACE_NO); in uxrcom_set_line_coding() 300 USETW(req.wLength, UCDC_LINE_STATE_LENGTH); in uxrcom_set_line_coding() 363 USETW(req.wValue, flowctrl); in uxrcom_param() 364 USETW(req.wIndex, XR_FLOW_CONTROL); in uxrcom_param() 365 USETW(req.wLength, 0); in uxrcom_param() 428 USETW(req.wValue, brk); in uxrcom_break() [all …]
|
| D | uvisor.c | 389 USETW(req.wValue, 0); in uvisor_init() 390 USETW(req.wIndex, 0); in uvisor_init() 391 USETW(req.wLength, UVISOR_GET_PALM_INFORMATION_LEN); in uvisor_init() 411 USETW(req.wValue, 0); in uvisor_init() 412 USETW(req.wIndex, 0); in uvisor_init() 413 USETW(req.wLength, UVISOR_CONNECTION_INFO_SIZE); in uvisor_init() 426 USETW(req.wValue, 0); in uvisor_init() 427 USETW(req.wIndex, 5); in uvisor_init() 428 USETW(req.wLength, sizeof avail); in uvisor_init() 450 USETW(req.wValue, 0); in uvisor_close() [all …]
|
| D | uipaq.c | 247 USETW(req.wValue, sc->sc_lcr); in uipaq_dtr() 248 USETW(req.wIndex, 0x0); in uipaq_dtr() 249 USETW(req.wLength, 0); in uipaq_dtr() 277 USETW(req.wValue, sc->sc_lcr); in uipaq_rts() 278 USETW(req.wIndex, 0x0); in uipaq_rts() 279 USETW(req.wLength, 0); in uipaq_rts() 302 USETW(req.wValue, onoff ? UCDC_BREAK_ON : UCDC_BREAK_OFF); in uipaq_break() 303 USETW(req.wIndex, 0x0); in uipaq_break() 304 USETW(req.wLength, 0); in uipaq_break()
|
| D | udcf.c | 315 USETW(sc->sc_req.wValue, 0); in udcf_nc_init_hw() 316 USETW(sc->sc_req.wIndex, UDCF_READ_IDX); in udcf_nc_init_hw() 317 USETW(sc->sc_req.wLength, 1); in udcf_nc_init_hw() 321 USETW(req.wValue, 0); in udcf_nc_init_hw() 322 USETW(req.wIndex, 0); in udcf_nc_init_hw() 323 USETW(req.wLength, 0); in udcf_nc_init_hw() 332 USETW(req.wValue, UDCF_CTRL_VAL); in udcf_nc_init_hw() 333 USETW(req.wIndex, UDCF_CTRL_IDX); in udcf_nc_init_hw() 334 USETW(req.wLength, 0); in udcf_nc_init_hw() 356 USETW(req.wValue,FT232R_RESET); in udcf_ft232r_init_hw() [all …]
|
| D | uvscom.c | 370 USETW(req.wValue, 0); in uvscom_readstat() 371 USETW(req.wIndex, 0); in uvscom_readstat() 372 USETW(req.wLength, 2); in uvscom_readstat() 397 USETW(req.wValue, 0); in uvscom_shutdown() 398 USETW(req.wIndex, 0); in uvscom_shutdown() 399 USETW(req.wLength, 0); in uvscom_shutdown() 438 USETW(req.wValue, line); in uvscom_set_line() 439 USETW(req.wIndex, 0); in uvscom_set_line() 440 USETW(req.wLength, 0); in uvscom_set_line() 463 USETW(req.wValue, lsp); in uvscom_set_line_coding() [all …]
|
| D | if_cue.c | 160 USETW(req.wValue, 0); in cue_csr_read_1() 161 USETW(req.wIndex, reg); in cue_csr_read_1() 162 USETW(req.wLength, 1); in cue_csr_read_1() 190 USETW(req.wValue, 0); in cue_csr_read_2() 191 USETW(req.wIndex, reg); in cue_csr_read_2() 192 USETW(req.wLength, 2); in cue_csr_read_2() 222 USETW(req.wValue, val); in cue_csr_write_1() 223 USETW(req.wIndex, reg); in cue_csr_write_1() 224 USETW(req.wLength, 0); in cue_csr_write_1() 255 USETW(val, aval); [all …]
|
| D | uoak_subr.c | 113 USETW(&sc->sc_rcmd.cmd, OAK_CMD_DEVNAME); in uoak_get_device_name() 129 USETW(&sc->sc_rcmd.cmd, OAK_CMD_REPORTMODE); in uoak_get_report_mode() 145 USETW(&sc->sc_rcmd.cmd, OAK_CMD_REPORTRATE); in uoak_get_report_rate() 163 USETW(&sc->sc_rcmd.cmd, OAK_CMD_SAMPLERATE); in uoak_get_sample_rate() 180 USETW(&sc->sc_rcmd.cmd, OAK_CMD_SAMPLERATE); in uoak_set_sample_rate() 186 USETW(sc->sc_rcmd.val, rate); in uoak_set_sample_rate() 204 USETW(&sc->sc_rcmd.cmd, OAK_CMD_LEDMODE); in uoak_led_status() 220 USETW(&sc->sc_rcmd.cmd, OAK_CMD_LEDMODE); in uoak_led_ctrl()
|
| D | umodem.c | 583 USETW(req.wValue, ls); in umodem_set_line_state() 584 USETW(req.wIndex, sc->sc_ctl_iface_no); in umodem_set_line_state() 585 USETW(req.wLength, 0); in umodem_set_line_state() 603 USETW(req.wValue, onoff ? UCDC_BREAK_ON : UCDC_BREAK_OFF); in umodem_break() 604 USETW(req.wIndex, sc->sc_ctl_iface_no); in umodem_break() 605 USETW(req.wLength, 0); in umodem_break() 648 USETW(req.wValue, 0); in umodem_set_line_coding() 649 USETW(req.wIndex, sc->sc_ctl_iface_no); in umodem_set_line_coding() 650 USETW(req.wLength, UCDC_LINE_STATE_LENGTH); in umodem_set_line_coding() 676 USETW(req.wValue, feature); in umodem_set_comm_feature() [all …]
|
| D | if_mos.c | 199 USETW(req.wValue, 0); in mos_reg_read_1() 200 USETW(req.wIndex, reg); in mos_reg_read_1() 201 USETW(req.wLength, 1); in mos_reg_read_1() 220 USETW(val,0); in mos_reg_read_2() 227 USETW(req.wValue, 0); in mos_reg_read_2() 228 USETW(req.wIndex, reg); in mos_reg_read_2() 229 USETW(req.wLength, 2); in mos_reg_read_2() 255 USETW(req.wValue, 0); in mos_reg_write_1() 256 USETW(req.wIndex, reg); in mos_reg_write_1() 257 USETW(req.wLength, 1); in mos_reg_write_1() [all …]
|
| D | uftdi.c | 894 USETW(req.wValue, FTDI_SIO_RESET_SIO); in uftdi_open() 895 USETW(req.wIndex, portno); in uftdi_open() 896 USETW(req.wLength, 0); in uftdi_open() 909 USETW(req.wValue, 0); in uftdi_open() 911 USETW(req.wLength, 0); in uftdi_open() 993 USETW(req.wValue, ctl); in uftdi_set() 994 USETW(req.wIndex, portno); in uftdi_set() 995 USETW(req.wLength, 0); in uftdi_set() 1045 USETW(req.wValue, rate); in uftdi_param() 1046 USETW(req.wIndex, ((rate >> 8) & 0xFF00) | portno); in uftdi_param() [all …]
|
| D | umcs.c | 327 USETW(req.wValue, 0); in umcs_get_reg() 328 USETW(req.wIndex, reg); in umcs_get_reg() 329 USETW(req.wLength, UMCS_READ_LENGTH); in umcs_get_reg() 344 USETW(req.wValue, data); in umcs_set_reg() 345 USETW(req.wIndex, reg); in umcs_set_reg() 346 USETW(req.wLength, 0); in umcs_set_reg() 365 USETW(req.wValue, wVal); in umcs_get_uart_reg() 366 USETW(req.wIndex, reg); in umcs_get_uart_reg() 367 USETW(req.wLength, UMCS_READ_LENGTH); in umcs_get_uart_reg() 386 USETW(req.wValue, wVal); in umcs_set_uart_reg() [all …]
|
| D | moscom.c | 283 USETW(req.wValue, 0x08); in moscom_open() 284 USETW(req.wIndex, MOSCOM_INT); in moscom_open() 285 USETW(req.wLength, 0); in moscom_open() 387 USETW(req.wValue, val + MOSCOM_UART_REG); in moscom_cmd() 388 USETW(req.wIndex, reg); in moscom_cmd() 389 USETW(req.wLength, 0); in moscom_cmd()
|
| D | usbdi.c | 597 USETW(req.wValue, UF_ENDPOINT_HALT); in usbd_clear_endpoint_stall() 598 USETW(req.wIndex, pipe->endpoint->edesc->bEndpointAddress); in usbd_clear_endpoint_stall() 599 USETW(req.wLength, 0); in usbd_clear_endpoint_stall() 617 USETW(req.wValue, UF_ENDPOINT_HALT); in usbd_clear_endpoint_stall_async() 618 USETW(req.wIndex, pipe->endpoint->edesc->bEndpointAddress); in usbd_clear_endpoint_stall_async() 619 USETW(req.wLength, 0); in usbd_clear_endpoint_stall_async() 693 USETW(req.wValue, iface->idesc->bAlternateSetting); in usbd_set_interface() 694 USETW(req.wIndex, iface->idesc->bInterfaceNumber); in usbd_set_interface() 695 USETW(req.wLength, 0); in usbd_set_interface() 938 USETW(treq.wValue, 0); in usbd_do_request_flags() [all …]
|
| D | if_udav.c | 371 USETW(req.wValue, 0x0000); 372 USETW(req.wIndex, offset); 373 USETW(req.wLength, len); 408 USETW(req.wValue, 0x0000); 409 USETW(req.wIndex, offset); 410 USETW(req.wLength, len); 444 USETW(req.wValue, ch); 445 USETW(req.wIndex, offset); 446 USETW(req.wLength, 0x0000); 482 USETW(req.wValue, 0x0000); in udav_csr_read() [all …]
|
| D | ulpt.c | 323 USETW(req.wValue, cd->bConfigurationValue); in ulpt_attach() 325 USETW(req.wLength, DEVINFOSIZE - 1); in ulpt_attach() 391 USETW(req.wValue, 0); in ulpt_status() 392 USETW(req.wIndex, sc->sc_ifaceno); in ulpt_status() 393 USETW(req.wLength, 1); in ulpt_status() 409 USETW(req.wValue, 0); in ulpt_reset() 410 USETW(req.wIndex, sc->sc_ifaceno); in ulpt_reset() 411 USETW(req.wLength, 0); in ulpt_reset()
|
| D | usb_subr.c | 125 USETW(req.wIndex, langid); in usbd_get_string_desc() 126 USETW(req.wLength, 2); /* size and descriptor type first */ in usbd_get_string_desc() 135 USETW(req.wLength, sdesc->bLength); /* the whole string */ in usbd_get_string_desc() 549 USETW(ed->wMaxPacketSize, mps); in usbd_parse_idesc() 585 USETW(req.wValue, conf); in usbd_set_config() 586 USETW(req.wIndex, 0); in usbd_set_config() 587 USETW(req.wLength, 0); in usbd_set_config() 690 USETW(req.wValue, 0); in usbd_set_config_index() 691 USETW(req.wIndex, 0); in usbd_set_config_index() 692 USETW(req.wLength, USB_HUB_DESCRIPTOR_SIZE); in usbd_set_config_index() [all …]
|
| D | umsm.c | 636 USETW(req.wValue, ls); in umsm_set() 637 USETW(req.wIndex, sc->sc_iface_no); in umsm_set() 638 USETW(req.wLength, 0); in umsm_set() 651 USETW(req.wValue, UF_DEVICE_REMOTE_WAKEUP); in umsm_huawei_changemode() 652 USETW(req.wIndex, E220_MODE_CHANGE_REQUEST); in umsm_huawei_changemode() 653 USETW(req.wLength, 0); in umsm_huawei_changemode() 669 USETW(req.wValue, 0x1); in umsm_truinstall_changemode() 670 USETW(req.wIndex, 0); in umsm_truinstall_changemode() 671 USETW(req.wLength, 0); in umsm_truinstall_changemode()
|
| D | usps.c | 335 USETW(req.wValue, val); in usps_cmd() 336 USETW(req.wIndex, 0); in usps_cmd() 337 USETW(req.wLength, len); in usps_cmd() 357 USETW(req.wValue, 0); in usps_set_measurement_mode() 358 USETW(req.wIndex, 0); in usps_set_measurement_mode() 359 USETW(req.wLength, 0); in usps_set_measurement_mode() 369 USETW(req.wValue, mode); in usps_set_measurement_mode()
|
| D | udsbr.c | 175 USETW(req.wValue, value); in udsbr_req() 176 USETW(req.wIndex, index); in udsbr_req() 177 USETW(req.wLength, 1); in udsbr_req()
|