Searched defs:wlen (Results 1 - 25 of 37) sorted by relevance

12

/drivers/media/tuners/
H A Dsi2157_priv.h37 unsigned wlen; member in struct:si2157_cmd
/drivers/media/usb/dvb-usb-v2/
H A Ddvb_usb_urb.c25 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen)
29 if (!wbuf || !wlen || !d->props->generic_bulk_ctrl_endpoint ||
35 dev_dbg(&d->udev->dev, "%s: >>> %*ph\n", __func__, wlen, wbuf);
38 d->props->generic_bulk_ctrl_endpoint), wbuf, wlen,
44 ret = actual_length != wlen ? -EIO : 0;
69 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen)
74 ret = dvb_usb_v2_generic_io(d, wbuf, wlen, rbuf, rlen);
94 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen)
96 return dvb_usb_v2_generic_io(d, wbuf, wlen, rbuf, rlen);
24 dvb_usb_v2_generic_io(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) argument
68 dvb_usbv2_generic_rw(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) argument
93 dvb_usbv2_generic_rw_locked(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) argument
H A Dau6610.c28 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen)
42 switch (wlen) {
51 dev_err(&d->udev->dev, "%s: wlen=%d, aborting\n",
52 KBUILD_MODNAME, wlen);
80 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen)
91 return au6610_usb_msg(d, request, addr, wbuf, wlen, rbuf, rlen);
27 au6610_usb_msg(struct dvb_usb_device *d, u8 operation, u8 addr, u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) argument
79 au6610_i2c_msg(struct dvb_usb_device *d, u8 addr, u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) argument
H A Dgl861.c17 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen)
32 switch (wlen) {
41 dev_err(&d->udev->dev, "%s: wlen=%d, aborting\n",
42 KBUILD_MODNAME, wlen);
16 gl861_i2c_msg(struct dvb_usb_device *d, u8 addr, u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) argument
H A Daf9035.h51 u8 wlen; member in struct:usb_req
H A Ddvbsky.c45 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen)
51 if (wlen != 0)
52 memcpy(state->obuf, wbuf, wlen);
54 ret = dvb_usbv2_generic_rw_locked(d, state->obuf, wlen,
44 dvbsky_usb_generic_rw(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) argument
H A Daf9015.c36 int ret, wlen, rlen; local
89 wlen = REQ_HDR_LEN;
92 wlen += req->data_len;
103 state->buf, wlen, state->buf, rlen);
H A Dmxl111sf.c59 u8 cmd, u8 *wbuf, int wlen, u8 *rbuf, int rlen)
65 if (1 + wlen > sizeof(sndbuf)) {
66 pr_warn("%s: len=%d is too big!\n", __func__, wlen);
70 pr_debug("%s(wlen = %d, rlen = %d)\n", __func__, wlen, rlen);
72 memset(sndbuf, 0, 1+wlen);
75 memcpy(&sndbuf[1], wbuf, wlen);
77 ret = (wo) ? dvb_usbv2_generic_write(d, sndbuf, 1+wlen) :
78 dvb_usbv2_generic_rw(d, sndbuf, 1+wlen, rbuf, rlen);
58 mxl111sf_ctrl_msg(struct dvb_usb_device *d, u8 cmd, u8 *wbuf, int wlen, u8 *rbuf, int rlen) argument
/drivers/media/dvb-frontends/
H A Dsi2168_priv.h47 unsigned wlen; member in struct:si2168_cmd
/drivers/media/usb/dvb-usb/
H A Ddvb-usb-urb.c11 int dvb_usb_generic_rw(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, u8 *rbuf, argument
16 if (!d || wbuf == NULL || wlen == 0)
28 debug_dump(wbuf,wlen,deb_xfer);
31 d->props.generic_bulk_ctrl_endpoint), wbuf,wlen,&actlen,
35 err("bulk message failed: %d (%d/%d)",ret,wlen,actlen);
37 ret = actlen != wlen ? -1 : 0;
H A Ddtv5100.c35 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen)
42 switch (wlen) {
58 warn("wlen = %x, aborting.", wlen);
34 dtv5100_i2c_msg(struct dvb_usb_device *d, u8 addr, u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) argument
H A Ddibusb-common.c109 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen)
111 u8 sndbuf[MAX_XFER_SIZE]; /* lead(1) devaddr,direction(1) addr(2) data(wlen) (len(2) (when reading)) */
114 len = 2 + wlen + (wo ? 0 : 2);
116 if (4 + wlen > sizeof(sndbuf)) {
117 warn("i2c wr: len=%d is too big!\n", wlen);
124 memcpy(&sndbuf[2],wbuf,wlen);
127 sndbuf[wlen+2] = (rlen >> 8) & 0xff;
128 sndbuf[wlen+3] = rlen & 0xff;
108 dibusb_i2c_msg(struct dvb_usb_device *d, u8 addr, u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) argument
H A Ddigitv.c29 u8 cmd, u8 vv, u8 *wbuf, int wlen, u8 *rbuf, int rlen)
37 sndbuf[2] = wo ? wlen : rlen;
40 memcpy(&sndbuf[3],wbuf,wlen);
28 digitv_ctrl_msg(struct dvb_usb_device *d, u8 cmd, u8 vv, u8 *wbuf, int wlen, u8 *rbuf, int rlen) argument
H A Dfriio.c34 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen)
42 wbuf[1], wbuf[0], wlen - 1);
44 if (wo && wlen >= 2) {
50 &wbuf[1], wlen - 1, 2000);
60 * register address can be 16bit (wbuf[2]<<8 | wbuf[0]) if wlen==3
63 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen)
74 return gl861_i2c_ctrlmsg_data(d, addr, wbuf, wlen, rbuf, rlen);
86 switch (wlen) {
100 deb_xfer("wlen = %x, aborting.", wlen);
33 gl861_i2c_ctrlmsg_data(struct dvb_usb_device *d, u8 addr, u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) argument
62 gl861_i2c_msg(struct dvb_usb_device *d, u8 addr, u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) argument
[all...]
H A Daf9005.c462 int wlen, u8 * rbuf, int rlen)
470 if (wlen < 0) {
471 err("send command, wlen less than 0 bytes. Makes no sense.");
474 if (wlen > 54) {
475 err("send command, wlen more than 54 bytes. Not supported.");
482 packet_len = wlen + 5;
487 buf[3] = wlen + 3;
490 buf[6] = wlen;
491 for (i = 0; i < wlen; i++)
493 ret = dvb_usb_generic_rw(d, buf, wlen
461 af9005_send_command(struct dvb_usb_device *d, u8 command, u8 * wbuf, int wlen, u8 * rbuf, int rlen) argument
[all...]
H A Dttusb2.c75 u8 *wbuf, int wlen, u8 *rbuf, int rlen)
81 s = kzalloc(wlen+4, GFP_KERNEL);
94 s[3] = wlen;
95 memcpy(&s[4],wbuf,wlen);
97 ret = dvb_usb_generic_rw(d, s, wlen+4, r, 64, 0);
74 ttusb2_msg(struct dvb_usb_device *d, u8 cmd, u8 *wbuf, int wlen, u8 *rbuf, int rlen) argument
/drivers/media/usb/hdpvr/
H A Dhdpvr-i2c.c67 unsigned char addr, char *wdata, int wlen,
72 if ((len > sizeof(dev->i2c_buf)) || (wlen > sizeof(dev->i2c_buf)))
75 if (wlen) {
76 memcpy(&dev->i2c_buf, wdata, wlen);
80 wlen, 1000);
66 hdpvr_i2c_read(struct hdpvr_device *dev, int bus, unsigned char addr, char *wdata, int wlen, char *data, int len) argument
/drivers/media/usb/pvrusb2/
H A Dpvrusb2-debugifc.c71 unsigned int wlen; local
75 wlen = 0;
83 wlen = scnt;
88 *wlenPtr = wlen;
199 unsigned int wlen; local
202 scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);
207 pvr2_trace(PVR2_TRACE_DEBUGIFC,"debugifc cmd: \"%.*s\"",wlen,wptr);
208 if (debugifc_match_keyword(wptr,wlen,"reset")) {
209 scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);
213 if (debugifc_match_keyword(wptr,wlen,"cp
[all...]
H A Dpvrusb2-i2c-core.c119 "Killing an I2C read to %u that has wlen too large"
184 u16 wlen,
189 if (!wdata) wlen = 0;
190 if (rlen || !wlen) {
191 return pvr2_i2c_read(hdw,i2c_addr,wdata,wlen,rdata,rlen);
193 return pvr2_i2c_write(hdw,i2c_addr,wdata,wlen);
205 u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen)
210 if (!(rlen || wlen)) {
216 if ((wlen != 0) || (rlen == 0)) return -EIO;
275 u8 i2c_addr,u8 *wdata,u16 wlen,u
181 pvr2_i2c_basic_op(struct pvr2_hdw *hdw, u8 i2c_addr, u8 *wdata, u16 wlen, u8 *rdata, u16 rlen) argument
204 i2c_24xxx_ir(struct pvr2_hdw *hdw, u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) argument
274 i2c_hack_wm8775(struct pvr2_hdw *hdw, u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) argument
287 i2c_black_hole(struct pvr2_hdw *hdw, u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) argument
300 i2c_hack_cx25840(struct pvr2_hdw *hdw, u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) argument
[all...]
/drivers/infiniband/hw/qib/
H A Dqib_qsfp.c101 int wlen = len - cnt; local
103 if ((in_page + wlen) > QSFP_PAGESIZE)
104 wlen = QSFP_PAGESIZE - in_page;
105 ret = qib_twsi_blk_rd(dd, QSFP_DEV, addr, buff + cnt, wlen);
114 addr += wlen;
115 cnt += wlen;
208 int wlen = len - cnt; local
210 if ((in_page + wlen) > QSFP_PAGESIZE)
211 wlen = QSFP_PAGESIZE - in_page;
212 ret = qib_twsi_blk_wr(dd, QSFP_DEV, addr, buff + cnt, wlen);
[all...]
/drivers/net/usb/
H A Dcx82310_eth.c63 u8 *wdata, int wlen, u8 *rdata, int rlen)
75 memcpy(buf + 4, wdata, min_t(int, wlen, CMD_PACKET_SIZE - 4));
62 cx82310_cmd(struct usbnet *dev, enum cx82310_cmd cmd, bool reply, u8 *wdata, int wlen, u8 *rdata, int rlen) argument
/drivers/net/wireless/ath/carl9170/
H A Drx.c876 unsigned int tlen, wlen = 0, clen = 0; local
886 wlen = ALIGN(clen, 4);
943 if (wlen > tlen - 4) {
967 tbuf += wlen + 4;
968 tlen -= wlen + 4;
984 "data:%d, rx:%d, pending:%d ]\n", clen, wlen, tlen,
/drivers/spi/
H A Dspi-ti-qspi.c204 int wlen, count, ret; local
211 wlen = t->bits_per_word >> 3; /* in bytes */
214 switch (wlen) {
239 txbuf += wlen;
240 count -= wlen;
248 int wlen, count, ret; local
266 wlen = t->bits_per_word >> 3; /* in bytes */
277 switch (wlen) {
288 rxbuf += wlen;
289 count -= wlen;
[all...]
/drivers/video/fbdev/omap/
H A Dlcd_mipid.c69 int wlen, u8 *rbuf, int rlen)
89 if (wlen) {
92 x->len = wlen;
353 int wlen; member in struct:__anon7172
367 mipid_write(md, rd->cmd, (u8 *)rd->wbuf, rd->wlen);
375 mipid_write(md, rd->cmd, (u8 *)rd->wbuf, rd->wlen);
68 mipid_transfer(struct mipid_device *md, int cmd, const u8 *wbuf, int wlen, u8 *rbuf, int rlen) argument
/drivers/acpi/
H A Dec.c117 u8 wlen; member in struct:transaction
216 if (t->wlen > t->wi) {
233 } else if (t->wlen == t->wi &&
352 if (!ec || (!t) || (t->wlen && !t->wdata) || (t->rlen && !t->rdata))
400 .wlen = 0, .rlen = 1};
409 .wlen = 0, .rlen = 0};
421 .wlen = 1, .rlen = 1};
433 .wlen = 2, .rlen = 0};
475 .wlen = wdata_len, .rlen = rdata_len};
560 .wlen
[all...]

Completed in 6665 milliseconds

12