/drivers/gpu/drm/msm/dp/ |
D | dp_link.c | 191 ssize_t rlen; in dp_link_parse_audio_pattern_type() local 194 rlen = drm_dp_dpcd_readb(link->aux, in dp_link_parse_audio_pattern_type() 196 if (rlen < 0) { in dp_link_parse_audio_pattern_type() 197 DRM_ERROR("failed to read link audio mode. rlen=%zd\n", rlen); in dp_link_parse_audio_pattern_type() 198 return rlen; in dp_link_parse_audio_pattern_type() 218 ssize_t rlen; in dp_link_parse_audio_mode() local 224 rlen = drm_dp_dpcd_readb(link->aux, DP_TEST_AUDIO_MODE, &data); in dp_link_parse_audio_mode() 225 if (rlen < 0) { in dp_link_parse_audio_mode() 226 DRM_ERROR("failed to read link audio mode. rlen=%zd\n", rlen); in dp_link_parse_audio_mode() 227 return rlen; in dp_link_parse_audio_mode() [all …]
|
D | dp_panel.c | 26 ssize_t rlen; in dp_panel_read_dpcd() local 37 rlen = drm_dp_dpcd_read(panel->aux, offset, in dp_panel_read_dpcd() 39 if (rlen < (DP_RECEIVER_CAP_SIZE + 1)) { in dp_panel_read_dpcd() 40 DRM_ERROR("dpcd read failed, rlen=%zd\n", rlen); in dp_panel_read_dpcd() 41 if (rlen == -ETIMEDOUT) in dp_panel_read_dpcd() 42 rc = rlen; in dp_panel_read_dpcd() 57 rlen = drm_dp_dpcd_read(panel->aux, offset, in dp_panel_read_dpcd() 59 if (rlen < (DP_RECEIVER_CAP_SIZE + 1)) { in dp_panel_read_dpcd() 60 DRM_ERROR("dpcd read failed, rlen=%zd\n", rlen); in dp_panel_read_dpcd() 61 if (rlen == -ETIMEDOUT) in dp_panel_read_dpcd() [all …]
|
/drivers/media/usb/pvrusb2/ |
D | pvrusb2-i2c-core.c | 94 u16 rlen) /* Amount of data to read */ in pvr2_i2c_read() argument 108 if (res && (rlen > (sizeof(hdw->cmd_buffer) - 1))) { in pvr2_i2c_read() 112 rlen,(unsigned int)(sizeof(hdw->cmd_buffer) - 1)); in pvr2_i2c_read() 124 hdw->cmd_buffer[2] = rlen; /* answer length. Device will send one in pvr2_i2c_read() 134 rlen + 1); in pvr2_i2c_read() 146 if (res && rlen) { in pvr2_i2c_read() 149 memset(res, 0, rlen); in pvr2_i2c_read() 151 memcpy(res, hdw->cmd_buffer + 1, rlen); in pvr2_i2c_read() 167 u16 rlen) in pvr2_i2c_basic_op() argument 169 if (!rdata) rlen = 0; in pvr2_i2c_basic_op() [all …]
|
/drivers/media/tuners/ |
D | si2157.c | 36 if (cmd->rlen) { in si2157_cmd_execute() 41 ret = i2c_master_recv(client, cmd->args, cmd->rlen); in si2157_cmd_execute() 44 } else if (ret != cmd->rlen) { in si2157_cmd_execute() 95 cmd.rlen = 4; in si2157_init() 116 cmd.rlen = 1; in si2157_init() 138 cmd.rlen = 13; in si2157_init() 212 cmd.rlen = 1; in si2157_init() 227 cmd.rlen = 1; in si2157_init() 235 cmd.rlen = 10; in si2157_init() 246 cmd.rlen = 1; in si2157_init() [all …]
|
/drivers/media/usb/dvb-usb-v2/ |
D | dvb_usb_urb.c | 12 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dvb_usb_v2_generic_io() argument 39 if (rbuf && rlen) { in dvb_usb_v2_generic_io() 47 rbuf, rlen, &actual_length, 2000); 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()
|
D | zd1301.c | 26 unsigned int wlen, u8 *rbuf, unsigned int rlen) in zd1301_ctrl_msg() argument 45 if (rlen) { in zd1301_ctrl_msg() 47 dev->buf, rlen, &actual_length, 1000); in zd1301_ctrl_msg() 56 if (actual_length != rlen) { in zd1301_ctrl_msg() 65 dev->buf, rlen, &actual_length, in zd1301_ctrl_msg() 77 memcpy(rbuf, dev->buf, rlen); in zd1301_ctrl_msg()
|
D | au6610.c | 15 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in au6610_usb_msg() argument 67 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in au6610_i2c_msg() argument 70 u8 wo = (rbuf == NULL || rlen == 0); /* write-only */ in au6610_i2c_msg() 78 return au6610_usb_msg(d, request, addr, wbuf, wlen, rbuf, rlen); in au6610_i2c_msg()
|
D | lmedm04.c | 141 u8 *wbuf, int wlen, u8 *rbuf, int rlen) in lme2510_usb_talk() argument 146 if (max(wlen, rlen) > sizeof(st->usb_buffer)) in lme2510_usb_talk() 156 st->usb_buffer, rlen); in lme2510_usb_talk() 158 if (rlen) in lme2510_usb_talk() 159 memcpy(rbuf, st->usb_buffer, rlen); in lme2510_usb_talk() 473 u8 *wbuf, int wlen, u8 *rbuf, int rlen) in lme2510_msg() argument 479 return lme2510_usb_talk(d, wbuf, wlen, rbuf, rlen); in lme2510_msg() 561 int ret = 0, rlen = sizeof(rbuf); in lme2510_streaming_ctrl() local 574 sizeof(clear_reg_3), rbuf, rlen); in lme2510_streaming_ctrl() 805 int ret = 0, len = 3, rlen = 1; in dm04_lme2510_set_voltage() local [all …]
|
/drivers/mtd/spi-nor/ |
D | otp.c | 313 const size_t rlen = spi_nor_otp_region_len(nor); in spi_nor_mtd_otp_read_write() local 357 rofs = ofs & (rlen - 1); in spi_nor_mtd_otp_read_write() 360 len = min_t(size_t, total_len, rlen - rofs); in spi_nor_mtd_otp_read_write() 399 const size_t rlen = spi_nor_otp_region_len(nor); in spi_nor_mtd_otp_erase() local 415 if (!IS_ALIGNED(len, rlen) || !IS_ALIGNED(from, rlen)) in spi_nor_mtd_otp_erase() 438 len -= rlen; in spi_nor_mtd_otp_erase() 439 from += rlen; in spi_nor_mtd_otp_erase() 452 const size_t rlen = spi_nor_otp_region_len(nor); in spi_nor_mtd_otp_lock() local 460 if (!IS_ALIGNED(len, rlen) || !IS_ALIGNED(from, rlen)) in spi_nor_mtd_otp_lock() 473 len -= rlen; in spi_nor_mtd_otp_lock() [all …]
|
/drivers/scsi/ |
D | scsi_netlink.c | 36 u32 rlen; in scsi_nl_rcv_msg() local 50 rlen = NLMSG_ALIGN(nlh->nlmsg_len); in scsi_nl_rcv_msg() 51 if (rlen > skb->len) in scsi_nl_rcv_msg() 52 rlen = skb->len; in scsi_nl_rcv_msg() 102 skb_pull(skb, rlen); in scsi_nl_rcv_msg()
|
/drivers/usb/misc/ |
D | uss720.c | 505 int rlen; in parport_uss720_epp_write_data() local 512 i = usb_bulk_msg(usbdev, usb_sndbulkpipe(usbdev, 1), (void *)buf, length, &rlen, 20000); in parport_uss720_epp_write_data() 514 printk(KERN_ERR "uss720: sendbulk ep 1 buf %p len %zu rlen %u\n", buf, length, rlen); in parport_uss720_epp_write_data() 516 return rlen; in parport_uss720_epp_write_data() 566 int rlen; in parport_uss720_ecp_write_data() local 573 i = usb_bulk_msg(usbdev, usb_sndbulkpipe(usbdev, 1), (void *)buffer, len, &rlen, 20000); in parport_uss720_ecp_write_data() 575 printk(KERN_ERR "uss720: sendbulk ep 1 buf %p len %zu rlen %u\n", buffer, len, rlen); in parport_uss720_ecp_write_data() 577 return rlen; in parport_uss720_ecp_write_data() 584 int rlen; in parport_uss720_ecp_read_data() local 591 i = usb_bulk_msg(usbdev, usb_rcvbulkpipe(usbdev, 2), buffer, len, &rlen, 20000); in parport_uss720_ecp_read_data() [all …]
|
/drivers/scsi/qedf/ |
D | qedf_fip.c | 85 ssize_t rlen; in qedf_fcoe_process_vlan_resp() local 90 rlen = ntohs(fiph->fip_dl_len) * 4; in qedf_fcoe_process_vlan_resp() 92 while (rlen > 0) { in qedf_fcoe_process_vlan_resp() 100 rlen -= dlen; in qedf_fcoe_process_vlan_resp() 176 size_t rlen, dlen; in qedf_fip_recv() local 231 rlen = ntohs(fiph->fip_dl_len) * FIP_BPW; in qedf_fip_recv() 233 while (rlen >= sizeof(*desc)) { in qedf_fip_recv() 280 rlen -= dlen; in qedf_fip_recv()
|
/drivers/of/ |
D | fdt_address.c | 115 int rlen; in fdt_translate_one() local 119 ranges = fdt_getprop(blob, parent, rprop, &rlen); in fdt_translate_one() 122 if (rlen == 0) { in fdt_translate_one() 132 rlen /= 4; in fdt_translate_one() 134 for (; rlen >= rone; rlen -= rone, ranges += rone) { in fdt_translate_one()
|
/drivers/i2c/busses/ |
D | i2c-xlp9xx.c | 183 u8 rlen, *buf = priv->msg_buf; in xlp9xx_i2c_drain_rx_fifo() local 191 rlen = xlp9xx_read_i2c_reg(priv, XLP9XX_I2C_MRXFIFO); in xlp9xx_i2c_drain_rx_fifo() 206 if (rlen > I2C_SMBUS_BLOCK_MAX || rlen == 0) { in xlp9xx_i2c_drain_rx_fifo() 207 rlen = 0; /*abort transfer */ in xlp9xx_i2c_drain_rx_fifo() 214 *buf++ = rlen; in xlp9xx_i2c_drain_rx_fifo() 216 ++rlen; /* account for error check byte */ in xlp9xx_i2c_drain_rx_fifo() 218 priv->msg_buf_remaining = rlen; in xlp9xx_i2c_drain_rx_fifo() 219 priv->msg_len = rlen + 1; in xlp9xx_i2c_drain_rx_fifo()
|
/drivers/bus/ |
D | uniphier-system-bus.c | 182 int pna, bank, rlen, rone, ret; in uniphier_system_bus_probe() local 216 ranges = of_get_property(dev->of_node, "ranges", &rlen); in uniphier_system_bus_probe() 222 rlen /= sizeof(*ranges); in uniphier_system_bus_probe() 225 for (; rlen >= rone; rlen -= rone) { in uniphier_system_bus_probe()
|
/drivers/gpu/drm/i915/gt/shaders/clear_kernel/ |
D | hsw.asm | 73 … render MsgDesc: media block read MsgCtrl = 0x0 Surface = 1 mlen 1 rlen 1 { align1 1Q }; 78 … render MsgDesc: media block write MsgCtrl = 0x0 Surface = 1 mlen 2 rlen 0 { align1 1Q }; 106 … render MsgDesc: media block write MsgCtrl = 0x0 Surface = 0 mlen 9 rlen 0 { align1 1Q }; 109 … render MsgDesc: media block write MsgCtrl = 0x0 Surface = 0 mlen 9 rlen 0 { align1 1Q }; 119 thread_spawner MsgDesc: mlen 1 rlen 0 { align1 1Q EOT };
|
D | ivb.asm | 72 … render MsgDesc: media block read MsgCtrl = 0x0 Surface = 1 mlen 1 rlen 1 { align1 1Q }; 77 … render MsgDesc: media block write MsgCtrl = 0x0 Surface = 1 mlen 2 rlen 0 { align1 1Q }; 104 … render MsgDesc: media block write MsgCtrl = 0x0 Surface = 0 mlen 9 rlen 0 { align1 1Q }; 107 … render MsgDesc: media block write MsgCtrl = 0x0 Surface = 0 mlen 9 rlen 0 { align1 1Q }; 117 thread_spawner MsgDesc: mlen 1 rlen 0 { align1 1Q EOT };
|
/drivers/media/usb/dvb-usb/ |
D | digitv.c | 26 u8 cmd, u8 vv, u8 *wbuf, int wlen, u8 *rbuf, int rlen) in digitv_ctrl_msg() argument 31 wo = (rbuf == NULL || rlen == 0); /* write-only */ in digitv_ctrl_msg() 33 if (wlen > 4 || rlen > 4) in digitv_ctrl_msg() 41 st->sndbuf[2] = wo ? wlen : rlen; in digitv_ctrl_msg() 48 memcpy(rbuf, &st->rcvbuf[3], rlen); in digitv_ctrl_msg()
|
D | dibusb-common.c | 138 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dibusb_i2c_msg() argument 144 wo = (rbuf == NULL || rlen == 0); 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() 168 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 | 26 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dtv5100_i2c_msg() argument 58 memcpy(st->data, rbuf, rlen); in dtv5100_i2c_msg() 61 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 682 dev->rlen = in monitor_card() 710 dev->rlen = in monitor_card() 755 dev->rlen = in monitor_card() 856 dev->rlen = in monitor_card() 965 ((filp->f_flags & O_NONBLOCK) || (dev->rpos < dev->rlen)))) { in cmm_read() 996 j = min(count, (size_t)(dev->rlen - dev->rpos)); in cmm_read() 1005 j = min(count, (size_t)(dev->rlen - dev->rpos)); in cmm_read() 1016 if (dev->proto == 0 && count > dev->rlen - dev->rpos && i) { in cmm_read() 1024 dev->rpos = dev->rlen + 1; in cmm_read() [all …]
|
/drivers/scsi/fcoe/ |
D | fcoe_ctlr.c | 900 size_t rlen; in fcoe_ctlr_parse_adv() local 916 rlen = ntohs(fiph->fip_dl_len) * 4; in fcoe_ctlr_parse_adv() 917 if (rlen + sizeof(*fiph) > skb->len) in fcoe_ctlr_parse_adv() 921 while (rlen > 0) { in fcoe_ctlr_parse_adv() 923 if (dlen < sizeof(*desc) || dlen > rlen) in fcoe_ctlr_parse_adv() 996 rlen -= dlen; in fcoe_ctlr_parse_adv() 1151 size_t rlen; in fcoe_ctlr_recv_els() local 1161 rlen = ntohs(fiph->fip_dl_len) * 4; in fcoe_ctlr_recv_els() 1162 if (rlen + sizeof(*fiph) > skb->len) in fcoe_ctlr_recv_els() 1166 while (rlen > 0) { in fcoe_ctlr_recv_els() [all …]
|
/drivers/media/dvb-frontends/ |
D | si2168.c | 14 static void cmd_init(struct si2168_cmd *cmd, const u8 *buf, int wlen, int rlen) in cmd_init() argument 18 cmd->rlen = rlen; in cmd_init() 41 if (cmd->rlen) { in si2168_cmd_execute() 46 ret = i2c_master_recv(client, cmd->args, cmd->rlen); in si2168_cmd_execute() 49 } else if (ret != cmd->rlen) { in si2168_cmd_execute() 171 *status, cmd.rlen, cmd.args); in si2168_read_status() 314 cmd.rlen = 1; in si2168_set_frontend()
|
/drivers/staging/rtl8712/ |
D | xmit_linux.c | 46 uint _r8712_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen) in _r8712_pktfile_read() argument 51 len = (rlen > len) ? len : rlen; in _r8712_pktfile_read()
|