| /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 | 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 …]
|
| 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 …]
|
| 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 …]
|
| /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 | 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 …]
|
| H A D | sr_ioctl.c | 39 struct scsi_cd *cd = cdi->handle; in sr_read_tochdr() local 57 result = sr_do_ioctl(cd, &cgc); in sr_read_tochdr() 72 struct scsi_cd *cd = cdi->handle; in sr_read_tocentry() local 91 result = sr_do_ioctl(cd, &cgc); in sr_read_tocentry() 164 struct scsi_cd *cd = cdi->handle; in sr_play_trkind() local 177 result = sr_do_ioctl(cd, &cgc); in sr_play_trkind() 188 int sr_do_ioctl(Scsi_CD *cd, struct packet_command *cgc) in sr_do_ioctl() argument 197 SDev = cd->device; in sr_do_ioctl() 222 sr_printk(KERN_INFO, cd, in sr_do_ioctl() 233 sr_printk(KERN_INFO, cd, in sr_do_ioctl() [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/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/net/sunrpc/ |
| H A 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() 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() 404 cd->entries = 0; in sunrpc_init_cache_detail() [all …]
|
| /linux/arch/arm/mach-omap2/ |
| H A 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/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 …]
|
| /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/kernel/time/ |
| 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 …]
|
| 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 …]
|
| /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/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/arch/mips/sgi-ip27/ |
| H A D | ip27-timer.c | 49 struct clock_event_device *cd = &per_cpu(hub_rt_clockevent, cpu); in hub_rt_counter_handler() local 56 cd->event_handler(cd); in hub_rt_counter_handler() 82 struct clock_event_device *cd = &per_cpu(hub_rt_clockevent, cpu); in hub_rt_clock_event_init() local 86 cd->name = name; in hub_rt_clock_event_init() 87 cd->features = CLOCK_EVT_FEAT_ONESHOT; in hub_rt_clock_event_init() 88 clockevent_set_clock(cd, CYCLES_PER_SEC); in hub_rt_clock_event_init() 89 cd->max_delta_ns = clockevent_delta2ns(0xfffffffffffff, cd); in hub_rt_clock_event_init() 90 cd->max_delta_ticks = 0xfffffffffffff; in hub_rt_clock_event_init() 91 cd->min_delta_ns = clockevent_delta2ns(0x300, cd); in hub_rt_clock_event_init() 92 cd->min_delta_ticks = 0x300; in hub_rt_clock_event_init() [all …]
|
| /linux/arch/mips/alchemy/common/ |
| H A D | time.c | 49 struct clock_event_device *cd) in au1x_rtcmatch2_set_next_event() argument 62 struct clock_event_device *cd = dev_id; in au1x_rtcmatch2_irq() local 63 cd->event_handler(cd); in au1x_rtcmatch2_irq() 77 struct clock_event_device *cd = &au1x_rtcmatch2_clockdev; in alchemy_time_init() local 119 cd->shift = 32; in alchemy_time_init() 120 cd->mult = div_sc(32768, NSEC_PER_SEC, cd->shift); in alchemy_time_init() 121 cd->max_delta_ns = clockevent_delta2ns(0xffffffff, cd); in alchemy_time_init() 122 cd->max_delta_ticks = 0xffffffff; in alchemy_time_init() 123 cd->min_delta_ns = clockevent_delta2ns(9, cd); in alchemy_time_init() 124 cd->min_delta_ticks = 9; /* ~0.28ms */ in alchemy_time_init() [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 …]
|