/Linux-v5.4/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 …]
|
/Linux-v5.4/include/media/ |
D | dvb_ringbuffer.h | 61 extern void dvb_ringbuffer_init(struct dvb_ringbuffer *rbuf, void *data, 69 extern int dvb_ringbuffer_empty(struct dvb_ringbuffer *rbuf); 78 extern ssize_t dvb_ringbuffer_free(struct dvb_ringbuffer *rbuf); 87 extern ssize_t dvb_ringbuffer_avail(struct dvb_ringbuffer *rbuf); 98 extern void dvb_ringbuffer_reset(struct dvb_ringbuffer *rbuf); 109 extern void dvb_ringbuffer_flush(struct dvb_ringbuffer *rbuf); 117 extern void dvb_ringbuffer_flush_spinlock_wakeup(struct dvb_ringbuffer *rbuf); 125 #define DVB_RINGBUFFER_PEEK(rbuf, offs) \ argument 126 ((rbuf)->data[((rbuf)->pread + (offs)) % (rbuf)->size]) 134 #define DVB_RINGBUFFER_SKIP(rbuf, num) {\ argument [all …]
|
/Linux-v5.4/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 | gl861.c | 18 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in gl861_i2c_msg() argument 22 int wo = (rbuf == NULL || rlen == 0); /* write-only */ in gl861_i2c_msg() 60 memcpy(rbuf, buf, rlen); in gl861_i2c_msg() 212 gl861_i2c_read_ex(struct dvb_usb_device *d, u8 addr, u8 *rbuf, u16 rlen) in gl861_i2c_read_ex() argument 225 memcpy(buf, rbuf, rlen); in gl861_i2c_read_ex() 392 u8 wbuf[2], rbuf[2]; in friio_reset() local 430 ret = gl861_i2c_read_ex(d, 0x09, rbuf, 2); in friio_reset() 433 if (rbuf[0] != 0xff || rbuf[1] != 0xff) in friio_reset() 443 ret = gl861_i2c_read_ex(d, 0x48, rbuf, 2); in friio_reset() 446 if (rbuf[0] != 0xff || rbuf[1] != 0xff) in friio_reset()
|
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 | 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() 407 static u8 rbuf[1]; in lme2510_pid_filter_ctrl() local 416 sizeof(clear_pid_reg), rbuf, sizeof(rbuf)); in lme2510_pid_filter_ctrl() 472 u8 *wbuf, int wlen, u8 *rbuf, int rlen) in lme2510_msg() argument [all …]
|
D | af9035.c | 107 memcpy(req->rbuf, &state->buf[ACK_HDR_LEN], req->rlen); in af9035_ctrl_msg() 486 u8 rbuf[4]; in af9035_identify_state() local 488 sizeof(rbuf), rbuf }; in af9035_identify_state() 490 ret = af9035_rd_regs(d, 0x1222, rbuf, 3); in af9035_identify_state() 494 state->chip_version = rbuf[0]; in af9035_identify_state() 495 state->chip_type = rbuf[2] << 8 | rbuf[1] << 0; in af9035_identify_state() 575 dev_dbg(&intf->dev, "reply=%*ph\n", 4, rbuf); in af9035_identify_state() 576 if (rbuf[0] || rbuf[1] || rbuf[2] || rbuf[3]) in af9035_identify_state() 726 u8 rbuf[4]; in af9035_download_firmware() local 729 struct usb_req req_fw_ver = { CMD_FW_QUERYINFO, 0, 1, wbuf, 4, rbuf }; in af9035_download_firmware() [all …]
|
/Linux-v5.4/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 …]
|
/Linux-v5.4/drivers/ata/ |
D | libata-scsi.c | 2123 unsigned int (*actor)(struct ata_scsi_args *args, u8 *rbuf)) in ata_scsi_rbuf_fill() argument 2125 u8 *rbuf; in ata_scsi_rbuf_fill() local 2130 rbuf = ata_scsi_rbuf_get(cmd, false, &flags); in ata_scsi_rbuf_fill() 2131 rc = actor(args, rbuf); in ata_scsi_rbuf_fill() 2149 static unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf) in ata_scsiop_inq_std() argument 2200 memcpy(rbuf, hdr, sizeof(hdr)); in ata_scsiop_inq_std() 2201 memcpy(&rbuf[8], "ATA ", 8); in ata_scsiop_inq_std() 2202 ata_id_string(args->id, &rbuf[16], ATA_ID_PROD, 16); in ata_scsiop_inq_std() 2205 ata_id_string(args->id, &rbuf[32], ATA_ID_FW_REV + 2, 4); in ata_scsiop_inq_std() 2206 if (strncmp(&rbuf[32], " ", 4) == 0) in ata_scsiop_inq_std() [all …]
|
/Linux-v5.4/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()
|
/Linux-v5.4/sound/isa/wavefront/ |
D | wavefront_synth.c | 334 int cmd, unsigned char *rbuf, unsigned char *wbuf) in snd_wavefront_cmd() argument 354 wfcmd->write_cnt = (unsigned long) rbuf; in snd_wavefront_cmd() 355 rbuf = NULL; in snd_wavefront_cmd() 418 rbuf[0] = WF_ST_EMPTY; in snd_wavefront_cmd() 447 rbuf[i] = c; in snd_wavefront_cmd() 450 DPRINT (WF_DEBUG_DATA, "read[%d] = 0x%x\n",i, rbuf[i]); in snd_wavefront_cmd() 618 unsigned char rbuf[32], wbuf[32]; in wavefront_get_sample_status() local 623 if (snd_wavefront_cmd (dev, WFC_GET_NSAMPLES, rbuf, wbuf)) { in wavefront_get_sample_status() 635 if (snd_wavefront_cmd (dev, WFC_IDENTIFY_SAMPLE_TYPE, rbuf, wbuf)) { in wavefront_get_sample_status() 642 dev->sample_status[i] = (WF_SLOT_FILLED|rbuf[0]); in wavefront_get_sample_status() [all …]
|
/Linux-v5.4/security/integrity/ima/ |
D | ima_crypto.c | 209 char *rbuf[2] = { NULL, }; in ima_calc_file_hash_atfm() local 240 rbuf[0] = ima_alloc_pages(i_size, &rbuf_size[0], 1); in ima_calc_file_hash_atfm() 241 if (!rbuf[0]) { in ima_calc_file_hash_atfm() 253 rbuf[1] = ima_alloc_pages(i_size - rbuf_size[0], in ima_calc_file_hash_atfm() 258 if (!rbuf[1] && offset) { in ima_calc_file_hash_atfm() 269 rc = integrity_kernel_read(file, offset, rbuf[active], in ima_calc_file_hash_atfm() 282 if (rbuf[1] && offset) { in ima_calc_file_hash_atfm() 292 sg_init_one(&sg[0], rbuf[active], rbuf_len); in ima_calc_file_hash_atfm() 297 if (rbuf[1]) in ima_calc_file_hash_atfm() 303 ima_free_pages(rbuf[0], rbuf_size[0]); in ima_calc_file_hash_atfm() [all …]
|
/Linux-v5.4/tools/testing/selftests/net/ |
D | psock_lib.h | 113 char buf[DATA_LEN], rbuf[DATA_LEN]; in pair_udp_send_char() local 122 if (read(fds[1], rbuf, sizeof(rbuf)) != sizeof(rbuf)) { in pair_udp_send_char() 126 if (memcmp(buf, rbuf, sizeof(buf))) { in pair_udp_send_char()
|
D | so_txtime.c | 96 char rbuf[2]; in do_recv_one() local 99 ret = recv(fdr, rbuf, sizeof(rbuf), 0); in do_recv_one() 109 rbuf[0], tstop, texpect); in do_recv_one() 111 if (rbuf[0] != ts->data) in do_recv_one() 120 char rbuf[1]; in do_recv_verify_empty() local 123 ret = recv(fdr, rbuf, sizeof(rbuf), 0); in do_recv_verify_empty()
|
D | udpgso_bench_rx.c | 249 static char rbuf[ETH_MAX_MTU]; in do_flush_udp() local 252 len = cfg_read_all ? sizeof(rbuf) : 0; in do_flush_udp() 256 ret = recv(fd, rbuf, len, MSG_TRUNC | MSG_DONTWAIT); in do_flush_udp() 258 ret = recv_msg(fd, rbuf, len, &gso_size); in do_flush_udp() 270 do_verify_udp(rbuf, ret); in do_flush_udp()
|
/Linux-v5.4/drivers/video/backlight/ |
D | ili922x.c | 152 unsigned char rbuf[CMD_BUFSIZE]; in ili922x_read_status() local 158 xfer.rx_buf = rbuf; in ili922x_read_status() 180 *rs = (rbuf[2] << 8) + rbuf[3]; in ili922x_read_status() 195 unsigned char rbuf[CMD_BUFSIZE]; in ili922x_read() local 202 xfer_regindex.rx_buf = rbuf; in ili922x_read() 224 xfer_regvalue.rx_buf = &rbuf[send_bytes]; in ili922x_read() 234 *rx = (rbuf[1 + send_bytes] << 8) + rbuf[2 + send_bytes]; in ili922x_read() 249 unsigned char rbuf[CMD_BUFSIZE]; in ili922x_write() local 257 xfer_regindex.rx_buf = rbuf; in ili922x_write() 280 xfer_regvalue.rx_buf = rbuf; in ili922x_write()
|
/Linux-v5.4/crypto/ |
D | adiantum.c | 91 } rbuf; member 301 crypto_cipher_decrypt_one(tctx->blockcipher, rctx->rbuf.bytes, in adiantum_finish() 302 rctx->rbuf.bytes); in adiantum_finish() 313 le128_sub(&rctx->rbuf.bignum, &rctx->rbuf.bignum, &digest); in adiantum_finish() 314 scatterwalk_map_and_copy(&rctx->rbuf.bignum, req->dst, in adiantum_finish() 355 scatterwalk_map_and_copy(&rctx->rbuf.bignum, req->src, in adiantum_crypt() 357 le128_add(&rctx->rbuf.bignum, &rctx->rbuf.bignum, &digest); in adiantum_crypt() 361 crypto_cipher_encrypt_one(tctx->blockcipher, rctx->rbuf.bytes, in adiantum_crypt() 362 rctx->rbuf.bytes); in adiantum_crypt() 367 rctx->rbuf.words[4] = cpu_to_le32(1); in adiantum_crypt() [all …]
|
/Linux-v5.4/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() 187 if (msg->rbuf != NULL) in slim_val_inf_sanity() 199 if (msg->rbuf != NULL && msg->wbuf != NULL) in slim_val_inf_sanity() 273 size_t count, u8 *rbuf, u8 *wbuf) in slim_fill_msg() argument 277 msg->rbuf = rbuf; in slim_fill_msg()
|
/Linux-v5.4/drivers/usb/gadget/function/ |
D | u_audio.c | 41 void *rbuf; member 224 memset(prm->rbuf, 0, prm->max_psize * params->req_number); in uac_pcm_trigger() 397 req->buf = prm->rbuf + i * prm->max_psize; in u_audio_start_capture() 473 req->buf = prm->rbuf + i * prm->max_psize; in u_audio_start_playback() 528 prm->rbuf = kcalloc(params->req_number, prm->max_psize, in g_audio_setup() 530 if (!prm->rbuf) { in g_audio_setup() 550 prm->rbuf = kcalloc(params->req_number, prm->max_psize, in g_audio_setup() 552 if (!prm->rbuf) { in g_audio_setup() 600 kfree(uac->p_prm.rbuf); in g_audio_setup() 601 kfree(uac->c_prm.rbuf); in g_audio_setup() [all …]
|
/Linux-v5.4/kernel/ |
D | relay.c | 1160 static void relay_consume_bytes(struct rchan_buf *rbuf, int bytes_consumed) in relay_consume_bytes() argument 1162 rbuf->bytes_consumed += bytes_consumed; in relay_consume_bytes() 1164 if (rbuf->bytes_consumed >= rbuf->chan->subbuf_size) { in relay_consume_bytes() 1165 relay_subbufs_consumed(rbuf->chan, rbuf->cpu, 1); in relay_consume_bytes() 1166 rbuf->bytes_consumed %= rbuf->chan->subbuf_size; in relay_consume_bytes() 1173 struct rchan_buf *rbuf; in relay_pipe_buf_release() local 1175 rbuf = (struct rchan_buf *)page_private(buf->page); in relay_pipe_buf_release() 1176 relay_consume_bytes(rbuf, buf->private); in relay_pipe_buf_release() 1201 struct rchan_buf *rbuf = in->private_data; in subbuf_splice_actor() local 1202 unsigned int subbuf_size = rbuf->chan->subbuf_size; in subbuf_splice_actor() [all …]
|
/Linux-v5.4/Documentation/media/kapi/ |
D | dtv-common.rst | 37 free = dvb_ringbuffer_free(rbuf); 39 count = dvb_ringbuffer_write(rbuf, buffer, buflen); 44 avail = dvb_ringbuffer_avail(rbuf); 46 count = dvb_ringbuffer_read(rbuf, buffer, min(avail, bufsize));
|
/Linux-v5.4/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);
|
/Linux-v5.4/drivers/staging/rtl8723bs/core/ |
D | rtw_eeprom.c | 191 u8 eeprom_read(_adapter *padapter, u32 addr_off, u8 sz, u8 *rbuf) in eeprom_read() argument 202 rbuf[idx++] = (u8) ((stmp>>8)&0xff); /*return hogh-part of the short*/ in eeprom_read() 211 rbuf[idx++] = (u8) (stmp&0xff); in eeprom_read() 212 rbuf[idx++] = (u8) ((stmp>>8)&0xff); in eeprom_read() 218 rbuf[idx] = (u8)(stmp & 0xff); in eeprom_read()
|
/Linux-v5.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()
|
/Linux-v5.4/drivers/tty/ |
D | n_hdlc.c | 565 struct n_hdlc_buf *rbuf; in n_hdlc_tty_read() local 594 rbuf = n_hdlc_buf_get(&n_hdlc->rx_buf_list); in n_hdlc_tty_read() 595 if (rbuf) { in n_hdlc_tty_read() 596 if (rbuf->count > nr) { in n_hdlc_tty_read() 601 if (copy_to_user(buf, rbuf->buf, rbuf->count)) in n_hdlc_tty_read() 604 ret = rbuf->count; in n_hdlc_tty_read() 609 kfree(rbuf); in n_hdlc_tty_read() 611 n_hdlc_buf_put(&n_hdlc->rx_free_buf_list, rbuf); in n_hdlc_tty_read()
|