/drivers/media/dvb-frontends/ |
D | si2168.c | 43 if (cmd->rlen) { in si2168_cmd_execute() 48 ret = i2c_master_recv(client, cmd->args, cmd->rlen); in si2168_cmd_execute() 51 } else if (ret != cmd->rlen) { in si2168_cmd_execute() 105 cmd.rlen = 13; in si2168_read_status() 110 cmd.rlen = 9; in si2168_read_status() 115 cmd.rlen = 14; in si2168_read_status() 148 *status, cmd.rlen, cmd.args); in si2168_read_status() 154 cmd.rlen = 3; in si2168_read_status() 187 cmd.rlen = 3; in si2168_read_status() 275 cmd.rlen = 5; in si2168_set_frontend() [all …]
|
/drivers/media/usb/pvrusb2/ |
D | pvrusb2-i2c-core.c | 104 u16 rlen) /* Amount of data to read */ in pvr2_i2c_read() argument 118 if (res && (rlen > (sizeof(hdw->cmd_buffer) - 1))) { in pvr2_i2c_read() 122 rlen,(unsigned int)(sizeof(hdw->cmd_buffer) - 1)); in pvr2_i2c_read() 134 hdw->cmd_buffer[2] = rlen; /* answer length. Device will send one in pvr2_i2c_read() 144 rlen + 1); in pvr2_i2c_read() 156 if (res && rlen) { in pvr2_i2c_read() 159 memset(res, 0, rlen); in pvr2_i2c_read() 161 memcpy(res, hdw->cmd_buffer + 1, rlen); in pvr2_i2c_read() 177 u16 rlen) in pvr2_i2c_basic_op() argument 179 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 | zd1301.c | 35 unsigned int wlen, u8 *rbuf, unsigned int rlen) in zd1301_ctrl_msg() argument 54 if (rlen) { in zd1301_ctrl_msg() 56 dev->buf, rlen, &actual_length, 1000); in zd1301_ctrl_msg() 65 if (actual_length != rlen) { in zd1301_ctrl_msg() 74 dev->buf, rlen, &actual_length, in zd1301_ctrl_msg() 86 memcpy(rbuf, dev->buf, rlen); in zd1301_ctrl_msg()
|
D | au6610.c | 24 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in au6610_usb_msg() argument 76 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in au6610_i2c_msg() argument 79 u8 wo = (rbuf == NULL || rlen == 0); /* write-only */ in au6610_i2c_msg() 87 return au6610_usb_msg(d, request, addr, wbuf, wlen, rbuf, rlen); in au6610_i2c_msg()
|
D | lmedm04.c | 169 u8 *wbuf, int wlen, u8 *rbuf, int rlen) in lme2510_usb_talk() argument 194 ret |= lme2510_bulk_read(d->udev, buff, (rlen < 64) ? in lme2510_usb_talk() 195 rlen : 64 , 0x01); in lme2510_usb_talk() 197 if (rlen > 0) in lme2510_usb_talk() 198 memcpy(rbuf, buff, rlen); in lme2510_usb_talk() 519 u8 *wbuf, int wlen, u8 *rbuf, int rlen) in lme2510_msg() argument 525 return lme2510_usb_talk(d, wbuf, wlen, rbuf, rlen); in lme2510_msg() 610 int ret = 0, rlen = sizeof(rbuf); in lme2510_streaming_ctrl() local 623 sizeof(clear_reg_3), rbuf, rlen); in lme2510_streaming_ctrl() 868 int ret = 0, len = 3, rlen = 1; in dm04_lme2510_set_voltage() local [all …]
|
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()
|
/drivers/media/tuners/ |
D | si2157.c | 41 if (cmd->rlen) { in si2157_cmd_execute() 46 ret = i2c_master_recv(client, cmd->args, cmd->rlen); in si2157_cmd_execute() 49 } else if (ret != cmd->rlen) { in si2157_cmd_execute() 94 cmd.rlen = 4; in si2157_init() 116 cmd.rlen = 1; in si2157_init() 133 cmd.rlen = 13; in si2157_init() 203 cmd.rlen = 1; in si2157_init() 218 cmd.rlen = 1; in si2157_init() 226 cmd.rlen = 10; in si2157_init() 266 cmd.rlen = 1; in si2157_sleep() [all …]
|
/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/scsi/qedf/ |
D | qedf_fip.c | 77 ssize_t rlen; in qedf_fcoe_process_vlan_resp() local 82 rlen = ntohs(fiph->fip_dl_len) * 4; in qedf_fcoe_process_vlan_resp() 84 while (rlen > 0) { in qedf_fcoe_process_vlan_resp() 92 rlen -= dlen; in qedf_fcoe_process_vlan_resp() 154 size_t rlen, dlen; in qedf_fip_recv() local 191 rlen = ntohs(fiph->fip_dl_len) * FIP_BPW; in qedf_fip_recv() 193 while (rlen >= sizeof(*desc)) { in qedf_fip_recv() 223 rlen -= dlen; in qedf_fip_recv()
|
/drivers/usb/misc/ |
D | uss720.c | 517 int rlen; in parport_uss720_epp_write_data() local 524 i = usb_bulk_msg(usbdev, usb_sndbulkpipe(usbdev, 1), (void *)buf, length, &rlen, 20000); in parport_uss720_epp_write_data() 526 printk(KERN_ERR "uss720: sendbulk ep 1 buf %p len %zu rlen %u\n", buf, length, rlen); in parport_uss720_epp_write_data() 528 return rlen; in parport_uss720_epp_write_data() 578 int rlen; in parport_uss720_ecp_write_data() local 585 i = usb_bulk_msg(usbdev, usb_sndbulkpipe(usbdev, 1), (void *)buffer, len, &rlen, 20000); in parport_uss720_ecp_write_data() 587 printk(KERN_ERR "uss720: sendbulk ep 1 buf %p len %zu rlen %u\n", buffer, len, rlen); in parport_uss720_ecp_write_data() 589 return rlen; in parport_uss720_ecp_write_data() 596 int rlen; in parport_uss720_ecp_read_data() local 603 i = usb_bulk_msg(usbdev, usb_rcvbulkpipe(usbdev, 2), buffer, len, &rlen, 20000); in parport_uss720_ecp_read_data() [all …]
|
/drivers/of/ |
D | fdt_address.c | 119 int rlen; in fdt_translate_one() local 123 ranges = fdt_getprop(blob, parent, rprop, &rlen); in fdt_translate_one() 126 if (rlen == 0) { in fdt_translate_one() 136 rlen /= 4; in fdt_translate_one() 138 for (; rlen >= rone; rlen -= rone, ranges += rone) { in fdt_translate_one()
|
D | address.c | 239 int rlen; in of_pci_range_parser_init() local 245 parser->range = of_get_property(node, "ranges", &rlen); in of_pci_range_parser_init() 249 parser->end = parser->range + rlen / sizeof(__be32); in of_pci_range_parser_init() 486 unsigned int rlen; in of_translate_one() local 506 ranges = of_get_property(parent, rprop, &rlen); in of_translate_one() 511 if (ranges == NULL || rlen == 0) { in of_translate_one() 521 rlen /= 4; in of_translate_one() 523 for (; rlen >= rone; rlen -= rone, ranges += rone) { in of_translate_one()
|
/drivers/staging/rtl8723bs/os_dep/ |
D | osdep_service.c | 124 int rlen = 0, sum = 0; in readFile() local 130 rlen =fp->f_op->read(fp, (char __force __user *)buf+sum, len-sum, &fp->f_pos); in readFile() 131 if (rlen>0) in readFile() 132 sum+=rlen; in readFile() 133 else if (0 != rlen) in readFile() 134 return rlen; in readFile()
|
/drivers/bus/ |
D | uniphier-system-bus.c | 192 int pna, bank, rlen, rone, ret; in uniphier_system_bus_probe() local 227 ranges = of_get_property(dev->of_node, "ranges", &rlen); in uniphier_system_bus_probe() 233 rlen /= sizeof(*ranges); in uniphier_system_bus_probe() 236 for (; rlen >= rone; rlen -= rone) { in uniphier_system_bus_probe()
|
/drivers/staging/rtl8723bs/hal/ |
D | hal_com_phycfg.c | 2220 int rlen = 0, rtStatus = _FAIL; in phy_ConfigMACWithParaFile() local 2233 rlen = rtw_retrive_from_file(file_path_bs, pHalData->para_file_buf, MAX_PARA_FILE_BUF_LEN); in phy_ConfigMACWithParaFile() 2234 if (rlen > 0) { in phy_ConfigMACWithParaFile() 2236 pHalData->mac_reg = vzalloc(rlen); in phy_ConfigMACWithParaFile() 2238 memcpy(pHalData->mac_reg, pHalData->para_file_buf, rlen); in phy_ConfigMACWithParaFile() 2239 pHalData->mac_reg_len = rlen; in phy_ConfigMACWithParaFile() 2279 int rlen = 0, rtStatus = _FAIL; in phy_ConfigBBWithParaFile() local 2308 rlen = rtw_retrive_from_file(file_path_bs, pHalData->para_file_buf, MAX_PARA_FILE_BUF_LEN); in phy_ConfigBBWithParaFile() 2309 if (rlen > 0) { in phy_ConfigBBWithParaFile() 2311 pBuf = vzalloc(rlen); in phy_ConfigBBWithParaFile() [all …]
|
/drivers/media/usb/dvb-usb/ |
D | digitv.c | 29 u8 cmd, u8 vv, u8 *wbuf, int wlen, u8 *rbuf, int rlen) in digitv_ctrl_msg() argument 34 wo = (rbuf == NULL || rlen == 0); /* write-only */ in digitv_ctrl_msg() 36 if (wlen > 4 || rlen > 4) in digitv_ctrl_msg() 44 st->sndbuf[2] = wo ? wlen : rlen; in digitv_ctrl_msg() 51 memcpy(rbuf, &st->rcvbuf[3], rlen); in digitv_ctrl_msg()
|
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 | dibusb-common.c | 141 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dibusb_i2c_msg() argument 147 wo = (rbuf == NULL || rlen == 0); in dibusb_i2c_msg() 167 sndbuf[wlen + 2] = (rlen >> 8) & 0xff; in dibusb_i2c_msg() 168 sndbuf[wlen + 3] = rlen & 0xff; in dibusb_i2c_msg() 171 ret = dvb_usb_generic_rw(d, sndbuf, len, rbuf, rlen, 0); in dibusb_i2c_msg()
|
D | dvb-usb-urb.c | 13 u16 rlen, int delay_ms) in dvb_usb_generic_rw() argument 41 if (!ret && rbuf && rlen) { in dvb_usb_generic_rw() 48 d->props.generic_bulk_ctrl_endpoint),rbuf,rlen,&actlen, in dvb_usb_generic_rw()
|
D | dtv5100.c | 35 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dtv5100_i2c_msg() argument 64 memcpy(st->data, rbuf, rlen); in dtv5100_i2c_msg() 67 type, value, index, st->data, rlen, in dtv5100_i2c_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/staging/wilc1000/ |
D | wilc_spi.c | 204 static int wilc_spi_rx(struct wilc *wilc, u8 *rb, u32 rlen) in wilc_spi_rx() argument 209 if (rlen > 0) { in wilc_spi_rx() 213 .len = rlen, in wilc_spi_rx() 217 char *t_buffer = kzalloc(rlen, GFP_KERNEL); in wilc_spi_rx() 237 rlen); in wilc_spi_rx() 244 static int wilc_spi_tx_rx(struct wilc *wilc, u8 *wb, u8 *rb, u32 rlen) in wilc_spi_tx_rx() argument 249 if (rlen > 0) { in wilc_spi_tx_rx() 254 .len = rlen, in wilc_spi_tx_rx() 272 rlen); in wilc_spi_tx_rx()
|
/drivers/scsi/fcoe/ |
D | fcoe_ctlr.c | 910 size_t rlen; in fcoe_ctlr_parse_adv() local 926 rlen = ntohs(fiph->fip_dl_len) * 4; in fcoe_ctlr_parse_adv() 927 if (rlen + sizeof(*fiph) > skb->len) in fcoe_ctlr_parse_adv() 931 while (rlen > 0) { in fcoe_ctlr_parse_adv() 933 if (dlen < sizeof(*desc) || dlen > rlen) in fcoe_ctlr_parse_adv() 1006 rlen -= dlen; in fcoe_ctlr_parse_adv() 1161 size_t rlen; in fcoe_ctlr_recv_els() local 1171 rlen = ntohs(fiph->fip_dl_len) * 4; in fcoe_ctlr_recv_els() 1172 if (rlen + sizeof(*fiph) > skb->len) in fcoe_ctlr_recv_els() 1176 while (rlen > 0) { in fcoe_ctlr_recv_els() [all …]
|
/drivers/staging/rtl8712/ |
D | xmit_linux.c | 58 uint _r8712_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen) in _r8712_pktfile_read() argument 63 len = (rlen > len) ? len : rlen; in _r8712_pktfile_read()
|