Home
last modified time | relevance | path

Searched refs:wlen (Results 1 – 25 of 68) sorted by relevance

123

/linux/drivers/media/usb/pvrusb2/
H A Dpvrusb2-debugifc.c52 unsigned int wlen; in debugifc_isolate_word() local
56 wlen = 0; in debugifc_isolate_word()
64 wlen = scnt; in debugifc_isolate_word()
69 *wlenPtr = wlen; in debugifc_isolate_word()
178 unsigned int wlen; in pvr2_debugifc_do1cmd() local
181 scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); in pvr2_debugifc_do1cmd()
186 pvr2_trace(PVR2_TRACE_DEBUGIFC,"debugifc cmd: \"%.*s\"",wlen,wptr); in pvr2_debugifc_do1cmd()
187 if (debugifc_match_keyword(wptr,wlen,"reset")) { in pvr2_debugifc_do1cmd()
188 scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); in pvr2_debugifc_do1cmd()
192 if (debugifc_match_keyword(wptr,wlen,"cpu")) { in pvr2_debugifc_do1cmd()
[all …]
H A Dpvrusb2-i2c-core.c165 u16 wlen, in pvr2_i2c_basic_op() argument
170 if (!wdata) wlen = 0; in pvr2_i2c_basic_op()
171 if (rlen || !wlen) { in pvr2_i2c_basic_op()
172 return pvr2_i2c_read(hdw,i2c_addr,wdata,wlen,rdata,rlen); in pvr2_i2c_basic_op()
174 return pvr2_i2c_write(hdw,i2c_addr,wdata,wlen); in pvr2_i2c_basic_op()
186 u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) in i2c_24xxx_ir() argument
191 if (!(rlen || wlen)) { in i2c_24xxx_ir()
197 if ((wlen != 0) || (rlen == 0)) return -EIO; in i2c_24xxx_ir()
256 u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) in i2c_hack_wm8775() argument
258 if (!(rlen || wlen)) { in i2c_hack_wm8775()
[all …]
/linux/drivers/media/usb/dvb-usb-v2/
H A Ddvb_usb_urb.c12 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dvb_usb_v2_generic_io() argument
16 if (!wbuf || !wlen || !d->props->generic_bulk_ctrl_endpoint || in dvb_usb_v2_generic_io()
22 dev_dbg(&d->udev->dev, "%s: >>> %*ph\n", __func__, wlen, wbuf); in dvb_usb_v2_generic_io()
25 d->props->generic_bulk_ctrl_endpoint), wbuf, wlen, in dvb_usb_v2_generic_io()
32 if (actual_length != wlen) { in dvb_usb_v2_generic_io()
34 KBUILD_MODNAME, wlen, actual_length); in dvb_usb_v2_generic_io()
61 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dvb_usbv2_generic_rw() argument
66 ret = dvb_usb_v2_generic_io(d, wbuf, wlen, rbuf, rlen); in dvb_usbv2_generic_rw()
86 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dvb_usbv2_generic_rw_locked() argument
88 return dvb_usb_v2_generic_io(d, wbuf, wlen, rbuf, rlen); in dvb_usbv2_generic_rw_locked()
H A Dau6610.c15 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in au6610_usb_msg() argument
29 switch (wlen) { in au6610_usb_msg()
39 KBUILD_MODNAME, wlen); in au6610_usb_msg()
67 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in au6610_i2c_msg() argument
78 return au6610_usb_msg(d, request, addr, wbuf, wlen, rbuf, rlen); in au6610_i2c_msg()
H A Dzd1301.c26 unsigned int wlen, u8 *rbuf, unsigned int rlen) in zd1301_ctrl_msg() argument
34 memcpy(&dev->buf, wbuf, wlen); in zd1301_ctrl_msg()
36 dev_dbg(&intf->dev, ">>> %*ph\n", wlen, dev->buf); in zd1301_ctrl_msg()
39 wlen, &actual_length, 1000); in zd1301_ctrl_msg()
H A Dlmedm04.c141 u8 *wbuf, int wlen, u8 *rbuf, int rlen) in lme2510_usb_talk() argument
146 if (max(wlen, rlen) > sizeof(st->usb_buffer)) in lme2510_usb_talk()
153 memcpy(st->usb_buffer, wbuf, wlen); in lme2510_usb_talk()
155 ret = dvb_usbv2_generic_rw_locked(d, st->usb_buffer, wlen, in lme2510_usb_talk()
476 u8 *wbuf, int wlen, u8 *rbuf, int rlen) in lme2510_msg() argument
482 return lme2510_usb_talk(d, wbuf, wlen, rbuf, rlen); in lme2510_msg()
600 u16 j, wlen, len_in, start, end; in lme2510_download_firmware() local
630 wlen = (u8) dlen + 4; in lme2510_download_firmware()
631 data[wlen-1] = check_sum(fw_data, dlen+1); in lme2510_download_firmware()
634 lme2510_usb_talk(d, data, wlen, data, len_in); in lme2510_download_firmware()
/linux/drivers/media/tuners/
H A Dsi2157.c25 if (cmd->wlen) { in si2157_cmd_execute()
27 ret = i2c_master_send(client, cmd->args, cmd->wlen); in si2157_cmd_execute()
30 } else if (ret != cmd->wlen) { in si2157_cmd_execute()
124 cmd.wlen = len; in si2157_load_firmware()
159 cmd.wlen = 1; in si2157_find_and_load_firmware()
229 cmd.wlen = 4; in si2157_init()
244 cmd.wlen = 9; in si2157_init()
248 cmd.wlen = 10; in si2157_init()
251 cmd.wlen = 15; in si2157_init()
261 cmd.wlen = 7; in si2157_init()
[all …]
/linux/drivers/md/
H A Dmd-autodetect.c234 int wlen; in raid_setup() local
236 wlen = (comma-str)-pos; in raid_setup()
237 else wlen = (len-1)-pos; in raid_setup()
239 if (!strncmp(str, "noautodetect", wlen)) in raid_setup()
241 if (!strncmp(str, "autodetect", wlen)) in raid_setup()
243 if (strncmp(str, "partitionable", wlen)==0) in raid_setup()
245 if (strncmp(str, "part", wlen)==0) in raid_setup()
247 pos += wlen+1; in raid_setup()
/linux/drivers/mtd/devices/
H A Dmchp48l640.c214 size_t wlen = 0; in mchp48l640_write() local
223 while (wlen < len) { in mchp48l640_write()
224 ws = min((len - wlen), page_sz); in mchp48l640_write()
225 ret = mchp48l640_write_page(mtd, woff, ws, retlen, &buf[wlen]); in mchp48l640_write()
228 wlen += ws; in mchp48l640_write()
272 size_t wlen = 0; in mchp48l640_read() local
281 while (wlen < len) { in mchp48l640_read()
282 ws = min((len - wlen), page_sz); in mchp48l640_read()
283 ret = mchp48l640_read_page(mtd, woff, ws, retlen, &buf[wlen]); in mchp48l640_read()
286 wlen += ws; in mchp48l640_read()
/linux/drivers/media/usb/dvb-usb/
H A Ddvb-usb-urb.c12 int dvb_usb_generic_rw(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, u8 *rbuf, in dvb_usb_generic_rw() argument
17 if (!d || wbuf == NULL || wlen == 0) in dvb_usb_generic_rw()
29 debug_dump(wbuf,wlen,deb_xfer); in dvb_usb_generic_rw()
32 d->props.generic_bulk_ctrl_endpoint), wbuf,wlen,&actlen, in dvb_usb_generic_rw()
36 err("bulk message failed: %d (%d/%d)",ret,wlen,actlen); in dvb_usb_generic_rw()
38 ret = actlen != wlen ? -1 : 0; in dvb_usb_generic_rw()
H A Ddibusb-common.c139 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dibusb_i2c_msg() argument
147 len = 2 + wlen + (wo ? 0 : 2); in dibusb_i2c_msg()
153 if (4 + wlen > MAX_XFER_SIZE) { in dibusb_i2c_msg()
154 warn("i2c wr: len=%d is too big!\n", wlen); in dibusb_i2c_msg()
162 memcpy(&sndbuf[2], wbuf, wlen); in dibusb_i2c_msg()
165 sndbuf[wlen + 2] = (rlen >> 8) & 0xff; in dibusb_i2c_msg()
166 sndbuf[wlen + 3] = rlen & 0xff; in dibusb_i2c_msg()
H A Ddigitv.c26 u8 cmd, u8 vv, u8 *wbuf, int wlen, u8 *rbuf, int rlen) in digitv_ctrl_msg() argument
33 if (wlen > 4 || rlen > 4) in digitv_ctrl_msg()
41 st->sndbuf[2] = wo ? wlen : rlen; in digitv_ctrl_msg()
44 memcpy(&st->sndbuf[3], wbuf, wlen); in digitv_ctrl_msg()
H A Ddtv5100.c26 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dtv5100_i2c_msg() argument
35 switch (wlen) { in dtv5100_i2c_msg()
53 warn("wlen = %x, aborting.", wlen); in dtv5100_i2c_msg()
/linux/drivers/infiniband/hw/qib/
H A Dqib_qsfp.c101 int wlen = len - cnt; in qsfp_read() local
104 if ((in_page + wlen) > QSFP_PAGESIZE) in qsfp_read()
105 wlen = QSFP_PAGESIZE - in_page; in qsfp_read()
106 ret = qib_twsi_blk_rd(dd, QSFP_DEV, addr, buff + cnt, wlen); in qsfp_read()
115 addr += wlen; in qsfp_read()
116 cnt += wlen; in qsfp_read()
209 int wlen = len - cnt; in qib_qsfp_write() local
212 if ((in_page + wlen) > QSFP_PAGESIZE) in qib_qsfp_write()
213 wlen = QSFP_PAGESIZE - in_page; in qib_qsfp_write()
214 ret = qib_twsi_blk_wr(dd, QSFP_DEV, addr, buff + cnt, wlen); in qib_qsfp_write()
[all …]
/linux/tools/virtio/virtio-trace/
H A Dtrace-agent-rw.c106 ssize_t rlen, wlen; in rw_thread_main() local
145 wlen = 0; in rw_thread_main()
149 rlen - wlen, in rw_thread_main()
167 wlen += ret; in rw_thread_main()
168 } while (wlen < rlen); in rw_thread_main()
/linux/drivers/media/usb/hdpvr/
H A Dhdpvr-i2c.c51 unsigned char addr, char *wdata, int wlen, in hdpvr_i2c_read() argument
56 if ((len > sizeof(dev->i2c_buf)) || (wlen > sizeof(dev->i2c_buf))) in hdpvr_i2c_read()
59 if (wlen) { in hdpvr_i2c_read()
60 memcpy(dev->i2c_buf, wdata, wlen); in hdpvr_i2c_read()
64 wlen, 1000); in hdpvr_i2c_read()
/linux/sound/soc/codecs/
H A Dtlv320aic26.c70 int fsref, divisor, wlen, pval, jval, dval, qval; in aic26_hw_params() local
94 case 8: wlen = AIC26_WLEN_16; break; in aic26_hw_params()
95 case 16: wlen = AIC26_WLEN_16; break; in aic26_hw_params()
96 case 24: wlen = AIC26_WLEN_24; break; in aic26_hw_params()
97 case 32: wlen = AIC26_WLEN_32; break; in aic26_hw_params()
128 reg = wlen | aic26->datfm | (divisor << 3) | divisor; in aic26_hw_params()
/linux/include/linux/dsa/
H A Docelot.h194 u64 llen, wlen; in ocelot_xfh_get_len() local
197 packing(extraction, &wlen, 78, 71, OCELOT_TAG_LEN, UNPACK, 0); in ocelot_xfh_get_len()
199 *len = 60 * wlen + llen - 80; in ocelot_xfh_get_len()
/linux/fs/ubifs/
H A Dtnc_commit.c433 int wlen, blen, err; in layout_in_empty_space() local
510 wlen = used + len; in layout_in_empty_space()
523 blen = ALIGN(wlen, c->min_io_size); in layout_in_empty_space()
831 int avail, wlen, err, lnum_pos = 0, blen, nxt_offs; in write_index() local
968 wlen = used + len; in write_index()
988 wlen = ALIGN(wlen, 8); in write_index()
989 blen = ALIGN(wlen, c->min_io_size); in write_index()
990 ubifs_pad(c, c->cbuf + wlen, blen - wlen); in write_index()
H A Dlpt_commit.c362 int lnum, offs, len, from, err, wlen, alen, done_ltab, done_lsave; in write_cnodes() local
402 wlen = offs - from; in write_cnodes()
403 if (wlen) { in write_cnodes()
404 alen = ALIGN(wlen, c->min_io_size); in write_cnodes()
405 memset(buf + offs, 0xff, alen - wlen); in write_cnodes()
462 wlen = offs - from; in write_cnodes()
463 alen = ALIGN(wlen, c->min_io_size); in write_cnodes()
464 memset(buf + offs, 0xff, alen - wlen); in write_cnodes()
488 wlen = offs - from; in write_cnodes()
489 alen = ALIGN(wlen, c->min_io_size); in write_cnodes()
[all …]
/linux/fs/pstore/
H A Dzone.c206 size_t wlen; in psz_zone_write() local
211 wlen = min_t(size_t, len, zone->buffer_size - off); in psz_zone_write()
212 if (buf && wlen) { in psz_zone_write()
213 memcpy(zone->buffer->data + off, buf, wlen); in psz_zone_write()
214 atomic_set(&zone->buffer->datalen, wlen + off); in psz_zone_write()
227 if (unlikely(buf && wlen)) in psz_zone_write()
231 wcnt = writeop((const char *)zone->buffer->data + off, wlen, in psz_zone_write()
233 if (wcnt != wlen) in psz_zone_write()
237 wlen = sizeof(struct psz_buffer); in psz_zone_write()
238 wcnt = writeop((const char *)zone->buffer, wlen, zone->off); in psz_zone_write()
[all …]
/linux/drivers/video/fbdev/omap/
H A Dlcd_mipid.c57 int wlen, u8 *rbuf, int rlen) in mipid_transfer() argument
77 if (wlen) { in mipid_transfer()
80 x->len = wlen; in mipid_transfer()
341 int wlen; in ls041y3_esd_check_mode2() member
355 mipid_write(md, rd->cmd, (u8 *)rd->wbuf, rd->wlen); in ls041y3_esd_check_mode2()
363 mipid_write(md, rd->cmd, (u8 *)rd->wbuf, rd->wlen); in ls041y3_esd_check_mode2()
/linux/drivers/media/dvb-frontends/
H A Dsi2168.c14 static void cmd_init(struct si2168_cmd *cmd, const u8 *buf, int wlen, int rlen) in cmd_init() argument
16 memcpy(cmd->args, buf, wlen); in cmd_init()
17 cmd->wlen = wlen; in cmd_init()
30 if (cmd->wlen) { in si2168_cmd_execute()
32 ret = i2c_master_send(client, cmd->args, cmd->wlen); in si2168_cmd_execute()
35 } else if (ret != cmd->wlen) { in si2168_cmd_execute()
313 cmd.wlen = 3; in si2168_set_frontend()
/linux/arch/arm/boot/dts/ti/omap/
H A Domap3-igep0020-rev-f.dts16 lbep5clwmc_wlen: regulator-lbep5clwmc-wlen {
18 regulator-name = "regulator-lbep5clwmc-wlen";
/linux/fs/orangefs/
H A Dinode.c26 size_t len, wlen; in orangefs_writepage_locked() local
38 wlen = len - off; in orangefs_writepage_locked()
40 wlen = wr->len; in orangefs_writepage_locked()
45 wlen = len - off; in orangefs_writepage_locked()
47 wlen = PAGE_SIZE; in orangefs_writepage_locked()
50 WARN_ON(off == len || off + wlen > len); in orangefs_writepage_locked()
52 WARN_ON(wlen == 0); in orangefs_writepage_locked()
53 bvec_set_page(&bv, page, wlen, off % PAGE_SIZE); in orangefs_writepage_locked()
54 iov_iter_bvec(&iter, ITER_SOURCE, &bv, 1, wlen); in orangefs_writepage_locked()
56 ret = wait_for_direct_io(ORANGEFS_IO_WRITE, inode, &off, &iter, wlen, in orangefs_writepage_locked()

123