/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 …]
|
/drivers/staging/rtl8723bs/os_dep/ |
D | osdep_service.c | 220 inline bool rtw_cbuf_full(struct rtw_cbuf *cbuf) in rtw_cbuf_full() argument 222 return (cbuf->write == cbuf->read - 1) ? true : false; in rtw_cbuf_full() 231 inline bool rtw_cbuf_empty(struct rtw_cbuf *cbuf) in rtw_cbuf_empty() argument 233 return (cbuf->write == cbuf->read) ? true : false; in rtw_cbuf_empty() 244 bool rtw_cbuf_push(struct rtw_cbuf *cbuf, void *buf) in rtw_cbuf_push() argument 246 if (rtw_cbuf_full(cbuf)) in rtw_cbuf_push() 249 cbuf->bufs[cbuf->write] = buf; in rtw_cbuf_push() 250 cbuf->write = (cbuf->write + 1) % cbuf->size; in rtw_cbuf_push() 262 void *rtw_cbuf_pop(struct rtw_cbuf *cbuf) in rtw_cbuf_pop() argument 265 if (rtw_cbuf_empty(cbuf)) in rtw_cbuf_pop() [all …]
|
/drivers/staging/r8188eu/os_dep/ |
D | osdep_service.c | 267 inline bool rtw_cbuf_full(struct rtw_cbuf *cbuf) in rtw_cbuf_full() argument 269 return (cbuf->write == cbuf->read - 1) ? true : false; in rtw_cbuf_full() 278 inline bool rtw_cbuf_empty(struct rtw_cbuf *cbuf) in rtw_cbuf_empty() argument 280 return (cbuf->write == cbuf->read) ? true : false; in rtw_cbuf_empty() 291 bool rtw_cbuf_push(struct rtw_cbuf *cbuf, void *buf) in rtw_cbuf_push() argument 293 if (rtw_cbuf_full(cbuf)) in rtw_cbuf_push() 297 DBG_88E("%s on %u\n", __func__, cbuf->write); in rtw_cbuf_push() 298 cbuf->bufs[cbuf->write] = buf; in rtw_cbuf_push() 299 cbuf->write = (cbuf->write + 1) % cbuf->size; in rtw_cbuf_push() 311 void *rtw_cbuf_pop(struct rtw_cbuf *cbuf) in rtw_cbuf_pop() argument [all …]
|
/drivers/scsi/qedf/ |
D | qedf_debugfs.c | 104 char *cbuf; in qedf_dbg_fp_int_cmd_read() local 114 cbuf = vmalloc(QEDF_DEBUGFS_LOG_LEN); in qedf_dbg_fp_int_cmd_read() 115 if (!cbuf) in qedf_dbg_fp_int_cmd_read() 118 cnt += scnprintf(cbuf + cnt, QEDF_DEBUGFS_LOG_LEN - cnt, "\nFastpath I/O completions\n\n"); in qedf_dbg_fp_int_cmd_read() 124 cnt += scnprintf(cbuf + cnt, QEDF_DEBUGFS_LOG_LEN - cnt, in qedf_dbg_fp_int_cmd_read() 128 ret = simple_read_from_buffer(buffer, count, ppos, cbuf, cnt); in qedf_dbg_fp_int_cmd_read() 130 vfree(cbuf); in qedf_dbg_fp_int_cmd_read() 150 char cbuf[32]; in qedf_dbg_debug_cmd_read() local 155 cnt = scnprintf(cbuf, sizeof(cbuf), "debug mask = 0x%x\n", qedf_debug); in qedf_dbg_debug_cmd_read() 157 return simple_read_from_buffer(buffer, count, ppos, cbuf, cnt); in qedf_dbg_debug_cmd_read() [all …]
|
/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() 598 qels[0].cbuf = rescbuf; in idle() 650 static int do_write(struct net_device *dev, void *cbuf, int cbuflen, in do_write() argument 658 qels[i].cbuf = cbuf; in do_write() 674 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 | 294 u8 cbuf[IPC_WWBUF_SIZE]; in pwr_reg_rdwr() local 295 u32 *wbuf = (u32 *)&cbuf; in pwr_reg_rdwr() 297 memset(cbuf, 0, sizeof(cbuf)); in pwr_reg_rdwr() 307 cbuf[offset] = addr[nc]; in pwr_reg_rdwr() 308 cbuf[offset + 1] = addr[nc] >> 8; in pwr_reg_rdwr() 317 cbuf[offset] = data[nc]; in pwr_reg_rdwr() 322 cbuf[offset] = data[0]; in pwr_reg_rdwr() 323 cbuf[offset + 1] = data[1]; in pwr_reg_rdwr() 331 memcpy_fromio(cbuf, scu->ipc_base + 0x90, 16); in pwr_reg_rdwr()
|
/drivers/staging/rtl8723bs/include/ |
D | osdep_service.h | 119 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);
|
/drivers/staging/r8188eu/include/ |
D | osdep_service.h | 308 bool rtw_cbuf_full(struct rtw_cbuf *cbuf); 309 bool rtw_cbuf_empty(struct rtw_cbuf *cbuf); 310 bool rtw_cbuf_push(struct rtw_cbuf *cbuf, void *buf); 311 void *rtw_cbuf_pop(struct rtw_cbuf *cbuf);
|
/drivers/hid/ |
D | hid-lg.c | 800 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()
|
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()
|
/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
|
/drivers/tty/ |
D | n_gsm.c | 672 u8 cbuf[10]; in gsm_send() local 681 cbuf[0] = GSM0_SOF; in gsm_send() 682 cbuf[1] = (addr << 2) | (ocr << 1) | EA; in gsm_send() 683 cbuf[2] = control; in gsm_send() 684 cbuf[3] = EA; /* Length of data = 0 */ in gsm_send() 685 cbuf[4] = 0xFF - gsm_fcs_add_block(INIT_FCS, cbuf + 1, 3); in gsm_send() 686 cbuf[5] = GSM0_SOF; in gsm_send() 696 len = gsm_stuff_frame(ibuf, cbuf + 1, 3); in gsm_send() 698 cbuf[0] = GSM1_SOF; in gsm_send() 699 cbuf[len + 1] = GSM1_SOF; in gsm_send() [all …]
|
/drivers/s390/char/ |
D | con3270.c | 599 void *cbuf; in con3270_init() local 637 cbuf = (void *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in con3270_init() 638 add_string_memory(&condev->freemem, cbuf, PAGE_SIZE); in con3270_init()
|
/drivers/net/ethernet/intel/ice/ |
D | ice_common.c | 2476 void *cbuf; in ice_discover_dev_caps() local 2478 cbuf = kzalloc(ICE_AQ_MAX_BUF_LEN, GFP_KERNEL); in ice_discover_dev_caps() 2479 if (!cbuf) in ice_discover_dev_caps() 2488 status = ice_aq_list_caps(hw, cbuf, ICE_AQ_MAX_BUF_LEN, &cap_count, in ice_discover_dev_caps() 2491 ice_parse_dev_caps(hw, dev_caps, cbuf, cap_count); in ice_discover_dev_caps() 2492 kfree(cbuf); in ice_discover_dev_caps() 2510 void *cbuf; in ice_discover_func_caps() local 2512 cbuf = kzalloc(ICE_AQ_MAX_BUF_LEN, GFP_KERNEL); in ice_discover_func_caps() 2513 if (!cbuf) in ice_discover_func_caps() 2522 status = ice_aq_list_caps(hw, cbuf, ICE_AQ_MAX_BUF_LEN, &cap_count, in ice_discover_func_caps() [all …]
|
/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 …]
|
/drivers/scsi/lpfc/ |
D | lpfc_debugfs.c | 2378 char cbuf[32]; in lpfc_debugfs_dif_err_read() local 2383 cnt = scnprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_wgrd_cnt); in lpfc_debugfs_dif_err_read() 2385 cnt = scnprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_wapp_cnt); in lpfc_debugfs_dif_err_read() 2387 cnt = scnprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_wref_cnt); in lpfc_debugfs_dif_err_read() 2389 cnt = scnprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_rgrd_cnt); in lpfc_debugfs_dif_err_read() 2391 cnt = scnprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_rapp_cnt); in lpfc_debugfs_dif_err_read() 2393 cnt = scnprintf(cbuf, 32, "%u\n", phba->lpfc_injerr_rref_cnt); in lpfc_debugfs_dif_err_read() 2395 cnt = scnprintf(cbuf, 32, "0x%06x\n", in lpfc_debugfs_dif_err_read() 2400 cnt = scnprintf(cbuf, 32, "0x%016llx\n", tmp); in lpfc_debugfs_dif_err_read() 2403 cnt = scnprintf(cbuf, 32, "off\n"); in lpfc_debugfs_dif_err_read() [all …]
|
D | lpfc_crtn.h | 555 int lpfc_io_buf_replenish(struct lpfc_hba *phba, struct list_head *cbuf);
|
D | lpfc_init.c | 4138 lpfc_io_buf_flush(struct lpfc_hba *phba, struct list_head *cbuf) in lpfc_io_buf_flush() argument 4175 list_add_tail(&lpfc_cmd->list, cbuf); in lpfc_io_buf_flush() 4181 list_for_each_entry(iobufp, cbuf, list) { in lpfc_io_buf_flush() 4187 list_add(&lpfc_cmd->list, cbuf); in lpfc_io_buf_flush() 4194 list_add_tail(&lpfc_cmd->list, cbuf); in lpfc_io_buf_flush() 4200 lpfc_io_buf_replenish(struct lpfc_hba *phba, struct list_head *cbuf) in lpfc_io_buf_replenish() argument 4208 while (!list_empty(cbuf)) { in lpfc_io_buf_replenish() 4210 list_remove_head(cbuf, lpfc_cmd, in lpfc_io_buf_replenish()
|
/drivers/staging/media/av7110/ |
D | av7110_hw.c | 745 u16 cbuf[5] = { (COMTYPE_OSD << 8) + DText, 3, win, x, y }; in WriteText() local 783 ret = __av7110_send_fw_cmd(av7110, cbuf, 5); in WriteText()
|
/drivers/spi/ |
D | spi-bcm-qspi.c | 361 u8 *cbuf = (u8 *)&buf[qspi->bspi_rf_op_idx]; in bcm_qspi_bspi_lr_data_read() local 365 *cbuf++ = (u8)data; in bcm_qspi_bspi_lr_data_read()
|
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | sdio.c | 106 char cbuf[CBUF_LEN]; member
|
/drivers/md/ |
D | md.c | 3927 safe_delay_store(struct mddev *mddev, const char *cbuf, size_t len) in safe_delay_store() argument 3936 if (strict_strtoul_scaled(cbuf, &msec, 3) < 0 || msec > UINT_MAX / HZ) in safe_delay_store()
|