/Linux-v5.4/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 …]
|
/Linux-v5.4/drivers/staging/rtl8723bs/os_dep/ |
D | osdep_service.c | 371 inline bool rtw_cbuf_full(struct rtw_cbuf *cbuf) in rtw_cbuf_full() argument 373 return (cbuf->write == cbuf->read - 1) ? true : false; in rtw_cbuf_full() 382 inline bool rtw_cbuf_empty(struct rtw_cbuf *cbuf) in rtw_cbuf_empty() argument 384 return (cbuf->write == cbuf->read) ? true : false; in rtw_cbuf_empty() 395 bool rtw_cbuf_push(struct rtw_cbuf *cbuf, void *buf) in rtw_cbuf_push() argument 397 if (rtw_cbuf_full(cbuf)) in rtw_cbuf_push() 400 DBG_871X("%s on %u\n", __func__, cbuf->write); in rtw_cbuf_push() 401 cbuf->bufs[cbuf->write] = buf; in rtw_cbuf_push() 402 cbuf->write = (cbuf->write + 1) % cbuf->size; in rtw_cbuf_push() 414 void *rtw_cbuf_pop(struct rtw_cbuf *cbuf) in rtw_cbuf_pop() argument [all …]
|
/Linux-v5.4/drivers/net/appletalk/ |
D | ltpc.c | 242 static int do_read(struct net_device *dev, void *cbuf, int cbuflen, 271 unsigned char *cbuf; member 299 printk("enqueued a 0x%02x command\n",qel->cbuf[0]); in enQ() 321 for(i=0;i<n;i++) printk("%02x ",qel->cbuf[i]); in deQ() 545 qels[0].cbuf = rescbuf; in idle() 574 memcpy(ltdmacbuf,q->cbuf,q->cbuflen); in idle() 594 qels[0].cbuf = rescbuf; in idle() 646 static int do_write(struct net_device *dev, void *cbuf, int cbuflen, in do_write() argument 654 qels[i].cbuf = cbuf; in do_write() 670 static int do_read(struct net_device *dev, void *cbuf, int cbuflen, in do_read() argument [all …]
|
/Linux-v5.4/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
|
/Linux-v5.4/drivers/platform/x86/ |
D | intel_scu_ipc.c | 217 u8 cbuf[IPC_WWBUF_SIZE]; in pwr_reg_rdwr() local 218 u32 *wbuf = (u32 *)&cbuf; in pwr_reg_rdwr() 220 memset(cbuf, 0, sizeof(cbuf)); in pwr_reg_rdwr() 230 cbuf[offset] = addr[nc]; in pwr_reg_rdwr() 231 cbuf[offset + 1] = addr[nc] >> 8; in pwr_reg_rdwr() 240 cbuf[offset] = data[nc]; in pwr_reg_rdwr() 245 cbuf[offset] = data[0]; in pwr_reg_rdwr() 246 cbuf[offset + 1] = data[1]; in pwr_reg_rdwr() 254 memcpy_fromio(cbuf, scu->ipc_base + 0x90, 16); in pwr_reg_rdwr()
|
/Linux-v5.4/fs/btrfs/ |
D | lzo.c | 60 void *cbuf; /* where compressed data goes */ member 91 kvfree(workspace->cbuf); in lzo_free_workspace() 106 workspace->cbuf = kvmalloc(lzo1x_worst_compress(PAGE_SIZE), GFP_KERNEL); in lzo_alloc_workspace() 107 if (!workspace->mem || !workspace->buf || !workspace->cbuf) in lzo_alloc_workspace() 188 ret = lzo1x_1_compress(data_in, in_len, workspace->cbuf, in lzo_compress_pages() 207 buf = workspace->cbuf; in lzo_compress_pages() 384 buf = workspace->cbuf; in lzo_decompress_bio()
|
/Linux-v5.4/drivers/staging/rtl8723bs/include/ |
D | osdep_service.h | 257 bool rtw_cbuf_full(struct rtw_cbuf *cbuf); 258 bool rtw_cbuf_empty(struct rtw_cbuf *cbuf); 259 bool rtw_cbuf_push(struct rtw_cbuf *cbuf, void *buf); 260 void *rtw_cbuf_pop(struct rtw_cbuf *cbuf);
|
/Linux-v5.4/drivers/hid/ |
D | hid-lg.c | 814 static const unsigned char cbuf[] = { in lg_probe() local 817 u8 *buf = kmemdup(cbuf, sizeof(cbuf), GFP_KERNEL); in lg_probe() 824 ret = hid_hw_raw_request(hdev, buf[0], buf, sizeof(cbuf), in lg_probe() 837 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() 260 report = &device->cbuf[device->cbuf_end]; in roccat_report_event()
|
/Linux-v5.4/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()
|
/Linux-v5.4/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
|
/Linux-v5.4/net/atm/ |
D | resources.c | 211 compat_uptr_t cbuf; in atm_dev_ioctl() local 213 if (get_user(cbuf, &ciobuf->buffer)) in atm_dev_ioctl() 215 buf = compat_ptr(cbuf); in atm_dev_ioctl()
|
/Linux-v5.4/drivers/tty/ |
D | n_gsm.c | 562 u8 cbuf[10]; in gsm_send() local 567 cbuf[0] = GSM0_SOF; in gsm_send() 568 cbuf[1] = (addr << 2) | (cr << 1) | EA; in gsm_send() 569 cbuf[2] = control; in gsm_send() 570 cbuf[3] = EA; /* Length of data = 0 */ in gsm_send() 571 cbuf[4] = 0xFF - gsm_fcs_add_block(INIT_FCS, cbuf + 1, 3); in gsm_send() 572 cbuf[5] = GSM0_SOF; in gsm_send() 582 len = gsm_stuff_frame(ibuf, cbuf + 1, 3); in gsm_send() 584 cbuf[0] = GSM1_SOF; in gsm_send() 585 cbuf[len + 1] = GSM1_SOF; in gsm_send() [all …]
|
/Linux-v5.4/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()
|
/Linux-v5.4/fs/ubifs/ |
D | tnc_commit.c | 843 idx = c->cbuf + used; in write_index() 968 ubifs_pad(c, c->cbuf + wlen, blen - wlen); in write_index() 972 err = ubifs_leb_write(c, lnum, c->cbuf, buf_offs, blen); in write_index() 988 memmove(c->cbuf, c->cbuf + blen, used); in write_index()
|
D | super.c | 1318 c->cbuf = kmalloc(sz, GFP_NOFS); in mount_ubifs() 1319 if (!c->cbuf) { in mount_ubifs() 1595 kfree(c->cbuf); in mount_ubifs() 1636 kfree(c->cbuf); in ubifs_umount()
|
/Linux-v5.4/kernel/debug/kdb/ |
D | kdb_main.c | 915 static char cbuf[CMD_BUFLEN+2]; in kdb_parse() local 936 cpp = cbuf; in kdb_parse() 949 if (cpp >= cbuf + CMD_BUFLEN) { in kdb_parse() 967 if (cpp >= cbuf + CMD_BUFLEN) in kdb_parse() 1493 char cbuf[32]; in kdb_md_line() local 1494 char *c = cbuf; in kdb_md_line() 1499 memset(cbuf, '\0', sizeof(cbuf)); in kdb_md_line() 1549 " ", cbuf); in kdb_md_line()
|
/Linux-v5.4/fs/dlm/ |
D | lowcomms.c | 67 struct cbuf { struct 73 static void cbuf_add(struct cbuf *cb, int n) in cbuf_add() argument 78 static int cbuf_data(struct cbuf *cb) in cbuf_data() 83 static void cbuf_init(struct cbuf *cb, int size) in cbuf_init() 89 static void cbuf_eat(struct cbuf *cb, int n) in cbuf_eat() 96 static bool cbuf_empty(struct cbuf *cb) in cbuf_empty() 118 struct cbuf cb;
|
/Linux-v5.4/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()
|
/Linux-v5.4/drivers/block/mtip32xx/ |
D | mtip32xx.c | 1406 char cbuf[42]; in mtip_dump_identify() local 1411 strlcpy(cbuf, (char *)(port->identify+10), 21); in mtip_dump_identify() 1413 "Serial No.: %s\n", cbuf); in mtip_dump_identify() 1415 strlcpy(cbuf, (char *)(port->identify+23), 9); in mtip_dump_identify() 1417 "Firmware Ver.: %s\n", cbuf); in mtip_dump_identify() 1419 strlcpy(cbuf, (char *)(port->identify+27), 41); in mtip_dump_identify() 1420 dev_info(&port->dd->pdev->dev, "Model: %s\n", cbuf); in mtip_dump_identify() 1435 strlcpy(cbuf, "A0", 3); in mtip_dump_identify() 1438 strlcpy(cbuf, "A2", 3); in mtip_dump_identify() 1441 strlcpy(cbuf, "?", 2); in mtip_dump_identify() [all …]
|
/Linux-v5.4/drivers/scsi/lpfc/ |
D | lpfc_debugfs.c | 2171 char cbuf[32]; in lpfc_debugfs_dif_err_read() local 2176 cnt = scnprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_wgrd_cnt); in lpfc_debugfs_dif_err_read() 2178 cnt = scnprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_wapp_cnt); in lpfc_debugfs_dif_err_read() 2180 cnt = scnprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_wref_cnt); in lpfc_debugfs_dif_err_read() 2182 cnt = scnprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_rgrd_cnt); in lpfc_debugfs_dif_err_read() 2184 cnt = scnprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_rapp_cnt); in lpfc_debugfs_dif_err_read() 2186 cnt = scnprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_rref_cnt); in lpfc_debugfs_dif_err_read() 2188 cnt = scnprintf(cbuf, 32, "0x%06x\n", in lpfc_debugfs_dif_err_read() 2193 cnt = scnprintf(cbuf, 32, "0x%016llx\n", tmp); in lpfc_debugfs_dif_err_read() 2196 cnt = scnprintf(cbuf, 32, "off\n"); in lpfc_debugfs_dif_err_read() [all …]
|
/Linux-v5.4/tools/testing/selftests/net/ |
D | tls.c | 1014 char cbuf[CMSG_SPACE(sizeof(char))]; in TEST_F() local 1029 msg.msg_control = cbuf; in TEST_F() 1030 msg.msg_controllen = sizeof(cbuf); in TEST_F()
|
/Linux-v5.4/sound/core/ |
D | compress_offload.c | 312 char __user* cbuf = (char __user*)buf; in snd_compr_write() local 313 retval = stream->ops->copy(stream, cbuf, avail); in snd_compr_write()
|