/openbmc/linux/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-debugifc.c | 57 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 192 if (debugifc_match_keyword(wptr,wlen,"reset")) { in pvr2_debugifc_do1cmd() 197 if (debugifc_match_keyword(wptr,wlen,"cpu")) { in pvr2_debugifc_do1cmd() 228 if (debugifc_match_keyword(wptr, wlen, in pvr2_debugifc_do1cmd() 231 } else if (debugifc_match_keyword(wptr, wlen, in pvr2_debugifc_do1cmd() 234 } else if (debugifc_match_keyword(wptr, wlen, in pvr2_debugifc_do1cmd() [all …]
|
H A D | pvrusb2-i2c-core.c | 165 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() 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() 258 if (!(rlen || wlen)) { in i2c_hack_wm8775() 289 if (!(rlen || wlen)) { in i2c_hack_cx25840() 308 if (wlen == 0) { in i2c_hack_cx25840() [all …]
|
/openbmc/qemu/target/mips/tcg/ |
H A D | tx79_translate.c | 256 tcg_gen_sextract_i64(t0, ax, wlen * i, wlen); in trans_parallel_compare() 257 tcg_gen_sextract_i64(t1, bx, wlen * i, wlen); in trans_parallel_compare() 259 tcg_gen_deposit_i64(cpu_gpr[a->rd], cpu_gpr[a->rd], t2, wlen * i, wlen); in trans_parallel_compare() 265 tcg_gen_sextract_i64(t0, ax, wlen * i, wlen); in trans_parallel_compare() 266 tcg_gen_sextract_i64(t1, bx, wlen * i, wlen); in trans_parallel_compare() 268 tcg_gen_deposit_i64(cpu_gpr_hi[a->rd], cpu_gpr_hi[a->rd], t2, wlen * i, wlen); in trans_parallel_compare() 466 cpu_gpr[a->rd], bx, 2 * wlen * i, wlen); in trans_PEXTLx() 468 cpu_gpr[a->rd], ax, 2 * wlen * i + wlen, wlen); in trans_PEXTLx() 469 tcg_gen_shri_i64(bx, bx, wlen); in trans_PEXTLx() 475 cpu_gpr_hi[a->rd], bx, 2 * wlen * i, wlen); in trans_PEXTLx() [all …]
|
/openbmc/linux/drivers/media/usb/dvb-usb-v2/ |
H A D | dvb_usb_urb.c | 12 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 D | au6610.c | 15 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 D | zd1301.c | 26 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()
|
/openbmc/u-boot/common/ |
H A D | cli_readline.c | 195 wlen = eol_num - num; \ 204 unsigned long wlen; in cread_add_char() local 216 wlen = *eol_num - *num; in cread_add_char() 217 if (wlen > 1) in cread_add_char() 223 while (--wlen) in cread_add_char() 227 wlen = 1; in cread_add_char() 249 unsigned long wlen; in cread_line() local 400 if (wlen) { in cread_line() 408 } while (wlen--); in cread_line() 430 wlen = eol_num - num; in cread_line() [all …]
|
/openbmc/linux/drivers/media/tuners/ |
H A D | si2157.c | 25 if (cmd->wlen) { in si2157_cmd_execute() 159 cmd.wlen = 1; in si2157_find_and_load_firmware() 229 cmd.wlen = 4; in si2157_init() 244 cmd.wlen = 9; in si2157_init() 274 cmd.wlen = 2; in si2157_init() 282 cmd.wlen = 1; in si2157_init() 293 cmd.wlen = 6; in si2157_init() 300 cmd.wlen = 6; in si2157_init() 307 cmd.wlen = 6; in si2157_init() 343 cmd.wlen = 2; in si2157_sleep() [all …]
|
/openbmc/linux/drivers/md/ |
H A D | md-autodetect.c | 238 int wlen; in raid_setup() local 240 wlen = (comma-str)-pos; in raid_setup() 241 else wlen = (len-1)-pos; in raid_setup() 243 if (!strncmp(str, "noautodetect", wlen)) in raid_setup() 245 if (!strncmp(str, "autodetect", wlen)) in raid_setup() 247 if (strncmp(str, "partitionable", wlen)==0) in raid_setup() 249 if (strncmp(str, "part", wlen)==0) in raid_setup() 251 pos += wlen+1; in raid_setup()
|
/openbmc/linux/drivers/mtd/devices/ |
H A D | mchp48l640.c | 214 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()
|
/openbmc/linux/drivers/media/usb/dvb-usb/ |
H A D | dvb-usb-urb.c | 12 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 D | dibusb-common.c | 138 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()
|
/openbmc/linux/tools/virtio/virtio-trace/ |
H A D | trace-agent-rw.c | 106 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()
|
/openbmc/linux/drivers/infiniband/hw/qib/ |
H A D | qib_qsfp.c | 101 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() 220 addr += wlen; in qib_qsfp_write() [all …]
|
/openbmc/linux/net/sched/ |
H A D | act_ctinfo.c | 32 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() 90 int proto, wlen; in tcf_ctinfo_act() local 99 wlen = skb_network_offset(skb); in tcf_ctinfo_act() 102 wlen += sizeof(struct iphdr); in tcf_ctinfo_act() 103 if (!pskb_may_pull(skb, wlen)) in tcf_ctinfo_act() 109 wlen += sizeof(struct ipv6hdr); in tcf_ctinfo_act() 110 if (!pskb_may_pull(skb, wlen)) in tcf_ctinfo_act() 136 tcf_ctinfo_dscp_set(ct, ca, cp, skb, wlen, proto); in tcf_ctinfo_act()
|
/openbmc/obmc-console/ |
H A D | ringbuffer.c | 152 size_t wlen; in ringbuffer_queue() local 183 wlen = min(len, rb->size - rb->tail); in ringbuffer_queue() 184 memcpy(rb->buf + rb->tail, data, wlen); in ringbuffer_queue() 185 rb->tail = (rb->tail + wlen) % rb->size; in ringbuffer_queue() 186 len -= wlen; in ringbuffer_queue() 187 data += wlen; in ringbuffer_queue()
|
H A D | socket-handler.c | 177 ssize_t wlen; in client_drain_queue() local 183 wlen = 0; in client_drain_queue() 197 wlen = send_all(client, buf, len, block); in client_drain_queue() 198 if (wlen <= 0) { in client_drain_queue() 202 total_len += wlen; in client_drain_queue() 209 if (wlen < 0) { in client_drain_queue()
|
H A D | tty-handler.c | 91 ssize_t wlen; in tty_drain_queue() local 116 wlen = write(th->fd, buf, len); in tty_drain_queue() 117 if (wlen < 0) { in tty_drain_queue() 130 total_len += wlen; in tty_drain_queue()
|
/openbmc/linux/drivers/media/usb/hdpvr/ |
H A D | hdpvr-i2c.c | 51 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()
|
/openbmc/u-boot/drivers/spi/ |
H A D | renesas_rpc_spi.c | 245 u32 wlen = dout ? (bitlen / 8) : 0; in rpc_spi_xfer() local 247 u32 wloop = DIV_ROUND_UP(wlen, 4); in rpc_spi_xfer() 252 if (!wlen || rlen) in rpc_spi_xfer() 255 memcpy(priv->cmdcopy, dout, wlen); in rpc_spi_xfer() 256 priv->cmdlen = wlen; in rpc_spi_xfer() 269 if (wlen || (!rlen && !wlen) || flags == SPI_XFER_ONCE) { in rpc_spi_xfer() 270 if (wlen && flags == SPI_XFER_END) in rpc_spi_xfer() 304 if (wlen && flags == SPI_XFER_END) { in rpc_spi_xfer()
|
/openbmc/linux/drivers/spi/ |
H A D | spi-ti-qspi.c | 245 int wlen, xfer_len; in qspi_write_msg() local 253 xfer_len = wlen; in qspi_write_msg() 259 switch (wlen) { in qspi_write_msg() 283 xfer_len = wlen; in qspi_write_msg() 284 cmd |= QSPI_WLEN(wlen); in qspi_write_msg() 314 int wlen; in qspi_read_msg() local 334 rx_wlen = wlen; in qspi_read_msg() 341 switch (wlen) { in qspi_read_msg() 357 rxlen = wlen; in qspi_read_msg() 367 switch (wlen) { in qspi_read_msg() [all …]
|
/openbmc/u-boot/drivers/i2c/ |
H A D | lpc32xx_i2c.c | 113 int stat, wlen; in __i2c_read() local 142 wlen = length; in __i2c_read() 144 while (length | wlen) { in __i2c_read() 148 if ((wlen > 0) in __i2c_read() 150 wlen--; in __i2c_read() 152 writel(wlen ? 0 : in __i2c_read()
|
/openbmc/linux/sound/soc/codecs/ |
H A D | tlv320aic26.c | 70 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()
|
/openbmc/qemu/tests/qtest/ |
H A D | boot-serial-test.c | 257 ssize_t wlen; in test_machine() local 262 wlen = write(code_fd, code, test->codesize); in test_machine() 263 g_assert(wlen == test->codesize); in test_machine()
|
/openbmc/linux/include/linux/dsa/ |
H A D | ocelot.h | 193 u64 llen, wlen; in ocelot_xfh_get_len() local 196 packing(extraction, &wlen, 78, 71, OCELOT_TAG_LEN, UNPACK, 0); in ocelot_xfh_get_len() 198 *len = 60 * wlen + llen - 80; in ocelot_xfh_get_len()
|