/linux/drivers/misc/genwqe/ |
A D | card_base.c | 126 if (!cd) in genwqe_dev_alloc() 154 return cd; in genwqe_dev_alloc() 159 if (!cd) in genwqe_dev_free() 163 kfree(cd); in genwqe_dev_free() 254 cd->slu_unitcfg, cd->app_unitcfg); in genwqe_tweak_hardware() 413 cd->slu_unitcfg = __genwqe_readq(cd, IO_SLU_UNITCFG); in genwqe_read_ids() 429 cd->app_unitcfg = __genwqe_readq(cd, IO_APP_UNITCFG); in genwqe_read_ids() 436 genwqe_read_app_id(cd, cd->app_name, sizeof(cd->app_name)); in genwqe_read_ids() 448 cd->is_privileged = (__genwqe_readq(cd, IO_SLU_BITSTREAM) in genwqe_read_ids() 470 genwqe_read_ffdc_regs(cd, cd->ffdc[GENWQE_DBG_REGS].regs, in genwqe_start() [all …]
|
A D | card_debugfs.c | 45 struct genwqe_dev *cd = s->private; in curr_dbg_uidn_show() local 62 genwqe_start_traps(cd); in curr_dbg_uidn_show() 94 dbg_uidn_show(s, cd->ffdc[uid].regs, cd->ffdc[uid].entries); in prev_dbg_uidn_show() 129 genwqe_stop_traps(cd); in curr_regs_show() 131 genwqe_start_traps(cd); in curr_regs_show() 218 queue = &cd->queue; in ddcb_info_show() 235 cd->irqs_processed); in ddcb_info_show() 293 if (genwqe_is_privileged(cd)) in info_show() 304 genwqe_is_privileged(cd) ? in info_show() 340 cd->debugfs_root = root; in genwqe_init_debugfs() [all …]
|
A D | card_utils.c | 51 if (cd->mmio == NULL) in __genwqe_writeq() 81 if (cd->mmio == NULL) in __genwqe_readq() 102 if (cd->mmio == NULL) in __genwqe_writel() 124 if (cd->mmio == NULL) in __genwqe_readl() 141 u32 app_id = (u32)cd->app_unitcfg; in genwqe_read_app_id() 657 u64 card_type = cd->slu_unitcfg; in genwqe_card_type() 671 if (!genwqe_is_privileged(cd)) in genwqe_card_reset() 707 if (!genwqe_is_privileged(cd)) in genwqe_read_softreset() 866 val = __genwqe_readq(cd, addr); in genwqe_ffdc_buff_size() 982 __genwqe_writeq(cd, reg, val); in genwqe_write_vreg() [all …]
|
A D | card_base.h | 398 struct genwqe_dev *cd; member 414 int genwqe_finish_queue(struct genwqe_dev *cd); 426 return (int)((cd->slu_unitcfg >> 32) & 0xff); in genwqe_get_slu_id() 431 u8 genwqe_card_type(struct genwqe_dev *cd); 432 int genwqe_card_reset(struct genwqe_dev *cd); 440 void genwqe_init_debugfs(struct genwqe_dev *cd); 441 void genqwe_exit_debugfs(struct genwqe_dev *cd); 474 int genwqe_ffdc_dump_dma(struct genwqe_dev *cd, 542 void genwqe_stop_traps(struct genwqe_dev *cd); 543 void genwqe_start_traps(struct genwqe_dev *cd); [all …]
|
A D | card_ddcb.c | 1130 cd->irqs_processed++; in genwqe_pf_isr() 1173 cd->irqs_processed++; in genwqe_vf_isr() 1195 genwqe_check_ddcb_queue(cd, &cd->queue); in genwqe_card_thread() 1199 cd->queue_waitq, in genwqe_card_thread() 1204 cd->queue_waitq, in genwqe_card_thread() 1244 queue = &cd->queue; in genwqe_setup_service_layer() 1262 cd->card_thread = kthread_run(genwqe_card_thread, cd, in genwqe_setup_service_layer() 1264 cd->card_idx); in genwqe_setup_service_layer() 1301 cd->card_thread = NULL; in genwqe_setup_service_layer() 1358 queue_wake_up_all(cd); in genwqe_finish_queue() [all …]
|
A D | card_dev.c | 194 struct genwqe_dev *cd = cfile->cd; in genwqe_remove_mappings() local 232 struct genwqe_dev *cd = cfile->cd; in genwqe_remove_pinnings() local 309 cfile->cd = cd; in genwqe_open() 360 struct genwqe_dev *cd = cfile->cd; in genwqe_release() local 440 struct genwqe_dev *cd = cfile->cd; in genwqe_mmap() local 514 struct genwqe_dev *cd = cfile->cd; in do_flash_update() local 649 struct genwqe_dev *cd = cfile->cd; in do_flash_read() local 772 struct genwqe_dev *cd = cfile->cd; in genwqe_pin_mem() local 805 struct genwqe_dev *cd = cfile->cd; in genwqe_unpin_mem() local 837 struct genwqe_dev *cd = cfile->cd; in ddcb_cmd_cleanup() local [all …]
|
A D | card_sysfs.c | 42 struct genwqe_dev *cd = dev_get_drvdata(dev); in status_show() local 66 slu_id = __genwqe_readq(cd, IO_SLU_UNITCFG); in version_show() 67 app_id = __genwqe_readq(cd, IO_APP_UNITCFG); in version_show() 79 card_type = genwqe_card_type(cd); in type_show() 115 t = __genwqe_readq(cd, IO_SLC_QUEUE_WTIME); in queue_working_time_show() 170 switch ((cd->softreset & 0xc) >> 2) { in next_bitstream_show() 196 cd->softreset = 0x78; in next_bitstream_store() 199 cd->softreset = 0x7c; in next_bitstream_store() 205 __genwqe_writeq(cd, IO_SLC_CFGREG_SOFTRESET, cd->softreset); in next_bitstream_store() 222 cd->card_state == GENWQE_CARD_USED) in reload_bitstream_store() [all …]
|
/linux/drivers/input/touchscreen/ |
A D | cyttsp4_core.c | 137 cd->cpdata->xres(cd->cpdata, cd->dev); in cyttsp4_hw_hard_reset() 310 cyttsp4_pr_buf(cd->dev, cd->pr_buf, in cyttsp4_si_get_test_data() 380 cyttsp4_pr_buf(cd->dev, cd->pr_buf, in cyttsp4_si_get_pcfg_data() 507 cyttsp4_pr_buf(cd->dev, cd->pr_buf, in cyttsp4_si_get_ddata() 534 cyttsp4_pr_buf(cd->dev, cd->pr_buf, in cyttsp4_si_get_mdata() 1549 rc = cd->cpdata->power(cd->cpdata, 0, cd->dev, &cd->ignore_irq); in cyttsp4_core_sleep_() 1789 rc = cd->cpdata->power(cd->cpdata, 1, dev, &cd->ignore_irq); in cyttsp4_core_wake_() 2034 cd = kzalloc(sizeof(*cd), GFP_KERNEL); in cyttsp4_probe() 2077 rc = cd->cpdata->init(cd->cpdata, 1, cd->dev); in cyttsp4_probe() 2131 free_irq(cd->irq, cd); in cyttsp4_probe() [all …]
|
/linux/drivers/clk/sunxi-ng/ |
A D | ccu_div.c | 26 cd->div.table, cd->div.width, in ccu_div_round_rate() 39 return ccu_gate_helper_disable(&cd->common, cd->enable); in ccu_div_disable() 46 return ccu_gate_helper_enable(&cd->common, cd->enable); in ccu_div_enable() 53 return ccu_gate_helper_is_enabled(&cd->common, cd->enable); in ccu_div_is_enabled() 63 reg = readl(cd->common.base + cd->common.reg); in ccu_div_recalc_rate() 71 cd->div.flags, cd->div.width); in ccu_div_recalc_rate() 84 return ccu_mux_helper_determine_rate(&cd->common, &cd->mux, in ccu_div_determine_rate() 107 reg = readl(cd->common.base + cd->common.reg); in ccu_div_set_rate() 108 reg &= ~GENMASK(cd->div.width + cd->div.shift - 1, cd->div.shift); in ccu_div_set_rate() 111 cd->common.base + cd->common.reg); in ccu_div_set_rate() [all …]
|
/linux/drivers/scsi/ |
A D | sr.c | 181 cd = NULL; in scsi_cd_get() 185 return cd; in scsi_cd_get() 410 if (!cd->device || !scsi_device_online(cd->device)) { in sr_init_command() 530 if (!cd) in sr_block_open() 603 if (!cd) in sr_block_check_events() 660 cd = kzalloc(sizeof(*cd), GFP_KERNEL); in sr_probe() 661 if (!cd) in sr_probe() 704 cd->cdi.handle = cd; in sr_probe() 751 kfree(cd); in sr_probe() 828 set_capacity(cd->disk, cd->capacity); in get_sectorsize() [all …]
|
A D | sr_vendor.c | 74 cd->vendor = VENDOR_SCSI3; in sr_vendor_init() 75 if (cd->readcd_known) in sr_vendor_init() 83 cd->vendor = VENDOR_NEC; in sr_vendor_init() 110 cd->cdi.mask |= ( in sr_vendor_init() 160 sr_printk(KERN_INFO, cd, in sr_set_blocklength() 173 Scsi_CD *cd = cdi->handle; in sr_cd_check() local 192 switch (cd->vendor) { in sr_cd_check() 317 cd->vendor); in sr_cd_check() 322 cd->ms_offset = sector; in sr_cd_check() 323 cd->xa_flag = 0; in sr_cd_check() [all …]
|
/linux/drivers/block/paride/ |
A D | pcd.c | 358 write_reg(cd, 6, 0xa0 + 0x10 * cd->drive); in pcd_command() 521 write_reg(cd, 6, 0xa0 + 0x10 * cd->drive); in pcd_reset() 621 for (cd->drive = 0; cd->drive <= 1; cd->drive++) in pcd_probe() 622 if (!pcd_reset(cd) && !pcd_identify(cd)) in pcd_probe() 626 if (!pcd_reset(cd) && !pcd_identify(cd)) in pcd_probe() 904 disk = blk_mq_alloc_disk(&cd->tag_set, cd); in pcd_init_unit() 913 cd->pi = &cd->pia; in pcd_init_unit() 917 cd->drive = (*drives[cd - pcd])[D_SLV]; in pcd_init_unit() 919 cd->name = &cd->info.name[0]; in pcd_init_unit() 922 cd->info.handle = cd; in pcd_init_unit() [all …]
|
/linux/drivers/staging/fieldbus/anybuss/ |
A D | host.c | 392 cd->reset(cd->dev, true); in reset_assert() 397 cd->reset(cd->dev, false); in reset_deassert() 542 err = ab_task_enqueue_wait(t, cd->powerq, &cd->qlock, &cd->wq); in anybuss_set_power() 844 err = ab_task_enqueue_wait(t, cd->powerq, &cd->qlock, &cd->wq); in _anybus_mbox_cmd() 956 ret = ab_task_enqueue(t, cd->powerq, &cd->qlock, &cd->wq); in process_softint() 1071 ret = ab_task_enqueue_wait(t, cd->powerq, &cd->qlock, &cd->wq); in anybuss_read_fbctrl() 1096 ret = ab_task_enqueue_wait(t, cd->powerq, &cd->qlock, &cd->wq); in anybuss_write_input() 1284 cd->powerq = &cd->qs[0]; in anybuss_host_common_probe() 1285 cd->mboxq = &cd->qs[1]; in anybuss_host_common_probe() 1286 cd->areaq = &cd->qs[2]; in anybuss_host_common_probe() [all …]
|
A D | arcx-anybus.c | 61 writeb(cd->control_reg, cd->cpld_base + CPLD_CONTROL); in do_reset() 81 if (cd->common_reset) in anybuss_reset() 234 cd = devm_kzalloc(dev, sizeof(*cd), GFP_KERNEL); in controller_probe() 235 if (!cd) in controller_probe() 254 cd->design_no = (readb(cd->cpld_base + CPLD_DESIGN_HI) << 8) | in controller_probe() 256 snprintf(cd->version, sizeof(cd->version), "%c%d", in controller_probe() 260 cd->design_no, in controller_probe() 261 cd->version); in controller_probe() 299 cd->class_dev = kzalloc(sizeof(*cd->class_dev), GFP_KERNEL); in controller_probe() 309 dev_set_name(cd->class_dev, "%d", cd->class_dev->id); in controller_probe() [all …]
|
/linux/drivers/soc/fsl/ |
A D | dpaa2-console.c | 94 if (cd->cur_ptr <= cd->end_of_data) in dpaa2_console_size() 95 size = cd->end_of_data - cd->cur_ptr; in dpaa2_console_size() 97 size = (cd->end_addr - cd->cur_ptr) + in dpaa2_console_size() 98 (cd->end_of_data - cd->start_addr); in dpaa2_console_size() 113 cd = kmalloc(sizeof(*cd), GFP_KERNEL); in dpaa2_generic_console_open() 114 if (!cd) in dpaa2_generic_console_open() 144 cd->end_addr = cd->start_addr + buf_length; in dpaa2_generic_console_open() 150 cd->cur_ptr = cd->end_of_data + 1; in dpaa2_generic_console_open() 152 cd->cur_ptr = cd->start_addr; in dpaa2_generic_console_open() 204 if (cd->end_of_data == cd->cur_ptr) in dpaa2_console_read() [all …]
|
/linux/drivers/irqchip/ |
A D | irq-mst-intc.c | 87 if (!cd->no_eoi) in mst_intc_eoi_irq() 159 mst_intc_polarity_save(cd); in mst_irq_suspend() 262 cd = kzalloc(sizeof(*cd), GFP_KERNEL); in mst_intc_of_init() 263 if (!cd) in mst_intc_of_init() 266 cd->base = of_iomap(dn, 0); in mst_intc_of_init() 267 if (!cd->base) { in mst_intc_of_init() 268 kfree(cd); in mst_intc_of_init() 274 cd->irq_start = irq_start; in mst_intc_of_init() 279 iounmap(cd->base); in mst_intc_of_init() 280 kfree(cd); in mst_intc_of_init() [all …]
|
A D | irq-imx-gpcv2.c | 33 return cd->gpc_base + cd->cpu2wakeup + i * 4; in gpcv2_idx_to_reg() 42 cd = imx_gpcv2_instance; in gpcv2_wakeup_source_save() 43 if (!cd) in gpcv2_wakeup_source_save() 60 cd = imx_gpcv2_instance; in gpcv2_wakeup_source_restore() 61 if (!cd) in gpcv2_wakeup_source_restore() 65 writel_relaxed(cd->saved_irq_mask[i], gpcv2_idx_to_reg(cd, i)); in gpcv2_wakeup_source_restore() 231 if (!cd) in imx_gpcv2_irqchip_init() 237 if (!cd->gpc_base) { in imx_gpcv2_irqchip_init() 239 kfree(cd); in imx_gpcv2_irqchip_init() 247 kfree(cd); in imx_gpcv2_irqchip_init() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/gpio/ |
A D | ddc_regs.h | 39 #define DDC_GPIO_REG_LIST(cd,id) \ argument 42 DDC_GPIO_REG_LIST_ENTRY(A,cd,id),\ 44 DDC_GPIO_REG_LIST_ENTRY(Y,cd,id)\ 47 #define DDC_REG_LIST(cd,id) \ argument 48 DDC_GPIO_REG_LIST(cd,id),\ 52 DDC_GPIO_REG_LIST(cd, id),\ 70 #define DDC_VGA_REG_LIST(cd) \ argument 71 DDC_GPIO_VGA_REG_LIST(cd),\ 87 #define DDC_I2C_REG_LIST(cd) \ argument 88 DDC_GPIO_I2C_REG_LIST(cd),\ [all …]
|
/linux/net/sunrpc/ |
A D | cache.c | 902 ret = cd->cache_parse(cd, kaddr, count); in cache_do_downcall() 1011 if (!cd || !try_module_get(cd->owner)) in cache_open() 1412 return cd->cache_show(m, cd, NULL); in c_show() 1428 return cd->cache_show(m, cd, cp); in c_show() 1444 if (!cd || !try_module_get(cd->owner)) in content_open() 1469 if (!cd || !try_module_get(cd->owner)) in open_flush() 1667 cd->procfs = proc_mkdir(cd->name, sn->proc_net_rpc); in create_cache_proc_entries() 1672 cd->procfs, &cache_flush_proc_ops, cd); in create_cache_proc_entries() 1676 if (cd->cache_request || cd->cache_parse) { in create_cache_proc_entries() 1743 return cd; in cache_create_net() [all …]
|
/linux/arch/arm/mach-omap2/ |
A D | clockdomain.c | 110 for (cd = deps; cd->clkdm_name; cd++) { in _clkdm_deps_lookup() 111 if (!cd->clkdm && cd->clkdm_name) in _clkdm_deps_lookup() 112 cd->clkdm = _clkdm_lookup(cd->clkdm_name); in _clkdm_deps_lookup() 121 return cd; in _clkdm_deps_lookup() 170 for (cd = clkdm_deps; cd && cd->clkdm_name; cd++) { in _resolve_clkdm_deps() 171 if (cd->clkdm) in _resolve_clkdm_deps() 173 cd->clkdm = _clkdm_lookup(cd->clkdm_name); in _resolve_clkdm_deps() 202 if (IS_ERR(cd)) in _clkdm_add_wkdep() 245 if (IS_ERR(cd)) in _clkdm_del_wkdep() 290 if (IS_ERR(cd)) in _clkdm_add_sleepdep() [all …]
|
/linux/sound/soc/au1x/ |
A D | dbdma2.c | 85 cd->dma_area += cd->period_bytes; in au1x_pcm_queue_tx() 86 if (cd->q_period >= cd->periods) { in au1x_pcm_queue_tx() 88 cd->dma_area = cd->dma_area_s; in au1x_pcm_queue_tx() 94 au1xxx_dbdma_put_dest(cd->ddma_chan, cd->dma_area, in au1x_pcm_queue_rx() 99 cd->dma_area += cd->period_bytes; in au1x_pcm_queue_rx() 100 if (cd->q_period >= cd->periods) { in au1x_pcm_queue_rx() 102 cd->dma_area = cd->dma_area_s; in au1x_pcm_queue_rx() 110 cd->pos += cd->period_bytes; in au1x_pcm_dmatx_cb() 111 if (++cd->curr_period >= cd->periods) { in au1x_pcm_dmatx_cb() 123 cd->pos += cd->period_bytes; in au1x_pcm_dmarx_cb() [all …]
|
/linux/arch/mips/cavium-octeon/ |
A D | octeon-irq.c | 103 cd = kzalloc(sizeof(*cd), GFP_KERNEL); in octeon_irq_set_ciu_mapping() 104 if (!cd) in octeon_irq_set_ciu_mapping() 109 cd->line = line; in octeon_irq_set_ciu_mapping() 110 cd->bit = bit; in octeon_irq_set_ciu_mapping() 124 kfree(cd); in octeon_irq_free_cd() 218 if (cd->desired_en != cd->current_en) { in octeon_irq_core_bus_sync_unlock() 221 cd->current_en = cd->desired_en; in octeon_irq_core_bus_sync_unlock() 251 cd->bit = i; in octeon_irq_init_core() 2216 cd = kzalloc(sizeof(*cd), GFP_KERNEL); in octeon_irq_cib_map() 2217 if (!cd) in octeon_irq_cib_map() [all …]
|
/linux/fs/ |
A D | char_dev.c | 56 for (cd = chrdevs[major_to_index(offset)]; cd; cd = cd->next) { in chrdev_show() 58 seq_printf(f, "%3d %s\n", cd->major, cd->name); in chrdev_show() 77 for (cd = chrdevs[major_to_index(i)]; cd; cd = cd->next) in find_dynamic_major() 153 strlcpy(cd->name, name, sizeof(cd->name)); in __register_chrdev_region() 164 return cd; in __register_chrdev_region() 167 kfree(cd); in __register_chrdev_region() 184 cd = *cp; in __unregister_chrdev_region() 188 return cd; in __unregister_chrdev_region() 243 *dev = MKDEV(cd->major, cd->baseminor); in alloc_chrdev_region() 341 if (cd && cd->cdev) in __unregister_chrdev() [all …]
|
/linux/drivers/net/wireless/ath/ |
A D | dfs_pattern_detector.c | 172 if (cd == NULL) in channel_detector_reset() 175 cd->detectors[i]->reset(cd->detectors[i], dpd->last_pulse_ts); in channel_detector_reset() 183 if (cd == NULL) in channel_detector_exit() 185 list_del(&cd->head); in channel_detector_exit() 194 kfree(cd); in channel_detector_exit() 203 cd = kmalloc(sizeof(*cd), GFP_ATOMIC); in channel_detector_create() 204 if (cd == NULL) in channel_detector_create() 208 cd->freq = freq; in channel_detector_create() 222 return cd; in channel_detector_create() 247 return cd; in channel_detector_get() [all …]
|
/linux/arch/mips/kernel/ |
A D | cevt-bcm1480.c | 79 if (clockevent_state_periodic(cd)) in sibyte_counter_handler() 88 cd->event_handler(cd); in sibyte_counter_handler() 107 cd->name = name; in sb1480_clockevent_init() 111 cd->max_delta_ns = clockevent_delta2ns(0x7fffff, cd); in sb1480_clockevent_init() 112 cd->max_delta_ticks = 0x7fffff; in sb1480_clockevent_init() 113 cd->min_delta_ns = clockevent_delta2ns(2, cd); in sb1480_clockevent_init() 114 cd->min_delta_ticks = 2; in sb1480_clockevent_init() 115 cd->rating = 200; in sb1480_clockevent_init() 116 cd->irq = irq; in sb1480_clockevent_init() 117 cd->cpumask = cpumask_of(cpu); in sb1480_clockevent_init() [all …]
|