Home
last modified time | relevance | path

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

123

/Linux-v5.15/drivers/media/usb/pvrusb2/
Dpvrusb2-debugifc.c57 unsigned int wlen; in debugifc_isolate_word() local
61 wlen = 0; in debugifc_isolate_word()
69 wlen = scnt; in debugifc_isolate_word()
74 *wlenPtr = wlen; in debugifc_isolate_word()
183 unsigned int wlen; in pvr2_debugifc_do1cmd() local
186 scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); in pvr2_debugifc_do1cmd()
191 pvr2_trace(PVR2_TRACE_DEBUGIFC,"debugifc cmd: \"%.*s\"",wlen,wptr); in pvr2_debugifc_do1cmd()
192 if (debugifc_match_keyword(wptr,wlen,"reset")) { in pvr2_debugifc_do1cmd()
193 scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); in pvr2_debugifc_do1cmd()
197 if (debugifc_match_keyword(wptr,wlen,"cpu")) { in pvr2_debugifc_do1cmd()
[all …]
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-v5.15/drivers/media/usb/dvb-usb-v2/
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()
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()
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()
/Linux-v5.15/drivers/media/tuners/
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()
94 cmd.wlen = 4; in si2157_init()
108 cmd.wlen = 9; in si2157_init()
111 cmd.wlen = 10; in si2157_init()
114 cmd.wlen = 15; in si2157_init()
124 cmd.wlen = 7; in si2157_init()
137 cmd.wlen = 1; in si2157_init()
211 cmd.wlen = len; in si2157_init()
[all …]
/Linux-v5.15/drivers/md/
Dmd-autodetect.c246 int wlen; in raid_setup() local
248 wlen = (comma-str)-pos; in raid_setup()
249 else wlen = (len-1)-pos; in raid_setup()
251 if (!strncmp(str, "noautodetect", wlen)) in raid_setup()
253 if (!strncmp(str, "autodetect", wlen)) in raid_setup()
255 if (strncmp(str, "partitionable", wlen)==0) in raid_setup()
257 if (strncmp(str, "part", wlen)==0) in raid_setup()
259 pos += wlen+1; in raid_setup()
/Linux-v5.15/drivers/mtd/devices/
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-v5.15/drivers/media/usb/dvb-usb/
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()
Ddibusb-common.c138 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dibusb_i2c_msg() argument
146 len = 2 + wlen + (wo ? 0 : 2); in dibusb_i2c_msg()
152 if (4 + wlen > MAX_XFER_SIZE) { in dibusb_i2c_msg()
153 warn("i2c wr: len=%d is too big!\n", wlen); in dibusb_i2c_msg()
161 memcpy(&sndbuf[2], wbuf, wlen); in dibusb_i2c_msg()
164 sndbuf[wlen + 2] = (rlen >> 8) & 0xff; in dibusb_i2c_msg()
165 sndbuf[wlen + 3] = rlen & 0xff; in dibusb_i2c_msg()
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()
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()
/Linux-v5.15/tools/virtio/virtio-trace/
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-v5.15/drivers/infiniband/hw/qib/
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-v5.15/net/sched/
Dact_ctinfo.c32 struct sk_buff *skb, int wlen, int proto) in tcf_ctinfo_dscp_set() argument
43 if (likely(!skb_try_make_writable(skb, wlen))) { in tcf_ctinfo_dscp_set()
56 if (likely(!skb_try_make_writable(skb, wlen))) { in tcf_ctinfo_dscp_set()
89 int proto, wlen; in tcf_ctinfo_act() local
98 wlen = skb_network_offset(skb); in tcf_ctinfo_act()
101 wlen += sizeof(struct iphdr); in tcf_ctinfo_act()
102 if (!pskb_may_pull(skb, wlen)) in tcf_ctinfo_act()
108 wlen += sizeof(struct ipv6hdr); in tcf_ctinfo_act()
109 if (!pskb_may_pull(skb, wlen)) in tcf_ctinfo_act()
135 tcf_ctinfo_dscp_set(ct, ca, cp, skb, wlen, proto); in tcf_ctinfo_act()
Dsch_dsmark.c212 int wlen = skb_network_offset(skb); in dsmark_enqueue() local
216 wlen += sizeof(struct iphdr); in dsmark_enqueue()
217 if (!pskb_may_pull(skb, wlen) || in dsmark_enqueue()
218 skb_try_make_writable(skb, wlen)) in dsmark_enqueue()
226 wlen += sizeof(struct ipv6hdr); in dsmark_enqueue()
227 if (!pskb_may_pull(skb, wlen) || in dsmark_enqueue()
228 skb_try_make_writable(skb, wlen)) in dsmark_enqueue()
Dact_skbedit.c42 int wlen = skb_network_offset(skb); in tcf_skbedit_act() local
46 wlen += sizeof(struct iphdr); in tcf_skbedit_act()
47 if (!pskb_may_pull(skb, wlen)) in tcf_skbedit_act()
53 wlen += sizeof(struct ipv6hdr); in tcf_skbedit_act()
54 if (!pskb_may_pull(skb, wlen)) in tcf_skbedit_act()
/Linux-v5.15/drivers/spi/
Dspi-ti-qspi.c247 int wlen, xfer_len; in qspi_write_msg() local
254 wlen = t->bits_per_word >> 3; /* in bytes */ in qspi_write_msg()
255 xfer_len = wlen; in qspi_write_msg()
261 switch (wlen) { in qspi_write_msg()
285 xfer_len = wlen; in qspi_write_msg()
286 cmd |= QSPI_WLEN(wlen); in qspi_write_msg()
316 int wlen; in qspi_read_msg() local
335 wlen = t->bits_per_word >> 3; /* in bytes */ in qspi_read_msg()
336 rx_wlen = wlen; in qspi_read_msg()
343 switch (wlen) { in qspi_read_msg()
[all …]
/Linux-v5.15/drivers/media/usb/hdpvr/
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-v5.15/sound/soc/codecs/
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-v5.15/include/linux/dsa/
Docelot.h182 u64 llen, wlen; in ocelot_xfh_get_len() local
185 packing(extraction, &wlen, 78, 71, OCELOT_TAG_LEN, UNPACK, 0); in ocelot_xfh_get_len()
187 *len = 60 * wlen + llen - 80; in ocelot_xfh_get_len()
/Linux-v5.15/drivers/media/dvb-frontends/
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-v5.15/fs/ubifs/
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()
829 int avail, wlen, err, lnum_pos = 0, blen, nxt_offs; in write_index() local
966 wlen = used + len; in write_index()
986 wlen = ALIGN(wlen, 8); in write_index()
987 blen = ALIGN(wlen, c->min_io_size); in write_index()
988 ubifs_pad(c, c->cbuf + wlen, blen - wlen); in write_index()
/Linux-v5.15/drivers/video/fbdev/omap/
Dlcd_mipid.c55 int wlen, u8 *rbuf, int rlen) in mipid_transfer() argument
75 if (wlen) { in mipid_transfer()
78 x->len = wlen; in mipid_transfer()
339 int wlen; in ls041y3_esd_check_mode2() member
353 mipid_write(md, rd->cmd, (u8 *)rd->wbuf, rd->wlen); in ls041y3_esd_check_mode2()
361 mipid_write(md, rd->cmd, (u8 *)rd->wbuf, rd->wlen); in ls041y3_esd_check_mode2()
/Linux-v5.15/fs/pstore/
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 …]

123