Home
last modified time | relevance | path

Searched refs:cbuf (Results 1 – 25 of 36) sorted by relevance

12

/linux-6.1.9/drivers/media/pci/pt3/
Dpt3_i2c.c45 static void cmdbuf_add(struct pt3_i2cbuf *cbuf, enum ctl_cmd cmd) in cmdbuf_add() argument
49 if ((cbuf->num_cmds % 2) == 0) in cmdbuf_add()
50 cbuf->tmp = cmd; in cmdbuf_add()
52 cbuf->tmp |= cmd << 4; in cmdbuf_add()
53 buf_idx = cbuf->num_cmds / 2; in cmdbuf_add()
54 if (buf_idx < ARRAY_SIZE(cbuf->data)) in cmdbuf_add()
55 cbuf->data[buf_idx] = cbuf->tmp; in cmdbuf_add()
57 cbuf->num_cmds++; in cmdbuf_add()
60 static void put_end(struct pt3_i2cbuf *cbuf) in put_end() argument
62 cmdbuf_add(cbuf, I_END); in put_end()
[all …]
/linux-6.1.9/drivers/staging/rtl8723bs/os_dep/
Dosdep_service.c163 inline bool rtw_cbuf_full(struct rtw_cbuf *cbuf) in rtw_cbuf_full() argument
165 return (cbuf->write == cbuf->read - 1) ? true : false; in rtw_cbuf_full()
174 inline bool rtw_cbuf_empty(struct rtw_cbuf *cbuf) in rtw_cbuf_empty() argument
176 return (cbuf->write == cbuf->read) ? true : false; in rtw_cbuf_empty()
187 bool rtw_cbuf_push(struct rtw_cbuf *cbuf, void *buf) in rtw_cbuf_push() argument
189 if (rtw_cbuf_full(cbuf)) in rtw_cbuf_push()
192 cbuf->bufs[cbuf->write] = buf; in rtw_cbuf_push()
193 cbuf->write = (cbuf->write + 1) % cbuf->size; in rtw_cbuf_push()
205 void *rtw_cbuf_pop(struct rtw_cbuf *cbuf) in rtw_cbuf_pop() argument
208 if (rtw_cbuf_empty(cbuf)) in rtw_cbuf_pop()
[all …]
/linux-6.1.9/drivers/staging/r8188eu/os_dep/
Dosdep_service.c185 inline bool rtw_cbuf_empty(struct rtw_cbuf *cbuf) in rtw_cbuf_empty() argument
187 return cbuf->write == cbuf->read; in rtw_cbuf_empty()
197 void *rtw_cbuf_pop(struct rtw_cbuf *cbuf) in rtw_cbuf_pop() argument
200 if (rtw_cbuf_empty(cbuf)) in rtw_cbuf_pop()
203 buf = cbuf->bufs[cbuf->read]; in rtw_cbuf_pop()
204 cbuf->read = (cbuf->read + 1) % cbuf->size; in rtw_cbuf_pop()
217 struct rtw_cbuf *cbuf; in rtw_cbuf_alloc() local
219 cbuf = kmalloc(struct_size(cbuf, bufs, size), GFP_KERNEL); in rtw_cbuf_alloc()
221 if (cbuf) { in rtw_cbuf_alloc()
222 cbuf->write = 0; in rtw_cbuf_alloc()
[all …]
/linux-6.1.9/tools/testing/selftests/net/
Dcmsg_sender.c217 ca_write_cmsg_u32(char *cbuf, size_t cbuf_sz, size_t *cmsg_len, in ca_write_cmsg_u32() argument
225 cmsg = (struct cmsghdr *)(cbuf + *cmsg_len); in ca_write_cmsg_u32()
237 cs_write_cmsg(int fd, struct msghdr *msg, char *cbuf, size_t cbuf_sz) in cs_write_cmsg() argument
242 msg->msg_control = cbuf; in cs_write_cmsg()
245 ca_write_cmsg_u32(cbuf, cbuf_sz, &cmsg_len, in cs_write_cmsg()
247 ca_write_cmsg_u32(cbuf, cbuf_sz, &cmsg_len, in cs_write_cmsg()
249 ca_write_cmsg_u32(cbuf, cbuf_sz, &cmsg_len, in cs_write_cmsg()
251 ca_write_cmsg_u32(cbuf, cbuf_sz, &cmsg_len, in cs_write_cmsg()
268 cmsg = (struct cmsghdr *)(cbuf + cmsg_len); in cs_write_cmsg()
286 cmsg = (struct cmsghdr *)(cbuf + cmsg_len); in cs_write_cmsg()
[all …]
Dtls.c142 char cbuf[CMSG_SPACE(sizeof(char))]; in tls_send_cmsg() local
153 msg.msg_control = cbuf; in tls_send_cmsg()
154 msg.msg_controllen = sizeof(cbuf); in tls_send_cmsg()
170 char cbuf[CMSG_SPACE(sizeof(char))]; in tls_recv_cmsg() local
182 msg.msg_control = cbuf; in tls_recv_cmsg()
183 msg.msg_controllen = sizeof(cbuf); in tls_recv_cmsg()
/linux-6.1.9/sound/parisc/
Dharmony.c215 h->cbuf.buf += h->cbuf.count; in snd_harmony_interrupt()
216 h->cbuf.buf %= h->cbuf.size; in snd_harmony_interrupt()
219 h->cbuf.addr + h->cbuf.buf); in snd_harmony_interrupt()
341 harmony_write(h, HARMONY_RNXTADD, h->cbuf.addr); in snd_harmony_capture_trigger()
433 h->cbuf.size = snd_pcm_lib_buffer_bytes(ss); in snd_harmony_capture_prepare()
434 h->cbuf.count = snd_pcm_lib_period_bytes(ss); in snd_harmony_capture_prepare()
435 if (h->cbuf.buf >= h->cbuf.size) in snd_harmony_capture_prepare()
436 h->cbuf.buf = 0; in snd_harmony_capture_prepare()
449 h->cbuf.addr = rt->dma_addr; in snd_harmony_capture_prepare()
494 if ((h->cbuf.addr == 0) || (h->cbuf.size == 0)) in snd_harmony_capture_pointer()
[all …]
Dharmony.h36 struct harmony_buffer cbuf; member
/linux-6.1.9/drivers/platform/x86/
Dintel_scu_ipc.c277 u8 cbuf[IPC_WWBUF_SIZE]; in pwr_reg_rdwr() local
278 u32 *wbuf = (u32 *)&cbuf; in pwr_reg_rdwr()
280 memset(cbuf, 0, sizeof(cbuf)); in pwr_reg_rdwr()
291 cbuf[offset] = addr[nc]; in pwr_reg_rdwr()
292 cbuf[offset + 1] = addr[nc] >> 8; in pwr_reg_rdwr()
301 cbuf[offset] = data[nc]; in pwr_reg_rdwr()
306 cbuf[offset] = data[0]; in pwr_reg_rdwr()
307 cbuf[offset + 1] = data[1]; in pwr_reg_rdwr()
315 memcpy_fromio(cbuf, scu->ipc_base + 0x90, 16); in pwr_reg_rdwr()
/linux-6.1.9/drivers/staging/rtl8723bs/include/
Dosdep_service.h119 bool rtw_cbuf_full(struct rtw_cbuf *cbuf);
120 bool rtw_cbuf_empty(struct rtw_cbuf *cbuf);
121 bool rtw_cbuf_push(struct rtw_cbuf *cbuf, void *buf);
122 void *rtw_cbuf_pop(struct rtw_cbuf *cbuf);
/linux-6.1.9/fs/btrfs/
Dlzo.c64 void *cbuf; /* where compressed data goes */ member
75 kvfree(workspace->cbuf); in lzo_free_workspace()
90 workspace->cbuf = kvmalloc(WORKSPACE_CBUF_LENGTH, GFP_KERNEL); in lzo_alloc_workspace()
91 if (!workspace->mem || !workspace->buf || !workspace->cbuf) in lzo_alloc_workspace()
254 workspace->cbuf, &out_len, in lzo_compress_pages()
263 ret = copy_compressed_data_to_page(workspace->cbuf, out_len, in lzo_compress_pages()
394 copy_compressed_segment(cb, workspace->cbuf, seg_len, &cur_in); in lzo_decompress_bio()
397 ret = lzo1x_decompress_safe(workspace->cbuf, seg_len, in lzo_decompress_bio()
/linux-6.1.9/fs/f2fs/
Dcompress.c197 ret = lzo1x_1_compress(cc->rbuf, cc->rlen, cc->cbuf->cdata, in lzo_compress_pages()
211 ret = lzo1x_decompress_safe(dic->cbuf->cdata, dic->clen, in lzo_decompress_pages()
275 len = LZ4_compress_HC(cc->rbuf, cc->cbuf->cdata, cc->rlen, in lz4hc_compress_pages()
278 len = LZ4_compress_default(cc->rbuf, cc->cbuf->cdata, cc->rlen, in lz4hc_compress_pages()
295 len = LZ4_compress_default(cc->rbuf, cc->cbuf->cdata, cc->rlen, in lz4_compress_pages()
308 ret = LZ4_decompress_safe(dic->cbuf->cdata, dic->rbuf, in lz4_decompress_pages()
394 outbuf.dst = cc->cbuf->cdata; in zstd_compress_pages()
469 inbuf.src = dic->cbuf->cdata; in zstd_decompress_pages()
512 ret = lzorle1x_1_compress(cc->rbuf, cc->rlen, cc->cbuf->cdata, in lzorle_compress_pages()
659 cc->cbuf = f2fs_vmap(cc->cpages, cc->nr_cpages); in f2fs_compress_pages()
[all …]
/linux-6.1.9/drivers/staging/r8188eu/include/
Dosdep_service.h148 bool rtw_cbuf_empty(struct rtw_cbuf *cbuf);
149 void *rtw_cbuf_pop(struct rtw_cbuf *cbuf);
/linux-6.1.9/drivers/hid/
Dhid-lg.c800 static const unsigned char cbuf[] = { in lg_probe() local
803 u8 *buf = kmemdup(cbuf, sizeof(cbuf), GFP_KERNEL); in lg_probe()
810 ret = hid_hw_raw_request(hdev, buf[0], buf, sizeof(cbuf), in lg_probe()
823 ret = hid_hw_raw_request(hdev, buf[0], buf, sizeof(cbuf), in lg_probe()
Dhid-roccat.c55 struct roccat_report cbuf[ROCCAT_CBUF_SIZE]; member
118 report = &device->cbuf[reader->cbuf_start]; in roccat_read()
262 report = &device->cbuf[device->cbuf_end]; in roccat_report_event()
/linux-6.1.9/arch/s390/include/asm/
Dcpacf.h456 u8 *cbuf, unsigned long cbuf_len) in cpacf_trng() argument
462 c.even = (unsigned long)cbuf; in cpacf_trng()
468 : [ucbuf] "+&d" (u.pair), [cbuf] "+&d" (c.pair) in cpacf_trng()
/linux-6.1.9/net/atm/
Dioctl.c171 compat_uptr_t cbuf; in do_vcc_ioctl() local
173 if (get_user(cbuf, &ciobuf->buffer)) in do_vcc_ioctl()
175 buf = compat_ptr(cbuf); in do_vcc_ioctl()
/linux-6.1.9/tools/perf/util/
Dstream.c272 char buf[512], cbuf[256], *s; in print_stream_callchain() local
291 s = callchain_list__sym_name(chain, cbuf, sizeof(cbuf), false); in print_stream_callchain()
/linux-6.1.9/drivers/media/pci/ddbridge/
Dddbridge-core.c454 output->dma->cbuf = 0; in ddb_output_start()
514 input->dma->cbuf = 0; in ddb_input_start()
578 if (output->dma->cbuf != idx) { in ddb_output_free()
579 if ((((output->dma->cbuf + 1) % output->dma->num) == idx) && in ddb_output_free()
602 if ((((output->dma->cbuf + 1) % output->dma->num) == idx) && in ddb_output_write()
608 if (output->dma->cbuf == idx) { in ddb_output_write()
619 if (copy_from_user(output->dma->vbuf[output->dma->cbuf] + in ddb_output_write()
626 output->dma->pbuf[output->dma->cbuf], in ddb_output_write()
633 output->dma->cbuf = ((output->dma->cbuf + 1) % in ddb_output_write()
637 (output->dma->cbuf << 11) | in ddb_output_write()
[all …]
Dddbridge.h150 u32 cbuf; member
/linux-6.1.9/kernel/debug/kdb/
Dkdb_main.c971 static char cbuf[CMD_BUFLEN+2]; in kdb_parse() local
992 cpp = cbuf; in kdb_parse()
1005 if (cpp >= cbuf + CMD_BUFLEN) { in kdb_parse()
1023 if (cpp >= cbuf + CMD_BUFLEN) in kdb_parse()
1537 char cbuf[32]; in kdb_md_line() local
1538 char *c = cbuf; in kdb_md_line()
1543 memset(cbuf, '\0', sizeof(cbuf)); in kdb_md_line()
1593 " ", cbuf); in kdb_md_line()
/linux-6.1.9/fs/ubifs/
Dtnc_commit.c863 idx = c->cbuf + used; in write_index()
988 ubifs_pad(c, c->cbuf + wlen, blen - wlen); in write_index()
992 err = ubifs_leb_write(c, lnum, c->cbuf, buf_offs, blen); in write_index()
1008 memmove(c->cbuf, c->cbuf + blen, used); in write_index()
/linux-6.1.9/drivers/s390/char/
Dcon3270.c600 void *cbuf; in con3270_init() local
638 cbuf = (void *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in con3270_init()
639 add_string_memory(&condev->freemem, cbuf, PAGE_SIZE); in con3270_init()
/linux-6.1.9/drivers/block/mtip32xx/
Dmtip32xx.c1395 char cbuf[42]; in mtip_dump_identify() local
1400 strscpy(cbuf, (char *)(port->identify + 10), 21); in mtip_dump_identify()
1402 "Serial No.: %s\n", cbuf); in mtip_dump_identify()
1404 strscpy(cbuf, (char *)(port->identify + 23), 9); in mtip_dump_identify()
1406 "Firmware Ver.: %s\n", cbuf); in mtip_dump_identify()
1408 strscpy(cbuf, (char *)(port->identify + 27), 41); in mtip_dump_identify()
1409 dev_info(&port->dd->pdev->dev, "Model: %s\n", cbuf); in mtip_dump_identify()
1424 strscpy(cbuf, "A0", 3); in mtip_dump_identify()
1427 strscpy(cbuf, "A2", 3); in mtip_dump_identify()
1430 strscpy(cbuf, "?", 2); in mtip_dump_identify()
[all …]
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_common.c2696 void *cbuf; in ice_discover_dev_caps() local
2699 cbuf = kzalloc(ICE_AQ_MAX_BUF_LEN, GFP_KERNEL); in ice_discover_dev_caps()
2700 if (!cbuf) in ice_discover_dev_caps()
2709 status = ice_aq_list_caps(hw, cbuf, ICE_AQ_MAX_BUF_LEN, &cap_count, in ice_discover_dev_caps()
2712 ice_parse_dev_caps(hw, dev_caps, cbuf, cap_count); in ice_discover_dev_caps()
2713 kfree(cbuf); in ice_discover_dev_caps()
2730 void *cbuf; in ice_discover_func_caps() local
2733 cbuf = kzalloc(ICE_AQ_MAX_BUF_LEN, GFP_KERNEL); in ice_discover_func_caps()
2734 if (!cbuf) in ice_discover_func_caps()
2743 status = ice_aq_list_caps(hw, cbuf, ICE_AQ_MAX_BUF_LEN, &cap_count, in ice_discover_func_caps()
[all …]
/linux-6.1.9/drivers/scsi/lpfc/
Dlpfc_debugfs.c2375 char cbuf[32]; in lpfc_debugfs_dif_err_read() local
2380 cnt = scnprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_wgrd_cnt); in lpfc_debugfs_dif_err_read()
2382 cnt = scnprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_wapp_cnt); in lpfc_debugfs_dif_err_read()
2384 cnt = scnprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_wref_cnt); in lpfc_debugfs_dif_err_read()
2386 cnt = scnprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_rgrd_cnt); in lpfc_debugfs_dif_err_read()
2388 cnt = scnprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_rapp_cnt); in lpfc_debugfs_dif_err_read()
2390 cnt = scnprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_rref_cnt); in lpfc_debugfs_dif_err_read()
2392 cnt = scnprintf(cbuf, 32, "0x%06x\n", in lpfc_debugfs_dif_err_read()
2397 cnt = scnprintf(cbuf, 32, "0x%016llx\n", tmp); in lpfc_debugfs_dif_err_read()
2400 cnt = scnprintf(cbuf, 32, "off\n"); in lpfc_debugfs_dif_err_read()
[all …]

12