| /linux/drivers/bcma/ |
| H A D | driver_chipcommon.c | 18 static inline u32 bcma_cc_write32_masked(struct bcma_drv_cc *cc, u16 offset, in bcma_cc_write32_masked() argument 22 value |= bcma_cc_read32(cc, offset) & ~mask; in bcma_cc_write32_masked() 23 bcma_cc_write32(cc, offset, value); in bcma_cc_write32_masked() 28 u32 bcma_chipco_get_alp_clock(struct bcma_drv_cc *cc) in bcma_chipco_get_alp_clock() argument 30 if (cc->capabilities & BCMA_CC_CAP_PMU) in bcma_chipco_get_alp_clock() 31 return bcma_pmu_get_alp_clock(cc); in bcma_chipco_get_alp_clock() 37 static bool bcma_core_cc_has_pmu_watchdog(struct bcma_drv_cc *cc) in bcma_core_cc_has_pmu_watchdog() argument 39 struct bcma_bus *bus = cc->core->bus; in bcma_core_cc_has_pmu_watchdog() 41 if (cc->capabilities & BCMA_CC_CAP_PMU) { in bcma_core_cc_has_pmu_watchdog() 56 static u32 bcma_chipco_watchdog_get_max_timer(struct bcma_drv_cc *cc) in bcma_chipco_watchdog_get_max_timer() argument 80 struct bcma_drv_cc *cc = bcm47xx_wdt_get_drvdata(wdt); bcma_chipco_watchdog_timer_set_wdt() local 88 struct bcma_drv_cc *cc = bcm47xx_wdt_get_drvdata(wdt); bcma_chipco_watchdog_timer_set_ms_wdt() local 95 bcma_chipco_watchdog_ticks_per_ms(struct bcma_drv_cc * cc) bcma_chipco_watchdog_ticks_per_ms() argument 113 bcma_chipco_watchdog_register(struct bcma_drv_cc * cc) bcma_chipco_watchdog_register() argument 142 bcma_core_chipcommon_flash_detect(struct bcma_drv_cc * cc) bcma_core_chipcommon_flash_detect() argument 169 bcma_core_chipcommon_early_init(struct bcma_drv_cc * cc) bcma_core_chipcommon_early_init() argument 193 bcma_core_chipcommon_init(struct bcma_drv_cc * cc) bcma_core_chipcommon_init() argument 236 bcma_chipco_watchdog_timer_set(struct bcma_drv_cc * cc,u32 ticks) bcma_chipco_watchdog_timer_set() argument 264 bcma_chipco_irq_mask(struct bcma_drv_cc * cc,u32 mask,u32 value) bcma_chipco_irq_mask() argument 269 bcma_chipco_irq_status(struct bcma_drv_cc * cc,u32 mask) bcma_chipco_irq_status() argument 274 bcma_chipco_gpio_in(struct bcma_drv_cc * cc,u32 mask) bcma_chipco_gpio_in() argument 279 bcma_chipco_gpio_out(struct bcma_drv_cc * cc,u32 mask,u32 value) bcma_chipco_gpio_out() argument 292 bcma_chipco_gpio_outen(struct bcma_drv_cc * cc,u32 mask,u32 value) bcma_chipco_gpio_outen() argument 309 bcma_chipco_gpio_control(struct bcma_drv_cc * cc,u32 mask,u32 value) bcma_chipco_gpio_control() argument 322 bcma_chipco_gpio_intmask(struct bcma_drv_cc * cc,u32 mask,u32 value) bcma_chipco_gpio_intmask() argument 334 bcma_chipco_gpio_polarity(struct bcma_drv_cc * cc,u32 mask,u32 value) bcma_chipco_gpio_polarity() argument 346 bcma_chipco_gpio_pullup(struct bcma_drv_cc * cc,u32 mask,u32 value) bcma_chipco_gpio_pullup() argument 361 bcma_chipco_gpio_pulldown(struct bcma_drv_cc * cc,u32 mask,u32 value) bcma_chipco_gpio_pulldown() argument 377 bcma_chipco_serial_init(struct bcma_drv_cc * cc) bcma_chipco_serial_init() argument [all...] |
| H A D | driver_chipcommon_pmu.c | 16 u32 bcma_chipco_pll_read(struct bcma_drv_cc *cc, u32 offset) in bcma_chipco_pll_read() argument 18 bcma_pmu_write32(cc, BCMA_CC_PMU_PLLCTL_ADDR, offset); in bcma_chipco_pll_read() 19 bcma_pmu_read32(cc, BCMA_CC_PMU_PLLCTL_ADDR); in bcma_chipco_pll_read() 20 return bcma_pmu_read32(cc, BCMA_CC_PMU_PLLCTL_DATA); in bcma_chipco_pll_read() 24 void bcma_chipco_pll_write(struct bcma_drv_cc *cc, u32 offset, u32 value) in bcma_chipco_pll_write() argument 26 bcma_pmu_write32(cc, BCMA_CC_PMU_PLLCTL_ADDR, offset); in bcma_chipco_pll_write() 27 bcma_pmu_read32(cc, BCMA_CC_PMU_PLLCTL_ADDR); in bcma_chipco_pll_write() 28 bcma_pmu_write32(cc, BCMA_CC_PMU_PLLCTL_DATA, value); in bcma_chipco_pll_write() 32 void bcma_chipco_pll_maskset(struct bcma_drv_cc *cc, u32 offset, u32 mask, in bcma_chipco_pll_maskset() argument 35 bcma_pmu_write32(cc, BCMA_CC_PMU_PLLCTL_ADD in bcma_chipco_pll_maskset() 41 bcma_chipco_chipctl_maskset(struct bcma_drv_cc * cc,u32 offset,u32 mask,u32 set) bcma_chipco_chipctl_maskset() argument 50 bcma_chipco_regctl_maskset(struct bcma_drv_cc * cc,u32 offset,u32 mask,u32 set) bcma_chipco_regctl_maskset() argument 59 bcma_pmu_xtalfreq(struct bcma_drv_cc * cc) bcma_pmu_xtalfreq() argument 80 bcma_pmu2_pll_init0(struct bcma_drv_cc * cc,u32 xtalfreq) bcma_pmu2_pll_init0() argument 148 bcma_pmu_pll_init(struct bcma_drv_cc * cc) bcma_pmu_pll_init() argument 162 bcma_pmu_resources_init(struct bcma_drv_cc * cc) bcma_pmu_resources_init() argument 210 bcma_chipco_bcm4331_ext_pa_lines_ctl(struct bcma_drv_cc * cc,bool enable) bcma_chipco_bcm4331_ext_pa_lines_ctl() argument 230 bcma_pmu_workarounds(struct bcma_drv_cc * cc) bcma_pmu_workarounds() argument 274 bcma_pmu_early_init(struct bcma_drv_cc * cc) bcma_pmu_early_init() argument 295 bcma_pmu_init(struct bcma_drv_cc * cc) bcma_pmu_init() argument 309 bcma_pmu_get_alp_clock(struct bcma_drv_cc * cc) bcma_pmu_get_alp_clock() argument 353 bcma_pmu_pll_clock(struct bcma_drv_cc * cc,u32 pll0,u32 m) bcma_pmu_pll_clock() argument 389 bcma_pmu_pll_clock_bcm4706(struct bcma_drv_cc * cc,u32 pll0,u32 m) bcma_pmu_pll_clock_bcm4706() argument 420 bcma_pmu_get_bus_clock(struct bcma_drv_cc * cc) bcma_pmu_get_bus_clock() argument 452 bcma_pmu_get_cpu_clock(struct bcma_drv_cc * cc) bcma_pmu_get_cpu_clock() argument 486 bcma_pmu_spuravoid_pll_write(struct bcma_drv_cc * cc,u32 offset,u32 value) bcma_pmu_spuravoid_pll_write() argument 493 bcma_pmu_spuravoid_pllupdate(struct bcma_drv_cc * cc,int spuravoid) bcma_pmu_spuravoid_pllupdate() argument [all...] |
| H A D | driver_chipcommon_nflash.c | 28 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() 49 reg = bcma_cc_read32(cc, BCMA_CC_NAND_CS_NAND_SELECT) & 0xff; in bcma_nflash_init() 50 cc->nflash.brcmnand_info.chip_select = ffs(reg) - 1; in bcma_nflash_init() [all …]
|
| H A D | bcma_private.h | 45 void bcma_core_chipcommon_early_init(struct bcma_drv_cc *cc); 46 void bcma_core_chipcommon_init(struct bcma_drv_cc *cc); 47 void bcma_chipco_bcm4331_ext_pa_lines_ctl(struct bcma_drv_cc *cc, bool enable); 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); 70 static inline int bcma_pflash_init(struct bcma_drv_cc *cc) in bcma_pflash_init() argument [all …]
|
| H A D | driver_chipcommon_sflash.c | 74 static void bcma_sflash_cmd(struct bcma_drv_cc *cc, u32 opcode) in bcma_sflash_cmd() argument 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() 85 bcma_err(cc->core->bus, "SFLASH control command failed (timeout)!\n"); 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() 96 switch (cc->capabilities & BCMA_CC_CAP_FLASHT) { 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() [all …]
|
| /linux/drivers/ssb/ |
| H A D | driver_chipcommon.c | 32 static inline u32 chipco_write32_masked(struct ssb_chipcommon *cc, u16 offset, in chipco_write32_masked() argument 36 value |= chipco_read32(cc, offset) & ~mask; in chipco_write32_masked() 37 chipco_write32(cc, offset, value); in chipco_write32_masked() 42 void ssb_chipco_set_clockmode(struct ssb_chipcommon *cc, in ssb_chipco_set_clockmode() argument 45 struct ssb_device *ccdev = cc->dev; in ssb_chipco_set_clockmode() 57 if (cc->capabilities & SSB_CHIPCO_CAP_PMU) in ssb_chipco_set_clockmode() 69 if (!(cc->capabilities & SSB_CHIPCO_CAP_PCTL)) in ssb_chipco_set_clockmode() 74 tmp = chipco_read32(cc, SSB_CHIPCO_SLOWCLKCTL); in ssb_chipco_set_clockmode() 76 chipco_write32(cc, SSB_CHIPCO_SLOWCLKCTL, tmp); in ssb_chipco_set_clockmode() 81 tmp = chipco_read32(cc, SSB_CHIPCO_SLOWCLKCT in ssb_chipco_set_clockmode() 119 chipco_pctl_get_slowclksrc(struct ssb_chipcommon * cc) chipco_pctl_get_slowclksrc() argument 150 chipco_pctl_clockfreqlimit(struct ssb_chipcommon * cc,int get_max) chipco_pctl_clockfreqlimit() argument 211 chipco_powercontrol_init(struct ssb_chipcommon * cc) chipco_powercontrol_init() argument 242 pmu_fast_powerup_delay(struct ssb_chipcommon * cc) pmu_fast_powerup_delay() argument 259 calc_fast_powerup_delay(struct ssb_chipcommon * cc) calc_fast_powerup_delay() argument 285 ssb_chipco_alp_clock(struct ssb_chipcommon * cc) ssb_chipco_alp_clock() argument 293 ssb_chipco_watchdog_get_max_timer(struct ssb_chipcommon * cc) ssb_chipco_watchdog_get_max_timer() argument 313 struct ssb_chipcommon *cc = bcm47xx_wdt_get_drvdata(wdt); ssb_chipco_watchdog_timer_set_wdt() local 323 struct ssb_chipcommon *cc = bcm47xx_wdt_get_drvdata(wdt); ssb_chipco_watchdog_timer_set_ms() local 333 ssb_chipco_watchdog_ticks_per_ms(struct ssb_chipcommon * cc) ssb_chipco_watchdog_ticks_per_ms() argument 348 ssb_chipcommon_init(struct ssb_chipcommon * cc) ssb_chipcommon_init() argument 375 ssb_chipco_suspend(struct ssb_chipcommon * cc) ssb_chipco_suspend() argument 382 ssb_chipco_resume(struct ssb_chipcommon * cc) ssb_chipco_resume() argument 391 ssb_chipco_get_clockcpu(struct ssb_chipcommon * cc,u32 * plltype,u32 * n,u32 * m) ssb_chipco_get_clockcpu() argument 414 ssb_chipco_get_clockcontrol(struct ssb_chipcommon * cc,u32 * plltype,u32 * n,u32 * m) ssb_chipco_get_clockcontrol() argument 434 ssb_chipco_timing_init(struct ssb_chipcommon * cc,unsigned long ns) ssb_chipco_timing_init() argument 471 ssb_chipco_watchdog_timer_set(struct ssb_chipcommon * cc,u32 ticks) ssb_chipco_watchdog_timer_set() argument 494 ssb_chipco_irq_mask(struct ssb_chipcommon * cc,u32 mask,u32 value) ssb_chipco_irq_mask() argument 499 ssb_chipco_irq_status(struct ssb_chipcommon * cc,u32 mask) ssb_chipco_irq_status() argument 504 ssb_chipco_gpio_in(struct ssb_chipcommon * cc,u32 mask) ssb_chipco_gpio_in() argument 509 ssb_chipco_gpio_out(struct ssb_chipcommon * cc,u32 mask,u32 value) ssb_chipco_gpio_out() argument 521 ssb_chipco_gpio_outen(struct ssb_chipcommon * cc,u32 mask,u32 value) ssb_chipco_gpio_outen() argument 533 ssb_chipco_gpio_control(struct ssb_chipcommon * cc,u32 mask,u32 value) ssb_chipco_gpio_control() argument 546 ssb_chipco_gpio_intmask(struct ssb_chipcommon * cc,u32 mask,u32 value) ssb_chipco_gpio_intmask() argument 558 ssb_chipco_gpio_polarity(struct ssb_chipcommon * cc,u32 mask,u32 value) ssb_chipco_gpio_polarity() argument 570 ssb_chipco_gpio_pullup(struct ssb_chipcommon * cc,u32 mask,u32 value) ssb_chipco_gpio_pullup() argument 585 ssb_chipco_gpio_pulldown(struct ssb_chipcommon * cc,u32 mask,u32 value) ssb_chipco_gpio_pulldown() argument 601 ssb_chipco_serial_init(struct ssb_chipcommon * cc,struct ssb_serial_port * ports) ssb_chipco_serial_init() argument [all...] |
| H A D | driver_chipcommon_pmu.c | 22 static u32 ssb_chipco_pll_read(struct ssb_chipcommon *cc, u32 offset) in ssb_chipco_pll_read() argument 24 chipco_write32(cc, SSB_CHIPCO_PLLCTL_ADDR, offset); in ssb_chipco_pll_read() 25 return chipco_read32(cc, SSB_CHIPCO_PLLCTL_DATA); in ssb_chipco_pll_read() 28 static void ssb_chipco_pll_write(struct ssb_chipcommon *cc, in ssb_chipco_pll_write() argument 31 chipco_write32(cc, SSB_CHIPCO_PLLCTL_ADDR, offset); in ssb_chipco_pll_write() 32 chipco_write32(cc, SSB_CHIPCO_PLLCTL_DATA, value); in ssb_chipco_pll_write() 35 static void ssb_chipco_regctl_maskset(struct ssb_chipcommon *cc, in ssb_chipco_regctl_maskset() argument 40 chipco_read32(cc, SSB_CHIPCO_REGCTL_ADDR); in ssb_chipco_regctl_maskset() 41 chipco_write32(cc, SSB_CHIPCO_REGCTL_ADDR, offset); in ssb_chipco_regctl_maskset() 42 chipco_read32(cc, SSB_CHIPCO_REGCTL_ADD in ssb_chipco_regctl_maskset() 90 ssb_pmu0_pllinit_r0(struct ssb_chipcommon * cc,u32 crystalfreq) ssb_pmu0_pllinit_r0() argument 221 ssb_pmu1_pllinit_r0(struct ssb_chipcommon * cc,u32 crystalfreq) ssb_pmu1_pllinit_r0() argument 317 ssb_pmu_pll_init(struct ssb_chipcommon * cc) ssb_pmu_pll_init() argument 423 ssb_pmu_resources_init(struct ssb_chipcommon * cc) ssb_pmu_resources_init() argument 517 ssb_pmu_init(struct ssb_chipcommon * cc) ssb_pmu_init() argument 540 ssb_pmu_set_ldo_voltage(struct ssb_chipcommon * cc,enum ssb_pmu_ldo_volt_id id,u32 voltage) ssb_pmu_set_ldo_voltage() argument 590 ssb_pmu_set_ldo_paref(struct ssb_chipcommon * cc,bool on) ssb_pmu_set_ldo_paref() argument 619 ssb_pmu_get_alp_clock_clk0(struct ssb_chipcommon * cc) ssb_pmu_get_alp_clock_clk0() argument 631 ssb_pmu_get_alp_clock(struct ssb_chipcommon * cc) ssb_pmu_get_alp_clock() argument 645 ssb_pmu_get_cpu_clock(struct ssb_chipcommon * cc) ssb_pmu_get_cpu_clock() argument 660 ssb_pmu_get_controlclock(struct ssb_chipcommon * cc) ssb_pmu_get_controlclock() argument 674 ssb_pmu_spuravoid_pllupdate(struct ssb_chipcommon * cc,int spuravoid) ssb_pmu_spuravoid_pllupdate() argument [all...] |
| H A D | driver_chipcommon_sflash.c | 72 static void ssb_sflash_cmd(struct ssb_chipcommon *cc, u32 opcode) in ssb_sflash_cmd() argument 75 chipco_write32(cc, SSB_CHIPCO_FLASHCTL, in ssb_sflash_cmd() 78 if (!(chipco_read32(cc, SSB_CHIPCO_FLASHCTL) & in ssb_sflash_cmd() 83 dev_err(cc->dev->dev, "SFLASH control command failed (timeout)!\n"); in ssb_sflash_cmd() 87 int ssb_sflash_init(struct ssb_chipcommon *cc) in ssb_sflash_init() argument 89 struct ssb_sflash *sflash = &cc->dev->bus->mipscore.sflash; in ssb_sflash_init() 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() [all …]
|
| /linux/drivers/md/ |
| H A D | dm-crypt.c | 81 struct crypt_config *cc; member 109 int (*ctr)(struct crypt_config *cc, struct dm_target *ti, 111 void (*dtr)(struct crypt_config *cc); 112 int (*init)(struct crypt_config *cc); 113 void (*wipe)(struct crypt_config *cc); 114 int (*generator)(struct crypt_config *cc, u8 *iv, 116 void (*post)(struct crypt_config *cc, u8 *iv, 279 struct crypt_config *cc = ti->private; in get_max_request_sectors() 293 if (wrt || cc->used_tag_size) 296 sector_align = max(bdev_logical_block_size(cc argument 261 struct crypt_config *cc = ti->private; get_max_request_sectors() local 301 any_tfm_aead(struct crypt_config * cc) any_tfm_aead() argument 362 crypt_iv_plain_gen(struct crypt_config * cc,u8 * iv,struct dm_crypt_request * dmreq) crypt_iv_plain_gen() argument 371 crypt_iv_plain64_gen(struct crypt_config * cc,u8 * iv,struct dm_crypt_request * dmreq) crypt_iv_plain64_gen() argument 380 crypt_iv_plain64be_gen(struct crypt_config * cc,u8 * iv,struct dm_crypt_request * dmreq) crypt_iv_plain64be_gen() argument 390 crypt_iv_essiv_gen(struct crypt_config * cc,u8 * iv,struct dm_crypt_request * dmreq) crypt_iv_essiv_gen() argument 403 crypt_iv_benbi_ctr(struct crypt_config * cc,struct dm_target * ti,const char * opts) crypt_iv_benbi_ctr() argument 434 crypt_iv_benbi_dtr(struct crypt_config * cc) crypt_iv_benbi_dtr() argument 438 crypt_iv_benbi_gen(struct crypt_config * cc,u8 * iv,struct dm_crypt_request * dmreq) crypt_iv_benbi_gen() argument 451 crypt_iv_null_gen(struct crypt_config * cc,u8 * iv,struct dm_crypt_request * dmreq) crypt_iv_null_gen() argument 459 crypt_iv_lmk_dtr(struct crypt_config * cc) crypt_iv_lmk_dtr() argument 467 crypt_iv_lmk_ctr(struct crypt_config * cc,struct dm_target * ti,const char * opts) crypt_iv_lmk_ctr() argument 498 crypt_iv_lmk_init(struct crypt_config * cc) crypt_iv_lmk_init() argument 511 crypt_iv_lmk_wipe(struct crypt_config * cc) crypt_iv_lmk_wipe() argument 519 crypt_iv_lmk_one(struct crypt_config * cc,u8 * iv,struct dm_crypt_request * dmreq,u8 * data) crypt_iv_lmk_one() argument 546 crypt_iv_lmk_gen(struct crypt_config * cc,u8 * iv,struct dm_crypt_request * dmreq) crypt_iv_lmk_gen() argument 562 crypt_iv_lmk_post(struct crypt_config * cc,u8 * iv,struct dm_crypt_request * dmreq) crypt_iv_lmk_post() argument 581 crypt_iv_tcw_dtr(struct crypt_config * cc) crypt_iv_tcw_dtr() argument 591 crypt_iv_tcw_ctr(struct crypt_config * cc,struct dm_target * ti,const char * opts) crypt_iv_tcw_ctr() argument 617 crypt_iv_tcw_init(struct crypt_config * cc) crypt_iv_tcw_init() argument 629 crypt_iv_tcw_wipe(struct crypt_config * cc) crypt_iv_tcw_wipe() argument 637 crypt_iv_tcw_whitening(struct crypt_config * cc,struct dm_crypt_request * dmreq,u8 * data) crypt_iv_tcw_whitening() argument 661 crypt_iv_tcw_gen(struct crypt_config * cc,u8 * iv,struct dm_crypt_request * dmreq) crypt_iv_tcw_gen() argument 686 crypt_iv_tcw_post(struct crypt_config * cc,u8 * iv,struct dm_crypt_request * dmreq) crypt_iv_tcw_post() argument 702 crypt_iv_random_gen(struct crypt_config * cc,u8 * iv,struct dm_crypt_request * dmreq) crypt_iv_random_gen() argument 710 crypt_iv_eboiv_ctr(struct crypt_config * cc,struct dm_target * ti,const char * opts) crypt_iv_eboiv_ctr() argument 726 crypt_iv_eboiv_gen(struct crypt_config * cc,u8 * iv,struct dm_crypt_request * dmreq) crypt_iv_eboiv_gen() argument 760 crypt_iv_elephant_dtr(struct crypt_config * cc) crypt_iv_elephant_dtr() argument 768 crypt_iv_elephant_ctr(struct crypt_config * cc,struct dm_target * ti,const char * opts) crypt_iv_elephant_ctr() argument 928 crypt_iv_elephant(struct crypt_config * cc,struct dm_crypt_request * dmreq) crypt_iv_elephant() argument 985 crypt_iv_elephant_gen(struct crypt_config * cc,u8 * iv,struct dm_crypt_request * dmreq) crypt_iv_elephant_gen() argument 994 crypt_iv_elephant_post(struct crypt_config * cc,u8 * iv,struct dm_crypt_request * dmreq) crypt_iv_elephant_post() argument 1001 crypt_iv_elephant_init(struct crypt_config * cc) crypt_iv_elephant_init() argument 1009 crypt_iv_elephant_wipe(struct crypt_config * cc) crypt_iv_elephant_wipe() argument 1081 crypt_integrity_aead(struct crypt_config * cc) crypt_integrity_aead() argument 1086 crypt_integrity_hmac(struct crypt_config * cc) crypt_integrity_hmac() argument 1092 crypt_get_sg_data(struct crypt_config * cc,struct scatterlist * sg) crypt_get_sg_data() argument 1126 crypt_integrity_ctr(struct crypt_config * cc,struct dm_target * ti) crypt_integrity_ctr() argument 1173 crypt_convert_init(struct crypt_config * cc,struct convert_context * ctx,struct bio * bio_out,struct bio * bio_in,sector_t sector) crypt_convert_init() argument 1189 dmreq_of_req(struct crypt_config * cc,void * req) dmreq_of_req() argument 1195 req_of_dmreq(struct crypt_config * cc,struct dm_crypt_request * dmreq) req_of_dmreq() argument 1200 iv_of_dmreq(struct crypt_config * cc,struct dm_crypt_request * dmreq) iv_of_dmreq() argument 1211 org_iv_of_dmreq(struct crypt_config * cc,struct dm_crypt_request * dmreq) org_iv_of_dmreq() argument 1217 org_sector_of_dmreq(struct crypt_config * cc,struct dm_crypt_request * dmreq) org_sector_of_dmreq() argument 1225 org_tag_of_dmreq(struct crypt_config * cc,struct dm_crypt_request * dmreq) org_tag_of_dmreq() argument 1234 tag_from_dmreq(struct crypt_config * cc,struct dm_crypt_request * dmreq) tag_from_dmreq() argument 1244 iv_tag_from_dmreq(struct crypt_config * cc,struct dm_crypt_request * dmreq) iv_tag_from_dmreq() argument 1250 crypt_convert_block_aead(struct crypt_config * cc,struct convert_context * ctx,struct aead_request * req,unsigned int tag_offset) crypt_convert_block_aead() argument 1352 crypt_convert_block_skcipher(struct crypt_config * cc,struct convert_context * ctx,struct skcipher_request * req,unsigned int tag_offset) crypt_convert_block_skcipher() argument 1431 crypt_alloc_req_skcipher(struct crypt_config * cc,struct convert_context * ctx) crypt_alloc_req_skcipher() argument 1455 crypt_alloc_req_aead(struct crypt_config * cc,struct convert_context * ctx) crypt_alloc_req_aead() argument 1477 crypt_alloc_req(struct crypt_config * cc,struct convert_context * ctx) crypt_alloc_req() argument 1486 crypt_free_req_skcipher(struct crypt_config * cc,struct skcipher_request * req,struct bio * base_bio) crypt_free_req_skcipher() argument 1495 crypt_free_req_aead(struct crypt_config * cc,struct aead_request * req,struct bio * base_bio) crypt_free_req_aead() argument 1504 crypt_free_req(struct crypt_config * cc,void * req,struct bio * base_bio) crypt_free_req() argument 1515 crypt_convert(struct crypt_config * cc,struct convert_context * ctx,bool atomic,bool reset_pending) crypt_convert() argument 1632 struct crypt_config *cc = io->cc; crypt_alloc_buffer() local 1701 crypt_free_buffer_pages(struct crypt_config * cc,struct bio * clone) crypt_free_buffer_pages() argument 1718 crypt_io_init(struct dm_crypt_io * io,struct crypt_config * cc,struct bio * bio,sector_t sector) crypt_io_init() argument 1746 struct crypt_config *cc = io->cc; crypt_dec_pending() local 1794 struct crypt_config *cc = io->cc; crypt_endio() local 1826 struct crypt_config *cc = io->cc; kcryptd_io_read() local 1882 struct crypt_config *cc = io->cc; kcryptd_queue_read() local 1899 struct crypt_config *cc = data; dmcrypt_write() local 1952 struct crypt_config *cc = io->cc; kcryptd_crypt_write_io_submit() local 1991 kcryptd_crypt_write_inline(struct crypt_config * cc,struct convert_context * ctx) kcryptd_crypt_write_inline() argument 2015 struct crypt_config *cc = io->cc; kcryptd_crypt_write_continue() local 2042 struct crypt_config *cc = io->cc; kcryptd_crypt_write_convert() local 2115 struct crypt_config *cc = io->cc; kcryptd_crypt_read_continue() local 2133 struct crypt_config *cc = io->cc; kcryptd_crypt_read_convert() local 2171 struct crypt_config *cc = io->cc; kcryptd_async_done() local 2234 struct crypt_config *cc = io->cc; kcryptd_queue_crypt() local 2257 crypt_free_tfms_aead(struct crypt_config * cc) crypt_free_tfms_aead() argument 2271 crypt_free_tfms_skcipher(struct crypt_config * cc) crypt_free_tfms_skcipher() argument 2288 crypt_free_tfms(struct crypt_config * cc) crypt_free_tfms() argument 2296 crypt_alloc_tfms_skcipher(struct crypt_config * cc,char * ciphermode) crypt_alloc_tfms_skcipher() argument 2326 crypt_alloc_tfms_aead(struct crypt_config * cc,char * ciphermode) crypt_alloc_tfms_aead() argument 2347 crypt_alloc_tfms(struct crypt_config * cc,char * ciphermode) crypt_alloc_tfms() argument 2355 crypt_subkey_size(struct crypt_config * cc) crypt_subkey_size() argument 2360 crypt_authenckey_size(struct crypt_config * cc) crypt_authenckey_size() argument 2387 crypt_setkey(struct crypt_config * cc) crypt_setkey() argument 2436 set_key_user(struct crypt_config * cc,struct key * key) set_key_user() argument 2452 set_key_encrypted(struct crypt_config * cc,struct key * key) set_key_encrypted() argument 2468 set_key_trusted(struct crypt_config * cc,struct key * key) set_key_trusted() argument 2484 crypt_set_keyring_key(struct crypt_config * cc,const char * key_string) crypt_set_keyring_key() argument 2583 crypt_set_keyring_key(struct crypt_config * cc,const char * key_string) crypt_set_keyring_key() argument 2595 crypt_set_key(struct crypt_config * cc,char * key) crypt_set_key() argument 2632 crypt_wipe_key(struct crypt_config * cc) crypt_wipe_key() argument 2666 struct crypt_config *cc = pool_data; crypt_page_alloc() local 2687 struct crypt_config *cc = pool_data; crypt_page_free() local 2695 struct crypt_config *cc = ti->private; crypt_dtr() local 2751 struct crypt_config *cc = ti->private; crypt_ctr_ivmode() local 2824 crypt_ctr_auth_cipher(struct crypt_config * cc,char * cipher_api) crypt_ctr_auth_cipher() argument 2861 struct crypt_config *cc = ti->private; crypt_ctr_cipher_new() local 2939 struct crypt_config *cc = ti->private; crypt_ctr_cipher_old() local 3023 struct crypt_config *cc = ti->private; crypt_ctr_cipher() local 3079 struct crypt_config *cc = ti->private; crypt_ctr_optional() local 3169 struct crypt_config *cc = ti->private; crypt_report_zones() local 3185 struct crypt_config *cc; crypt_ctr() local 3424 struct crypt_config *cc = ti->private; crypt_map() local 3510 struct crypt_config *cc = ti->private; crypt_status() local 3605 struct crypt_config *cc = ti->private; crypt_postsuspend() local 3612 struct crypt_config *cc = ti->private; crypt_preresume() local 3624 struct crypt_config *cc = ti->private; crypt_resume() local 3636 struct crypt_config *cc = ti->private; crypt_message() local 3677 struct crypt_config *cc = ti->private; crypt_iterate_devices() local 3684 struct crypt_config *cc = ti->private; crypt_io_hints() local [all...] |
| /linux/arch/s390/pci/ |
| H A D | pci_insn.c | 25 u8 cc; member 55 static inline void zpci_err_insn_rpcit(int lvl, u8 insn, u8 cc, u8 status, in zpci_err_insn_rpcit() argument 59 .insn = insn, .cc = cc, .status = status, in zpci_err_insn_rpcit() 65 static inline void zpci_err_insn_req(int lvl, u8 insn, u8 cc, u8 status, in zpci_err_insn_req() argument 69 .insn = insn, .cc = cc, .status = status, in zpci_err_insn_req() 75 static inline void zpci_err_insn_addr(int lvl, u8 insn, u8 cc, u8 status, in zpci_err_insn_addr() argument 79 .insn = insn, .cc = cc, .status = status, in zpci_err_insn_addr() 88 int cc; in __mpcifc() local 92 CC_IPM(cc) in __mpcifc() 93 : CC_OUT(cc, cc), [req] "+d" (req), [fib] "+Q" (*fib) in __mpcifc() [all …]
|
| /linux/sound/core/ |
| H A D | ump_convert.c | 123 buf[1] = midi2->cc.index; in cvt_ump_midi2_to_legacy() 124 buf[2] = downscale_32_to_7bit(midi2->cc.data); in cvt_ump_midi2_to_legacy() 291 static void reset_rpn(struct ump_cvt_to_ump_bank *cc) in reset_rpn() 293 cc->rpn_set = 0; in reset_rpn() 294 cc->nrpn_set = 0; in reset_rpn() 295 cc->cc_rpn_msb = cc->cc_rpn_lsb = 0; in reset_rpn() 296 cc->cc_data_msb = cc->cc_data_lsb = 0; in reset_rpn() 297 cc in reset_rpn() 290 reset_rpn(struct ump_cvt_to_ump_bank * cc) reset_rpn() argument 299 fill_rpn(struct ump_cvt_to_ump_bank * cc,union snd_ump_midi2_msg * midi2,bool flush) fill_rpn() argument 335 struct ump_cvt_to_ump_bank *cc; cvt_legacy_cmd_to_ump() local [all...] |
| /linux/drivers/s390/cio/ |
| H A D | trace.h | 25 TP_PROTO(struct subchannel_id schid, struct schib *schib, int cc), 26 TP_ARGS(schid, schib, cc), 44 __field(int, cc) 63 __entry->cc = cc; 68 __entry->cssid, __entry->ssid, __entry->schno, __entry->cc, 85 TP_PROTO(struct subchannel_id schid, struct schib *schib, int cc), 86 TP_ARGS(schid, schib, cc) 96 TP_PROTO(struct subchannel_id schid, struct schib *schib, int cc), 97 TP_ARGS(schid, schib, cc) 107 TP_PROTO(struct subchannel_id schid, struct irb *irb, int cc), [all …]
|
| H A D | ioasm.c | 30 CC_IPM(cc) in __stsch() 32 : CC_OUT(cc, ccode), [addr] "=Q" (*addr), [exc] "+d" (exception) in __stsch() 60 CC_IPM(cc) in __msch() 62 : CC_OUT(cc, ccode), [exc] "+d" (exception) in __msch() 86 CC_IPM(cc) in __tsch() 87 : CC_OUT(cc, ccode), [addr] "=Q" (*addr) in __tsch() 114 CC_IPM(cc) in __ssch() 116 : CC_OUT(cc, ccode), [exc] "+d" (exception) in __ssch() 141 CC_IPM(cc) in __csch() 142 : CC_OUT(cc, ccode) in __csch() [all …]
|
| /linux/arch/s390/include/asm/ |
| H A D | cpu_mf.h | 186 int cc; in lcctl() local 190 CC_IPM(cc) in lcctl() 191 : CC_OUT(cc, cc) in lcctl() 194 return CC_TRANSFORM(cc); in lcctl() 201 int cc; in __ecctr() local 205 CC_IPM(cc) in __ecctr() 206 : CC_OUT(cc, cc), [_content] "=d" (_content) in __ecctr() 210 return CC_TRANSFORM(cc); in __ecctr() 217 int cc; in ecctr() local 219 cc = __ecctr(ctr, &content); in ecctr() [all …]
|
| /linux/sound/core/seq/ |
| H A D | seq_ump_convert.c | 111 ev->data.control.channel = val->cc.channel; in ump_midi1_to_cc_ev() 112 ev->data.control.param = val->cc.index; in ump_midi1_to_cc_ev() 113 ev->data.control.value = val->cc.data; in ump_midi1_to_cc_ev() 232 ev->data.control.channel = val->cc.channel; in ump_midi2_to_cc_ev() 233 ev->data.control.param = val->cc.index; in ump_midi2_to_cc_ev() 234 ev->data.control.value = downscale_32_to_7bit(val->cc.data); in ump_midi2_to_cc_ev() 371 struct ump_cvt_to_ump_bank *cc; in cvt_ump_midi1_to_midi2() local 391 cc = &dest_port->midi2_bank[midi1->note.channel]; in cvt_ump_midi1_to_midi2() 392 switch (midi1->cc.index) { in cvt_ump_midi1_to_midi2() 394 cc in cvt_ump_midi1_to_midi2() 793 reset_rpn(struct ump_cvt_to_ump_bank * cc) reset_rpn() argument 803 fill_rpn(struct ump_cvt_to_ump_bank * cc,union snd_ump_midi2_msg * data,unsigned char channel,bool flush) fill_rpn() argument 843 struct ump_cvt_to_ump_bank *cc = &dest_port->midi2_bank[channel]; cc_ev_to_ump_midi2() local 916 struct ump_cvt_to_ump_bank *cc = &dest_port->midi2_bank[channel]; pgm_ev_to_ump_midi2() local 953 struct ump_cvt_to_ump_bank *cc = &dest_port->midi2_bank[channel]; ctrl14_ev_to_ump_midi2() local [all...] |
| /linux/sound/soc/qcom/qdsp6/ |
| H A D | q6dsp-lpass-clocks.c | 39 struct q6dsp_cc *cc = dev_get_drvdata(clk->dev); in clk_q6dsp_prepare() local 41 return cc->desc->lpass_set_clk(clk->dev, clk->q6dsp_clk_id, clk->attributes, in clk_q6dsp_prepare() 48 struct q6dsp_cc *cc = dev_get_drvdata(clk->dev); in clk_q6dsp_unprepare() local 50 cc->desc->lpass_set_clk(clk->dev, clk->q6dsp_clk_id, clk->attributes, in clk_q6dsp_unprepare() 89 struct q6dsp_cc *cc = dev_get_drvdata(clk->dev); in clk_vote_q6dsp_block() local 91 return cc->desc->lpass_vote_clk(clk->dev, clk->q6dsp_clk_id, in clk_vote_q6dsp_block() 98 struct q6dsp_cc *cc = dev_get_drvdata(clk->dev); in clk_unvote_q6dsp_block() local 100 cc->desc->lpass_unvote_clk(clk->dev, clk->q6dsp_clk_id, clk->handle); in clk_unvote_q6dsp_block() 112 struct q6dsp_cc *cc = data; in q6dsp_of_clk_hw_get() local 117 dev_err(cc in q6dsp_of_clk_hw_get() 131 struct q6dsp_cc *cc; q6dsp_clock_dev_probe() local [all...] |
| /linux/drivers/clk/sprd/ |
| H A D | composite.c | 15 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()
|
| /linux/arch/m68k/ |
| H A D | Makefile | 19 CROSS_COMPILE := $(call cc-cross-prefix, \ 41 cpuflags-$(CONFIG_M5441x) = $(call cc-option,-mcpu=54455,-mcfv4e) 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) [all …]
|
| /linux/include/linux/bcma/ |
| H A D | bcma_driver_chipcommon.h | 664 #define bcma_cc_read32(cc, offset) \ argument 665 bcma_read32((cc)->core, offset) 666 #define bcma_cc_write32(cc, offset, val) \ argument 667 bcma_write32((cc)->core, offset, val) 669 #define bcma_cc_mask32(cc, offset, mask) \ argument 670 bcma_cc_write32(cc, offset, bcma_cc_read32(cc, offset) & (mask)) 671 #define bcma_cc_set32(cc, offset, set) \ argument 672 bcma_cc_write32(cc, offset, bcma_cc_read32(cc, offset) | (set)) 673 #define bcma_cc_maskset32(cc, offset, mask, set) \ argument 674 bcma_cc_write32(cc, offset, (bcma_cc_read32(cc, offset) & (mask)) | (set)) [all …]
|
| /linux/include/linux/ssb/ |
| H A D | ssb_driver_chipcommon.h | 599 static inline bool ssb_chipco_available(struct ssb_chipcommon *cc) in ssb_chipco_available() argument 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, offse argument 612 chipco_maskset32(cc,offset,mask,set) global() argument [all...] |
| /linux/arch/x86/include/asm/ |
| H A D | rmwcc.h | 9 #define __GEN_RMWcc(fullop, _var, cc, clobbers, ...) \ argument 13 : [var] "+m" (_var), "=@cc" #cc (c) \ 18 #define GEN_UNARY_RMWcc_4(op, var, cc, arg0) \ argument 19 __GEN_RMWcc(op " " arg0, var, cc, __CLOBBERS_MEM()) 21 #define GEN_UNARY_RMWcc_3(op, var, cc) \ argument 22 GEN_UNARY_RMWcc_4(op, var, cc, "%[var]") 26 #define GEN_BINARY_RMWcc_6(op, var, cc, vcon, _val, arg0) \ argument 27 __GEN_RMWcc(op " %[val], " arg0, var, cc, \ 30 #define GEN_BINARY_RMWcc_5(op, var, cc, vcon, val) \ argument 31 GEN_BINARY_RMWcc_6(op, var, cc, vcon, val, "%[var]") [all …]
|
| /linux/net/batman-adv/ |
| H A D | tp_meter.c | 154 if (tp_vars->cc.cwnd <= tp_vars->cc.ss_threshold) { in batadv_tp_update_cwnd() 155 tp_vars->cc.dec_cwnd = 0; in batadv_tp_update_cwnd() 156 tp_vars->cc.cwnd = batadv_tp_cwnd(tp_vars->cc.cwnd, mss, mss); in batadv_tp_update_cwnd() 164 tp_vars->cc.dec_cwnd += max_t(u32, 1U << 3, in batadv_tp_update_cwnd() 165 ((mss * mss) << 3) / tp_vars->cc.cwnd); in batadv_tp_update_cwnd() 166 if (tp_vars->cc.dec_cwnd < (mss << 3)) in batadv_tp_update_cwnd() 169 tp_vars->cc.cwnd = batadv_tp_cwnd(tp_vars->cc in batadv_tp_update_cwnd() [all...] |
| /linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
| H A D | aiutils.c | 444 ai_buscore_setup(struct si_info *sii, struct bcma_device *cc) in ai_buscore_setup() argument 447 if (cc->bus->nr_cores == 0) in ai_buscore_setup() 451 sii->pub.ccrev = cc->id.rev; in ai_buscore_setup() 454 sii->chipst = bcma_read32(cc, CHIPCREGOFFS(chipstatus)); in ai_buscore_setup() 457 sii->pub.cccaps = bcma_read32(cc, CHIPCREGOFFS(capabilities)); in ai_buscore_setup() 461 sii->pub.pmucaps = bcma_read32(cc, in ai_buscore_setup() 473 struct bcma_device *cc; in ai_doattach() local 479 cc = pbus->drv_cc.core; in ai_doattach() 487 if (!ai_buscore_setup(sii, cc)) in ai_doattach() 491 bcma_write32(cc, CHIPCREGOFFS(gpiopullup), 0); in ai_doattach() [all …]
|
| /linux/net/sunrpc/xprtrdma/ |
| H A D | svc_rdma_rw.c | 176 struct svc_rdma_chunk_ctxt *cc) in svc_rdma_cc_init() argument 178 struct rpc_rdma_cid *cid = &cc->cc_cid; in svc_rdma_cc_init() 183 INIT_LIST_HEAD(&cc->cc_rwctxts); in svc_rdma_cc_init() 184 cc->cc_sqecount = 0; in svc_rdma_cc_init() 194 struct svc_rdma_chunk_ctxt *cc, in svc_rdma_cc_release() argument 200 trace_svcrdma_cc_release(&cc->cc_cid, cc->cc_sqecount); in svc_rdma_cc_release() 203 while ((ctxt = svc_rdma_next_ctxt(&cc->cc_rwctxts)) != NULL) { in svc_rdma_cc_release() 275 struct svc_rdma_chunk_ctxt *cc = &ctxt->sc_reply_info.wi_cc; in svc_rdma_reply_chunk_release() local 277 if (!cc->cc_sqecount) in svc_rdma_reply_chunk_release() 279 svc_rdma_cc_release(rdma, cc, DMA_TO_DEVICE); in svc_rdma_reply_chunk_release() [all …]
|
| /linux/drivers/net/can/rockchip/ |
| H A D | rockchip_canfd-timestamp.c | 11 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 …]
|