Home
last modified time | relevance | path

Searched refs:cc (Results 1 – 25 of 221) sorted by relevance

123456789

/drivers/bcma/
A Ddriver_chipcommon.c91 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 Ddriver_chipcommon_pmu.c142 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 Ddriver_gpio.c112 struct bcma_drv_cc *cc = dev_id; in bcma_gpio_irq_handler() local
113 struct gpio_chip *gc = &cc->gpio; in bcma_gpio_irq_handler()
132 struct gpio_chip *chip = &cc->gpio; in bcma_gpio_irq_init()
139 hwirq = bcma_core_irq(cc->core, 0); in bcma_gpio_irq_init()
141 cc); in bcma_gpio_irq_init()
165 free_irq(bcma_core_irq(cc->core, 0), cc); in bcma_gpio_irq_exit()
220 err = bcma_gpio_irq_init(cc); in bcma_gpio_init()
224 err = gpiochip_add_data(chip, cc); in bcma_gpio_init()
226 bcma_gpio_irq_exit(cc); in bcma_gpio_init()
235 bcma_gpio_irq_exit(cc); in bcma_gpio_unregister()
[all …]
A Dbcma_private.h46 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 Ddriver_chipcommon_nflash.c28 int bcma_nflash_init(struct bcma_drv_cc *cc) in bcma_nflash_init() argument
30 struct bcma_bus *bus = cc->core->bus; in bcma_nflash_init()
34 cc->core->id.rev != 38) { in bcma_nflash_init()
39 if (!(cc->capabilities & BCMA_CC_CAP_NFLASH)) { in bcma_nflash_init()
44 cc->nflash.present = true; in bcma_nflash_init()
45 if (cc->core->id.rev == 38 && in bcma_nflash_init()
46 (cc->status & BCMA_CC_CHIPST_5357_NAND_BOOT)) { in bcma_nflash_init()
47 cc->nflash.boot = true; in bcma_nflash_init()
52 cc->nflash.brcmnand_info.ecc_stepsize = 512; in bcma_nflash_init()
53 cc->nflash.brcmnand_info.ecc_strength = 1; in bcma_nflash_init()
[all …]
A Ddriver_chipcommon_sflash.c77 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 …]
/drivers/ssb/
A Ddriver_chipcommon.c270 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 Ddriver_chipcommon_pmu.c93 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 …]
A Ddriver_chipcommon_sflash.c75 chipco_write32(cc, SSB_CHIPCO_FLASHCTL, in ssb_sflash_cmd()
78 if (!(chipco_read32(cc, SSB_CHIPCO_FLASHCTL) & in ssb_sflash_cmd()
87 int ssb_sflash_init(struct ssb_chipcommon *cc) in ssb_sflash_init() argument
93 switch (cc->capabilities & SSB_CHIPCO_CAP_FLASHT) { in ssb_sflash_init()
95 ssb_sflash_cmd(cc, SSB_CHIPCO_FLASHCTL_ST_DP); in ssb_sflash_init()
97 chipco_write32(cc, SSB_CHIPCO_FLASHADDR, 0); in ssb_sflash_init()
98 ssb_sflash_cmd(cc, SSB_CHIPCO_FLASHCTL_ST_RES); in ssb_sflash_init()
99 id = chipco_read32(cc, SSB_CHIPCO_FLASHDATA); in ssb_sflash_init()
101 chipco_write32(cc, SSB_CHIPCO_FLASHADDR, 1); in ssb_sflash_init()
102 ssb_sflash_cmd(cc, SSB_CHIPCO_FLASHCTL_ST_RES); in ssb_sflash_init()
[all …]
/drivers/md/
A Ddm-crypt.c1295 u8 *ptr = iv_of_dmreq(cc, dmreq) + cc->iv_size + cc->iv_size; in org_sector_of_dmreq()
1707 struct crypt_config *cc = io->cc; in crypt_alloc_buffer() local
1796 io->cc = cc; in crypt_io_init()
2695 if (cc->key_size && hex2bin(cc->key, key, cc->key_size) < 0) in crypt_set_key()
2718 r = cc->iv_gen_ops->wipe(cc); in crypt_wipe_key()
2805 cc->iv_gen_ops->dtr(cc); in crypt_dtr()
2840 cc->iv_size = max(cc->iv_size, in crypt_ctr_ivmode()
2881 cc->key_extra_size = cc->key_size / cc->key_parts; in crypt_ctr_ivmode()
2994 cc->key_parts = cc->tfms_count; in crypt_ctr_cipher_new()
3040 cc->key_parts = cc->tfms_count; in crypt_ctr_cipher_old()
[all …]
/drivers/s390/cio/
A Dtrace.h44 __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 …]
A Dioasm.c30 CC_IPM(cc) in __stsch()
60 CC_IPM(cc) in __msch()
86 CC_IPM(cc) in __tsch()
114 CC_IPM(cc) in __ssch()
141 CC_IPM(cc) in __csch()
165 CC_IPM(cc) in tpi()
185 CC_IPM(cc) in chsc()
190 cc = exception ? -EIO : CC_TRANSFORM(cc); in chsc()
193 return cc; in chsc()
205 CC_IPM(cc) in __rsch()
[all …]
A Dqdio_main.c40 int cc; in do_siga_sync() local
48 CC_IPM(cc) in do_siga_sync()
49 : CC_OUT(cc, cc) in do_siga_sync()
59 int cc; in do_siga_input() local
66 CC_IPM(cc) in do_siga_input()
67 : CC_OUT(cc, cc) in do_siga_input()
88 int cc; in do_siga_output() local
97 CC_IPM(cc) in do_siga_output()
98 : CC_OUT(cc, cc), [fc] "+&d" (fc) in do_siga_output()
289 int cc; in qdio_siga_sync() local
[all …]
/drivers/mtd/nand/raw/bcm47xxnflash/
A Dops_bcm4706.c67 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
218 struct bcma_drv_cc *cc = b47n->cc; in bcm47xxnflash_ops_bcm4706_cmdfunc() local
274 bcma_cc_write32(cc, BCMA_CC_NFLASH_ROW_ADDR, in bcm47xxnflash_ops_bcm4706_cmdfunc()
285 bcma_cc_write32(cc, BCMA_CC_NFLASH_COL_ADDR, in bcm47xxnflash_ops_bcm4706_cmdfunc()
287 bcma_cc_write32(cc, BCMA_CC_NFLASH_ROW_ADDR, in bcm47xxnflash_ops_bcm4706_cmdfunc()
300 if (bcm47xxnflash_ops_bcm4706_poll(cc)) in bcm47xxnflash_ops_bcm4706_cmdfunc()
314 struct bcma_drv_cc *cc = b47n->cc; in bcm47xxnflash_ops_bcm4706_read_byte() local
[all …]
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
A Daiutils.c447 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 …]
/drivers/clk/sprd/
A Dcomposite.c15 struct sprd_comp *cc = hw_to_sprd_comp(hw); in sprd_comp_determine_rate() local
17 return divider_determine_rate(hw, req, NULL, cc->div.width, 0); in sprd_comp_determine_rate()
23 struct sprd_comp *cc = hw_to_sprd_comp(hw); in sprd_comp_recalc_rate() local
25 return sprd_div_helper_recalc_rate(&cc->common, &cc->div, parent_rate); in sprd_comp_recalc_rate()
31 struct sprd_comp *cc = hw_to_sprd_comp(hw); in sprd_comp_set_rate() local
33 return sprd_div_helper_set_rate(&cc->common, &cc->div, in sprd_comp_set_rate()
39 struct sprd_comp *cc = hw_to_sprd_comp(hw); in sprd_comp_get_parent() local
41 return sprd_mux_helper_get_parent(&cc->common, &cc->mux); in sprd_comp_get_parent()
46 struct sprd_comp *cc = hw_to_sprd_comp(hw); in sprd_comp_set_parent() local
48 return sprd_mux_helper_set_parent(&cc->common, &cc->mux, index); in sprd_comp_set_parent()
/drivers/net/can/rockchip/
A Drockchip_canfd-timestamp.c11 static u64 rkcanfd_timestamp_read(struct cyclecounter *cc) in rkcanfd_timestamp_read() argument
13 const struct rkcanfd_priv *priv = container_of(cc, struct rkcanfd_priv, cc); in rkcanfd_timestamp_read()
44 struct cyclecounter *cc = &priv->cc; in rkcanfd_timestamp_init() local
65 cc->read = rkcanfd_timestamp_read; in rkcanfd_timestamp_init()
66 cc->mask = CYCLECOUNTER_MASK(32); in rkcanfd_timestamp_init()
69 clocks_calc_mult_shift(&cc->mult, &cc->shift, rate, NSEC_PER_SEC, in rkcanfd_timestamp_init()
72 max_cycles = div_u64(ULLONG_MAX, cc->mult); in rkcanfd_timestamp_init()
73 max_cycles = min(max_cycles, cc->mask); in rkcanfd_timestamp_init()
74 work_delay_ns = clocksource_cyc2ns(max_cycles, cc->mult, cc->shift); in rkcanfd_timestamp_init()
86 cc->mult, cc->shift, in rkcanfd_timestamp_init()
[all …]
/drivers/net/can/spi/mcp251xfd/
A Dmcp251xfd-timestamp.c14 static u64 mcp251xfd_timestamp_raw_read(struct cyclecounter *cc) in mcp251xfd_timestamp_raw_read() argument
20 priv = container_of(cc, struct mcp251xfd_priv, cc); in mcp251xfd_timestamp_raw_read()
44 struct cyclecounter *cc = &priv->cc; in mcp251xfd_timestamp_init() local
46 cc->read = mcp251xfd_timestamp_raw_read; in mcp251xfd_timestamp_init()
47 cc->mask = CYCLECOUNTER_MASK(32); in mcp251xfd_timestamp_init()
48 cc->shift = 1; in mcp251xfd_timestamp_init()
49 cc->mult = clocksource_hz2mult(priv->can.clock.freq, cc->shift); in mcp251xfd_timestamp_init()
56 timecounter_init(&priv->tc, &priv->cc, ktime_get_real_ns()); in mcp251xfd_timestamp_start()
/drivers/media/pci/ivtv/
A Divtv-vbi.c41 data.data[0] = cc->odd[0]; in ivtv_set_cc()
42 data.data[1] = cc->odd[1]; in ivtv_set_cc()
46 data.data[0] = cc->even[0]; in ivtv_set_cc()
47 data.data[1] = cc->even[1]; in ivtv_set_cc()
91 cc->even[0] = d->data[0]; in ivtv_write_vbi_line()
92 cc->even[1] = d->data[1]; in ivtv_write_vbi_line()
94 cc->odd[0] = d->data[0]; in ivtv_write_vbi_line()
95 cc->odd[1] = d->data[1]; in ivtv_write_vbi_line()
457 ivtv_set_cc(itv, 0, &cc); in ivtv_disable_cc()
521 cc = vi->cc_payload[0]; in ivtv_vbi_work_handler()
[all …]
/drivers/staging/media/imx/
A Dimx-media-capture.c65 if (cc) { in capture_find_format()
70 if (!cc) { in capture_find_format()
110 if (!cc) in capture_enum_framesizes()
202 priv->vdev.cc = cc; in capture_s_fmt_vid_cap()
292 if (!cc) in capture_legacy_enum_framesizes()
295 fse.code = cc->codes ? cc->codes[0] : 0; in capture_legacy_enum_framesizes()
334 if (!cc) in capture_legacy_enum_frameintervals()
337 fie.code = cc->codes ? cc->codes[0] : 0; in capture_legacy_enum_frameintervals()
466 if (!cc) in capture_legacy_s_fmt_vid_cap()
469 priv->vdev.cc = cc; in capture_legacy_s_fmt_vid_cap()
[all …]
A Dimx-media-utils.c420 if (cc) in imx_media_init_mbus_fmt()
421 *cc = lcc; in imx_media_init_mbus_fmt()
474 if (!cc) in imx_media_try_colorimetry()
478 if (cc && cc->cs == IPUV3_COLORSPACE_RGB) in imx_media_try_colorimetry()
526 if (!cc) { in imx_media_mbus_fmt_to_pix_fmt()
529 if (!cc) in imx_media_mbus_fmt_to_pix_fmt()
532 if (!cc) in imx_media_mbus_fmt_to_pix_fmt()
540 if (cc->ipufmt && cc->cs == IPUV3_COLORSPACE_YUV) { in imx_media_mbus_fmt_to_pix_fmt()
551 if (cc->planar) in imx_media_mbus_fmt_to_pix_fmt()
558 pix->pixelformat = cc->fourcc; in imx_media_mbus_fmt_to_pix_fmt()
[all …]
/drivers/net/ethernet/pensando/ionic/
A Dionic_phc.c295 struct ionic_phc *phc = container_of(cc, struct ionic_phc, cc); in ionic_cc_read()
342 phc->cc.mult = adj; in ionic_phc_adjfine()
542 phc->cc.read = ionic_cc_read; in ionic_lif_alloc_phc()
547 if (!phc->cc.mult) { in ionic_lif_alloc_phc()
550 phc->cc.mult); in ionic_lif_alloc_phc()
557 phc->cc.mask, phc->cc.mult, phc->cc.shift); in ionic_lif_alloc_phc()
583 diff &= phc->cc.mask; in ionic_lif_alloc_phc()
603 shift = mult / phc->cc.mult; in ionic_lif_alloc_phc()
608 phc->cc.mult <<= shift; in ionic_lif_alloc_phc()
609 phc->cc.shift += shift; in ionic_lif_alloc_phc()
[all …]
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
A Dof.c22 struct brcmfmac_pd_cc *cc; in brcmf_of_get_country_codes() local
40 cc = devm_kzalloc(dev, struct_size(cc, table, count), GFP_KERNEL); in brcmf_of_get_country_codes()
41 if (!cc) in brcmf_of_get_country_codes()
44 cc->table_size = count; in brcmf_of_get_country_codes()
49 cce = &cc->table[i]; in brcmf_of_get_country_codes()
56 if (sscanf(map, "%2c-%2c-%d", cce->iso3166, cce->cc, in brcmf_of_get_country_codes()
60 brcmf_dbg(INFO, "%s-%s-%d\n", cce->iso3166, cce->cc, in brcmf_of_get_country_codes()
64 settings->country_codes = cc; in brcmf_of_get_country_codes()
/drivers/clk/qcom/
A Dcommon.c237 if (i >= cc->num_rclks) in qcom_cc_drop_protected()
240 cc->rclks[i] = NULL; in qcom_cc_drop_protected()
247 struct qcom_cc *cc = data; in qcom_cc_clk_hw_get() local
250 if (idx >= cc->num_rclks) { in qcom_cc_clk_hw_get()
255 return cc->rclks[idx] ? &cc->rclks[idx]->hw : NULL; in qcom_cc_clk_hw_get()
329 struct qcom_cc *cc; in qcom_cc_really_probe() local
336 cc = devm_kzalloc(dev, sizeof(*cc), GFP_KERNEL); in qcom_cc_really_probe()
337 if (!cc) in qcom_cc_really_probe()
362 reset = &cc->reset; in qcom_cc_really_probe()
403 cc->rclks = rclks; in qcom_cc_really_probe()
[all …]
/drivers/net/ethernet/freescale/
A Dfec_ptp.c102 container_of(cc, struct fec_enet_private, cc); in fec_ptp_read()
190 val &= fep->cc.mask; in fec_ptp_enable_pps()
236 ptp_hc = fec_ptp_read(&fep->cc); in fec_ptp_pps_perout()
252 compare_val &= fep->cc.mask; in fec_ptp_pps_perout()
318 memset(&fep->cc, 0, sizeof(fep->cc)); in fec_ptp_start_cyclecounter()
319 fep->cc.read = fec_ptp_read; in fec_ptp_start_cyclecounter()
321 fep->cc.shift = 31; in fec_ptp_start_cyclecounter()
322 fep->cc.mult = FEC_CC_MULT; in fec_ptp_start_cyclecounter()
486 counter = ns & fep->cc.mask; in fec_ptp_settime()
682 fep->cc.mask; in fec_pps_interrupt()
[all …]

Completed in 78 milliseconds

123456789