/linux-6.6.21/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-6.6.21/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-6.6.21/drivers/ata/ |
D | libata-scsi.c | 1798 unsigned int (*actor)(struct ata_scsi_args *args, u8 *rbuf)) in ata_scsi_rbuf_fill() argument 1829 static unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf) in ata_scsiop_inq_std() argument 1881 memcpy(rbuf, hdr, sizeof(hdr)); in ata_scsiop_inq_std() 1882 memcpy(&rbuf[8], "ATA ", 8); in ata_scsiop_inq_std() 1883 ata_id_string(args->id, &rbuf[16], ATA_ID_PROD, 16); in ata_scsiop_inq_std() 1886 ata_id_string(args->id, &rbuf[32], ATA_ID_FW_REV + 2, 4); in ata_scsiop_inq_std() 1887 if (strncmp(&rbuf[32], " ", 4) == 0) in ata_scsiop_inq_std() 1888 ata_id_string(args->id, &rbuf[32], ATA_ID_FW_REV, 4); in ata_scsiop_inq_std() 1890 if (rbuf[32] == 0 || rbuf[32] == ' ') in ata_scsiop_inq_std() 1891 memcpy(&rbuf[32], "n/a ", 4); in ata_scsiop_inq_std() [all …]
|
/linux-6.6.21/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 | 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() 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 | af9035.c | 107 memcpy(req->rbuf, &state->buf[ACK_HDR_LEN], req->rlen); in af9035_ctrl_msg() 493 u8 rbuf[4]; in af9035_identify_state() local 495 sizeof(rbuf), rbuf }; in af9035_identify_state() 497 ret = af9035_rd_regs(d, 0x1222, rbuf, 3); in af9035_identify_state() 501 state->chip_version = rbuf[0]; in af9035_identify_state() 502 state->chip_type = rbuf[2] << 8 | rbuf[1] << 0; in af9035_identify_state() 582 dev_dbg(&intf->dev, "reply=%*ph\n", 4, rbuf); in af9035_identify_state() 583 if (rbuf[0] || rbuf[1] || rbuf[2] || rbuf[3]) in af9035_identify_state() 733 u8 rbuf[4]; in af9035_download_firmware() local 736 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()
|
/linux-6.6.21/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-6.6.21/sound/isa/wavefront/ |
D | wavefront_synth.c | 334 int cmd, unsigned char *rbuf, unsigned char *wbuf) in snd_wavefront_cmd() argument 355 wfcmd->write_cnt = (unsigned long) rbuf; in snd_wavefront_cmd() 356 rbuf = NULL; in snd_wavefront_cmd() 421 rbuf[0] = WF_ST_EMPTY; in snd_wavefront_cmd() 450 rbuf[i] = c; in snd_wavefront_cmd() 453 DPRINT (WF_DEBUG_DATA, "read[%d] = 0x%x\n",i, rbuf[i]); in snd_wavefront_cmd() 620 unsigned char rbuf[32], wbuf[32]; in wavefront_get_sample_status() local 625 if (snd_wavefront_cmd (dev, WFC_GET_NSAMPLES, rbuf, wbuf)) { in wavefront_get_sample_status() 637 if (snd_wavefront_cmd (dev, WFC_IDENTIFY_SAMPLE_TYPE, rbuf, wbuf)) { in wavefront_get_sample_status() 644 dev->sample_status[i] = (WF_SLOT_FILLED|rbuf[0]); in wavefront_get_sample_status() [all …]
|
/linux-6.6.21/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-6.6.21/tools/testing/selftests/net/ |
D | psock_lib.h | 115 char buf[DATA_LEN], rbuf[DATA_LEN]; in pair_udp_send_char() local 124 if (read(fds[1], rbuf, sizeof(rbuf)) != sizeof(rbuf)) { in pair_udp_send_char() 128 if (memcmp(buf, rbuf, sizeof(buf))) { in pair_udp_send_char()
|
D | so_txtime.c | 117 char rbuf[2]; in do_recv_one() local 120 ret = recv(fdr, rbuf, sizeof(rbuf), 0); in do_recv_one() 132 rbuf[0], (long long)tstop, (long long)texpect); in do_recv_one() 134 if (rbuf[0] != ts->data) in do_recv_one() 143 char rbuf[1]; in do_recv_verify_empty() local 146 ret = recv(fdr, rbuf, sizeof(rbuf), 0); in do_recv_verify_empty()
|
D | udpgso_bench_rx.c | 250 static char rbuf[ETH_MAX_MTU]; in do_flush_udp() local 253 len = cfg_read_all ? sizeof(rbuf) : 0; in do_flush_udp() 257 ret = recv(fd, rbuf, len, MSG_TRUNC | MSG_DONTWAIT); in do_flush_udp() 259 ret = recv_msg(fd, rbuf, len, &gso_size); in do_flush_udp() 271 do_verify_udp(rbuf, ret); in do_flush_udp()
|
/linux-6.6.21/crypto/ |
D | adiantum.c | 91 } rbuf; member 293 crypto_cipher_decrypt_one(tctx->blockcipher, rctx->rbuf.bytes, in adiantum_finish() 294 rctx->rbuf.bytes); in adiantum_finish() 305 le128_sub(&rctx->rbuf.bignum, &rctx->rbuf.bignum, &digest); in adiantum_finish() 306 scatterwalk_map_and_copy(&rctx->rbuf.bignum, req->dst, in adiantum_finish() 346 scatterwalk_map_and_copy(&rctx->rbuf.bignum, req->src, in adiantum_crypt() 348 le128_add(&rctx->rbuf.bignum, &rctx->rbuf.bignum, &digest); in adiantum_crypt() 352 crypto_cipher_encrypt_one(tctx->blockcipher, rctx->rbuf.bytes, in adiantum_crypt() 353 rctx->rbuf.bytes); in adiantum_crypt() 358 rctx->rbuf.words[4] = cpu_to_le32(1); in adiantum_crypt() [all …]
|
/linux-6.6.21/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()
|
/linux-6.6.21/security/integrity/ima/ |
D | ima_crypto.c | 334 char *rbuf[2] = { NULL, }; in ima_calc_file_hash_atfm() local 365 rbuf[0] = ima_alloc_pages(i_size, &rbuf_size[0], 1); in ima_calc_file_hash_atfm() 366 if (!rbuf[0]) { in ima_calc_file_hash_atfm() 378 rbuf[1] = ima_alloc_pages(i_size - rbuf_size[0], in ima_calc_file_hash_atfm() 383 if (!rbuf[1] && offset) { in ima_calc_file_hash_atfm() 394 rc = integrity_kernel_read(file, offset, rbuf[active], in ima_calc_file_hash_atfm() 407 if (rbuf[1] && offset) { in ima_calc_file_hash_atfm() 417 sg_init_one(&sg[0], rbuf[active], rbuf_len); in ima_calc_file_hash_atfm() 422 if (rbuf[1]) in ima_calc_file_hash_atfm() 428 ima_free_pages(rbuf[0], rbuf_size[0]); in ima_calc_file_hash_atfm() [all …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/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()
|
/linux-6.6.21/kernel/ |
D | relay.c | 1076 static void relay_consume_bytes(struct rchan_buf *rbuf, int bytes_consumed) in relay_consume_bytes() argument 1078 rbuf->bytes_consumed += bytes_consumed; in relay_consume_bytes() 1080 if (rbuf->bytes_consumed >= rbuf->chan->subbuf_size) { in relay_consume_bytes() 1081 relay_subbufs_consumed(rbuf->chan, rbuf->cpu, 1); in relay_consume_bytes() 1082 rbuf->bytes_consumed %= rbuf->chan->subbuf_size; in relay_consume_bytes() 1089 struct rchan_buf *rbuf; in relay_pipe_buf_release() local 1091 rbuf = (struct rchan_buf *)page_private(buf->page); in relay_pipe_buf_release() 1092 relay_consume_bytes(rbuf, buf->private); in relay_pipe_buf_release() 1116 struct rchan_buf *rbuf = in->private_data; in subbuf_splice_actor() local 1117 unsigned int subbuf_size = rbuf->chan->subbuf_size; in subbuf_splice_actor() [all …]
|
/linux-6.6.21/Documentation/driver-api/media/ |
D | dtv-common.rst | 28 free = dvb_ringbuffer_free(rbuf); 30 count = dvb_ringbuffer_write(rbuf, buffer, buflen); 35 avail = dvb_ringbuffer_avail(rbuf); 37 count = dvb_ringbuffer_read(rbuf, buffer, min(avail, bufsize));
|
/linux-6.6.21/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-6.6.21/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-6.6.21/drivers/video/fbdev/omap/ |
D | lcd_mipid.c | 57 int wlen, u8 *rbuf, int rlen) in mipid_transfer() argument 99 x->rx_buf = &rbuf[1]; in mipid_transfer() 110 rbuf[0] = w & 0xff; in mipid_transfer() 338 u8 rbuf[2]; in ls041y3_esd_check_mode2() local 358 mipid_read(md, rd->cmd, rbuf, 2); in ls041y3_esd_check_mode2() 366 dev_dbg(&md->spi->dev, "ESD mode 2 state %02x\n", rbuf[1]); in ls041y3_esd_check_mode2() 367 if (rbuf[1] == 0x00) in ls041y3_esd_check_mode2()
|
/linux-6.6.21/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()
|