/linux/drivers/misc/genwqe/ |
H A 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 …]
|
H A 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 …]
|
H A D | card_utils.c | 38 * @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 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 …]
|
H A 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 …]
|
H A 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 …]
|
/linux/scripts/gendwarfksyms/ |
H A D | die.c | 22 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 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 …]
|
H A D | sr_vendor.c | 4 * 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/irqchip/ |
H A 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 …]
|
H A 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/io_uring/ |
H A D | cancel.c | 36 * Returns true if the request matches the criteria outlined by 'cd'. 38 bool io_cancel_req_match(struct io_kiocb *req, struct io_cancel_data *cd) in io_cancel_req_match() 40 bool match_user_data = cd->flags & IORING_ASYNC_CANCEL_USERDATA; in io_cancel_req_match() 42 if (req->ctx != cd->ctx) in io_cancel_req_match() 45 if (!(cd->flags & (IORING_ASYNC_CANCEL_FD | IORING_ASYNC_CANCEL_OP))) in io_cancel_req_match() 48 if (cd->flags & IORING_ASYNC_CANCEL_ANY) in io_cancel_req_match() 50 if (cd->flags & IORING_ASYNC_CANCEL_FD) { in io_cancel_req_match() 51 if (req->file != cd->file) in io_cancel_req_match() 54 if (cd->flags & IORING_ASYNC_CANCEL_OP) { in io_cancel_req_match() 55 if (req->opcode != cd in io_cancel_req_match() 37 io_cancel_req_match(struct io_kiocb * req,struct io_cancel_data * cd) io_cancel_req_match() argument 71 struct io_cancel_data *cd = data; io_cancel_cb() local 77 io_async_cancel_one(struct io_uring_task * tctx,struct io_cancel_data * cd) io_async_cancel_one() argument 103 io_try_cancel(struct io_uring_task * tctx,struct io_cancel_data * cd,unsigned issue_flags) io_try_cancel() argument 165 __io_async_cancel(struct io_cancel_data * cd,struct io_uring_task * tctx,unsigned int issue_flags) __io_async_cancel() argument 201 struct io_cancel_data cd = { io_async_cancel() local 236 __io_sync_cancel(struct io_uring_task * tctx,struct io_cancel_data * cd,int fd) __io_sync_cancel() argument 259 struct io_cancel_data cd = { io_sync_cancel() local 366 io_cancel_remove(struct io_ring_ctx * ctx,struct io_cancel_data * cd,unsigned int issue_flags,struct hlist_head * list,bool (* cancel)(struct io_kiocb *)) io_cancel_remove() argument [all...] |
/linux/drivers/gpu/drm/amd/display/dc/gpio/ |
H A 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/drivers/perf/ |
H A D | arm-ni.c | 125 #define cd_to_ni(cd) container_of((cd), struct arm_ni, cds[(cd)->id]) argument 131 #define cd_for_each_unit(cd, u) \ argument 132 for (struct arm_ni_unit *u = cd->units; u < cd->units + cd->num_units; u++) 162 struct arm_ni_cd *cd = pmu_to_cd(dev_get_drvdata(dev)); in arm_ni_event_attr_is_visible() local 167 cd_for_each_unit(cd, unit) { in arm_ni_event_attr_is_visible() 313 struct arm_ni_cd *cd = pmu_to_cd(event->pmu); in arm_ni_event_init() local 321 event->cpu = cd_to_ni(cd)->cpu; in arm_ni_event_init() 325 cd_for_each_unit(cd, unit) { in arm_ni_event_init() 335 static u64 arm_ni_read_ccnt(struct arm_ni_cd *cd) in arm_ni_read_ccnt() argument 340 u_new = readl_relaxed(cd->pmu_base + NI_PMCCNTR_U); in arm_ni_read_ccnt() [all …]
|
/linux/net/sunrpc/ |
H A D | cache.c | 84 struct cache_detail *cd) in sunrpc_begin_cache_remove_entry() argument 86 /* Must be called under cd->hash_lock */ in sunrpc_begin_cache_remove_entry() 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() 398 void sunrpc_init_cache_detail(struct cache_detail *cd) in sunrpc_init_cache_detail() argument 400 spin_lock_init(&cd->hash_lock); in sunrpc_init_cache_detail() 401 INIT_LIST_HEAD(&cd->queue); in sunrpc_init_cache_detail() 403 cd->nextcheck = 0; in sunrpc_init_cache_detail() [all …]
|
/linux/arch/mips/cavium-octeon/ |
H A D | octeon-irq.c | 101 struct octeon_ciu_chip_data *cd; in octeon_irq_set_ciu_mapping() local 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() 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 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 …]
|
H A D | cevt-txx9.c | 76 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 D | posix-clock.c | 197 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 D | sched_clock.c | 61 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.seq); in update_clock_read_data() [all …]
|
/linux/Documentation/cdrom/ |
H A D | cdrom-standard.rst | 2 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/arch/parisc/kernel/ |
H A D | time.c | 43 struct clock_event_device *cd; in timer_interrupt() local 46 cd = &per_cpu(parisc_clockevent_device, cpu); in timer_interrupt() 48 if (clockevent_state_periodic(cd)) in timer_interrupt() 49 parisc_timer_next_event(clocktick, cd); in timer_interrupt() 51 if (clockevent_state_periodic(cd) || clockevent_state_oneshot(cd)) in timer_interrupt() 52 cd->event_handler(cd); in timer_interrupt() 81 struct clock_event_device *cd; in parisc_clockevent_init() local 83 cd = &per_cpu(parisc_clockevent_device, cpu); in parisc_clockevent_init() 85 cd->name = "cr16_clockevent"; in parisc_clockevent_init() 86 cd->features = CLOCK_EVT_FEAT_ONESHOT | CLOCK_EVT_FEAT_PERIODIC | in parisc_clockevent_init() [all …]
|
/linux/arch/mips/loongson64/ |
H A D | hpet.c | 176 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 D | dfs_pattern_detector.c | 169 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(struct_size(cd, detectors, dpd->num_radar_types), GFP_ATOMIC); in channel_detector_create() [all …]
|
/linux/fs/smb/client/ |
H A D | fscache.c | 27 struct cifs_fscache_volume_coherency_data *cd) in cifs_fscache_fill_volume_coherency() argument 29 memset(cd, 0, sizeof(*cd)); in cifs_fscache_fill_volume_coherency() 30 cd->resource_id = cpu_to_le64(tcon->resource_id); in cifs_fscache_fill_volume_coherency() 31 cd->vol_create_time = tcon->vol_create_time; in cifs_fscache_fill_volume_coherency() 32 cd->vol_serial_number = cpu_to_le32(tcon->vol_serial_number); in cifs_fscache_fill_volume_coherency() 37 struct cifs_fscache_volume_coherency_data cd; in cifs_fscache_get_super_cookie() local 85 cifs_fscache_fill_volume_coherency(tcon, &cd); in cifs_fscache_get_super_cookie() 88 &cd, sizeof(cd)); in cifs_fscache_get_super_cookie() 116 struct cifs_fscache_volume_coherency_data cd; in cifs_fscache_release_super_cookie() local 120 cifs_fscache_fill_volume_coherency(tcon, &cd); in cifs_fscache_release_super_cookie() [all …]
|