Home
last modified time | relevance | path

Searched refs:cd (Results 1 – 25 of 1186) sorted by relevance

12345678910>>...48

/Linux-v6.6/drivers/misc/genwqe/
Dcard_base.c135 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 …]
Dcard_debugfs.c45 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 …]
Dcard_utils.c44 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 …]
Dcard_base.h368 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 …]
Dcard_ddcb.c163 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 …]
Dcard_dev.c32 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 …]
Dcard_sysfs.c42 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-v6.6/drivers/input/touchscreen/
Dcyttsp4_core.c84 static int cyttsp4_load_status_regs(struct cyttsp4 *cd) in cyttsp4_load_status_regs() argument
86 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_load_status_regs()
87 struct device *dev = cd->dev; in cyttsp4_load_status_regs()
90 rc = cyttsp4_adap_read(cd, CY_REG_BASE, si->si_ofs.mode_size, in cyttsp4_load_status_regs()
96 cyttsp4_pr_buf(dev, cd->pr_buf, si->xy_mode, in cyttsp4_load_status_regs()
102 static int cyttsp4_handshake(struct cyttsp4 *cd, u8 mode) in cyttsp4_handshake() argument
114 rc = cyttsp4_adap_write(cd, CY_REG_BASE, sizeof(cmd), &cmd); in cyttsp4_handshake()
116 dev_err(cd->dev, "%s: bus write fail on handshake (ret=%d)\n", in cyttsp4_handshake()
122 static int cyttsp4_hw_soft_reset(struct cyttsp4 *cd) in cyttsp4_hw_soft_reset() argument
125 int rc = cyttsp4_adap_write(cd, CY_REG_BASE, sizeof(cmd), &cmd); in cyttsp4_hw_soft_reset()
[all …]
/Linux-v6.6/drivers/clk/sunxi-ng/
Dccu_div.c19 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-v6.6/drivers/scsi/
Dsr.c148 struct scsi_cd *cd = dev_get_drvdata(dev); in sr_runtime_suspend() local
150 if (!cd) /* E.g.: runtime suspend following sr_remove() */ in sr_runtime_suspend()
153 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 …]
Dsr_vendor.c68 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-v6.6/drivers/staging/fieldbus/anybuss/
Dhost.c247 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 …]
Darcx-anybus.c50 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-v6.6/drivers/soc/fsl/
Ddpaa2-console.c63 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-v6.6/drivers/irqchip/
Dirq-mst-intc.c42 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 …]
Dirq-imx-gpcv2.c31 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-v6.6/drivers/gpu/drm/amd/display/dc/gpio/
Dddc_regs.h34 #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-v6.6/io_uring/
Dcancel.c35 bool io_cancel_req_match(struct io_kiocb *req, struct io_cancel_data *cd) in io_cancel_req_match() argument
37 bool match_user_data = cd->flags & IORING_ASYNC_CANCEL_USERDATA; in io_cancel_req_match()
39 if (req->ctx != cd->ctx) in io_cancel_req_match()
42 if (!(cd->flags & (IORING_ASYNC_CANCEL_FD | IORING_ASYNC_CANCEL_OP))) in io_cancel_req_match()
45 if (cd->flags & IORING_ASYNC_CANCEL_ANY) in io_cancel_req_match()
47 if (cd->flags & IORING_ASYNC_CANCEL_FD) { in io_cancel_req_match()
48 if (req->file != cd->file) in io_cancel_req_match()
51 if (cd->flags & IORING_ASYNC_CANCEL_OP) { in io_cancel_req_match()
52 if (req->opcode != cd->opcode) in io_cancel_req_match()
55 if (match_user_data && req->cqe.user_data != cd->data) in io_cancel_req_match()
[all …]
/Linux-v6.6/sound/soc/au1x/
Ddbdma2.c78 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-v6.6/net/sunrpc/
Dcache.c84 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-v6.6/arch/arm/mach-omap2/
Dclockdomain.c105 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-v6.6/arch/mips/kernel/
Dcevt-bcm1480.c57 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 …]
Dcevt-sb1250.c56 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-v6.6/drivers/net/wireless/ath/
Ddfs_pattern_detector.c169 struct channel_detector *cd) in channel_detector_reset() argument
172 if (cd == NULL) in channel_detector_reset()
175 cd->detectors[i]->reset(cd->detectors[i], dpd->last_pulse_ts); in channel_detector_reset()
180 struct channel_detector *cd) in channel_detector_exit() argument
183 if (cd == NULL) in channel_detector_exit()
185 list_del(&cd->head); in channel_detector_exit()
186 if (cd->detectors) { in channel_detector_exit()
188 struct pri_detector *de = cd->detectors[i]; in channel_detector_exit()
193 kfree(cd->detectors); in channel_detector_exit()
194 kfree(cd); in channel_detector_exit()
[all …]
/Linux-v6.6/fs/
Dchar_dev.c53 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 …]

12345678910>>...48