/Linux-v4.19/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-v4.19/drivers/staging/rtl8723bs/os_dep/ |
D | osdep_service.c | 387 inline bool rtw_cbuf_full(struct rtw_cbuf *cbuf) in rtw_cbuf_full() argument 389 return (cbuf->write == cbuf->read-1)? true : false; in rtw_cbuf_full() 398 inline bool rtw_cbuf_empty(struct rtw_cbuf *cbuf) in rtw_cbuf_empty() argument 400 return (cbuf->write == cbuf->read)? true : false; in rtw_cbuf_empty() 411 bool rtw_cbuf_push(struct rtw_cbuf *cbuf, void *buf) in rtw_cbuf_push() argument 413 if (rtw_cbuf_full(cbuf)) in rtw_cbuf_push() 416 DBG_871X("%s on %u\n", __func__, cbuf->write); in rtw_cbuf_push() 417 cbuf->bufs[cbuf->write] = buf; in rtw_cbuf_push() 418 cbuf->write = (cbuf->write+1)%cbuf->size; in rtw_cbuf_push() 430 void *rtw_cbuf_pop(struct rtw_cbuf *cbuf) in rtw_cbuf_pop() argument [all …]
|
/Linux-v4.19/drivers/isdn/isdnloop/ |
D | isdnloop.c | 1129 char cbuf[80]; in isdnloop_command() local 1156 sprintf(cbuf, "00;FV2ON\n01;EAZ1\n02;EAZ2\n"); in isdnloop_command() 1157 i = isdnloop_writecmd(cbuf, strlen(cbuf), 0, card); in isdnloop_command() 1169 sprintf(cbuf, "00;FV2OFF\n"); in isdnloop_command() 1170 i = isdnloop_writecmd(cbuf, strlen(cbuf), 0, card); in isdnloop_command() 1203 snprintf(cbuf, sizeof(cbuf), in isdnloop_command() 1207 i = isdnloop_writecmd(cbuf, strlen(cbuf), 0, card); in isdnloop_command() 1215 cbuf[0] = 0; in isdnloop_command() 1218 sprintf(cbuf, "%02d;BX75\n", (int) a); in isdnloop_command() 1222 sprintf(cbuf, "%02d;BX2T\n", (int) a); in isdnloop_command() [all …]
|
/Linux-v4.19/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-v4.19/sound/parisc/ |
D | harmony.c | 228 h->cbuf.buf += h->cbuf.count; in snd_harmony_interrupt() 229 h->cbuf.buf %= h->cbuf.size; in snd_harmony_interrupt() 232 h->cbuf.addr + h->cbuf.buf); in snd_harmony_interrupt() 354 harmony_write(h, HARMONY_RNXTADD, h->cbuf.addr); in snd_harmony_capture_trigger() 446 h->cbuf.size = snd_pcm_lib_buffer_bytes(ss); in snd_harmony_capture_prepare() 447 h->cbuf.count = snd_pcm_lib_period_bytes(ss); in snd_harmony_capture_prepare() 448 if (h->cbuf.buf >= h->cbuf.size) in snd_harmony_capture_prepare() 449 h->cbuf.buf = 0; in snd_harmony_capture_prepare() 462 h->cbuf.addr = rt->dma_addr; in snd_harmony_capture_prepare() 507 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-v4.19/drivers/platform/x86/ |
D | intel_scu_ipc.c | 219 u8 cbuf[IPC_WWBUF_SIZE]; in pwr_reg_rdwr() local 220 u32 *wbuf = (u32 *)&cbuf; in pwr_reg_rdwr() 222 memset(cbuf, 0, sizeof(cbuf)); in pwr_reg_rdwr() 232 cbuf[offset] = addr[nc]; in pwr_reg_rdwr() 233 cbuf[offset + 1] = addr[nc] >> 8; in pwr_reg_rdwr() 242 cbuf[offset] = data[nc]; in pwr_reg_rdwr() 247 cbuf[offset] = data[0]; in pwr_reg_rdwr() 248 cbuf[offset + 1] = data[1]; in pwr_reg_rdwr() 256 memcpy_fromio(cbuf, scu->ipc_base + 0x90, 16); in pwr_reg_rdwr()
|
/Linux-v4.19/fs/btrfs/ |
D | lzo.c | 60 void *cbuf; /* where compressed data goes */ member 69 kvfree(workspace->cbuf); in lzo_free_workspace() 84 workspace->cbuf = kvmalloc(lzo1x_worst_compress(PAGE_SIZE), GFP_KERNEL); in lzo_alloc_workspace() 85 if (!workspace->mem || !workspace->buf || !workspace->cbuf) in lzo_alloc_workspace() 166 ret = lzo1x_1_compress(data_in, in_len, workspace->cbuf, in lzo_compress_pages() 185 buf = workspace->cbuf; in lzo_compress_pages() 362 buf = workspace->cbuf; in lzo_decompress_bio()
|
/Linux-v4.19/drivers/staging/rtl8723bs/include/ |
D | osdep_service.h | 259 bool rtw_cbuf_full(struct rtw_cbuf *cbuf); 260 bool rtw_cbuf_empty(struct rtw_cbuf *cbuf); 261 bool rtw_cbuf_push(struct rtw_cbuf *cbuf, void *buf); 262 void *rtw_cbuf_pop(struct rtw_cbuf *cbuf);
|
/Linux-v4.19/drivers/hid/ |
D | hid-lg.c | 759 static const unsigned char cbuf[] = { in lg_probe() local 762 u8 *buf = kmemdup(cbuf, sizeof(cbuf), GFP_KERNEL); in lg_probe() 769 ret = hid_hw_raw_request(hdev, buf[0], buf, sizeof(cbuf), in lg_probe() 782 ret = hid_hw_raw_request(hdev, buf[0], buf, sizeof(cbuf), in lg_probe()
|
D | hid-roccat.c | 58 struct roccat_report cbuf[ROCCAT_CBUF_SIZE]; member 121 report = &device->cbuf[reader->cbuf_start]; in roccat_read() 263 report = &device->cbuf[device->cbuf_end]; in roccat_report_event()
|
/Linux-v4.19/arch/s390/include/asm/ |
D | cpacf.h | 435 u8 *cbuf, unsigned long cbuf_len) in cpacf_trng() argument 440 register unsigned long r4 asm("4") = (unsigned long) cbuf; in cpacf_trng() 447 [cbuf] "+a" (r4), [cbuflen] "+d" (r5) in cpacf_trng()
|
/Linux-v4.19/drivers/media/pci/ddbridge/ |
D | ddbridge-core.c | 467 output->dma->cbuf = 0; in ddb_output_start() 527 input->dma->cbuf = 0; in ddb_input_start() 591 if (output->dma->cbuf != idx) { in ddb_output_free() 592 if ((((output->dma->cbuf + 1) % output->dma->num) == idx) && in ddb_output_free() 615 if ((((output->dma->cbuf + 1) % output->dma->num) == idx) && in ddb_output_write() 621 if (output->dma->cbuf == idx) { in ddb_output_write() 632 if (copy_from_user(output->dma->vbuf[output->dma->cbuf] + in ddb_output_write() 639 output->dma->pbuf[output->dma->cbuf], in ddb_output_write() 646 output->dma->cbuf = ((output->dma->cbuf + 1) % in ddb_output_write() 650 (output->dma->cbuf << 11) | in ddb_output_write() [all …]
|
D | ddbridge.h | 166 u32 cbuf; member
|
/Linux-v4.19/net/atm/ |
D | resources.c | 215 compat_uptr_t cbuf; in atm_dev_ioctl() local 217 if (get_user(cbuf, &ciobuf->buffer)) in atm_dev_ioctl() 219 buf = compat_ptr(cbuf); in atm_dev_ioctl()
|
/Linux-v4.19/fs/ubifs/ |
D | tnc_commit.c | 846 idx = c->cbuf + used; in write_index() 953 ubifs_pad(c, c->cbuf + wlen, blen - wlen); in write_index() 957 err = ubifs_leb_write(c, lnum, c->cbuf, buf_offs, blen); in write_index() 973 memmove(c->cbuf, c->cbuf + blen, used); in write_index()
|
/Linux-v4.19/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-v4.19/drivers/watchdog/ |
D | intel_scu_watchdog.c | 129 u8 cbuf[16] = { '\0' }; in watchdog_set_ipc() local 132 ipc_wbuf = (u32 *)&cbuf; in watchdog_set_ipc()
|
/Linux-v4.19/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() 1498 memset(cbuf, '\0', sizeof(cbuf)); in kdb_md_line() 1564 " ", cbuf); in kdb_md_line()
|
/Linux-v4.19/include/linux/ |
D | isdn_ppp.h | 179 unsigned char *cbuf; member
|
/Linux-v4.19/fs/dlm/ |
D | lowcomms.c | 69 struct cbuf { struct 75 static void cbuf_add(struct cbuf *cb, int n) in cbuf_add() argument 80 static int cbuf_data(struct cbuf *cb) in cbuf_data() 85 static void cbuf_init(struct cbuf *cb, int size) in cbuf_init() 91 static void cbuf_eat(struct cbuf *cb, int n) in cbuf_eat() 98 static bool cbuf_empty(struct cbuf *cb) in cbuf_empty() 120 struct cbuf cb;
|
/Linux-v4.19/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-v4.19/drivers/block/mtip32xx/ |
D | mtip32xx.c | 1530 char cbuf[42]; in mtip_dump_identify() local 1535 strlcpy(cbuf, (char *)(port->identify+10), 21); in mtip_dump_identify() 1537 "Serial No.: %s\n", cbuf); in mtip_dump_identify() 1539 strlcpy(cbuf, (char *)(port->identify+23), 9); in mtip_dump_identify() 1541 "Firmware Ver.: %s\n", cbuf); in mtip_dump_identify() 1543 strlcpy(cbuf, (char *)(port->identify+27), 41); in mtip_dump_identify() 1544 dev_info(&port->dd->pdev->dev, "Model: %s\n", cbuf); in mtip_dump_identify() 1559 strlcpy(cbuf, "A0", 3); in mtip_dump_identify() 1562 strlcpy(cbuf, "A2", 3); in mtip_dump_identify() 1565 strlcpy(cbuf, "?", 2); in mtip_dump_identify() [all …]
|
/Linux-v4.19/tools/testing/selftests/net/ |
D | tls.c | 701 char cbuf[CMSG_SPACE(sizeof(char))]; in TEST_F() local 716 msg.msg_control = cbuf; in TEST_F() 717 msg.msg_controllen = sizeof(cbuf); in TEST_F()
|
/Linux-v4.19/drivers/net/ethernet/intel/ice/ |
D | ice_common.c | 1232 void *cbuf; in ice_get_caps() local 1234 cbuf = devm_kzalloc(ice_hw_to_dev(hw), cbuf_len, GFP_KERNEL); in ice_get_caps() 1235 if (!cbuf) in ice_get_caps() 1238 status = ice_aq_discover_caps(hw, cbuf, cbuf_len, &data_size, in ice_get_caps() 1240 devm_kfree(ice_hw_to_dev(hw), cbuf); in ice_get_caps()
|