/linux/drivers/bcma/ |
A D | driver_chipcommon.c | 91 ticks = bcma_chipco_watchdog_timer_set(cc, cc->ticks_per_ms * ms); in bcma_chipco_watchdog_timer_set_ms_wdt() 125 wdt.driver_data = cc; in bcma_chipco_watchdog_register() 129 bcma_chipco_watchdog_get_max_timer(cc) / cc->ticks_per_ms; in bcma_chipco_watchdog_register() 137 cc->watchdog = pdev; in bcma_chipco_watchdog_register() 179 cc->status = bcma_cc_read32(cc, BCMA_CC_CHIPSTAT); in bcma_core_chipcommon_early_init() 180 cc->capabilities = bcma_cc_read32(cc, BCMA_CC_CAP); in bcma_core_chipcommon_early_init() 182 cc->capabilities_ext = bcma_cc_read32(cc, BCMA_CC_CAP_EXT); in bcma_core_chipcommon_early_init() 198 if (cc->setup_done) in bcma_core_chipcommon_init() 216 bcma_pmu_init(cc); in bcma_core_chipcommon_init() 230 cc->ticks_per_ms = bcma_chipco_watchdog_ticks_per_ms(cc); in bcma_core_chipcommon_init() [all …]
|
A D | driver_chipcommon_pmu.c | 142 if (cc->pmu.rev >= 2) in bcma_pmu2_pll_init0() 157 bcma_pmu2_pll_init0(cc, xtalfreq); in bcma_pmu_pll_init() 279 if (cc->core->id.rev >= 35 && in bcma_pmu_early_init() 282 if (!cc->pmu.core) in bcma_pmu_early_init() 285 if (!cc->pmu.core) in bcma_pmu_early_init() 286 cc->pmu.core = cc->core; in bcma_pmu_early_init() 297 if (cc->pmu.rev == 1) in bcma_pmu_init() 304 bcma_pmu_pll_init(cc); in bcma_pmu_init() 305 bcma_pmu_resources_init(cc); in bcma_pmu_init() 306 bcma_pmu_workarounds(cc); in bcma_pmu_init() [all …]
|
A D | driver_gpio.c | 104 struct bcma_drv_cc *cc = dev_id; in bcma_gpio_irq_handler() local 105 struct gpio_chip *gc = &cc->gpio; in bcma_gpio_irq_handler() 124 struct gpio_chip *chip = &cc->gpio; in bcma_gpio_irq_init() 131 hwirq = bcma_core_irq(cc->core, 0); in bcma_gpio_irq_init() 133 cc); in bcma_gpio_irq_init() 157 free_irq(bcma_core_irq(cc->core, 0), cc); in bcma_gpio_irq_exit() 214 err = bcma_gpio_irq_init(cc); in bcma_gpio_init() 218 err = gpiochip_add_data(chip, cc); in bcma_gpio_init() 220 bcma_gpio_irq_exit(cc); in bcma_gpio_init() 229 bcma_gpio_irq_exit(cc); in bcma_gpio_unregister() [all …]
|
A D | bcma_private.h | 46 void bcma_core_chipcommon_init(struct bcma_drv_cc *cc); 49 void bcma_chipco_serial_init(struct bcma_drv_cc *cc); 57 void bcma_pmu_early_init(struct bcma_drv_cc *cc); 58 void bcma_pmu_init(struct bcma_drv_cc *cc); 59 u32 bcma_pmu_get_alp_clock(struct bcma_drv_cc *cc); 60 u32 bcma_pmu_get_cpu_clock(struct bcma_drv_cc *cc); 68 int bcma_pflash_init(struct bcma_drv_cc *cc); 79 int bcma_sflash_init(struct bcma_drv_cc *cc); 91 int bcma_nflash_init(struct bcma_drv_cc *cc); 202 int bcma_gpio_init(struct bcma_drv_cc *cc); [all …]
|
A D | driver_chipcommon_sflash.c | 77 bcma_cc_write32(cc, BCMA_CC_FLASHCTL, in bcma_sflash_cmd() 80 if (!(bcma_cc_read32(cc, BCMA_CC_FLASHCTL) & in bcma_sflash_cmd() 89 int bcma_sflash_init(struct bcma_drv_cc *cc) in bcma_sflash_init() argument 91 struct bcma_bus *bus = cc->core->bus; in bcma_sflash_init() 92 struct bcma_sflash *sflash = &cc->sflash; in bcma_sflash_init() 98 bcma_sflash_cmd(cc, BCMA_CC_FLASHCTL_ST_DP); in bcma_sflash_init() 100 bcma_cc_write32(cc, BCMA_CC_FLASHADDR, 0); in bcma_sflash_init() 101 bcma_sflash_cmd(cc, BCMA_CC_FLASHCTL_ST_RES); in bcma_sflash_init() 102 id = bcma_cc_read32(cc, BCMA_CC_FLASHDATA); in bcma_sflash_init() 104 bcma_cc_write32(cc, BCMA_CC_FLASHADDR, 1); in bcma_sflash_init() [all …]
|
/linux/drivers/ssb/ |
A D | driver_chipcommon.c | 270 cc->fast_pwrup_delay = pmu_fast_powerup_delay(cc); in calc_fast_powerup_delay() 329 ticks = ssb_chipco_watchdog_timer_set(cc, cc->ticks_per_ms * ms); in ssb_chipco_watchdog_timer_set_ms() 350 if (!cc->dev) in ssb_chipcommon_init() 356 cc->status = chipco_read32(cc, SSB_CHIPCO_CHIPSTAT); in ssb_chipcommon_init() 357 dev_dbg(cc->dev->dev, "chipcommon status is 0x%x\n", cc->status); in ssb_chipcommon_init() 364 ssb_pmu_init(cc); in ssb_chipcommon_init() 370 cc->ticks_per_ms = ssb_chipco_watchdog_ticks_per_ms(cc); in ssb_chipcommon_init() 371 cc->max_timer_ms = ssb_chipco_watchdog_get_max_timer(cc) / cc->ticks_per_ms; in ssb_chipcommon_init() 377 if (!cc->dev) in ssb_chipco_suspend() 384 if (!cc->dev) in ssb_chipco_resume() [all …]
|
A D | driver_chipcommon_pmu.c | 93 struct ssb_bus *bus = cc->dev->bus; in ssb_pmu0_pllinit_r0() 104 cc->pmu.crystalfreq = e->freq; in ssb_pmu0_pllinit_r0() 233 cc->pmu.crystalfreq = 20000; in ssb_pmu1_pllinit_r0() 243 cc->pmu.crystalfreq = e->freq; in ssb_pmu1_pllinit_r0() 344 if (cc->pmu.rev == 2) { in ssb_pmu_pll_init() 528 cc->pmu.rev, pmucap); in ssb_pmu_init() 530 if (cc->pmu.rev == 1) in ssb_pmu_init() 536 ssb_pmu_pll_init(cc); in ssb_pmu_init() 537 ssb_pmu_resources_init(cc); in ssb_pmu_init() 708 dev_err(cc->dev->dev, in ssb_pmu_spuravoid_pllupdate() [all …]
|
/linux/drivers/md/ |
A D | dm-crypt.c | 1257 u8 *ptr = iv_of_dmreq(cc, dmreq) + cc->iv_size + cc->iv_size; in org_sector_of_dmreq() 1664 struct crypt_config *cc = io->cc; in crypt_alloc_buffer() local 1726 io->cc = cc; in crypt_io_init() 1753 struct crypt_config *cc = io->cc; in crypt_dec_pending() local 2621 if (cc->key_size && hex2bin(cc->key, key, cc->key_size) < 0) in crypt_set_key() 2644 r = cc->iv_gen_ops->wipe(cc); in crypt_wipe_key() 2728 cc->iv_gen_ops->dtr(cc); in crypt_dtr() 2763 cc->iv_size = max(cc->iv_size, in crypt_ctr_ivmode() 2804 cc->key_extra_size = cc->key_size / cc->key_parts; in crypt_ctr_ivmode() 2917 cc->key_parts = cc->tfms_count; in crypt_ctr_cipher_new() [all …]
|
/linux/arch/s390/pci/ |
A D | pci_insn.c | 25 u8 cc; in zpci_err_insn() member 35 u8 cc; in __mpcifc() local 73 : [cc] "=d" (cc), [fn] "+d" (fn) in __rpcit() 158 return (cc > 0) ? -EIO : cc; in __zpci_load() 202 return (cc > 0) ? -EIO : cc; in zpci_load() 239 return (cc > 0) ? -EIO : cc; in __zpci_store() 282 return (cc > 0) ? -EIO : cc; in zpci_store() 297 : [cc] "+d" (cc), [req] "+d" (req) in __pcistb() 318 return (cc > 0) ? -EIO : cc; in __zpci_store_block() 342 : [cc] "+d" (cc), [len] "+d" (len) in __pcistb_mio() [all …]
|
/linux/fs/f2fs/ |
A D | compress.c | 147 cc->rpages = page_array_alloc(cc->inode, cc->cluster_size); in f2fs_init_compress_ctx() 153 page_array_free(cc->inode, cc->rpages, cc->cluster_size); in f2fs_destroy_compress_ctx() 196 ret = lzo1x_1_compress(cc->rbuf, cc->rlen, cc->cbuf->cdata, in lzo_compress_pages() 197 &cc->clen, cc->private); in lzo_compress_pages() 274 len = LZ4_compress_HC(cc->rbuf, cc->cbuf->cdata, cc->rlen, in lz4hc_compress_pages() 278 cc->clen, cc->private); in lz4hc_compress_pages() 295 cc->clen, cc->private); in lz4_compress_pages() 653 cc->rbuf = f2fs_vmap(cc->rpages, cc->cluster_size); in f2fs_compress_pages() 659 cc->cbuf = f2fs_vmap(cc->cpages, cc->nr_cpages); in f2fs_compress_pages() 715 page_array_free(cc->inode, cc->cpages, cc->nr_cpages); in f2fs_compress_pages() [all …]
|
/linux/mm/ |
A D | compaction.c | 1085 !cc->rescan && !cc->contended) { in isolate_migratepages_block() 1328 if (cc->nr_freepages >= cc->nr_migratepages) in fast_isolate_around() 1346 if (cc->nr_freepages >= cc->nr_migratepages) in fast_isolate_around() 1356 if (cc->nr_freepages < cc->nr_migratepages) in fast_isolate_around() 1371 cc->search_order = cc->order - 1; in next_search_order() 1407 distance = (cc->free_pfn - cc->migrate_pfn); in fast_isolate_freepages() 1418 cc->search_order = min_t(unsigned int, cc->order - 1, cc->search_order); in fast_isolate_freepages() 1726 cc->migrate_pfn = cc->fast_start_pfn; in reinit_migrate_pfn() 2296 ret = compaction_suitable(cc->zone, cc->order, cc->alloc_flags, in compact_zone() 2425 cc->migrate_pfn - 1, cc->order); in compact_zone() [all …]
|
/linux/drivers/s390/cio/ |
A D | trace.h | 44 __field(int, cc) 63 __entry->cc = cc; 121 __field(int, cc) 135 __entry->cc = cc; 156 __field(int, cc) 166 __entry->cc = cc; 167 if (cc != 0) 208 __entry->cc = cc; 228 __entry->cc = cc; 294 __entry->cc = cc; [all …]
|
/linux/drivers/mtd/nand/raw/bcm47xxnflash/ |
A D | ops_bcm4706.c | 67 if (bcma_cc_read32(cc, BCMA_CC_NFLASH_CTL) & in bcm47xxnflash_ops_bcm4706_poll() 116 if (bcm47xxnflash_ops_bcm4706_poll(b47n->cc)) in bcm47xxnflash_ops_bcm4706_read() 124 if (bcm47xxnflash_ops_bcm4706_ctl_cmd(b47n->cc, in bcm47xxnflash_ops_bcm4706_read() 140 struct bcma_drv_cc *cc = b47n->cc; in bcm47xxnflash_ops_bcm4706_write() local 215 struct bcma_drv_cc *cc = b47n->cc; in bcm47xxnflash_ops_bcm4706_cmdfunc() local 271 bcma_cc_write32(cc, BCMA_CC_NFLASH_ROW_ADDR, in bcm47xxnflash_ops_bcm4706_cmdfunc() 282 bcma_cc_write32(cc, BCMA_CC_NFLASH_COL_ADDR, in bcm47xxnflash_ops_bcm4706_cmdfunc() 284 bcma_cc_write32(cc, BCMA_CC_NFLASH_ROW_ADDR, in bcm47xxnflash_ops_bcm4706_cmdfunc() 297 if (bcm47xxnflash_ops_bcm4706_poll(cc)) in bcm47xxnflash_ops_bcm4706_cmdfunc() 311 struct bcma_drv_cc *cc = b47n->cc; in bcm47xxnflash_ops_bcm4706_read_byte() local [all …]
|
/linux/crypto/ |
A D | rmd160.c | 56 cc = state[2]; in rmd160_transform() 68 ROUND(aa, bb, cc, dd, ee, F1, K1, in[0], 11); in rmd160_transform() 69 ROUND(ee, aa, bb, cc, dd, F1, K1, in[1], 14); in rmd160_transform() 70 ROUND(dd, ee, aa, bb, cc, F1, K1, in[2], 15); in rmd160_transform() 71 ROUND(cc, dd, ee, aa, bb, F1, K1, in[3], 12); in rmd160_transform() 72 ROUND(bb, cc, dd, ee, aa, F1, K1, in[4], 5); in rmd160_transform() 73 ROUND(aa, bb, cc, dd, ee, F1, K1, in[5], 8); in rmd160_transform() 74 ROUND(ee, aa, bb, cc, dd, F1, K1, in[6], 7); in rmd160_transform() 75 ROUND(dd, ee, aa, bb, cc, F1, K1, in[7], 9); in rmd160_transform() 76 ROUND(cc, dd, ee, aa, bb, F1, K1, in[8], 11); in rmd160_transform() [all …]
|
/linux/kernel/time/ |
A D | timecounter.c | 9 const struct cyclecounter *cc, in timecounter_init() argument 12 tc->cc = cc; in timecounter_init() 13 tc->cycle_last = cc->read(cc); in timecounter_init() 15 tc->mask = (1ULL << cc->shift) - 1; in timecounter_init() 37 cycle_now = tc->cc->read(tc->cc); in timecounter_read_delta() 40 cycle_delta = (cycle_now - tc->cycle_last) & tc->cc->mask; in timecounter_read_delta() 43 ns_offset = cyclecounter_cyc2ns(tc->cc, cycle_delta, in timecounter_read_delta() 74 ns = ((ns * cc->mult) - frac) >> cc->shift; in cc_cyc2ns_backwards() 82 u64 delta = (cycle_tstamp - tc->cycle_last) & tc->cc->mask; in timecounter_cyc2time() 90 if (delta > tc->cc->mask / 2) { in timecounter_cyc2time() [all …]
|
/linux/drivers/clk/sprd/ |
A D | composite.c | 15 struct sprd_comp *cc = hw_to_sprd_comp(hw); in sprd_comp_round_rate() local 17 return sprd_div_helper_round_rate(&cc->common, &cc->div, in sprd_comp_round_rate() 24 struct sprd_comp *cc = hw_to_sprd_comp(hw); in sprd_comp_recalc_rate() local 26 return sprd_div_helper_recalc_rate(&cc->common, &cc->div, parent_rate); in sprd_comp_recalc_rate() 32 struct sprd_comp *cc = hw_to_sprd_comp(hw); in sprd_comp_set_rate() local 34 return sprd_div_helper_set_rate(&cc->common, &cc->div, in sprd_comp_set_rate() 40 struct sprd_comp *cc = hw_to_sprd_comp(hw); in sprd_comp_get_parent() local 42 return sprd_mux_helper_get_parent(&cc->common, &cc->mux); in sprd_comp_get_parent() 47 struct sprd_comp *cc = hw_to_sprd_comp(hw); in sprd_comp_set_parent() local 49 return sprd_mux_helper_set_parent(&cc->common, &cc->mux, index); in sprd_comp_set_parent()
|
/linux/sound/soc/qcom/qdsp6/ |
A D | q6dsp-lpass-clocks.c | 113 struct q6dsp_cc *cc = data; in q6dsp_of_clk_hw_get() local 122 if (cc->clks[idx]) { in q6dsp_of_clk_hw_get() 123 cc->clks[idx]->attributes = attr; in q6dsp_of_clk_hw_get() 124 return &cc->clks[idx]->hw; in q6dsp_of_clk_hw_get() 132 struct q6dsp_cc *cc; in q6dsp_clock_dev_probe() local 138 cc = devm_kzalloc(dev, sizeof(*cc), GFP_KERNEL); in q6dsp_clock_dev_probe() 139 if (!cc) in q6dsp_clock_dev_probe() 146 cc->desc = desc; in q6dsp_clock_dev_probe() 147 cc->dev = dev; in q6dsp_clock_dev_probe() 171 cc->clks[id] = clk; in q6dsp_clock_dev_probe() [all …]
|
/linux/include/linux/bcma/ |
A D | bcma_driver_chipcommon.h | 658 #define bcma_cc_read32(cc, offset) \ argument 659 bcma_read32((cc)->core, offset) 661 bcma_write32((cc)->core, offset, val) 664 bcma_cc_write32(cc, offset, bcma_cc_read32(cc, offset) & (mask)) 666 bcma_cc_write32(cc, offset, bcma_cc_read32(cc, offset) | (set)) 668 bcma_cc_write32(cc, offset, (bcma_cc_read32(cc, offset) & (mask)) | (set)) 671 #define bcma_pmu_read32(cc, offset) \ argument 672 bcma_read32((cc)->pmu.core, offset) 677 bcma_pmu_write32(cc, offset, bcma_pmu_read32(cc, offset) & (mask)) 679 bcma_pmu_write32(cc, offset, bcma_pmu_read32(cc, offset) | (set)) [all …]
|
/linux/arch/x86/include/asm/ |
A D | rmwcc.h | 18 #define __GEN_RMWcc(fullop, _var, cc, clobbers, ...) \ argument 21 asm_volatile_goto (fullop "; j" #cc " %l[cc_label]" \ 37 asm volatile (fullop CC_SET(cc) \ 38 : [var] "+m" (_var), CC_OUT(cc) (c) \ 45 #define GEN_UNARY_RMWcc_4(op, var, cc, arg0) \ argument 46 __GEN_RMWcc(op " " arg0, var, cc, __CLOBBERS_MEM()) 48 #define GEN_UNARY_RMWcc_3(op, var, cc) \ argument 49 GEN_UNARY_RMWcc_4(op, var, cc, "%[var]") 54 __GEN_RMWcc(op " %[val], " arg0, var, cc, \ 58 GEN_BINARY_RMWcc_6(op, var, cc, vcon, val, "%[var]") [all …]
|
/linux/include/linux/ssb/ |
A D | ssb_driver_chipcommon.h | 601 return (cc->dev != NULL); in ssb_chipco_available() 605 #define chipco_read32(cc, offset) ssb_read32((cc)->dev, offset) argument 606 #define chipco_write32(cc, offset, val) ssb_write32((cc)->dev, offset, val) argument 608 #define chipco_mask32(cc, offset, mask) \ argument 609 chipco_write32(cc, offset, chipco_read32(cc, offset) & (mask)) 610 #define chipco_set32(cc, offset, set) \ argument 611 chipco_write32(cc, offset, chipco_read32(cc, offset) | (set)) 612 #define chipco_maskset32(cc, offset, mask, set) \ argument 613 chipco_write32(cc, offset, (chipco_read32(cc, offset) & (mask)) | (set)) 658 extern void ssb_pmu_init(struct ssb_chipcommon *cc); [all …]
|
/linux/arch/m68k/ |
A D | Makefile | 19 CROSS_COMPILE := $(call cc-cross-prefix, \ 42 cpuflags-$(CONFIG_M54xx) = $(call cc-option,-mcpu=5475,-m5200) 43 cpuflags-$(CONFIG_M5407) = $(call cc-option,-mcpu=5407,-m5200) 44 cpuflags-$(CONFIG_M532x) = $(call cc-option,-mcpu=532x,-m5307) 45 cpuflags-$(CONFIG_M537x) = $(call cc-option,-mcpu=537x,-m5307) 46 cpuflags-$(CONFIG_M5307) = $(call cc-option,-mcpu=5307,-m5200) 47 cpuflags-$(CONFIG_M528x) = $(call cc-option,-mcpu=528x,-m5307) 48 cpuflags-$(CONFIG_M5275) = $(call cc-option,-mcpu=5275,-m5307) 49 cpuflags-$(CONFIG_M5272) = $(call cc-option,-mcpu=5272,-m5307) 50 cpuflags-$(CONFIG_M5271) = $(call cc-option,-mcpu=5271,-m5307) [all …]
|
/linux/fs/fuse/ |
A D | cuse.c | 125 cc = pos; in cuse_open() 131 if (!cc) in cuse_open() 398 cc->dev = dev; in cuse_process_init_reply() 399 cc->cdev = cdev; in cuse_process_init_reply() 499 struct cuse_conn *cc; in cuse_channel_open() local 503 cc = kzalloc(sizeof(*cc), GFP_KERNEL); in cuse_channel_open() 504 if (!cc) in cuse_channel_open() 511 fuse_conn_init(&cc->fc, &cc->fm, file->f_cred->user_ns, in cuse_channel_open() 556 if (cc->dev) in cuse_channel_release() 558 if (cc->cdev) { in cuse_channel_release() [all …]
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
A D | aiutils.c | 447 if (cc->bus->nr_cores == 0) in ai_buscore_setup() 451 sii->pub.ccrev = cc->id.rev; in ai_buscore_setup() 473 struct bcma_device *cc; in ai_doattach() local 479 cc = pbus->drv_cc.core; in ai_doattach() 542 struct bcma_device *cc; in ai_cc_reg() local 613 struct bcma_device *cc; in ai_clkctl_init() local 619 if (cc == NULL) in ai_clkctl_init() 636 struct bcma_device *cc; in ai_clkctl_fast_pwrup_delay() local 651 if (cc) { in ai_clkctl_fast_pwrup_delay() 670 struct bcma_device *cc; in ai_clkctl_cc() local [all …]
|
/linux/arch/s390/include/asm/ |
A D | cpu_mf.h | 180 int cc; in lcctl() local 187 return cc; in lcctl() 194 int cc; in __ecctr() local 202 return cc; in __ecctr() 209 int cc; in ecctr() local 212 if (!cc) in ecctr() 214 return cc; in ecctr() 229 int cc; in stcctm() local 238 return cc; in stcctm() 258 int cc; in lsctl() local [all …]
|
/linux/net/sunrpc/xprtrdma/ |
A D | svc_rdma_rw.c | 175 cc->cc_rdma = rdma; in svc_rdma_cc_init() 178 cc->cc_sqecount = 0; in svc_rdma_cc_init() 348 svc_rdma_wake_send_waiters(cc->cc_rdma, cc->cc_sqecount); in svc_rdma_wc_read_done() 350 complete(&cc->cc_done); in svc_rdma_wc_read_done() 374 cqe = &cc->cc_cqe; in svc_rdma_post_chunk_ctxt() 625 cc = &info->wi_cc; in svc_rdma_send_write_chunk() 631 trace_svcrdma_post_write_chunk(&cc->cc_cid, cc->cc_sqecount); in svc_rdma_send_write_chunk() 671 cc = &info->wi_cc; in svc_rdma_send_reply_chunk() 678 trace_svcrdma_post_reply_chunk(&cc->cc_cid, cc->cc_sqecount); in svc_rdma_send_reply_chunk() 1127 cc = &info->ri_cc; in svc_rdma_process_read_list() [all …]
|