/drivers/media/usb/pvrusb2/ |
D | pvrusb2-debugifc.c | 71 unsigned int wlen; in debugifc_isolate_word() local 75 wlen = 0; in debugifc_isolate_word() 83 wlen = scnt; in debugifc_isolate_word() 88 *wlenPtr = wlen; in debugifc_isolate_word() 199 unsigned int wlen; in pvr2_debugifc_do1cmd() local 202 scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); in pvr2_debugifc_do1cmd() 207 pvr2_trace(PVR2_TRACE_DEBUGIFC,"debugifc cmd: \"%.*s\"",wlen,wptr); in pvr2_debugifc_do1cmd() 208 if (debugifc_match_keyword(wptr,wlen,"reset")) { in pvr2_debugifc_do1cmd() 209 scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); in pvr2_debugifc_do1cmd() 213 if (debugifc_match_keyword(wptr,wlen,"cpu")) { in pvr2_debugifc_do1cmd() [all …]
|
D | pvrusb2-i2c-core.c | 184 u16 wlen, in pvr2_i2c_basic_op() argument 189 if (!wdata) wlen = 0; in pvr2_i2c_basic_op() 190 if (rlen || !wlen) { in pvr2_i2c_basic_op() 191 return pvr2_i2c_read(hdw,i2c_addr,wdata,wlen,rdata,rlen); in pvr2_i2c_basic_op() 193 return pvr2_i2c_write(hdw,i2c_addr,wdata,wlen); in pvr2_i2c_basic_op() 205 u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) in i2c_24xxx_ir() argument 210 if (!(rlen || wlen)) { in i2c_24xxx_ir() 216 if ((wlen != 0) || (rlen == 0)) return -EIO; in i2c_24xxx_ir() 275 u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) in i2c_hack_wm8775() argument 277 if (!(rlen || wlen)) { in i2c_hack_wm8775() [all …]
|
/drivers/media/usb/dvb-usb-v2/ |
D | dvb_usb_urb.c | 25 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dvb_usb_v2_generic_io() argument 29 if (!d || !wbuf || !wlen || !d->props->generic_bulk_ctrl_endpoint || in dvb_usb_v2_generic_io() 35 dev_dbg(&d->udev->dev, "%s: >>> %*ph\n", __func__, wlen, wbuf); in dvb_usb_v2_generic_io() 38 d->props->generic_bulk_ctrl_endpoint), wbuf, wlen, in dvb_usb_v2_generic_io() 44 ret = actual_length != wlen ? -EIO : 0; in dvb_usb_v2_generic_io() 69 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dvb_usbv2_generic_rw() argument 74 ret = dvb_usb_v2_generic_io(d, wbuf, wlen, rbuf, rlen); in dvb_usbv2_generic_rw() 94 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dvb_usbv2_generic_rw_locked() argument 96 return dvb_usb_v2_generic_io(d, wbuf, wlen, rbuf, rlen); in dvb_usbv2_generic_rw_locked()
|
D | au6610.c | 28 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in au6610_usb_msg() argument 42 switch (wlen) { in au6610_usb_msg() 52 KBUILD_MODNAME, wlen); in au6610_usb_msg() 80 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in au6610_i2c_msg() argument 91 return au6610_usb_msg(d, request, addr, wbuf, wlen, rbuf, rlen); in au6610_i2c_msg()
|
D | lmedm04.c | 172 u8 *wbuf, int wlen, u8 *rbuf, int rlen) in lme2510_usb_talk() argument 193 memcpy(buff, wbuf, (wlen < 64) ? wlen : 64); in lme2510_usb_talk() 195 ret |= lme2510_bulk_write(d->udev, buff, wlen , 0x01); in lme2510_usb_talk() 447 u8 *wbuf, int wlen, u8 *rbuf, int rlen) in lme2510_msg() argument 454 ret = lme2510_usb_talk(d, wbuf, wlen, rbuf, rlen); in lme2510_msg() 523 lme2510_usb_talk(d, wbuf, wlen, rbuf, rlen); in lme2510_msg() 550 lme2510_usb_talk(d, wbuf, wlen, rbuf, rlen); in lme2510_msg() 578 lme2510_usb_talk(d, wbuf, wlen, rbuf, rlen); in lme2510_msg() 597 lme2510_usb_talk(d, wbuf, wlen, rbuf, rlen); in lme2510_msg() 732 u16 j, wlen, len_in, start, end; in lme2510_download_firmware() local [all …]
|
D | gl861.c | 17 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in gl861_i2c_msg() argument 32 switch (wlen) { in gl861_i2c_msg() 42 KBUILD_MODNAME, wlen); in gl861_i2c_msg()
|
D | af9035.c | 49 int ret, wlen, rlen; in af9035_ctrl_msg() local 55 if (req->wlen > (BUF_LEN - REQ_HDR_LEN - CHECKSUM_LEN) || in af9035_ctrl_msg() 58 __func__, req->wlen, req->rlen); in af9035_ctrl_msg() 63 state->buf[0] = REQ_HDR_LEN + req->wlen + CHECKSUM_LEN - 1; in af9035_ctrl_msg() 67 memcpy(&state->buf[REQ_HDR_LEN], req->wbuf, req->wlen); in af9035_ctrl_msg() 69 wlen = REQ_HDR_LEN + req->wlen + CHECKSUM_LEN; in af9035_ctrl_msg() 82 state->buf, wlen, state->buf, rlen); in af9035_ctrl_msg() 406 req_fw_dl.wlen = len; in af9035_download_firmware_old() 463 req_fw_dl.wlen = i - i_prev; in af9035_download_firmware_new()
|
D | mxl111sf.c | 62 u8 cmd, u8 *wbuf, int wlen, u8 *rbuf, int rlen) in mxl111sf_ctrl_msg() argument 66 u8 sndbuf[1+wlen]; in mxl111sf_ctrl_msg() 68 deb_adv("%s(wlen = %d, rlen = %d)\n", __func__, wlen, rlen); in mxl111sf_ctrl_msg() 70 memset(sndbuf, 0, 1+wlen); in mxl111sf_ctrl_msg() 73 memcpy(&sndbuf[1], wbuf, wlen); in mxl111sf_ctrl_msg() 75 ret = (wo) ? dvb_usbv2_generic_write(d, sndbuf, 1+wlen) : in mxl111sf_ctrl_msg() 76 dvb_usbv2_generic_rw(d, sndbuf, 1+wlen, rbuf, rlen); in mxl111sf_ctrl_msg()
|
D | af9035.h | 49 u8 wlen; member
|
/drivers/media/usb/dvb-usb/ |
D | dvb-usb-urb.c | 11 int dvb_usb_generic_rw(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, u8 *rbuf, in dvb_usb_generic_rw() argument 16 if (!d || wbuf == NULL || wlen == 0) in dvb_usb_generic_rw() 28 debug_dump(wbuf,wlen,deb_xfer); in dvb_usb_generic_rw() 31 d->props.generic_bulk_ctrl_endpoint), wbuf,wlen,&actlen, in dvb_usb_generic_rw() 35 err("bulk message failed: %d (%d/%d)",ret,wlen,actlen); in dvb_usb_generic_rw() 37 ret = actlen != wlen ? -1 : 0; in dvb_usb_generic_rw()
|
D | friio.c | 34 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in gl861_i2c_ctrlmsg_data() argument 42 wbuf[1], wbuf[0], wlen - 1); in gl861_i2c_ctrlmsg_data() 44 if (wo && wlen >= 2) { in gl861_i2c_ctrlmsg_data() 50 &wbuf[1], wlen - 1, 2000); in gl861_i2c_ctrlmsg_data() 63 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in gl861_i2c_msg() argument 74 return gl861_i2c_ctrlmsg_data(d, addr, wbuf, wlen, rbuf, rlen); in gl861_i2c_msg() 86 switch (wlen) { in gl861_i2c_msg() 100 deb_xfer("wlen = %x, aborting.", wlen); in gl861_i2c_msg()
|
D | dibusb-common.c | 106 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dibusb_i2c_msg() argument 108 u8 sndbuf[wlen+4]; /* lead(1) devaddr,direction(1) addr(2) data(wlen) (len(2) (when reading)) */ in dibusb_i2c_msg() 111 len = 2 + wlen + (wo ? 0 : 2); in dibusb_i2c_msg() 116 memcpy(&sndbuf[2],wbuf,wlen); in dibusb_i2c_msg() 119 sndbuf[wlen+2] = (rlen >> 8) & 0xff; in dibusb_i2c_msg() 120 sndbuf[wlen+3] = rlen & 0xff; in dibusb_i2c_msg()
|
D | dtv5100.c | 35 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dtv5100_i2c_msg() argument 42 switch (wlen) { in dtv5100_i2c_msg() 58 warn("wlen = %x, aborting.", wlen); in dtv5100_i2c_msg()
|
D | af9005.c | 462 int wlen, u8 * rbuf, int rlen) in af9005_send_command() argument 470 if (wlen < 0) { in af9005_send_command() 474 if (wlen > 54) { in af9005_send_command() 482 packet_len = wlen + 5; in af9005_send_command() 487 buf[3] = wlen + 3; in af9005_send_command() 490 buf[6] = wlen; in af9005_send_command() 491 for (i = 0; i < wlen; i++) in af9005_send_command() 493 ret = dvb_usb_generic_rw(d, buf, wlen + 7, ibuf, rlen + 7, 0); in af9005_send_command()
|
D | digitv.c | 29 u8 cmd, u8 vv, u8 *wbuf, int wlen, u8 *rbuf, int rlen) in digitv_ctrl_msg() argument 37 sndbuf[2] = wo ? wlen : rlen; in digitv_ctrl_msg() 40 memcpy(&sndbuf[3],wbuf,wlen); in digitv_ctrl_msg()
|
D | ttusb2.c | 75 u8 *wbuf, int wlen, u8 *rbuf, int rlen) in ttusb2_msg() argument 81 s = kzalloc(wlen+4, GFP_KERNEL); in ttusb2_msg() 94 s[3] = wlen; in ttusb2_msg() 95 memcpy(&s[4],wbuf,wlen); in ttusb2_msg() 97 ret = dvb_usb_generic_rw(d, s, wlen+4, r, 64, 0); in ttusb2_msg()
|
/drivers/infiniband/hw/qib/ |
D | qib_qsfp.c | 101 int wlen = len - cnt; in qsfp_read() local 103 if ((in_page + wlen) > QSFP_PAGESIZE) in qsfp_read() 104 wlen = QSFP_PAGESIZE - in_page; in qsfp_read() 105 ret = qib_twsi_blk_rd(dd, QSFP_DEV, addr, buff + cnt, wlen); in qsfp_read() 114 addr += wlen; in qsfp_read() 115 cnt += wlen; in qsfp_read() 208 int wlen = len - cnt; in qib_qsfp_write() local 210 if ((in_page + wlen) > QSFP_PAGESIZE) in qib_qsfp_write() 211 wlen = QSFP_PAGESIZE - in_page; in qib_qsfp_write() 212 ret = qib_twsi_blk_wr(dd, QSFP_DEV, addr, buff + cnt, wlen); in qib_qsfp_write() [all …]
|
/drivers/media/usb/hdpvr/ |
D | hdpvr-i2c.c | 67 unsigned char addr, char *wdata, int wlen, in hdpvr_i2c_read() argument 72 if ((len > sizeof(dev->i2c_buf)) || (wlen > sizeof(dev->i2c_buf))) in hdpvr_i2c_read() 75 if (wlen) { in hdpvr_i2c_read() 76 memcpy(&dev->i2c_buf, wdata, wlen); in hdpvr_i2c_read() 80 wlen, 1000); in hdpvr_i2c_read()
|
/drivers/acpi/ |
D | ec.c | 115 u8 wlen; member 183 if (t->wlen > t->wi) { in advance_transaction() 196 } else if (t->wlen == t->wi && in advance_transaction() 295 if (!ec || (!t) || (t->wlen && !t->wdata) || (t->rlen && !t->rdata)) in acpi_ec_transaction() 353 .wlen = 0, .rlen = 1}; in acpi_ec_burst_enable() 362 .wlen = 0, .rlen = 0}; in acpi_ec_burst_disable() 374 .wlen = 1, .rlen = 1}; in acpi_ec_read() 386 .wlen = 2, .rlen = 0}; in acpi_ec_write() 451 .wlen = wdata_len, .rlen = rdata_len}; in ec_transaction() 512 .wlen = 0, .rlen = 1}; in acpi_ec_query_unlocked()
|
/drivers/video/omap/ |
D | lcd_mipid.c | 69 int wlen, u8 *rbuf, int rlen) in mipid_transfer() argument 89 if (wlen) { in mipid_transfer() 92 x->len = wlen; in mipid_transfer() 353 int wlen; in ls041y3_esd_check_mode2() member 367 mipid_write(md, rd->cmd, (u8 *)rd->wbuf, rd->wlen); in ls041y3_esd_check_mode2() 375 mipid_write(md, rd->cmd, (u8 *)rd->wbuf, rd->wlen); in ls041y3_esd_check_mode2()
|
/drivers/net/wireless/ath/carl9170/ |
D | rx.c | 880 unsigned int tlen, wlen = 0, clen = 0; in carl9170_rx_stream() local 890 wlen = ALIGN(clen, 4); in carl9170_rx_stream() 947 if (wlen > tlen - 4) { in carl9170_rx_stream() 971 tbuf += wlen + 4; in carl9170_rx_stream() 972 tlen -= wlen + 4; in carl9170_rx_stream() 988 "data:%d, rx:%d, pending:%d ]\n", clen, wlen, tlen, in carl9170_rx_stream()
|
/drivers/media/dvb-frontends/ |
D | tda10048.c | 485 u8 wlen = config->fwbulkwritelen; in tda10048_firmware_upload() local 487 if ((wlen != TDA10048_BULKWRITE_200) && (wlen != TDA10048_BULKWRITE_50)) in tda10048_firmware_upload() 488 wlen = TDA10048_BULKWRITE_200; in tda10048_firmware_upload() 536 if ((fw->size - pos) > wlen) in tda10048_firmware_upload() 537 cnt = wlen; in tda10048_firmware_upload()
|
/drivers/video/omap2/displays/ |
D | panel-acx565akm.c | 92 const u8 *wbuf, int wlen, u8 *rbuf, int rlen) in acx565akm_transfer() argument 110 if (rlen > 1 && wlen == 0) { in acx565akm_transfer() 121 if (wlen) { in acx565akm_transfer() 124 x->len = wlen; in acx565akm_transfer()
|
D | panel-n8x0.c | 165 int wlen, u8 *rbuf, int rlen) in mipid_transfer() argument 183 if (wlen) { in mipid_transfer() 186 x->len = wlen; in mipid_transfer()
|
/drivers/net/usb/ |
D | cx82310_eth.c | 65 u8 *wdata, int wlen, u8 *rdata, int rlen) in cx82310_cmd() argument 77 memcpy(buf + 4, wdata, min_t(int, wlen, CMD_PACKET_SIZE - 4)); in cx82310_cmd()
|