Home
last modified time | relevance | path

Searched full:cd (Results 1 – 25 of 1458) sorted by relevance

12345678910>>...59

/linux/drivers/misc/genwqe/
H A Dcard_base.c135 struct genwqe_dev *cd; in genwqe_dev_alloc() local
144 cd = kzalloc_obj(struct genwqe_dev); 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 …]
H A 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 …]
H A Dcard_utils.c38 * @cd: genwqe device descriptor
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()
63 * @cd: genwqe device descriptor
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()
[all …]
H A 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 …]
H A 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()
229 * @cd: pointer to genwqe device descriptor
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()
251 * @cd: pointer to genwqe device descriptor
265 static int enqueue_ddcb(struct genwqe_dev *cd, struct ddcb_queue *queue, in enqueue_ddcb() argument
[all …]
H A 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 …]
H A 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 …]
/linux/scripts/gendwarfksyms/
H A Ddie.c22 static void init_die(struct die *cd) in init_die() argument
24 cd->state = DIE_INCOMPLETE; in init_die()
25 cd->mapped = false; in init_die()
26 cd->fqn = NULL; in init_die()
27 cd->tag = -1; in init_die()
28 cd->addr = 0; in init_die()
29 INIT_LIST_HEAD(&cd->fragments); in init_die()
34 struct die *cd; in create_die() local
36 cd = xmalloc(sizeof(*cd)); in create_die()
37 init_die(cd); in create_die()
[all …]
/linux/drivers/scsi/
H A Dsr.c147 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 …]
H A Dsr_vendor.c4 * vendor-specific code for SCSI CD-ROM's goes here.
20 * support for XA/multisession-CD's
22 * - NEC: Detection and support of multisession CD's.
24 * - TOSHIBA: Detection and support of multisession CD's.
27 * - SONY: Detection and support of multisession CD's.
34 * HP-Writers only ??? Maybe other CD-Writers work with this too ?
64 #define VENDOR_CYGNAL_85ED 5 /* CD-on-a-chip */
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()
[all …]
/linux/drivers/soc/fsl/
H A 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_obj(*cd); in dpaa2_generic_console_open()
[all …]
/linux/drivers/irqchip/
H A 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 …]
H A 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/drivers/gpu/drm/amd/display/dc/gpio/
H A 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/net/sunrpc/
H A Dcache.c85 struct cache_detail *cd) in sunrpc_begin_cache_remove_entry() argument
87 /* Must be called under cd->hash_lock */ in sunrpc_begin_cache_remove_entry()
90 cd->entries --; in sunrpc_begin_cache_remove_entry()
94 struct cache_detail *cd) in sunrpc_end_cache_remove_entry() argument
96 cache_fresh_unlocked(ch, cd); in sunrpc_end_cache_remove_entry()
97 cache_put(ch, cd); in sunrpc_end_cache_remove_entry()
399 void sunrpc_init_cache_detail(struct cache_detail *cd) in sunrpc_init_cache_detail() argument
401 spin_lock_init(&cd->hash_lock); in sunrpc_init_cache_detail()
402 INIT_LIST_HEAD(&cd->queue); in sunrpc_init_cache_detail()
404 cd->nextcheck = 0; in sunrpc_init_cache_detail()
[all …]
/linux/arch/mips/cavium-octeon/
H A Docteon-irq.c101 struct octeon_ciu_chip_data *cd; in octeon_irq_set_ciu_mapping() local
103 cd = kzalloc_obj(*cd); 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()
111 cd->gpio_line = gpio_line; in octeon_irq_set_ciu_mapping()
113 irq_set_chip_data(irq, cd); in octeon_irq_set_ciu_mapping()
121 struct octeon_ciu_chip_data *cd = irq_data_get_irq_chip_data(data); in octeon_irq_free_cd() local
124 kfree(cd); in octeon_irq_free_cd()
163 struct octeon_core_chip_data *cd = irq_data_get_irq_chip_data(data); in octeon_irq_core_ack() local
[all …]
/linux/arch/mips/kernel/
H A 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 …]
H A Dcevt-txx9.c76 struct clock_event_device cd; member
91 container_of(evt, struct txx9_clock_event_device, cd); in txx9tmr_set_state_periodic()
107 container_of(evt, struct txx9_clock_event_device, cd); in txx9tmr_set_state_oneshot()
118 container_of(evt, struct txx9_clock_event_device, cd); in txx9tmr_set_state_shutdown()
129 container_of(evt, struct txx9_clock_event_device, cd); in txx9tmr_tick_resume()
142 container_of(evt, struct txx9_clock_event_device, cd); in txx9tmr_set_next_event()
153 .cd = {
169 struct clock_event_device *cd = &txx9_cd->cd; in txx9tmr_interrupt() local
173 cd->event_handler(cd); in txx9tmr_interrupt()
180 struct clock_event_device *cd = &txx9_clock_event_device.cd; in txx9_clockevent_init() local
[all …]
/linux/kernel/time/
H A Dposix-clock.c197 static int get_clock_desc(const clockid_t id, struct posix_clock_desc *cd) in get_clock_desc() argument
208 cd->fp = fp; in get_clock_desc()
209 cd->clk = get_posix_clock(fp); in get_clock_desc()
211 err = cd->clk ? 0 : -ENODEV; in get_clock_desc()
218 static void put_clock_desc(struct posix_clock_desc *cd) in put_clock_desc() argument
220 put_posix_clock(cd->clk); in put_clock_desc()
221 fput(cd->fp); in put_clock_desc()
226 struct posix_clock_desc cd; in pc_clock_adjtime() local
229 err = get_clock_desc(id, &cd); in pc_clock_adjtime()
233 if (tx->modes && (cd.fp->f_mode & FMODE_WRITE) == 0) { in pc_clock_adjtime()
[all …]
H A Dsched_clock.c61 static struct clock_data cd ____cacheline_aligned = {
74 *seq = read_seqcount_latch(&cd.seq); in sched_clock_read_begin()
75 return cd.read_data + (*seq & 1); in sched_clock_read_begin()
80 return read_seqcount_latch_retry(&cd.seq, seq); in sched_clock_read_retry()
90 seq = raw_read_seqcount_latch(&cd.seq); in __sched_clock()
91 rd = cd.read_data + (seq & 1); in __sched_clock()
96 } while (raw_read_seqcount_latch_retry(&cd.seq, seq)); in __sched_clock()
135 write_seqcount_latch_begin(&cd.seq); in update_clock_read_data()
138 cd.read_data[0] = *rd; in update_clock_read_data()
141 write_seqcount_latch(&cd in update_clock_read_data()
[all...]
/linux/io_uring/
H A Dcancel.c37 * Returns true if the request matches the criteria outlined by 'cd'.
39 bool io_cancel_req_match(struct io_kiocb *req, struct io_cancel_data *cd) in io_cancel_req_match() argument
41 bool match_user_data = cd->flags & IORING_ASYNC_CANCEL_USERDATA; in io_cancel_req_match()
43 if (req->ctx != cd->ctx) in io_cancel_req_match()
46 if (!(cd->flags & (IORING_ASYNC_CANCEL_FD | IORING_ASYNC_CANCEL_OP))) in io_cancel_req_match()
49 if (cd->flags & IORING_ASYNC_CANCEL_ANY) in io_cancel_req_match()
51 if (cd->flags & IORING_ASYNC_CANCEL_FD) { in io_cancel_req_match()
52 if (req->file != cd->file) in io_cancel_req_match()
55 if (cd->flags & IORING_ASYNC_CANCEL_OP) { in io_cancel_req_match()
56 if (req->opcode != cd->opcode) in io_cancel_req_match()
[all …]
/linux/Documentation/cdrom/
H A Dcdrom-standard.rst2 A Linux CD-ROM standard
29 This divergence of behavior has been very significant for CD-ROM
32 their drivers totally inconsistent, the writers of Linux CD-ROM
35 maintain uniform behavior across all the Linux CD-ROM drivers.
38 all the different CD-ROM device drivers for Linux. This document also
39 defines the various *ioctl()'s*, and how the low-level CD-ROM device
41 development kernels) several low-level CD-ROM device drivers, including
44 When the CD-ROM was developed, the interface between the CD-ROM drive
46 different CD-ROM interfaces were developed. Some of them had their
55 driver had to be enhanced. History has delivered us CD-ROM support for
[all …]
/linux/fs/
H A Dchar_dev.c54 struct char_device_struct *cd; in chrdev_show() local
57 for (cd = chrdevs[major_to_index(offset)]; cd; cd = cd->next) { in chrdev_show()
58 if (cd->major == offset) in chrdev_show()
59 seq_printf(f, "%3d %s\n", cd->major, cd->name); in chrdev_show()
69 struct char_device_struct *cd; in find_dynamic_major() local
78 for (cd = chrdevs[major_to_index(i)]; cd; cd = cd->next) in find_dynamic_major()
79 if (cd->major == i) in find_dynamic_major()
82 if (cd == NULL) in find_dynamic_major()
101 struct char_device_struct *cd __free(kfree) = NULL; in __register_chrdev_region()
118 cd = kzalloc_obj(struct char_device_struct); in __register_chrdev_region()
[all …]
/linux/arch/mips/loongson64/
H A Dhpet.c176 struct clock_event_device *cd; in hpet_irq_handler() local
183 cd = &per_cpu(hpet_clockevent_device, cpu); in hpet_irq_handler()
184 cd->event_handler(cd); in hpet_irq_handler()
223 struct clock_event_device *cd; in setup_hpet_timer() local
227 cd = &per_cpu(hpet_clockevent_device, cpu); in setup_hpet_timer()
228 cd->name = "hpet"; in setup_hpet_timer()
229 cd->rating = 100; in setup_hpet_timer()
230 cd->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT; in setup_hpet_timer()
231 cd->set_state_shutdown = hpet_set_state_shutdown; in setup_hpet_timer()
232 cd->set_state_periodic = hpet_set_state_periodic; in setup_hpet_timer()
[all …]
/linux/drivers/net/wireless/ath/
H A 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()
188 struct pri_detector *de = cd->detectors[i]; in channel_detector_exit()
193 kfree(cd); in channel_detector_exit()
200 struct channel_detector *cd; in channel_detector_create() local
202 cd = kzalloc_flex(*cd, detectors, dpd->num_radar_types, GFP_ATOMIC); in channel_detector_create()
[all …]

12345678910>>...59