Home
last modified time | relevance | path

Searched refs:rbuf (Results 1 – 25 of 112) sorted by relevance

12345

/linux-6.1.9/drivers/media/dvb-core/
Ddvb_ringbuffer.c38 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.1.9/include/media/
Ddvb_ringbuffer.h61 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.1.9/drivers/ata/
Dlibata-scsi.c1775 unsigned int (*actor)(struct ata_scsi_args *args, u8 *rbuf)) in ata_scsi_rbuf_fill() argument
1806 static unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf) in ata_scsiop_inq_std() argument
1855 memcpy(rbuf, hdr, sizeof(hdr)); in ata_scsiop_inq_std()
1856 memcpy(&rbuf[8], "ATA ", 8); in ata_scsiop_inq_std()
1857 ata_id_string(args->id, &rbuf[16], ATA_ID_PROD, 16); in ata_scsiop_inq_std()
1860 ata_id_string(args->id, &rbuf[32], ATA_ID_FW_REV + 2, 4); in ata_scsiop_inq_std()
1861 if (strncmp(&rbuf[32], " ", 4) == 0) in ata_scsiop_inq_std()
1862 ata_id_string(args->id, &rbuf[32], ATA_ID_FW_REV, 4); in ata_scsiop_inq_std()
1864 if (rbuf[32] == 0 || rbuf[32] == ' ') in ata_scsiop_inq_std()
1865 memcpy(&rbuf[32], "n/a ", 4); in ata_scsiop_inq_std()
[all …]
/linux-6.1.9/drivers/media/usb/dvb-usb-v2/
Ddvb_usb_urb.c12 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()
Dau6610.c15 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()
Dlmedm04.c141 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 …]
Daf9035.c107 memcpy(req->rbuf, &state->buf[ACK_HDR_LEN], req->rlen); in af9035_ctrl_msg()
487 u8 rbuf[4]; in af9035_identify_state() local
489 sizeof(rbuf), rbuf }; in af9035_identify_state()
491 ret = af9035_rd_regs(d, 0x1222, rbuf, 3); in af9035_identify_state()
495 state->chip_version = rbuf[0]; in af9035_identify_state()
496 state->chip_type = rbuf[2] << 8 | rbuf[1] << 0; in af9035_identify_state()
576 dev_dbg(&intf->dev, "reply=%*ph\n", 4, rbuf); in af9035_identify_state()
577 if (rbuf[0] || rbuf[1] || rbuf[2] || rbuf[3]) in af9035_identify_state()
727 u8 rbuf[4]; in af9035_download_firmware() local
730 struct usb_req req_fw_ver = { CMD_FW_QUERYINFO, 0, 1, wbuf, 4, rbuf }; in af9035_download_firmware()
[all …]
Dgl861.c330 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.1.9/drivers/infiniband/hw/qib/
Dqib_common.h759 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.1.9/sound/isa/wavefront/
Dwavefront_synth.c334 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.1.9/drivers/w1/slaves/
Dw1_ds2423.c35 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.1.9/tools/testing/selftests/net/
Dpsock_lib.h113 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()
Dso_txtime.c117 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()
Dudpgso_bench_rx.c252 static char rbuf[ETH_MAX_MTU]; in do_flush_udp() local
255 len = cfg_read_all ? sizeof(rbuf) : 0; in do_flush_udp()
259 ret = recv(fd, rbuf, len, MSG_TRUNC | MSG_DONTWAIT); in do_flush_udp()
261 ret = recv_msg(fd, rbuf, len, &gso_size); in do_flush_udp()
273 do_verify_udp(rbuf, ret); in do_flush_udp()
/linux-6.1.9/crypto/
Dadiantum.c91 } 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()
347 scatterwalk_map_and_copy(&rctx->rbuf.bignum, req->src, in adiantum_crypt()
349 le128_add(&rctx->rbuf.bignum, &rctx->rbuf.bignum, &digest); in adiantum_crypt()
353 crypto_cipher_encrypt_one(tctx->blockcipher, rctx->rbuf.bytes, in adiantum_crypt()
354 rctx->rbuf.bytes); in adiantum_crypt()
359 rctx->rbuf.words[4] = cpu_to_le32(1); in adiantum_crypt()
[all …]
/linux-6.1.9/drivers/video/backlight/
Dili922x.c154 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.1.9/security/integrity/ima/
Dima_crypto.c334 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.1.9/drivers/tty/
Dn_hdlc.c433 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.1.9/drivers/slimbus/
Dmessaging.c38 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.1.9/kernel/
Drelay.c1075 static void relay_consume_bytes(struct rchan_buf *rbuf, int bytes_consumed) in relay_consume_bytes() argument
1077 rbuf->bytes_consumed += bytes_consumed; in relay_consume_bytes()
1079 if (rbuf->bytes_consumed >= rbuf->chan->subbuf_size) { in relay_consume_bytes()
1080 relay_subbufs_consumed(rbuf->chan, rbuf->cpu, 1); in relay_consume_bytes()
1081 rbuf->bytes_consumed %= rbuf->chan->subbuf_size; in relay_consume_bytes()
1088 struct rchan_buf *rbuf; in relay_pipe_buf_release() local
1090 rbuf = (struct rchan_buf *)page_private(buf->page); in relay_pipe_buf_release()
1091 relay_consume_bytes(rbuf, buf->private); in relay_pipe_buf_release()
1115 struct rchan_buf *rbuf = in->private_data; in subbuf_splice_actor() local
1116 unsigned int subbuf_size = rbuf->chan->subbuf_size; in subbuf_splice_actor()
[all …]
/linux-6.1.9/Documentation/driver-api/media/
Ddtv-common.rst37 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-6.1.9/drivers/media/common/b2c2/
Dflexcop-eeprom.c17 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.1.9/drivers/media/usb/dvb-usb/
Ddvb-usb-urb.c12 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.1.9/drivers/video/fbdev/omap/
Dlcd_mipid.c55 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()
/linux-6.1.9/drivers/media/pci/ddbridge/
Dddbridge-i2c.c93 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()

12345