/drivers/media/pci/pt3/ |
D | pt3_i2c.c | 54 static void cmdbuf_add(struct pt3_i2cbuf *cbuf, enum ctl_cmd cmd) in cmdbuf_add() argument 58 if ((cbuf->num_cmds % 2) == 0) in cmdbuf_add() 59 cbuf->tmp = cmd; in cmdbuf_add() 61 cbuf->tmp |= cmd << 4; in cmdbuf_add() 62 buf_idx = cbuf->num_cmds / 2; in cmdbuf_add() 63 if (buf_idx < ARRAY_SIZE(cbuf->data)) in cmdbuf_add() 64 cbuf->data[buf_idx] = cbuf->tmp; in cmdbuf_add() 66 cbuf->num_cmds++; in cmdbuf_add() 69 static void put_end(struct pt3_i2cbuf *cbuf) in put_end() argument 71 cmdbuf_add(cbuf, I_END); in put_end() [all …]
|
/drivers/isdn/isdnloop/ |
D | isdnloop.c | 1134 char cbuf[80]; in isdnloop_command() local 1163 sprintf(cbuf, "00;FV2ON\n01;EAZ1\n02;EAZ2\n"); in isdnloop_command() 1164 i = isdnloop_writecmd(cbuf, strlen(cbuf), 0, card); in isdnloop_command() 1176 sprintf(cbuf, "00;FV2OFF\n"); in isdnloop_command() 1177 i = isdnloop_writecmd(cbuf, strlen(cbuf), 0, card); in isdnloop_command() 1210 snprintf(cbuf, sizeof(cbuf), in isdnloop_command() 1214 i = isdnloop_writecmd(cbuf, strlen(cbuf), 0, card); in isdnloop_command() 1222 cbuf[0] = 0; in isdnloop_command() 1225 sprintf(cbuf, "%02d;BX75\n", (int) a); in isdnloop_command() 1229 sprintf(cbuf, "%02d;BX2T\n", (int) a); in isdnloop_command() [all …]
|
/drivers/isdn/icn/ |
D | icn.c | 1158 char cbuf[80]; in icn_command() local 1275 sprintf(cbuf, "00;FV2ON\n01;EAZ%c\n02;EAZ%c\n", in icn_command() 1277 i = icn_writecmd(cbuf, strlen(cbuf), 0, card); in icn_command() 1289 sprintf(cbuf, "00;FV2OFF\n"); in icn_command() 1290 i = icn_writecmd(cbuf, strlen(cbuf), 0, card); in icn_command() 1323 snprintf(cbuf, sizeof(cbuf), in icn_command() 1327 i = icn_writecmd(cbuf, strlen(cbuf), 0, card); in icn_command() 1338 sprintf(cbuf, "%02d;BX75\n", (int) a); in icn_command() 1341 sprintf(cbuf, "%02d;BTRA\n", (int) a); in icn_command() 1344 i = icn_writecmd(cbuf, strlen(cbuf), 0, card); in icn_command() [all …]
|
/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 …]
|
/drivers/platform/x86/ |
D | intel_scu_ipc.c | 220 u8 cbuf[IPC_WWBUF_SIZE]; in pwr_reg_rdwr() local 221 u32 *wbuf = (u32 *)&cbuf; in pwr_reg_rdwr() 223 memset(cbuf, 0, sizeof(cbuf)); in pwr_reg_rdwr() 233 cbuf[offset] = addr[nc]; in pwr_reg_rdwr() 234 cbuf[offset + 1] = addr[nc] >> 8; in pwr_reg_rdwr() 243 cbuf[offset] = data[nc]; in pwr_reg_rdwr() 248 cbuf[offset] = data[0]; in pwr_reg_rdwr() 249 cbuf[offset + 1] = data[1]; in pwr_reg_rdwr() 257 memcpy_fromio(cbuf, scu->ipc_base + 0x90, 16); in pwr_reg_rdwr()
|
/drivers/media/pci/ddbridge/ |
D | ddbridge-core.c | 354 input->cbuf = 0; in ddb_input_start() 391 output->cbuf = 0; in ddb_output_start() 430 if (output->cbuf != idx) { in ddb_output_free() 431 if ((((output->cbuf + 1) % output->dma_buf_num) == idx) && in ddb_output_free() 454 if ((((output->cbuf + 1) % output->dma_buf_num) == idx) && in ddb_output_write() 460 if (output->cbuf == idx) { in ddb_output_write() 474 if (copy_from_user(output->vbuf[output->cbuf] + output->coff, in ddb_output_write() 482 output->cbuf = ((output->cbuf + 1) % output->dma_buf_num); in ddb_output_write() 484 ddbwritel((output->cbuf << 11) | (output->coff >> 7), in ddb_output_write() 504 if (input->cbuf != idx) in ddb_input_avail() [all …]
|
D | ddbridge.h | 88 u32 cbuf; member 116 u32 cbuf; member
|
/drivers/hid/ |
D | hid-lg.c | 710 const unsigned char cbuf[] = { 0x00, 0xAF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; in lg_probe() local 711 u8 *buf = kmemdup(cbuf, sizeof(cbuf), GFP_KERNEL); in lg_probe() 718 ret = hid_hw_raw_request(hdev, buf[0], buf, sizeof(cbuf), in lg_probe() 731 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()
|
/drivers/isdn/pcbit/ |
D | drv.c | 393 u_char *cbuf; in pcbit_writecmd() local 414 cbuf = memdup_user(buf, len); in pcbit_writecmd() 415 if (IS_ERR(cbuf)) in pcbit_writecmd() 416 return PTR_ERR(cbuf); in pcbit_writecmd() 418 memcpy_toio(dev->sh_mem, cbuf, len); in pcbit_writecmd() 419 kfree(cbuf); in pcbit_writecmd()
|
/drivers/tty/ |
D | metag_da.c | 173 unsigned char *cbuf; in fetch_data() local 175 space = tty_prepare_flip_string(&dport->port, &cbuf, in fetch_data() 181 memcpy(cbuf, dport->rx_buf, space); in fetch_data()
|
D | n_gsm.c | 580 u8 cbuf[10]; in gsm_send() local 585 cbuf[0] = GSM0_SOF; in gsm_send() 586 cbuf[1] = (addr << 2) | (cr << 1) | EA; in gsm_send() 587 cbuf[2] = control; in gsm_send() 588 cbuf[3] = EA; /* Length of data = 0 */ in gsm_send() 589 cbuf[4] = 0xFF - gsm_fcs_add_block(INIT_FCS, cbuf + 1, 3); in gsm_send() 590 cbuf[5] = GSM0_SOF; in gsm_send() 600 len = gsm_stuff_frame(ibuf, cbuf + 1, 3); in gsm_send() 602 cbuf[0] = GSM1_SOF; in gsm_send() 603 cbuf[len + 1] = GSM1_SOF; in gsm_send() [all …]
|
D | rocket.c | 319 unsigned char *cbuf; in rp_do_receive() local 398 space = tty_prepare_flip_string(&info->port, &cbuf, ToRecv); in rp_do_receive() 409 sInStrW(sGetTxRxDataIO(cp), (unsigned short *) cbuf, wRecv); in rp_do_receive() 411 cbuf[ToRecv - 1] = sInB(sGetTxRxDataIO(cp)); in rp_do_receive()
|
/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()
|
/drivers/s390/char/ |
D | con3270.c | 596 void *cbuf; in con3270_init() local 634 cbuf = (void *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in con3270_init() 635 add_string_memory(&condev->freemem, cbuf, PAGE_SIZE); in con3270_init()
|
/drivers/scsi/lpfc/ |
D | lpfc_debugfs.c | 1016 char cbuf[32]; in lpfc_debugfs_dif_err_read() local 1021 cnt = snprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_wgrd_cnt); in lpfc_debugfs_dif_err_read() 1023 cnt = snprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_wapp_cnt); in lpfc_debugfs_dif_err_read() 1025 cnt = snprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_wref_cnt); in lpfc_debugfs_dif_err_read() 1027 cnt = snprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_rgrd_cnt); in lpfc_debugfs_dif_err_read() 1029 cnt = snprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_rapp_cnt); in lpfc_debugfs_dif_err_read() 1031 cnt = snprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_rref_cnt); in lpfc_debugfs_dif_err_read() 1033 cnt = snprintf(cbuf, 32, "0x%06x\n", phba->lpfc_injerr_nportid); in lpfc_debugfs_dif_err_read() 1037 cnt = snprintf(cbuf, 32, "0x%016llx\n", tmp); in lpfc_debugfs_dif_err_read() 1040 cnt = snprintf(cbuf, 32, "off\n"); in lpfc_debugfs_dif_err_read() [all …]
|
/drivers/block/mtip32xx/ |
D | mtip32xx.c | 1709 char cbuf[42]; in mtip_dump_identify() local 1714 strlcpy(cbuf, (char *)(port->identify+10), 21); in mtip_dump_identify() 1716 "Serial No.: %s\n", cbuf); in mtip_dump_identify() 1718 strlcpy(cbuf, (char *)(port->identify+23), 9); in mtip_dump_identify() 1720 "Firmware Ver.: %s\n", cbuf); in mtip_dump_identify() 1722 strlcpy(cbuf, (char *)(port->identify+27), 41); in mtip_dump_identify() 1723 dev_info(&port->dd->pdev->dev, "Model: %s\n", cbuf); in mtip_dump_identify() 1738 strlcpy(cbuf, "A0", 3); in mtip_dump_identify() 1741 strlcpy(cbuf, "A2", 3); in mtip_dump_identify() 1744 strlcpy(cbuf, "?", 2); in mtip_dump_identify() [all …]
|
/drivers/media/pci/ttpci/ |
D | av7110_hw.c | 764 u16 cbuf[5] = { (COMTYPE_OSD << 8) + DText, 3, win, x, y }; in WriteText() local 802 ret = __av7110_send_fw_cmd(av7110, cbuf, 5); in WriteText()
|
/drivers/staging/dgap/ |
D | dgap.c | 1391 static void dgap_parity_scan(struct channel_t *ch, unsigned char *cbuf, in dgap_parity_scan() argument 1399 in = cbuf; in dgap_parity_scan() 1400 cout = cbuf; in dgap_parity_scan()
|
/drivers/net/wireless/brcm80211/brcmfmac/ |
D | sdio.c | 95 char cbuf[CBUF_LEN]; member
|
/drivers/md/ |
D | md.c | 3396 safe_delay_store(struct mddev *mddev, const char *cbuf, size_t len) in safe_delay_store() argument 3405 if (strict_strtoul_scaled(cbuf, &msec, 3) < 0) in safe_delay_store()
|