/kernel/linux/linux-5.10/drivers/media/pci/pt3/ |
D | pt3_i2c.c | 45 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 …]
|
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/os_dep/ |
D | osdep_service.c | 226 inline bool rtw_cbuf_full(struct rtw_cbuf *cbuf) in rtw_cbuf_full() argument 228 return (cbuf->write == cbuf->read - 1) ? true : false; in rtw_cbuf_full() 237 inline bool rtw_cbuf_empty(struct rtw_cbuf *cbuf) in rtw_cbuf_empty() argument 239 return (cbuf->write == cbuf->read) ? true : false; in rtw_cbuf_empty() 250 bool rtw_cbuf_push(struct rtw_cbuf *cbuf, void *buf) in rtw_cbuf_push() argument 252 if (rtw_cbuf_full(cbuf)) in rtw_cbuf_push() 255 DBG_871X("%s on %u\n", __func__, cbuf->write); in rtw_cbuf_push() 256 cbuf->bufs[cbuf->write] = buf; in rtw_cbuf_push() 257 cbuf->write = (cbuf->write + 1) % cbuf->size; in rtw_cbuf_push() 269 void *rtw_cbuf_pop(struct rtw_cbuf *cbuf) in rtw_cbuf_pop() argument [all …]
|
/kernel/linux/linux-5.10/drivers/net/appletalk/ |
D | ltpc.c | 244 static int do_read(struct net_device *dev, void *cbuf, int cbuflen, 273 unsigned char *cbuf; member 301 printk("enqueued a 0x%02x command\n",qel->cbuf[0]); in enQ() 323 for(i=0;i<n;i++) printk("%02x ",qel->cbuf[i]); in deQ() 547 qels[0].cbuf = rescbuf; in idle() 576 memcpy(ltdmacbuf,q->cbuf,q->cbuflen); in idle() 596 qels[0].cbuf = rescbuf; in idle() 648 static int do_write(struct net_device *dev, void *cbuf, int cbuflen, in do_write() argument 656 qels[i].cbuf = cbuf; in do_write() 672 static int do_read(struct net_device *dev, void *cbuf, int cbuflen, in do_read() argument [all …]
|
/kernel/linux/linux-5.10/sound/parisc/ |
D | harmony.c | 215 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 …]
|
D | harmony.h | 36 struct harmony_buffer cbuf; member
|
/kernel/linux/linux-5.10/drivers/platform/x86/ |
D | intel_scu_ipc.c | 277 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()
|
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/include/ |
D | osdep_service.h | 163 bool rtw_cbuf_full(struct rtw_cbuf *cbuf); 164 bool rtw_cbuf_empty(struct rtw_cbuf *cbuf); 165 bool rtw_cbuf_push(struct rtw_cbuf *cbuf, void *buf); 166 void *rtw_cbuf_pop(struct rtw_cbuf *cbuf);
|
/kernel/linux/linux-5.10/fs/btrfs/ |
D | lzo.c | 60 void *cbuf; /* where compressed data goes */ member 71 kvfree(workspace->cbuf); in lzo_free_workspace() 86 workspace->cbuf = kvmalloc(lzo1x_worst_compress(PAGE_SIZE), GFP_KERNEL); in lzo_alloc_workspace() 87 if (!workspace->mem || !workspace->buf || !workspace->cbuf) in lzo_alloc_workspace() 164 ret = lzo1x_1_compress(data_in, in_len, workspace->cbuf, in lzo_compress_pages() 183 buf = workspace->cbuf; in lzo_compress_pages() 360 buf = workspace->cbuf; in lzo_decompress_bio()
|
/kernel/linux/linux-5.10/fs/f2fs/ |
D | compress.c | 199 ret = lzo1x_1_compress(cc->rbuf, cc->rlen, cc->cbuf->cdata, in lzo_compress_pages() 213 ret = lzo1x_decompress_safe(dic->cbuf->cdata, dic->clen, in lzo_decompress_pages() 267 len = LZ4_compress_default(cc->rbuf, cc->cbuf->cdata, cc->rlen, in lz4_compress_pages() 280 ret = LZ4_decompress_safe(dic->cbuf->cdata, dic->rbuf, in lz4_decompress_pages() 361 outbuf.dst = cc->cbuf->cdata; in zstd_compress_pages() 436 inbuf.src = dic->cbuf->cdata; in zstd_decompress_pages() 479 ret = lzorle1x_1_compress(cc->rbuf, cc->rlen, cc->cbuf->cdata, in lzorle_compress_pages() 626 cc->cbuf = f2fs_vmap(cc->cpages, cc->nr_cpages); in f2fs_compress_pages() 627 if (!cc->cbuf) { in f2fs_compress_pages() 643 cc->cbuf->clen = cpu_to_le32(cc->clen); in f2fs_compress_pages() [all …]
|
/kernel/linux/linux-5.10/drivers/hid/ |
D | hid-lg.c | 820 static const unsigned char cbuf[] = { in lg_probe() local 823 u8 *buf = kmemdup(cbuf, sizeof(cbuf), GFP_KERNEL); in lg_probe() 830 ret = hid_hw_raw_request(hdev, buf[0], buf, sizeof(cbuf), in lg_probe() 843 ret = hid_hw_raw_request(hdev, buf[0], buf, sizeof(cbuf), in lg_probe()
|
D | hid-roccat.c | 55 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()
|
/kernel/linux/linux-5.10/arch/s390/include/asm/ |
D | cpacf.h | 444 u8 *cbuf, unsigned long cbuf_len) in cpacf_trng() argument 449 register unsigned long r4 asm("4") = (unsigned long) cbuf; in cpacf_trng() 456 [cbuf] "+a" (r4), [cbuflen] "+d" (r5) in cpacf_trng()
|
/kernel/linux/linux-5.10/net/atm/ |
D | ioctl.c | 171 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()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | stream.c | 272 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()
|
/kernel/linux/linux-5.10/drivers/media/pci/ddbridge/ |
D | ddbridge-core.c | 463 output->dma->cbuf = 0; in ddb_output_start() 523 input->dma->cbuf = 0; in ddb_input_start() 587 if (output->dma->cbuf != idx) { in ddb_output_free() 588 if ((((output->dma->cbuf + 1) % output->dma->num) == idx) && in ddb_output_free() 611 if ((((output->dma->cbuf + 1) % output->dma->num) == idx) && in ddb_output_write() 617 if (output->dma->cbuf == idx) { in ddb_output_write() 628 if (copy_from_user(output->dma->vbuf[output->dma->cbuf] + in ddb_output_write() 635 output->dma->pbuf[output->dma->cbuf], in ddb_output_write() 642 output->dma->cbuf = ((output->dma->cbuf + 1) % in ddb_output_write() 646 (output->dma->cbuf << 11) | in ddb_output_write() [all …]
|
D | ddbridge.h | 159 u32 cbuf; member
|
/kernel/linux/linux-5.10/drivers/watchdog/ |
D | intel_scu_watchdog.c | 113 u8 cbuf[16] = { '\0' }; in watchdog_set_ipc() local 116 ipc_wbuf = (u32 *)&cbuf; in watchdog_set_ipc()
|
/kernel/linux/linux-5.10/fs/ubifs/ |
D | tnc_commit.c | 863 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()
|
/kernel/linux/linux-5.10/drivers/tty/ |
D | n_gsm.c | 583 u8 cbuf[10]; in gsm_send() local 588 cbuf[0] = GSM0_SOF; in gsm_send() 589 cbuf[1] = (addr << 2) | (cr << 1) | EA; in gsm_send() 590 cbuf[2] = control; in gsm_send() 591 cbuf[3] = EA; /* Length of data = 0 */ in gsm_send() 592 cbuf[4] = 0xFF - gsm_fcs_add_block(INIT_FCS, cbuf + 1, 3); in gsm_send() 593 cbuf[5] = GSM0_SOF; in gsm_send() 603 len = gsm_stuff_frame(ibuf, cbuf + 1, 3); in gsm_send() 605 cbuf[0] = GSM1_SOF; in gsm_send() 606 cbuf[len + 1] = GSM1_SOF; in gsm_send() [all …]
|
/kernel/linux/linux-5.10/kernel/debug/kdb/ |
D | kdb_main.c | 973 static char cbuf[CMD_BUFLEN+2]; in kdb_parse() local 994 cpp = cbuf; in kdb_parse() 1007 if (cpp >= cbuf + CMD_BUFLEN) { in kdb_parse() 1025 if (cpp >= cbuf + CMD_BUFLEN) in kdb_parse() 1552 char cbuf[32]; in kdb_md_line() local 1553 char *c = cbuf; in kdb_md_line() 1558 memset(cbuf, '\0', sizeof(cbuf)); in kdb_md_line() 1608 " ", cbuf); in kdb_md_line()
|
/kernel/linux/linux-5.10/drivers/s390/char/ |
D | con3270.c | 597 void *cbuf; in con3270_init() local 636 cbuf = (void *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in con3270_init() 637 add_string_memory(&condev->freemem, cbuf, PAGE_SIZE); in con3270_init()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/ |
D | ice_common.c | 2231 void *cbuf; in ice_discover_dev_caps() local 2233 cbuf = kzalloc(ICE_AQ_MAX_BUF_LEN, GFP_KERNEL); in ice_discover_dev_caps() 2234 if (!cbuf) in ice_discover_dev_caps() 2243 status = ice_aq_list_caps(hw, cbuf, ICE_AQ_MAX_BUF_LEN, &cap_count, in ice_discover_dev_caps() 2246 ice_parse_dev_caps(hw, dev_caps, cbuf, cap_count); in ice_discover_dev_caps() 2247 kfree(cbuf); in ice_discover_dev_caps() 2265 void *cbuf; in ice_discover_func_caps() local 2267 cbuf = kzalloc(ICE_AQ_MAX_BUF_LEN, GFP_KERNEL); in ice_discover_func_caps() 2268 if (!cbuf) in ice_discover_func_caps() 2277 status = ice_aq_list_caps(hw, cbuf, ICE_AQ_MAX_BUF_LEN, &cap_count, in ice_discover_func_caps() [all …]
|
/kernel/linux/linux-5.10/drivers/block/mtip32xx/ |
D | mtip32xx.c | 1407 char cbuf[42]; in mtip_dump_identify() local 1412 strlcpy(cbuf, (char *)(port->identify+10), 21); in mtip_dump_identify() 1414 "Serial No.: %s\n", cbuf); in mtip_dump_identify() 1416 strlcpy(cbuf, (char *)(port->identify+23), 9); in mtip_dump_identify() 1418 "Firmware Ver.: %s\n", cbuf); in mtip_dump_identify() 1420 strlcpy(cbuf, (char *)(port->identify+27), 41); in mtip_dump_identify() 1421 dev_info(&port->dd->pdev->dev, "Model: %s\n", cbuf); in mtip_dump_identify() 1436 strlcpy(cbuf, "A0", 3); in mtip_dump_identify() 1439 strlcpy(cbuf, "A2", 3); in mtip_dump_identify() 1442 strlcpy(cbuf, "?", 2); in mtip_dump_identify() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/lpfc/ |
D | lpfc_debugfs.c | 2377 char cbuf[32]; in lpfc_debugfs_dif_err_read() local 2382 cnt = scnprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_wgrd_cnt); in lpfc_debugfs_dif_err_read() 2384 cnt = scnprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_wapp_cnt); in lpfc_debugfs_dif_err_read() 2386 cnt = scnprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_wref_cnt); in lpfc_debugfs_dif_err_read() 2388 cnt = scnprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_rgrd_cnt); in lpfc_debugfs_dif_err_read() 2390 cnt = scnprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_rapp_cnt); in lpfc_debugfs_dif_err_read() 2392 cnt = scnprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_rref_cnt); in lpfc_debugfs_dif_err_read() 2394 cnt = scnprintf(cbuf, 32, "0x%06x\n", in lpfc_debugfs_dif_err_read() 2399 cnt = scnprintf(cbuf, 32, "0x%016llx\n", tmp); in lpfc_debugfs_dif_err_read() 2402 cnt = scnprintf(cbuf, 32, "off\n"); in lpfc_debugfs_dif_err_read() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
D | tls.c | 1115 char cbuf[CMSG_SPACE(sizeof(char))]; in TEST_F() local 1130 msg.msg_control = cbuf; in TEST_F() 1131 msg.msg_controllen = sizeof(cbuf); in TEST_F()
|