/drivers/media/usb/pvrusb2/ |
D | pvrusb2-i2c-core.c | 110 u16 rlen) /* Amount of data to read */ in pvr2_i2c_read() argument 125 if (res && (rlen > (sizeof(hdw->cmd_buffer) - 1))) { in pvr2_i2c_read() 130 rlen,(unsigned int)(sizeof(hdw->cmd_buffer) - 1)); in pvr2_i2c_read() 142 hdw->cmd_buffer[2] = rlen; /* answer length. Device will send one in pvr2_i2c_read() 152 rlen + 1); in pvr2_i2c_read() 165 if (res && rlen) { in pvr2_i2c_read() 168 memset(res, 0, rlen); in pvr2_i2c_read() 170 memcpy(res, hdw->cmd_buffer + 1, rlen); in pvr2_i2c_read() 186 u16 rlen) in pvr2_i2c_basic_op() argument 188 if (!rdata) rlen = 0; in pvr2_i2c_basic_op() [all …]
|
/drivers/media/usb/dvb-usb-v2/ |
D | dvb_usb_urb.c | 25 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dvb_usb_v2_generic_io() argument 47 if (!ret && rbuf && rlen) { in dvb_usb_v2_generic_io() 55 rbuf, rlen, &actual_length, 2000); in dvb_usb_v2_generic_io() 69 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dvb_usbv2_generic_rw() argument 74 ret = dvb_usb_v2_generic_io(d, wbuf, wlen, rbuf, rlen); in dvb_usbv2_generic_rw() 94 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dvb_usbv2_generic_rw_locked() argument 96 return dvb_usb_v2_generic_io(d, wbuf, wlen, rbuf, rlen); in dvb_usbv2_generic_rw_locked()
|
D | lmedm04.c | 172 u8 *wbuf, int wlen, u8 *rbuf, int rlen) in lme2510_usb_talk() argument 197 ret |= lme2510_bulk_read(d->udev, buff, (rlen < 64) ? in lme2510_usb_talk() 198 rlen : 64 , 0x01); in lme2510_usb_talk() 200 if (rlen > 0) in lme2510_usb_talk() 201 memcpy(rbuf, buff, rlen); in lme2510_usb_talk() 447 u8 *wbuf, int wlen, u8 *rbuf, int rlen) in lme2510_msg() argument 454 ret = lme2510_usb_talk(d, wbuf, wlen, rbuf, rlen); in lme2510_msg() 523 lme2510_usb_talk(d, wbuf, wlen, rbuf, rlen); in lme2510_msg() 550 lme2510_usb_talk(d, wbuf, wlen, rbuf, rlen); in lme2510_msg() 578 lme2510_usb_talk(d, wbuf, wlen, rbuf, rlen); in lme2510_msg() [all …]
|
D | au6610.c | 28 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in au6610_usb_msg() argument 80 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in au6610_i2c_msg() argument 83 u8 wo = (rbuf == NULL || rlen == 0); /* write-only */ in au6610_i2c_msg() 91 return au6610_usb_msg(d, request, addr, wbuf, wlen, rbuf, rlen); in au6610_i2c_msg()
|
D | gl861.c | 17 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in gl861_i2c_msg() argument 21 int wo = (rbuf == NULL || rlen == 0); /* write-only */ in gl861_i2c_msg() 49 value, index, rbuf, rlen, 2000); in gl861_i2c_msg()
|
D | af9035.c | 49 int ret, wlen, rlen; in af9035_ctrl_msg() local 56 req->rlen > (BUF_LEN - ACK_HDR_LEN - CHECKSUM_LEN)) { in af9035_ctrl_msg() 58 __func__, req->wlen, req->rlen); in af9035_ctrl_msg() 70 rlen = ACK_HDR_LEN + req->rlen + CHECKSUM_LEN; in af9035_ctrl_msg() 79 rlen = 0; in af9035_ctrl_msg() 82 state->buf, wlen, state->buf, rlen); in af9035_ctrl_msg() 91 checksum = af9035_checksum(state->buf, rlen - 2); in af9035_ctrl_msg() 92 tmp_checksum = (state->buf[rlen - 2] << 8) | state->buf[rlen - 1]; in af9035_ctrl_msg() 116 if (req->rlen) in af9035_ctrl_msg() 117 memcpy(req->rbuf, &state->buf[ACK_HDR_LEN], req->rlen); in af9035_ctrl_msg()
|
/drivers/scsi/ |
D | scsi_netlink.c | 50 u32 rlen; in scsi_nl_rcv_msg() local 64 rlen = NLMSG_ALIGN(nlh->nlmsg_len); in scsi_nl_rcv_msg() 65 if (rlen > skb->len) in scsi_nl_rcv_msg() 66 rlen = skb->len; in scsi_nl_rcv_msg() 116 skb_pull(skb, rlen); in scsi_nl_rcv_msg()
|
/drivers/staging/sbe-2t3e3/ |
D | ctrl.c | 291 t3e3_resp_t *ret, int *rlen) in t3e3_if_config() argument 302 *rlen = sizeof(ret->u.param); in t3e3_if_config() 306 *rlen = 0; in t3e3_if_config() 310 *rlen = sizeof(ret->u.stats); in t3e3_if_config() 314 *rlen = 0; in t3e3_if_config() 318 *rlen = sizeof(ret->u.data); in t3e3_if_config() 322 *rlen = 0; in t3e3_if_config() 325 *rlen = 0; in t3e3_if_config() 328 *rlen = 0; in t3e3_if_config()
|
D | netdev.c | 27 int cmd_2t3e3, len, rlen; in t3e3_ioctl() local 51 t3e3_if_config(sc, cmd_2t3e3, (char *)¶m, &resp, &rlen); in t3e3_ioctl() 53 if (rlen) in t3e3_ioctl() 54 if (copy_to_user(data, &resp, rlen)) in t3e3_ioctl()
|
/drivers/usb/misc/ |
D | uss720.c | 521 int rlen; in parport_uss720_epp_write_data() local 528 i = usb_bulk_msg(usbdev, usb_sndbulkpipe(usbdev, 1), (void *)buf, length, &rlen, 20000); in parport_uss720_epp_write_data() 530 printk(KERN_ERR "uss720: sendbulk ep 1 buf %p len %Zu rlen %u\n", buf, length, rlen); in parport_uss720_epp_write_data() 532 return rlen; in parport_uss720_epp_write_data() 582 int rlen; in parport_uss720_ecp_write_data() local 589 i = usb_bulk_msg(usbdev, usb_sndbulkpipe(usbdev, 1), (void *)buffer, len, &rlen, 20000); in parport_uss720_ecp_write_data() 591 printk(KERN_ERR "uss720: sendbulk ep 1 buf %p len %Zu rlen %u\n", buffer, len, rlen); in parport_uss720_ecp_write_data() 593 return rlen; in parport_uss720_ecp_write_data() 600 int rlen; in parport_uss720_ecp_read_data() local 607 i = usb_bulk_msg(usbdev, usb_rcvbulkpipe(usbdev, 2), buffer, len, &rlen, 20000); in parport_uss720_ecp_read_data() [all …]
|
/drivers/media/usb/dvb-usb/ |
D | friio.c | 34 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in gl861_i2c_ctrlmsg_data() argument 38 int wo = (rbuf == NULL || rlen == 0); /* write only */ in gl861_i2c_ctrlmsg_data() 63 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in gl861_i2c_msg() argument 67 int wo = (rbuf == NULL || rlen == 0); /* write-only */ in gl861_i2c_msg() 74 return gl861_i2c_ctrlmsg_data(d, addr, wbuf, wlen, rbuf, rlen); in gl861_i2c_msg() 105 value, index, rbuf, rlen, 2000); in gl861_i2c_msg()
|
D | dvb-usb-urb.c | 12 u16 rlen, int delay_ms) in dvb_usb_generic_rw() argument 40 if (!ret && rbuf && rlen) { in dvb_usb_generic_rw() 47 d->props.generic_bulk_ctrl_endpoint),rbuf,rlen,&actlen, in dvb_usb_generic_rw()
|
D | digitv.c | 29 u8 cmd, u8 vv, u8 *wbuf, int wlen, u8 *rbuf, int rlen) in digitv_ctrl_msg() argument 31 int wo = (rbuf == NULL || rlen == 0); /* write-only */ in digitv_ctrl_msg() 37 sndbuf[2] = wo ? wlen : rlen; in digitv_ctrl_msg() 44 memcpy(rbuf,&rcvbuf[3],rlen); in digitv_ctrl_msg()
|
D | dibusb-common.c | 106 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dibusb_i2c_msg() argument 110 int wo = (rbuf == NULL || rlen == 0), in dibusb_i2c_msg() 119 sndbuf[wlen+2] = (rlen >> 8) & 0xff; in dibusb_i2c_msg() 120 sndbuf[wlen+3] = rlen & 0xff; in dibusb_i2c_msg() 123 return dvb_usb_generic_rw(d,sndbuf,len,rbuf,rlen,0); in dibusb_i2c_msg()
|
D | ttusb2.c | 75 u8 *wbuf, int wlen, u8 *rbuf, int rlen) in ttusb2_msg() argument 103 (rlen > 0 && r[3] != rlen)) { in ttusb2_msg() 104 …warn("there might have been an error during control message transfer. (rlen = %d, was %d)",rlen,r[… in ttusb2_msg() 110 if (rlen > 0) in ttusb2_msg() 111 memcpy(rbuf, &r[4], rlen); in ttusb2_msg()
|
/drivers/char/pcmcia/ |
D | cm4000_cs.c | 124 unsigned short rlen; /* bytes avail. after write */ member 676 dev->rlen = in monitor_card() 704 dev->rlen = in monitor_card() 748 dev->rlen = in monitor_card() 848 dev->rlen = in monitor_card() 957 ((filp->f_flags & O_NONBLOCK) || (dev->rpos < dev->rlen)))) { in cmm_read() 988 j = min(count, (size_t)(dev->rlen - dev->rpos)); in cmm_read() 997 j = min(count, (size_t)(dev->rlen - dev->rpos)); in cmm_read() 1008 if (dev->proto == 0 && count > dev->rlen - dev->rpos && i) { in cmm_read() 1016 dev->rpos = dev->rlen + 1; in cmm_read() [all …]
|
/drivers/acpi/ |
D | ec.c | 116 u8 rlen; member 189 } else if (t->rlen > t->ri) { in advance_transaction() 192 if (t->rlen == t->ri) in advance_transaction() 295 if (!ec || (!t) || (t->wlen && !t->wdata) || (t->rlen && !t->rdata)) in acpi_ec_transaction() 298 memset(t->rdata, 0, t->rlen); in acpi_ec_transaction() 353 .wlen = 0, .rlen = 1}; in acpi_ec_burst_enable() 362 .wlen = 0, .rlen = 0}; in acpi_ec_burst_disable() 374 .wlen = 1, .rlen = 1}; in acpi_ec_read() 386 .wlen = 2, .rlen = 0}; in acpi_ec_write() 451 .wlen = wdata_len, .rlen = rdata_len}; in ec_transaction() [all …]
|
/drivers/scsi/fcoe/ |
D | fcoe_ctlr.c | 864 size_t rlen; in fcoe_ctlr_parse_adv() local 880 rlen = ntohs(fiph->fip_dl_len) * 4; in fcoe_ctlr_parse_adv() 881 if (rlen + sizeof(*fiph) > skb->len) in fcoe_ctlr_parse_adv() 885 while (rlen > 0) { in fcoe_ctlr_parse_adv() 887 if (dlen < sizeof(*desc) || dlen > rlen) in fcoe_ctlr_parse_adv() 960 rlen -= dlen; in fcoe_ctlr_parse_adv() 1114 size_t rlen; in fcoe_ctlr_recv_els() local 1124 rlen = ntohs(fiph->fip_dl_len) * 4; in fcoe_ctlr_recv_els() 1125 if (rlen + sizeof(*fiph) > skb->len) in fcoe_ctlr_recv_els() 1129 while (rlen > 0) { in fcoe_ctlr_recv_els() [all …]
|
/drivers/staging/rtl8712/ |
D | xmit_linux.c | 57 uint _r8712_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen) in _r8712_pktfile_read() argument 62 len = (rlen > len) ? len : rlen; in _r8712_pktfile_read()
|
/drivers/isdn/i4l/ |
D | isdn_v110.c | 454 int rlen; in isdn_v110_encode() local 475 rlen = skb->len; in isdn_v110_encode() 476 nframes = (rlen + 3) / 4; in isdn_v110_encode() 480 rlen = v->maxsize / 40; in isdn_v110_encode() 493 mlen = EncodeMatrix(skb->data, rlen, v110buf, size); in isdn_v110_encode() 513 *((int *)skb_push(nskb, sizeof(int))) = rlen; in isdn_v110_encode()
|
/drivers/of/ |
D | address.c | 345 unsigned int rlen; in of_translate_one() local 364 ranges = of_get_property(parent, rprop, &rlen); in of_translate_one() 371 if (ranges == NULL || rlen == 0) { in of_translate_one() 381 rlen /= 4; in of_translate_one() 383 for (; rlen >= rone; rlen -= rone, ranges += rone) { in of_translate_one()
|
/drivers/video/omap2/displays/ |
D | panel-n8x0.c | 165 int wlen, u8 *rbuf, int rlen) in mipid_transfer() argument 191 if (rlen) { in mipid_transfer() 197 if (rlen > 1) { in mipid_transfer() 206 x->len = rlen - 1; in mipid_transfer() 215 if (rlen) in mipid_transfer()
|
/drivers/mtd/nand/ |
D | sh_flctl.c | 424 static void read_fiforeg(struct sh_flctl *flctl, int rlen, int offset) in read_fiforeg() argument 429 len_4align = (rlen + 3) / 4; in read_fiforeg() 432 if (flctl->chan_fifo0_rx && rlen >= 32 && in read_fiforeg() 433 flctl_dma_fifo0_transfer(flctl, buf, rlen, DMA_DEV_TO_MEM) > 0) in read_fiforeg() 466 static void write_fiforeg(struct sh_flctl *flctl, int rlen, in write_fiforeg() argument 472 len_4align = (rlen + 3) / 4; in write_fiforeg() 479 static void write_ec_fiforeg(struct sh_flctl *flctl, int rlen, in write_ec_fiforeg() argument 485 len_4align = (rlen + 3) / 4; in write_ec_fiforeg() 491 if (flctl->chan_fifo0_tx && rlen >= 32 && in write_ec_fiforeg() 492 flctl_dma_fifo0_transfer(flctl, buf, rlen, DMA_MEM_TO_DEV) > 0) in write_ec_fiforeg()
|
/drivers/video/omap/ |
D | lcd_mipid.c | 69 int wlen, u8 *rbuf, int rlen) in mipid_transfer() argument 97 if (rlen) { in mipid_transfer() 103 if (rlen > 1) { in mipid_transfer() 112 x->len = rlen - 1; in mipid_transfer() 121 if (rlen) in mipid_transfer()
|
/drivers/spi/ |
D | spi-sc18is602.c | 122 int rlen = hw->rindex + len; in sc18is602_txrx() local 127 ret = i2c_master_recv(hw->client, hw->buffer, rlen); in sc18is602_txrx() 130 if (ret != rlen) in sc18is602_txrx()
|