| /netbsd-src/sys/dev/usb/ |
| H A D | usbdi_util.c | 84 USETW(req.wIndex, 0); in usbd_get_desc() 85 USETW(req.wLength, len); in usbd_get_desc() 167 USETW(req.wIndex, 0); in usbd_get_initial_ddesc() 168 USETW(req.wLength, 8); in usbd_get_initial_ddesc() 198 USETW(req.wIndex, langid); in usbd_get_string_desc() 199 USETW(req.wLength, 2); /* only size byte first */ in usbd_get_string_desc() 210 USETW(req.wLength, sdesc->bLength); /* the whole string */ in usbd_get_string_desc() 234 USETW(req.wValue, 0); in usbd_get_device_status() 235 USETW(req.wIndex, 0); in usbd_get_device_status() 236 USETW(req.wLength, sizeof(usb_status_t)); in usbd_get_device_status() [all …]
|
| H A D | if_cue.c | 171 USETW(req.wValue, 0); in cue_csr_read_1() 172 USETW(req.wIndex, reg); in cue_csr_read_1() 173 USETW(req.wLength, 1); in cue_csr_read_1() 202 USETW(req.wValue, 0); in cue_csr_read_2() 203 USETW(req.wIndex, reg); in cue_csr_read_2() 204 USETW(req.wLength, 2); in cue_csr_read_2() 234 USETW(req.wValue, val); in cue_csr_write_1() 235 USETW(req.wIndex, reg); in cue_csr_write_1() 236 USETW(req.wLength, 0); in cue_csr_write_1() 267 USETW(val, aval); [all …]
|
| H A D | if_mos.c | 188 USETW(req.wValue, 0); in mos_reg_read_1() 189 USETW(req.wIndex, reg); in mos_reg_read_1() 190 USETW(req.wLength, 1); in mos_reg_read_1() 212 USETW(val,0); in mos_reg_read_2() 216 USETW(req.wValue, 0); in mos_reg_read_2() 217 USETW(req.wIndex, reg); in mos_reg_read_2() 218 USETW(req.wLength, 2); in mos_reg_read_2() 244 USETW(req.wValue, 0); in mos_reg_write_1() 245 USETW(req.wIndex, reg); in mos_reg_write_1() 246 USETW(req.wLength, 1); in mos_reg_write_1() [all …]
|
| H A D | uxrcom.c | 201 USETW(req.wValue, value); in uxrcom_set() 202 USETW(req.wIndex, index | XR_UART_BLOCK(sc)); in uxrcom_set() 203 USETW(req.wLength, 0); in uxrcom_set() 224 USETW(req.wValue, 0); in uxrcom_set_line_coding() 225 USETW(req.wIndex, sc->sc_ctl_iface_no); in uxrcom_set_line_coding() 226 USETW(req.wLength, UCDC_LINE_STATE_LENGTH); in uxrcom_set_line_coding() 297 USETW(req.wValue, flowctrl); in uxrcom_param() 298 USETW(req.wIndex, XR_FLOW_CONTROL | XR_UART_BLOCK(sc)); in uxrcom_param() 299 USETW(req.wLength, 0); in uxrcom_param() 316 USETW(req.wValue, brk); in uxrcom_break() [all …]
|
| H A D | uplcom.c | 325 USETW(req.wValue, UPLCOM_HX_STATUS_REG); in uplcom_attach() 326 USETW(req.wIndex, sc->sc_iface_number); in uplcom_attach() 327 USETW(req.wLength, 1); in uplcom_attach() 558 USETW(req.wValue, 0); in uplcom_reset() 559 USETW(req.wIndex, sc->sc_iface_number); in uplcom_reset() 560 USETW(req.wLength, 0); in uplcom_reset() 604 USETW(req.wValue, pl2303x[i].value); in uplcom_pl2303x_init() 605 USETW(req.wIndex, pl2303x[i].index); in uplcom_pl2303x_init() 608 USETW(req.wLength, sizeof(buf)); in uplcom_pl2303x_init() 611 USETW(req.wLength, 0); in uplcom_pl2303x_init() [all …]
|
| H A D | aubtfwl.c | 169 USETW(req.wValue, 0); in aubtfwl_firmware_load() 170 USETW(req.wIndex, 0); in aubtfwl_firmware_load() 171 USETW(req.wLength, AR3K_FIRMWARE_HEADER_SIZE); in aubtfwl_firmware_load() 220 USETW(req.wValue, 0); in aubtfwl_get_state() 221 USETW(req.wIndex, 0); in aubtfwl_get_state() 222 USETW(req.wLength, sizeof(*state)); in aubtfwl_get_state() 238 USETW(req.wValue, 0); in aubtfwl_get_version() 239 USETW(req.wIndex, 0); in aubtfwl_get_version() 240 USETW(req.wLength, sizeof(*ver)); in aubtfwl_get_version() 263 USETW(req.wValue, 0); in aubtfwl_send_command() [all …]
|
| H A D | uftdi.c | 507 USETW(req.wValue, FTDI_SIO_RESET_SIO); in uftdi_open() 508 USETW(req.wIndex, portno); in uftdi_open() 509 USETW(req.wLength, 0); in uftdi_open() 522 USETW(req.wValue, 0); in uftdi_read() 524 USETW(req.wLength, 0); in uftdi_read() 608 USETW(req.wValue, ctl); in uftdi_baud_within_tolerance() 609 USETW(req.wIndex, portno); in uftdi_baud_within_tolerance() 610 USETW(req.wLength, 0); in uftdi_baud_within_tolerance() 749 USETW(req.wValue, FTDI_BITMODE_RESET << 8 | 0x00); in uftdi_param() 750 USETW(re in uftdi_param() [all...] |
| H A D | uslsa.c | 307 USETW(req.wValue, 0); in uslsa_get_status() 308 USETW(req.wIndex, sc->sc_ifnum); in uslsa_get_status() 309 USETW(req.wLength, SLSA_RL_GET_MDMSTS); in uslsa_get_status() 387 USETW(req.wValue, 0); in uslsa_param() 388 USETW(req.wIndex, sc->sc_ifnum); in uslsa_param() 389 USETW(req.wLength, 4); in uslsa_param() 516 USETW(req.wValue, value); in uslsa_request_set() 517 USETW(req.wIndex, sc->sc_ifnum); in uslsa_request_set() 518 USETW(req.wLength, 0); in uslsa_request_set() 538 USETW(req.wValue, 0); in uslsa_set_flow() [all …]
|
| H A D | uhmodem.c | 491 USETW(req.wValue, UF_DEVICE_REMOTE_WAKEUP); in e220_modechange_request() 492 USETW(req.wIndex, E220_MODE_CHANGE_REQUEST); in e220_modechange_request() 493 USETW(req.wLength, 0); in e220_modechange_request() 545 USETW(req.wValue, 0x0000); in uhmodem_regwrite() 546 USETW(req.wIndex, 0x0000); in uhmodem_regwrite() 547 USETW(req.wLength, len); in uhmodem_regwrite() 563 USETW(req.wValue, 0x0000); in uhmodem_regread() 564 USETW(req.wIndex, 0x0000); in uhmodem_regread() 565 USETW(req.wLength, len); in uhmodem_regread() 583 USETW(req.wValue, cmd); [all …]
|
| H A D | uvisor.c | 427 USETW(req.wValue, 0); in uvisor_init() 428 USETW(req.wIndex, 0); in uvisor_init() 429 USETW(req.wLength, UVISOR_CONNECTION_INFO_SIZE); in uvisor_init() 440 USETW(req.wValue, 0); in uvisor_init() 441 USETW(req.wIndex, 0); in uvisor_init() 442 USETW(req.wLength, UVISOR_GET_PALM_INFORMATION_LEN); in uvisor_init() 452 USETW(req.wValue, 0); in uvisor_init() 453 USETW(req.wIndex, 5); in uvisor_init() 454 USETW(req.wLength, sizeof(avail)); in uvisor_init() 488 USETW(req.wValue, 0); in uvisor_close() [all …]
|
| H A D | if_udav.c | 282 USETW(req.wValue, 0x0000); 283 USETW(req.wIndex, offset); 284 USETW(req.wLength, len); 313 USETW(req.wValue, 0x0000); 314 USETW(req.wIndex, offset); 315 USETW(req.wLength, len); 343 USETW(req.wValue, ch); 344 USETW(req.wIndex, offset); 345 USETW(req.wLength, 0x0000); 375 USETW(req.wValue, 0x0000); in udav_csr_read() [all …]
|
| H A D | uipaq.c | 272 USETW(req.wValue, sc->sc_lcr); in uipaq_dtr() 273 USETW(req.wIndex, 0x0); in uipaq_dtr() 274 USETW(req.wLength, 0); in uipaq_dtr() 303 USETW(req.wValue, sc->sc_lcr); in uipaq_rts() 304 USETW(req.wIndex, 0x0); in uipaq_rts() 305 USETW(req.wLength, 0); in uipaq_rts() 329 USETW(req.wValue, onoff ? UCDC_BREAK_ON : UCDC_BREAK_OFF); in uipaq_break() 330 USETW(req.wIndex, 0x0); in uipaq_break() 331 USETW(req.wLength, 0); in uipaq_break()
|
| H A D | umodem_common.c | 574 USETW(req.wValue, ls); in umodem_set_line_state() 575 USETW(req.wIndex, sc->sc_ctl_iface_no); in umodem_set_line_state() 576 USETW(req.wLength, 0); in umodem_set_line_state() 594 USETW(req.wValue, onoff ? UCDC_BREAK_ON : UCDC_BREAK_OFF); in umodem_break() 595 USETW(req.wIndex, sc->sc_ctl_iface_no); in umodem_break() 596 USETW(req.wLength, 0); in umodem_break() 641 USETW(req.wValue, 0); in umodem_set_line_coding() 642 USETW(req.wIndex, sc->sc_ctl_iface_no); in umodem_set_line_coding() 643 USETW(req.wLength, UCDC_LINE_STATE_LENGTH); in umodem_set_line_coding() 669 USETW(req.wValue, feature); in umodem_set_comm_feature() [all …]
|
| H A D | uvscom.c | 427 USETW(req.wValue, 0); in uvscom_readstat() 428 USETW(req.wIndex, 0); in uvscom_readstat() 429 USETW(req.wLength, 2); in uvscom_readstat() 454 USETW(req.wValue, 0); in uvscom_shutdown() 455 USETW(req.wIndex, 0); in uvscom_shutdown() 456 USETW(req.wLength, 0); in uvscom_shutdown() 495 USETW(req.wValue, line); in uvscom_set_line() 496 USETW(req.wIndex, 0); in uvscom_set_line() 497 USETW(req.wLength, 0); in uvscom_set_line() 520 USETW(req.wValue, lsp); in uvscom_set_line_coding() [all …]
|
| H A D | umodeswitch.c | 246 USETW(req.wValue, UF_DEVICE_REMOTE_WAKEUP); in u3g_huawei_reinit() 247 USETW(req.wIndex, UHF_PORT_SUSPEND); in u3g_huawei_reinit() 248 USETW(req.wLength, 0); in u3g_huawei_reinit() 321 USETW(req.wValue, UF_DEVICE_REMOTE_WAKEUP); in u3g_sierra_reinit() 322 USETW(req.wIndex, UHF_PORT_CONNECTION); in u3g_sierra_reinit() 323 USETW(req.wLength, 0); in u3g_sierra_reinit()
|
| H A D | umct.c | 370 USETW(req.wValue, 0); in umct_set_line_state() 371 USETW(req.wIndex, sc->sc_iface_number); in umct_set_line_state() 372 USETW(req.wLength, LENGTH_SET_MCR); in umct_set_line_state() 443 USETW(req.wValue, 0); in umct_set_lcr() 444 USETW(req.wIndex, sc->sc_iface_number); in umct_set_lcr() 445 USETW(req.wLength, LENGTH_SET_LCR); in umct_set_lcr() 479 USETW(req.wValue, 0); in umct_set_baudrate() 480 USETW(req.wIndex, sc->sc_iface_number); in umct_set_baudrate() 481 USETW(req.wLength, LENGTH_BAUD_RATE); in umct_set_baudrate()
|
| H A D | if_aue.c | 292 USETW(req.wValue, 0); in aue_csr_read_1() 293 USETW(req.wIndex, reg); in aue_csr_read_1() 294 USETW(req.wLength, 1); in aue_csr_read_1() 321 USETW(req.wValue, 0); in aue_csr_read_2() 322 USETW(req.wIndex, reg); in aue_csr_read_2() 323 USETW(req.wLength, 2); in aue_csr_read_2() 351 USETW(req.wValue, val); in aue_csr_write_1() 352 USETW(req.wIndex, reg); in aue_csr_write_1() 353 USETW(req.wLength, 1); in aue_csr_write_1() 378 USETW(val, aval); in aue_csr_write_2() [all …]
|
| H A D | umcs.c | 362 USETW(req.wValue, 0); in umcs7840_get_reg() 363 USETW(req.wIndex, reg); in umcs7840_get_reg() 364 USETW(req.wLength, UMCS7840_READ_LENGTH); in umcs7840_get_reg() 381 USETW(req.wValue, data); in umcs7840_set_reg() 382 USETW(req.wIndex, reg); in umcs7840_set_reg() 383 USETW(req.wLength, 0); in umcs7840_set_reg() 405 USETW(req.wValue, wVal); in umcs7840_get_UART_reg() 406 USETW(req.wIndex, reg); in umcs7840_get_UART_reg() 407 USETW(req.wLength, UMCS7840_READ_LENGTH); in umcs7840_get_UART_reg() 427 USETW(req.wValue, wVal); in umcs7840_set_UART_reg() [all …]
|
| H A D | auvitek.c | 342 USETW(req.wValue, 0); in auvitek_read_1() 343 USETW(req.wIndex, reg); in auvitek_read_1() 344 USETW(req.wLength, sizeof(data)); in auvitek_read_1() 367 USETW(req.wValue, data); in auvitek_write_1() 368 USETW(req.wIndex, reg); in auvitek_write_1() 369 USETW(req.wLength, 0); in auvitek_write_1()
|
| H A D | emdtv.c | 329 USETW(request.wValue, 0x0000); in emdtv_read_multi_1() 330 USETW(request.wIndex, index); in emdtv_read_multi_1() 331 USETW(request.wLength, count); in emdtv_read_multi_1() 362 USETW(request.wValue, 0x0000); in emdtv_write_multi_1() 363 USETW(request.wIndex, index); in emdtv_write_multi_1() 364 USETW(request.wLength, count); in emdtv_write_multi_1()
|
| H A D | uipad.c | 109 USETW(req.wValue, value); in uipad_cmd() 110 USETW(req.wIndex, index); in uipad_cmd() 111 USETW(req.wLength, 0); in uipad_cmd()
|
| H A D | ulpt.c | 301 USETW(req.wValue, cd->bConfigurationValue); in ulpt_attach() 303 USETW(req.wLength, DEVINFOSIZE - 1); in ulpt_attach() 393 USETW(req.wValue, 0); in ulpt_status() 394 USETW(req.wIndex, sc->sc_ifaceno); in ulpt_status() 395 USETW(req.wLength, 1); in ulpt_status() 411 USETW(req.wValue, 0); in ulpt_reset() 412 USETW(req.wIndex, sc->sc_ifaceno); in ulpt_reset() 413 USETW(req.wLength, 0); in ulpt_reset()
|
| H A D | if_ural.c | 1519 USETW(req.wValue, 4); in ural_set_testmode() 1520 USETW(req.wIndex, 1); in ural_set_testmode() 1521 USETW(req.wLength, 0); in ural_set_testmode() 1538 USETW(req.wValue, 0); in ural_eeprom_read() 1539 USETW(req.wIndex, addr); in ural_eeprom_read() 1540 USETW(req.wLength, len); in ural_eeprom_read() 1558 USETW(req.wValue, 0); in ural_read() 1559 USETW(req.wIndex, reg); in ural_read() 1560 USETW(req.wLength, sizeof(uint16_t)); in ural_read() 1580 USETW(req.wValue, 0); in ural_read_multi() [all …]
|
| H A D | uberry.c | 103 USETW(req.wValue, value); in uberry_cmd() 104 USETW(req.wIndex, index); in uberry_cmd() 105 USETW(req.wLength, length); in uberry_cmd()
|
| H A D | if_bwfm_usb.c | 658 USETW(req.wValue, 0); in bwfm_usb_dl_cmd() 659 USETW(req.wIndex, sc->sc_ifaceno); in bwfm_usb_dl_cmd() 660 USETW(req.wLength, len); in bwfm_usb_dl_cmd() 842 USETW(req.wValue, 0); in bwfm_usb_txctl() 843 USETW(req.wIndex, sc->sc_ifaceno); in bwfm_usb_txctl() 844 USETW(req.wLength, len); in bwfm_usb_txctl() 872 USETW(req.wValue, 0); in bwfm_usb_rxctl() 873 USETW(req.wIndex, sc->sc_ifaceno); in bwfm_usb_rxctl() 874 USETW(req.wLength, *len); in bwfm_usb_rxctl()
|