/drivers/media/dvb-core/ |
D | dvb_ringbuffer.c | 38 void dvb_ringbuffer_init(struct dvb_ringbuffer *rbuf, void *data, size_t len) in dvb_ringbuffer_init() argument 40 rbuf->pread=rbuf->pwrite=0; in dvb_ringbuffer_init() 41 rbuf->data=data; in dvb_ringbuffer_init() 42 rbuf->size=len; in dvb_ringbuffer_init() 43 rbuf->error=0; in dvb_ringbuffer_init() 45 init_waitqueue_head(&rbuf->queue); in dvb_ringbuffer_init() 47 spin_lock_init(&(rbuf->lock)); in dvb_ringbuffer_init() 52 int dvb_ringbuffer_empty(struct dvb_ringbuffer *rbuf) in dvb_ringbuffer_empty() argument 60 return (rbuf->pread == smp_load_acquire(&rbuf->pwrite)); in dvb_ringbuffer_empty() 65 ssize_t dvb_ringbuffer_free(struct dvb_ringbuffer *rbuf) in dvb_ringbuffer_free() argument [all …]
|
/drivers/ata/ |
D | libata-scsi.c | 1815 unsigned int (*actor)(struct ata_scsi_args *args, u8 *rbuf)) in ata_scsi_rbuf_fill() argument 1846 static unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf) in ata_scsiop_inq_std() argument 1895 memcpy(rbuf, hdr, sizeof(hdr)); in ata_scsiop_inq_std() 1896 memcpy(&rbuf[8], "ATA ", 8); in ata_scsiop_inq_std() 1897 ata_id_string(args->id, &rbuf[16], ATA_ID_PROD, 16); in ata_scsiop_inq_std() 1900 ata_id_string(args->id, &rbuf[32], ATA_ID_FW_REV + 2, 4); in ata_scsiop_inq_std() 1901 if (strncmp(&rbuf[32], " ", 4) == 0) in ata_scsiop_inq_std() 1902 ata_id_string(args->id, &rbuf[32], ATA_ID_FW_REV, 4); in ata_scsiop_inq_std() 1904 if (rbuf[32] == 0 || rbuf[32] == ' ') in ata_scsiop_inq_std() 1905 memcpy(&rbuf[32], "n/a ", 4); in ata_scsiop_inq_std() [all …]
|
/drivers/infiniband/hw/qib/ |
D | qib_common.h | 759 static inline __u32 qib_hdrget_err_flags(const __le32 *rbuf) in qib_hdrget_err_flags() argument 761 return __le32_to_cpu(rbuf[1]) & QLOGIC_IB_RHF_H_ERR_MASK; in qib_hdrget_err_flags() 764 static inline __u32 qib_hdrget_rcv_type(const __le32 *rbuf) in qib_hdrget_rcv_type() argument 766 return (__le32_to_cpu(rbuf[0]) >> QLOGIC_IB_RHF_RCVTYPE_SHIFT) & in qib_hdrget_rcv_type() 770 static inline __u32 qib_hdrget_length_in_bytes(const __le32 *rbuf) in qib_hdrget_length_in_bytes() argument 772 return ((__le32_to_cpu(rbuf[0]) >> QLOGIC_IB_RHF_LENGTH_SHIFT) & in qib_hdrget_length_in_bytes() 776 static inline __u32 qib_hdrget_index(const __le32 *rbuf) in qib_hdrget_index() argument 778 return (__le32_to_cpu(rbuf[0]) >> QLOGIC_IB_RHF_EGRINDEX_SHIFT) & in qib_hdrget_index() 782 static inline __u32 qib_hdrget_seq(const __le32 *rbuf) in qib_hdrget_seq() argument 784 return (__le32_to_cpu(rbuf[1]) >> QLOGIC_IB_RHF_SEQ_SHIFT) & in qib_hdrget_seq() [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() 54 actual_length, rbuf); 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 | lmedm04.c | 141 u8 *wbuf, int wlen, u8 *rbuf, int rlen) in lme2510_usb_talk() argument 159 memcpy(rbuf, st->usb_buffer, rlen); in lme2510_usb_talk() 184 static u8 rbuf[1]; in lme2510_enable_pid() local 203 sizeof(pid_buff) , rbuf, sizeof(rbuf)); in lme2510_enable_pid() 271 u8 *ibuf, *rbuf; in lme2510_int_response() local 289 rbuf = (u8 *) lme_urb->transfer_buffer; in lme2510_int_response() 295 ibuf = (u8 *)&rbuf[i*8]; in lme2510_int_response() 408 static u8 rbuf[1]; in lme2510_pid_filter_ctrl() local 417 sizeof(clear_pid_reg), rbuf, sizeof(rbuf)); in lme2510_pid_filter_ctrl() 476 u8 *wbuf, int wlen, u8 *rbuf, int rlen) in lme2510_msg() argument [all …]
|
D | au6610.c | 15 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in au6610_usb_msg() argument 59 rbuf[0] = usb_buf[4]; in au6610_usb_msg() 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 | af9035.c | 107 memcpy(req->rbuf, &state->buf[ACK_HDR_LEN], req->rlen); in af9035_ctrl_msg() 494 u8 rbuf[4]; in af9035_identify_state() local 496 sizeof(rbuf), rbuf }; in af9035_identify_state() 498 ret = af9035_rd_regs(d, 0x1222, rbuf, 3); in af9035_identify_state() 502 state->chip_version = rbuf[0]; in af9035_identify_state() 503 state->chip_type = rbuf[2] << 8 | rbuf[1] << 0; in af9035_identify_state() 583 dev_dbg(&intf->dev, "reply=%*ph\n", 4, rbuf); in af9035_identify_state() 584 if (rbuf[0] || rbuf[1] || rbuf[2] || rbuf[3]) in af9035_identify_state() 734 u8 rbuf[4]; in af9035_download_firmware() local 737 struct usb_req req_fw_ver = { CMD_FW_QUERYINFO, 0, 1, wbuf, 4, rbuf }; in af9035_download_firmware() [all …]
|
D | gl861.c | 330 u8 wbuf[1], rbuf[2]; in friio_reset() local 363 ret = gl861_ctrl_msg(d, CMD_READ, 0x09 << 9, 0x0100, rbuf, 2); in friio_reset() 366 if (rbuf[0] != 0xff || rbuf[1] != 0xff) in friio_reset() 377 ret = gl861_ctrl_msg(d, CMD_READ, 0x48 << 9, 0x0100, rbuf, 2); in friio_reset() 380 if (rbuf[0] != 0xff || rbuf[1] != 0xff) in friio_reset()
|
/drivers/w1/slaves/ |
D | w1_ds2423.c | 35 u8 rbuf[COUNTER_COUNT * READ_BYTE_COUNT]; in w1_slave_show() local 63 rbuf + (p * READ_BYTE_COUNT), READ_BYTE_COUNT); in w1_slave_show() 67 rbuf[(p * READ_BYTE_COUNT) + ii]); in w1_slave_show() 79 crc = crc16(crc, rbuf, 11); in w1_slave_show() 86 (rbuf + 11) + in w1_slave_show() 94 result |= rbuf[(p * in w1_slave_show()
|
/drivers/video/backlight/ |
D | ili922x.c | 154 unsigned char rbuf[CMD_BUFSIZE]; in ili922x_read_status() local 160 xfer.rx_buf = rbuf; in ili922x_read_status() 182 *rs = (rbuf[2] << 8) + rbuf[3]; in ili922x_read_status() 197 unsigned char rbuf[CMD_BUFSIZE]; in ili922x_read() local 204 xfer_regindex.rx_buf = rbuf; in ili922x_read() 226 xfer_regvalue.rx_buf = &rbuf[send_bytes]; in ili922x_read() 236 *rx = (rbuf[1 + send_bytes] << 8) + rbuf[2 + send_bytes]; in ili922x_read() 251 unsigned char rbuf[CMD_BUFSIZE]; in ili922x_write() local 259 xfer_regindex.rx_buf = rbuf; in ili922x_write() 282 xfer_regvalue.rx_buf = rbuf; in ili922x_write()
|
/drivers/tty/ |
D | n_hdlc.c | 433 struct n_hdlc_buf *rbuf; in n_hdlc_tty_read() local 437 rbuf = *cookie; in n_hdlc_tty_read() 438 if (rbuf) in n_hdlc_tty_read() 453 rbuf = n_hdlc_buf_get(&n_hdlc->rx_buf_list); in n_hdlc_tty_read() 454 if (rbuf) in n_hdlc_tty_read() 474 if (!rbuf) in n_hdlc_tty_read() 476 *cookie = rbuf; in n_hdlc_tty_read() 480 if (offset >= rbuf->count) in n_hdlc_tty_read() 489 ret = rbuf->count - offset; in n_hdlc_tty_read() 492 memcpy(kbuf, rbuf->buf+offset, ret); in n_hdlc_tty_read() [all …]
|
/drivers/slimbus/ |
D | messaging.c | 38 if (msg == NULL || msg->rbuf == NULL) { in slim_msg_response() 45 memcpy(msg->rbuf, reply, len); in slim_msg_response() 188 if (msg->rbuf != NULL) in slim_val_inf_sanity() 200 if (msg->rbuf != NULL && msg->wbuf != NULL) in slim_val_inf_sanity() 275 size_t count, u8 *rbuf, u8 *wbuf) in slim_fill_msg() argument 279 msg->rbuf = rbuf; in slim_fill_msg()
|
D | qcom-ngd-ctrl.c | 787 u8 rbuf[SLIM_MSGQ_BUF_LEN]; in qcom_slim_ngd_xfer_msg() local 851 txn->msg->rbuf = rbuf; in qcom_slim_ngd_xfer_msg() 938 u8 rbuf[SLIM_MSGQ_BUF_LEN]; in qcom_slim_ngd_enable_stream() local 949 txn.msg->rbuf = rbuf; in qcom_slim_ngd_enable_stream() 1026 u8 rbuf[10] = {0}; in qcom_slim_ngd_get_laddr() local 1039 txn.msg->rbuf = rbuf; in qcom_slim_ngd_get_laddr() 1054 if (!memcmp(rbuf, failed_ea, 6)) in qcom_slim_ngd_get_laddr() 1057 *laddr = rbuf[6]; in qcom_slim_ngd_get_laddr()
|
/drivers/media/common/b2c2/ |
D | flexcop-eeprom.c | 17 u32 len, u8 *wbuf, u8 *rbuf, int retries) 23 if (eeprom_lrc_read(adapter, addr, len, rbuf, retries) == 1) 34 u8 rbuf[20]; 45 return eeprom_lrc_write(adapter, 0x3e4, 20, wbuf, rbuf, 4);
|
/drivers/media/usb/dvb-usb/ |
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 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() 55 debug_dump(rbuf,actlen,deb_xfer); in dvb_usb_generic_rw()
|
/drivers/video/fbdev/omap/ |
D | lcd_mipid.c | 55 int wlen, u8 *rbuf, int rlen) in mipid_transfer() argument 97 x->rx_buf = &rbuf[1]; in mipid_transfer() 108 rbuf[0] = w & 0xff; in mipid_transfer() 336 u8 rbuf[2]; in ls041y3_esd_check_mode2() local 356 mipid_read(md, rd->cmd, rbuf, 2); in ls041y3_esd_check_mode2() 364 dev_dbg(&md->spi->dev, "ESD mode 2 state %02x\n", rbuf[1]); in ls041y3_esd_check_mode2() 365 if (rbuf[1] == 0x00) in ls041y3_esd_check_mode2()
|
/drivers/target/ |
D | target_core_spc.c | 741 unsigned char *rbuf; in spc_emulate_inquiry() local 782 rbuf = transport_kmap_data_sg(cmd); in spc_emulate_inquiry() 783 if (rbuf) { in spc_emulate_inquiry() 784 memcpy(rbuf, buf, min_t(u32, SE_INQUIRY_BUF, cmd->data_length)); in spc_emulate_inquiry() 1027 unsigned char buf[SE_MODE_PAGE_BUF], *rbuf; in spc_emulate_modesense() local 1138 rbuf = transport_kmap_data_sg(cmd); in spc_emulate_modesense() 1139 if (rbuf) { in spc_emulate_modesense() 1140 memcpy(rbuf, buf, min_t(u32, SE_MODE_PAGE_BUF, cmd->data_length)); in spc_emulate_modesense() 1212 unsigned char *rbuf; in spc_emulate_request_sense() local 1225 rbuf = transport_kmap_data_sg(cmd); in spc_emulate_request_sense() [all …]
|
/drivers/input/touchscreen/ |
D | raydium_i2c_ts.c | 301 u8 rbuf[5] = { 0 }; in raydium_i2c_query_ts_bootloader_info() local 312 error = raydium_i2c_send(client, RM_CMD_BOOT_ACK, rbuf, 1); in raydium_i2c_query_ts_bootloader_info() 318 error = raydium_i2c_read(client, RM_CMD_BOOT_CHK, rbuf, sizeof(rbuf)); in raydium_i2c_query_ts_bootloader_info() 321 error, rbuf + 1); in raydium_i2c_query_ts_bootloader_info() 324 hw_ver = get_unaligned_be32(rbuf + 1); in raydium_i2c_query_ts_bootloader_info() 444 u8 rbuf[sizeof(ack_ok)]; in raydium_i2c_bl_chk_state() local 455 &rbuf[0], 1); in raydium_i2c_bl_chk_state() 456 if (!error && rbuf[0] == RM_BOOT_RDY) in raydium_i2c_bl_chk_state() 463 rbuf, sizeof(rbuf)); in raydium_i2c_bl_chk_state() 464 if (!error && !memcmp(rbuf, ack_ok, sizeof(ack_ok))) in raydium_i2c_bl_chk_state()
|
/drivers/media/pci/ddbridge/ |
D | ddbridge-i2c.c | 93 i2c->rbuf, msg[0].len); in ddb_i2c_master_xfer() 114 i2c->rbuf, in ddb_i2c_master_xfer() 163 i2c->rbuf = i2c->wbuf; /* + i2c->bsize / 2 */ in ddb_i2c_add() 167 ddbwritel(dev, ((i2c->rbuf & 0xffff) << 16) | (i2c->wbuf & 0xffff), in ddb_i2c_add()
|
D | ddbridge-i2c.h | 25 u8 *wbuf, u32 wlen, u8 *rbuf, u32 rlen) in i2c_io() argument 30 .buf = rbuf, .len = rlen } }; in i2c_io()
|
/drivers/usb/gadget/function/ |
D | u_audio.c | 48 void *rbuf; member 348 memset(prm->rbuf, 0, prm->max_psize * params->req_number); in uac_pcm_trigger() 619 req->buf = prm->rbuf + i * ep->maxpacket; in u_audio_start_capture() 738 req->buf = prm->rbuf + i * ep->maxpacket; in u_audio_start_playback() 1195 prm->rbuf = kcalloc(params->req_number, prm->max_psize, in g_audio_setup() 1197 if (!prm->rbuf) { in g_audio_setup() 1220 prm->rbuf = kcalloc(params->req_number, prm->max_psize, in g_audio_setup() 1222 if (!prm->rbuf) { in g_audio_setup() 1406 kfree(uac->p_prm.rbuf); in g_audio_setup() 1407 kfree(uac->c_prm.rbuf); in g_audio_setup() [all …]
|
/drivers/infiniband/hw/irdma/ |
D | cm.c | 2461 struct irdma_puda_buf *rbuf) in irdma_handle_rst_pkt() argument 2519 struct irdma_puda_buf *rbuf) in irdma_handle_rcv_mpa() argument 2522 int datasize = rbuf->datalen; in irdma_handle_rcv_mpa() 2523 u8 *dataloc = rbuf->data; in irdma_handle_rcv_mpa() 2628 struct irdma_puda_buf *rbuf) in irdma_handle_syn_pkt() argument 2630 struct tcphdr *tcph = (struct tcphdr *)rbuf->tcph; in irdma_handle_syn_pkt() 2694 struct irdma_puda_buf *rbuf) in irdma_handle_synack_pkt() argument 2696 struct tcphdr *tcph = (struct tcphdr *)rbuf->tcph; in irdma_handle_synack_pkt() 2767 struct irdma_puda_buf *rbuf) in irdma_handle_ack_pkt() argument 2769 struct tcphdr *tcph = (struct tcphdr *)rbuf->tcph; in irdma_handle_ack_pkt() [all …]
|
/drivers/iio/adc/ |
D | ad9467.c | 129 unsigned char tbuf[2], rbuf[1]; in ad9467_spi_read() local 137 rbuf, ARRAY_SIZE(rbuf)); in ad9467_spi_read() 142 return rbuf[0]; in ad9467_spi_read()
|
/drivers/net/wireless/intel/iwlwifi/fw/ |
D | debugfs.c | 17 char rbuf[buflen]; \ 45 sizeof(data->rbuf),\ 46 data->rbuf); \ 52 data->rbuf, data->rlen); \
|
/drivers/media/pci/ngene/ |
D | ngene-dvb.c | 82 struct dvb_ringbuffer *rbuf = &dev->tsin_rbuf; in ts_poll() local 86 poll_wait(file, &rbuf->queue, wait); in ts_poll() 89 if (!dvb_ringbuffer_empty(rbuf)) in ts_poll()
|