Home
last modified time | relevance | path

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

12345

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/ata/
Dlibata-scsi.c1833 unsigned int (*actor)(struct ata_scsi_args *args, u8 *rbuf)) in ata_scsi_rbuf_fill() argument
1835 u8 *rbuf; in ata_scsi_rbuf_fill() local
1840 rbuf = ata_scsi_rbuf_get(cmd, false, &flags); in ata_scsi_rbuf_fill()
1841 rc = actor(args, rbuf); in ata_scsi_rbuf_fill()
1859 static unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf) in ata_scsiop_inq_std() argument
1910 memcpy(rbuf, hdr, sizeof(hdr)); in ata_scsiop_inq_std()
1911 memcpy(&rbuf[8], "ATA ", 8); in ata_scsiop_inq_std()
1912 ata_id_string(args->id, &rbuf[16], ATA_ID_PROD, 16); in ata_scsiop_inq_std()
1915 ata_id_string(args->id, &rbuf[32], ATA_ID_FW_REV + 2, 4); in ata_scsiop_inq_std()
1916 if (strncmp(&rbuf[32], " ", 4) == 0) in ata_scsiop_inq_std()
[all …]
/kernel/linux/linux-5.10/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()
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 …]
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()
Daf9035.c107 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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/sound/isa/wavefront/
Dwavefront_synth.c334 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 …]
/kernel/linux/linux-5.10/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.c104 char rbuf[2]; in do_recv_one() local
107 ret = recv(fdr, rbuf, sizeof(rbuf), 0); in do_recv_one()
119 rbuf[0], (long long)tstop, (long long)texpect); in do_recv_one()
121 if (rbuf[0] != ts->data) in do_recv_one()
132 char rbuf[1]; in do_recv_verify_empty() local
135 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()
/kernel/linux/linux-5.10/crypto/
Dadiantum.c90 } rbuf; member
292 crypto_cipher_decrypt_one(tctx->blockcipher, rctx->rbuf.bytes, in adiantum_finish()
293 rctx->rbuf.bytes); in adiantum_finish()
304 le128_sub(&rctx->rbuf.bignum, &rctx->rbuf.bignum, &digest); in adiantum_finish()
305 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 …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/tty/
Dn_hdlc.c445 struct n_hdlc_buf *rbuf; in n_hdlc_tty_read() local
449 rbuf = *cookie; in n_hdlc_tty_read()
450 if (rbuf) in n_hdlc_tty_read()
465 rbuf = n_hdlc_buf_get(&n_hdlc->rx_buf_list); in n_hdlc_tty_read()
466 if (rbuf) in n_hdlc_tty_read()
486 if (!rbuf) in n_hdlc_tty_read()
488 *cookie = rbuf; in n_hdlc_tty_read()
492 if (offset >= rbuf->count) in n_hdlc_tty_read()
501 ret = rbuf->count - offset; in n_hdlc_tty_read()
504 memcpy(kbuf, rbuf->buf+offset, ret); in n_hdlc_tty_read()
[all …]
/kernel/linux/linux-5.10/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()
274 size_t count, u8 *rbuf, u8 *wbuf) in slim_fill_msg() argument
278 msg->rbuf = rbuf; in slim_fill_msg()
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
Du_audio.c41 void *rbuf; member
229 memset(prm->rbuf, 0, prm->max_psize * params->req_number); in uac_pcm_trigger()
392 req->buf = prm->rbuf + i * ep->maxpacket; in u_audio_start_capture()
470 req->buf = prm->rbuf + i * ep->maxpacket; in u_audio_start_playback()
525 prm->rbuf = kcalloc(params->req_number, prm->max_psize, in g_audio_setup()
527 if (!prm->rbuf) { in g_audio_setup()
547 prm->rbuf = kcalloc(params->req_number, prm->max_psize, in g_audio_setup()
549 if (!prm->rbuf) { in g_audio_setup()
597 kfree(uac->p_prm.rbuf); in g_audio_setup()
598 kfree(uac->c_prm.rbuf); in g_audio_setup()
[all …]
/kernel/linux/linux-5.10/kernel/
Drelay.c1164 static void relay_consume_bytes(struct rchan_buf *rbuf, int bytes_consumed) in relay_consume_bytes() argument
1166 rbuf->bytes_consumed += bytes_consumed; in relay_consume_bytes()
1168 if (rbuf->bytes_consumed >= rbuf->chan->subbuf_size) { in relay_consume_bytes()
1169 relay_subbufs_consumed(rbuf->chan, rbuf->cpu, 1); in relay_consume_bytes()
1170 rbuf->bytes_consumed %= rbuf->chan->subbuf_size; in relay_consume_bytes()
1177 struct rchan_buf *rbuf; in relay_pipe_buf_release() local
1179 rbuf = (struct rchan_buf *)page_private(buf->page); in relay_pipe_buf_release()
1180 relay_consume_bytes(rbuf, buf->private); in relay_pipe_buf_release()
1204 struct rchan_buf *rbuf = in->private_data; in subbuf_splice_actor() local
1205 unsigned int subbuf_size = rbuf->chan->subbuf_size; in subbuf_splice_actor()
[all …]
/kernel/linux/linux-5.10/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));
/kernel/linux/linux-5.10/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);
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/core/
Drtw_eeprom.c191 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()
/kernel/linux/linux-5.10/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()

12345