Home
last modified time | relevance | path

Searched refs:len2 (Results 1 – 19 of 19) sorted by relevance

/drivers/i2c/busses/
Di2c-viperboard.c121 u16 remain_len, len1, len2, start = 0x0000; in vprbrd_i2c_read() local
131 len2 = 0x00; in vprbrd_i2c_read()
134 rmsg->header.len2 = 0x00; in vprbrd_i2c_read()
141 len2 = 0x00; in vprbrd_i2c_read()
144 rmsg->header.len2 = 0x00; in vprbrd_i2c_read()
151 len2 = 0x00; in vprbrd_i2c_read()
154 rmsg->header.len2 = 0xff; in vprbrd_i2c_read()
161 len2 = remain_len - 512; in vprbrd_i2c_read()
164 rmsg->header.len2 = 0xff; in vprbrd_i2c_read()
171 len2 = remain_len - 512; in vprbrd_i2c_read()
[all …]
/drivers/isdn/hisax/
Dhisax_debug.h46 int i, len1, len2; in dump_packet() local
52 len2 = DUMP_TLR_SIZE; in dump_packet()
55 len2 = 0; in dump_packet()
60 if (len2) { in dump_packet()
/drivers/staging/wilc1000/
Dwilc_spi.c286 u32 len2; in spi_cmd_complete() local
396 len2 = len + (NUM_SKIP_BYTES + NUM_RSP_BYTES + NUM_DUMMY_BYTES); in spi_cmd_complete()
399 len2 = len + (NUM_RSP_BYTES + NUM_DATA_HDR_BYTES + NUM_DATA_BYTES in spi_cmd_complete()
402 len2 = len + (NUM_RSP_BYTES + NUM_DATA_HDR_BYTES + NUM_DATA_BYTES in spi_cmd_complete()
406 len2 = len + (NUM_RSP_BYTES + NUM_DUMMY_BYTES); in spi_cmd_complete()
410 if (len2 > ARRAY_SIZE(wb)) { in spi_cmd_complete()
412 len2, ARRAY_SIZE(wb)); in spi_cmd_complete()
416 for (wix = len; wix < len2; wix++) in spi_cmd_complete()
420 if (wilc_spi_tx_rx(wilc, wb, rb, len2)) { in spi_cmd_complete()
467 if (rix < len2) { in spi_cmd_complete()
[all …]
/drivers/media/tuners/
Dtda18218.c29 int ret = 0, len2, remaining; in tda18218_wr_regs() local
48 len2 = remaining; in tda18218_wr_regs()
49 if (len2 > (priv->cfg->i2c_wr_max - 1)) in tda18218_wr_regs()
50 len2 = (priv->cfg->i2c_wr_max - 1); in tda18218_wr_regs()
52 msg[0].len = 1 + len2; in tda18218_wr_regs()
54 memcpy(&buf[1], &val[len - remaining], len2); in tda18218_wr_regs()
/drivers/parport/
Dprobe.c226 size_t idlen, len2; in parport_read_device_id() local
237 len2 = len; in parport_read_device_id()
238 while(len2 < idlen && retval > 0) { in parport_read_device_id()
241 min(sizeof tmp, idlen-len2)); in parport_read_device_id()
244 len2 += retval; in parport_read_device_id()
/drivers/media/dvb-frontends/
Dnxt200x.c157 u8 attr, len2, buf; in nxt200x_writereg_multibyte() local
168 len2 = len; in nxt200x_writereg_multibyte()
180 len2 = ((attr << 4) | 0x10) | len; in nxt200x_writereg_multibyte()
189 nxt200x_writebytes(state, 0x34, &len2, 1); in nxt200x_writereg_multibyte()
218 u8 buf, len2, attr; in nxt200x_readreg_multibyte() local
227 len2 = len & 0x80; in nxt200x_readreg_multibyte()
228 nxt200x_writebytes(state, 0x34, &len2, 1); in nxt200x_readreg_multibyte()
244 len2 = (attr << 4) | len; in nxt200x_readreg_multibyte()
245 nxt200x_writebytes(state, 0x34, &len2, 1); in nxt200x_readreg_multibyte()
/drivers/net/ethernet/stmicro/stmmac/
Ddwmac4_descs.c342 int len1, int len2, bool tx_own, in dwmac4_rd_prepare_tso_tx_desc() argument
351 if (len2) in dwmac4_rd_prepare_tso_tx_desc()
352 p->des2 |= (len2 << TDES2_BUFFER2_SIZE_MASK_SHIFT) in dwmac4_rd_prepare_tso_tx_desc()
Dcommon.h366 int len2, bool tx_own, bool ls,
/drivers/staging/lustre/lnet/lnet/
Dconfig.c520 int len2 = strlen(sep2 + 1); in lnet_expand1tb() local
526 ltb = lnet_new_text_buf(len1 + itemlen + len2); in lnet_expand1tb()
532 memcpy(&ltb->ltb_text[len1 + itemlen], sep2 + 1, len2); in lnet_expand1tb()
533 ltb->ltb_text[len1 + itemlen + len2] = 0; in lnet_expand1tb()
/drivers/crypto/
Dsahara.c135 u32 len2; member
419 dev_dbg(dev->device, "\tlen2 = %u\n", dev->hw_desc[i]->len2); in sahara_dump_descriptors()
465 dev->hw_desc[idx]->len2 = ctx->keylen; in sahara_hw_descriptor_create()
534 dev->hw_desc[idx]->len2 = dev->total; in sahara_hw_descriptor_create()
876 dev->hw_desc[index]->len2 = result_len; in sahara_sha_hw_data_descriptor_create()
901 dev->hw_desc[index]->len2 = 0; in sahara_sha_hw_context_descriptor_create()
/drivers/isdn/hysdn/
Dhycapi.c535 __u16 len2, CapiCmd; in hycapi_rx_capipkt() local
554 len2 = len + (30 - MsgLen); in hycapi_rx_capipkt()
555 if (!(skb = alloc_skb(len2, GFP_ATOMIC))) { in hycapi_rx_capipkt()
/drivers/usb/core/
Ddevio.c1171 int len2; in proc_bulk() local
1209 i = usb_bulk_msg(dev, pipe, tbuf, len1, &len2, tmo); in proc_bulk()
1211 snoop_urb(dev, NULL, pipe, len2, i, COMPLETE, tbuf, len2); in proc_bulk()
1213 if (!i && len2) { in proc_bulk()
1214 if (copy_to_user(bulk.data, tbuf, len2)) { in proc_bulk()
1229 i = usb_bulk_msg(dev, pipe, tbuf, len1, &len2, tmo); in proc_bulk()
1231 snoop_urb(dev, NULL, pipe, len2, i, COMPLETE, NULL, 0); in proc_bulk()
1233 ret = (i < 0 ? i : len2); in proc_bulk()
/drivers/tty/
Dmoxa.c538 size_t wlen, len2, j; in moxa_real_load_code() local
575 len2 = (wlen > 2048) ? 2048 : wlen; in moxa_real_load_code()
576 wlen -= len2; in moxa_real_load_code()
577 memcpy_toio(baseAddr + loadbuf, ptr + j, len2 << 1); in moxa_real_load_code()
578 j += len2 << 1; in moxa_real_load_code()
580 writew(len2, baseAddr + loadlen); in moxa_real_load_code()
/drivers/net/wan/
Dsdla.c764 short dlci, len, len2, split; in sdla_receive() local
855 len2 = len - split; in sdla_receive()
857 __sdla_read(dev, addr, skb_put(skb, len2), len2); in sdla_receive()
/drivers/isdn/i4l/
Disdn_bsdcomp.c574 unsigned short *len2 = lens_ptr(db, ent); in bsd_compress() local
575 *len1 = *len2 + 1; in bsd_compress()
/drivers/mtd/ubi/
Dvtbl.c267 int len2 = be16_to_cpu(vtbl[n].name_len); in vtbl_check() local
269 if (len1 > 0 && len1 == len2 && in vtbl_check()
/drivers/net/ppp/
Dbsd_comp.c732 unsigned short *len2 = lens_ptr (db, ent); in bsd_compress() local
733 *len1 = *len2 + 1; in bsd_compress()
/drivers/staging/vc04_services/interface/vchiq_arm/
Dvchiq_core.c3761 int len2 = snprintf(remoteport, sizeof(remoteport), in vchiq_dump_service_state() local
3764 snprintf(remoteport + len2, in vchiq_dump_service_state()
3765 sizeof(remoteport) - len2, in vchiq_dump_service_state()
/drivers/infiniband/hw/hfi1/
Dchip.c9855 u64 len1 = 0, len2 = (((dd->vld[15].mtu + max_hb) >> 2) in set_send_length() local
9869 len2 |= (((dd->vld[i].mtu + max_hb) >> 2) in set_send_length()
9874 write_csr(dd, SEND_LEN_CHECK1, len2); in set_send_length()