/linux-6.12.1/drivers/misc/genwqe/ |
D | card_base.c | 135 struct genwqe_dev *cd; in genwqe_dev_alloc() local 144 cd = kzalloc(sizeof(struct genwqe_dev), GFP_KERNEL); in genwqe_dev_alloc() 145 if (!cd) in genwqe_dev_alloc() 148 cd->card_idx = i; in genwqe_dev_alloc() 149 cd->class_genwqe = &class_genwqe; in genwqe_dev_alloc() 150 cd->debugfs_genwqe = debugfs_genwqe; in genwqe_dev_alloc() 156 cd->use_platform_recovery = CONFIG_GENWQE_PLATFORM_ERROR_RECOVERY; in genwqe_dev_alloc() 158 init_waitqueue_head(&cd->queue_waitq); in genwqe_dev_alloc() 160 spin_lock_init(&cd->file_lock); in genwqe_dev_alloc() 161 INIT_LIST_HEAD(&cd->file_list); in genwqe_dev_alloc() [all …]
|
D | card_debugfs.c | 45 struct genwqe_dev *cd = s->private; in curr_dbg_uidn_show() local 49 entries = genwqe_ffdc_buff_size(cd, uid); in curr_dbg_uidn_show() 60 genwqe_stop_traps(cd); /* halt the traps while dumping data */ in curr_dbg_uidn_show() 61 genwqe_ffdc_buff_read(cd, uid, regs, entries); in curr_dbg_uidn_show() 62 genwqe_start_traps(cd); in curr_dbg_uidn_show() 92 struct genwqe_dev *cd = s->private; in prev_dbg_uidn_show() local 94 dbg_uidn_show(s, cd->ffdc[uid].regs, cd->ffdc[uid].entries); in prev_dbg_uidn_show() 121 struct genwqe_dev *cd = s->private; in curr_regs_show() local 129 genwqe_stop_traps(cd); in curr_regs_show() 130 genwqe_read_ffdc_regs(cd, regs, GENWQE_FFDC_REGS, 1); in curr_regs_show() [all …]
|
D | card_utils.c | 44 int __genwqe_writeq(struct genwqe_dev *cd, u64 byte_offs, u64 val) in __genwqe_writeq() argument 46 struct pci_dev *pci_dev = cd->pci_dev; in __genwqe_writeq() 48 if (cd->err_inject & GENWQE_INJECT_HARDWARE_FAILURE) in __genwqe_writeq() 51 if (cd->mmio == NULL) in __genwqe_writeq() 57 __raw_writeq((__force u64)cpu_to_be64(val), cd->mmio + byte_offs); in __genwqe_writeq() 68 u64 __genwqe_readq(struct genwqe_dev *cd, u64 byte_offs) in __genwqe_readq() argument 70 if (cd->err_inject & GENWQE_INJECT_HARDWARE_FAILURE) in __genwqe_readq() 73 if ((cd->err_inject & GENWQE_INJECT_GFIR_FATAL) && in __genwqe_readq() 77 if ((cd->err_inject & GENWQE_INJECT_GFIR_INFO) && in __genwqe_readq() 81 if (cd->mmio == NULL) in __genwqe_readq() [all …]
|
D | card_base.h | 368 int genwqe_alloc_sync_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl, 371 int genwqe_setup_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl, 374 int genwqe_free_sync_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl); 398 struct genwqe_dev *cd; member 413 int genwqe_setup_service_layer(struct genwqe_dev *cd); /* for PF only */ 414 int genwqe_finish_queue(struct genwqe_dev *cd); 415 int genwqe_release_service_layer(struct genwqe_dev *cd); 424 static inline int genwqe_get_slu_id(struct genwqe_dev *cd) in genwqe_get_slu_id() argument 426 return (int)((cd->slu_unitcfg >> 32) & 0xff); in genwqe_get_slu_id() 429 int genwqe_ddcbs_in_flight(struct genwqe_dev *cd); [all …]
|
D | card_ddcb.c | 163 static void print_ddcb_info(struct genwqe_dev *cd, struct ddcb_queue *queue) in print_ddcb_info() argument 168 struct pci_dev *pci_dev = cd->pci_dev; in print_ddcb_info() 170 spin_lock_irqsave(&cd->print_lock, flags); in print_ddcb_info() 174 cd->card_idx, queue->ddcb_act, queue->ddcb_next); in print_ddcb_info() 190 spin_unlock_irqrestore(&cd->print_lock, flags); in print_ddcb_info() 241 static int ddcb_requ_finished(struct genwqe_dev *cd, struct ddcb_requ *req) in ddcb_requ_finished() argument 244 (cd->card_state != GENWQE_CARD_USED); in ddcb_requ_finished() 265 static int enqueue_ddcb(struct genwqe_dev *cd, struct ddcb_queue *queue, in enqueue_ddcb() argument 312 __genwqe_writeq(cd, queue->IO_QUEUE_OFFSET, num); /* start queue */ in enqueue_ddcb() 365 static int genwqe_check_ddcb_queue(struct genwqe_dev *cd, in genwqe_check_ddcb_queue() argument [all …]
|
D | card_dev.c | 32 static int genwqe_open_files(struct genwqe_dev *cd) in genwqe_open_files() argument 37 spin_lock_irqsave(&cd->file_lock, flags); in genwqe_open_files() 38 rc = list_empty(&cd->file_list); in genwqe_open_files() 39 spin_unlock_irqrestore(&cd->file_lock, flags); in genwqe_open_files() 43 static void genwqe_add_file(struct genwqe_dev *cd, struct genwqe_file *cfile) in genwqe_add_file() argument 48 spin_lock_irqsave(&cd->file_lock, flags); in genwqe_add_file() 49 list_add(&cfile->list, &cd->file_list); in genwqe_add_file() 50 spin_unlock_irqrestore(&cd->file_lock, flags); in genwqe_add_file() 53 static int genwqe_del_file(struct genwqe_dev *cd, struct genwqe_file *cfile) in genwqe_del_file() argument 57 spin_lock_irqsave(&cd->file_lock, flags); in genwqe_del_file() [all …]
|
D | card_sysfs.c | 42 struct genwqe_dev *cd = dev_get_drvdata(dev); in status_show() local 45 return sprintf(buf, "%s\n", cs[cd->card_state]); in status_show() 53 struct genwqe_dev *cd = dev_get_drvdata(dev); in appid_show() local 55 genwqe_read_app_id(cd, app_name, sizeof(app_name)); in appid_show() 64 struct genwqe_dev *cd = dev_get_drvdata(dev); in version_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() 77 struct genwqe_dev *cd = dev_get_drvdata(dev); in type_show() local 79 card_type = genwqe_card_type(cd); in type_show() 89 struct genwqe_dev *cd = dev_get_drvdata(dev); in tempsens_show() local [all …]
|
/linux-6.12.1/drivers/clk/sunxi-ng/ |
D | ccu_div.c | 19 struct ccu_div *cd = data; in ccu_div_round_rate() local 21 if (cd->common.features & CCU_FEATURE_FIXED_POSTDIV) in ccu_div_round_rate() 22 rate *= cd->fixed_post_div; in ccu_div_round_rate() 24 rate = divider_round_rate_parent(&cd->common.hw, parent, in ccu_div_round_rate() 26 cd->div.table, cd->div.width, in ccu_div_round_rate() 27 cd->div.flags); in ccu_div_round_rate() 29 if (cd->common.features & CCU_FEATURE_FIXED_POSTDIV) in ccu_div_round_rate() 30 rate /= cd->fixed_post_div; in ccu_div_round_rate() 37 struct ccu_div *cd = hw_to_ccu_div(hw); in ccu_div_disable() local 39 return ccu_gate_helper_disable(&cd->common, cd->enable); in ccu_div_disable() [all …]
|
/linux-6.12.1/drivers/input/touchscreen/ |
D | goodix_berlin_core.c | 198 static bool goodix_berlin_is_dummy_data(struct goodix_berlin_core *cd, in goodix_berlin_is_dummy_data() argument 215 static int goodix_berlin_dev_confirm(struct goodix_berlin_core *cd) in goodix_berlin_dev_confirm() argument 223 error = regmap_raw_write(cd->regmap, in goodix_berlin_dev_confirm() 229 error = regmap_raw_read(cd->regmap, in goodix_berlin_dev_confirm() 241 dev_err(cd->dev, "device confirm failed, rx_buf: %*ph\n", in goodix_berlin_dev_confirm() 247 static int goodix_berlin_power_on(struct goodix_berlin_core *cd) in goodix_berlin_power_on() argument 251 error = regulator_enable(cd->iovdd); in goodix_berlin_power_on() 253 dev_err(cd->dev, "Failed to enable iovdd: %d\n", error); in goodix_berlin_power_on() 260 error = regulator_enable(cd->avdd); in goodix_berlin_power_on() 262 dev_err(cd->dev, "Failed to enable avdd: %d\n", error); in goodix_berlin_power_on() [all …]
|
/linux-6.12.1/drivers/staging/fieldbus/anybuss/ |
D | host.c | 247 typedef int (*ab_task_fn_t)(struct anybuss_host *cd, 249 typedef void (*ab_done_fn_t)(struct anybuss_host *cd); 316 static void __ab_task_finish(struct ab_task *t, struct anybuss_host *cd) in __ab_task_finish() argument 319 t->done_fn(cd); in __ab_task_finish() 324 ab_task_dequeue_finish_put(struct kfifo *q, struct anybuss_host *cd) in ab_task_dequeue_finish_put() argument 331 __ab_task_finish(t, cd); in ab_task_dequeue_finish_put() 390 static void reset_assert(struct anybuss_host *cd) in reset_assert() argument 392 cd->reset(cd->dev, true); in reset_assert() 395 static void reset_deassert(struct anybuss_host *cd) in reset_deassert() argument 397 cd->reset(cd->dev, false); in reset_deassert() [all …]
|
D | arcx-anybus.c | 50 static void do_reset(struct controller_priv *cd, u8 rst_bit, bool reset) in do_reset() argument 52 mutex_lock(&cd->ctrl_lock); in do_reset() 58 cd->control_reg &= ~rst_bit; in do_reset() 60 cd->control_reg |= rst_bit; in do_reset() 61 writeb(cd->control_reg, cd->cpld_base + CPLD_CONTROL); in do_reset() 73 mutex_unlock(&cd->ctrl_lock); in do_reset() 76 static int anybuss_reset(struct controller_priv *cd, in anybuss_reset() argument 81 if (cd->common_reset) in anybuss_reset() 82 do_reset(cd, CPLD_CONTROL_CRST, reset); in anybuss_reset() 84 do_reset(cd, id ? CPLD_CONTROL_RST2 : CPLD_CONTROL_RST1, reset); in anybuss_reset() [all …]
|
/linux-6.12.1/drivers/scsi/ |
D | sr.c | 147 struct scsi_cd *cd = dev_get_drvdata(dev); in sr_runtime_suspend() local 149 if (!cd) /* E.g.: runtime suspend following sr_remove() */ in sr_runtime_suspend() 152 if (cd->media_present) in sr_runtime_suspend() 208 struct scsi_cd *cd = cdi->handle; in sr_check_events() local 218 events = sr_get_events(cd->device); in sr_check_events() 219 cd->get_event_changed |= events & DISK_EVENT_MEDIA_CHANGE; in sr_check_events() 227 if (cd->ignore_get_event) { in sr_check_events() 237 if (cd->device->changed) { in sr_check_events() 239 cd->device->changed = 0; in sr_check_events() 240 cd->tur_changed = true; in sr_check_events() [all …]
|
D | sr_vendor.c | 68 void sr_vendor_init(Scsi_CD *cd) in sr_vendor_init() argument 70 const char *vendor = cd->device->vendor; in sr_vendor_init() 71 const char *model = cd->device->model; in sr_vendor_init() 74 cd->vendor = VENDOR_SCSI3; in sr_vendor_init() 75 if (cd->readcd_known) in sr_vendor_init() 79 if (cd->device->type == TYPE_WORM) { in sr_vendor_init() 80 cd->vendor = VENDOR_WRITER; in sr_vendor_init() 83 cd->vendor = VENDOR_NEC; in sr_vendor_init() 95 cd->cdi.mask |= CDC_MULTI_SESSION; in sr_vendor_init() 98 cd->vendor = VENDOR_TOSHIBA; in sr_vendor_init() [all …]
|
/linux-6.12.1/drivers/soc/fsl/ |
D | dpaa2-console.c | 63 static inline void adjust_end(struct console_data *cd) in adjust_end() argument 65 u32 last_byte = readl(&cd->hdr->last_byte); in adjust_end() 67 cd->end_of_data = cd->start_addr + LAST_BYTE(last_byte); in adjust_end() 91 static ssize_t dpaa2_console_size(struct console_data *cd) in dpaa2_console_size() argument 95 if (cd->cur_ptr <= cd->end_of_data) in dpaa2_console_size() 96 size = cd->end_of_data - cd->cur_ptr; in dpaa2_console_size() 98 size = (cd->end_addr - cd->cur_ptr) + in dpaa2_console_size() 99 (cd->end_of_data - cd->start_addr); in dpaa2_console_size() 110 struct console_data *cd; in dpaa2_generic_console_open() local 114 cd = kmalloc(sizeof(*cd), GFP_KERNEL); in dpaa2_generic_console_open() [all …]
|
/linux-6.12.1/drivers/irqchip/ |
D | irq-mst-intc.c | 42 struct mst_intc_chip_data *cd = irq_data_get_irq_chip_data(d); in mst_set_irq() local 49 raw_spin_lock_irqsave(&cd->lock, flags); in mst_set_irq() 50 val = readw_relaxed(cd->base + offset) | mask; in mst_set_irq() 51 writew_relaxed(val, cd->base + offset); in mst_set_irq() 52 raw_spin_unlock_irqrestore(&cd->lock, flags); in mst_set_irq() 58 struct mst_intc_chip_data *cd = irq_data_get_irq_chip_data(d); in mst_clear_irq() local 65 raw_spin_lock_irqsave(&cd->lock, flags); in mst_clear_irq() 66 val = readw_relaxed(cd->base + offset) & ~mask; in mst_clear_irq() 67 writew_relaxed(val, cd->base + offset); in mst_clear_irq() 68 raw_spin_unlock_irqrestore(&cd->lock, flags); in mst_clear_irq() [all …]
|
D | irq-imx-gpcv2.c | 31 static void __iomem *gpcv2_idx_to_reg(struct gpcv2_irqchip_data *cd, int i) in gpcv2_idx_to_reg() argument 33 return cd->gpc_base + cd->cpu2wakeup + i * 4; in gpcv2_idx_to_reg() 38 struct gpcv2_irqchip_data *cd; in gpcv2_wakeup_source_save() local 42 cd = imx_gpcv2_instance; in gpcv2_wakeup_source_save() 43 if (!cd) in gpcv2_wakeup_source_save() 47 reg = gpcv2_idx_to_reg(cd, i); in gpcv2_wakeup_source_save() 48 cd->saved_irq_mask[i] = readl_relaxed(reg); in gpcv2_wakeup_source_save() 49 writel_relaxed(cd->wakeup_sources[i], reg); in gpcv2_wakeup_source_save() 57 struct gpcv2_irqchip_data *cd; in gpcv2_wakeup_source_restore() local 60 cd = imx_gpcv2_instance; in gpcv2_wakeup_source_restore() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/gpio/ |
D | ddc_regs.h | 34 #define DDC_GPIO_REG_LIST_ENTRY(type, cd, id) \ argument 36 ….type ## _mask = DC_GPIO_DDC ## id ## _ ## type ## __DC_GPIO_DDC ## id ## cd ## _ ## type ## _MAS… 37 ….type ## _shift = DC_GPIO_DDC ## id ## _ ## type ## __DC_GPIO_DDC ## id ## cd ## _ ## type ## __SH… 39 #define DDC_GPIO_REG_LIST(cd, id) \ argument 41 DDC_GPIO_REG_LIST_ENTRY(MASK, cd, id),\ 42 DDC_GPIO_REG_LIST_ENTRY(A, cd, id),\ 43 DDC_GPIO_REG_LIST_ENTRY(EN, 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),\ [all …]
|
/linux-6.12.1/io_uring/ |
D | cancel.c | 37 bool io_cancel_req_match(struct io_kiocb *req, struct io_cancel_data *cd) in io_cancel_req_match() argument 39 bool match_user_data = cd->flags & IORING_ASYNC_CANCEL_USERDATA; in io_cancel_req_match() 41 if (req->ctx != cd->ctx) in io_cancel_req_match() 44 if (!(cd->flags & (IORING_ASYNC_CANCEL_FD | IORING_ASYNC_CANCEL_OP))) in io_cancel_req_match() 47 if (cd->flags & IORING_ASYNC_CANCEL_ANY) in io_cancel_req_match() 49 if (cd->flags & IORING_ASYNC_CANCEL_FD) { in io_cancel_req_match() 50 if (req->file != cd->file) in io_cancel_req_match() 53 if (cd->flags & IORING_ASYNC_CANCEL_OP) { in io_cancel_req_match() 54 if (req->opcode != cd->opcode) in io_cancel_req_match() 57 if (match_user_data && req->cqe.user_data != cd->data) in io_cancel_req_match() [all …]
|
/linux-6.12.1/drivers/perf/ |
D | arm-ni.c | 124 #define cd_to_ni(cd) container_of((cd), struct arm_ni, cds[(cd)->id]) argument 127 #define cd_for_each_unit(cd, u) \ argument 128 for (struct arm_ni_unit *u = cd->units; u < cd->units + cd->num_units; u++) 158 struct arm_ni_cd *cd = pmu_to_cd(dev_get_drvdata(dev)); in arm_ni_event_attr_is_visible() local 163 cd_for_each_unit(cd, unit) { in arm_ni_event_attr_is_visible() 221 struct arm_ni_cd *cd = pmu_to_cd(dev_get_drvdata(dev)); in arm_ni_cpumask_show() local 223 return cpumap_print_to_pagebuf(true, buf, cpumask_of(cd->cpu)); in arm_ni_cpumask_show() 310 struct arm_ni_cd *cd = pmu_to_cd(event->pmu); in arm_ni_event_init() local 318 event->cpu = cd->cpu; in arm_ni_event_init() 322 cd_for_each_unit(cd, unit) { in arm_ni_event_init() [all …]
|
/linux-6.12.1/sound/soc/au1x/ |
D | dbdma2.c | 78 static void au1x_pcm_queue_tx(struct au1xpsc_audio_dmadata *cd) in au1x_pcm_queue_tx() argument 80 au1xxx_dbdma_put_source(cd->ddma_chan, cd->dma_area, in au1x_pcm_queue_tx() 81 cd->period_bytes, DDMA_FLAGS_IE); in au1x_pcm_queue_tx() 84 ++cd->q_period; in au1x_pcm_queue_tx() 85 cd->dma_area += cd->period_bytes; in au1x_pcm_queue_tx() 86 if (cd->q_period >= cd->periods) { in au1x_pcm_queue_tx() 87 cd->q_period = 0; in au1x_pcm_queue_tx() 88 cd->dma_area = cd->dma_area_s; in au1x_pcm_queue_tx() 92 static void au1x_pcm_queue_rx(struct au1xpsc_audio_dmadata *cd) in au1x_pcm_queue_rx() argument 94 au1xxx_dbdma_put_dest(cd->ddma_chan, cd->dma_area, in au1x_pcm_queue_rx() [all …]
|
/linux-6.12.1/net/sunrpc/ |
D | cache.c | 84 struct cache_detail *cd) in sunrpc_begin_cache_remove_entry() argument 89 cd->entries --; in sunrpc_begin_cache_remove_entry() 93 struct cache_detail *cd) in sunrpc_end_cache_remove_entry() argument 95 cache_fresh_unlocked(ch, cd); in sunrpc_end_cache_remove_entry() 96 cache_put(ch, cd); in sunrpc_end_cache_remove_entry() 385 void sunrpc_init_cache_detail(struct cache_detail *cd) in sunrpc_init_cache_detail() argument 387 spin_lock_init(&cd->hash_lock); in sunrpc_init_cache_detail() 388 INIT_LIST_HEAD(&cd->queue); in sunrpc_init_cache_detail() 390 cd->nextcheck = 0; in sunrpc_init_cache_detail() 391 cd->entries = 0; in sunrpc_init_cache_detail() [all …]
|
/linux-6.12.1/arch/arm/mach-omap2/ |
D | clockdomain.c | 105 struct clkdm_dep *cd; in _clkdm_deps_lookup() local 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() 114 if (cd->clkdm == clkdm) in _clkdm_deps_lookup() 118 if (!cd->clkdm_name) in _clkdm_deps_lookup() 121 return cd; in _clkdm_deps_lookup() 168 struct clkdm_dep *cd; in _resolve_clkdm_deps() local 170 for (cd = clkdm_deps; cd && cd->clkdm_name; cd++) { in _resolve_clkdm_deps() 171 if (cd->clkdm) in _resolve_clkdm_deps() [all …]
|
/linux-6.12.1/arch/mips/kernel/ |
D | cevt-bcm1480.c | 57 static int sibyte_next_event(unsigned long delta, struct clock_event_device *cd) in sibyte_next_event() argument 75 struct clock_event_device *cd = dev_id; in sibyte_counter_handler() local 79 if (clockevent_state_periodic(cd)) in sibyte_counter_handler() 88 cd->event_handler(cd); in sibyte_counter_handler() 100 struct clock_event_device *cd = &per_cpu(sibyte_hpt_clockevent, cpu); in sb1480_clockevent_init() local 107 cd->name = name; in sb1480_clockevent_init() 108 cd->features = CLOCK_EVT_FEAT_PERIODIC | in sb1480_clockevent_init() 110 clockevent_set_clock(cd, V_SCD_TIMER_FREQ); 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() [all …]
|
D | cevt-sb1250.c | 56 static int sibyte_next_event(unsigned long delta, struct clock_event_device *cd) in sibyte_next_event() argument 74 struct clock_event_device *cd = dev_id; in sibyte_counter_handler() local 78 if (clockevent_state_periodic(cd)) in sibyte_counter_handler() 87 cd->event_handler(cd); in sibyte_counter_handler() 99 struct clock_event_device *cd = &per_cpu(sibyte_hpt_clockevent, cpu); in sb1250_clockevent_init() local 107 cd->name = name; in sb1250_clockevent_init() 108 cd->features = CLOCK_EVT_FEAT_PERIODIC | in sb1250_clockevent_init() 110 clockevent_set_clock(cd, V_SCD_TIMER_FREQ); in sb1250_clockevent_init() 111 cd->max_delta_ns = clockevent_delta2ns(0x7fffff, cd); in sb1250_clockevent_init() 112 cd->max_delta_ticks = 0x7fffff; in sb1250_clockevent_init() [all …]
|
/linux-6.12.1/fs/ |
D | char_dev.c | 53 struct char_device_struct *cd; in chrdev_show() local 56 for (cd = chrdevs[major_to_index(offset)]; cd; cd = cd->next) { in chrdev_show() 57 if (cd->major == offset) in chrdev_show() 58 seq_printf(f, "%3d %s\n", cd->major, cd->name); in chrdev_show() 68 struct char_device_struct *cd; in find_dynamic_major() local 77 for (cd = chrdevs[major_to_index(i)]; cd; cd = cd->next) in find_dynamic_major() 78 if (cd->major == i) in find_dynamic_major() 81 if (cd == NULL) in find_dynamic_major() 100 struct char_device_struct *cd, *curr, *prev = NULL; in __register_chrdev_region() local 116 cd = kzalloc(sizeof(struct char_device_struct), GFP_KERNEL); in __register_chrdev_region() [all …]
|