Lines Matching refs:wbuf
71 memcpy(&state->buf[REQ_HDR_LEN], req->wbuf, req->wlen); in af9035_ctrl_msg()
132 u8 wbuf[MAX_XFER_SIZE]; in af9035_wr_regs() local
134 struct usb_req req = { CMD_MEM_WR, mbox, 6 + len, wbuf, 0, NULL }; in af9035_wr_regs()
136 if (6 + len > sizeof(wbuf)) { in af9035_wr_regs()
141 wbuf[0] = len; in af9035_wr_regs()
142 wbuf[1] = 2; in af9035_wr_regs()
143 wbuf[2] = 0; in af9035_wr_regs()
144 wbuf[3] = 0; in af9035_wr_regs()
145 wbuf[4] = (reg >> 8) & 0xff; in af9035_wr_regs()
146 wbuf[5] = (reg >> 0) & 0xff; in af9035_wr_regs()
147 memcpy(&wbuf[6], val, len); in af9035_wr_regs()
155 u8 wbuf[] = { len, 2, 0, 0, (reg >> 8) & 0xff, reg & 0xff }; in af9035_rd_regs() local
157 struct usb_req req = { CMD_MEM_RD, mbox, sizeof(wbuf), wbuf, len, val }; in af9035_rd_regs()
502 u8 wbuf[1] = { 1 }; in af9035_identify_state() local
504 struct usb_req req = { CMD_FW_QUERYINFO, 0, sizeof(wbuf), wbuf, in af9035_identify_state()
611 u8 wbuf[1]; in af9035_download_firmware_old() local
613 struct usb_req req_fw_dl = { CMD_FW_DL, 0, 0, wbuf, 0, NULL }; in af9035_download_firmware_old()
661 req_fw_dl.wbuf = (u8 *) &fw->data[fw->size - i + in af9035_download_firmware_old()
718 req_fw_dl.wbuf = (u8 *) &fw->data[i_prev]; in af9035_download_firmware_new()
742 u8 wbuf[1]; in af9035_download_firmware() local
746 struct usb_req req_fw_ver = { CMD_FW_QUERYINFO, 0, 1, wbuf, 4, rbuf }; in af9035_download_firmware()
814 wbuf[0] = 1; in af9035_download_firmware()