core              303 arch/arc/include/asm/arcregs.h 	struct bcr_identity core;
core              124 arch/arc/kernel/setup.c 	if (cpu->core.family < 0x54) { /* includes arc700 */
core              127 arch/arc/kernel/setup.c 			if (cpu->core.family == tbl->id) {
core              177 arch/arc/kernel/setup.c 	READ_BCR(AUX_IDENTITY, cpu->core);
core              262 arch/arc/kernel/setup.c 		if (unlikely(cpu->core.family < 0x34 || cpu->mmu.ver < 3))
core              272 arch/arc/kernel/setup.c 	struct bcr_identity *core = &cpu->core;
core              280 arch/arc/kernel/setup.c 		       core->family, core->cpu_id, core->chip_id);
core              120 arch/arc/kernel/unwind.c 	} core, init;
core              161 arch/arc/kernel/unwind.c 		if ((pc >= table->core.pc
core              162 arch/arc/kernel/unwind.c 		     && pc < table->core.pc + table->core.range)
core              193 arch/arc/kernel/unwind.c 	table->core.pc = (unsigned long)core_start;
core              194 arch/arc/kernel/unwind.c 	table->core.range = core_size;
core              394 arch/arc/kernel/unwind.c 		module->name, table->core.pc, table->core.range);
core              133 arch/arc/mm/cache.c 	if (cpuinfo_arc700[cpu].core.family > 0x51) {
core              137 arch/arc/mm/cache.c 		if (cpuinfo_arc700[cpu].core.family > 0x52)
core               14 arch/arc/plat-eznps/include/plat/mtm.h 	u32 core, blkid;
core               17 arch/arc/plat-eznps/include/plat/mtm.h 	core = gid.core;
core               18 arch/arc/plat-eznps/include/plat/mtm.h 	blkid = (((core & 0x0C) << 2) | (core & 0x03));
core              104 arch/arc/plat-eznps/smp.c 				u32 num:8, cluster:8, core:8, thread:8;
core              112 arch/arc/plat-eznps/smp.c 	ipi.core = gid.core;
core               32 arch/arm/include/asm/module.h 	struct mod_plt_sec	core;
core              150 arch/arm/include/uapi/asm/setup.h 		struct tag_core		core;
core              121 arch/arm/kernel/atags_compat.c 	tag->u.core.flags = params->u1.s.flags & FLAG_READONLY;
core              122 arch/arm/kernel/atags_compat.c 	tag->u.core.pagesize = params->u1.s.page_size;
core              123 arch/arm/kernel/atags_compat.c 	tag->u.core.rootdev = params->u1.s.rootdev;
core               41 arch/arm/kernel/atags_parse.c 	struct tag_core   core;
core               56 arch/arm/kernel/atags_parse.c 		if ((tag->u.core.flags & 1) == 0)
core               58 arch/arm/kernel/atags_parse.c 		ROOT_DEV = old_decode_dev(tag->u.core.rootdev);
core               38 arch/arm/kernel/module-plts.c 	struct mod_plt_sec *pltsec = !in_init(mod, loc) ? &mod->arch.core :
core              202 arch/arm/kernel/module-plts.c 			mod->arch.core.plt = s;
core              209 arch/arm/kernel/module-plts.c 	if (!mod->arch.core.plt || !mod->arch.init.plt) {
core              241 arch/arm/kernel/module-plts.c 	mod->arch.core.plt->sh_type = SHT_NOBITS;
core              242 arch/arm/kernel/module-plts.c 	mod->arch.core.plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC;
core              243 arch/arm/kernel/module-plts.c 	mod->arch.core.plt->sh_addralign = L1_CACHE_BYTES;
core              244 arch/arm/kernel/module-plts.c 	mod->arch.core.plt->sh_size = round_up(core_plts * PLT_ENT_SIZE,
core              246 arch/arm/kernel/module-plts.c 	mod->arch.core.plt_count = 0;
core              256 arch/arm/kernel/module-plts.c 		 mod->arch.core.plt->sh_size, mod->arch.init.plt->sh_size);
core              367 arch/arm/mach-omap2/cm2xxx.c void omap2xxx_cm_set_mod_dividers(u32 mpu, u32 dsp, u32 gfx, u32 core, u32 mdm)
core              376 arch/arm/mach-omap2/cm2xxx.c 	omap2_cm_write_mod_reg(core | tmp, CORE_MOD, CM_CLKSEL1);
core               60 arch/arm/mach-omap2/cm2xxx.h extern void omap2xxx_cm_set_mod_dividers(u32 mpu, u32 dsp, u32 gfx, u32 core,
core               88 arch/arm/mach-sunxi/mc_smp.c static bool sunxi_core_is_cortex_a15(unsigned int core, unsigned int cluster)
core               91 arch/arm/mach-sunxi/mc_smp.c 	int cpu = cluster * SUNXI_CPUS_PER_CLUSTER + core;
core              106 arch/arm/mach-sunxi/mc_smp.c 		       __func__, cluster, core);
core               20 arch/arm64/include/asm/module.h 	struct mod_plt_sec	core;
core               75 arch/arm64/kernel/module-plts.c 	struct mod_plt_sec *pltsec = !in_init(mod, loc) ? &mod->arch.core :
core              106 arch/arm64/kernel/module-plts.c 	struct mod_plt_sec *pltsec = !in_init(mod, loc) ? &mod->arch.core :
core              270 arch/arm64/kernel/module-plts.c 			mod->arch.core.plt_shndx = i;
core              281 arch/arm64/kernel/module-plts.c 	if (!mod->arch.core.plt_shndx || !mod->arch.init.plt_shndx) {
core              313 arch/arm64/kernel/module-plts.c 	pltsec = sechdrs + mod->arch.core.plt_shndx;
core              318 arch/arm64/kernel/module-plts.c 	mod->arch.core.plt_num_entries = 0;
core              319 arch/arm64/kernel/module-plts.c 	mod->arch.core.plt_max_entries = core_plts;
core              851 arch/ia64/kernel/module.c 	struct unw_table_entry tmp, *e1, *e2, *core, *init;
core              879 arch/ia64/kernel/module.c 		core = start + num_init;
core              881 arch/ia64/kernel/module.c 		core = start;
core              893 arch/ia64/kernel/module.c 								core, core + num_core);
core              895 arch/ia64/kernel/module.c 		       mod->arch.core_unw_table, core, core + num_core);
core               78 arch/mips/bcm47xx/irq.c 		bcma_write32(bcm47xx_bus.bcma.bus.drv_mips.core,
core              213 arch/mips/bcm63xx/reset.c void bcm63xx_core_set_reset(enum bcm63xx_core_reset core, int reset)
core              215 arch/mips/bcm63xx/reset.c 	__bcm63xx_core_set_reset(bcm63xx_reset_bits[core], reset);
core               49 arch/mips/cavium-octeon/executive/cvmx-l2c.c int cvmx_l2c_get_core_way_partition(uint32_t core)
core               54 arch/mips/cavium-octeon/executive/cvmx-l2c.c 	if (core >= cvmx_octeon_num_cores())
core               58 arch/mips/cavium-octeon/executive/cvmx-l2c.c 		return cvmx_read_csr(CVMX_L2C_WPAR_PPX(core)) & 0xffff;
core               64 arch/mips/cavium-octeon/executive/cvmx-l2c.c 	field = (core & 0x3) * 8;
core               71 arch/mips/cavium-octeon/executive/cvmx-l2c.c 	switch (core & 0xC) {
core               84 arch/mips/cavium-octeon/executive/cvmx-l2c.c int cvmx_l2c_set_core_way_partition(uint32_t core, uint32_t mask)
core               98 arch/mips/cavium-octeon/executive/cvmx-l2c.c 	if (core >= cvmx_octeon_num_cores())
core              102 arch/mips/cavium-octeon/executive/cvmx-l2c.c 		cvmx_write_csr(CVMX_L2C_WPAR_PPX(core), mask);
core              110 arch/mips/cavium-octeon/executive/cvmx-l2c.c 	field = (core & 0x3) * 8;
core              117 arch/mips/cavium-octeon/executive/cvmx-l2c.c 	switch (core & 0xC) {
core              595 arch/mips/cavium-octeon/executive/cvmx-l2c.c 	uint64_t core = cvmx_get_core_num();
core              607 arch/mips/cavium-octeon/executive/cvmx-l2c.c 	debug_val.s.ppnum = core;
core              556 arch/mips/cavium-octeon/executive/cvmx-pko.c 	int core, port;
core              564 arch/mips/cavium-octeon/executive/cvmx-pko.c 	for (core = 0; core < CVMX_MAX_CORES; core++) {
core              565 arch/mips/cavium-octeon/executive/cvmx-pko.c 		cvmx_dprintf("\n%2d: ", core);
core              569 arch/mips/cavium-octeon/executive/cvmx-pko.c 								      core));
core             2617 arch/mips/cavium-octeon/octeon-irq.c static unsigned int octeon_irq_ciu3_base_mbox_intsn(int core)
core             2620 arch/mips/cavium-octeon/octeon-irq.c 	return 0x04000 + CIU3_MBOX_PER_CORE * core;
core             2623 arch/mips/cavium-octeon/octeon-irq.c static unsigned int octeon_irq_ciu3_mbox_intsn_for_core(int core, unsigned int mbox)
core             2625 arch/mips/cavium-octeon/octeon-irq.c 	return octeon_irq_ciu3_base_mbox_intsn(core) + mbox;
core             2640 arch/mips/cavium-octeon/octeon-irq.c 	int core = cvmx_get_local_core_num();
core             2645 arch/mips/cavium-octeon/octeon-irq.c 	dest_pp_int.u64 = cvmx_read_csr(ciu3_addr + CIU3_DEST_PP_INT(1 + 3 * core));
core             2649 arch/mips/cavium-octeon/octeon-irq.c 		int mbox = intsn - octeon_irq_ciu3_base_mbox_intsn(core);
core             2774 arch/mips/cavium-octeon/octeon-irq.c 	int core = cvmx_get_local_core_num();
core             2783 arch/mips/cavium-octeon/octeon-irq.c 	idt_ip2 = core * 4 + 1;
core             2784 arch/mips/cavium-octeon/octeon-irq.c 	idt_ip3 = core * 4 + 2;
core             2785 arch/mips/cavium-octeon/octeon-irq.c 	idt_ip4 = core * 4 + 3;
core             2786 arch/mips/cavium-octeon/octeon-irq.c 	unused_idt2 = core * 4 + 4;
core             2792 arch/mips/cavium-octeon/octeon-irq.c 	cvmx_write_csr(b + CIU3_IDT_PP(idt_ip2, 0), 1ull << core);
core             2797 arch/mips/cavium-octeon/octeon-irq.c 	cvmx_write_csr(b + CIU3_IDT_PP(idt_ip3, 0), 1ull << core);
core             2810 arch/mips/cavium-octeon/octeon-irq.c 		unsigned int intsn = octeon_irq_ciu3_mbox_intsn_for_core(core, i);
core              169 arch/mips/include/asm/cpu-info.h extern void cpu_set_core(struct cpuinfo_mips *cpuinfo, unsigned int core);
core               25 arch/mips/include/asm/mach-cavium-octeon/kernel-entry-init.h 	# a2 = 1 if init core, zero otherwise
core               63 arch/mips/include/asm/mach-cavium-octeon/kernel-entry-init.h 4:	# core-16057 work around
core               66 arch/mips/include/asm/mach-cavium-octeon/kernel-entry-init.h 5:	# No core-16057 work around
core               89 arch/mips/include/asm/mach-cavium-octeon/kernel-entry-init.h 	# Get my core id
core              114 arch/mips/include/asm/mach-cavium-octeon/kernel-entry-init.h 	# This is the variable where the next core to boot is stored
core              116 arch/mips/include/asm/mach-cavium-octeon/kernel-entry-init.h 	# Get the core id of the next to be booted
core              398 arch/mips/include/asm/mips-cm.h 	unsigned int core = cpu_core(&cpu_data[cpu]);
core              401 arch/mips/include/asm/mips-cm.h 	return (core * mips_cm_max_vp_width()) + vp;
core              424 arch/mips/include/asm/mips-cm.h extern void mips_cm_lock_other(unsigned int cluster, unsigned int core,
core              437 arch/mips/include/asm/mips-cm.h static inline void mips_cm_lock_other(unsigned int cluster, unsigned int core,
core              162 arch/mips/include/asm/mips-cpc.h extern void mips_cpc_lock_other(unsigned int core);
core              174 arch/mips/include/asm/mips-cpc.h static inline void mips_cpc_lock_other(unsigned int core) { }
core              203 arch/mips/include/asm/mips-cps.h static inline unsigned int mips_cps_numvps(unsigned int cluster, unsigned int core)
core              214 arch/mips/include/asm/mips-cps.h 	mips_cm_lock_other(cluster, core, 0, CM_GCR_Cx_OTHER_BLOCK_LOCAL);
core              121 arch/mips/include/asm/netlogic/xlp-hal/sys.h #define SYS_CPU_PLL_CTRL0(core)			(0x1c0 + (core * 4))
core              122 arch/mips/include/asm/netlogic/xlp-hal/sys.h #define SYS_CPU_PLL_CTRL1(core)			(0x1c1 + (core * 4))
core              123 arch/mips/include/asm/netlogic/xlp-hal/sys.h #define SYS_CPU_PLL_CTRL2(core)			(0x1c2 + (core * 4))
core              124 arch/mips/include/asm/netlogic/xlp-hal/sys.h #define SYS_CPU_PLL_CTRL3(core)			(0x1c3 + (core * 4))
core              155 arch/mips/include/asm/netlogic/xlp-hal/sys.h #define SYS_9XX_CPU_PLL_CTRL0(core)		(0xc0 + (core * 4))
core              156 arch/mips/include/asm/netlogic/xlp-hal/sys.h #define SYS_9XX_CPU_PLL_CTRL1(core)		(0xc1 + (core * 4))
core              157 arch/mips/include/asm/netlogic/xlp-hal/sys.h #define SYS_9XX_CPU_PLL_CTRL2(core)		(0xc2 + (core * 4))
core              158 arch/mips/include/asm/netlogic/xlp-hal/sys.h #define SYS_9XX_CPU_PLL_CTRL3(core)		(0xc3 + (core * 4))
core              225 arch/mips/include/asm/octeon/cvmx-cmd-queue.h 	int core = queue_id & 0xf;
core              226 arch/mips/include/asm/octeon/cvmx-cmd-queue.h 	return unit * 256 + core * 16 + q;
core               49 arch/mips/include/asm/octeon/cvmx-coremask.h 					    int core)
core               53 arch/mips/include/asm/octeon/cvmx-coremask.h 	n = core % CVMX_COREMASK_ELTSZ;
core               54 arch/mips/include/asm/octeon/cvmx-coremask.h 	i = core / CVMX_COREMASK_ELTSZ;
core               80 arch/mips/include/asm/octeon/cvmx-coremask.h static inline void cvmx_coremask_clear_core(struct cvmx_coremask *pcm, int core)
core               84 arch/mips/include/asm/octeon/cvmx-coremask.h 	n = core % CVMX_COREMASK_ELTSZ;
core               85 arch/mips/include/asm/octeon/cvmx-coremask.h 	i = core / CVMX_COREMASK_ELTSZ;
core              191 arch/mips/include/asm/octeon/cvmx-l2c.h int cvmx_l2c_get_core_way_partition(uint32_t core);
core              209 arch/mips/include/asm/octeon/cvmx-l2c.h int cvmx_l2c_set_core_way_partition(uint32_t core, uint32_t mask);
core              497 arch/mips/include/asm/octeon/cvmx-pko.h static inline int cvmx_pko_get_base_queue_per_core(int port, int core)
core              507 arch/mips/include/asm/octeon/cvmx-pko.h 		return port * CVMX_PKO_QUEUES_PER_PORT_INTERFACE0 + core;
core              512 arch/mips/include/asm/octeon/cvmx-pko.h 		    CVMX_PKO_QUEUES_PER_PORT_INTERFACE1 + core;
core             1017 arch/mips/kernel/cpu-probe.c 		unsigned int core;
core             1019 arch/mips/kernel/cpu-probe.c 		core = get_ebase_cpunum();
core             1021 arch/mips/kernel/cpu-probe.c 			core >>= fls(core_nvpes()) - 1;
core             1022 arch/mips/kernel/cpu-probe.c 		cpu_set_core(c, core);
core             2249 arch/mips/kernel/cpu-probe.c void cpu_set_core(struct cpuinfo_mips *cpuinfo, unsigned int core)
core             2252 arch/mips/kernel/cpu-probe.c 	WARN_ON(core > (MIPS_GLOBALNUMBER_CORE >> MIPS_GLOBALNUMBER_CORE_SHF));
core             2255 arch/mips/kernel/cpu-probe.c 	cpuinfo->globalnumber |= core << MIPS_GLOBALNUMBER_CORE_SHF;
core              256 arch/mips/kernel/mips-cm.c void mips_cm_lock_other(unsigned int cluster, unsigned int core,
core              266 arch/mips/kernel/mips-cm.c 		val = core << __ffs(CM3_GCR_Cx_OTHER_CORE);
core              302 arch/mips/kernel/mips-cm.c 		val = core << __ffs(CM_GCR_Cx_OTHER_CORENUM);
core               88 arch/mips/kernel/mips-cpc.c void mips_cpc_lock_other(unsigned int core)
core              100 arch/mips/kernel/mips-cpc.c 	write_cpc_cl_other(core << __ffs(CPC_Cx_OTHER_CORENUM));
core              113 arch/mips/kernel/pm-cps.c 	unsigned core = cpu_core(&current_cpu_data);
core              123 arch/mips/kernel/pm-cps.c 	entry = per_cpu(nc_asm_enter, core)[state];
core              147 arch/mips/kernel/pm-cps.c 		core_cfg = &mips_cps_core_bootcfg[core];
core              159 arch/mips/kernel/pm-cps.c 	core_ready_count = per_cpu(ready_count, core);
core              167 arch/mips/kernel/pm-cps.c 	coupled_barrier(&per_cpu(pm_barrier, core), online);
core              639 arch/mips/kernel/pm-cps.c 	unsigned core = cpu_core(&cpu_data[cpu]);
core              643 arch/mips/kernel/pm-cps.c 		if (per_cpu(nc_asm_enter, core)[state])
core              651 arch/mips/kernel/pm-cps.c 			       core, state);
core              655 arch/mips/kernel/pm-cps.c 		per_cpu(nc_asm_enter, core)[state] = entry_fn;
core              658 arch/mips/kernel/pm-cps.c 	if (!per_cpu(ready_count, core)) {
core              661 arch/mips/kernel/pm-cps.c 			pr_err("Failed allocate core %u ready_count\n", core);
core              664 arch/mips/kernel/pm-cps.c 		per_cpu(ready_count, core) = core_rc;
core               38 arch/mips/kernel/smp-cps.c static unsigned core_vpe_count(unsigned int cluster, unsigned core)
core               43 arch/mips/kernel/smp-cps.c 	return mips_cps_numvps(cluster, core);
core              214 arch/mips/kernel/smp-cps.c static void boot_core(unsigned int core, unsigned int vpe_id)
core              220 arch/mips/kernel/smp-cps.c 	mips_cm_lock_other(0, core, 0, CM_GCR_Cx_OTHER_BLOCK_LOCAL);
core              232 arch/mips/kernel/smp-cps.c 	set_gcr_access(1 << core);
core              236 arch/mips/kernel/smp-cps.c 		mips_cpc_lock_other(core);
core              270 arch/mips/kernel/smp-cps.c 				core, stat);
core              283 arch/mips/kernel/smp-cps.c 	bitmap_set(core_power, core, 1);
core              288 arch/mips/kernel/smp-cps.c 	unsigned core = cpu_core(&current_cpu_data);
core              289 arch/mips/kernel/smp-cps.c 	struct core_boot_config *core_cfg = &mips_cps_core_bootcfg[core];
core              296 arch/mips/kernel/smp-cps.c 	unsigned core = cpu_core(&cpu_data[cpu]);
core              298 arch/mips/kernel/smp-cps.c 	struct core_boot_config *core_cfg = &mips_cps_core_bootcfg[core];
core              316 arch/mips/kernel/smp-cps.c 	if (!test_bit(core, core_power)) {
core              318 arch/mips/kernel/smp-cps.c 		boot_core(core, vpe_id);
core              323 arch/mips/kernel/smp-cps.c 		mips_cm_lock_other(0, core, vpe_id, CM_GCR_Cx_OTHER_BLOCK_LOCAL);
core              339 arch/mips/kernel/smp-cps.c 				core, cpu);
core              406 arch/mips/kernel/smp-cps.c 	unsigned int cpu, core, vpe_id;
core              409 arch/mips/kernel/smp-cps.c 	core = cpu_core(&cpu_data[cpu]);
core              414 arch/mips/kernel/smp-cps.c 		pr_debug("Halting core %d VP%d\n", core, vpe_id);
core              426 arch/mips/kernel/smp-cps.c 		pr_debug("Gating power to core %d\n", core);
core              523 arch/mips/kernel/smp-cps.c 	unsigned core = cpu_core(&cpu_data[cpu]);
core              554 arch/mips/kernel/smp-cps.c 			mips_cm_lock_other(0, core, 0, CM_GCR_Cx_OTHER_BLOCK_LOCAL);
core              555 arch/mips/kernel/smp-cps.c 			mips_cpc_lock_other(core);
core              585 arch/mips/kernel/smp-cps.c 		bitmap_clear(core_power, core, 1);
core              598 arch/mips/kernel/smp-cps.c 			mips_cm_lock_other(0, core, vpe_id, CM_GCR_Cx_OTHER_BLOCK_LOCAL);
core              157 arch/mips/kernel/smp.c 	unsigned int core;
core              180 arch/mips/kernel/smp.c 			core = cpu_core(&cpu_data[cpu]);
core              184 arch/mips/kernel/smp.c 				mips_cpc_lock_other(core);
core              456 arch/mips/loongson64/loongson-3/smp.c 	register long cpuid, core, node, count;
core              508 arch/mips/loongson64/loongson-3/smp.c 		: [core] "=&r" (core), [node] "=&r" (node),
core              518 arch/mips/loongson64/loongson-3/smp.c 	register long cpuid, core, node, count;
core              591 arch/mips/loongson64/loongson-3/smp.c 		: [core] "=&r" (core), [node] "=&r" (node),
core              601 arch/mips/loongson64/loongson-3/smp.c 	register long cpuid, core, node, count;
core              655 arch/mips/loongson64/loongson-3/smp.c 		: [core] "=&r" (core), [node] "=&r" (node),
core              228 arch/mips/netlogic/xlp/nlm_hal.c static unsigned int nlm_xlp2_get_core_frequency(int node, int core)
core              236 arch/mips/netlogic/xlp/nlm_hal.c 					SYS_9XX_CPU_PLL_CTRL0(core));
core              238 arch/mips/netlogic/xlp/nlm_hal.c 					SYS_9XX_CPU_PLL_CTRL1(core));
core              242 arch/mips/netlogic/xlp/nlm_hal.c 						SYS_CPU_PLL_CTRL0(core));
core              244 arch/mips/netlogic/xlp/nlm_hal.c 						SYS_CPU_PLL_CTRL1(core));
core              274 arch/mips/netlogic/xlp/nlm_hal.c static unsigned int nlm_xlp_get_core_frequency(int node, int core)
core              286 arch/mips/netlogic/xlp/nlm_hal.c 	dfs_div  = ((dfsval >> (core * 4)) & 0xf) + 1;
core              295 arch/mips/netlogic/xlp/nlm_hal.c unsigned int nlm_get_core_frequency(int node, int core)
core              298 arch/mips/netlogic/xlp/nlm_hal.c 		return nlm_xlp2_get_core_frequency(node, core);
core              300 arch/mips/netlogic/xlp/nlm_hal.c 		return nlm_xlp_get_core_frequency(node, core);
core               53 arch/mips/netlogic/xlp/wakeup.c static int xlp_wakeup_core(uint64_t sysbase, int node, int core)
core               58 arch/mips/netlogic/xlp/wakeup.c 	coremask = (1 << core);
core              114 arch/mips/netlogic/xlp/wakeup.c 	int core, n, cpu, ncores;
core              172 arch/mips/netlogic/xlp/wakeup.c 		for (core = 0; core < ncores; core++) {
core              174 arch/mips/netlogic/xlp/wakeup.c 			if (n == 0 && core == 0)
core              178 arch/mips/netlogic/xlp/wakeup.c 			if ((syscoremask & (1 << core)) == 0)
core              182 arch/mips/netlogic/xlp/wakeup.c 			cpu = (n * ncores + core) * NLM_THREADS_PER_CORE;
core              187 arch/mips/netlogic/xlp/wakeup.c 			if (!xlp_wakeup_core(nodep->sysbase, n, core))
core              191 arch/mips/netlogic/xlp/wakeup.c 			nodep->coremask |= 1u << core;
core              195 arch/mips/netlogic/xlp/wakeup.c 				pr_err("Node %d : timeout core %d\n", n, core);
core               76 arch/powerpc/include/asm/cputhreads.h int cpu_first_thread_of_core(int core);
core               79 arch/powerpc/include/asm/cputhreads.h static inline int cpu_first_thread_of_core(int core) { return core; }
core              365 arch/powerpc/include/asm/ps3.h 	struct device core;
core              379 arch/powerpc/include/asm/ps3.h 	struct device_driver core;
core              394 arch/powerpc/include/asm/ps3.h 	return container_of(_drv, struct ps3_system_bus_driver, core);
core              399 arch/powerpc/include/asm/ps3.h 	return container_of(_dev, struct ps3_system_bus_device, core);
core              405 arch/powerpc/include/asm/ps3.h 	BUG_ON(!_dev->core.driver);
core              406 arch/powerpc/include/asm/ps3.h 	return ps3_drv_to_system_bus_drv(_dev->core.driver);
core              418 arch/powerpc/include/asm/ps3.h 	dev_set_drvdata(&dev->core, data);
core              423 arch/powerpc/include/asm/ps3.h 	return dev_get_drvdata(&dev->core);
core               47 arch/powerpc/include/asm/ps3stor.h 	return container_of(dev, struct ps3_storage_device, sbd.core);
core             1100 arch/powerpc/kernel/smp.c int cpu_first_thread_of_core(int core)
core             1102 arch/powerpc/kernel/smp.c 	return core << threads_shift;
core             2265 arch/powerpc/kvm/book3s_hv.c 	int core;
core             2327 arch/powerpc/kvm/book3s_hv.c 			core = KVM_MAX_VCORES;
core             2330 arch/powerpc/kvm/book3s_hv.c 			core = kvmppc_pack_vcpu_id(kvm, id);
core             2333 arch/powerpc/kvm/book3s_hv.c 		core = id / kvm->arch.smt_mode;
core             2335 arch/powerpc/kvm/book3s_hv.c 	if (core < KVM_MAX_VCORES) {
core             2336 arch/powerpc/kvm/book3s_hv.c 		vcore = kvm->arch.vcores[core];
core             2349 arch/powerpc/kvm/book3s_hv.c 			kvm->arch.vcores[core] = vcore;
core             2985 arch/powerpc/kvm/book3s_hv.c 	int core;
core             2994 arch/powerpc/kvm/book3s_hv.c 	core = cpu >> threads_shift;
core             2995 arch/powerpc/kvm/book3s_hv.c 	kvmppc_host_rm_ops_hv->rm_core[core].rm_state.in_host = 0;
core             3006 arch/powerpc/kvm/book3s_hv.c 	int core;
core             3015 arch/powerpc/kvm/book3s_hv.c 	core = cpu >> threads_shift;
core             3016 arch/powerpc/kvm/book3s_hv.c 	kvmppc_host_rm_ops_hv->rm_core[core].rm_state.in_host = 1;
core             4719 arch/powerpc/kvm/book3s_hv.c 	int cpu, core;
core             4744 arch/powerpc/kvm/book3s_hv.c 		core = cpu >> threads_shift;
core             4745 arch/powerpc/kvm/book3s_hv.c 		ops->rm_core[core].rm_state.in_host = 1;
core               85 arch/powerpc/kvm/book3s_hv_rm_xics.c 	int core;
core               88 arch/powerpc/kvm/book3s_hv_rm_xics.c 	for (core = start + 1; core < max; core++)  {
core               89 arch/powerpc/kvm/book3s_hv_rm_xics.c 		old = new = READ_ONCE(rm_core[core].rm_state);
core               97 arch/powerpc/kvm/book3s_hv_rm_xics.c 		success = cmpxchg64(&rm_core[core].rm_state.raw,
core              107 arch/powerpc/kvm/book3s_hv_rm_xics.c 			return core;
core              116 arch/powerpc/kvm/book3s_hv_rm_xics.c 	int core;
core              120 arch/powerpc/kvm/book3s_hv_rm_xics.c 	core = grab_next_hostcore(my_core, rm_core, cpu_nr_cores(), action);
core              121 arch/powerpc/kvm/book3s_hv_rm_xics.c 	if (core == -1)
core              122 arch/powerpc/kvm/book3s_hv_rm_xics.c 		core = grab_next_hostcore(core, rm_core, my_core, action);
core              124 arch/powerpc/kvm/book3s_hv_rm_xics.c 	return core;
core              919 arch/powerpc/kvm/book3s_hv_rm_xics.c 	int core;
core              923 arch/powerpc/kvm/book3s_hv_rm_xics.c 	core = cpu >> threads_shift;
core              924 arch/powerpc/kvm/book3s_hv_rm_xics.c 	rm_corep = &kvmppc_host_rm_ops_hv->rm_core[core];
core               25 arch/powerpc/perf/hv-24x7-domains.h DOMAIN(PHYS_CORE, 0x02, core, true)
core              123 arch/powerpc/perf/hv-24x7.c EVENT_DEFINE_RANGE_FORMAT(core, config, 16, 31);
core              350 arch/powerpc/platforms/ps3/system-bus.c 			dev->match_id, dev->match_sub_id, dev_name(&dev->core),
core              351 arch/powerpc/platforms/ps3/system-bus.c 			drv->match_id, drv->match_sub_id, drv->core.name);
core              355 arch/powerpc/platforms/ps3/system-bus.c 			dev->match_id, dev->match_sub_id, dev_name(&dev->core),
core              356 arch/powerpc/platforms/ps3/system-bus.c 			drv->match_id, drv->match_sub_id, drv->core.name);
core              377 arch/powerpc/platforms/ps3/system-bus.c 			dev_name(&dev->core));
core              379 arch/powerpc/platforms/ps3/system-bus.c 	pr_debug(" <- %s:%d: %s\n", __func__, __LINE__, dev_name(&dev->core));
core              398 arch/powerpc/platforms/ps3/system-bus.c 		dev_dbg(&dev->core, "%s:%d %s: no remove method\n",
core              399 arch/powerpc/platforms/ps3/system-bus.c 			__func__, __LINE__, drv->core.name);
core              401 arch/powerpc/platforms/ps3/system-bus.c 	pr_debug(" <- %s:%d: %s\n", __func__, __LINE__, dev_name(&dev->core));
core              412 arch/powerpc/platforms/ps3/system-bus.c 	dev_dbg(&dev->core, " -> %s:%d: match_id %d\n", __func__, __LINE__,
core              415 arch/powerpc/platforms/ps3/system-bus.c 	if (!dev->core.driver) {
core              416 arch/powerpc/platforms/ps3/system-bus.c 		dev_dbg(&dev->core, "%s:%d: no driver bound\n", __func__,
core              425 arch/powerpc/platforms/ps3/system-bus.c 	dev_dbg(&dev->core, "%s:%d: %s -> %s\n", __func__, __LINE__,
core              426 arch/powerpc/platforms/ps3/system-bus.c 		dev_name(&dev->core), drv->core.name);
core              431 arch/powerpc/platforms/ps3/system-bus.c 		dev_dbg(&dev->core, "%s:%d %s: no shutdown, calling remove\n",
core              432 arch/powerpc/platforms/ps3/system-bus.c 			__func__, __LINE__, drv->core.name);
core              435 arch/powerpc/platforms/ps3/system-bus.c 		dev_dbg(&dev->core, "%s:%d %s: no shutdown method\n",
core              436 arch/powerpc/platforms/ps3/system-bus.c 			__func__, __LINE__, drv->core.name);
core              440 arch/powerpc/platforms/ps3/system-bus.c 	dev_dbg(&dev->core, " <- %s:%d\n", __func__, __LINE__);
core              739 arch/powerpc/platforms/ps3/system-bus.c 	if (!dev->core.parent)
core              740 arch/powerpc/platforms/ps3/system-bus.c 		dev->core.parent = &ps3_system_bus;
core              741 arch/powerpc/platforms/ps3/system-bus.c 	dev->core.bus = &ps3_system_bus_type;
core              742 arch/powerpc/platforms/ps3/system-bus.c 	dev->core.release = ps3_system_bus_release_device;
core              746 arch/powerpc/platforms/ps3/system-bus.c 		dev->core.dma_ops = &ps3_ioc0_dma_ops;
core              747 arch/powerpc/platforms/ps3/system-bus.c 		dev_set_name(&dev->core, "ioc0_%02x", ++dev_ioc0_count);
core              750 arch/powerpc/platforms/ps3/system-bus.c 		dev->core.dma_ops = &ps3_sb_dma_ops;
core              751 arch/powerpc/platforms/ps3/system-bus.c 		dev_set_name(&dev->core, "sb_%02x", ++dev_sb_count);
core              755 arch/powerpc/platforms/ps3/system-bus.c 		dev_set_name(&dev->core, "vuart_%02x", ++dev_vuart_count);
core              758 arch/powerpc/platforms/ps3/system-bus.c 		dev_set_name(&dev->core, "lpm_%02x", ++dev_lpm_count);
core              764 arch/powerpc/platforms/ps3/system-bus.c 	dev->core.of_node = NULL;
core              765 arch/powerpc/platforms/ps3/system-bus.c 	set_dev_node(&dev->core, 0);
core              767 arch/powerpc/platforms/ps3/system-bus.c 	pr_debug("%s:%d add %s\n", __func__, __LINE__, dev_name(&dev->core));
core              769 arch/powerpc/platforms/ps3/system-bus.c 	result = device_register(&dev->core);
core              779 arch/powerpc/platforms/ps3/system-bus.c 	pr_debug(" -> %s:%d: %s\n", __func__, __LINE__, drv->core.name);
core              784 arch/powerpc/platforms/ps3/system-bus.c 	drv->core.bus = &ps3_system_bus_type;
core              786 arch/powerpc/platforms/ps3/system-bus.c 	result = driver_register(&drv->core);
core              787 arch/powerpc/platforms/ps3/system-bus.c 	pr_debug(" <- %s:%d: %s\n", __func__, __LINE__, drv->core.name);
core              795 arch/powerpc/platforms/ps3/system-bus.c 	pr_debug(" -> %s:%d: %s\n", __func__, __LINE__, drv->core.name);
core              796 arch/powerpc/platforms/ps3/system-bus.c 	driver_unregister(&drv->core);
core              797 arch/powerpc/platforms/ps3/system-bus.c 	pr_debug(" <- %s:%d: %s\n", __func__, __LINE__, drv->core.name);
core               57 arch/s390/include/asm/sclp.h 	struct sclp_core_entry core[SCLP_MAX_CORES];
core              123 arch/s390/include/asm/sclp.h int sclp_core_configure(u8 core);
core              124 arch/s390/include/asm/sclp.h int sclp_core_deconfigure(u8 core);
core              722 arch/s390/kernel/smp.c 			info->core[info->configured].core_id =
core              732 arch/s390/kernel/smp.c static int smp_add_core(struct sclp_core_entry *core, cpumask_t *avail,
core              740 arch/s390/kernel/smp.c 	if (sclp.has_core_type && core->type != boot_core_type)
core              743 arch/s390/kernel/smp.c 	address = core->core_id << smp_cpu_mt_shift;
core              767 arch/s390/kernel/smp.c 	struct sclp_core_entry *core;
core              782 arch/s390/kernel/smp.c 			core = &info->core[i];
core              783 arch/s390/kernel/smp.c 			if (core->core_id == core_id) {
core              784 arch/s390/kernel/smp.c 				nr += smp_add_core(core, &avail, true, early);
core              791 arch/s390/kernel/smp.c 		nr += smp_add_core(&info->core[i], &avail, configured, early);
core              812 arch/s390/kernel/smp.c 			if (info->core[cpu].core_id == address) {
core              814 arch/s390/kernel/smp.c 				boot_core_type = info->core[cpu].type;
core              830 arch/s390/kernel/smp.c 		    info->core[cpu].type != boot_core_type)
core              120 arch/s390/kernel/topology.c 	unsigned int core;
core              122 arch/s390/kernel/topology.c 	for_each_set_bit(core, &tl_core->mask, TOPOLOGY_CORE_BITS) {
core              126 arch/s390/kernel/topology.c 		rcore = TOPOLOGY_CORE_BITS - 1 - core + tl_core->origin;
core               94 arch/s390/numa/mode_emu.c static int core_pinned_to_node_id(struct toptree *core)
core               96 arch/s390/numa/mode_emu.c 	return emu_cores->to_node_id[core->id];
core              104 arch/s390/numa/mode_emu.c 	struct toptree *core;
core              107 arch/s390/numa/mode_emu.c 	toptree_for_each(core, tree, CORE) {
core              108 arch/s390/numa/mode_emu.c 		if (core_pinned_to_node_id(core) == NODE_ID_FREE)
core              117 arch/s390/numa/mode_emu.c static struct toptree *core_node(struct toptree *core)
core              119 arch/s390/numa/mode_emu.c 	return core->parent->parent->parent->parent;
core              125 arch/s390/numa/mode_emu.c static struct toptree *core_drawer(struct toptree *core)
core              127 arch/s390/numa/mode_emu.c 	return core->parent->parent->parent;
core              133 arch/s390/numa/mode_emu.c static struct toptree *core_book(struct toptree *core)
core              135 arch/s390/numa/mode_emu.c 	return core->parent->parent;
core              141 arch/s390/numa/mode_emu.c static struct toptree *core_mc(struct toptree *core)
core              143 arch/s390/numa/mode_emu.c 	return core->parent;
core              164 arch/s390/numa/mode_emu.c static int dist_node_to_core(struct toptree *node, struct toptree *core)
core              170 arch/s390/numa/mode_emu.c 		dist_min = min(dist_min, dist_core_to_core(core_node, core));
core              190 arch/s390/numa/mode_emu.c static struct toptree *node_for_core(struct toptree *numa, struct toptree *core,
core              201 arch/s390/numa/mode_emu.c 		if (core_pinned_to_node_id(core) == node->id) {
core              208 arch/s390/numa/mode_emu.c 		dist_cur = dist_node_to_core(node, core);
core              223 arch/s390/numa/mode_emu.c 	struct toptree *node, *core, *tmp;
core              225 arch/s390/numa/mode_emu.c 	toptree_for_each_safe(core, tmp, phys, CORE) {
core              226 arch/s390/numa/mode_emu.c 		node = node_for_core(numa, core, extra);
core              229 arch/s390/numa/mode_emu.c 		toptree_move(core, node);
core              230 arch/s390/numa/mode_emu.c 		pin_core_to_node(core->id, node->id);
core              274 arch/s390/numa/mode_emu.c 	struct toptree *core;
core              284 arch/s390/numa/mode_emu.c 	toptree_for_each(core, numa, CORE)
core              285 arch/s390/numa/mode_emu.c 		pin_core_to_node(core->id, core_node(core)->id);
core              353 arch/s390/numa/mode_emu.c 	struct toptree *phys, *node, *drawer, *book, *mc, *core;
core              365 arch/s390/numa/mode_emu.c 		core = toptree_get_child(mc, smp_get_base_cpu(cpu));
core              366 arch/s390/numa/mode_emu.c 		if (!drawer || !book || !mc || !core)
core              368 arch/s390/numa/mode_emu.c 		cpumask_set_cpu(cpu, &core->mask);
core              377 arch/s390/numa/mode_emu.c static void topology_add_core(struct toptree *core)
core              382 arch/s390/numa/mode_emu.c 	for_each_cpu(cpu, &core->mask) {
core              384 arch/s390/numa/mode_emu.c 		cpumask_copy(&top->thread_mask, &core->mask);
core              385 arch/s390/numa/mode_emu.c 		cpumask_copy(&top->core_mask, &core_mc(core)->mask);
core              386 arch/s390/numa/mode_emu.c 		cpumask_copy(&top->book_mask, &core_book(core)->mask);
core              387 arch/s390/numa/mode_emu.c 		cpumask_copy(&top->drawer_mask, &core_drawer(core)->mask);
core              388 arch/s390/numa/mode_emu.c 		cpumask_set_cpu(cpu, &node_to_cpumask_map[core_node(core)->id]);
core              389 arch/s390/numa/mode_emu.c 		top->node_id = core_node(core)->id;
core              398 arch/s390/numa/mode_emu.c 	struct toptree *core;
core              406 arch/s390/numa/mode_emu.c 	toptree_for_each(core, numa, CORE)
core              407 arch/s390/numa/mode_emu.c 		topology_add_core(core);
core              244 crypto/drbg.c  	unsigned short entropylen = drbg_sec_strength(drbg->core->flags);
core             1074 crypto/drbg.c  	unsigned int entropylen = drbg_sec_strength(drbg->core->flags);
core             1126 crypto/drbg.c  	unsigned int entropylen = drbg_sec_strength(drbg->core->flags);
core             1219 crypto/drbg.c  	drbg->core = NULL;
core             1236 crypto/drbg.c  	switch (drbg->core->flags & DRBG_TYPE_MASK) {
core             1274 crypto/drbg.c  	if (drbg->core->flags & DRBG_HMAC)
core             1276 crypto/drbg.c  	else if (drbg->core->flags & DRBG_CTR)
core             1295 crypto/drbg.c  		drbg->prev = kzalloc(drbg_sec_strength(drbg->core->flags),
core             1340 crypto/drbg.c  	if (!drbg->core) {
core             1420 crypto/drbg.c  		if (drbg->core->flags & DRBG_HMAC)
core             1423 crypto/drbg.c  		else if (drbg->core->flags & DRBG_CTR)
core             1565 crypto/drbg.c  	if (!drbg->core) {
core             1566 crypto/drbg.c  		drbg->core = &drbg_cores[coreref];
core             1665 crypto/drbg.c  	tfm = crypto_alloc_shash(drbg->core->backend_cra_name, 0, 0);
core             1668 crypto/drbg.c  				drbg->core->backend_cra_name);
core             1748 crypto/drbg.c  	tfm = crypto_alloc_cipher(drbg->core->backend_cra_name, 0, 0);
core             1751 crypto/drbg.c  				drbg->core->backend_cra_name);
core             1758 crypto/drbg.c  	    drbg->core->backend_cra_name) >= CRYPTO_MAX_ALG_NAME) {
core             2015 crypto/drbg.c  	drbg->core = &drbg_cores[coreref];
core             2057 crypto/drbg.c  					  const struct drbg_core *core, int pr)
core             2070 crypto/drbg.c  	memcpy(alg->base.cra_driver_name + pos, core->cra_name,
core             2071 crypto/drbg.c  	       strlen(core->cra_name));
core              270 drivers/base/arch_topology.c static int __init parse_core(struct device_node *core, int package_id,
core              281 drivers/base/arch_topology.c 		t = of_get_child_by_name(core, name);
core              300 drivers/base/arch_topology.c 	cpu = get_cpu_for_node(core);
core              304 drivers/base/arch_topology.c 			       core);
core              311 drivers/base/arch_topology.c 		pr_err("%pOF: Can't get CPU for leaf core\n", core);
core               16 drivers/base/regmap/regmap-spi.c 	struct regmap_async core;
core               25 drivers/base/regmap/regmap-spi.c 	regmap_async_complete_cb(&async->core, async->m.status);
core               60 drivers/base/regmap/regmap-spi.c 						      core);
core               88 drivers/base/regmap/regmap-spi.c 	return &async_spi->core;
core               24 drivers/bcma/bcma_private.h bool bcma_wait_value(struct bcma_device *core, u16 reg, u32 mask, u32 value,
core               26 drivers/bcma/bcma_private.h void bcma_prepare_core(struct bcma_bus *bus, struct bcma_device *core);
core               72 drivers/bcma/bcma_private.h 	bcma_err(cc->core->bus, "Parallel flash not supported\n");
core               84 drivers/bcma/bcma_private.h 	bcma_err(cc->core->bus, "Serial flash not supported\n");
core               96 drivers/bcma/bcma_private.h 	bcma_err(cc->core->bus, "NAND flash not supported\n");
core              131 drivers/bcma/bcma_private.h 	WARN_ON(pc->core->bus->hosttype == BCMA_HOSTTYPE_PCI);
core              136 drivers/bcma/bcma_private.h 	WARN_ON(pc->core->bus->hosttype == BCMA_HOSTTYPE_PCI);
core              148 drivers/bcma/bcma_private.h 	WARN_ON(pcie2->core->bus->hosttype == BCMA_HOSTTYPE_PCI);
core               12 drivers/bcma/core.c static bool bcma_core_wait_value(struct bcma_device *core, u16 reg, u32 mask,
core               19 drivers/bcma/core.c 		val = bcma_aread32(core, reg);
core               26 drivers/bcma/core.c 	bcma_warn(core->bus, "Timeout waiting for register 0x%04X!\n", reg);
core               31 drivers/bcma/core.c bool bcma_core_is_enabled(struct bcma_device *core)
core               33 drivers/bcma/core.c 	if ((bcma_aread32(core, BCMA_IOCTL) & (BCMA_IOCTL_CLK | BCMA_IOCTL_FGC))
core               36 drivers/bcma/core.c 	if (bcma_aread32(core, BCMA_RESET_CTL) & BCMA_RESET_CTL_RESET)
core               42 drivers/bcma/core.c void bcma_core_disable(struct bcma_device *core, u32 flags)
core               44 drivers/bcma/core.c 	if (bcma_aread32(core, BCMA_RESET_CTL) & BCMA_RESET_CTL_RESET)
core               47 drivers/bcma/core.c 	bcma_core_wait_value(core, BCMA_RESET_ST, ~0, 0, 300);
core               49 drivers/bcma/core.c 	bcma_awrite32(core, BCMA_RESET_CTL, BCMA_RESET_CTL_RESET);
core               50 drivers/bcma/core.c 	bcma_aread32(core, BCMA_RESET_CTL);
core               53 drivers/bcma/core.c 	bcma_awrite32(core, BCMA_IOCTL, flags);
core               54 drivers/bcma/core.c 	bcma_aread32(core, BCMA_IOCTL);
core               59 drivers/bcma/core.c int bcma_core_enable(struct bcma_device *core, u32 flags)
core               61 drivers/bcma/core.c 	bcma_core_disable(core, flags);
core               63 drivers/bcma/core.c 	bcma_awrite32(core, BCMA_IOCTL, (BCMA_IOCTL_CLK | BCMA_IOCTL_FGC | flags));
core               64 drivers/bcma/core.c 	bcma_aread32(core, BCMA_IOCTL);
core               66 drivers/bcma/core.c 	bcma_awrite32(core, BCMA_RESET_CTL, 0);
core               67 drivers/bcma/core.c 	bcma_aread32(core, BCMA_RESET_CTL);
core               70 drivers/bcma/core.c 	bcma_awrite32(core, BCMA_IOCTL, (BCMA_IOCTL_CLK | flags));
core               71 drivers/bcma/core.c 	bcma_aread32(core, BCMA_IOCTL);
core               78 drivers/bcma/core.c void bcma_core_set_clockmode(struct bcma_device *core,
core               83 drivers/bcma/core.c 	WARN_ON(core->id.id != BCMA_CORE_CHIPCOMMON &&
core               84 drivers/bcma/core.c 		core->id.id != BCMA_CORE_PCIE &&
core               85 drivers/bcma/core.c 		core->id.id != BCMA_CORE_80211);
core               89 drivers/bcma/core.c 		bcma_set32(core, BCMA_CLKCTLST, BCMA_CLKCTLST_FORCEHT);
core               92 drivers/bcma/core.c 			if (bcma_read32(core, BCMA_CLKCTLST) &
core              100 drivers/bcma/core.c 			bcma_err(core->bus, "HT force timeout\n");
core              103 drivers/bcma/core.c 		bcma_set32(core, BCMA_CLKCTLST, ~BCMA_CLKCTLST_FORCEHT);
core              109 drivers/bcma/core.c void bcma_core_pll_ctl(struct bcma_device *core, u32 req, u32 status, bool on)
core              117 drivers/bcma/core.c 		bcma_set32(core, BCMA_CLKCTLST, req);
core              119 drivers/bcma/core.c 			if ((bcma_read32(core, BCMA_CLKCTLST) & status) ==
core              127 drivers/bcma/core.c 			bcma_err(core->bus, "PLL enable timeout\n");
core              134 drivers/bcma/core.c 		bcma_mask32(core, BCMA_CLKCTLST, ~req);
core              135 drivers/bcma/core.c 		bcma_read32(core, BCMA_CLKCTLST);
core              140 drivers/bcma/core.c u32 bcma_core_dma_translation(struct bcma_device *core)
core              142 drivers/bcma/core.c 	switch (core->bus->hosttype) {
core              146 drivers/bcma/core.c 		if (bcma_aread32(core, BCMA_IOST) & BCMA_IOST_DMA64)
core              151 drivers/bcma/core.c 		bcma_err(core->bus, "DMA translation unknown for host %d\n",
core              152 drivers/bcma/core.c 			 core->bus->hosttype);
core               39 drivers/bcma/driver_chipcommon.c 	struct bcma_bus *bus = cc->core->bus;
core               58 drivers/bcma/driver_chipcommon.c 	struct bcma_bus *bus = cc->core->bus;
core               64 drivers/bcma/driver_chipcommon.c 		else if (cc->core->id.rev < 26)
core               67 drivers/bcma/driver_chipcommon.c 			nb = (cc->core->id.rev >= 37) ? 32 : 24;
core               97 drivers/bcma/driver_chipcommon.c 	struct bcma_bus *bus = cc->core->bus;
core              115 drivers/bcma/driver_chipcommon.c 	struct bcma_bus *bus = cc->core->bus;
core              144 drivers/bcma/driver_chipcommon.c 	struct bcma_bus *bus = cc->core->bus;
core              160 drivers/bcma/driver_chipcommon.c 	if (cc->core->id.rev == 38 ||
core              171 drivers/bcma/driver_chipcommon.c 	struct bcma_bus *bus = cc->core->bus;
core              178 drivers/bcma/driver_chipcommon.c 	if (cc->core->id.rev >= 11)
core              181 drivers/bcma/driver_chipcommon.c 	if (cc->core->id.rev >= 35)
core              203 drivers/bcma/driver_chipcommon.c 	if (cc->core->id.rev >= 20) {
core              206 drivers/bcma/driver_chipcommon.c 		if (cc->core->bus->chipinfo.id == BCMA_CHIP_ID_BCM43142) {
core              218 drivers/bcma/driver_chipcommon.c 		bcma_err(cc->core->bus, "Power control not implemented!\n");
core              220 drivers/bcma/driver_chipcommon.c 	if (cc->core->id.rev >= 16) {
core              221 drivers/bcma/driver_chipcommon.c 		if (cc->core->bus->sprom.leddc_on_time &&
core              222 drivers/bcma/driver_chipcommon.c 		    cc->core->bus->sprom.leddc_off_time) {
core              223 drivers/bcma/driver_chipcommon.c 			leddc_on = cc->core->bus->sprom.leddc_on_time;
core              224 drivers/bcma/driver_chipcommon.c 			leddc_off = cc->core->bus->sprom.leddc_off_time;
core              248 drivers/bcma/driver_chipcommon.c 		struct bcma_bus *bus = cc->core->bus;
core              253 drivers/bcma/driver_chipcommon.c 			bcma_core_set_clockmode(cc->core,
core              351 drivers/bcma/driver_chipcommon.c 	if (cc->core->id.rev < 20)
core              366 drivers/bcma/driver_chipcommon.c 	if (cc->core->id.rev < 20)
core              382 drivers/bcma/driver_chipcommon.c 	unsigned int ccrev = cc->core->id.rev;
core              404 drivers/bcma/driver_chipcommon.c 		bcma_err(cc->core->bus, "serial not supported on this device ccrev: 0x%x\n",
core              409 drivers/bcma/driver_chipcommon.c 	irq = bcma_core_irq(cc->core, 0);
core              414 drivers/bcma/driver_chipcommon.c 		ports[i].regs = cc->core->io_addr + BCMA_CC_UART0_DATA +
core               35 drivers/bcma/driver_chipcommon_b.c 	struct bcma_bus *bus = ccb->core->bus;
core               51 drivers/bcma/driver_chipcommon_b.c 	ccb->mii = ioremap_nocache(ccb->core->addr_s[1], BCMA_CORE_SIZE);
core               21 drivers/bcma/driver_chipcommon_nflash.c 	struct bcma_bus *bus = cc->core->bus;
core               24 drivers/bcma/driver_chipcommon_nflash.c 	    cc->core->id.rev != 38) {
core               35 drivers/bcma/driver_chipcommon_nflash.c 	if (cc->core->id.rev == 38 &&
core               40 drivers/bcma/driver_chipcommon_pflash.c 	if (!(bcma_read32(cc->core, BCMA_CC_FLASH_CFG) & BCMA_CC_FLASH_CFG_DS))
core               82 drivers/bcma/driver_chipcommon_pmu.c 	struct bcma_bus *bus = cc->core->bus;
core              132 drivers/bcma/driver_chipcommon_pmu.c 		bcma_wait_value(cc->core, BCMA_CLKCTLST,
core              150 drivers/bcma/driver_chipcommon_pmu.c 	struct bcma_bus *bus = cc->core->bus;
core              164 drivers/bcma/driver_chipcommon_pmu.c 	struct bcma_bus *bus = cc->core->bus;
core              212 drivers/bcma/driver_chipcommon_pmu.c 	struct bcma_bus *bus = cc->core->bus;
core              232 drivers/bcma/driver_chipcommon_pmu.c 	struct bcma_bus *bus = cc->core->bus;
core              272 drivers/bcma/driver_chipcommon_pmu.c 	struct bcma_bus *bus = cc->core->bus;
core              275 drivers/bcma/driver_chipcommon_pmu.c 	if (cc->core->id.rev >= 35 &&
core              277 drivers/bcma/driver_chipcommon_pmu.c 		cc->pmu.core = bcma_find_core(bus, BCMA_CORE_PMU);
core              278 drivers/bcma/driver_chipcommon_pmu.c 		if (!cc->pmu.core)
core              281 drivers/bcma/driver_chipcommon_pmu.c 	if (!cc->pmu.core)
core              282 drivers/bcma/driver_chipcommon_pmu.c 		cc->pmu.core = cc->core;
core              307 drivers/bcma/driver_chipcommon_pmu.c 	struct bcma_bus *bus = cc->core->bus;
core              352 drivers/bcma/driver_chipcommon_pmu.c 	struct bcma_bus *bus = cc->core->bus;
core              418 drivers/bcma/driver_chipcommon_pmu.c 	struct bcma_bus *bus = cc->core->bus;
core              450 drivers/bcma/driver_chipcommon_pmu.c 	struct bcma_bus *bus = cc->core->bus;
core              495 drivers/bcma/driver_chipcommon_pmu.c 	struct bcma_bus *bus = cc->core->bus;
core               85 drivers/bcma/driver_chipcommon_sflash.c 	bcma_err(cc->core->bus, "SFLASH control command failed (timeout)!\n");
core               91 drivers/bcma/driver_chipcommon_sflash.c 	struct bcma_bus *bus = cc->core->bus;
core              127 drivers/bcma/driver_gpio.c 	if (cc->core->bus->hosttype != BCMA_HOSTTYPE_SOC)
core              130 drivers/bcma/driver_gpio.c 	hwirq = bcma_core_irq(cc->core, 0);
core              154 drivers/bcma/driver_gpio.c 	if (cc->core->bus->hosttype != BCMA_HOSTTYPE_SOC)
core              158 drivers/bcma/driver_gpio.c 	free_irq(bcma_core_irq(cc->core, 0), cc);
core              173 drivers/bcma/driver_gpio.c 	struct bcma_bus *bus = cc->core->bus;
core              188 drivers/bcma/driver_gpio.c 	chip->of_node		= cc->core->dev.of_node;
core              210 drivers/bcma/driver_gpio.c 	    cc->core->bus->hosttype == BCMA_HOSTTYPE_SOC)
core               52 drivers/bcma/driver_mips.c 	return bcma_read32(mcore->core, offset);
core               59 drivers/bcma/driver_mips.c 	bcma_write32(mcore->core, offset, value);
core               85 drivers/bcma/driver_mips.c 	struct bcma_device *mdev = dev->bus->drv_mips.core;
core              105 drivers/bcma/driver_mips.c 	struct bcma_device *mdev = bus->drv_mips.core;
core              130 drivers/bcma/driver_mips.c 			struct bcma_device *core;
core              135 drivers/bcma/driver_mips.c 			list_for_each_entry(core, &bus->cores, list) {
core              136 drivers/bcma/driver_mips.c 				if ((1 << bcma_core_mips_irqflag(core)) ==
core              138 drivers/bcma/driver_mips.c 					bcma_core_mips_set_irq(core, 0);
core              154 drivers/bcma/driver_mips.c 	struct bcma_device *core;
core              156 drivers/bcma/driver_mips.c 	core = bcma_find_core_unit(bus, coreid, unit);
core              157 drivers/bcma/driver_mips.c 	if (!core) {
core              164 drivers/bcma/driver_mips.c 	bcma_core_mips_set_irq(core, irq);
core              183 drivers/bcma/driver_mips.c 	struct bcma_device *core;
core              185 drivers/bcma/driver_mips.c 	list_for_each_entry(core, &bus->cores, list) {
core              186 drivers/bcma/driver_mips.c 		bcma_core_mips_print_irq(core, bcma_core_mips_irq(core));
core              192 drivers/bcma/driver_mips.c 	struct bcma_bus *bus = mcore->core->bus;
core              205 drivers/bcma/driver_mips.c 	u8 cc_rev = cc->core->id.rev;
core              208 drivers/bcma/driver_mips.c 		struct bcma_device *core;
core              210 drivers/bcma/driver_mips.c 		core = bcma_find_core(bus, BCMA_CORE_NS_ROM);
core              211 drivers/bcma/driver_mips.c 		if (core) {
core              212 drivers/bcma/driver_mips.c 			switch (bcma_aread32(core, BCMA_IOST) &
core              243 drivers/bcma/driver_mips.c 	struct bcma_bus *bus = mcore->core->bus;
core              269 drivers/bcma/driver_mips.c 	struct bcma_bus *bus = mcore->core->bus;
core              309 drivers/bcma/driver_mips.c 	struct bcma_device *core;
core              310 drivers/bcma/driver_mips.c 	bus = mcore->core->bus;
core              356 drivers/bcma/driver_mips.c 		list_for_each_entry(core, &bus->cores, list) {
core              357 drivers/bcma/driver_mips.c 			core->irq = bcma_core_irq(core, 0);
core               70 drivers/bcma/driver_pci.c 	if (pc->core->id.rev >= 10) {
core              113 drivers/bcma/driver_pci.c 	if (pc->core->id.rev >= 10) {
core              153 drivers/bcma/driver_pci.c 	struct bcma_device *core = pc->core;
core              158 drivers/bcma/driver_pci.c 	core_index = (u16)core->core_index;
core              269 drivers/bcma/driver_pci.c 	if (pc->core->id.rev >= 15 && pc->core->id.rev <= 20) {
core              275 drivers/bcma/driver_pci.c 	} else if (pc->core->id.rev >= 21 && pc->core->id.rev <= 22) {
core               30 drivers/bcma/driver_pci_host.c 	struct bcma_bus *bus = pc->core->bus;
core               39 drivers/bcma/driver_pci_host.c 	bcma_core_enable(pc->core, 0);
core               41 drivers/bcma/driver_pci_host.c 	return !mips_busprobe32(tmp, pc->core->io_addr);
core              155 drivers/bcma/driver_pci_host.c 	u16 chipid = pc->core->bus->chipinfo.id;
core              342 drivers/bcma/driver_pci_host.c 	struct bcma_bus *bus = pc->core->bus;
core              389 drivers/bcma/driver_pci_host.c 	struct bcma_bus *bus = pc->core->bus;
core              456 drivers/bcma/driver_pci_host.c 		if (pc->core->core_unit == 0) {
core              465 drivers/bcma/driver_pci_host.c 		} else if (pc->core->core_unit == 1) {
core              597 drivers/bcma/driver_pci_host.c 	dev->irq = bcma_core_irq(pc_host->pdev->core, 0);
core              621 drivers/bcma/driver_pci_host.c 	return bcma_core_irq(pc_host->pdev->core, 0);
core               72 drivers/bcma/driver_pcie2.c 	u8 core_rev = pcie2->core->id.rev;
core              109 drivers/bcma/driver_pcie2.c 	u8 core_rev = pcie2->core->id.rev;
core              146 drivers/bcma/driver_pcie2.c 	struct bcma_drv_cc *drv_cc = &pcie2->core->bus->drv_cc;
core              147 drivers/bcma/driver_pcie2.c 	u8 core_rev = pcie2->core->id.rev;
core              161 drivers/bcma/driver_pcie2.c 	struct bcma_bus *bus = pcie2->core->bus;
core              194 drivers/bcma/driver_pcie2.c 	struct bcma_bus *bus = pcie2->core->bus;
core               14 drivers/bcma/host_pci.c static void bcma_host_pci_switch_core(struct bcma_device *core)
core               16 drivers/bcma/host_pci.c 	int win2 = core->bus->host_is_pcie2 ?
core               19 drivers/bcma/host_pci.c 	pci_write_config_dword(core->bus->host_pci, BCMA_PCI_BAR0_WIN,
core               20 drivers/bcma/host_pci.c 			       core->addr);
core               21 drivers/bcma/host_pci.c 	pci_write_config_dword(core->bus->host_pci, win2, core->wrap);
core               22 drivers/bcma/host_pci.c 	core->bus->mapped_core = core;
core               23 drivers/bcma/host_pci.c 	bcma_debug(core->bus, "Switched to core: 0x%X\n", core->id.id);
core               28 drivers/bcma/host_pci.c static u16 bcma_host_pci_provide_access_to_core(struct bcma_device *core)
core               30 drivers/bcma/host_pci.c 	switch (core->id.id) {
core               37 drivers/bcma/host_pci.c 	if (core->bus->mapped_core != core)
core               38 drivers/bcma/host_pci.c 		bcma_host_pci_switch_core(core);
core               42 drivers/bcma/host_pci.c static u8 bcma_host_pci_read8(struct bcma_device *core, u16 offset)
core               44 drivers/bcma/host_pci.c 	offset += bcma_host_pci_provide_access_to_core(core);
core               45 drivers/bcma/host_pci.c 	return ioread8(core->bus->mmio + offset);
core               48 drivers/bcma/host_pci.c static u16 bcma_host_pci_read16(struct bcma_device *core, u16 offset)
core               50 drivers/bcma/host_pci.c 	offset += bcma_host_pci_provide_access_to_core(core);
core               51 drivers/bcma/host_pci.c 	return ioread16(core->bus->mmio + offset);
core               54 drivers/bcma/host_pci.c static u32 bcma_host_pci_read32(struct bcma_device *core, u16 offset)
core               56 drivers/bcma/host_pci.c 	offset += bcma_host_pci_provide_access_to_core(core);
core               57 drivers/bcma/host_pci.c 	return ioread32(core->bus->mmio + offset);
core               60 drivers/bcma/host_pci.c static void bcma_host_pci_write8(struct bcma_device *core, u16 offset,
core               63 drivers/bcma/host_pci.c 	offset += bcma_host_pci_provide_access_to_core(core);
core               64 drivers/bcma/host_pci.c 	iowrite8(value, core->bus->mmio + offset);
core               67 drivers/bcma/host_pci.c static void bcma_host_pci_write16(struct bcma_device *core, u16 offset,
core               70 drivers/bcma/host_pci.c 	offset += bcma_host_pci_provide_access_to_core(core);
core               71 drivers/bcma/host_pci.c 	iowrite16(value, core->bus->mmio + offset);
core               74 drivers/bcma/host_pci.c static void bcma_host_pci_write32(struct bcma_device *core, u16 offset,
core               77 drivers/bcma/host_pci.c 	offset += bcma_host_pci_provide_access_to_core(core);
core               78 drivers/bcma/host_pci.c 	iowrite32(value, core->bus->mmio + offset);
core               82 drivers/bcma/host_pci.c static void bcma_host_pci_block_read(struct bcma_device *core, void *buffer,
core               85 drivers/bcma/host_pci.c 	void __iomem *addr = core->bus->mmio + offset;
core               86 drivers/bcma/host_pci.c 	if (core->bus->mapped_core != core)
core               87 drivers/bcma/host_pci.c 		bcma_host_pci_switch_core(core);
core              105 drivers/bcma/host_pci.c static void bcma_host_pci_block_write(struct bcma_device *core,
core              109 drivers/bcma/host_pci.c 	void __iomem *addr = core->bus->mmio + offset;
core              110 drivers/bcma/host_pci.c 	if (core->bus->mapped_core != core)
core              111 drivers/bcma/host_pci.c 		bcma_host_pci_switch_core(core);
core              130 drivers/bcma/host_pci.c static u32 bcma_host_pci_aread32(struct bcma_device *core, u16 offset)
core              132 drivers/bcma/host_pci.c 	if (core->bus->mapped_core != core)
core              133 drivers/bcma/host_pci.c 		bcma_host_pci_switch_core(core);
core              134 drivers/bcma/host_pci.c 	return ioread32(core->bus->mmio + (1 * BCMA_CORE_SIZE) + offset);
core              137 drivers/bcma/host_pci.c static void bcma_host_pci_awrite32(struct bcma_device *core, u16 offset,
core              140 drivers/bcma/host_pci.c 	if (core->bus->mapped_core != core)
core              141 drivers/bcma/host_pci.c 		bcma_host_pci_switch_core(core);
core              142 drivers/bcma/host_pci.c 	iowrite32(value, core->bus->mmio + (1 * BCMA_CORE_SIZE) + offset);
core              359 drivers/bcma/host_pci.c int bcma_host_pci_irq_ctl(struct bcma_bus *bus, struct bcma_device *core,
core              379 drivers/bcma/host_pci.c 	coremask = BIT(core->core_index) << 8;
core               16 drivers/bcma/host_soc.c static u8 bcma_host_soc_read8(struct bcma_device *core, u16 offset)
core               18 drivers/bcma/host_soc.c 	return readb(core->io_addr + offset);
core               21 drivers/bcma/host_soc.c static u16 bcma_host_soc_read16(struct bcma_device *core, u16 offset)
core               23 drivers/bcma/host_soc.c 	return readw(core->io_addr + offset);
core               26 drivers/bcma/host_soc.c static u32 bcma_host_soc_read32(struct bcma_device *core, u16 offset)
core               28 drivers/bcma/host_soc.c 	return readl(core->io_addr + offset);
core               31 drivers/bcma/host_soc.c static void bcma_host_soc_write8(struct bcma_device *core, u16 offset,
core               34 drivers/bcma/host_soc.c 	writeb(value, core->io_addr + offset);
core               37 drivers/bcma/host_soc.c static void bcma_host_soc_write16(struct bcma_device *core, u16 offset,
core               40 drivers/bcma/host_soc.c 	writew(value, core->io_addr + offset);
core               43 drivers/bcma/host_soc.c static void bcma_host_soc_write32(struct bcma_device *core, u16 offset,
core               46 drivers/bcma/host_soc.c 	writel(value, core->io_addr + offset);
core               50 drivers/bcma/host_soc.c static void bcma_host_soc_block_read(struct bcma_device *core, void *buffer,
core               53 drivers/bcma/host_soc.c 	void __iomem *addr = core->io_addr + offset;
core               93 drivers/bcma/host_soc.c static void bcma_host_soc_block_write(struct bcma_device *core,
core               97 drivers/bcma/host_soc.c 	void __iomem *addr = core->io_addr + offset;
core              138 drivers/bcma/host_soc.c static u32 bcma_host_soc_aread32(struct bcma_device *core, u16 offset)
core              140 drivers/bcma/host_soc.c 	if (WARN_ONCE(!core->io_wrap, "Accessed core has no wrapper/agent\n"))
core              142 drivers/bcma/host_soc.c 	return readl(core->io_wrap + offset);
core              145 drivers/bcma/host_soc.c static void bcma_host_soc_awrite32(struct bcma_device *core, u16 offset,
core              148 drivers/bcma/host_soc.c 	if (WARN_ONCE(!core->io_wrap, "Accessed core has no wrapper/agent\n"))
core              150 drivers/bcma/host_soc.c 	writel(value, core->io_wrap + offset);
core               35 drivers/bcma/main.c 	struct bcma_device *core = container_of(dev, struct bcma_device, dev);
core               36 drivers/bcma/main.c 	return sprintf(buf, "0x%03X\n", core->id.manuf);
core               42 drivers/bcma/main.c 	struct bcma_device *core = container_of(dev, struct bcma_device, dev);
core               43 drivers/bcma/main.c 	return sprintf(buf, "0x%03X\n", core->id.id);
core               49 drivers/bcma/main.c 	struct bcma_device *core = container_of(dev, struct bcma_device, dev);
core               50 drivers/bcma/main.c 	return sprintf(buf, "0x%02X\n", core->id.rev);
core               56 drivers/bcma/main.c 	struct bcma_device *core = container_of(dev, struct bcma_device, dev);
core               57 drivers/bcma/main.c 	return sprintf(buf, "0x%X\n", core->id.class);
core               89 drivers/bcma/main.c 	struct bcma_device *core;
core               91 drivers/bcma/main.c 	list_for_each_entry(core, &bus->cores, list) {
core               92 drivers/bcma/main.c 		if (core->id.id == coreid && core->core_unit == unit)
core               93 drivers/bcma/main.c 			return core;
core               99 drivers/bcma/main.c bool bcma_wait_value(struct bcma_device *core, u16 reg, u32 mask, u32 value,
core              106 drivers/bcma/main.c 		val = bcma_read32(core, reg);
core              113 drivers/bcma/main.c 	bcma_warn(core->bus, "Timeout waiting for register 0x%04X!\n", reg);
core              120 drivers/bcma/main.c 	struct bcma_device *core = container_of(dev, struct bcma_device, dev);
core              121 drivers/bcma/main.c 	if (core->io_addr)
core              122 drivers/bcma/main.c 		iounmap(core->io_addr);
core              123 drivers/bcma/main.c 	if (core->io_wrap)
core              124 drivers/bcma/main.c 		iounmap(core->io_wrap);
core              125 drivers/bcma/main.c 	kfree(core);
core              140 drivers/bcma/main.c 						     struct bcma_device *core)
core              153 drivers/bcma/main.c 		if (of_translate_address(node, reg) == core->addr)
core              160 drivers/bcma/main.c 			     struct bcma_device *core,
core              166 drivers/bcma/main.c 	if (core->dev.of_node) {
core              167 drivers/bcma/main.c 		rc = of_irq_parse_one(core->dev.of_node, num, out_irq);
core              176 drivers/bcma/main.c 	laddr[0] = cpu_to_be32(core->addr);
core              181 drivers/bcma/main.c 				    struct bcma_device *core, int num)
core              189 drivers/bcma/main.c 	ret = bcma_of_irq_parse(parent, core, &out_irq, num);
core              191 drivers/bcma/main.c 		bcma_debug(core->bus, "bcma_of_get_irq() failed with rc=%d\n",
core              200 drivers/bcma/main.c 				struct bcma_device *core)
core              204 drivers/bcma/main.c 	node = bcma_of_find_child_device(parent, core);
core              206 drivers/bcma/main.c 		core->dev.of_node = node;
core              208 drivers/bcma/main.c 	core->irq = bcma_of_get_irq(parent, core, 0);
core              210 drivers/bcma/main.c 	of_dma_configure(&core->dev, node, false);
core              213 drivers/bcma/main.c unsigned int bcma_core_irq(struct bcma_device *core, int num)
core              215 drivers/bcma/main.c 	struct bcma_bus *bus = core->bus;
core              222 drivers/bcma/main.c 		if (bus->drv_mips.core && num == 0) {
core              223 drivers/bcma/main.c 			mips_irq = bcma_core_mips_irq(core);
core              227 drivers/bcma/main.c 			return bcma_of_get_irq(bus->dev, core, num);
core              237 drivers/bcma/main.c void bcma_prepare_core(struct bcma_bus *bus, struct bcma_device *core)
core              239 drivers/bcma/main.c 	core->dev.release = bcma_release_core_dev;
core              240 drivers/bcma/main.c 	core->dev.bus = &bcma_bus_type;
core              241 drivers/bcma/main.c 	dev_set_name(&core->dev, "bcma%d:%d", bus->num, core->core_index);
core              242 drivers/bcma/main.c 	core->dev.parent = bus->dev;
core              244 drivers/bcma/main.c 		bcma_of_fill_device(bus->dev, core);
core              248 drivers/bcma/main.c 		core->dma_dev = bus->dev;
core              249 drivers/bcma/main.c 		core->irq = bus->host_pci->irq;
core              253 drivers/bcma/main.c 			core->dma_dev = bus->dev;
core              255 drivers/bcma/main.c 			core->dev.dma_mask = &core->dev.coherent_dma_mask;
core              256 drivers/bcma/main.c 			core->dma_dev = &core->dev;
core              276 drivers/bcma/main.c static void bcma_register_core(struct bcma_bus *bus, struct bcma_device *core)
core              280 drivers/bcma/main.c 	err = device_register(&core->dev);
core              283 drivers/bcma/main.c 			 core->id.id);
core              284 drivers/bcma/main.c 		put_device(&core->dev);
core              287 drivers/bcma/main.c 	core->dev_registered = true;
core              292 drivers/bcma/main.c 	struct bcma_device *core;
core              295 drivers/bcma/main.c 	list_for_each_entry(core, &bus->cores, list) {
core              297 drivers/bcma/main.c 		switch (core->id.id) {
core              310 drivers/bcma/main.c 		if (bcma_is_core_needed_early(core->id.id))
core              314 drivers/bcma/main.c 		if (core->id.id == BCMA_CORE_4706_MAC_GBIT &&
core              315 drivers/bcma/main.c 		    core->core_unit > 0)
core              318 drivers/bcma/main.c 		bcma_register_core(bus, core);
core              361 drivers/bcma/main.c 	struct bcma_device *core, *tmp;
core              363 drivers/bcma/main.c 	list_for_each_entry_safe(core, tmp, &bus->cores, list) {
core              364 drivers/bcma/main.c 		if (!core->dev_registered)
core              366 drivers/bcma/main.c 		list_del(&core->list);
core              367 drivers/bcma/main.c 		device_unregister(&core->dev);
core              373 drivers/bcma/main.c 	list_for_each_entry_safe(core, tmp, &bus->cores, list) {
core              374 drivers/bcma/main.c 		list_del(&core->list);
core              375 drivers/bcma/main.c 		kfree(core);
core              382 drivers/bcma/main.c 	struct bcma_device *core;
core              392 drivers/bcma/main.c 	core = bcma_find_core(bus, bcma_cc_core_id(bus));
core              393 drivers/bcma/main.c 	if (core) {
core              394 drivers/bcma/main.c 		bus->drv_cc.core = core;
core              399 drivers/bcma/main.c 	core = bcma_find_core(bus, BCMA_CORE_PCIE);
core              400 drivers/bcma/main.c 	if (core) {
core              401 drivers/bcma/main.c 		bus->drv_pci[0].core = core;
core              409 drivers/bcma/main.c 	list_for_each_entry(core, &bus->cores, list) {
core              410 drivers/bcma/main.c 		if (bcma_is_core_needed_early(core->id.id))
core              411 drivers/bcma/main.c 			bcma_register_core(bus, core);
core              422 drivers/bcma/main.c 	core = bcma_find_core(bus, bcma_cc_core_id(bus));
core              423 drivers/bcma/main.c 	if (core) {
core              424 drivers/bcma/main.c 		bus->drv_cc.core = core;
core              429 drivers/bcma/main.c 	core = bcma_find_core(bus, BCMA_CORE_NS_CHIPCOMMON_B);
core              430 drivers/bcma/main.c 	if (core) {
core              431 drivers/bcma/main.c 		bus->drv_cc_b.core = core;
core              436 drivers/bcma/main.c 	core = bcma_find_core(bus, BCMA_CORE_MIPS_74K);
core              437 drivers/bcma/main.c 	if (core) {
core              438 drivers/bcma/main.c 		bus->drv_mips.core = core;
core              443 drivers/bcma/main.c 	core = bcma_find_core_unit(bus, BCMA_CORE_PCIE, 0);
core              444 drivers/bcma/main.c 	if (core) {
core              445 drivers/bcma/main.c 		bus->drv_pci[0].core = core;
core              450 drivers/bcma/main.c 	core = bcma_find_core_unit(bus, BCMA_CORE_PCIE, 1);
core              451 drivers/bcma/main.c 	if (core) {
core              452 drivers/bcma/main.c 		bus->drv_pci[1].core = core;
core              457 drivers/bcma/main.c 	core = bcma_find_core_unit(bus, BCMA_CORE_PCIE2, 0);
core              458 drivers/bcma/main.c 	if (core) {
core              459 drivers/bcma/main.c 		bus->drv_pcie2.core = core;
core              464 drivers/bcma/main.c 	core = bcma_find_core(bus, BCMA_CORE_4706_MAC_GBIT_COMMON);
core              465 drivers/bcma/main.c 	if (core) {
core              466 drivers/bcma/main.c 		bus->drv_gmac_cmn.core = core;
core              501 drivers/bcma/main.c 	struct bcma_device *core;
core              511 drivers/bcma/main.c 	core = bcma_find_core(bus, bcma_cc_core_id(bus));
core              512 drivers/bcma/main.c 	if (core) {
core              513 drivers/bcma/main.c 		bus->drv_cc.core = core;
core              518 drivers/bcma/main.c 	core = bcma_find_core(bus, BCMA_CORE_MIPS_74K);
core              519 drivers/bcma/main.c 	if (core) {
core              520 drivers/bcma/main.c 		bus->drv_mips.core = core;
core              532 drivers/bcma/main.c 	struct bcma_device *core;
core              534 drivers/bcma/main.c 	list_for_each_entry(core, &bus->cores, list) {
core              535 drivers/bcma/main.c 		struct device_driver *drv = core->dev.driver;
core              539 drivers/bcma/main.c 				adrv->suspend(core);
core              547 drivers/bcma/main.c 	struct bcma_device *core;
core              550 drivers/bcma/main.c 	if (bus->drv_cc.core) {
core              555 drivers/bcma/main.c 	list_for_each_entry(core, &bus->cores, list) {
core              556 drivers/bcma/main.c 		struct device_driver *drv = core->dev.driver;
core              560 drivers/bcma/main.c 				adrv->resume(core);
core              586 drivers/bcma/main.c 	struct bcma_device *core = container_of(dev, struct bcma_device, dev);
core              588 drivers/bcma/main.c 	const struct bcma_device_id *cid = &core->id;
core              603 drivers/bcma/main.c 	struct bcma_device *core = container_of(dev, struct bcma_device, dev);
core              610 drivers/bcma/main.c 		err = adrv->probe(core);
core              619 drivers/bcma/main.c 	struct bcma_device *core = container_of(dev, struct bcma_device, dev);
core              624 drivers/bcma/main.c 		adrv->remove(core);
core              632 drivers/bcma/main.c 	struct bcma_device *core = container_of(dev, struct bcma_device, dev);
core              636 drivers/bcma/main.c 			      core->id.manuf, core->id.id,
core              637 drivers/bcma/main.c 			      core->id.rev, core->id.class);
core              255 drivers/bcma/scan.c 	struct bcma_device *core;
core              257 drivers/bcma/scan.c 	list_for_each_entry(core, &bus->cores, list) {
core              258 drivers/bcma/scan.c 		if (core->core_index == index)
core              259 drivers/bcma/scan.c 			return core;
core              266 drivers/bcma/scan.c 	struct bcma_device *core;
core              268 drivers/bcma/scan.c 	list_for_each_entry_reverse(core, &bus->cores, list) {
core              269 drivers/bcma/scan.c 		if (core->id.id == coreid)
core              270 drivers/bcma/scan.c 			return core;
core              279 drivers/bcma/scan.c 			      struct bcma_device *core)
core              299 drivers/bcma/scan.c 	core->id.class = (cia & SCAN_CIA_CLASS) >> SCAN_CIA_CLASS_SHIFT;
core              300 drivers/bcma/scan.c 	core->id.id = (cia & SCAN_CIA_ID) >> SCAN_CIA_ID_SHIFT;
core              301 drivers/bcma/scan.c 	core->id.manuf = (cia & SCAN_CIA_MANUF) >> SCAN_CIA_MANUF_SHIFT;
core              306 drivers/bcma/scan.c 	core->id.rev = (cib & SCAN_CIB_REV) >> SCAN_CIB_REV_SHIFT;
core              308 drivers/bcma/scan.c 	if (((core->id.manuf == BCMA_MANUF_ARM) &&
core              309 drivers/bcma/scan.c 	     (core->id.id == 0xFFF)) ||
core              318 drivers/bcma/scan.c 		switch (core->id.id) {
core              342 drivers/bcma/scan.c 	      match->manuf != core->id.manuf) ||
core              343 drivers/bcma/scan.c 	     (match->id != BCMA_ANY_ID && match->id != core->id.id) ||
core              344 drivers/bcma/scan.c 	     (match->rev != BCMA_ANY_REV && match->rev != core->id.rev) ||
core              345 drivers/bcma/scan.c 	     (match->class != BCMA_ANY_CLASS && match->class != core->id.class)
core              373 drivers/bcma/scan.c 	core->addr = tmp;
core              386 drivers/bcma/scan.c 			} else if (k < ARRAY_SIZE(core->addr_s)) {
core              387 drivers/bcma/scan.c 				core->addr_s[k] = tmp;
core              405 drivers/bcma/scan.c 					core->wrap = tmp;
core              423 drivers/bcma/scan.c 					core->wrap = tmp;
core              428 drivers/bcma/scan.c 		core->io_addr = ioremap_nocache(core->addr, BCMA_CORE_SIZE);
core              429 drivers/bcma/scan.c 		if (!core->io_addr)
core              431 drivers/bcma/scan.c 		if (core->wrap) {
core              432 drivers/bcma/scan.c 			core->io_wrap = ioremap_nocache(core->wrap,
core              434 drivers/bcma/scan.c 			if (!core->io_wrap) {
core              435 drivers/bcma/scan.c 				iounmap(core->io_addr);
core              488 drivers/bcma/scan.c 		struct bcma_device *core = kzalloc(sizeof(*core), GFP_KERNEL);
core              489 drivers/bcma/scan.c 		if (!core) {
core              493 drivers/bcma/scan.c 		INIT_LIST_HEAD(&core->list);
core              494 drivers/bcma/scan.c 		core->bus = bus;
core              496 drivers/bcma/scan.c 		err = bcma_get_next_core(bus, &eromptr, NULL, core_num, core);
core              498 drivers/bcma/scan.c 			kfree(core);
core              510 drivers/bcma/scan.c 		core->core_index = core_num++;
core              512 drivers/bcma/scan.c 		other_core = bcma_find_core_reverse(bus, core->id.id);
core              513 drivers/bcma/scan.c 		core->core_unit = (other_core == NULL) ? 0 : other_core->core_unit + 1;
core              514 drivers/bcma/scan.c 		bcma_prepare_core(bus, core);
core              517 drivers/bcma/scan.c 			  core->core_index, bcma_device_name(&core->id),
core              518 drivers/bcma/scan.c 			  core->id.manuf, core->id.id, core->id.rev,
core              519 drivers/bcma/scan.c 			  core->id.class);
core              521 drivers/bcma/scan.c 		list_add_tail(&core->list, &bus->cores);
core               80 drivers/bcma/sprom.c 		sprom[i] = bcma_read16(bus->drv_cc.core, offset + (i * 2));
core              486 drivers/bcma/sprom.c 	if (bus->drv_cc.core->id.rev >= 31) {
core              490 drivers/bcma/sprom.c 		srom_control = bcma_read32(bus->drv_cc.core,
core              496 drivers/bcma/sprom.c 	chip_status = bcma_read32(bus->drv_cc.core, BCMA_CC_CHIPSTAT);
core              522 drivers/bcma/sprom.c 	chip_status = bcma_read32(bus->drv_cc.core, BCMA_CC_CHIPSTAT);
core              565 drivers/bcma/sprom.c 	struct bcma_device *cc = bus->drv_cc.core;
core              588 drivers/bcma/sprom.c 	if (!bus->drv_cc.core)
core               93 drivers/block/ps3disk.c 		dev_dbg(&dev->sbd.core, "%s:%u: bio %u: %u sectors from %llu\n",
core              126 drivers/block/ps3disk.c 	dev_dbg(&dev->sbd.core,
core              133 drivers/block/ps3disk.c 	dev_dbg(&dev->sbd.core, "%s:%u: %s %llu sectors starting at %llu\n",
core              148 drivers/block/ps3disk.c 		dev_err(&dev->sbd.core, "%s:%u: %s failed %d\n", __func__,
core              163 drivers/block/ps3disk.c 	dev_dbg(&dev->sbd.core, "%s:%u: flush request\n", __func__, __LINE__);
core              169 drivers/block/ps3disk.c 		dev_err(&dev->sbd.core, "%s:%u: sync cache failed 0x%llx\n",
core              181 drivers/block/ps3disk.c 	dev_dbg(&dev->sbd.core, "%s:%u\n", __func__, __LINE__);
core              225 drivers/block/ps3disk.c 		dev_err(&dev->sbd.core,
core              230 drivers/block/ps3disk.c 		dev_err(&dev->sbd.core, "%s:%u: res=%d status=0x%llx\n",
core              238 drivers/block/ps3disk.c 		dev_dbg(&dev->sbd.core,
core              254 drivers/block/ps3disk.c 		dev_dbg(&dev->sbd.core, "%s:%u: %s failed 0x%llx\n", __func__,
core              258 drivers/block/ps3disk.c 		dev_dbg(&dev->sbd.core, "%s:%u: %s completed\n", __func__,
core              278 drivers/block/ps3disk.c 	dev_dbg(&dev->sbd.core, "%s:%u: sync cache\n", __func__, __LINE__);
core              282 drivers/block/ps3disk.c 		dev_err(&dev->sbd.core, "%s:%u: sync cache failed 0x%llx\n",
core              358 drivers/block/ps3disk.c 	dev_dbg(&dev->sbd.core, "%s:%u: identify disk\n", __func__, __LINE__);
core              373 drivers/block/ps3disk.c 		dev_err(&dev->sbd.core, "%s:%u: identify disk failed 0x%llx\n",
core              396 drivers/block/ps3disk.c 	struct ps3_storage_device *dev = to_ps3_storage_device(&_dev->core);
core              404 drivers/block/ps3disk.c 		dev_err(&dev->sbd.core,
core              414 drivers/block/ps3disk.c 		dev_err(&dev->sbd.core, "%s:%u: Too many disks\n", __func__,
core              447 drivers/block/ps3disk.c 		dev_err(&dev->sbd.core, "%s:%u: blk_mq_init_queue failed\n",
core              468 drivers/block/ps3disk.c 		dev_err(&dev->sbd.core, "%s:%u: alloc_disk failed\n", __func__,
core              486 drivers/block/ps3disk.c 	dev_info(&dev->sbd.core,
core              491 drivers/block/ps3disk.c 	device_add_disk(&dev->sbd.core, gendisk, NULL);
core              513 drivers/block/ps3disk.c 	struct ps3_storage_device *dev = to_ps3_storage_device(&_dev->core);
core              524 drivers/block/ps3disk.c 	dev_notice(&dev->sbd.core, "Synchronizing disk cache\n");
core              535 drivers/block/ps3disk.c 	.core.name	= DEVICE_NAME,
core              536 drivers/block/ps3disk.c 	.core.owner	= THIS_MODULE,
core              168 drivers/block/ps3vram.c 	dev_warn(&dev->core, "FIFO timeout (%08x/%08x/%08x)\n",
core              198 drivers/block/ps3vram.c 		dev_err(&dev->core, "%s: lv1_gpu_fb_blit failed %d\n",
core              217 drivers/block/ps3vram.c 		dev_err(&dev->core, "%s: lv1_gpu_fb_blit failed %d\n",
core              222 drivers/block/ps3vram.c 		dev_dbg(&dev->core, "FIFO full, rewinding\n");
core              276 drivers/block/ps3vram.c 		dev_warn(&dev->core, "%s: Notifier timeout\n", __func__);
core              308 drivers/block/ps3vram.c 		dev_warn(&dev->core, "%s: Notifier timeout\n", __func__);
core              323 drivers/block/ps3vram.c 	dev_dbg(&dev->core, "Flushing %d: 0x%08x\n", entry,
core              328 drivers/block/ps3vram.c 		dev_err(&dev->core,
core              342 drivers/block/ps3vram.c 	dev_dbg(&dev->core, "Fetching %d: 0x%08x\n", entry, address);
core              347 drivers/block/ps3vram.c 		dev_err(&dev->core,
core              363 drivers/block/ps3vram.c 	dev_dbg(&dev->core, "FLUSH\n");
core              388 drivers/block/ps3vram.c 			dev_dbg(&dev->core, "Found entry %d: 0x%08x\n", i,
core              396 drivers/block/ps3vram.c 	dev_dbg(&dev->core, "Using entry %d\n", i);
core              417 drivers/block/ps3vram.c 	dev_info(&dev->core, "Created ram cache: %d entries, %d KiB each\n",
core              437 drivers/block/ps3vram.c 	dev_dbg(&dev->core, "%s: from=0x%08x len=0x%zx\n", __func__,
core              458 drivers/block/ps3vram.c 		dev_dbg(&dev->core, "%s: from=%08x cached=%08x offset=%08x "
core              499 drivers/block/ps3vram.c 		dev_dbg(&dev->core, "%s: to=%08x cached=%08x offset=%08x "
core              534 drivers/block/ps3vram.c 		dev_warn(&dev->core, "failed to create /proc entry\n");
core              554 drivers/block/ps3vram.c 		dev_dbg(&dev->core, "    %s %zu bytes at offset %llu\n", op,
core              562 drivers/block/ps3vram.c 			dev_err(&dev->core, "%s failed\n", op);
core              567 drivers/block/ps3vram.c 			dev_err(&dev->core, "Short %s\n", op);
core              575 drivers/block/ps3vram.c 	dev_dbg(&dev->core, "%s completed\n", op);
core              594 drivers/block/ps3vram.c 	dev_dbg(&dev->core, "%s\n", __func__);
core              637 drivers/block/ps3vram.c 		dev_err(&dev->core, "Could not allocate XDR buffer\n");
core              648 drivers/block/ps3vram.c 		dev_err(&dev->core, "ps3_open_hv_device failed\n");
core              657 drivers/block/ps3vram.c 		dev_err(&dev->core, "Specified size is too small\n");
core              671 drivers/block/ps3vram.c 		dev_err(&dev->core, "lv1_gpu_memory_allocate failed %d\n",
core              683 drivers/block/ps3vram.c 		dev_err(&dev->core, "lv1_gpu_context_allocate failed %d\n",
core              696 drivers/block/ps3vram.c 		dev_err(&dev->core, "lv1_gpu_context_iomap failed %d\n",
core              704 drivers/block/ps3vram.c 		dev_err(&dev->core, "ioremap CTRL failed\n");
core              711 drivers/block/ps3vram.c 		dev_err(&dev->core, "ioremap REPORTS failed\n");
core              728 drivers/block/ps3vram.c 		dev_err(&dev->core, "Failed to initialize channels\n");
core              742 drivers/block/ps3vram.c 		dev_err(&dev->core, "blk_alloc_queue failed\n");
core              756 drivers/block/ps3vram.c 		dev_err(&dev->core, "alloc_disk failed\n");
core              770 drivers/block/ps3vram.c 	dev_info(&dev->core, "%s: Using %llu MiB of GPU memory\n",
core              773 drivers/block/ps3vram.c 	device_add_disk(&dev->core, gendisk, NULL);
core              829 drivers/block/ps3vram.c 	.core.name	= DEVICE_NAME,
core              830 drivers/block/ps3vram.c 	.core.owner	= THIS_MODULE,
core               41 drivers/char/ps3flash.c 		dev_err(&dev->sbd.core, "%s:%u: %s failed 0x%llx\n", __func__,
core              103 drivers/char/ps3flash.c 	dev_dbg(&dev->sbd.core,
core              112 drivers/char/ps3flash.c 		dev_dbg(&dev->sbd.core,
core              132 drivers/char/ps3flash.c 		dev_dbg(&dev->sbd.core,
core              172 drivers/char/ps3flash.c 	dev_dbg(&dev->sbd.core,
core              181 drivers/char/ps3flash.c 		dev_dbg(&dev->sbd.core,
core              204 drivers/char/ps3flash.c 		dev_dbg(&dev->sbd.core,
core              296 drivers/char/ps3flash.c 		dev_err(&dev->sbd.core,
core              301 drivers/char/ps3flash.c 		dev_err(&dev->sbd.core, "%s:%u: res=%d status=0x%llx\n",
core              332 drivers/char/ps3flash.c 	struct ps3_storage_device *dev = to_ps3_storage_device(&_dev->core);
core              339 drivers/char/ps3flash.c 		dev_err(&dev->sbd.core,
core              346 drivers/char/ps3flash.c 		dev_err(&dev->sbd.core,
core              357 drivers/char/ps3flash.c 		dev_err(&dev->sbd.core,
core              382 drivers/char/ps3flash.c 	ps3flash_misc.parent = &dev->sbd.core;
core              385 drivers/char/ps3flash.c 		dev_err(&dev->sbd.core, "%s:%u: misc_register failed %d\n",
core              390 drivers/char/ps3flash.c 	dev_info(&dev->sbd.core, "%s:%u: registered misc device %d\n",
core              408 drivers/char/ps3flash.c 	struct ps3_storage_device *dev = to_ps3_storage_device(&_dev->core);
core              422 drivers/char/ps3flash.c 	.core.name	= DEVICE_NAME,
core              423 drivers/char/ps3flash.c 	.core.owner	= THIS_MODULE,
core               50 drivers/clk/clk.c 	struct clk_core		*core;
core               98 drivers/clk/clk.c 	struct clk_core	*core;
core              109 drivers/clk/clk.c static int clk_pm_runtime_get(struct clk_core *core)
core              113 drivers/clk/clk.c 	if (!core->rpm_enabled)
core              116 drivers/clk/clk.c 	ret = pm_runtime_get_sync(core->dev);
core              118 drivers/clk/clk.c 		pm_runtime_put_noidle(core->dev);
core              124 drivers/clk/clk.c static void clk_pm_runtime_put(struct clk_core *core)
core              126 drivers/clk/clk.c 	if (!core->rpm_enabled)
core              129 drivers/clk/clk.c 	pm_runtime_put_sync(core->dev);
core              201 drivers/clk/clk.c static bool clk_core_rate_is_protected(struct clk_core *core)
core              203 drivers/clk/clk.c 	return core->protect_count;
core              206 drivers/clk/clk.c static bool clk_core_is_prepared(struct clk_core *core)
core              214 drivers/clk/clk.c 	if (!core->ops->is_prepared)
core              215 drivers/clk/clk.c 		return core->prepare_count;
core              217 drivers/clk/clk.c 	if (!clk_pm_runtime_get(core)) {
core              218 drivers/clk/clk.c 		ret = core->ops->is_prepared(core->hw);
core              219 drivers/clk/clk.c 		clk_pm_runtime_put(core);
core              225 drivers/clk/clk.c static bool clk_core_is_enabled(struct clk_core *core)
core              233 drivers/clk/clk.c 	if (!core->ops->is_enabled)
core              234 drivers/clk/clk.c 		return core->enable_count;
core              246 drivers/clk/clk.c 	if (core->rpm_enabled) {
core              247 drivers/clk/clk.c 		pm_runtime_get_noresume(core->dev);
core              248 drivers/clk/clk.c 		if (!pm_runtime_active(core->dev)) {
core              254 drivers/clk/clk.c 	ret = core->ops->is_enabled(core->hw);
core              256 drivers/clk/clk.c 	if (core->rpm_enabled)
core              257 drivers/clk/clk.c 		pm_runtime_put(core->dev);
core              266 drivers/clk/clk.c 	return !clk ? NULL : clk->core->name;
core              272 drivers/clk/clk.c 	return hw->core->name;
core              278 drivers/clk/clk.c 	return !clk ? NULL : clk->core->hw;
core              284 drivers/clk/clk.c 	return hw->core->num_parents;
core              290 drivers/clk/clk.c 	return hw->core->parent ? hw->core->parent->hw : NULL;
core              295 drivers/clk/clk.c 					     struct clk_core *core)
core              300 drivers/clk/clk.c 	if (!strcmp(core->name, name))
core              301 drivers/clk/clk.c 		return core;
core              303 drivers/clk/clk.c 	hlist_for_each_entry(child, &core->children, child_node) {
core              392 drivers/clk/clk.c static struct clk_core *clk_core_get(struct clk_core *core, u8 p_index)
core              394 drivers/clk/clk.c 	const char *name = core->parents[p_index].fw_name;
core              395 drivers/clk/clk.c 	int index = core->parents[p_index].index;
core              397 drivers/clk/clk.c 	struct device *dev = core->dev;
core              399 drivers/clk/clk.c 	struct device_node *np = core->of_node;
core              417 drivers/clk/clk.c 	return hw->core;
core              420 drivers/clk/clk.c static void clk_core_fill_parent_index(struct clk_core *core, u8 index)
core              422 drivers/clk/clk.c 	struct clk_parent_map *entry = &core->parents[index];
core              426 drivers/clk/clk.c 		parent = entry->hw->core;
core              435 drivers/clk/clk.c 		parent = clk_core_get(core, index);
core              442 drivers/clk/clk.c 		entry->core = parent;
core              445 drivers/clk/clk.c static struct clk_core *clk_core_get_parent_by_index(struct clk_core *core,
core              448 drivers/clk/clk.c 	if (!core || index >= core->num_parents || !core->parents)
core              451 drivers/clk/clk.c 	if (!core->parents[index].core)
core              452 drivers/clk/clk.c 		clk_core_fill_parent_index(core, index);
core              454 drivers/clk/clk.c 	return core->parents[index].core;
core              462 drivers/clk/clk.c 	parent = clk_core_get_parent_by_index(hw->core, index);
core              470 drivers/clk/clk.c 	return !clk ? 0 : clk->core->enable_count;
core              473 drivers/clk/clk.c static unsigned long clk_core_get_rate_nolock(struct clk_core *core)
core              475 drivers/clk/clk.c 	if (!core)
core              478 drivers/clk/clk.c 	if (!core->num_parents || core->parent)
core              479 drivers/clk/clk.c 		return core->rate;
core              491 drivers/clk/clk.c 	return clk_core_get_rate_nolock(hw->core);
core              495 drivers/clk/clk.c static unsigned long __clk_get_accuracy(struct clk_core *core)
core              497 drivers/clk/clk.c 	if (!core)
core              500 drivers/clk/clk.c 	return core->accuracy;
core              505 drivers/clk/clk.c 	return !clk ? 0 : clk->core->flags;
core              511 drivers/clk/clk.c 	return hw->core->flags;
core              517 drivers/clk/clk.c 	return clk_core_is_prepared(hw->core);
core              523 drivers/clk/clk.c 	return clk_core_rate_is_protected(hw->core);
core              529 drivers/clk/clk.c 	return clk_core_is_enabled(hw->core);
core              538 drivers/clk/clk.c 	return clk_core_is_enabled(clk->core);
core              555 drivers/clk/clk.c 	struct clk_core *core = hw->core, *parent, *best_parent = NULL;
core              561 drivers/clk/clk.c 	if (core->flags & CLK_SET_RATE_NO_REPARENT) {
core              562 drivers/clk/clk.c 		parent = core->parent;
core              563 drivers/clk/clk.c 		if (core->flags & CLK_SET_RATE_PARENT) {
core              573 drivers/clk/clk.c 			best = clk_core_get_rate_nolock(core);
core              580 drivers/clk/clk.c 	num_parents = core->num_parents;
core              582 drivers/clk/clk.c 		parent = clk_core_get_parent_by_index(core, i);
core              586 drivers/clk/clk.c 		if (core->flags & CLK_SET_RATE_PARENT) {
core              617 drivers/clk/clk.c 	struct clk_core *core = clk_core_lookup(name);
core              619 drivers/clk/clk.c 	return !core ? NULL : core->hw->clk;
core              622 drivers/clk/clk.c static void clk_core_get_boundaries(struct clk_core *core,
core              630 drivers/clk/clk.c 	*min_rate = core->min_rate;
core              631 drivers/clk/clk.c 	*max_rate = core->max_rate;
core              633 drivers/clk/clk.c 	hlist_for_each_entry(clk_user, &core->clks, clks_node)
core              636 drivers/clk/clk.c 	hlist_for_each_entry(clk_user, &core->clks, clks_node)
core              643 drivers/clk/clk.c 	hw->core->min_rate = min_rate;
core              644 drivers/clk/clk.c 	hw->core->max_rate = max_rate;
core              675 drivers/clk/clk.c static void clk_core_rate_unprotect(struct clk_core *core)
core              679 drivers/clk/clk.c 	if (!core)
core              682 drivers/clk/clk.c 	if (WARN(core->protect_count == 0,
core              683 drivers/clk/clk.c 	    "%s already unprotected\n", core->name))
core              686 drivers/clk/clk.c 	if (--core->protect_count > 0)
core              689 drivers/clk/clk.c 	clk_core_rate_unprotect(core->parent);
core              692 drivers/clk/clk.c static int clk_core_rate_nuke_protect(struct clk_core *core)
core              698 drivers/clk/clk.c 	if (!core)
core              701 drivers/clk/clk.c 	if (core->protect_count == 0)
core              704 drivers/clk/clk.c 	ret = core->protect_count;
core              705 drivers/clk/clk.c 	core->protect_count = 1;
core              706 drivers/clk/clk.c 	clk_core_rate_unprotect(core);
core              743 drivers/clk/clk.c 	clk_core_rate_unprotect(clk->core);
core              750 drivers/clk/clk.c static void clk_core_rate_protect(struct clk_core *core)
core              754 drivers/clk/clk.c 	if (!core)
core              757 drivers/clk/clk.c 	if (core->protect_count == 0)
core              758 drivers/clk/clk.c 		clk_core_rate_protect(core->parent);
core              760 drivers/clk/clk.c 	core->protect_count++;
core              763 drivers/clk/clk.c static void clk_core_rate_restore_protect(struct clk_core *core, int count)
core              767 drivers/clk/clk.c 	if (!core)
core              773 drivers/clk/clk.c 	clk_core_rate_protect(core);
core              774 drivers/clk/clk.c 	core->protect_count = count;
core              801 drivers/clk/clk.c 	clk_core_rate_protect(clk->core);
core              809 drivers/clk/clk.c static void clk_core_unprepare(struct clk_core *core)
core              813 drivers/clk/clk.c 	if (!core)
core              816 drivers/clk/clk.c 	if (WARN(core->prepare_count == 0,
core              817 drivers/clk/clk.c 	    "%s already unprepared\n", core->name))
core              820 drivers/clk/clk.c 	if (WARN(core->prepare_count == 1 && core->flags & CLK_IS_CRITICAL,
core              821 drivers/clk/clk.c 	    "Unpreparing critical %s\n", core->name))
core              824 drivers/clk/clk.c 	if (core->flags & CLK_SET_RATE_GATE)
core              825 drivers/clk/clk.c 		clk_core_rate_unprotect(core);
core              827 drivers/clk/clk.c 	if (--core->prepare_count > 0)
core              830 drivers/clk/clk.c 	WARN(core->enable_count > 0, "Unpreparing enabled %s\n", core->name);
core              832 drivers/clk/clk.c 	trace_clk_unprepare(core);
core              834 drivers/clk/clk.c 	if (core->ops->unprepare)
core              835 drivers/clk/clk.c 		core->ops->unprepare(core->hw);
core              837 drivers/clk/clk.c 	clk_pm_runtime_put(core);
core              839 drivers/clk/clk.c 	trace_clk_unprepare_complete(core);
core              840 drivers/clk/clk.c 	clk_core_unprepare(core->parent);
core              843 drivers/clk/clk.c static void clk_core_unprepare_lock(struct clk_core *core)
core              846 drivers/clk/clk.c 	clk_core_unprepare(core);
core              866 drivers/clk/clk.c 	clk_core_unprepare_lock(clk->core);
core              870 drivers/clk/clk.c static int clk_core_prepare(struct clk_core *core)
core              876 drivers/clk/clk.c 	if (!core)
core              879 drivers/clk/clk.c 	if (core->prepare_count == 0) {
core              880 drivers/clk/clk.c 		ret = clk_pm_runtime_get(core);
core              884 drivers/clk/clk.c 		ret = clk_core_prepare(core->parent);
core              888 drivers/clk/clk.c 		trace_clk_prepare(core);
core              890 drivers/clk/clk.c 		if (core->ops->prepare)
core              891 drivers/clk/clk.c 			ret = core->ops->prepare(core->hw);
core              893 drivers/clk/clk.c 		trace_clk_prepare_complete(core);
core              899 drivers/clk/clk.c 	core->prepare_count++;
core              908 drivers/clk/clk.c 	if (core->flags & CLK_SET_RATE_GATE)
core              909 drivers/clk/clk.c 		clk_core_rate_protect(core);
core              913 drivers/clk/clk.c 	clk_core_unprepare(core->parent);
core              915 drivers/clk/clk.c 	clk_pm_runtime_put(core);
core              919 drivers/clk/clk.c static int clk_core_prepare_lock(struct clk_core *core)
core              924 drivers/clk/clk.c 	ret = clk_core_prepare(core);
core              947 drivers/clk/clk.c 	return clk_core_prepare_lock(clk->core);
core              951 drivers/clk/clk.c static void clk_core_disable(struct clk_core *core)
core              955 drivers/clk/clk.c 	if (!core)
core              958 drivers/clk/clk.c 	if (WARN(core->enable_count == 0, "%s already disabled\n", core->name))
core              961 drivers/clk/clk.c 	if (WARN(core->enable_count == 1 && core->flags & CLK_IS_CRITICAL,
core              962 drivers/clk/clk.c 	    "Disabling critical %s\n", core->name))
core              965 drivers/clk/clk.c 	if (--core->enable_count > 0)
core              968 drivers/clk/clk.c 	trace_clk_disable_rcuidle(core);
core              970 drivers/clk/clk.c 	if (core->ops->disable)
core              971 drivers/clk/clk.c 		core->ops->disable(core->hw);
core              973 drivers/clk/clk.c 	trace_clk_disable_complete_rcuidle(core);
core              975 drivers/clk/clk.c 	clk_core_disable(core->parent);
core              978 drivers/clk/clk.c static void clk_core_disable_lock(struct clk_core *core)
core              983 drivers/clk/clk.c 	clk_core_disable(core);
core             1004 drivers/clk/clk.c 	clk_core_disable_lock(clk->core);
core             1008 drivers/clk/clk.c static int clk_core_enable(struct clk_core *core)
core             1014 drivers/clk/clk.c 	if (!core)
core             1017 drivers/clk/clk.c 	if (WARN(core->prepare_count == 0,
core             1018 drivers/clk/clk.c 	    "Enabling unprepared %s\n", core->name))
core             1021 drivers/clk/clk.c 	if (core->enable_count == 0) {
core             1022 drivers/clk/clk.c 		ret = clk_core_enable(core->parent);
core             1027 drivers/clk/clk.c 		trace_clk_enable_rcuidle(core);
core             1029 drivers/clk/clk.c 		if (core->ops->enable)
core             1030 drivers/clk/clk.c 			ret = core->ops->enable(core->hw);
core             1032 drivers/clk/clk.c 		trace_clk_enable_complete_rcuidle(core);
core             1035 drivers/clk/clk.c 			clk_core_disable(core->parent);
core             1040 drivers/clk/clk.c 	core->enable_count++;
core             1044 drivers/clk/clk.c static int clk_core_enable_lock(struct clk_core *core)
core             1050 drivers/clk/clk.c 	ret = clk_core_enable(core);
core             1068 drivers/clk/clk.c 	struct clk_core *core = hw->core;
core             1070 drivers/clk/clk.c 	if (core->enable_count)
core             1071 drivers/clk/clk.c 		core->ops->enable(hw);
core             1073 drivers/clk/clk.c 		core->ops->disable(hw);
core             1077 drivers/clk/clk.c static int clk_core_save_context(struct clk_core *core)
core             1082 drivers/clk/clk.c 	hlist_for_each_entry(child, &core->children, child_node) {
core             1088 drivers/clk/clk.c 	if (core->ops && core->ops->save_context)
core             1089 drivers/clk/clk.c 		ret = core->ops->save_context(core->hw);
core             1094 drivers/clk/clk.c static void clk_core_restore_context(struct clk_core *core)
core             1098 drivers/clk/clk.c 	if (core->ops && core->ops->restore_context)
core             1099 drivers/clk/clk.c 		core->ops->restore_context(core->hw);
core             1101 drivers/clk/clk.c 	hlist_for_each_entry(child, &core->children, child_node)
core             1141 drivers/clk/clk.c 	struct clk_core *core;
core             1143 drivers/clk/clk.c 	hlist_for_each_entry(core, &clk_root_list, child_node)
core             1144 drivers/clk/clk.c 		clk_core_restore_context(core);
core             1146 drivers/clk/clk.c 	hlist_for_each_entry(core, &clk_orphan_list, child_node)
core             1147 drivers/clk/clk.c 		clk_core_restore_context(core);
core             1169 drivers/clk/clk.c 	return clk_core_enable_lock(clk->core);
core             1173 drivers/clk/clk.c static int clk_core_prepare_enable(struct clk_core *core)
core             1177 drivers/clk/clk.c 	ret = clk_core_prepare_lock(core);
core             1181 drivers/clk/clk.c 	ret = clk_core_enable_lock(core);
core             1183 drivers/clk/clk.c 		clk_core_unprepare_lock(core);
core             1188 drivers/clk/clk.c static void clk_core_disable_unprepare(struct clk_core *core)
core             1190 drivers/clk/clk.c 	clk_core_disable_lock(core);
core             1191 drivers/clk/clk.c 	clk_core_unprepare_lock(core);
core             1194 drivers/clk/clk.c static void clk_unprepare_unused_subtree(struct clk_core *core)
core             1200 drivers/clk/clk.c 	hlist_for_each_entry(child, &core->children, child_node)
core             1203 drivers/clk/clk.c 	if (core->prepare_count)
core             1206 drivers/clk/clk.c 	if (core->flags & CLK_IGNORE_UNUSED)
core             1209 drivers/clk/clk.c 	if (clk_pm_runtime_get(core))
core             1212 drivers/clk/clk.c 	if (clk_core_is_prepared(core)) {
core             1213 drivers/clk/clk.c 		trace_clk_unprepare(core);
core             1214 drivers/clk/clk.c 		if (core->ops->unprepare_unused)
core             1215 drivers/clk/clk.c 			core->ops->unprepare_unused(core->hw);
core             1216 drivers/clk/clk.c 		else if (core->ops->unprepare)
core             1217 drivers/clk/clk.c 			core->ops->unprepare(core->hw);
core             1218 drivers/clk/clk.c 		trace_clk_unprepare_complete(core);
core             1221 drivers/clk/clk.c 	clk_pm_runtime_put(core);
core             1224 drivers/clk/clk.c static void clk_disable_unused_subtree(struct clk_core *core)
core             1231 drivers/clk/clk.c 	hlist_for_each_entry(child, &core->children, child_node)
core             1234 drivers/clk/clk.c 	if (core->flags & CLK_OPS_PARENT_ENABLE)
core             1235 drivers/clk/clk.c 		clk_core_prepare_enable(core->parent);
core             1237 drivers/clk/clk.c 	if (clk_pm_runtime_get(core))
core             1242 drivers/clk/clk.c 	if (core->enable_count)
core             1245 drivers/clk/clk.c 	if (core->flags & CLK_IGNORE_UNUSED)
core             1253 drivers/clk/clk.c 	if (clk_core_is_enabled(core)) {
core             1254 drivers/clk/clk.c 		trace_clk_disable(core);
core             1255 drivers/clk/clk.c 		if (core->ops->disable_unused)
core             1256 drivers/clk/clk.c 			core->ops->disable_unused(core->hw);
core             1257 drivers/clk/clk.c 		else if (core->ops->disable)
core             1258 drivers/clk/clk.c 			core->ops->disable(core->hw);
core             1259 drivers/clk/clk.c 		trace_clk_disable_complete(core);
core             1264 drivers/clk/clk.c 	clk_pm_runtime_put(core);
core             1266 drivers/clk/clk.c 	if (core->flags & CLK_OPS_PARENT_ENABLE)
core             1267 drivers/clk/clk.c 		clk_core_disable_unprepare(core->parent);
core             1280 drivers/clk/clk.c 	struct clk_core *core;
core             1289 drivers/clk/clk.c 	hlist_for_each_entry(core, &clk_root_list, child_node)
core             1290 drivers/clk/clk.c 		clk_disable_unused_subtree(core);
core             1292 drivers/clk/clk.c 	hlist_for_each_entry(core, &clk_orphan_list, child_node)
core             1293 drivers/clk/clk.c 		clk_disable_unused_subtree(core);
core             1295 drivers/clk/clk.c 	hlist_for_each_entry(core, &clk_root_list, child_node)
core             1296 drivers/clk/clk.c 		clk_unprepare_unused_subtree(core);
core             1298 drivers/clk/clk.c 	hlist_for_each_entry(core, &clk_orphan_list, child_node)
core             1299 drivers/clk/clk.c 		clk_unprepare_unused_subtree(core);
core             1307 drivers/clk/clk.c static int clk_core_determine_round_nolock(struct clk_core *core,
core             1314 drivers/clk/clk.c 	if (!core)
core             1323 drivers/clk/clk.c 	if (clk_core_rate_is_protected(core)) {
core             1324 drivers/clk/clk.c 		req->rate = core->rate;
core             1325 drivers/clk/clk.c 	} else if (core->ops->determine_rate) {
core             1326 drivers/clk/clk.c 		return core->ops->determine_rate(core->hw, req);
core             1327 drivers/clk/clk.c 	} else if (core->ops->round_rate) {
core             1328 drivers/clk/clk.c 		rate = core->ops->round_rate(core->hw, req->rate,
core             1341 drivers/clk/clk.c static void clk_core_init_rate_req(struct clk_core * const core,
core             1346 drivers/clk/clk.c 	if (WARN_ON(!core || !req))
core             1349 drivers/clk/clk.c 	parent = core->parent;
core             1359 drivers/clk/clk.c static bool clk_core_can_round(struct clk_core * const core)
core             1361 drivers/clk/clk.c 	return core->ops->determine_rate || core->ops->round_rate;
core             1364 drivers/clk/clk.c static int clk_core_round_rate_nolock(struct clk_core *core,
core             1369 drivers/clk/clk.c 	if (!core) {
core             1374 drivers/clk/clk.c 	clk_core_init_rate_req(core, req);
core             1376 drivers/clk/clk.c 	if (clk_core_can_round(core))
core             1377 drivers/clk/clk.c 		return clk_core_determine_round_nolock(core, req);
core             1378 drivers/clk/clk.c 	else if (core->flags & CLK_SET_RATE_PARENT)
core             1379 drivers/clk/clk.c 		return clk_core_round_rate_nolock(core->parent, req);
core             1381 drivers/clk/clk.c 	req->rate = core->rate;
core             1399 drivers/clk/clk.c 	return clk_core_round_rate_nolock(hw->core, req);
core             1408 drivers/clk/clk.c 	clk_core_get_boundaries(hw->core, &req.min_rate, &req.max_rate);
core             1411 drivers/clk/clk.c 	ret = clk_core_round_rate_nolock(hw->core, &req);
core             1439 drivers/clk/clk.c 		clk_core_rate_unprotect(clk->core);
core             1441 drivers/clk/clk.c 	clk_core_get_boundaries(clk->core, &req.min_rate, &req.max_rate);
core             1444 drivers/clk/clk.c 	ret = clk_core_round_rate_nolock(clk->core, &req);
core             1447 drivers/clk/clk.c 		clk_core_rate_protect(clk->core);
core             1472 drivers/clk/clk.c static int __clk_notify(struct clk_core *core, unsigned long msg,
core             1483 drivers/clk/clk.c 		if (cn->clk->core == core) {
core             1504 drivers/clk/clk.c static void __clk_recalc_accuracies(struct clk_core *core)
core             1511 drivers/clk/clk.c 	if (core->parent)
core             1512 drivers/clk/clk.c 		parent_accuracy = core->parent->accuracy;
core             1514 drivers/clk/clk.c 	if (core->ops->recalc_accuracy)
core             1515 drivers/clk/clk.c 		core->accuracy = core->ops->recalc_accuracy(core->hw,
core             1518 drivers/clk/clk.c 		core->accuracy = parent_accuracy;
core             1520 drivers/clk/clk.c 	hlist_for_each_entry(child, &core->children, child_node)
core             1524 drivers/clk/clk.c static long clk_core_get_accuracy(struct clk_core *core)
core             1529 drivers/clk/clk.c 	if (core && (core->flags & CLK_GET_ACCURACY_NOCACHE))
core             1530 drivers/clk/clk.c 		__clk_recalc_accuracies(core);
core             1532 drivers/clk/clk.c 	accuracy = __clk_get_accuracy(core);
core             1552 drivers/clk/clk.c 	return clk_core_get_accuracy(clk->core);
core             1556 drivers/clk/clk.c static unsigned long clk_recalc(struct clk_core *core,
core             1561 drivers/clk/clk.c 	if (core->ops->recalc_rate && !clk_pm_runtime_get(core)) {
core             1562 drivers/clk/clk.c 		rate = core->ops->recalc_rate(core->hw, parent_rate);
core             1563 drivers/clk/clk.c 		clk_pm_runtime_put(core);
core             1580 drivers/clk/clk.c static void __clk_recalc_rates(struct clk_core *core, unsigned long msg)
core             1588 drivers/clk/clk.c 	old_rate = core->rate;
core             1590 drivers/clk/clk.c 	if (core->parent)
core             1591 drivers/clk/clk.c 		parent_rate = core->parent->rate;
core             1593 drivers/clk/clk.c 	core->rate = clk_recalc(core, parent_rate);
core             1599 drivers/clk/clk.c 	if (core->notifier_count && msg)
core             1600 drivers/clk/clk.c 		__clk_notify(core, msg, old_rate, core->rate);
core             1602 drivers/clk/clk.c 	hlist_for_each_entry(child, &core->children, child_node)
core             1606 drivers/clk/clk.c static unsigned long clk_core_get_rate(struct clk_core *core)
core             1612 drivers/clk/clk.c 	if (core && (core->flags & CLK_GET_RATE_NOCACHE))
core             1613 drivers/clk/clk.c 		__clk_recalc_rates(core, 0);
core             1615 drivers/clk/clk.c 	rate = clk_core_get_rate_nolock(core);
core             1634 drivers/clk/clk.c 	return clk_core_get_rate(clk->core);
core             1638 drivers/clk/clk.c static int clk_fetch_parent_index(struct clk_core *core,
core             1646 drivers/clk/clk.c 	for (i = 0; i < core->num_parents; i++) {
core             1648 drivers/clk/clk.c 		if (core->parents[i].core == parent)
core             1652 drivers/clk/clk.c 		if (core->parents[i].core)
core             1656 drivers/clk/clk.c 		if (core->parents[i].hw) {
core             1657 drivers/clk/clk.c 			if (core->parents[i].hw == parent->hw)
core             1665 drivers/clk/clk.c 		if (parent == clk_core_get(core, i))
core             1669 drivers/clk/clk.c 		if (core->parents[i].name &&
core             1670 drivers/clk/clk.c 		    !strcmp(parent->name, core->parents[i].name))
core             1674 drivers/clk/clk.c 	if (i == core->num_parents)
core             1677 drivers/clk/clk.c 	core->parents[i].core = parent;
core             1684 drivers/clk/clk.c static void clk_core_update_orphan_status(struct clk_core *core, bool is_orphan)
core             1688 drivers/clk/clk.c 	core->orphan = is_orphan;
core             1690 drivers/clk/clk.c 	hlist_for_each_entry(child, &core->children, child_node)
core             1694 drivers/clk/clk.c static void clk_reparent(struct clk_core *core, struct clk_core *new_parent)
core             1696 drivers/clk/clk.c 	bool was_orphan = core->orphan;
core             1698 drivers/clk/clk.c 	hlist_del(&core->child_node);
core             1704 drivers/clk/clk.c 		if (new_parent->new_child == core)
core             1707 drivers/clk/clk.c 		hlist_add_head(&core->child_node, &new_parent->children);
core             1710 drivers/clk/clk.c 			clk_core_update_orphan_status(core, becomes_orphan);
core             1712 drivers/clk/clk.c 		hlist_add_head(&core->child_node, &clk_orphan_list);
core             1714 drivers/clk/clk.c 			clk_core_update_orphan_status(core, true);
core             1717 drivers/clk/clk.c 	core->parent = new_parent;
core             1720 drivers/clk/clk.c static struct clk_core *__clk_set_parent_before(struct clk_core *core,
core             1724 drivers/clk/clk.c 	struct clk_core *old_parent = core->parent;
core             1747 drivers/clk/clk.c 	if (core->flags & CLK_OPS_PARENT_ENABLE) {
core             1753 drivers/clk/clk.c 	if (core->prepare_count) {
core             1755 drivers/clk/clk.c 		clk_core_enable_lock(core);
core             1760 drivers/clk/clk.c 	clk_reparent(core, parent);
core             1766 drivers/clk/clk.c static void __clk_set_parent_after(struct clk_core *core,
core             1774 drivers/clk/clk.c 	if (core->prepare_count) {
core             1775 drivers/clk/clk.c 		clk_core_disable_lock(core);
core             1780 drivers/clk/clk.c 	if (core->flags & CLK_OPS_PARENT_ENABLE) {
core             1786 drivers/clk/clk.c static int __clk_set_parent(struct clk_core *core, struct clk_core *parent,
core             1793 drivers/clk/clk.c 	old_parent = __clk_set_parent_before(core, parent);
core             1795 drivers/clk/clk.c 	trace_clk_set_parent(core, parent);
core             1798 drivers/clk/clk.c 	if (parent && core->ops->set_parent)
core             1799 drivers/clk/clk.c 		ret = core->ops->set_parent(core->hw, p_index);
core             1801 drivers/clk/clk.c 	trace_clk_set_parent_complete(core, parent);
core             1805 drivers/clk/clk.c 		clk_reparent(core, old_parent);
core             1807 drivers/clk/clk.c 		__clk_set_parent_after(core, old_parent, parent);
core             1812 drivers/clk/clk.c 	__clk_set_parent_after(core, parent, old_parent);
core             1831 drivers/clk/clk.c static int __clk_speculate_rates(struct clk_core *core,
core             1840 drivers/clk/clk.c 	new_rate = clk_recalc(core, parent_rate);
core             1843 drivers/clk/clk.c 	if (core->notifier_count)
core             1844 drivers/clk/clk.c 		ret = __clk_notify(core, PRE_RATE_CHANGE, core->rate, new_rate);
core             1848 drivers/clk/clk.c 				__func__, core->name, ret);
core             1852 drivers/clk/clk.c 	hlist_for_each_entry(child, &core->children, child_node) {
core             1862 drivers/clk/clk.c static void clk_calc_subtree(struct clk_core *core, unsigned long new_rate,
core             1867 drivers/clk/clk.c 	core->new_rate = new_rate;
core             1868 drivers/clk/clk.c 	core->new_parent = new_parent;
core             1869 drivers/clk/clk.c 	core->new_parent_index = p_index;
core             1871 drivers/clk/clk.c 	core->new_child = NULL;
core             1872 drivers/clk/clk.c 	if (new_parent && new_parent != core->parent)
core             1873 drivers/clk/clk.c 		new_parent->new_child = core;
core             1875 drivers/clk/clk.c 	hlist_for_each_entry(child, &core->children, child_node) {
core             1885 drivers/clk/clk.c static struct clk_core *clk_calc_new_rates(struct clk_core *core,
core             1888 drivers/clk/clk.c 	struct clk_core *top = core;
core             1898 drivers/clk/clk.c 	if (IS_ERR_OR_NULL(core))
core             1902 drivers/clk/clk.c 	parent = old_parent = core->parent;
core             1906 drivers/clk/clk.c 	clk_core_get_boundaries(core, &min_rate, &max_rate);
core             1909 drivers/clk/clk.c 	if (clk_core_can_round(core)) {
core             1916 drivers/clk/clk.c 		clk_core_init_rate_req(core, &req);
core             1918 drivers/clk/clk.c 		ret = clk_core_determine_round_nolock(core, &req);
core             1924 drivers/clk/clk.c 		parent = req.best_parent_hw ? req.best_parent_hw->core : NULL;
core             1928 drivers/clk/clk.c 	} else if (!parent || !(core->flags & CLK_SET_RATE_PARENT)) {
core             1930 drivers/clk/clk.c 		core->new_rate = core->rate;
core             1941 drivers/clk/clk.c 	    (core->flags & CLK_SET_PARENT_GATE) && core->prepare_count) {
core             1943 drivers/clk/clk.c 			 __func__, core->name);
core             1948 drivers/clk/clk.c 	if (parent && core->num_parents > 1) {
core             1949 drivers/clk/clk.c 		p_index = clk_fetch_parent_index(core, parent);
core             1952 drivers/clk/clk.c 				 __func__, parent->name, core->name);
core             1957 drivers/clk/clk.c 	if ((core->flags & CLK_SET_RATE_PARENT) && parent &&
core             1962 drivers/clk/clk.c 	clk_calc_subtree(core, new_rate, parent, p_index);
core             1972 drivers/clk/clk.c static struct clk_core *clk_propagate_rate_change(struct clk_core *core,
core             1978 drivers/clk/clk.c 	if (core->rate == core->new_rate)
core             1981 drivers/clk/clk.c 	if (core->notifier_count) {
core             1982 drivers/clk/clk.c 		ret = __clk_notify(core, event, core->rate, core->new_rate);
core             1984 drivers/clk/clk.c 			fail_clk = core;
core             1987 drivers/clk/clk.c 	hlist_for_each_entry(child, &core->children, child_node) {
core             1989 drivers/clk/clk.c 		if (child->new_parent && child->new_parent != core)
core             1997 drivers/clk/clk.c 	if (core->new_child) {
core             1998 drivers/clk/clk.c 		tmp_clk = clk_propagate_rate_change(core->new_child, event);
core             2010 drivers/clk/clk.c static void clk_change_rate(struct clk_core *core)
core             2020 drivers/clk/clk.c 	old_rate = core->rate;
core             2022 drivers/clk/clk.c 	if (core->new_parent) {
core             2023 drivers/clk/clk.c 		parent = core->new_parent;
core             2024 drivers/clk/clk.c 		best_parent_rate = core->new_parent->rate;
core             2025 drivers/clk/clk.c 	} else if (core->parent) {
core             2026 drivers/clk/clk.c 		parent = core->parent;
core             2027 drivers/clk/clk.c 		best_parent_rate = core->parent->rate;
core             2030 drivers/clk/clk.c 	if (clk_pm_runtime_get(core))
core             2033 drivers/clk/clk.c 	if (core->flags & CLK_SET_RATE_UNGATE) {
core             2036 drivers/clk/clk.c 		clk_core_prepare(core);
core             2038 drivers/clk/clk.c 		clk_core_enable(core);
core             2042 drivers/clk/clk.c 	if (core->new_parent && core->new_parent != core->parent) {
core             2043 drivers/clk/clk.c 		old_parent = __clk_set_parent_before(core, core->new_parent);
core             2044 drivers/clk/clk.c 		trace_clk_set_parent(core, core->new_parent);
core             2046 drivers/clk/clk.c 		if (core->ops->set_rate_and_parent) {
core             2048 drivers/clk/clk.c 			core->ops->set_rate_and_parent(core->hw, core->new_rate,
core             2050 drivers/clk/clk.c 					core->new_parent_index);
core             2051 drivers/clk/clk.c 		} else if (core->ops->set_parent) {
core             2052 drivers/clk/clk.c 			core->ops->set_parent(core->hw, core->new_parent_index);
core             2055 drivers/clk/clk.c 		trace_clk_set_parent_complete(core, core->new_parent);
core             2056 drivers/clk/clk.c 		__clk_set_parent_after(core, core->new_parent, old_parent);
core             2059 drivers/clk/clk.c 	if (core->flags & CLK_OPS_PARENT_ENABLE)
core             2062 drivers/clk/clk.c 	trace_clk_set_rate(core, core->new_rate);
core             2064 drivers/clk/clk.c 	if (!skip_set_rate && core->ops->set_rate)
core             2065 drivers/clk/clk.c 		core->ops->set_rate(core->hw, core->new_rate, best_parent_rate);
core             2067 drivers/clk/clk.c 	trace_clk_set_rate_complete(core, core->new_rate);
core             2069 drivers/clk/clk.c 	core->rate = clk_recalc(core, best_parent_rate);
core             2071 drivers/clk/clk.c 	if (core->flags & CLK_SET_RATE_UNGATE) {
core             2075 drivers/clk/clk.c 		clk_core_disable(core);
core             2077 drivers/clk/clk.c 		clk_core_unprepare(core);
core             2080 drivers/clk/clk.c 	if (core->flags & CLK_OPS_PARENT_ENABLE)
core             2083 drivers/clk/clk.c 	if (core->notifier_count && old_rate != core->rate)
core             2084 drivers/clk/clk.c 		__clk_notify(core, POST_RATE_CHANGE, old_rate, core->rate);
core             2086 drivers/clk/clk.c 	if (core->flags & CLK_RECALC_NEW_RATES)
core             2087 drivers/clk/clk.c 		(void)clk_calc_new_rates(core, core->new_rate);
core             2093 drivers/clk/clk.c 	hlist_for_each_entry_safe(child, tmp, &core->children, child_node) {
core             2095 drivers/clk/clk.c 		if (child->new_parent && child->new_parent != core)
core             2101 drivers/clk/clk.c 	if (core->new_child)
core             2102 drivers/clk/clk.c 		clk_change_rate(core->new_child);
core             2104 drivers/clk/clk.c 	clk_pm_runtime_put(core);
core             2107 drivers/clk/clk.c static unsigned long clk_core_req_round_rate_nolock(struct clk_core *core,
core             2115 drivers/clk/clk.c 	if (!core)
core             2119 drivers/clk/clk.c 	cnt = clk_core_rate_nuke_protect(core);
core             2123 drivers/clk/clk.c 	clk_core_get_boundaries(core, &req.min_rate, &req.max_rate);
core             2126 drivers/clk/clk.c 	ret = clk_core_round_rate_nolock(core, &req);
core             2129 drivers/clk/clk.c 	clk_core_rate_restore_protect(core, cnt);
core             2134 drivers/clk/clk.c static int clk_core_set_rate_nolock(struct clk_core *core,
core             2141 drivers/clk/clk.c 	if (!core)
core             2144 drivers/clk/clk.c 	rate = clk_core_req_round_rate_nolock(core, req_rate);
core             2147 drivers/clk/clk.c 	if (rate == clk_core_get_rate_nolock(core))
core             2151 drivers/clk/clk.c 	if (clk_core_rate_is_protected(core))
core             2155 drivers/clk/clk.c 	top = clk_calc_new_rates(core, req_rate);
core             2159 drivers/clk/clk.c 	ret = clk_pm_runtime_get(core);
core             2176 drivers/clk/clk.c 	core->req_rate = req_rate;
core             2178 drivers/clk/clk.c 	clk_pm_runtime_put(core);
core             2215 drivers/clk/clk.c 		clk_core_rate_unprotect(clk->core);
core             2217 drivers/clk/clk.c 	ret = clk_core_set_rate_nolock(clk->core, rate);
core             2220 drivers/clk/clk.c 		clk_core_rate_protect(clk->core);
core             2263 drivers/clk/clk.c 	ret = clk_core_set_rate_nolock(clk->core, rate);
core             2265 drivers/clk/clk.c 		clk_core_rate_protect(clk->core);
core             2293 drivers/clk/clk.c 		       __func__, clk->core->name, clk->dev_id, clk->con_id,
core             2301 drivers/clk/clk.c 		clk_core_rate_unprotect(clk->core);
core             2309 drivers/clk/clk.c 	rate = clk_core_get_rate_nolock(clk->core);
core             2329 drivers/clk/clk.c 		ret = clk_core_set_rate_nolock(clk->core, rate);
core             2338 drivers/clk/clk.c 		clk_core_rate_protect(clk->core);
core             2393 drivers/clk/clk.c 	parent = !clk->core->parent ? NULL : clk->core->parent->hw->clk;
core             2400 drivers/clk/clk.c static struct clk_core *__clk_init_parent(struct clk_core *core)
core             2404 drivers/clk/clk.c 	if (core->num_parents > 1 && core->ops->get_parent)
core             2405 drivers/clk/clk.c 		index = core->ops->get_parent(core->hw);
core             2407 drivers/clk/clk.c 	return clk_core_get_parent_by_index(core, index);
core             2410 drivers/clk/clk.c static void clk_core_reparent(struct clk_core *core,
core             2413 drivers/clk/clk.c 	clk_reparent(core, new_parent);
core             2414 drivers/clk/clk.c 	__clk_recalc_accuracies(core);
core             2415 drivers/clk/clk.c 	__clk_recalc_rates(core, POST_RATE_CHANGE);
core             2423 drivers/clk/clk.c 	clk_core_reparent(hw->core, !new_parent ? NULL : new_parent->core);
core             2438 drivers/clk/clk.c 	struct clk_core *core, *parent_core;
core             2445 drivers/clk/clk.c 	core = clk->core;
core             2446 drivers/clk/clk.c 	parent_core = parent->core;
core             2449 drivers/clk/clk.c 	if (core->parent == parent_core)
core             2452 drivers/clk/clk.c 	for (i = 0; i < core->num_parents; i++)
core             2453 drivers/clk/clk.c 		if (!strcmp(core->parents[i].name, parent_core->name))
core             2460 drivers/clk/clk.c static int clk_core_set_parent_nolock(struct clk_core *core,
core             2469 drivers/clk/clk.c 	if (!core)
core             2472 drivers/clk/clk.c 	if (core->parent == parent)
core             2476 drivers/clk/clk.c 	if (core->num_parents > 1 && !core->ops->set_parent)
core             2480 drivers/clk/clk.c 	if ((core->flags & CLK_SET_PARENT_GATE) && core->prepare_count)
core             2483 drivers/clk/clk.c 	if (clk_core_rate_is_protected(core))
core             2488 drivers/clk/clk.c 		p_index = clk_fetch_parent_index(core, parent);
core             2491 drivers/clk/clk.c 					__func__, parent->name, core->name);
core             2497 drivers/clk/clk.c 	ret = clk_pm_runtime_get(core);
core             2502 drivers/clk/clk.c 	ret = __clk_speculate_rates(core, p_rate);
core             2509 drivers/clk/clk.c 	ret = __clk_set_parent(core, parent, p_index);
core             2513 drivers/clk/clk.c 		__clk_recalc_rates(core, ABORT_RATE_CHANGE);
core             2515 drivers/clk/clk.c 		__clk_recalc_rates(core, POST_RATE_CHANGE);
core             2516 drivers/clk/clk.c 		__clk_recalc_accuracies(core);
core             2520 drivers/clk/clk.c 	clk_pm_runtime_put(core);
core             2527 drivers/clk/clk.c 	return clk_core_set_parent_nolock(hw->core, parent->core);
core             2558 drivers/clk/clk.c 		clk_core_rate_unprotect(clk->core);
core             2560 drivers/clk/clk.c 	ret = clk_core_set_parent_nolock(clk->core,
core             2561 drivers/clk/clk.c 					 parent ? parent->core : NULL);
core             2564 drivers/clk/clk.c 		clk_core_rate_protect(clk->core);
core             2572 drivers/clk/clk.c static int clk_core_set_phase_nolock(struct clk_core *core, int degrees)
core             2578 drivers/clk/clk.c 	if (!core)
core             2581 drivers/clk/clk.c 	if (clk_core_rate_is_protected(core))
core             2584 drivers/clk/clk.c 	trace_clk_set_phase(core, degrees);
core             2586 drivers/clk/clk.c 	if (core->ops->set_phase) {
core             2587 drivers/clk/clk.c 		ret = core->ops->set_phase(core->hw, degrees);
core             2589 drivers/clk/clk.c 			core->phase = degrees;
core             2592 drivers/clk/clk.c 	trace_clk_set_phase_complete(core, degrees);
core             2632 drivers/clk/clk.c 		clk_core_rate_unprotect(clk->core);
core             2634 drivers/clk/clk.c 	ret = clk_core_set_phase_nolock(clk->core, degrees);
core             2637 drivers/clk/clk.c 		clk_core_rate_protect(clk->core);
core             2645 drivers/clk/clk.c static int clk_core_get_phase(struct clk_core *core)
core             2650 drivers/clk/clk.c 	if (!core->ops->get_phase)
core             2654 drivers/clk/clk.c 	ret = core->ops->get_phase(core->hw);
core             2656 drivers/clk/clk.c 		core->phase = ret;
core             2676 drivers/clk/clk.c 	ret = clk_core_get_phase(clk->core);
core             2683 drivers/clk/clk.c static void clk_core_reset_duty_cycle_nolock(struct clk_core *core)
core             2686 drivers/clk/clk.c 	core->duty.num = 1;
core             2687 drivers/clk/clk.c 	core->duty.den = 2;
core             2690 drivers/clk/clk.c static int clk_core_update_duty_cycle_parent_nolock(struct clk_core *core);
core             2692 drivers/clk/clk.c static int clk_core_update_duty_cycle_nolock(struct clk_core *core)
core             2694 drivers/clk/clk.c 	struct clk_duty *duty = &core->duty;
core             2697 drivers/clk/clk.c 	if (!core->ops->get_duty_cycle)
core             2698 drivers/clk/clk.c 		return clk_core_update_duty_cycle_parent_nolock(core);
core             2700 drivers/clk/clk.c 	ret = core->ops->get_duty_cycle(core->hw, duty);
core             2713 drivers/clk/clk.c 	clk_core_reset_duty_cycle_nolock(core);
core             2717 drivers/clk/clk.c static int clk_core_update_duty_cycle_parent_nolock(struct clk_core *core)
core             2721 drivers/clk/clk.c 	if (core->parent &&
core             2722 drivers/clk/clk.c 	    core->flags & CLK_DUTY_CYCLE_PARENT) {
core             2723 drivers/clk/clk.c 		ret = clk_core_update_duty_cycle_nolock(core->parent);
core             2724 drivers/clk/clk.c 		memcpy(&core->duty, &core->parent->duty, sizeof(core->duty));
core             2726 drivers/clk/clk.c 		clk_core_reset_duty_cycle_nolock(core);
core             2732 drivers/clk/clk.c static int clk_core_set_duty_cycle_parent_nolock(struct clk_core *core,
core             2735 drivers/clk/clk.c static int clk_core_set_duty_cycle_nolock(struct clk_core *core,
core             2742 drivers/clk/clk.c 	if (clk_core_rate_is_protected(core))
core             2745 drivers/clk/clk.c 	trace_clk_set_duty_cycle(core, duty);
core             2747 drivers/clk/clk.c 	if (!core->ops->set_duty_cycle)
core             2748 drivers/clk/clk.c 		return clk_core_set_duty_cycle_parent_nolock(core, duty);
core             2750 drivers/clk/clk.c 	ret = core->ops->set_duty_cycle(core->hw, duty);
core             2752 drivers/clk/clk.c 		memcpy(&core->duty, duty, sizeof(*duty));
core             2754 drivers/clk/clk.c 	trace_clk_set_duty_cycle_complete(core, duty);
core             2759 drivers/clk/clk.c static int clk_core_set_duty_cycle_parent_nolock(struct clk_core *core,
core             2764 drivers/clk/clk.c 	if (core->parent &&
core             2765 drivers/clk/clk.c 	    core->flags & (CLK_DUTY_CYCLE_PARENT | CLK_SET_RATE_PARENT)) {
core             2766 drivers/clk/clk.c 		ret = clk_core_set_duty_cycle_nolock(core->parent, duty);
core             2767 drivers/clk/clk.c 		memcpy(&core->duty, &core->parent->duty, sizeof(core->duty));
core             2802 drivers/clk/clk.c 		clk_core_rate_unprotect(clk->core);
core             2804 drivers/clk/clk.c 	ret = clk_core_set_duty_cycle_nolock(clk->core, &duty);
core             2807 drivers/clk/clk.c 		clk_core_rate_protect(clk->core);
core             2815 drivers/clk/clk.c static int clk_core_get_scaled_duty_cycle(struct clk_core *core,
core             2818 drivers/clk/clk.c 	struct clk_duty *duty = &core->duty;
core             2823 drivers/clk/clk.c 	ret = clk_core_update_duty_cycle_nolock(core);
core             2845 drivers/clk/clk.c 	return clk_core_get_scaled_duty_cycle(clk->core, scale);
core             2868 drivers/clk/clk.c 		if (p->core == q->core)
core             3026 drivers/clk/clk.c 	struct clk_core *core = s->private;
core             3027 drivers/clk/clk.c 	unsigned long flags = core->flags;
core             3045 drivers/clk/clk.c static void possible_parent_show(struct seq_file *s, struct clk_core *core,
core             3062 drivers/clk/clk.c 	parent = clk_core_get_parent_by_index(core, i);
core             3065 drivers/clk/clk.c 	else if (core->parents[i].name)
core             3066 drivers/clk/clk.c 		seq_puts(s, core->parents[i].name);
core             3067 drivers/clk/clk.c 	else if (core->parents[i].fw_name)
core             3068 drivers/clk/clk.c 		seq_printf(s, "<%s>(fw)", core->parents[i].fw_name);
core             3069 drivers/clk/clk.c 	else if (core->parents[i].index >= 0)
core             3071 drivers/clk/clk.c 			 of_clk_get_parent_name(core->of_node,
core             3072 drivers/clk/clk.c 						core->parents[i].index));
core             3081 drivers/clk/clk.c 	struct clk_core *core = s->private;
core             3084 drivers/clk/clk.c 	for (i = 0; i < core->num_parents - 1; i++)
core             3085 drivers/clk/clk.c 		possible_parent_show(s, core, i, ' ');
core             3087 drivers/clk/clk.c 	possible_parent_show(s, core, i, '\n');
core             3095 drivers/clk/clk.c 	struct clk_core *core = s->private;
core             3097 drivers/clk/clk.c 	if (core->parent)
core             3098 drivers/clk/clk.c 		seq_printf(s, "%s\n", core->parent->name);
core             3106 drivers/clk/clk.c 	struct clk_core *core = s->private;
core             3107 drivers/clk/clk.c 	struct clk_duty *duty = &core->duty;
core             3117 drivers/clk/clk.c 	struct clk_core *core = s->private;
core             3121 drivers/clk/clk.c 	clk_core_get_boundaries(core, &min_rate, &max_rate);
core             3131 drivers/clk/clk.c 	struct clk_core *core = s->private;
core             3135 drivers/clk/clk.c 	clk_core_get_boundaries(core, &min_rate, &max_rate);
core             3143 drivers/clk/clk.c static void clk_debug_create_one(struct clk_core *core, struct dentry *pdentry)
core             3147 drivers/clk/clk.c 	if (!core || !pdentry)
core             3150 drivers/clk/clk.c 	root = debugfs_create_dir(core->name, pdentry);
core             3151 drivers/clk/clk.c 	core->dentry = root;
core             3153 drivers/clk/clk.c 	debugfs_create_ulong("clk_rate", 0444, root, &core->rate);
core             3154 drivers/clk/clk.c 	debugfs_create_file("clk_min_rate", 0444, root, core, &clk_min_rate_fops);
core             3155 drivers/clk/clk.c 	debugfs_create_file("clk_max_rate", 0444, root, core, &clk_max_rate_fops);
core             3156 drivers/clk/clk.c 	debugfs_create_ulong("clk_accuracy", 0444, root, &core->accuracy);
core             3157 drivers/clk/clk.c 	debugfs_create_u32("clk_phase", 0444, root, &core->phase);
core             3158 drivers/clk/clk.c 	debugfs_create_file("clk_flags", 0444, root, core, &clk_flags_fops);
core             3159 drivers/clk/clk.c 	debugfs_create_u32("clk_prepare_count", 0444, root, &core->prepare_count);
core             3160 drivers/clk/clk.c 	debugfs_create_u32("clk_enable_count", 0444, root, &core->enable_count);
core             3161 drivers/clk/clk.c 	debugfs_create_u32("clk_protect_count", 0444, root, &core->protect_count);
core             3162 drivers/clk/clk.c 	debugfs_create_u32("clk_notifier_count", 0444, root, &core->notifier_count);
core             3163 drivers/clk/clk.c 	debugfs_create_file("clk_duty_cycle", 0444, root, core,
core             3166 drivers/clk/clk.c 	if (core->num_parents > 0)
core             3167 drivers/clk/clk.c 		debugfs_create_file("clk_parent", 0444, root, core,
core             3170 drivers/clk/clk.c 	if (core->num_parents > 1)
core             3171 drivers/clk/clk.c 		debugfs_create_file("clk_possible_parents", 0444, root, core,
core             3174 drivers/clk/clk.c 	if (core->ops->debug_init)
core             3175 drivers/clk/clk.c 		core->ops->debug_init(core->hw, core->dentry);
core             3186 drivers/clk/clk.c static void clk_debug_register(struct clk_core *core)
core             3189 drivers/clk/clk.c 	hlist_add_head(&core->debug_node, &clk_debug_list);
core             3191 drivers/clk/clk.c 		clk_debug_create_one(core, rootdir);
core             3203 drivers/clk/clk.c static void clk_debug_unregister(struct clk_core *core)
core             3206 drivers/clk/clk.c 	hlist_del_init(&core->debug_node);
core             3207 drivers/clk/clk.c 	debugfs_remove_recursive(core->dentry);
core             3208 drivers/clk/clk.c 	core->dentry = NULL;
core             3223 drivers/clk/clk.c 	struct clk_core *core;
core             3237 drivers/clk/clk.c 	hlist_for_each_entry(core, &clk_debug_list, debug_node)
core             3238 drivers/clk/clk.c 		clk_debug_create_one(core, rootdir);
core             3247 drivers/clk/clk.c static inline void clk_debug_register(struct clk_core *core) { }
core             3248 drivers/clk/clk.c static inline void clk_debug_reparent(struct clk_core *core,
core             3252 drivers/clk/clk.c static inline void clk_debug_unregister(struct clk_core *core)
core             3292 drivers/clk/clk.c static int __clk_core_init(struct clk_core *core)
core             3297 drivers/clk/clk.c 	if (!core)
core             3302 drivers/clk/clk.c 	ret = clk_pm_runtime_get(core);
core             3307 drivers/clk/clk.c 	if (clk_core_lookup(core->name)) {
core             3309 drivers/clk/clk.c 				__func__, core->name);
core             3315 drivers/clk/clk.c 	if (core->ops->set_rate &&
core             3316 drivers/clk/clk.c 	    !((core->ops->round_rate || core->ops->determine_rate) &&
core             3317 drivers/clk/clk.c 	      core->ops->recalc_rate)) {
core             3319 drivers/clk/clk.c 		       __func__, core->name);
core             3324 drivers/clk/clk.c 	if (core->ops->set_parent && !core->ops->get_parent) {
core             3326 drivers/clk/clk.c 		       __func__, core->name);
core             3331 drivers/clk/clk.c 	if (core->num_parents > 1 && !core->ops->get_parent) {
core             3333 drivers/clk/clk.c 		       __func__, core->name);
core             3338 drivers/clk/clk.c 	if (core->ops->set_rate_and_parent &&
core             3339 drivers/clk/clk.c 			!(core->ops->set_parent && core->ops->set_rate)) {
core             3341 drivers/clk/clk.c 				__func__, core->name);
core             3357 drivers/clk/clk.c 	if (core->ops->init)
core             3358 drivers/clk/clk.c 		core->ops->init(core->hw);
core             3361 drivers/clk/clk.c 	core->parent = __clk_init_parent(core);
core             3373 drivers/clk/clk.c 	if (core->parent) {
core             3374 drivers/clk/clk.c 		hlist_add_head(&core->child_node,
core             3375 drivers/clk/clk.c 				&core->parent->children);
core             3376 drivers/clk/clk.c 		core->orphan = core->parent->orphan;
core             3377 drivers/clk/clk.c 	} else if (!core->num_parents) {
core             3378 drivers/clk/clk.c 		hlist_add_head(&core->child_node, &clk_root_list);
core             3379 drivers/clk/clk.c 		core->orphan = false;
core             3381 drivers/clk/clk.c 		hlist_add_head(&core->child_node, &clk_orphan_list);
core             3382 drivers/clk/clk.c 		core->orphan = true;
core             3392 drivers/clk/clk.c 	if (core->ops->recalc_accuracy)
core             3393 drivers/clk/clk.c 		core->accuracy = core->ops->recalc_accuracy(core->hw,
core             3394 drivers/clk/clk.c 					__clk_get_accuracy(core->parent));
core             3395 drivers/clk/clk.c 	else if (core->parent)
core             3396 drivers/clk/clk.c 		core->accuracy = core->parent->accuracy;
core             3398 drivers/clk/clk.c 		core->accuracy = 0;
core             3405 drivers/clk/clk.c 	clk_core_get_phase(core);
core             3410 drivers/clk/clk.c 	clk_core_update_duty_cycle_nolock(core);
core             3418 drivers/clk/clk.c 	if (core->ops->recalc_rate)
core             3419 drivers/clk/clk.c 		rate = core->ops->recalc_rate(core->hw,
core             3420 drivers/clk/clk.c 				clk_core_get_rate_nolock(core->parent));
core             3421 drivers/clk/clk.c 	else if (core->parent)
core             3422 drivers/clk/clk.c 		rate = core->parent->rate;
core             3425 drivers/clk/clk.c 	core->rate = core->req_rate = rate;
core             3432 drivers/clk/clk.c 	if (core->flags & CLK_IS_CRITICAL) {
core             3435 drivers/clk/clk.c 		ret = clk_core_prepare(core);
core             3440 drivers/clk/clk.c 		ret = clk_core_enable(core);
core             3443 drivers/clk/clk.c 			clk_core_unprepare(core);
core             3451 drivers/clk/clk.c 	kref_init(&core->ref);
core             3453 drivers/clk/clk.c 	clk_pm_runtime_put(core);
core             3456 drivers/clk/clk.c 		hlist_del_init(&core->child_node);
core             3461 drivers/clk/clk.c 		clk_debug_register(core);
core             3471 drivers/clk/clk.c static void clk_core_link_consumer(struct clk_core *core, struct clk *clk)
core             3474 drivers/clk/clk.c 	hlist_add_head(&clk->clks_node, &core->clks);
core             3496 drivers/clk/clk.c static struct clk *alloc_clk(struct clk_core *core, const char *dev_id,
core             3505 drivers/clk/clk.c 	clk->core = core;
core             3542 drivers/clk/clk.c 	struct clk_core *core;
core             3548 drivers/clk/clk.c 	core = hw->core;
core             3549 drivers/clk/clk.c 	clk = alloc_clk(core, dev_id, con_id);
core             3554 drivers/clk/clk.c 	if (!try_module_get(core->owner)) {
core             3559 drivers/clk/clk.c 	kref_get(&core->ref);
core             3560 drivers/clk/clk.c 	clk_core_link_consumer(core, clk);
core             3582 drivers/clk/clk.c static int clk_core_populate_parent_map(struct clk_core *core,
core             3600 drivers/clk/clk.c 	core->parents = parents;
core             3611 drivers/clk/clk.c 				__func__, core->name);
core             3644 drivers/clk/clk.c static void clk_core_free_parent_map(struct clk_core *core)
core             3646 drivers/clk/clk.c 	int i = core->num_parents;
core             3648 drivers/clk/clk.c 	if (!core->num_parents)
core             3652 drivers/clk/clk.c 		kfree_const(core->parents[i].name);
core             3653 drivers/clk/clk.c 		kfree_const(core->parents[i].fw_name);
core             3656 drivers/clk/clk.c 	kfree(core->parents);
core             3663 drivers/clk/clk.c 	struct clk_core *core;
core             3673 drivers/clk/clk.c 	core = kzalloc(sizeof(*core), GFP_KERNEL);
core             3674 drivers/clk/clk.c 	if (!core) {
core             3679 drivers/clk/clk.c 	core->name = kstrdup_const(init->name, GFP_KERNEL);
core             3680 drivers/clk/clk.c 	if (!core->name) {
core             3689 drivers/clk/clk.c 	core->ops = init->ops;
core             3692 drivers/clk/clk.c 		core->rpm_enabled = true;
core             3693 drivers/clk/clk.c 	core->dev = dev;
core             3694 drivers/clk/clk.c 	core->of_node = np;
core             3696 drivers/clk/clk.c 		core->owner = dev->driver->owner;
core             3697 drivers/clk/clk.c 	core->hw = hw;
core             3698 drivers/clk/clk.c 	core->flags = init->flags;
core             3699 drivers/clk/clk.c 	core->num_parents = init->num_parents;
core             3700 drivers/clk/clk.c 	core->min_rate = 0;
core             3701 drivers/clk/clk.c 	core->max_rate = ULONG_MAX;
core             3702 drivers/clk/clk.c 	hw->core = core;
core             3704 drivers/clk/clk.c 	ret = clk_core_populate_parent_map(core, init);
core             3708 drivers/clk/clk.c 	INIT_HLIST_HEAD(&core->clks);
core             3714 drivers/clk/clk.c 	hw->clk = alloc_clk(core, NULL, NULL);
core             3720 drivers/clk/clk.c 	clk_core_link_consumer(hw->core, hw->clk);
core             3722 drivers/clk/clk.c 	ret = __clk_core_init(core);
core             3734 drivers/clk/clk.c 	clk_core_free_parent_map(core);
core             3737 drivers/clk/clk.c 	kfree_const(core->name);
core             3739 drivers/clk/clk.c 	kfree(core);
core             3822 drivers/clk/clk.c 	struct clk_core *core = container_of(ref, struct clk_core, ref);
core             3826 drivers/clk/clk.c 	clk_core_free_parent_map(core);
core             3827 drivers/clk/clk.c 	kfree_const(core->name);
core             3828 drivers/clk/clk.c 	kfree(core);
core             3873 drivers/clk/clk.c 		if (root->parents[i].core == target)
core             3874 drivers/clk/clk.c 			root->parents[i].core = NULL;
core             3881 drivers/clk/clk.c static void clk_core_evict_parent_cache(struct clk_core *core)
core             3890 drivers/clk/clk.c 			clk_core_evict_parent_cache_subtree(root, core);
core             3905 drivers/clk/clk.c 	clk_debug_unregister(clk->core);
core             3909 drivers/clk/clk.c 	if (clk->core->ops == &clk_nodrv_ops) {
core             3911 drivers/clk/clk.c 		       clk->core->name);
core             3919 drivers/clk/clk.c 	clk->core->ops = &clk_nodrv_ops;
core             3922 drivers/clk/clk.c 	if (!hlist_empty(&clk->core->children)) {
core             3927 drivers/clk/clk.c 		hlist_for_each_entry_safe(child, t, &clk->core->children,
core             3932 drivers/clk/clk.c 	clk_core_evict_parent_cache(clk->core);
core             3934 drivers/clk/clk.c 	hlist_del_init(&clk->core->child_node);
core             3936 drivers/clk/clk.c 	if (clk->core->prepare_count)
core             3938 drivers/clk/clk.c 					__func__, clk->core->name);
core             3940 drivers/clk/clk.c 	if (clk->core->protect_count)
core             3942 drivers/clk/clk.c 					__func__, clk->core->name);
core             3944 drivers/clk/clk.c 	kref_put(&clk->core->ref, __clk_release);
core             4099 drivers/clk/clk.c 		clk->core->protect_count -= (clk->exclusive_count - 1);
core             4100 drivers/clk/clk.c 		clk_core_rate_unprotect(clk->core);
core             4105 drivers/clk/clk.c 	if (clk->min_rate > clk->core->req_rate ||
core             4106 drivers/clk/clk.c 	    clk->max_rate < clk->core->req_rate)
core             4107 drivers/clk/clk.c 		clk_core_set_rate_nolock(clk->core, clk->core->req_rate);
core             4109 drivers/clk/clk.c 	owner = clk->core->owner;
core             4110 drivers/clk/clk.c 	kref_put(&clk->core->ref, __clk_release);
core             4170 drivers/clk/clk.c 	clk->core->notifier_count++;
core             4207 drivers/clk/clk.c 		clk->core->notifier_count--;
core               92 drivers/clk/microchip/clk-core.c 	struct pic32_clk_common *core;
core              182 drivers/clk/microchip/clk-core.c 	spin_lock_irqsave(&pb->core->reg_lock, flags);
core              193 drivers/clk/microchip/clk-core.c 	spin_unlock_irqrestore(&pb->core->reg_lock, flags);
core              215 drivers/clk/microchip/clk-core.c 				      struct pic32_clk_common *core)
core              220 drivers/clk/microchip/clk-core.c 	pbclk = devm_kzalloc(core->dev, sizeof(*pbclk), GFP_KERNEL);
core              225 drivers/clk/microchip/clk-core.c 	pbclk->core = core;
core              226 drivers/clk/microchip/clk-core.c 	pbclk->ctrl_reg = desc->ctrl_reg + core->iobase;
core              228 drivers/clk/microchip/clk-core.c 	clk = devm_clk_register(core->dev, &pbclk->hw);
core              230 drivers/clk/microchip/clk-core.c 		dev_err(core->dev, "%s: clk_register() failed\n", __func__);
core              231 drivers/clk/microchip/clk-core.c 		devm_kfree(core->dev, pbclk);
core              242 drivers/clk/microchip/clk-core.c 	struct pic32_clk_common *core;
core              457 drivers/clk/microchip/clk-core.c 	spin_lock_irqsave(&refo->core->reg_lock, flags);
core              468 drivers/clk/microchip/clk-core.c 	spin_unlock_irqrestore(&refo->core->reg_lock, flags);
core              498 drivers/clk/microchip/clk-core.c 	spin_lock_irqsave(&refo->core->reg_lock, flags);
core              530 drivers/clk/microchip/clk-core.c 	spin_unlock_irqrestore(&refo->core->reg_lock, flags);
core              557 drivers/clk/microchip/clk-core.c 				    struct pic32_clk_common *core)
core              562 drivers/clk/microchip/clk-core.c 	refo = devm_kzalloc(core->dev, sizeof(*refo), GFP_KERNEL);
core              566 drivers/clk/microchip/clk-core.c 	refo->core = core;
core              568 drivers/clk/microchip/clk-core.c 	refo->ctrl_reg = data->ctrl_reg + core->iobase;
core              571 drivers/clk/microchip/clk-core.c 	clk = devm_clk_register(core->dev, &refo->hw);
core              573 drivers/clk/microchip/clk-core.c 		dev_err(core->dev, "%s: clk_register() failed\n", __func__);
core              584 drivers/clk/microchip/clk-core.c 	struct pic32_clk_common *core;
core              697 drivers/clk/microchip/clk-core.c 	spin_lock_irqsave(&pll->core->reg_lock, flags);
core              718 drivers/clk/microchip/clk-core.c 	spin_unlock_irqrestore(&pll->core->reg_lock, flags);
core              731 drivers/clk/microchip/clk-core.c 				    struct pic32_clk_common *core)
core              736 drivers/clk/microchip/clk-core.c 	spll = devm_kzalloc(core->dev, sizeof(*spll), GFP_KERNEL);
core              740 drivers/clk/microchip/clk-core.c 	spll->core = core;
core              742 drivers/clk/microchip/clk-core.c 	spll->ctrl_reg = data->ctrl_reg + core->iobase;
core              743 drivers/clk/microchip/clk-core.c 	spll->status_reg = data->status_reg + core->iobase;
core              750 drivers/clk/microchip/clk-core.c 	clk = devm_clk_register(core->dev, &spll->hw);
core              752 drivers/clk/microchip/clk-core.c 		dev_err(core->dev, "sys_pll: clk_register() failed\n");
core              765 drivers/clk/microchip/clk-core.c 	struct pic32_clk_common *core;
core              797 drivers/clk/microchip/clk-core.c 	spin_lock_irqsave(&sclk->core->reg_lock, flags);
core              812 drivers/clk/microchip/clk-core.c 	spin_unlock_irqrestore(&sclk->core->reg_lock, flags);
core              840 drivers/clk/microchip/clk-core.c 	spin_lock_irqsave(&sclk->core->reg_lock, flags);
core              865 drivers/clk/microchip/clk-core.c 	spin_unlock_irqrestore(&sclk->core->reg_lock, flags);
core              894 drivers/clk/microchip/clk-core.c 		spin_lock_irqsave(&sclk->core->reg_lock, flags);
core              900 drivers/clk/microchip/clk-core.c 		spin_unlock_irqrestore(&sclk->core->reg_lock, flags);
core              924 drivers/clk/microchip/clk-core.c 				   struct pic32_clk_common *core)
core              929 drivers/clk/microchip/clk-core.c 	sclk = devm_kzalloc(core->dev, sizeof(*sclk), GFP_KERNEL);
core              933 drivers/clk/microchip/clk-core.c 	sclk->core = core;
core              935 drivers/clk/microchip/clk-core.c 	sclk->mux_reg = data->mux_reg + core->iobase;
core              936 drivers/clk/microchip/clk-core.c 	sclk->slew_reg = data->slew_reg + core->iobase;
core              940 drivers/clk/microchip/clk-core.c 	clk = devm_clk_register(core->dev, &sclk->hw);
core              942 drivers/clk/microchip/clk-core.c 		dev_err(core->dev, "%s: clk register failed\n", __func__);
core              955 drivers/clk/microchip/clk-core.c 	struct pic32_clk_common *core;
core             1007 drivers/clk/microchip/clk-core.c 				    struct pic32_clk_common *core)
core             1011 drivers/clk/microchip/clk-core.c 	sosc = devm_kzalloc(core->dev, sizeof(*sosc), GFP_KERNEL);
core             1015 drivers/clk/microchip/clk-core.c 	sosc->core = core;
core             1020 drivers/clk/microchip/clk-core.c 	sosc->enable_reg = data->enable_reg + core->iobase;
core             1021 drivers/clk/microchip/clk-core.c 	sosc->status_reg = data->status_reg + core->iobase;
core             1023 drivers/clk/microchip/clk-core.c 	return devm_clk_register(core->dev, &sosc->hw);
core               66 drivers/clk/microchip/clk-core.h 				      struct pic32_clk_common *core);
core               68 drivers/clk/microchip/clk-core.h 				    struct pic32_clk_common *core);
core               70 drivers/clk/microchip/clk-core.h 				   struct pic32_clk_common *core);
core               72 drivers/clk/microchip/clk-core.h 				    struct pic32_clk_common *core);
core               74 drivers/clk/microchip/clk-core.h 				    struct pic32_clk_common *core);
core              129 drivers/clk/microchip/clk-pic32mzda.c 	struct pic32_clk_common core;
core              142 drivers/clk/microchip/clk-pic32mzda.c 	if (readl(cd->core.iobase) & BIT(2))
core              155 drivers/clk/microchip/clk-pic32mzda.c 	struct pic32_clk_common *core;
core              164 drivers/clk/microchip/clk-pic32mzda.c 	core = &cd->core;
core              165 drivers/clk/microchip/clk-pic32mzda.c 	core->iobase = of_io_request_and_map(np, 0, of_node_full_name(np));
core              166 drivers/clk/microchip/clk-pic32mzda.c 	if (IS_ERR(core->iobase)) {
core              168 drivers/clk/microchip/clk-pic32mzda.c 		return PTR_ERR(core->iobase);
core              171 drivers/clk/microchip/clk-pic32mzda.c 	spin_lock_init(&core->reg_lock);
core              172 drivers/clk/microchip/clk-pic32mzda.c 	core->dev = &pdev->dev;
core              189 drivers/clk/microchip/clk-pic32mzda.c 		clks[SOSCCLK] = pic32_sosc_clk_register(&sosc_clk, core);
core              194 drivers/clk/microchip/clk-pic32mzda.c 					       core->iobase,
core              198 drivers/clk/microchip/clk-pic32mzda.c 					       &core->reg_lock);
core              202 drivers/clk/microchip/clk-pic32mzda.c 				       core->iobase + 0x020,
core              203 drivers/clk/microchip/clk-pic32mzda.c 				       PLL_ICLK_SHIFT, 1, 0, &core->reg_lock);
core              208 drivers/clk/microchip/clk-pic32mzda.c 	clks[PLLCLK] = pic32_spll_clk_register(&sys_pll, core);
core              210 drivers/clk/microchip/clk-pic32mzda.c 	clks[SCLK] = pic32_sys_clk_register(&sys_mux_clk, core);
core              214 drivers/clk/microchip/clk-pic32mzda.c 							  core);
core              217 drivers/clk/microchip/clk-pic32mzda.c 		clks[nr_clks] = pic32_refo_clk_register(&ref_clks[i], core);
core              160 drivers/clk/renesas/r7s9210-cpg-mssr.c 	const struct cpg_core_clk *core, const struct cpg_mssr_info *info,
core              168 drivers/clk/renesas/r7s9210-cpg-mssr.c 	parent = clks[core->parent];
core              172 drivers/clk/renesas/r7s9210-cpg-mssr.c 	switch (core->id) {
core              187 drivers/clk/renesas/r7s9210-cpg-mssr.c 	if (core->id == CLK_MAIN)
core              190 drivers/clk/renesas/r7s9210-cpg-mssr.c 	return clk_register_fixed_factor(NULL, core->name,
core              223 drivers/clk/renesas/r8a77970-cpg-mssr.c 	const struct cpg_core_clk *core, const struct cpg_mssr_info *info,
core              231 drivers/clk/renesas/r8a77970-cpg-mssr.c 	switch (core->type) {
core              241 drivers/clk/renesas/r8a77970-cpg-mssr.c 		return rcar_gen3_cpg_clk_register(dev, core, info, clks, base,
core              245 drivers/clk/renesas/r8a77970-cpg-mssr.c 	parent = clks[core->parent];
core              249 drivers/clk/renesas/r8a77970-cpg-mssr.c 	return clk_register_divider_table(NULL, core->name,
core              274 drivers/clk/renesas/rcar-gen2-cpg.c 	const struct cpg_core_clk *core, const struct cpg_mssr_info *info,
core              285 drivers/clk/renesas/rcar-gen2-cpg.c 	parent = clks[core->parent];
core              291 drivers/clk/renesas/rcar-gen2-cpg.c 	switch (core->type) {
core              323 drivers/clk/renesas/rcar-gen2-cpg.c 		return cpg_z_clk_register(core->name, parent_name, base);
core              330 drivers/clk/renesas/rcar-gen2-cpg.c 		return cpg_adsp_clk_register(core->name, parent_name, base);
core              359 drivers/clk/renesas/rcar-gen2-cpg.c 		return cpg_rcan_clk_register(core->name, parent_name, base);
core              366 drivers/clk/renesas/rcar-gen2-cpg.c 		return clk_register_fixed_factor(NULL, core->name, parent_name,
core              369 drivers/clk/renesas/rcar-gen2-cpg.c 		return clk_register_divider_table(NULL, core->name,
core               34 drivers/clk/renesas/rcar-gen2-cpg.h 	const struct cpg_core_clk *core, const struct cpg_mssr_info *info,
core              542 drivers/clk/renesas/rcar-gen3-cpg.c 	const struct cpg_core_clk *core, const struct cpg_mssr_info *info,
core              551 drivers/clk/renesas/rcar-gen3-cpg.c 	parent = clks[core->parent & 0xffff];	/* some types use high bits */
core              555 drivers/clk/renesas/rcar-gen3-cpg.c 	switch (core->type) {
core              610 drivers/clk/renesas/rcar-gen3-cpg.c 		return cpg_sd_clk_register(core->name, base, core->offset,
core              649 drivers/clk/renesas/rcar-gen3-cpg.c 		if (cpg_mode & BIT(core->offset)) {
core              650 drivers/clk/renesas/rcar-gen3-cpg.c 			div = core->div & 0xffff;
core              652 drivers/clk/renesas/rcar-gen3-cpg.c 			parent = clks[core->parent >> 16];
core              655 drivers/clk/renesas/rcar-gen3-cpg.c 			div = core->div >> 16;
core              661 drivers/clk/renesas/rcar-gen3-cpg.c 		return cpg_z_clk_register(core->name, __clk_get_name(parent),
core              662 drivers/clk/renesas/rcar-gen3-cpg.c 					  base, core->div, core->offset);
core              668 drivers/clk/renesas/rcar-gen3-cpg.c 		div = cpg_pll_config->osc_prediv * core->div;
core              677 drivers/clk/renesas/rcar-gen3-cpg.c 			div = core->div & 0xffff;
core              679 drivers/clk/renesas/rcar-gen3-cpg.c 			parent = clks[core->parent >> 16];
core              682 drivers/clk/renesas/rcar-gen3-cpg.c 			div = core->div >> 16;
core              687 drivers/clk/renesas/rcar-gen3-cpg.c 		return clk_register_divider_table(NULL, core->name,
core              694 drivers/clk/renesas/rcar-gen3-cpg.c 		return cpg_rpc_clk_register(core->name, base,
core              698 drivers/clk/renesas/rcar-gen3-cpg.c 		return cpg_rpcd2_clk_register(core->name, base,
core              705 drivers/clk/renesas/rcar-gen3-cpg.c 	return clk_register_fixed_factor(NULL, core->name,
core               70 drivers/clk/renesas/rcar-gen3-cpg.h 	const struct cpg_core_clk *core, const struct cpg_mssr_info *info,
core              305 drivers/clk/renesas/renesas-cpg-mssr.c static void __init cpg_mssr_register_core_clk(const struct cpg_core_clk *core,
core              311 drivers/clk/renesas/renesas-cpg-mssr.c 	unsigned int id = core->id, div = core->div;
core              317 drivers/clk/renesas/renesas-cpg-mssr.c 	if (!core->name) {
core              322 drivers/clk/renesas/renesas-cpg-mssr.c 	switch (core->type) {
core              324 drivers/clk/renesas/renesas-cpg-mssr.c 		clk = of_clk_get_by_name(priv->np, core->name);
core              330 drivers/clk/renesas/renesas-cpg-mssr.c 		WARN_DEBUG(core->parent >= priv->num_core_clks);
core              331 drivers/clk/renesas/renesas-cpg-mssr.c 		parent = priv->clks[core->parent];
core              339 drivers/clk/renesas/renesas-cpg-mssr.c 		if (core->type == CLK_TYPE_DIV6_RO)
core              341 drivers/clk/renesas/renesas-cpg-mssr.c 			div *= (readl(priv->base + core->offset) & 0x3f) + 1;
core              343 drivers/clk/renesas/renesas-cpg-mssr.c 		if (core->type == CLK_TYPE_DIV6P1) {
core              344 drivers/clk/renesas/renesas-cpg-mssr.c 			clk = cpg_div6_register(core->name, 1, &parent_name,
core              345 drivers/clk/renesas/renesas-cpg-mssr.c 						priv->base + core->offset,
core              348 drivers/clk/renesas/renesas-cpg-mssr.c 			clk = clk_register_fixed_factor(NULL, core->name,
core              350 drivers/clk/renesas/renesas-cpg-mssr.c 							core->mult, div);
core              355 drivers/clk/renesas/renesas-cpg-mssr.c 		clk = clk_register_fixed_rate(NULL, core->name, NULL, 0,
core              356 drivers/clk/renesas/renesas-cpg-mssr.c 					      core->mult);
core              361 drivers/clk/renesas/renesas-cpg-mssr.c 			clk = info->cpg_clk_register(dev, core, info,
core              366 drivers/clk/renesas/renesas-cpg-mssr.c 				core->name, core->type);
core              379 drivers/clk/renesas/renesas-cpg-mssr.c 		core->name, PTR_ERR(clk));
core              151 drivers/clk/renesas/renesas-cpg-mssr.h 					const struct cpg_core_clk *core,
core               15 drivers/cpufreq/tegra186-cpufreq.c #define EDVD_CORE_VOLT_FREQ(core)		(0x20 + (core) * 0x4)
core               62 drivers/cpufreq/tegra186-cpufreq.c 		int core;
core               64 drivers/cpufreq/tegra186-cpufreq.c 		for (core = 0; core < ARRAY_SIZE(info->cpus); core++) {
core               65 drivers/cpufreq/tegra186-cpufreq.c 			if (info->cpus[core] == policy->cpu)
core               68 drivers/cpufreq/tegra186-cpufreq.c 		if (core == ARRAY_SIZE(info->cpus))
core               72 drivers/cpufreq/tegra186-cpufreq.c 			data->regs + info->offset + EDVD_CORE_VOLT_FREQ(core);
core              125 drivers/crypto/cavium/cpt/cptpf_main.c 	int ret = 0, core = 0, shift = 0;
core              143 drivers/crypto/cavium/cpt/cptpf_main.c 		core = CPT_MAX_SE_CORES; /* start couting from 10 */
core              146 drivers/crypto/cavium/cpt/cptpf_main.c 		core = 0; /* start couting from 0 */
core              151 drivers/crypto/cavium/cpt/cptpf_main.c 	for (; core < total_cores ; core++, shift++) {
core              154 drivers/crypto/cavium/cpt/cptpf_main.c 					CPTX_PF_ENGX_UCODE_BASE(0, core),
core              412 drivers/crypto/cavium/cpt/cptpf_main.c 	u32 grp = 0, core;
core              424 drivers/crypto/cavium/cpt/cptpf_main.c 	for (core = 0; core < CPT_MAX_TOTAL_CORES; core++)
core              426 drivers/crypto/cavium/cpt/cptpf_main.c 				CPTX_PF_ENGX_UCODE_BASE(0, core), 0ull);
core              187 drivers/crypto/qce/core.c 	qce->core = devm_clk_get(qce->dev, "core");
core              188 drivers/crypto/qce/core.c 	if (IS_ERR(qce->core))
core              189 drivers/crypto/qce/core.c 		return PTR_ERR(qce->core);
core              199 drivers/crypto/qce/core.c 	ret = clk_prepare_enable(qce->core);
core              240 drivers/crypto/qce/core.c 	clk_disable_unprepare(qce->core);
core              253 drivers/crypto/qce/core.c 	clk_disable_unprepare(qce->core);
core               37 drivers/crypto/qce/core.h 	struct clk *core, *iface, *bus;
core               44 drivers/edac/octeon_edac-pc.c 	unsigned int core = cvmx_get_core_num();
core               50 drivers/edac/octeon_edac-pc.c 		dcache_err = cache_err_dcache[core];
core               51 drivers/edac/octeon_edac-pc.c 		cache_err_dcache[core] = 0;
core               59 drivers/edac/octeon_edac-pc.c 				   (unsigned long long)icache_err, core, cpu,
core               67 drivers/edac/octeon_edac-pc.c 				   (unsigned long long)dcache_err, core, cpu,
core              651 drivers/firmware/broadcom/bcm47xx_sprom.c 	struct bcma_device *core;
core              673 drivers/firmware/broadcom/bcm47xx_sprom.c 		core = bcma_find_core(bus, BCMA_CORE_80211);
core              674 drivers/firmware/broadcom/bcm47xx_sprom.c 		if (core) {
core              676 drivers/firmware/broadcom/bcm47xx_sprom.c 				 core->core_index);
core               78 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.h #define DDI_POWERGATING_ARG(phyID, lanemask, rx, tx, core) \
core               83 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.h 		((core) ? DISPLAYPHY_CORE_SELECT : 0))
core              610 drivers/gpu/drm/msm/adreno/a6xx_gmu.c 	chipid = adreno_gpu->rev.core << 24;
core              198 drivers/gpu/drm/msm/adreno/adreno_device.c 		if (_rev_match(info->rev.core, rev.core) &&
core              286 drivers/gpu/drm/msm/adreno/adreno_device.c 			rev->core = r / 100;
core              304 drivers/gpu/drm/msm/adreno/adreno_device.c 	rev->core = (chipid >> 24) & 0xff;
core              311 drivers/gpu/drm/msm/adreno/adreno_device.c 		rev->core, rev->major, rev->minor, rev->patchid);
core              336 drivers/gpu/drm/msm/adreno/adreno_device.c 			config.rev.core, config.rev.major,
core              341 drivers/gpu/drm/msm/adreno/adreno_device.c 	DBG("Found GPU: %u.%u.%u.%u", config.rev.core, config.rev.major,
core              344 drivers/gpu/drm/msm/adreno/adreno_device.c 	priv->is_a2xx = config.rev.core == 2;
core              177 drivers/gpu/drm/msm/adreno/adreno_gpu.c 				(adreno_gpu->rev.core << 24);
core              705 drivers/gpu/drm/msm/adreno/adreno_gpu.c 			adreno_gpu->info->revn, adreno_gpu->rev.core,
core              763 drivers/gpu/drm/msm/adreno/adreno_gpu.c 			adreno_gpu->info->revn, adreno_gpu->rev.core,
core               57 drivers/gpu/drm/msm/adreno/adreno_gpu.h 	uint8_t  core;
core               63 drivers/gpu/drm/msm/adreno/adreno_gpu.h #define ADRENO_REV(core, major, minor, patchid) \
core               64 drivers/gpu/drm/msm/adreno/adreno_gpu.h 	((struct adreno_rev){ core, major, minor, patchid })
core               77 drivers/gpu/drm/nouveau/dispnv50/atom.h 	} core;
core              129 drivers/gpu/drm/nouveau/dispnv50/atom.h 			bool core:1;
core               29 drivers/gpu/drm/nouveau/dispnv50/core.c 	struct nv50_core *core = *pcore;
core               30 drivers/gpu/drm/nouveau/dispnv50/core.c 	if (core) {
core               31 drivers/gpu/drm/nouveau/dispnv50/core.c 		nv50_dmac_destroy(&core->chan);
core               30 drivers/gpu/drm/nouveau/dispnv50/core507d.c core507d_update(struct nv50_core *core, u32 *interlock, bool ntfy)
core               33 drivers/gpu/drm/nouveau/dispnv50/core507d.c 	if ((push = evo_wait(&core->chan, 5))) {
core               42 drivers/gpu/drm/nouveau/dispnv50/core507d.c 		evo_kick(push, &core->chan);
core               65 drivers/gpu/drm/nouveau/dispnv50/core507d.c core507d_init(struct nv50_core *core)
core               68 drivers/gpu/drm/nouveau/dispnv50/core507d.c 	if ((push = evo_wait(&core->chan, 2))) {
core               70 drivers/gpu/drm/nouveau/dispnv50/core507d.c 		evo_data(push, core->chan.sync.handle);
core               71 drivers/gpu/drm/nouveau/dispnv50/core507d.c 		evo_kick(push, &core->chan);
core               93 drivers/gpu/drm/nouveau/dispnv50/core507d.c 	struct nv50_core *core;
core               96 drivers/gpu/drm/nouveau/dispnv50/core507d.c 	if (!(core = *pcore = kzalloc(sizeof(*core), GFP_KERNEL)))
core               98 drivers/gpu/drm/nouveau/dispnv50/core507d.c 	core->func = func;
core              102 drivers/gpu/drm/nouveau/dispnv50/core507d.c 			       disp->sync->bo.offset, &core->chan);
core               28 drivers/gpu/drm/nouveau/dispnv50/corec37d.c corec37d_update(struct nv50_core *core, u32 *interlock, bool ntfy)
core               31 drivers/gpu/drm/nouveau/dispnv50/corec37d.c 	if ((push = evo_wait(&core->chan, 9))) {
core               47 drivers/gpu/drm/nouveau/dispnv50/corec37d.c 		evo_kick(push, &core->chan);
core               75 drivers/gpu/drm/nouveau/dispnv50/corec37d.c corec37d_init(struct nv50_core *core)
core               79 drivers/gpu/drm/nouveau/dispnv50/corec37d.c 	if ((push = evo_wait(&core->chan, 2 + 6 * windows + 2))) {
core               81 drivers/gpu/drm/nouveau/dispnv50/corec37d.c 		evo_data(push, core->chan.sync.handle);
core               92 drivers/gpu/drm/nouveau/dispnv50/corec37d.c 		evo_kick(push, &core->chan);
core               26 drivers/gpu/drm/nouveau/dispnv50/corec57d.c corec57d_init(struct nv50_core *core)
core               30 drivers/gpu/drm/nouveau/dispnv50/corec57d.c 	if ((push = evo_wait(&core->chan, 2 + 6 * windows + 2))) {
core               32 drivers/gpu/drm/nouveau/dispnv50/corec57d.c 		evo_data(push, core->chan.sync.handle);
core               43 drivers/gpu/drm/nouveau/dispnv50/corec57d.c 		evo_kick(push, &core->chan);
core               54 drivers/gpu/drm/nouveau/dispnv50/curs507a.c 	u32 handle = nv50_disp(wndw->plane.dev)->core->chan.vram.handle;
core               25 drivers/gpu/drm/nouveau/dispnv50/dac507d.c dac507d_ctrl(struct nv50_core *core, int or, u32 ctrl,
core               29 drivers/gpu/drm/nouveau/dispnv50/dac507d.c 	if ((push = evo_wait(&core->chan, 3))) {
core               37 drivers/gpu/drm/nouveau/dispnv50/dac507d.c 		evo_kick(push, &core->chan);
core               25 drivers/gpu/drm/nouveau/dispnv50/dac907d.c dac907d_ctrl(struct nv50_core *core, int or, u32 ctrl,
core               29 drivers/gpu/drm/nouveau/dispnv50/dac907d.c 	if ((push = evo_wait(&core->chan, 2))) {
core               32 drivers/gpu/drm/nouveau/dispnv50/dac907d.c 		evo_kick(push, &core->chan);
core              379 drivers/gpu/drm/nouveau/dispnv50/disp.c 	struct nv50_core *core = nv50_disp(encoder->dev)->core;
core              381 drivers/gpu/drm/nouveau/dispnv50/disp.c 		core->func->dac->ctrl(core, nv_encoder->or, 0x00000000, NULL);
core              392 drivers/gpu/drm/nouveau/dispnv50/disp.c 	struct nv50_core *core = nv50_disp(encoder->dev)->core;
core              396 drivers/gpu/drm/nouveau/dispnv50/disp.c 	core->func->dac->ctrl(core, nv_encoder->or, 1 << nv_crtc->index, asyh);
core             1411 drivers/gpu/drm/nouveau/dispnv50/disp.c 	struct nv50_core *core = disp->core;
core             1423 drivers/gpu/drm/nouveau/dispnv50/disp.c 	core->func->sor->ctrl(core, nv_encoder->or, nv_encoder->ctrl, asyh);
core             1664 drivers/gpu/drm/nouveau/dispnv50/disp.c 	struct nv50_core *core = nv50_disp(encoder->dev)->core;
core             1666 drivers/gpu/drm/nouveau/dispnv50/disp.c 		core->func->pior->ctrl(core, nv_encoder->or, 0x00000000, NULL);
core             1678 drivers/gpu/drm/nouveau/dispnv50/disp.c 	struct nv50_core *core = nv50_disp(encoder->dev)->core;
core             1702 drivers/gpu/drm/nouveau/dispnv50/disp.c 	core->func->pior->ctrl(core, nv_encoder->or, (proto << 8) | owner, asyh);
core             1779 drivers/gpu/drm/nouveau/dispnv50/disp.c 	struct nv50_core *core = disp->core;
core             1793 drivers/gpu/drm/nouveau/dispnv50/disp.c 	core->func->ntfy_init(disp->sync, NV50_DISP_CORE_NTFY);
core             1794 drivers/gpu/drm/nouveau/dispnv50/disp.c 	core->func->update(core, interlock, true);
core             1795 drivers/gpu/drm/nouveau/dispnv50/disp.c 	if (core->func->ntfy_wait_done(disp->sync, NV50_DISP_CORE_NTFY,
core             1796 drivers/gpu/drm/nouveau/dispnv50/disp.c 				       disp->core->chan.base.device))
core             1977 drivers/gpu/drm/nouveau/dispnv50/disp.c 			disp->core->func->update(disp->core, interlock, false);
core             2276 drivers/gpu/drm/nouveau/dispnv50/disp.c 	struct nv50_core *core = nv50_disp(dev)->core;
core             2280 drivers/gpu/drm/nouveau/dispnv50/disp.c 	core->func->init(core);
core             2305 drivers/gpu/drm/nouveau/dispnv50/disp.c 	nv50_core_del(&disp->core);
core             2360 drivers/gpu/drm/nouveau/dispnv50/disp.c 	ret = nv50_core_new(drm, &disp->core);
core                9 drivers/gpu/drm/nouveau/dispnv50/disp.h 	struct nv50_core *core;
core               41 drivers/gpu/drm/nouveau/dispnv50/head.c 	if (clr.core) head->func->core_clr(head);
core               50 drivers/gpu/drm/nouveau/dispnv50/head.c 	if (asyh->set.core   ) head->func->core_set(head, asyh);
core              237 drivers/gpu/drm/nouveau/dispnv50/head.c 	asyh->olut.handle = disp->core->chan.vram.handle;
core              351 drivers/gpu/drm/nouveau/dispnv50/head.c 			if (!asyh->core.visible)
core              359 drivers/gpu/drm/nouveau/dispnv50/head.c 		asyh->core.visible = false;
core              366 drivers/gpu/drm/nouveau/dispnv50/head.c 		if (asyh->core.visible) {
core              367 drivers/gpu/drm/nouveau/dispnv50/head.c 			if (memcmp(&armh->core, &asyh->core, sizeof(asyh->core)))
core              368 drivers/gpu/drm/nouveau/dispnv50/head.c 				asyh->set.core = true;
core              370 drivers/gpu/drm/nouveau/dispnv50/head.c 		if (armh->core.visible) {
core              371 drivers/gpu/drm/nouveau/dispnv50/head.c 			asyh->clr.core = true;
core              391 drivers/gpu/drm/nouveau/dispnv50/head.c 		asyh->clr.core = armh->core.visible;
core              394 drivers/gpu/drm/nouveau/dispnv50/head.c 		asyh->set.core = asyh->core.visible;
core              429 drivers/gpu/drm/nouveau/dispnv50/head.c 	asyh->core = armh->core;
core              490 drivers/gpu/drm/nouveau/dispnv50/head.c 	head->func = disp->core->func->head;
core               28 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core               30 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	if ((push = evo_wait(core, 2))) {
core               34 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		evo_kick(push, core);
core               41 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core               43 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	if ((push = evo_wait(core, 2))) {
core               48 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		evo_kick(push, core);
core               55 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core               72 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	if ((push = evo_wait(core, 2))) {
core               75 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		evo_kick(push, core);
core               82 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core               99 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	if ((push = evo_wait(core, 2))) {
core              102 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		evo_kick(push, core);
core              109 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core              111 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	if ((push = evo_wait(core, 2))) {
core              114 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		evo_kick(push, core);
core              121 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core              123 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	if ((push = evo_wait(core, 3))) {
core              128 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		evo_kick(push, core);
core              161 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core              163 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	if ((push = evo_wait(core, 2))) {
core              166 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		evo_kick(push, core);
core              173 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core              175 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	if ((push = evo_wait(core, 9))) {
core              177 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		evo_data(push, asyh->core.offset >> 8);
core              179 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		evo_data(push, asyh->core.h << 16 | asyh->core.w);
core              180 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		evo_data(push, asyh->core.layout << 20 |
core              181 drivers/gpu/drm/nouveau/dispnv50/head507d.c 			       (asyh->core.pitch >> 8) << 8 |
core              182 drivers/gpu/drm/nouveau/dispnv50/head507d.c 			       asyh->core.blocks << 8 |
core              183 drivers/gpu/drm/nouveau/dispnv50/head507d.c 			       asyh->core.blockh);
core              184 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		evo_data(push, asyh->core.kind << 16 |
core              185 drivers/gpu/drm/nouveau/dispnv50/head507d.c 			       asyh->core.format << 8);
core              186 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		evo_data(push, asyh->core.handle);
core              188 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		evo_data(push, asyh->core.y << 16 | asyh->core.x);
core              189 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		evo_kick(push, core);
core              204 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	if ((asyh->core.visible = (asyh->base.cpp != 0))) {
core              205 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		asyh->core.x = asyh->base.x;
core              206 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		asyh->core.y = asyh->base.y;
core              207 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		asyh->core.w = asyh->base.w;
core              208 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		asyh->core.h = asyh->base.h;
core              210 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	if ((asyh->core.visible = (asyh->ovly.cpp != 0)) ||
core              211 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	    (asyh->core.visible = asyh->curs.visible)) {
core              217 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		asyh->core.x = 0;
core              218 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		asyh->core.y = 0;
core              219 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		asyh->core.w = asyh->state.mode.hdisplay;
core              220 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		asyh->core.h = asyh->state.mode.vdisplay;
core              222 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	asyh->core.handle = disp->core->chan.vram.handle;
core              223 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	asyh->core.offset = 0;
core              224 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	asyh->core.format = 0xcf;
core              225 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	asyh->core.kind = 0;
core              226 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	asyh->core.layout = 1;
core              227 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	asyh->core.blockh = 0;
core              228 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	asyh->core.blocks = 0;
core              229 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	asyh->core.pitch = ALIGN(asyh->core.w, 64) * 4;
core              235 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core              237 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	if ((push = evo_wait(core, 2))) {
core              240 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		evo_kick(push, core);
core              247 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core              249 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	if ((push = evo_wait(core, 3))) {
core              253 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		evo_kick(push, core);
core              288 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core              291 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	if ((push = evo_wait(core, 13))) {
core              305 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		evo_kick(push, core);
core              312 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core              314 drivers/gpu/drm/nouveau/dispnv50/head507d.c 	if ((push = evo_wait(core, 7))) {
core              322 drivers/gpu/drm/nouveau/dispnv50/head507d.c 		evo_kick(push, core);
core               28 drivers/gpu/drm/nouveau/dispnv50/head827d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core               30 drivers/gpu/drm/nouveau/dispnv50/head827d.c 	if ((push = evo_wait(core, 4))) {
core               35 drivers/gpu/drm/nouveau/dispnv50/head827d.c 		evo_kick(push, core);
core               42 drivers/gpu/drm/nouveau/dispnv50/head827d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core               44 drivers/gpu/drm/nouveau/dispnv50/head827d.c 	if ((push = evo_wait(core, 5))) {
core               51 drivers/gpu/drm/nouveau/dispnv50/head827d.c 		evo_kick(push, core);
core               58 drivers/gpu/drm/nouveau/dispnv50/head827d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core               60 drivers/gpu/drm/nouveau/dispnv50/head827d.c 	if ((push = evo_wait(core, 9))) {
core               62 drivers/gpu/drm/nouveau/dispnv50/head827d.c 		evo_data(push, asyh->core.offset >> 8);
core               64 drivers/gpu/drm/nouveau/dispnv50/head827d.c 		evo_data(push, asyh->core.h << 16 | asyh->core.w);
core               65 drivers/gpu/drm/nouveau/dispnv50/head827d.c 		evo_data(push, asyh->core.layout << 20 |
core               66 drivers/gpu/drm/nouveau/dispnv50/head827d.c 			       (asyh->core.pitch >> 8) << 8 |
core               67 drivers/gpu/drm/nouveau/dispnv50/head827d.c 			       asyh->core.blocks << 8 |
core               68 drivers/gpu/drm/nouveau/dispnv50/head827d.c 			       asyh->core.blockh);
core               69 drivers/gpu/drm/nouveau/dispnv50/head827d.c 		evo_data(push, asyh->core.format << 8);
core               70 drivers/gpu/drm/nouveau/dispnv50/head827d.c 		evo_data(push, asyh->core.handle);
core               72 drivers/gpu/drm/nouveau/dispnv50/head827d.c 		evo_data(push, asyh->core.y << 16 | asyh->core.x);
core               73 drivers/gpu/drm/nouveau/dispnv50/head827d.c 		evo_kick(push, core);
core               80 drivers/gpu/drm/nouveau/dispnv50/head827d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core               82 drivers/gpu/drm/nouveau/dispnv50/head827d.c 	if ((push = evo_wait(core, 4))) {
core               87 drivers/gpu/drm/nouveau/dispnv50/head827d.c 		evo_kick(push, core);
core               94 drivers/gpu/drm/nouveau/dispnv50/head827d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core               96 drivers/gpu/drm/nouveau/dispnv50/head827d.c 	if ((push = evo_wait(core, 5))) {
core              102 drivers/gpu/drm/nouveau/dispnv50/head827d.c 		evo_kick(push, core);
core               28 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core               30 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	if ((push = evo_wait(core, 3))) {
core               37 drivers/gpu/drm/nouveau/dispnv50/head907d.c 		evo_kick(push, core);
core               44 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core               46 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	if ((push = evo_wait(core, 2))) {
core               50 drivers/gpu/drm/nouveau/dispnv50/head907d.c 		evo_kick(push, core);
core               57 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core               59 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	if ((push = evo_wait(core, 2))) {
core               64 drivers/gpu/drm/nouveau/dispnv50/head907d.c 		evo_kick(push, core);
core               71 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core               89 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	if ((push = evo_wait(core, 2))) {
core               92 drivers/gpu/drm/nouveau/dispnv50/head907d.c 		evo_kick(push, core);
core               99 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core              116 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	if ((push = evo_wait(core, 2))) {
core              119 drivers/gpu/drm/nouveau/dispnv50/head907d.c 		evo_kick(push, core);
core              126 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core              128 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	if ((push = evo_wait(core, 4))) {
core              133 drivers/gpu/drm/nouveau/dispnv50/head907d.c 		evo_kick(push, core);
core              140 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core              142 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	if ((push = evo_wait(core, 5))) {
core              149 drivers/gpu/drm/nouveau/dispnv50/head907d.c 		evo_kick(push, core);
core              156 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core              158 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	if ((push = evo_wait(core, 2))) {
core              161 drivers/gpu/drm/nouveau/dispnv50/head907d.c 		evo_kick(push, core);
core              168 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core              170 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	if ((push = evo_wait(core, 9))) {
core              172 drivers/gpu/drm/nouveau/dispnv50/head907d.c 		evo_data(push, asyh->core.offset >> 8);
core              174 drivers/gpu/drm/nouveau/dispnv50/head907d.c 		evo_data(push, asyh->core.h << 16 | asyh->core.w);
core              175 drivers/gpu/drm/nouveau/dispnv50/head907d.c 		evo_data(push, asyh->core.layout << 24 |
core              176 drivers/gpu/drm/nouveau/dispnv50/head907d.c 			       (asyh->core.pitch >> 8) << 8 |
core              177 drivers/gpu/drm/nouveau/dispnv50/head907d.c 			       asyh->core.blocks << 8 |
core              178 drivers/gpu/drm/nouveau/dispnv50/head907d.c 			       asyh->core.blockh);
core              179 drivers/gpu/drm/nouveau/dispnv50/head907d.c 		evo_data(push, asyh->core.format << 8);
core              180 drivers/gpu/drm/nouveau/dispnv50/head907d.c 		evo_data(push, asyh->core.handle);
core              182 drivers/gpu/drm/nouveau/dispnv50/head907d.c 		evo_data(push, asyh->core.y << 16 | asyh->core.x);
core              183 drivers/gpu/drm/nouveau/dispnv50/head907d.c 		evo_kick(push, core);
core              190 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core              192 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	if ((push = evo_wait(core, 4))) {
core              197 drivers/gpu/drm/nouveau/dispnv50/head907d.c 		evo_kick(push, core);
core              204 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core              206 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	if ((push = evo_wait(core, 5))) {
core              212 drivers/gpu/drm/nouveau/dispnv50/head907d.c 		evo_kick(push, core);
core              243 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core              246 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	if ((push = evo_wait(core, 14))) {
core              261 drivers/gpu/drm/nouveau/dispnv50/head907d.c 		evo_kick(push, core);
core              268 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core              270 drivers/gpu/drm/nouveau/dispnv50/head907d.c 	if ((push = evo_wait(core, 8))) {
core              279 drivers/gpu/drm/nouveau/dispnv50/head907d.c 		evo_kick(push, core);
core               28 drivers/gpu/drm/nouveau/dispnv50/head917d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core               30 drivers/gpu/drm/nouveau/dispnv50/head917d.c 	if ((push = evo_wait(core, 2))) {
core               35 drivers/gpu/drm/nouveau/dispnv50/head917d.c 		evo_kick(push, core);
core               42 drivers/gpu/drm/nouveau/dispnv50/head917d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core               59 drivers/gpu/drm/nouveau/dispnv50/head917d.c 	if ((push = evo_wait(core, 2))) {
core               62 drivers/gpu/drm/nouveau/dispnv50/head917d.c 		evo_kick(push, core);
core               29 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core               31 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 	if ((push = evo_wait(core, 2))) {
core               50 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 		evo_kick(push, core);
core               57 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core               59 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 	if ((push = evo_wait(core, 2))) {
core               64 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 		evo_kick(push, core);
core               71 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core               73 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 	if ((push = evo_wait(core, 2))) {
core               78 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 		evo_kick(push, core);
core               85 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core               87 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 	if ((push = evo_wait(core, 4))) {
core               92 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 		evo_kick(push, core);
core               99 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core              101 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 	if ((push = evo_wait(core, 7))) {
core              111 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 		evo_kick(push, core);
core              126 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core              128 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 	if ((push = evo_wait(core, 2))) {
core              131 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 		evo_kick(push, core);
core              138 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core              140 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 	if ((push = evo_wait(core, 4))) {
core              147 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 		evo_kick(push, core);
core              164 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core              167 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 	if ((push = evo_wait(core, 12))) {
core              181 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 		evo_kick(push, core);
core              188 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core              190 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 	if ((push = evo_wait(core, 4))) {
core              195 drivers/gpu/drm/nouveau/dispnv50/headc37d.c 		evo_kick(push, core);
core               29 drivers/gpu/drm/nouveau/dispnv50/headc57d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core               31 drivers/gpu/drm/nouveau/dispnv50/headc57d.c 	if ((push = evo_wait(core, 2))) {
core               50 drivers/gpu/drm/nouveau/dispnv50/headc57d.c 		evo_kick(push, core);
core               57 drivers/gpu/drm/nouveau/dispnv50/headc57d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core               59 drivers/gpu/drm/nouveau/dispnv50/headc57d.c 	if ((push = evo_wait(core, 2))) {
core               68 drivers/gpu/drm/nouveau/dispnv50/headc57d.c 		evo_kick(push, core);
core               75 drivers/gpu/drm/nouveau/dispnv50/headc57d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core               77 drivers/gpu/drm/nouveau/dispnv50/headc57d.c 	if ((push = evo_wait(core, 2))) {
core               80 drivers/gpu/drm/nouveau/dispnv50/headc57d.c 		evo_kick(push, core);
core               87 drivers/gpu/drm/nouveau/dispnv50/headc57d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core               89 drivers/gpu/drm/nouveau/dispnv50/headc57d.c 	if ((push = evo_wait(core, 4))) {
core               97 drivers/gpu/drm/nouveau/dispnv50/headc57d.c 		evo_kick(push, core);
core              170 drivers/gpu/drm/nouveau/dispnv50/headc57d.c 	struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan;
core              173 drivers/gpu/drm/nouveau/dispnv50/headc57d.c 	if ((push = evo_wait(core, 12))) {
core              187 drivers/gpu/drm/nouveau/dispnv50/headc57d.c 		evo_kick(push, core);
core               25 drivers/gpu/drm/nouveau/dispnv50/pior507d.c pior507d_ctrl(struct nv50_core *core, int or, u32 ctrl,
core               29 drivers/gpu/drm/nouveau/dispnv50/pior507d.c 	if ((push = evo_wait(&core->chan, 2))) {
core               37 drivers/gpu/drm/nouveau/dispnv50/pior507d.c 		evo_kick(push, &core->chan);
core               25 drivers/gpu/drm/nouveau/dispnv50/sor507d.c sor507d_ctrl(struct nv50_core *core, int or, u32 ctrl,
core               29 drivers/gpu/drm/nouveau/dispnv50/sor507d.c 	if ((push = evo_wait(&core->chan, 2))) {
core               37 drivers/gpu/drm/nouveau/dispnv50/sor507d.c 		evo_kick(push, &core->chan);
core               27 drivers/gpu/drm/nouveau/dispnv50/sor907d.c sor907d_ctrl(struct nv50_core *core, int or, u32 ctrl,
core               31 drivers/gpu/drm/nouveau/dispnv50/sor907d.c 	if ((push = evo_wait(&core->chan, 2))) {
core               34 drivers/gpu/drm/nouveau/dispnv50/sor907d.c 		evo_kick(push, &core->chan);
core               25 drivers/gpu/drm/nouveau/dispnv50/sorc37d.c sorc37d_ctrl(struct nv50_core *core, int or, u32 ctrl,
core               29 drivers/gpu/drm/nouveau/dispnv50/sorc37d.c 	if ((push = evo_wait(&core->chan, 2))) {
core               32 drivers/gpu/drm/nouveau/dispnv50/sorc37d.c 		evo_kick(push, &core->chan);
core               33 drivers/gpu/drm/nouveau/include/nvkm/engine/falcon.h 	struct nvkm_memory *core;
core               11 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/perf.h 	u32 core;
core              103 drivers/gpu/drm/nouveau/nvkm/engine/falcon.c 		nvkm_memory_unref(&falcon->core);
core              247 drivers/gpu/drm/nouveau/nvkm/engine/falcon.c 	if (!falcon->data.data && !falcon->core) {
core              250 drivers/gpu/drm/nouveau/nvkm/engine/falcon.c 				      &falcon->core);
core              256 drivers/gpu/drm/nouveau/nvkm/engine/falcon.c 		nvkm_kmap(falcon->core);
core              258 drivers/gpu/drm/nouveau/nvkm/engine/falcon.c 			nvkm_wo32(falcon->core, i, falcon->code.data[i / 4]);
core              259 drivers/gpu/drm/nouveau/nvkm/engine/falcon.c 		nvkm_done(falcon->core);
core              263 drivers/gpu/drm/nouveau/nvkm/engine/falcon.c 	if (falcon->core) {
core              264 drivers/gpu/drm/nouveau/nvkm/engine/falcon.c 		u64 addr = nvkm_memory_addr(falcon->core);
core              297 drivers/gpu/drm/nouveau/nvkm/engine/falcon.c 		for (i = 0; !falcon->core && i < falcon->data.size / 4; i++)
core              303 drivers/gpu/drm/nouveau/nvkm/engine/falcon.c 		for (i = 0; !falcon->core && i < falcon->data.size / 4; i++)
core              105 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c 		info->core     = nvbios_rd32(bios, perf + 0x01) * 10;
core              117 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c 		info->core     = info->shader + (signed char)
core              132 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c 		info->core     = nvbios_rd16(bios, perf + 0x06) * 1000;
core              142 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c 		info->core     = nvbios_rd16(bios, perf + 0x08) * 1000;
core              430 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c 	cstate->domain[nv_clk_src_core] = perfE.core;
core              462 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c 	struct gt215_clk_info *core = &clk->eng[nv_clk_src_core];
core              474 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c 	if (core->pll) {
core              489 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c 	struct gt215_clk_info *core = &clk->eng[nv_clk_src_core];
core              498 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c 	if (core->pll)
core              207 drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c 	const int core = cstate->domain[nv_clk_src_core];
core              215 drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c 	if (core < nvkm_clk_read(&clk->base, nv_clk_src_hclkm4))
core              216 drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c 		out = calc_P(nvkm_clk_read(&clk->base, nv_clk_src_hclkm4), core, &divs);
core              219 drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c 	clock = calc_pll(clk, 0x4028, (core << 1), &N, &M, &P1);
core              221 drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c 	if (abs(core - out) <= abs(core - (clock >> 1))) {
core              247 drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c 			out = calc_P((core << 1), shader, &divs);
core              262 drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c 	out = calc_P(core, vdec, &divs);
core              375 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv50.c 	const int core = cstate->domain[nv_clk_src_core];
core              399 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv50.c 		freq = calc_div(core, vdec, &P1);
core              459 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv50.c 	freq = calc_pll(clk, 0x4028, core, &N, &M, &P1);
core              473 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv50.c 	if (P1-- && shader == (core << 1)) {
core              358 drivers/gpu/drm/omapdrm/dss/hdmi.h 	struct hdmi_core_data	core;
core               90 drivers/gpu/drm/omapdrm/dss/hdmi4.c 		u32 intr4 = hdmi_read_reg(hdmi->core.base, HDMI_CORE_SYS_INTR4);
core               92 drivers/gpu/drm/omapdrm/dss/hdmi4.c 		hdmi_write_reg(hdmi->core.base, HDMI_CORE_SYS_INTR4, intr4);
core               94 drivers/gpu/drm/omapdrm/dss/hdmi4.c 			hdmi4_cec_irq(&hdmi->core);
core              104 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (hdmi->core.core_pwr_cnt++)
core              115 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	hdmi4_core_powerdown_disable(&hdmi->core);
core              127 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	hdmi->core.core_pwr_cnt--;
core              134 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (--hdmi->core.core_pwr_cnt)
core              197 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	hdmi4_configure(&hdmi->core, &hdmi->wp, &hdmi->cfg);
core              268 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	hdmi4_core_dump(&hdmi->core, s);
core              284 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = hdmi4_read_edid(&hdmi->core,  buf, len);
core              295 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	hdmi4_audio_start(&hd->core, &hd->wp);
core              300 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	hdmi4_audio_stop(&hd->core, &hd->wp);
core              321 drivers/gpu/drm/omapdrm/dss/hdmi4.c 		r = hdmi4_audio_config(&hdmi->core, &hdmi->wp,
core              360 drivers/gpu/drm/omapdrm/dss/hdmi4.c int hdmi4_core_enable(struct hdmi_core_data *core)
core              362 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	struct omap_hdmi *hdmi = container_of(core, struct omap_hdmi, core);
core              383 drivers/gpu/drm/omapdrm/dss/hdmi4.c void hdmi4_core_disable(struct hdmi_core_data *core)
core              385 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	struct omap_hdmi *hdmi = container_of(core, struct omap_hdmi, core);
core              418 drivers/gpu/drm/omapdrm/dss/hdmi4.c 		r = hdmi4_core_enable(&hdmi->core);
core              425 drivers/gpu/drm/omapdrm/dss/hdmi4.c 		hdmi4_cec_set_phys_addr(&hdmi->core,
core              428 drivers/gpu/drm/omapdrm/dss/hdmi4.c 		hdmi4_cec_set_phys_addr(&hdmi->core, CEC_PHYS_ADDR_INVALID);
core              430 drivers/gpu/drm/omapdrm/dss/hdmi4.c 		hdmi4_core_disable(&hdmi->core);
core              439 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	hdmi4_cec_set_phys_addr(&hdmi->core, CEC_PHYS_ADDR_INVALID);
core              555 drivers/gpu/drm/omapdrm/dss/hdmi4.c 		ret = hdmi4_audio_config(&hd->core, &hd->wp, dss_audio,
core              616 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = hdmi4_cec_init(hdmi->pdev, &hdmi->core, &hdmi->wp);
core              634 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	hdmi4_cec_uninit(&hdmi->core);
core              651 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	hdmi4_cec_uninit(&hdmi->core);
core              741 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = hdmi4_core_init(pdev, &hdmi->core);
core               68 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c static void hdmi_cec_received_msg(struct hdmi_core_data *core)
core               70 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	u32 cnt = hdmi_read_reg(core->base, HDMI_CEC_RX_COUNT) & 0xff;
core               83 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 			msg.msg[0] = hdmi_read_reg(core->base,
core               85 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 			msg.msg[1] = hdmi_read_reg(core->base,
core               91 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 					hdmi_read_reg(core->base, reg);
core               94 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 			cec_received_msg(core->adap, &msg);
core               97 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		hdmi_write_reg(core->base, HDMI_CEC_RX_CONTROL, 1);
core               99 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		while (hdmi_read_reg(core->base, HDMI_CEC_RX_CONTROL) & 1)
core              105 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		cnt = hdmi_read_reg(core->base, HDMI_CEC_RX_COUNT) & 0xff;
core              109 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c void hdmi4_cec_irq(struct hdmi_core_data *core)
core              111 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	u32 stat0 = hdmi_read_reg(core->base, HDMI_CEC_INT_STATUS_0);
core              112 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	u32 stat1 = hdmi_read_reg(core->base, HDMI_CEC_INT_STATUS_1);
core              114 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	hdmi_write_reg(core->base, HDMI_CEC_INT_STATUS_0, stat0);
core              115 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	hdmi_write_reg(core->base, HDMI_CEC_INT_STATUS_1, stat1);
core              118 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		cec_transmit_done(core->adap, CEC_TX_STATUS_OK,
core              120 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		REG_FLD_MOD(core->base, HDMI_CEC_DBG_3, 0x1, 7, 7);
core              122 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		u32 dbg3 = hdmi_read_reg(core->base, HDMI_CEC_DBG_3);
core              124 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		cec_transmit_done(core->adap,
core              128 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		REG_FLD_MOD(core->base, HDMI_CEC_DBG_3, 0x1, 7, 7);
core              131 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		hdmi_cec_received_msg(core);
core              136 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	struct hdmi_core_data *core = cec_get_drvdata(adap);
core              140 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	REG_FLD_MOD(core->base, HDMI_CEC_DBG_3, 0x1, 7, 7);
core              142 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		temp = hdmi_read_reg(core->base, HDMI_CEC_DBG_3);
core              152 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	struct hdmi_core_data *core = cec_get_drvdata(adap);
core              156 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	hdmi_write_reg(core->base, HDMI_CEC_RX_CONTROL, 0x3);
core              159 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		temp = hdmi_read_reg(core->base, HDMI_CEC_RX_CONTROL);
core              169 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	struct hdmi_core_data *core = cec_get_drvdata(adap);
core              173 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		hdmi_write_reg(core->base, HDMI_CEC_INT_ENABLE_0, 0);
core              174 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		hdmi_write_reg(core->base, HDMI_CEC_INT_ENABLE_1, 0);
core              175 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		REG_FLD_MOD(core->base, HDMI_CORE_SYS_INTR_UNMASK4, 0, 3, 3);
core              176 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		hdmi_wp_clear_irqenable(core->wp, HDMI_IRQ_CORE);
core              177 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		hdmi_wp_set_irqstatus(core->wp, HDMI_IRQ_CORE);
core              178 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		REG_FLD_MOD(core->wp->base, HDMI_WP_CLK, 0, 5, 0);
core              179 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		hdmi4_core_disable(core);
core              182 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	err = hdmi4_core_enable(core);
core              190 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	REG_FLD_MOD(core->wp->base, HDMI_WP_CLK, 0x18, 5, 0);
core              207 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	hdmi_write_reg(core->base, HDMI_CEC_INT_STATUS_1,
core              208 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		hdmi_read_reg(core->base, HDMI_CEC_INT_STATUS_1));
core              209 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	hdmi_write_reg(core->base, HDMI_CEC_INT_STATUS_0,
core              210 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		hdmi_read_reg(core->base, HDMI_CEC_INT_STATUS_0));
core              213 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	hdmi_wp_set_irqenable(core->wp, HDMI_IRQ_CORE);
core              215 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	REG_FLD_MOD(core->base, HDMI_CORE_SYS_INTR_UNMASK4, 0x1, 3, 3);
core              221 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	hdmi_write_reg(core->base, HDMI_CEC_INT_ENABLE_0, 0x22);
core              226 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	hdmi_write_reg(core->base, HDMI_CEC_INT_ENABLE_1, 0x02);
core              229 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	hdmi_write_reg(core->base, HDMI_CEC_SETUP, 0x03);
core              231 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	hdmi_write_reg(core->base, HDMI_CEC_SETUP, 0x04);
core              233 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	temp = hdmi_read_reg(core->base, HDMI_CEC_SETUP);
core              236 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		hdmi_write_reg(core->base, HDMI_CEC_SETUP, temp);
core              243 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		temp = hdmi_read_reg(core->base, HDMI_CEC_INT_STATUS_1);
core              245 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		hdmi_write_reg(core->base, HDMI_CEC_INT_STATUS_1, temp);
core              250 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	REG_FLD_MOD(core->wp->base, HDMI_WP_CLK, 0, 5, 0);
core              251 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	hdmi4_core_disable(core);
core              258 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	struct hdmi_core_data *core = cec_get_drvdata(adap);
core              262 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		hdmi_write_reg(core->base, HDMI_CEC_CA_7_0, 0);
core              263 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		hdmi_write_reg(core->base, HDMI_CEC_CA_15_8, 0);
core              267 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		v = hdmi_read_reg(core->base, HDMI_CEC_CA_7_0);
core              269 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		hdmi_write_reg(core->base, HDMI_CEC_CA_7_0, v);
core              271 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		v = hdmi_read_reg(core->base, HDMI_CEC_CA_15_8);
core              273 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		hdmi_write_reg(core->base, HDMI_CEC_CA_15_8, v);
core              281 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	struct hdmi_core_data *core = cec_get_drvdata(adap);
core              293 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	hdmi_write_reg(core->base, HDMI_CEC_INT_STATUS_0,
core              296 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	hdmi_write_reg(core->base, HDMI_CEC_INT_STATUS_1,
core              300 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	REG_FLD_MOD(core->base, HDMI_CEC_DBG_3, attempts - 1, 6, 4);
core              303 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	hdmi_write_reg(core->base, HDMI_CEC_TX_INIT, cec_msg_initiator(msg));
core              309 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	hdmi_write_reg(core->base, HDMI_CEC_TX_DEST, temp);
core              314 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	hdmi_write_reg(core->base, HDMI_CEC_TX_COMMAND, msg->msg[1]);
core              317 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		hdmi_write_reg(core->base, HDMI_CEC_TX_OPERAND + i * 4,
core              321 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	hdmi_write_reg(core->base, HDMI_CEC_TRANSMIT_DATA,
core              332 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c void hdmi4_cec_set_phys_addr(struct hdmi_core_data *core, u16 pa)
core              334 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	cec_s_phys_addr(core->adap, pa, false);
core              337 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c int hdmi4_cec_init(struct platform_device *pdev, struct hdmi_core_data *core,
core              344 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	core->adap = cec_allocate_adapter(&hdmi_cec_adap_ops, core,
core              346 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	ret = PTR_ERR_OR_ZERO(core->adap);
core              349 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	core->wp = wp;
core              352 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	REG_FLD_MOD(core->wp->base, HDMI_WP_CLK, 0, 5, 0);
core              354 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	ret = cec_register_adapter(core->adap, &pdev->dev);
core              356 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 		cec_delete_adapter(core->adap);
core              362 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c void hdmi4_cec_uninit(struct hdmi_core_data *core)
core              364 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c 	cec_unregister_adapter(core->adap);
core               29 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.h void hdmi4_cec_set_phys_addr(struct hdmi_core_data *core, u16 pa);
core               30 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.h void hdmi4_cec_irq(struct hdmi_core_data *core);
core               31 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.h int hdmi4_cec_init(struct platform_device *pdev, struct hdmi_core_data *core,
core               33 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.h void hdmi4_cec_uninit(struct hdmi_core_data *core);
core               35 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.h static inline void hdmi4_cec_set_phys_addr(struct hdmi_core_data *core, u16 pa)
core               39 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.h static inline void hdmi4_cec_irq(struct hdmi_core_data *core)
core               44 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.h 				struct hdmi_core_data *core,
core               50 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.h static inline void hdmi4_cec_uninit(struct hdmi_core_data *core)
core               30 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c static inline void __iomem *hdmi_av_base(struct hdmi_core_data *core)
core               32 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	return core->base + HDMI_CORE_AV;
core               35 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c static int hdmi_core_ddc_init(struct hdmi_core_data *core)
core               37 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	void __iomem *base = core->base;
core               77 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c static int hdmi_core_ddc_edid(struct hdmi_core_data *core,
core               80 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	void __iomem *base = core->base;
core              159 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c int hdmi4_read_edid(struct hdmi_core_data *core, u8 *edid, int len)
core              166 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = hdmi_core_ddc_init(core);
core              170 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = hdmi_core_ddc_edid(core, edid, 0);
core              177 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 		r = hdmi_core_ddc_edid(core, edid + 0x80, 1);
core              199 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c void hdmi4_core_powerdown_disable(struct hdmi_core_data *core)
core              202 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	REG_FLD_MOD(core->base, HDMI_CORE_SYS_SYS_CTRL1, 0x1, 0, 0);
core              205 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c static void hdmi_core_swreset_release(struct hdmi_core_data *core)
core              208 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	REG_FLD_MOD(core->base, HDMI_CORE_SYS_SRST, 0x0, 0, 0);
core              211 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c static void hdmi_core_swreset_assert(struct hdmi_core_data *core)
core              214 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	REG_FLD_MOD(core->base, HDMI_CORE_SYS_SRST, 0x1, 0, 0);
core              218 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c static void hdmi_core_video_config(struct hdmi_core_data *core,
core              222 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	void __iomem *core_sys_base = core->base;
core              223 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	void __iomem *core_av_base = hdmi_av_base(core);
core              261 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c static void hdmi_core_write_avi_infoframe(struct hdmi_core_data *core,
core              264 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	void __iomem *av_base = hdmi_av_base(core);
core              279 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c static void hdmi_core_av_packet_config(struct hdmi_core_data *core,
core              283 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	hdmi_write_reg(hdmi_av_base(core), HDMI_CORE_AV_PB_CTRL1,
core              290 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	hdmi_write_reg(hdmi_av_base(core), HDMI_CORE_AV_PB_CTRL2,
core              297 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c void hdmi4_configure(struct hdmi_core_data *core,
core              324 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	hdmi_core_swreset_assert(core);
core              329 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	hdmi_core_video_config(core, &v_core_cfg);
core              332 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	hdmi_core_swreset_release(core);
core              335 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 		hdmi_core_write_avi_infoframe(core, &cfg->infoframe);
core              345 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	hdmi_core_av_packet_config(core, repeat_cfg);
core              348 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c void hdmi4_core_dump(struct hdmi_core_data *core, struct seq_file *s)
core              354 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 		hdmi_read_reg(core->base, r))
core              356 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 		hdmi_read_reg(hdmi_av_base(core), r))
core              359 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 		hdmi_read_reg(hdmi_av_base(core), CORE_REG(i, r)))
core              516 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c static void hdmi_core_audio_config(struct hdmi_core_data *core,
core              520 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	void __iomem *av_base = hdmi_av_base(core);
core              615 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c static void hdmi_core_audio_infoframe_cfg(struct hdmi_core_data *core,
core              619 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	void __iomem *av_base = hdmi_av_base(core);
core              672 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c int hdmi4_audio_config(struct hdmi_core_data *core, struct hdmi_wp_data *wp,
core              682 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	if (!audio || !audio->iec || !audio->cea || !core)
core              745 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	if (core->cts_swmode) {
core              748 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 		acore.use_mclk = core->audio_use_mclk;
core              846 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	hdmi_core_audio_config(core, &acore);
core              849 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	hdmi_core_audio_infoframe_cfg(core, audio->cea);
core              854 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c int hdmi4_audio_start(struct hdmi_core_data *core, struct hdmi_wp_data *wp)
core              856 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	REG_FLD_MOD(hdmi_av_base(core),
core              864 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c void hdmi4_audio_stop(struct hdmi_core_data *core, struct hdmi_wp_data *wp)
core              866 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	REG_FLD_MOD(hdmi_av_base(core),
core              910 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c int hdmi4_core_init(struct platform_device *pdev, struct hdmi_core_data *core)
core              921 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	core->cts_swmode = features->cts_swmode;
core              922 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	core->audio_use_mclk = features->audio_use_mclk;
core              925 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	core->base = devm_ioremap_resource(&pdev->dev, res);
core              926 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	if (IS_ERR(core->base))
core              927 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 		return PTR_ERR(core->base);
core              252 drivers/gpu/drm/omapdrm/dss/hdmi4_core.h int hdmi4_read_edid(struct hdmi_core_data *core, u8 *edid, int len);
core              253 drivers/gpu/drm/omapdrm/dss/hdmi4_core.h void hdmi4_configure(struct hdmi_core_data *core, struct hdmi_wp_data *wp,
core              255 drivers/gpu/drm/omapdrm/dss/hdmi4_core.h void hdmi4_core_dump(struct hdmi_core_data *core, struct seq_file *s);
core              256 drivers/gpu/drm/omapdrm/dss/hdmi4_core.h int hdmi4_core_init(struct platform_device *pdev, struct hdmi_core_data *core);
core              258 drivers/gpu/drm/omapdrm/dss/hdmi4_core.h int hdmi4_core_enable(struct hdmi_core_data *core);
core              259 drivers/gpu/drm/omapdrm/dss/hdmi4_core.h void hdmi4_core_disable(struct hdmi_core_data *core);
core              260 drivers/gpu/drm/omapdrm/dss/hdmi4_core.h void hdmi4_core_powerdown_disable(struct hdmi_core_data *core);
core              262 drivers/gpu/drm/omapdrm/dss/hdmi4_core.h int hdmi4_audio_start(struct hdmi_core_data *core, struct hdmi_wp_data *wp);
core              263 drivers/gpu/drm/omapdrm/dss/hdmi4_core.h void hdmi4_audio_stop(struct hdmi_core_data *core, struct hdmi_wp_data *wp);
core              264 drivers/gpu/drm/omapdrm/dss/hdmi4_core.h int hdmi4_audio_config(struct hdmi_core_data *core, struct hdmi_wp_data *wp,
core              196 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	hdmi5_configure(&hdmi->core, &hdmi->wp, &hdmi->cfg);
core              267 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	hdmi5_core_dump(&hdmi->core, s);
core              288 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = hdmi5_read_edid(&hdmi->core,  buf, len);
core              329 drivers/gpu/drm/omapdrm/dss/hdmi5.c 		r = hdmi5_audio_config(&hdmi->core, &hdmi->wp,
core              549 drivers/gpu/drm/omapdrm/dss/hdmi5.c 		ret = hdmi5_audio_config(&hd->core, &hd->wp, dss_audio,
core              725 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = hdmi5_core_init(pdev, &hdmi->core);
core               38 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c static void hdmi_core_ddc_init(struct hdmi_core_data *core)
core               40 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	void __iomem *base = core->base;
core              117 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c static void hdmi_core_ddc_uninit(struct hdmi_core_data *core)
core              119 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	void __iomem *base = core->base;
core              127 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c static int hdmi_core_ddc_edid(struct hdmi_core_data *core, u8 *pedid, u8 ext)
core              129 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	void __iomem *base = core->base;
core              187 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c int hdmi5_read_edid(struct hdmi_core_data *core, u8 *edid, int len)
core              195 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	hdmi_core_ddc_init(core);
core              197 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	r = hdmi_core_ddc_edid(core, edid, 0);
core              207 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 		r = hdmi_core_ddc_edid(core, edid + i * EDID_LENGTH, i);
core              213 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	hdmi_core_ddc_uninit(core);
core              218 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c void hdmi5_core_dump(struct hdmi_core_data *core, struct seq_file *s)
core              222 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 		hdmi_read_reg(core->base, r))
core              316 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c static void hdmi_core_video_config(struct hdmi_core_data *core,
core              319 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	void __iomem *base = core->base;
core              379 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c static void hdmi_core_config_video_packetizer(struct hdmi_core_data *core)
core              381 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	void __iomem *base = core->base;
core              400 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c static void hdmi_core_config_csc(struct hdmi_core_data *core)
core              405 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	REG_FLD_MOD(core->base, HDMI_CORE_CSC_SCALE, clr_depth, 7, 4);
core              408 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c static void hdmi_core_config_video_sampler(struct hdmi_core_data *core)
core              413 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	REG_FLD_MOD(core->base, HDMI_CORE_TX_INVID0, video_mapping, 4, 0);
core              416 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c static void hdmi_core_write_avi_infoframe(struct hdmi_core_data *core,
core              419 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	void __iomem *base = core->base;
core              472 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c static void hdmi_core_csc_config(struct hdmi_core_data *core,
core              475 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	void __iomem *base = core->base;
core              505 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c static void hdmi_core_configure_range(struct hdmi_core_data *core)
core              512 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	hdmi_core_csc_config(core, csc_coeff);
core              515 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c static void hdmi_core_enable_video_path(struct hdmi_core_data *core)
core              517 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	void __iomem *base = core->base;
core              531 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c static void hdmi_core_mask_interrupts(struct hdmi_core_data *core)
core              533 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	void __iomem *base = core->base;
core              574 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c static void hdmi_core_enable_interrupts(struct hdmi_core_data *core)
core              577 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	REG_FLD_MOD(core->base, HDMI_CORE_IH_MUTE, 0x0, 1, 0);
core              580 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c int hdmi5_core_handle_irqs(struct hdmi_core_data *core)
core              582 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	void __iomem *base = core->base;
core              597 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c void hdmi5_configure(struct hdmi_core_data *core, struct hdmi_wp_data *wp,
core              604 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	hdmi_core_mask_interrupts(core);
core              620 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	hdmi_core_configure_range(core);
core              628 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	hdmi_core_video_config(core, &v_core_cfg);
core              630 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	hdmi_core_config_video_packetizer(core);
core              631 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	hdmi_core_config_csc(core);
core              632 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	hdmi_core_config_video_sampler(core);
core              635 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 		hdmi_core_write_avi_infoframe(core, &cfg->infoframe);
core              637 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	hdmi_core_enable_video_path(core);
core              639 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	hdmi_core_enable_interrupts(core);
core              642 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c static void hdmi5_core_audio_config(struct hdmi_core_data *core,
core              645 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	void __iomem *base = core->base;
core              778 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c static void hdmi5_core_audio_infoframe_cfg(struct hdmi_core_data *core,
core              781 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	void __iomem *base = core->base;
core              795 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c int hdmi5_audio_config(struct hdmi_core_data *core, struct hdmi_wp_data *wp,
core              805 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	if (!audio || !audio->iec || !audio->cea || !core)
core              888 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	hdmi5_core_audio_config(core, &core_cfg);
core              891 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	hdmi5_core_audio_infoframe_cfg(core, audio->cea);
core              896 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c int hdmi5_core_init(struct platform_device *pdev, struct hdmi_core_data *core)
core              901 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	core->base = devm_ioremap_resource(&pdev->dev, res);
core              902 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	if (IS_ERR(core->base))
core              903 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 		return PTR_ERR(core->base);
core              284 drivers/gpu/drm/omapdrm/dss/hdmi5_core.h int hdmi5_read_edid(struct hdmi_core_data *core, u8 *edid, int len);
core              285 drivers/gpu/drm/omapdrm/dss/hdmi5_core.h void hdmi5_core_dump(struct hdmi_core_data *core, struct seq_file *s);
core              286 drivers/gpu/drm/omapdrm/dss/hdmi5_core.h int hdmi5_core_handle_irqs(struct hdmi_core_data *core);
core              287 drivers/gpu/drm/omapdrm/dss/hdmi5_core.h void hdmi5_configure(struct hdmi_core_data *core, struct hdmi_wp_data *wp,
core              289 drivers/gpu/drm/omapdrm/dss/hdmi5_core.h int hdmi5_core_init(struct platform_device *pdev, struct hdmi_core_data *core);
core              291 drivers/gpu/drm/omapdrm/dss/hdmi5_core.h int hdmi5_audio_config(struct hdmi_core_data *core, struct hdmi_wp_data *wp,
core               85 drivers/gpu/drm/v3d/v3d_debugfs.c 	int i, core;
core              102 drivers/gpu/drm/v3d/v3d_debugfs.c 	for (core = 0; core < v3d->cores; core++) {
core              105 drivers/gpu/drm/v3d/v3d_debugfs.c 				   core,
core              108 drivers/gpu/drm/v3d/v3d_debugfs.c 				   V3D_CORE_READ(core,
core              115 drivers/gpu/drm/v3d/v3d_debugfs.c 					   core,
core              118 drivers/gpu/drm/v3d/v3d_debugfs.c 					   V3D_CORE_READ(core,
core              133 drivers/gpu/drm/v3d/v3d_debugfs.c 	int ret, core;
core              162 drivers/gpu/drm/v3d/v3d_debugfs.c 	for (core = 0; core < cores; core++) {
core              166 drivers/gpu/drm/v3d/v3d_debugfs.c 		ident0 = V3D_CORE_READ(core, V3D_CTL_IDENT0);
core              167 drivers/gpu/drm/v3d/v3d_debugfs.c 		ident1 = V3D_CORE_READ(core, V3D_CTL_IDENT1);
core              168 drivers/gpu/drm/v3d/v3d_debugfs.c 		ident2 = V3D_CORE_READ(core, V3D_CTL_IDENT2);
core              169 drivers/gpu/drm/v3d/v3d_debugfs.c 		misccfg = V3D_CORE_READ(core, V3D_CTL_MISCCFG);
core              175 drivers/gpu/drm/v3d/v3d_debugfs.c 		seq_printf(m, "Core %d:\n", core);
core              218 drivers/gpu/drm/v3d/v3d_debugfs.c 	int core = 0;
core              227 drivers/gpu/drm/v3d/v3d_debugfs.c 		V3D_CORE_WRITE(core, V3D_V4_PCTR_0_SRC_0_3,
core              230 drivers/gpu/drm/v3d/v3d_debugfs.c 		V3D_CORE_WRITE(core, V3D_V4_PCTR_0_CLR, 1);
core              231 drivers/gpu/drm/v3d/v3d_debugfs.c 		V3D_CORE_WRITE(core, V3D_V4_PCTR_0_EN, 1);
core              233 drivers/gpu/drm/v3d/v3d_debugfs.c 		V3D_CORE_WRITE(core, V3D_V3_PCTR_0_PCTRS0,
core              235 drivers/gpu/drm/v3d/v3d_debugfs.c 		V3D_CORE_WRITE(core, V3D_V3_PCTR_0_CLR, 1);
core              236 drivers/gpu/drm/v3d/v3d_debugfs.c 		V3D_CORE_WRITE(core, V3D_V3_PCTR_0_EN,
core              241 drivers/gpu/drm/v3d/v3d_debugfs.c 	cycles = V3D_CORE_READ(core, V3D_PCTR_0_PCTR0);
core              180 drivers/gpu/drm/v3d/v3d_drv.h #define V3D_CORE_READ(core, offset) readl(v3d->core_regs[core] + offset)
core              181 drivers/gpu/drm/v3d/v3d_drv.h #define V3D_CORE_WRITE(core, offset, val) writel(val, v3d->core_regs[core] + offset)
core               22 drivers/gpu/drm/v3d/v3d_gem.c v3d_init_core(struct v3d_dev *v3d, int core)
core               31 drivers/gpu/drm/v3d/v3d_gem.c 		V3D_CORE_WRITE(core, V3D_CTL_MISCCFG, V3D_MISCCFG_OVRTMUOUT);
core               36 drivers/gpu/drm/v3d/v3d_gem.c 	V3D_CORE_WRITE(core, V3D_CTL_L2TFLSTA, 0);
core               37 drivers/gpu/drm/v3d/v3d_gem.c 	V3D_CORE_WRITE(core, V3D_CTL_L2TFLEND, ~0);
core               48 drivers/gpu/drm/v3d/v3d_gem.c v3d_idle_axi(struct v3d_dev *v3d, int core)
core               50 drivers/gpu/drm/v3d/v3d_gem.c 	V3D_CORE_WRITE(core, V3D_GMP_CFG, V3D_GMP_CFG_STOP_REQ);
core               52 drivers/gpu/drm/v3d/v3d_gem.c 	if (wait_for((V3D_CORE_READ(core, V3D_GMP_STATUS) &
core              152 drivers/gpu/drm/v3d/v3d_gem.c v3d_invalidate_l2c(struct v3d_dev *v3d, int core)
core              157 drivers/gpu/drm/v3d/v3d_gem.c 	V3D_CORE_WRITE(core, V3D_CTL_L2CACTL,
core              164 drivers/gpu/drm/v3d/v3d_gem.c v3d_flush_l2t(struct v3d_dev *v3d, int core)
core              174 drivers/gpu/drm/v3d/v3d_gem.c 	V3D_CORE_WRITE(core, V3D_CTL_L2TCACTL,
core              192 drivers/gpu/drm/v3d/v3d_gem.c 	int core = 0;
core              196 drivers/gpu/drm/v3d/v3d_gem.c 	V3D_CORE_WRITE(core, V3D_CTL_L2TCACTL, V3D_L2TCACTL_TMUWCF);
core              197 drivers/gpu/drm/v3d/v3d_gem.c 	if (wait_for(!(V3D_CORE_READ(core, V3D_CTL_L2TCACTL) &
core              203 drivers/gpu/drm/v3d/v3d_gem.c 	V3D_CORE_WRITE(core, V3D_CTL_L2TCACTL,
core              207 drivers/gpu/drm/v3d/v3d_gem.c 	if (wait_for(!(V3D_CORE_READ(core, V3D_CTL_L2TCACTL) &
core              219 drivers/gpu/drm/v3d/v3d_gem.c v3d_invalidate_slices(struct v3d_dev *v3d, int core)
core              221 drivers/gpu/drm/v3d/v3d_gem.c 	V3D_CORE_WRITE(core, V3D_CTL_SLCACTL,
core              209 drivers/gpu/drm/v3d/v3d_irq.c 	int irq1, ret, core;
core              216 drivers/gpu/drm/v3d/v3d_irq.c 	for (core = 0; core < v3d->cores; core++)
core              217 drivers/gpu/drm/v3d/v3d_irq.c 		V3D_CORE_WRITE(core, V3D_CTL_INT_CLR, V3D_CORE_IRQS);
core              256 drivers/gpu/drm/v3d/v3d_irq.c 	int core;
core              259 drivers/gpu/drm/v3d/v3d_irq.c 	for (core = 0; core < v3d->cores; core++) {
core              260 drivers/gpu/drm/v3d/v3d_irq.c 		V3D_CORE_WRITE(core, V3D_CTL_INT_MSK_SET, ~V3D_CORE_IRQS);
core              261 drivers/gpu/drm/v3d/v3d_irq.c 		V3D_CORE_WRITE(core, V3D_CTL_INT_MSK_CLR, V3D_CORE_IRQS);
core              271 drivers/gpu/drm/v3d/v3d_irq.c 	int core;
core              274 drivers/gpu/drm/v3d/v3d_irq.c 	for (core = 0; core < v3d->cores; core++)
core              275 drivers/gpu/drm/v3d/v3d_irq.c 		V3D_CORE_WRITE(core, V3D_CTL_INT_MSK_SET, ~0);
core              279 drivers/gpu/drm/v3d/v3d_irq.c 	for (core = 0; core < v3d->cores; core++)
core              280 drivers/gpu/drm/v3d/v3d_irq.c 		V3D_CORE_WRITE(core, V3D_CTL_INT_CLR, V3D_CORE_IRQS);
core              163 drivers/hwmon/fam15h_power.c 	int core, this_core;
core              181 drivers/hwmon/fam15h_power.c 	core = -1;
core              186 drivers/hwmon/fam15h_power.c 		if (this_core == core)
core              189 drivers/hwmon/fam15h_power.c 		core = this_core;
core               91 drivers/hwmon/k8temp.c 	int core, place;
core               95 drivers/hwmon/k8temp.c 	core = (channel >> 1) & 1;
core               98 drivers/hwmon/k8temp.c 	core ^= data->swap_core_select;
core              103 drivers/hwmon/k8temp.c 	if (core)
core               47 drivers/iio/common/cros_ec_sensors/cros_ec_lid_angle.c 	struct cros_ec_sensors_core_state core;
core               75 drivers/iio/common/cros_ec_sensors/cros_ec_lid_angle.c 	mutex_lock(&st->core.cmd_lock);
core               81 drivers/iio/common/cros_ec_sensors/cros_ec_lid_angle.c 	mutex_unlock(&st->core.cmd_lock);
core              109 drivers/iio/common/cros_ec_sensors/cros_ec_lid_angle.c 	state->core.read_ec_sensors_data = cros_ec_sensors_read_lid_angle;
core               31 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 	struct cros_ec_sensors_core_state core;
core               47 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 	mutex_lock(&st->core.cmd_lock);
core               51 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		ret = st->core.read_ec_sensors_data(indio_dev, 1 << idx, &data);
core               58 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		st->core.param.cmd = MOTIONSENSE_CMD_SENSOR_OFFSET;
core               59 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		st->core.param.sensor_offset.flags = 0;
core               61 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		ret = cros_ec_motion_send_host_cmd(&st->core, 0);
core               67 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 			st->core.calib[i].offset =
core               68 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 				st->core.resp->sensor_offset.offset[i];
core               70 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		*val = st->core.calib[idx].offset;
core               73 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		st->core.param.cmd = MOTIONSENSE_CMD_SENSOR_SCALE;
core               74 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		st->core.param.sensor_offset.flags = 0;
core               76 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		ret = cros_ec_motion_send_host_cmd(&st->core, 0);
core               89 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 			st->core.calib[i].scale =
core               90 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 				st->core.resp->sensor_scale.scale[i];
core               92 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		*val = st->core.calib[idx].scale >> 15;
core               93 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		*val2 = ((st->core.calib[idx].scale & 0x7FFF) * 1000000LL) /
core               98 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		st->core.param.cmd = MOTIONSENSE_CMD_SENSOR_RANGE;
core               99 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		st->core.param.sensor_range.data = EC_MOTION_SENSE_NO_VALUE;
core              101 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		ret = cros_ec_motion_send_host_cmd(&st->core, 0);
core              105 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		val64 = st->core.resp->sensor_range.ret;
core              106 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		switch (st->core.type) {
core              141 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		ret = cros_ec_sensors_core_read(&st->core, chan, val, val2,
core              145 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 	mutex_unlock(&st->core.cmd_lock);
core              159 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 	mutex_lock(&st->core.cmd_lock);
core              163 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		st->core.calib[idx].offset = val;
core              166 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		st->core.param.cmd = MOTIONSENSE_CMD_SENSOR_OFFSET;
core              167 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		st->core.param.sensor_offset.flags =
core              170 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 			st->core.param.sensor_offset.offset[i] =
core              171 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 				st->core.calib[i].offset;
core              172 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		st->core.param.sensor_offset.temp =
core              175 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		ret = cros_ec_motion_send_host_cmd(&st->core, 0);
core              178 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		st->core.calib[idx].scale = val;
core              181 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		st->core.param.cmd = MOTIONSENSE_CMD_SENSOR_SCALE;
core              182 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		st->core.param.sensor_offset.flags =
core              185 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 			st->core.param.sensor_scale.scale[i] =
core              186 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 				st->core.calib[i].scale;
core              187 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		st->core.param.sensor_scale.temp =
core              190 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		ret = cros_ec_motion_send_host_cmd(&st->core, 0);
core              193 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		if (st->core.type == MOTIONSENSE_TYPE_MAG) {
core              197 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		st->core.param.cmd = MOTIONSENSE_CMD_SENSOR_RANGE;
core              198 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		st->core.param.sensor_range.data = val;
core              201 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		st->core.param.sensor_range.roundup = 1;
core              203 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		ret = cros_ec_motion_send_host_cmd(&st->core, 0);
core              207 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 				&st->core, chan, val, val2, mask);
core              211 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 	mutex_unlock(&st->core.cmd_lock);
core              268 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		switch (state->core.type) {
core              296 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 	if ((state->core.ec->cmd_readmem != NULL) &&
core              297 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 	    (state->core.type != MOTIONSENSE_TYPE_MAG))
core              298 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		state->core.read_ec_sensors_data = cros_ec_sensors_read_lpc;
core              300 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c 		state->core.read_ec_sensors_data = cros_ec_sensors_read_cmd;
core               34 drivers/iio/light/cros_ec_light_prox.c 	struct cros_ec_sensors_core_state core;
core               49 drivers/iio/light/cros_ec_light_prox.c 	mutex_lock(&st->core.cmd_lock);
core               82 drivers/iio/light/cros_ec_light_prox.c 		st->core.param.cmd = MOTIONSENSE_CMD_SENSOR_OFFSET;
core               83 drivers/iio/light/cros_ec_light_prox.c 		st->core.param.sensor_offset.flags = 0;
core               85 drivers/iio/light/cros_ec_light_prox.c 		ret = cros_ec_motion_send_host_cmd(&st->core, 0);
core               90 drivers/iio/light/cros_ec_light_prox.c 		st->core.calib[0].offset =
core               91 drivers/iio/light/cros_ec_light_prox.c 			st->core.resp->sensor_offset.offset[0];
core               93 drivers/iio/light/cros_ec_light_prox.c 		*val = st->core.calib[idx].offset;
core              102 drivers/iio/light/cros_ec_light_prox.c 		st->core.param.cmd = MOTIONSENSE_CMD_SENSOR_RANGE;
core              103 drivers/iio/light/cros_ec_light_prox.c 		st->core.param.sensor_range.data = EC_MOTION_SENSE_NO_VALUE;
core              105 drivers/iio/light/cros_ec_light_prox.c 		ret = cros_ec_motion_send_host_cmd(&st->core, 0);
core              109 drivers/iio/light/cros_ec_light_prox.c 		val64 = st->core.resp->sensor_range.ret;
core              115 drivers/iio/light/cros_ec_light_prox.c 		ret = cros_ec_sensors_core_read(&st->core, chan, val, val2,
core              120 drivers/iio/light/cros_ec_light_prox.c 	mutex_unlock(&st->core.cmd_lock);
core              133 drivers/iio/light/cros_ec_light_prox.c 	mutex_lock(&st->core.cmd_lock);
core              137 drivers/iio/light/cros_ec_light_prox.c 		st->core.calib[idx].offset = val;
core              139 drivers/iio/light/cros_ec_light_prox.c 		st->core.param.cmd = MOTIONSENSE_CMD_SENSOR_OFFSET;
core              140 drivers/iio/light/cros_ec_light_prox.c 		st->core.param.sensor_offset.flags = MOTION_SENSE_SET_OFFSET;
core              141 drivers/iio/light/cros_ec_light_prox.c 		st->core.param.sensor_offset.offset[0] =
core              142 drivers/iio/light/cros_ec_light_prox.c 			st->core.calib[0].offset;
core              143 drivers/iio/light/cros_ec_light_prox.c 		st->core.param.sensor_offset.temp =
core              145 drivers/iio/light/cros_ec_light_prox.c 		ret = cros_ec_motion_send_host_cmd(&st->core, 0);
core              148 drivers/iio/light/cros_ec_light_prox.c 		st->core.param.cmd = MOTIONSENSE_CMD_SENSOR_RANGE;
core              149 drivers/iio/light/cros_ec_light_prox.c 		st->core.param.sensor_range.data = (val << 16) | (val2 / 100);
core              150 drivers/iio/light/cros_ec_light_prox.c 		ret = cros_ec_motion_send_host_cmd(&st->core, 0);
core              153 drivers/iio/light/cros_ec_light_prox.c 		ret = cros_ec_sensors_core_write(&st->core, chan, val, val2,
core              158 drivers/iio/light/cros_ec_light_prox.c 	mutex_unlock(&st->core.cmd_lock);
core              193 drivers/iio/light/cros_ec_light_prox.c 	state->core.type = state->core.resp->info.type;
core              194 drivers/iio/light/cros_ec_light_prox.c 	state->core.loc = state->core.resp->info.location;
core              211 drivers/iio/light/cros_ec_light_prox.c 	switch (state->core.type) {
core              244 drivers/iio/light/cros_ec_light_prox.c 	state->core.read_ec_sensors_data = cros_ec_sensors_read_cmd;
core               32 drivers/iio/pressure/cros_ec_baro.c 	struct cros_ec_sensors_core_state core;
core               46 drivers/iio/pressure/cros_ec_baro.c 	mutex_lock(&st->core.cmd_lock);
core               59 drivers/iio/pressure/cros_ec_baro.c 		st->core.param.cmd = MOTIONSENSE_CMD_SENSOR_RANGE;
core               60 drivers/iio/pressure/cros_ec_baro.c 		st->core.param.sensor_range.data = EC_MOTION_SENSE_NO_VALUE;
core               62 drivers/iio/pressure/cros_ec_baro.c 		ret = cros_ec_motion_send_host_cmd(&st->core, 0);
core               66 drivers/iio/pressure/cros_ec_baro.c 		*val = st->core.resp->sensor_range.ret;
core               73 drivers/iio/pressure/cros_ec_baro.c 		ret = cros_ec_sensors_core_read(&st->core, chan, val, val2,
core               78 drivers/iio/pressure/cros_ec_baro.c 	mutex_unlock(&st->core.cmd_lock);
core               90 drivers/iio/pressure/cros_ec_baro.c 	mutex_lock(&st->core.cmd_lock);
core               94 drivers/iio/pressure/cros_ec_baro.c 		st->core.param.cmd = MOTIONSENSE_CMD_SENSOR_RANGE;
core               95 drivers/iio/pressure/cros_ec_baro.c 		st->core.param.sensor_range.data = val;
core               98 drivers/iio/pressure/cros_ec_baro.c 		st->core.param.sensor_range.roundup = 1;
core              100 drivers/iio/pressure/cros_ec_baro.c 		if (cros_ec_motion_send_host_cmd(&st->core, 0))
core              104 drivers/iio/pressure/cros_ec_baro.c 		ret = cros_ec_sensors_core_write(&st->core, chan, val, val2,
core              109 drivers/iio/pressure/cros_ec_baro.c 	mutex_unlock(&st->core.cmd_lock);
core              144 drivers/iio/pressure/cros_ec_baro.c 	state->core.type = state->core.resp->info.type;
core              145 drivers/iio/pressure/cros_ec_baro.c 	state->core.loc = state->core.resp->info.location;
core              163 drivers/iio/pressure/cros_ec_baro.c 	switch (state->core.type) {
core              184 drivers/iio/pressure/cros_ec_baro.c 	state->core.read_ec_sensors_data = cros_ec_sensors_read_cmd;
core              939 drivers/infiniband/hw/mlx5/mlx5_ib.h 	struct mlx5_eq *core;
core             1368 drivers/infiniband/hw/mlx5/odp.c 	while ((eqe = mlx5_eq_get_eqe(eq->core, cc))) {
core             1442 drivers/infiniband/hw/mlx5/odp.c 		cc = mlx5_eq_update_cc(eq->core, ++cc);
core             1445 drivers/infiniband/hw/mlx5/odp.c 	mlx5_eq_update_ci(eq->core, cc, 1);
core             1521 drivers/infiniband/hw/mlx5/odp.c 	eq->core = mlx5_eq_create_generic(dev->mdev, &param);
core             1522 drivers/infiniband/hw/mlx5/odp.c 	if (IS_ERR(eq->core)) {
core             1523 drivers/infiniband/hw/mlx5/odp.c 		err = PTR_ERR(eq->core);
core             1526 drivers/infiniband/hw/mlx5/odp.c 	err = mlx5_eq_enable(dev->mdev, eq->core, &eq->irq_nb);
core             1534 drivers/infiniband/hw/mlx5/odp.c 	mlx5_eq_destroy_generic(dev->mdev, eq->core);
core             1547 drivers/infiniband/hw/mlx5/odp.c 	mlx5_eq_disable(dev->mdev, eq->core, &eq->irq_nb);
core             1548 drivers/infiniband/hw/mlx5/odp.c 	err = mlx5_eq_destroy_generic(dev->mdev, eq->core);
core              142 drivers/input/touchscreen/melfas_mip4.c 	u16 core;
core              217 drivers/input/touchscreen/melfas_mip4.c 	v->core  = get_unaligned_le16(buf + 2);
core              310 drivers/input/touchscreen/melfas_mip4.c 			 ts->fw_version.boot, ts->fw_version.core,
core             1220 drivers/input/touchscreen/melfas_mip4.c 		fw_version.boot, fw_version.core,
core             1224 drivers/input/touchscreen/melfas_mip4.c 		 ts->fw_version.boot, ts->fw_version.core,
core             1229 drivers/input/touchscreen/melfas_mip4.c 	    fw_version.core == 0xEEEE &&
core             1234 drivers/input/touchscreen/melfas_mip4.c 		   fw_version.core != 0xEEEE && fw_version.core != 0xFFFF &&
core             1340 drivers/input/touchscreen/melfas_mip4.c 			 ts->fw_version.boot, ts->fw_version.core,
core              127 drivers/macintosh/windfarm_pm112.c 	int core = cpu & 1;
core              136 drivers/macintosh/windfarm_pm112.c 	hdr = smu_sat_get_sdb_partition(chip, 0xC8 + core, NULL);
core              144 drivers/macintosh/windfarm_pm112.c 	hdr = smu_sat_get_sdb_partition(chip, 0xC4 + core, NULL);
core              200 drivers/macintosh/windfarm_smu_sat.c 	u8 chip, core;
core              235 drivers/macintosh/windfarm_smu_sat.c 		core = loc[5] - '0';
core              236 drivers/macintosh/windfarm_smu_sat.c 		if (chip > 1 || core > 1) {
core              241 drivers/macintosh/windfarm_smu_sat.c 		cpu = 2 * chip + core;
core              253 drivers/macintosh/windfarm_smu_sat.c 			vsens[core] = index;
core              257 drivers/macintosh/windfarm_smu_sat.c 			isens[core] = index;
core              288 drivers/macintosh/windfarm_smu_sat.c 	for (core = 0; core < 2; ++core) {
core              289 drivers/macintosh/windfarm_smu_sat.c 		if (vsens[core] < 0 || isens[core] < 0)
core              291 drivers/macintosh/windfarm_smu_sat.c 		cpu = 2 * sat->nr + core;
core              298 drivers/macintosh/windfarm_smu_sat.c 		sens->index = vsens[core];
core              299 drivers/macintosh/windfarm_smu_sat.c 		sens->index2 = isens[core];
core              353 drivers/md/dm-era-target.c static void ws_pack(const struct writeset_metadata *core, struct writeset_disk *disk)
core              355 drivers/md/dm-era-target.c 	disk->nr_bits = cpu_to_le32(core->nr_bits);
core              356 drivers/md/dm-era-target.c 	disk->root = cpu_to_le64(core->root);
core              359 drivers/md/dm-era-target.c static void ws_unpack(const struct writeset_disk *disk, struct writeset_metadata *core)
core              361 drivers/md/dm-era-target.c 	core->nr_bits = le32_to_cpu(disk->nr_bits);
core              362 drivers/md/dm-era-target.c 	core->root = le64_to_cpu(disk->root);
core              280 drivers/md/dm-log.c static void header_to_disk(struct log_header_core *core, struct log_header_disk *disk)
core              282 drivers/md/dm-log.c 	disk->magic = cpu_to_le32(core->magic);
core              283 drivers/md/dm-log.c 	disk->version = cpu_to_le32(core->version);
core              284 drivers/md/dm-log.c 	disk->nr_regions = cpu_to_le64(core->nr_regions);
core              287 drivers/md/dm-log.c static void header_from_disk(struct log_header_core *core, struct log_header_disk *disk)
core              289 drivers/md/dm-log.c 	core->magic = le32_to_cpu(disk->magic);
core              290 drivers/md/dm-log.c 	core->version = le32_to_cpu(disk->version);
core              291 drivers/md/dm-log.c 	core->nr_regions = le64_to_cpu(disk->nr_regions);
core              389 drivers/media/common/siano/smscoreapi.c void smscore_set_board_id(struct smscore_device_t *core, int id)
core              391 drivers/media/common/siano/smscoreapi.c 	core->board_id = id;
core              394 drivers/media/common/siano/smscoreapi.c int smscore_led_state(struct smscore_device_t *core, int led)
core              397 drivers/media/common/siano/smscoreapi.c 		core->led_state = led;
core              398 drivers/media/common/siano/smscoreapi.c 	return core->led_state;
core              402 drivers/media/common/siano/smscoreapi.c int smscore_get_board_id(struct smscore_device_t *core)
core              404 drivers/media/common/siano/smscoreapi.c 	return core->board_id;
core             1165 drivers/media/common/siano/smscoreapi.h void smscore_set_board_id(struct smscore_device_t *core, int id);
core             1166 drivers/media/common/siano/smscoreapi.h int smscore_get_board_id(struct smscore_device_t *core);
core             1168 drivers/media/common/siano/smscoreapi.h int smscore_led_state(struct smscore_device_t *core, int led);
core              660 drivers/media/dvb-frontends/au8522_decoder.c 	.core = &au8522_core_ops,
core              870 drivers/media/dvb-frontends/rtl2832_sdr.c 	if (V4L2_SUBDEV_HAS_OP(dev->v4l2_subdev, core, s_power))
core              871 drivers/media/dvb-frontends/rtl2832_sdr.c 		ret = v4l2_subdev_call(dev->v4l2_subdev, core, s_power, 1);
core              923 drivers/media/dvb-frontends/rtl2832_sdr.c 	if (V4L2_SUBDEV_HAS_OP(dev->v4l2_subdev, core, s_power))
core              924 drivers/media/dvb-frontends/rtl2832_sdr.c 		v4l2_subdev_call(dev->v4l2_subdev, core, s_power, 0);
core              253 drivers/media/i2c/ad5820.c 	.core = &ad5820_core_ops,
core              778 drivers/media/i2c/ad9389b.c 	.core  = &ad9389b_core_ops,
core              367 drivers/media/i2c/adp1653.c 	.core = &adp1653_core_ops,
core              385 drivers/media/i2c/adv7175.c 	.core = &adv7175_core_ops,
core              867 drivers/media/i2c/adv7180.c 	.core = &adv7180_core_ops,
core              519 drivers/media/i2c/adv7183.c 	.core = &adv7183_core_ops,
core              361 drivers/media/i2c/adv7343.c 	.core	= &adv7343_core_ops,
core              348 drivers/media/i2c/adv7393.c 	.core	= &adv7393_core_ops,
core             1447 drivers/media/i2c/adv7511-v4l2.c 	.core  = &adv7511_core_ops,
core             2704 drivers/media/i2c/adv7604.c 	.core = &adv76xx_core_ops,
core             3308 drivers/media/i2c/adv7842.c 	.core = &adv7842_core_ops,
core              224 drivers/media/i2c/ak881x.c 	.core	= &ak881x_subdev_core_ops,
core              178 drivers/media/i2c/bt856.c 	.core = &bt856_core_ops,
core               62 drivers/media/i2c/cs3308.c 	.core = &cs3308_core_ops,
core              133 drivers/media/i2c/cs5345.c 	.core = &cs5345_core_ops,
core              118 drivers/media/i2c/cs53l32a.c 	.core = &cs53l32a_core_ops,
core             5773 drivers/media/i2c/cx25840/cx25840-core.c 	.core = &cx25840_core_ops,
core             1361 drivers/media/i2c/et8ek8/et8ek8_driver.c 	.core = &et8ek8_core_ops,
core              851 drivers/media/i2c/imx214.c 	.core = &imx214_core_ops,
core             2250 drivers/media/i2c/imx319.c 	.core = &imx319_subdev_core_ops,
core             1550 drivers/media/i2c/imx355.c 	.core = &imx355_subdev_core_ops,
core              340 drivers/media/i2c/lm3560.c 	.core = NULL,
core              262 drivers/media/i2c/lm3646.c 	.core = NULL,
core              123 drivers/media/i2c/m52790.c 	.core = &m52790_core_ops,
core              922 drivers/media/i2c/m5mols/m5mols_core.c 	.core		= &m5mols_core_ops,
core              311 drivers/media/i2c/ml86v7667.c 	.core = &ml86v7667_subdev_core_ops,
core              651 drivers/media/i2c/msp3400-driver.c 	.core = &msp_core_ops,
core              723 drivers/media/i2c/mt9m001.c 	.core	= &mt9m001_subdev_core_ops,
core              691 drivers/media/i2c/mt9m032.c 	.core = &mt9m032_core_ops,
core             1174 drivers/media/i2c/mt9m111.c 	.core	= &mt9m111_subdev_core_ops,
core              990 drivers/media/i2c/mt9p031.c 	.core   = &mt9p031_subdev_core_ops,
core              840 drivers/media/i2c/mt9t001.c 	.core = &mt9t001_subdev_core_ops,
core             1021 drivers/media/i2c/mt9t112.c 	.core	= &mt9t112_subdev_core_ops,
core              177 drivers/media/i2c/mt9v011.c 	struct mt9v011 *core = to_mt9v011(sd);
core              182 drivers/media/i2c/mt9v011.c 	exposure = core->exposure;
core              184 drivers/media/i2c/mt9v011.c 	green_gain = calc_mt9v011_gain(core->global_gain);
core              186 drivers/media/i2c/mt9v011.c 	bal = core->global_gain;
core              187 drivers/media/i2c/mt9v011.c 	bal += (core->blue_bal * core->global_gain / (1 << 7));
core              190 drivers/media/i2c/mt9v011.c 	bal = core->global_gain;
core              191 drivers/media/i2c/mt9v011.c 	bal += (core->red_bal * core->global_gain / (1 << 7));
core              203 drivers/media/i2c/mt9v011.c 	struct mt9v011 *core = to_mt9v011(sd);
core              218 drivers/media/i2c/mt9v011.c 	frames_per_ms = core->xtal * 1000l;
core              233 drivers/media/i2c/mt9v011.c 	struct mt9v011 *core = to_mt9v011(sd);
core              250 drivers/media/i2c/mt9v011.c 	t_time = core->xtal * ((u64)numerator);
core              273 drivers/media/i2c/mt9v011.c 	struct mt9v011 *core = to_mt9v011(sd);
core              287 drivers/media/i2c/mt9v011.c 	hstart = 20 + (640 - core->width) / 2;
core              289 drivers/media/i2c/mt9v011.c 	mt9v011_write(sd, R04_MT9V011_WIDTH, core->width);
core              290 drivers/media/i2c/mt9v011.c 	mt9v011_write(sd, R05_MT9V011_HBLANK, 771 - core->width);
core              292 drivers/media/i2c/mt9v011.c 	vstart = 8 + (480 - core->height) / 2;
core              294 drivers/media/i2c/mt9v011.c 	mt9v011_write(sd, R03_MT9V011_HEIGHT, core->height);
core              295 drivers/media/i2c/mt9v011.c 	mt9v011_write(sd, R06_MT9V011_VBLANK, 508 - core->height);
core              302 drivers/media/i2c/mt9v011.c 	struct mt9v011 *core = to_mt9v011(sd);
core              305 drivers/media/i2c/mt9v011.c 	if (core->hflip)
core              308 drivers/media/i2c/mt9v011.c 	if (core->vflip)
core              345 drivers/media/i2c/mt9v011.c 	struct mt9v011 *core = to_mt9v011(sd);
core              356 drivers/media/i2c/mt9v011.c 		core->width = fmt->width;
core              357 drivers/media/i2c/mt9v011.c 		core->height = fmt->height;
core              415 drivers/media/i2c/mt9v011.c 	struct mt9v011 *core =
core              417 drivers/media/i2c/mt9v011.c 	struct v4l2_subdev *sd = &core->sd;
core              421 drivers/media/i2c/mt9v011.c 		core->global_gain = ctrl->val;
core              424 drivers/media/i2c/mt9v011.c 		core->exposure = ctrl->val;
core              427 drivers/media/i2c/mt9v011.c 		core->red_bal = ctrl->val;
core              430 drivers/media/i2c/mt9v011.c 		core->blue_bal = ctrl->val;
core              433 drivers/media/i2c/mt9v011.c 		core->hflip = ctrl->val;
core              437 drivers/media/i2c/mt9v011.c 		core->vflip = ctrl->val;
core              471 drivers/media/i2c/mt9v011.c 	.core  = &mt9v011_core_ops,
core              485 drivers/media/i2c/mt9v011.c 	struct mt9v011 *core;
core              496 drivers/media/i2c/mt9v011.c 	core = devm_kzalloc(&c->dev, sizeof(struct mt9v011), GFP_KERNEL);
core              497 drivers/media/i2c/mt9v011.c 	if (!core)
core              500 drivers/media/i2c/mt9v011.c 	sd = &core->sd;
core              504 drivers/media/i2c/mt9v011.c 	core->pad.flags = MEDIA_PAD_FL_SOURCE;
core              507 drivers/media/i2c/mt9v011.c 	ret = media_entity_pads_init(&sd->entity, 1, &core->pad);
core              521 drivers/media/i2c/mt9v011.c 	v4l2_ctrl_handler_init(&core->ctrls, 5);
core              522 drivers/media/i2c/mt9v011.c 	v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops,
core              524 drivers/media/i2c/mt9v011.c 	v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops,
core              526 drivers/media/i2c/mt9v011.c 	v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops,
core              528 drivers/media/i2c/mt9v011.c 	v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops,
core              530 drivers/media/i2c/mt9v011.c 	v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops,
core              532 drivers/media/i2c/mt9v011.c 	v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops,
core              535 drivers/media/i2c/mt9v011.c 	if (core->ctrls.error) {
core              536 drivers/media/i2c/mt9v011.c 		int ret = core->ctrls.error;
core              539 drivers/media/i2c/mt9v011.c 		v4l2_ctrl_handler_free(&core->ctrls);
core              542 drivers/media/i2c/mt9v011.c 	core->sd.ctrl_handler = &core->ctrls;
core              544 drivers/media/i2c/mt9v011.c 	core->global_gain = 0x0024;
core              545 drivers/media/i2c/mt9v011.c 	core->exposure = 0x01fc;
core              546 drivers/media/i2c/mt9v011.c 	core->width  = 640;
core              547 drivers/media/i2c/mt9v011.c 	core->height = 480;
core              548 drivers/media/i2c/mt9v011.c 	core->xtal = 27000000;	/* Hz */
core              553 drivers/media/i2c/mt9v011.c 		core->xtal = pdata->xtal;
core              555 drivers/media/i2c/mt9v011.c 			core->xtal / 1000000, (core->xtal / 1000) % 1000);
core              567 drivers/media/i2c/mt9v011.c 	struct mt9v011 *core = to_mt9v011(sd);
core              574 drivers/media/i2c/mt9v011.c 	v4l2_ctrl_handler_free(&core->ctrls);
core              969 drivers/media/i2c/mt9v032.c 	.core	= &mt9v032_subdev_core_ops,
core              984 drivers/media/i2c/mt9v111.c 	.core	= &mt9v111_core_ops,
core              674 drivers/media/i2c/noon010pc30.c 	.core	= &noon010_core_ops,
core             1149 drivers/media/i2c/ov2640.c 	.core	= &ov2640_subdev_core_ops,
core             1306 drivers/media/i2c/ov2659.c 	.core  = &ov2659_subdev_core_ops,
core              890 drivers/media/i2c/ov2680.c 	.core	= &ov2680_core_ops,
core             2899 drivers/media/i2c/ov5640.c 	.core = &ov5640_core_ops,
core             1047 drivers/media/i2c/ov5645.c 	.core = &ov5645_core_ops,
core              471 drivers/media/i2c/ov5647.c 	.core		= &ov5647_subdev_core_ops,
core              972 drivers/media/i2c/ov6650.c 	.core	= &ov6650_core_ops,
core             1249 drivers/media/i2c/ov7251.c 	.core = &ov7251_core_ops,
core             1748 drivers/media/i2c/ov7670.c 	.core = &ov7670_core_ops,
core             1346 drivers/media/i2c/ov772x.c 	.core	= &ov772x_subdev_core_ops,
core              886 drivers/media/i2c/ov7740.c 	.core	= &ov7740_subdev_core_ops,
core              674 drivers/media/i2c/ov9640.c 	.core	= &ov9640_core_ops,
core             1399 drivers/media/i2c/ov9650.c 	.core = &ov965x_core_ops,
core             1254 drivers/media/i2c/rj54n1cb0c.c 	.core	= &rj54n1_subdev_core_ops,
core             1538 drivers/media/i2c/s5c73m3/s5c73m3-core.c 	.core	= &s5c73m3_oif_core_ops,
core              834 drivers/media/i2c/s5k4ecgx.c 	.core = &s5k4ecgx_core_ops,
core             1789 drivers/media/i2c/s5k5baf.c 	.core = &s5k5baf_core_ops,
core              274 drivers/media/i2c/s5k6a3.c 	.core = &s5k6a3_core_ops,
core             1495 drivers/media/i2c/s5k6aa.c 	.core = &s5k6aa_core_ops,
core              445 drivers/media/i2c/saa6588.c 	.core = &saa6588_core_ops,
core              657 drivers/media/i2c/saa6752hs.c 	.core = &saa6752hs_core_ops,
core             1619 drivers/media/i2c/saa7115.c 	.core = &saa711x_core_ops,
core              704 drivers/media/i2c/saa7127.c 	.core = &saa7127_core_ops,
core             1218 drivers/media/i2c/saa717x.c 	.core = &saa717x_core_ops,
core              286 drivers/media/i2c/saa7185.c 	.core = &saa7185_core_ops,
core              643 drivers/media/i2c/sr030pc30.c 	.core	= &sr030pc30_core_ops,
core             1854 drivers/media/i2c/tc358743.c 	.core = &tc358743_core_ops,
core             2028 drivers/media/i2c/tda1997x.c 	.core = &tda1997x_core_ops,
core              337 drivers/media/i2c/tda7432.c 	.core = &tda7432_core_ops,
core              321 drivers/media/i2c/ths7303.c 	.core	= &ths7303_core_ops,
core              434 drivers/media/i2c/ths8200.c 	.core  = &ths8200_core_ops,
core              119 drivers/media/i2c/tlv320aic23b.c 	.core = &tlv320aic23b_core_ops,
core             1926 drivers/media/i2c/tvaudio.c 	.core = &tvaudio_core_ops,
core             1435 drivers/media/i2c/tvp5150.c 	.core = &tvp5150_core_ops,
core             1523 drivers/media/i2c/tvp5150.c static int tvp5150_detect_version(struct tvp5150 *core)
core             1525 drivers/media/i2c/tvp5150.c 	struct v4l2_subdev *sd = &core->sd;
core             1534 drivers/media/i2c/tvp5150.c 	res = regmap_bulk_read(core->regmap, TVP5150_MSB_DEV_ID, regs, 4);
core             1540 drivers/media/i2c/tvp5150.c 	core->dev_id = (regs[0] << 8) | regs[1];
core             1541 drivers/media/i2c/tvp5150.c 	core->rom_ver = (regs[2] << 8) | regs[3];
core             1544 drivers/media/i2c/tvp5150.c 		  core->dev_id, regs[2], regs[3], c->addr << 1,
core             1547 drivers/media/i2c/tvp5150.c 	if (core->dev_id == 0x5150 && core->rom_ver == 0x0321) {
core             1549 drivers/media/i2c/tvp5150.c 	} else if (core->dev_id == 0x5150 && core->rom_ver == 0x0400) {
core             1553 drivers/media/i2c/tvp5150.c 		regmap_write(core->regmap, TVP5150_REV_SELECT, 0);
core             1554 drivers/media/i2c/tvp5150.c 	} else if (core->dev_id == 0x5151 && core->rom_ver == 0x0100) {
core             1558 drivers/media/i2c/tvp5150.c 			  core->dev_id);
core             1700 drivers/media/i2c/tvp5150.c 	struct tvp5150 *core;
core             1715 drivers/media/i2c/tvp5150.c 	core = devm_kzalloc(&c->dev, sizeof(*core), GFP_KERNEL);
core             1716 drivers/media/i2c/tvp5150.c 	if (!core)
core             1723 drivers/media/i2c/tvp5150.c 	core->regmap = map;
core             1724 drivers/media/i2c/tvp5150.c 	sd = &core->sd;
core             1727 drivers/media/i2c/tvp5150.c 		res = tvp5150_parse_dt(core, np);
core             1734 drivers/media/i2c/tvp5150.c 		core->mbus_type = V4L2_MBUS_BT656;
core             1742 drivers/media/i2c/tvp5150.c 	core->pads[TVP5150_PAD_IF_INPUT].flags = MEDIA_PAD_FL_SINK;
core             1743 drivers/media/i2c/tvp5150.c 	core->pads[TVP5150_PAD_IF_INPUT].sig_type = PAD_SIGNAL_ANALOG;
core             1744 drivers/media/i2c/tvp5150.c 	core->pads[TVP5150_PAD_VID_OUT].flags = MEDIA_PAD_FL_SOURCE;
core             1745 drivers/media/i2c/tvp5150.c 	core->pads[TVP5150_PAD_VID_OUT].sig_type = PAD_SIGNAL_DV;
core             1749 drivers/media/i2c/tvp5150.c 	res = media_entity_pads_init(&sd->entity, TVP5150_NUM_PADS, core->pads);
core             1756 drivers/media/i2c/tvp5150.c 	res = tvp5150_detect_version(core);
core             1760 drivers/media/i2c/tvp5150.c 	core->norm = V4L2_STD_ALL;	/* Default is autodetect */
core             1761 drivers/media/i2c/tvp5150.c 	core->detected_norm = V4L2_STD_UNKNOWN;
core             1762 drivers/media/i2c/tvp5150.c 	core->input = TVP5150_COMPOSITE1;
core             1763 drivers/media/i2c/tvp5150.c 	core->enable = true;
core             1765 drivers/media/i2c/tvp5150.c 	v4l2_ctrl_handler_init(&core->hdl, 5);
core             1766 drivers/media/i2c/tvp5150.c 	v4l2_ctrl_new_std(&core->hdl, &tvp5150_ctrl_ops,
core             1768 drivers/media/i2c/tvp5150.c 	v4l2_ctrl_new_std(&core->hdl, &tvp5150_ctrl_ops,
core             1770 drivers/media/i2c/tvp5150.c 	v4l2_ctrl_new_std(&core->hdl, &tvp5150_ctrl_ops,
core             1772 drivers/media/i2c/tvp5150.c 	v4l2_ctrl_new_std(&core->hdl, &tvp5150_ctrl_ops,
core             1774 drivers/media/i2c/tvp5150.c 	v4l2_ctrl_new_std(&core->hdl, &tvp5150_ctrl_ops,
core             1777 drivers/media/i2c/tvp5150.c 	v4l2_ctrl_new_std_menu_items(&core->hdl, &tvp5150_ctrl_ops,
core             1781 drivers/media/i2c/tvp5150.c 	sd->ctrl_handler = &core->hdl;
core             1782 drivers/media/i2c/tvp5150.c 	if (core->hdl.error) {
core             1783 drivers/media/i2c/tvp5150.c 		res = core->hdl.error;
core             1787 drivers/media/i2c/tvp5150.c 	tvp5150_set_default(tvp5150_read_std(sd), &core->rect);
core             1789 drivers/media/i2c/tvp5150.c 	core->irq = c->irq;
core             1794 drivers/media/i2c/tvp5150.c 						IRQF_ONESHOT, "tvp5150", core);
core             1808 drivers/media/i2c/tvp5150.c 	v4l2_ctrl_handler_free(&core->hdl);
core              875 drivers/media/i2c/tvp7002.c 	.core = &tvp7002_core_ops,
core              342 drivers/media/i2c/tw2804.c 	.core = &tw2804_core_ops,
core              186 drivers/media/i2c/tw9903.c 	.core = &tw9903_core_ops,
core              156 drivers/media/i2c/tw9906.c 	.core = &tw9906_core_ops,
core              922 drivers/media/i2c/tw9910.c 	.core	= &tw9910_subdev_core_ops,
core              177 drivers/media/i2c/upd64031a.c 	.core = &upd64031a_core_ops,
core              149 drivers/media/i2c/upd64083.c 	.core = &upd64083_core_ops,
core              127 drivers/media/i2c/vp27smpx.c 	.core = &vp27smpx_core_ops,
core              451 drivers/media/i2c/vpx3220.c 	.core = &vpx3220_core_ops,
core              736 drivers/media/i2c/vs6624.c 	.core = &vs6624_core_ops,
core              173 drivers/media/i2c/wm8739.c 	.core = &wm8739_core_ops,
core              179 drivers/media/i2c/wm8775.c 	.core = &wm8775_core_ops,
core             1862 drivers/media/pci/bt8xx/bttv-driver.c 	bttv_call_all(btv, core, log_status);
core             3190 drivers/media/pci/bt8xx/bttv-driver.c 	bttv_call_all(btv, core, ioctl, SAA6588_CMD_CLOSE, &cmd);
core             3271 drivers/media/pci/bt8xx/bttv-driver.c 	bttv_call_all(btv, core, ioctl, SAA6588_CMD_READ, &cmd);
core             3292 drivers/media/pci/bt8xx/bttv-driver.c 	bttv_call_all(btv, core, ioctl, SAA6588_CMD_POLL, &cmd);
core               72 drivers/media/pci/bt8xx/bttv-gpio.c int bttv_sub_add_device(struct bttv_core *core, char *name)
core               81 drivers/media/pci/bt8xx/bttv-gpio.c 	sub->core        = core;
core               82 drivers/media/pci/bt8xx/bttv-gpio.c 	sub->dev.parent  = &core->pci->dev;
core               85 drivers/media/pci/bt8xx/bttv-gpio.c 	dev_set_name(&sub->dev, "%s%d", name, core->nr);
core               92 drivers/media/pci/bt8xx/bttv-gpio.c 	pr_info("%d: add subdevice \"%s\"\n", core->nr, dev_name(&sub->dev));
core               93 drivers/media/pci/bt8xx/bttv-gpio.c 	list_add_tail(&sub->list,&core->subs);
core               97 drivers/media/pci/bt8xx/bttv-gpio.c int bttv_sub_del_devices(struct bttv_core *core)
core              101 drivers/media/pci/bt8xx/bttv-gpio.c 	list_for_each_entry_safe(sub, save, &core->subs, list) {
core              129 drivers/media/pci/bt8xx/bttv-gpio.c void bttv_gpio_inout(struct bttv_core *core, u32 mask, u32 outbits)
core              131 drivers/media/pci/bt8xx/bttv-gpio.c 	struct bttv *btv = container_of(core, struct bttv, c);
core              143 drivers/media/pci/bt8xx/bttv-gpio.c u32 bttv_gpio_read(struct bttv_core *core)
core              145 drivers/media/pci/bt8xx/bttv-gpio.c 	struct bttv *btv = container_of(core, struct bttv, c);
core              152 drivers/media/pci/bt8xx/bttv-gpio.c void bttv_gpio_write(struct bttv_core *core, u32 value)
core              154 drivers/media/pci/bt8xx/bttv-gpio.c 	struct bttv *btv = container_of(core, struct bttv, c);
core              159 drivers/media/pci/bt8xx/bttv-gpio.c void bttv_gpio_bits(struct bttv_core *core, u32 mask, u32 bits)
core              161 drivers/media/pci/bt8xx/bttv-gpio.c 	struct bttv *btv = container_of(core, struct bttv, c);
core              334 drivers/media/pci/bt8xx/bttv.h 	struct bttv_core *core;
core              351 drivers/media/pci/bt8xx/bttv.h void bttv_gpio_inout(struct bttv_core *core, u32 mask, u32 outbits);
core              352 drivers/media/pci/bt8xx/bttv.h u32 bttv_gpio_read(struct bttv_core *core);
core              353 drivers/media/pci/bt8xx/bttv.h void bttv_gpio_write(struct bttv_core *core, u32 value);
core              354 drivers/media/pci/bt8xx/bttv.h void bttv_gpio_bits(struct bttv_core *core, u32 mask, u32 bits);
core              278 drivers/media/pci/bt8xx/bttvp.h int bttv_sub_add_device(struct bttv_core *core, char *name);
core              279 drivers/media/pci/bt8xx/bttvp.h int bttv_sub_del_devices(struct bttv_core *core);
core              811 drivers/media/pci/bt8xx/dvb-bt8xx.c 	card->bttv_nr = sub->core->nr;
core              812 drivers/media/pci/bt8xx/dvb-bt8xx.c 	strscpy(card->card_name, sub->core->v4l2_dev.name,
core              814 drivers/media/pci/bt8xx/dvb-bt8xx.c 	card->i2c_adapter = &sub->core->i2c_adap;
core              816 drivers/media/pci/bt8xx/dvb-bt8xx.c 	switch(sub->core->type) {
core              880 drivers/media/pci/bt8xx/dvb-bt8xx.c 		pr_err("Unknown bttv card type: %d\n", sub->core->type);
core              902 drivers/media/pci/bt8xx/dvb-bt8xx.c 	card->bt->bttv_nr = sub->core->nr;
core              904 drivers/media/pci/bt8xx/dvb-bt8xx.c 	if ( (ret = dvb_bt8xx_load_card(card, sub->core->type)) ) {
core              643 drivers/media/pci/cobalt/cobalt-driver.c 		v4l2_subdev_call(s->sd, core, s_power, 1);
core              727 drivers/media/pci/cobalt/cobalt-driver.c 	v4l2_device_call_all(&cobalt->v4l2_dev, 0, core,
core              211 drivers/media/pci/cobalt/cobalt-irq.c 			v4l2_subdev_call(cobalt->streams[i].sd, core,
core              588 drivers/media/pci/cobalt/cobalt-v4l2.c 	v4l2_subdev_call(s->sd, core, log_status);
core             1291 drivers/media/pci/cx18/cx18-av-core.c 	.core = &cx18_av_general_ops,
core             1006 drivers/media/pci/cx18/cx18-driver.c 					core, reset, (u32) CX18_GPIO_RESET_I2C);
core             1209 drivers/media/pci/cx18/cx18-driver.c 	v4l2_subdev_call(cx->sd_av, core, load_fw);
core              184 drivers/media/pci/cx18/cx18-gpio.c 	.core = &gpiomux_core_ops,
core              248 drivers/media/pci/cx18/cx18-gpio.c 	.core = &resetctrl_core_ops,
core              318 drivers/media/pci/cx18/cx18-gpio.c 			 core, reset, CX18_GPIO_RESET_Z8F0811);
core              336 drivers/media/pci/cx18/cx18-gpio.c 				core, reset, CX18_GPIO_RESET_XC2028);
core              272 drivers/media/pci/cx18/cx18-i2c.c 		     core, reset, (u32) CX18_GPIO_RESET_I2C);
core             1014 drivers/media/pci/cx18/cx18-ioctl.c 	cx18_call_all(cx, core, log_status);
core             1054 drivers/media/pci/cx18/cx18-ioctl.c 			cx18_call_hw(cx, CX18_HW_GPIO_RESET_CTRL, core, reset,
core             1403 drivers/media/pci/cx23885/cx23885-417.c 	call_all(dev, core, log_status);
core               20 drivers/media/pci/cx23885/cx23885-av.c 	v4l2_subdev_call(dev->sd_cx25840, core, interrupt_service_routine,
core             1944 drivers/media/pci/cx23885/cx23885-cards.c 		v4l2_subdev_call(dev->sd_cx25840, core, s_io_pin_config,
core             1953 drivers/media/pci/cx23885/cx23885-cards.c 		v4l2_subdev_call(dev->sd_cx25840, core, s_io_pin_config,
core             1986 drivers/media/pci/cx23885/cx23885-cards.c 		v4l2_subdev_call(dev->sd_cx25840, core, s_io_pin_config,
core             1997 drivers/media/pci/cx23885/cx23885-cards.c 		v4l2_subdev_call(dev->sd_cx25840, core, s_io_pin_config,
core             2384 drivers/media/pci/cx23885/cx23885-cards.c 			v4l2_subdev_call(dev->sd_cx25840, core, load_fw);
core             1923 drivers/media/pci/cx23885/cx23885-core.c 		v4l2_subdev_call(dev->sd_ir, core, interrupt_service_routine,
core              811 drivers/media/pci/cx23885/cx23885-video.c 	call_all(dev, core, log_status);
core             1120 drivers/media/pci/cx23885/cx23888-ir.c 	.core = &cx23888_ir_core_ops,
core               37 drivers/media/pci/cx88/cx88-alsa.c 			chip->core->name, ##arg);			\
core               54 drivers/media/pci/cx88/cx88-alsa.c 	struct cx88_core           *core;
core              117 drivers/media/pci/cx88/cx88-alsa.c 	struct cx88_core *core = chip->core;
core              124 drivers/media/pci/cx88/cx88-alsa.c 	cx88_sram_channel_setup(chip->core, audio_ch, buf->bpl, buf->risc.dma);
core              146 drivers/media/pci/cx88/cx88-alsa.c 	cx_set(MO_PCI_INTMSK, chip->core->pci_irqmask | PCI_INT_AUDINT);
core              156 drivers/media/pci/cx88/cx88-alsa.c 		cx88_sram_channel_dump(chip->core, audio_ch);
core              166 drivers/media/pci/cx88/cx88-alsa.c 	struct cx88_core *core = chip->core;
core              179 drivers/media/pci/cx88/cx88-alsa.c 		cx88_sram_channel_dump(chip->core,
core              208 drivers/media/pci/cx88/cx88-alsa.c 	struct cx88_core *core = chip->core;
core              224 drivers/media/pci/cx88/cx88-alsa.c 		cx88_sram_channel_dump(core, &cx88_sram_channels[SRAM_CH25]);
core              245 drivers/media/pci/cx88/cx88-alsa.c 	struct cx88_core *core = chip->core;
core              251 drivers/media/pci/cx88/cx88-alsa.c 			(core->pci_irqmask | PCI_INT_AUDINT);
core              259 drivers/media/pci/cx88/cx88-alsa.c 		if (status & core->pci_irqmask)
core              260 drivers/media/pci/cx88/cx88-alsa.c 			cx88_core_irq(core, status);
core              634 drivers/media/pci/cx88/cx88-alsa.c 	struct cx88_core *core = chip->core;
core              649 drivers/media/pci/cx88/cx88-alsa.c 	struct cx88_core *core = chip->core;
core              662 drivers/media/pci/cx88/cx88-alsa.c 	wm8775_s_ctrl(core, V4L2_CID_AUDIO_VOLUME, v);
core              663 drivers/media/pci/cx88/cx88-alsa.c 	wm8775_s_ctrl(core, V4L2_CID_AUDIO_BALANCE, b);
core              671 drivers/media/pci/cx88/cx88-alsa.c 	struct cx88_core *core = chip->core;
core              676 drivers/media/pci/cx88/cx88-alsa.c 	if (core->sd_wm8775)
core              721 drivers/media/pci/cx88/cx88-alsa.c 	struct cx88_core *core = chip->core;
core              732 drivers/media/pci/cx88/cx88-alsa.c 	struct cx88_core *core = chip->core;
core              743 drivers/media/pci/cx88/cx88-alsa.c 		if (core->sd_wm8775 && ((1 << 6) == bit))
core              744 drivers/media/pci/cx88/cx88-alsa.c 			wm8775_s_ctrl(core,
core              774 drivers/media/pci/cx88/cx88-alsa.c 	struct cx88_core *core = chip->core;
core              777 drivers/media/pci/cx88/cx88-alsa.c 	val = wm8775_g_ctrl(core, V4L2_CID_AUDIO_LOUDNESS);
core              786 drivers/media/pci/cx88/cx88-alsa.c 	struct cx88_core *core = chip->core;
core              788 drivers/media/pci/cx88/cx88-alsa.c 	wm8775_s_ctrl(core, V4L2_CID_AUDIO_LOUDNESS,
core              826 drivers/media/pci/cx88/cx88-alsa.c 	cx88_core_put(chip->core, chip->pci);
core              852 drivers/media/pci/cx88/cx88-alsa.c 	struct cx88_core	*core;
core              866 drivers/media/pci/cx88/cx88-alsa.c 	core = cx88_core_get(pci);
core              867 drivers/media/pci/cx88/cx88-alsa.c 	if (!core) {
core              874 drivers/media/pci/cx88/cx88-alsa.c 		dprintk(0, "%s/1: Oops: no 32bit PCI DMA ???\n", core->name);
core              875 drivers/media/pci/cx88/cx88-alsa.c 		cx88_core_put(core, pci);
core              885 drivers/media/pci/cx88/cx88-alsa.c 	chip->core = core;
core              889 drivers/media/pci/cx88/cx88-alsa.c 			  IRQF_SHARED, chip->core->name, chip);
core              892 drivers/media/pci/cx88/cx88-alsa.c 			chip->core->name, chip->pci->irq);
core              901 drivers/media/pci/cx88/cx88-alsa.c 		core->name, devno,
core              909 drivers/media/pci/cx88/cx88-alsa.c 	*core_ptr = core;
core              919 drivers/media/pci/cx88/cx88-alsa.c 	struct cx88_core	*core = NULL;
core              937 drivers/media/pci/cx88/cx88-alsa.c 	err = snd_cx88_create(card, pci, &chip, &core);
core              956 drivers/media/pci/cx88/cx88-alsa.c 	if (core->sd_wm8775) {
core              189 drivers/media/pci/cx88/cx88-blackbird.c static void host_setup(struct cx88_core *core)
core              223 drivers/media/pci/cx88/cx88-blackbird.c static int wait_ready_gpio0_bit1(struct cx88_core *core, u32 state)
core              239 drivers/media/pci/cx88/cx88-blackbird.c static int memory_write(struct cx88_core *core, u32 address, u32 value)
core              252 drivers/media/pci/cx88/cx88-blackbird.c 	return wait_ready_gpio0_bit1(core, 1);
core              255 drivers/media/pci/cx88/cx88-blackbird.c static int memory_read(struct cx88_core *core, u32 address, u32 *value)
core              266 drivers/media/pci/cx88/cx88-blackbird.c 	retval = wait_ready_gpio0_bit1(core, 1);
core              281 drivers/media/pci/cx88/cx88-blackbird.c static int register_write(struct cx88_core *core, u32 address, u32 value)
core              293 drivers/media/pci/cx88/cx88-blackbird.c 	return wait_ready_gpio0_bit1(core, 1);
core              296 drivers/media/pci/cx88/cx88-blackbird.c static int register_read(struct cx88_core *core, u32 address, u32 *value)
core              306 drivers/media/pci/cx88/cx88-blackbird.c 	retval  = wait_ready_gpio0_bit1(core, 1);
core              332 drivers/media/pci/cx88/cx88-blackbird.c 	memory_read(dev->core, dev->mailbox - 4, &value);
core              339 drivers/media/pci/cx88/cx88-blackbird.c 	memory_read(dev->core, dev->mailbox, &flag);
core              346 drivers/media/pci/cx88/cx88-blackbird.c 	memory_write(dev->core, dev->mailbox, flag);
core              349 drivers/media/pci/cx88/cx88-blackbird.c 	memory_write(dev->core, dev->mailbox + 1, command); /* command code */
core              351 drivers/media/pci/cx88/cx88-blackbird.c 	memory_write(dev->core, dev->mailbox + 3, IVTV_API_STD_TIMEOUT);
core              353 drivers/media/pci/cx88/cx88-blackbird.c 		memory_write(dev->core, dev->mailbox + 4 + i, data[i]);
core              357 drivers/media/pci/cx88/cx88-blackbird.c 		memory_write(dev->core, dev->mailbox + 4 + i, 0);
core              360 drivers/media/pci/cx88/cx88-blackbird.c 	memory_write(dev->core, dev->mailbox, flag);
core              365 drivers/media/pci/cx88/cx88-blackbird.c 		memory_read(dev->core, dev->mailbox, &flag);
core              377 drivers/media/pci/cx88/cx88-blackbird.c 		memory_read(dev->core, dev->mailbox + 4 + i, data + i);
core              381 drivers/media/pci/cx88/cx88-blackbird.c 	memory_read(dev->core, dev->mailbox + 2, &retval);
core              385 drivers/media/pci/cx88/cx88-blackbird.c 	memory_write(dev->core, dev->mailbox, flag);
core              424 drivers/media/pci/cx88/cx88-blackbird.c 		memory_read(dev->core, i, &value);
core              449 drivers/media/pci/cx88/cx88-blackbird.c 	retval  = register_write(dev->core, IVTV_REG_VPU, 0xFFFFFFED);
core              450 drivers/media/pci/cx88/cx88-blackbird.c 	retval |= register_write(dev->core, IVTV_REG_HW_BLOCKS,
core              452 drivers/media/pci/cx88/cx88-blackbird.c 	retval |= register_write(dev->core, IVTV_REG_ENC_SDRAM_REFRESH,
core              454 drivers/media/pci/cx88/cx88-blackbird.c 	retval |= register_write(dev->core, IVTV_REG_ENC_SDRAM_PRECHARGE,
core              457 drivers/media/pci/cx88/cx88-blackbird.c 	retval |= register_write(dev->core, IVTV_REG_APU, 0);
core              491 drivers/media/pci/cx88/cx88-blackbird.c 		memory_write(dev->core, i, value);
core              497 drivers/media/pci/cx88/cx88-blackbird.c 		memory_read(dev->core, i, &value);
core              507 drivers/media/pci/cx88/cx88-blackbird.c 	retval |= register_write(dev->core, IVTV_REG_HW_BLOCKS,
core              509 drivers/media/pci/cx88/cx88-blackbird.c 	retval |= register_read(dev->core, IVTV_REG_SPU, &value);
core              510 drivers/media/pci/cx88/cx88-blackbird.c 	retval |= register_write(dev->core, IVTV_REG_SPU, value & 0xFFFFFFFE);
core              513 drivers/media/pci/cx88/cx88-blackbird.c 	retval |= register_read(dev->core, IVTV_REG_VPU, &value);
core              514 drivers/media/pci/cx88/cx88-blackbird.c 	retval |= register_write(dev->core, IVTV_REG_VPU, value & 0xFFFFFFE8);
core              537 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx88_core *core = dev->core;
core              541 drivers/media/pci/cx88/cx88-blackbird.c 			  core->height, core->width);
core              543 drivers/media/pci/cx88/cx88-blackbird.c 	dev->cxhdl.width = core->width;
core              544 drivers/media/pci/cx88/cx88-blackbird.c 	dev->cxhdl.height = core->height;
core              546 drivers/media/pci/cx88/cx88-blackbird.c 				 dev->core->tvnorm & V4L2_STD_625_50);
core              552 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx88_core *core = dev->core;
core              608 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx88_core *core = dev->core;
core              795 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx88_core *core = dev->core;
core              799 drivers/media/pci/cx88/cx88-blackbird.c 	return cx88_querycap(file, core, cap);
core              816 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx88_core *core = dev->core;
core              822 drivers/media/pci/cx88/cx88-blackbird.c 	f->fmt.pix.width        = core->width;
core              823 drivers/media/pci/cx88/cx88-blackbird.c 	f->fmt.pix.height       = core->height;
core              824 drivers/media/pci/cx88/cx88-blackbird.c 	f->fmt.pix.field        = core->field;
core              832 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx88_core *core = dev->core;
core              841 drivers/media/pci/cx88/cx88-blackbird.c 	maxw = norm_maxw(core->tvnorm);
core              842 drivers/media/pci/cx88/cx88-blackbird.c 	maxh = norm_maxh(core->tvnorm);
core              872 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx88_core  *core = dev->core;
core              876 drivers/media/pci/cx88/cx88-blackbird.c 	if (core->v4ldev && (vb2_is_busy(&core->v4ldev->vb2_vidq) ||
core              877 drivers/media/pci/cx88/cx88-blackbird.c 			     vb2_is_busy(&core->v4ldev->vb2_vbiq)))
core              880 drivers/media/pci/cx88/cx88-blackbird.c 	core->width = f->fmt.pix.width;
core              881 drivers/media/pci/cx88/cx88-blackbird.c 	core->height = f->fmt.pix.height;
core              882 drivers/media/pci/cx88/cx88-blackbird.c 	core->field = f->fmt.pix.field;
core              883 drivers/media/pci/cx88/cx88-blackbird.c 	cx88_set_scale(core, f->fmt.pix.width, f->fmt.pix.height,
core              894 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx88_core *core = dev->core;
core              897 drivers/media/pci/cx88/cx88-blackbird.c 	if (unlikely(core->board.tuner_type == UNSET))
core              905 drivers/media/pci/cx88/cx88-blackbird.c 	cx88_set_freq(core, f);
core              907 drivers/media/pci/cx88/cx88-blackbird.c 	cx88_set_scale(core, core->width, core->height, core->field);
core              916 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx88_core *core = dev->core;
core              919 drivers/media/pci/cx88/cx88-blackbird.c 	snprintf(name, sizeof(name), "%s/2", core->name);
core              920 drivers/media/pci/cx88/cx88-blackbird.c 	call_all(core, core, log_status);
core              929 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx88_core *core = dev->core;
core              931 drivers/media/pci/cx88/cx88-blackbird.c 	return cx88_enum_input(core, i);
core              938 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx88_core *core = dev->core;
core              940 drivers/media/pci/cx88/cx88-blackbird.c 	if (unlikely(core->board.tuner_type == UNSET))
core              945 drivers/media/pci/cx88/cx88-blackbird.c 	f->frequency = core->freq;
core              946 drivers/media/pci/cx88/cx88-blackbird.c 	call_all(core, tuner, g_frequency, f);
core              954 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx88_core *core = dev->core;
core              956 drivers/media/pci/cx88/cx88-blackbird.c 	*i = core->input;
core              963 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx88_core *core = dev->core;
core              970 drivers/media/pci/cx88/cx88-blackbird.c 	cx88_newstation(core);
core              971 drivers/media/pci/cx88/cx88-blackbird.c 	cx88_video_mux(core, i);
core              979 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx88_core *core = dev->core;
core              982 drivers/media/pci/cx88/cx88-blackbird.c 	if (unlikely(core->board.tuner_type == UNSET))
core              990 drivers/media/pci/cx88/cx88-blackbird.c 	call_all(core, tuner, g_tuner, t);
core              992 drivers/media/pci/cx88/cx88-blackbird.c 	cx88_get_stereo(core, t);
core             1002 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx88_core *core = dev->core;
core             1004 drivers/media/pci/cx88/cx88-blackbird.c 	if (core->board.tuner_type == UNSET)
core             1009 drivers/media/pci/cx88/cx88-blackbird.c 	cx88_set_stereo(core, t->audmode, 1);
core             1016 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx88_core *core = dev->core;
core             1018 drivers/media/pci/cx88/cx88-blackbird.c 	*tvnorm = core->tvnorm;
core             1025 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx88_core *core = dev->core;
core             1027 drivers/media/pci/cx88/cx88-blackbird.c 	return cx88_set_tvnorm(core, id);
core             1078 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx88_core *core = drv->core;
core             1081 drivers/media/pci/cx88/cx88-blackbird.c 	switch (core->boardnr) {
core             1110 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx88_core *core = drv->core;
core             1113 drivers/media/pci/cx88/cx88-blackbird.c 	switch (core->boardnr) {
core             1132 drivers/media/pci/cx88/cx88-blackbird.c 	cx88_vdev_init(dev->core, dev->pci, &dev->mpeg_dev,
core             1139 drivers/media/pci/cx88/cx88-blackbird.c 	if (dev->core->board.tuner_type != UNSET)
core             1155 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx88_core *core = drv->core;
core             1156 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx8802_dev *dev = core->dvbdev;
core             1162 drivers/media/pci/cx88/cx88-blackbird.c 		core->boardnr,
core             1163 drivers/media/pci/cx88/cx88-blackbird.c 		core->name,
core             1164 drivers/media/pci/cx88/cx88-blackbird.c 		core->pci_bus,
core             1165 drivers/media/pci/cx88/cx88-blackbird.c 		core->pci_slot);
core             1168 drivers/media/pci/cx88/cx88-blackbird.c 	if (!(core->board.mpeg & CX88_MPEG_BLACKBIRD))
core             1172 drivers/media/pci/cx88/cx88-blackbird.c 	dev->cxhdl.width = core->width;
core             1173 drivers/media/pci/cx88/cx88-blackbird.c 	dev->cxhdl.height = core->height;
core             1179 drivers/media/pci/cx88/cx88-blackbird.c 	v4l2_ctrl_add_handler(&dev->cxhdl.hdl, &core->video_hdl, NULL, false);
core             1183 drivers/media/pci/cx88/cx88-blackbird.c 	host_setup(dev->core);
core             1189 drivers/media/pci/cx88/cx88-blackbird.c 	cx88_set_tvnorm(core, core->tvnorm);
core             1190 drivers/media/pci/cx88/cx88-blackbird.c 	cx88_video_mux(core, 0);
core             1191 drivers/media/pci/cx88/cx88-blackbird.c 	cx2341x_handler_set_50hz(&dev->cxhdl, core->height == 576);
core             1204 drivers/media/pci/cx88/cx88-blackbird.c 	q->lock = &core->lock;
core             1221 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx88_core *core = drv->core;
core             1222 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx8802_dev *dev = core->dvbdev;
core             1225 drivers/media/pci/cx88/cx88-blackbird.c 	blackbird_unregister_video(drv->core->dvbdev);
core             2817 drivers/media/pci/cx88/cx88-cards.c static void leadtek_eeprom(struct cx88_core *core, u8 *eeprom_data)
core             2833 drivers/media/pci/cx88/cx88-cards.c 		core->board.tuner_type = TUNER_PHILIPS_FM1236_MK3;
core             2836 drivers/media/pci/cx88/cx88-cards.c 		core->board.tuner_type = TUNER_PHILIPS_FM1216ME_MK3;
core             2841 drivers/media/pci/cx88/cx88-cards.c 		core->board.tuner_type, eeprom_data[0]);
core             2844 drivers/media/pci/cx88/cx88-cards.c static void hauppauge_eeprom(struct cx88_core *core, u8 *eeprom_data)
core             2849 drivers/media/pci/cx88/cx88-cards.c 	core->board.tuner_type = tv.tuner_type;
core             2850 drivers/media/pci/cx88/cx88-cards.c 	core->tuner_formats = tv.tuner_formats;
core             2851 drivers/media/pci/cx88/cx88-cards.c 	core->board.radio.type = tv.has_radio ? CX88_RADIO : 0;
core             2852 drivers/media/pci/cx88/cx88-cards.c 	core->model = tv.model;
core             2942 drivers/media/pci/cx88/cx88-cards.c static void gdi_eeprom(struct cx88_core *core, u8 *eeprom_data)
core             2950 drivers/media/pci/cx88/cx88-cards.c 	core->board.tuner_type = gdi_tuner[eeprom_data[0x0d]].id;
core             2951 drivers/media/pci/cx88/cx88-cards.c 	core->board.radio.type = gdi_tuner[eeprom_data[0x0d]].fm ?
core             2958 drivers/media/pci/cx88/cx88-cards.c static int cx88_dvico_xc2028_callback(struct cx88_core *core,
core             2963 drivers/media/pci/cx88/cx88-cards.c 		switch (core->boardnr) {
core             2990 drivers/media/pci/cx88/cx88-cards.c static int cx88_xc3028_geniatech_tuner_callback(struct cx88_core *core,
core             2995 drivers/media/pci/cx88/cx88-cards.c 		switch (INPUT(core->input).type) {
core             3017 drivers/media/pci/cx88/cx88-cards.c static int cx88_xc3028_winfast1800h_callback(struct cx88_core *core,
core             3034 drivers/media/pci/cx88/cx88-cards.c static int cx88_xc4000_winfast2000h_plus_callback(struct cx88_core *core,
core             3054 drivers/media/pci/cx88/cx88-cards.c static int cx88_pv_8000gt_callback(struct cx88_core *core,
core             3076 drivers/media/pci/cx88/cx88-cards.c static void dvico_fusionhdtv_hybrid_init(struct cx88_core *core)
core             3099 drivers/media/pci/cx88/cx88-cards.c 		err = i2c_transfer(&core->i2c_adap, &msg, 1);
core             3108 drivers/media/pci/cx88/cx88-cards.c static int cx88_xc2028_tuner_callback(struct cx88_core *core,
core             3112 drivers/media/pci/cx88/cx88-cards.c 	switch (core->boardnr) {
core             3116 drivers/media/pci/cx88/cx88-cards.c 		return cx88_xc3028_geniatech_tuner_callback(core,
core             3120 drivers/media/pci/cx88/cx88-cards.c 		return cx88_pv_8000gt_callback(core, command, arg);
core             3123 drivers/media/pci/cx88/cx88-cards.c 		return cx88_dvico_xc2028_callback(core, command, arg);
core             3126 drivers/media/pci/cx88/cx88-cards.c 		return cx88_xc3028_winfast1800h_callback(core, command, arg);
core             3131 drivers/media/pci/cx88/cx88-cards.c 		switch (INPUT(core->input).type) {
core             3155 drivers/media/pci/cx88/cx88-cards.c static int cx88_xc4000_tuner_callback(struct cx88_core *core,
core             3159 drivers/media/pci/cx88/cx88-cards.c 	switch (core->boardnr) {
core             3164 drivers/media/pci/cx88/cx88-cards.c 		return cx88_xc4000_winfast2000h_plus_callback(core,
core             3175 drivers/media/pci/cx88/cx88-cards.c static int cx88_xc5000_tuner_callback(struct cx88_core *core,
core             3178 drivers/media/pci/cx88/cx88-cards.c 	switch (core->boardnr) {
core             3221 drivers/media/pci/cx88/cx88-cards.c 	struct cx88_core *core;
core             3228 drivers/media/pci/cx88/cx88-cards.c 	core = i2c_algo->data;
core             3230 drivers/media/pci/cx88/cx88-cards.c 	if (!core) {
core             3238 drivers/media/pci/cx88/cx88-cards.c 	switch (core->board.tuner_type) {
core             3241 drivers/media/pci/cx88/cx88-cards.c 		return cx88_xc2028_tuner_callback(core, command, arg);
core             3244 drivers/media/pci/cx88/cx88-cards.c 		return cx88_xc4000_tuner_callback(core, command, arg);
core             3247 drivers/media/pci/cx88/cx88-cards.c 		return cx88_xc5000_tuner_callback(core, command, arg);
core             3250 drivers/media/pci/cx88/cx88-cards.c 	       core->board.tuner_type);
core             3257 drivers/media/pci/cx88/cx88-cards.c static void cx88_card_list(struct cx88_core *core, struct pci_dev *pci)
core             3277 drivers/media/pci/cx88/cx88-cards.c static void cx88_card_setup_pre_i2c(struct cx88_core *core)
core             3279 drivers/media/pci/cx88/cx88-cards.c 	switch (core->boardnr) {
core             3317 drivers/media/pci/cx88/cx88-cards.c 		cx_write(MO_GP0_IO, core->board.input[0].gpio0);
core             3327 drivers/media/pci/cx88/cx88-cards.c 		cx88_xc3028_winfast1800h_callback(core, XC2028_TUNER_RESET, 0);
core             3334 drivers/media/pci/cx88/cx88-cards.c 		cx88_xc4000_winfast2000h_plus_callback(core,
core             3350 drivers/media/pci/cx88/cx88-cards.c void cx88_setup_xc3028(struct cx88_core *core, struct xc2028_ctrl *ctl)
core             3357 drivers/media/pci/cx88/cx88-cards.c 	switch (core->boardnr) {
core             3360 drivers/media/pci/cx88/cx88-cards.c 		if (core->i2c_algo.udelay < 16)
core             3361 drivers/media/pci/cx88/cx88-cards.c 			core->i2c_algo.udelay = 16;
core             3400 drivers/media/pci/cx88/cx88-cards.c static void cx88_card_setup(struct cx88_core *core)
core             3408 drivers/media/pci/cx88/cx88-cards.c 	if (!core->i2c_rc) {
core             3409 drivers/media/pci/cx88/cx88-cards.c 		core->i2c_client.addr = 0xa0 >> 1;
core             3410 drivers/media/pci/cx88/cx88-cards.c 		tveeprom_read(&core->i2c_client, eeprom, sizeof(eeprom));
core             3413 drivers/media/pci/cx88/cx88-cards.c 	switch (core->boardnr) {
core             3416 drivers/media/pci/cx88/cx88-cards.c 		if (!core->i2c_rc)
core             3417 drivers/media/pci/cx88/cx88-cards.c 			hauppauge_eeprom(core, eeprom + 8);
core             3420 drivers/media/pci/cx88/cx88-cards.c 		if (!core->i2c_rc)
core             3421 drivers/media/pci/cx88/cx88-cards.c 			gdi_eeprom(core, eeprom);
core             3426 drivers/media/pci/cx88/cx88-cards.c 		if (!core->i2c_rc)
core             3427 drivers/media/pci/cx88/cx88-cards.c 			leadtek_eeprom(core, eeprom);
core             3439 drivers/media/pci/cx88/cx88-cards.c 		if (!core->i2c_rc)
core             3440 drivers/media/pci/cx88/cx88-cards.c 			hauppauge_eeprom(core, eeprom);
core             3468 drivers/media/pci/cx88/cx88-cards.c 		if (!core->i2c_rc &&
core             3469 drivers/media/pci/cx88/cx88-cards.c 		    core->boardnr == CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID)
core             3470 drivers/media/pci/cx88/cx88-cards.c 			dvico_fusionhdtv_hybrid_init(core);
core             3485 drivers/media/pci/cx88/cx88-cards.c 		if (!core->i2c_rc) {
core             3495 drivers/media/pci/cx88/cx88-cards.c 			core->i2c_client.addr = 0x0a;
core             3498 drivers/media/pci/cx88/cx88-cards.c 				if (i2c_master_send(&core->i2c_client,
core             3519 drivers/media/pci/cx88/cx88-cards.c 		call_all(core, tuner, s_config, &tea5767_cfg);
core             3544 drivers/media/pci/cx88/cx88-cards.c 	if (core->board.radio_type != UNSET) {
core             3546 drivers/media/pci/cx88/cx88-cards.c 		tun_setup.type           = core->board.radio_type;
core             3547 drivers/media/pci/cx88/cx88-cards.c 		tun_setup.addr           = core->board.radio_addr;
core             3549 drivers/media/pci/cx88/cx88-cards.c 		call_all(core, tuner, s_type_addr, &tun_setup);
core             3553 drivers/media/pci/cx88/cx88-cards.c 	if (core->board.tuner_type != UNSET) {
core             3555 drivers/media/pci/cx88/cx88-cards.c 		tun_setup.type           = core->board.tuner_type;
core             3556 drivers/media/pci/cx88/cx88-cards.c 		tun_setup.addr           = core->board.tuner_addr;
core             3559 drivers/media/pci/cx88/cx88-cards.c 		call_all(core, tuner, s_type_addr, &tun_setup);
core             3562 drivers/media/pci/cx88/cx88-cards.c 	if (core->board.tda9887_conf) {
core             3566 drivers/media/pci/cx88/cx88-cards.c 		tda9887_cfg.priv  = &core->board.tda9887_conf;
core             3568 drivers/media/pci/cx88/cx88-cards.c 		call_all(core, tuner, s_config, &tda9887_cfg);
core             3571 drivers/media/pci/cx88/cx88-cards.c 	if (core->board.tuner_type == TUNER_XC2028) {
core             3576 drivers/media/pci/cx88/cx88-cards.c 		cx88_setup_xc3028(core, &ctl);
core             3584 drivers/media/pci/cx88/cx88-cards.c 		call_all(core, tuner, s_config, &xc2028_cfg);
core             3586 drivers/media/pci/cx88/cx88-cards.c 	call_all(core, tuner, standby);
core             3638 drivers/media/pci/cx88/cx88-cards.c int cx88_get_resources(const struct cx88_core *core, struct pci_dev *pci)
core             3642 drivers/media/pci/cx88/cx88-cards.c 			       core->name))
core             3657 drivers/media/pci/cx88/cx88-cards.c 	struct cx88_core *core;
core             3660 drivers/media/pci/cx88/cx88-cards.c 	core = kzalloc(sizeof(*core), GFP_KERNEL);
core             3661 drivers/media/pci/cx88/cx88-cards.c 	if (!core)
core             3664 drivers/media/pci/cx88/cx88-cards.c 	refcount_set(&core->refcount, 1);
core             3665 drivers/media/pci/cx88/cx88-cards.c 	core->pci_bus  = pci->bus->number;
core             3666 drivers/media/pci/cx88/cx88-cards.c 	core->pci_slot = PCI_SLOT(pci->devfn);
core             3667 drivers/media/pci/cx88/cx88-cards.c 	core->pci_irqmask = PCI_INT_RISC_RD_BERRINT | PCI_INT_RISC_WR_BERRINT |
core             3670 drivers/media/pci/cx88/cx88-cards.c 	mutex_init(&core->lock);
core             3672 drivers/media/pci/cx88/cx88-cards.c 	core->nr = nr;
core             3673 drivers/media/pci/cx88/cx88-cards.c 	sprintf(core->name, "cx88[%d]", core->nr);
core             3681 drivers/media/pci/cx88/cx88-cards.c 	core->tvnorm  = 0;
core             3683 drivers/media/pci/cx88/cx88-cards.c 	core->width   = 320;
core             3684 drivers/media/pci/cx88/cx88-cards.c 	core->height  = 240;
core             3685 drivers/media/pci/cx88/cx88-cards.c 	core->field   = V4L2_FIELD_INTERLACED;
core             3687 drivers/media/pci/cx88/cx88-cards.c 	strscpy(core->v4l2_dev.name, core->name, sizeof(core->v4l2_dev.name));
core             3688 drivers/media/pci/cx88/cx88-cards.c 	if (v4l2_device_register(NULL, &core->v4l2_dev)) {
core             3689 drivers/media/pci/cx88/cx88-cards.c 		kfree(core);
core             3693 drivers/media/pci/cx88/cx88-cards.c 	if (v4l2_ctrl_handler_init(&core->video_hdl, 13)) {
core             3694 drivers/media/pci/cx88/cx88-cards.c 		v4l2_device_unregister(&core->v4l2_dev);
core             3695 drivers/media/pci/cx88/cx88-cards.c 		kfree(core);
core             3699 drivers/media/pci/cx88/cx88-cards.c 	if (v4l2_ctrl_handler_init(&core->audio_hdl, 13)) {
core             3700 drivers/media/pci/cx88/cx88-cards.c 		v4l2_ctrl_handler_free(&core->video_hdl);
core             3701 drivers/media/pci/cx88/cx88-cards.c 		v4l2_device_unregister(&core->v4l2_dev);
core             3702 drivers/media/pci/cx88/cx88-cards.c 		kfree(core);
core             3706 drivers/media/pci/cx88/cx88-cards.c 	if (cx88_get_resources(core, pci) != 0) {
core             3707 drivers/media/pci/cx88/cx88-cards.c 		v4l2_ctrl_handler_free(&core->video_hdl);
core             3708 drivers/media/pci/cx88/cx88-cards.c 		v4l2_ctrl_handler_free(&core->audio_hdl);
core             3709 drivers/media/pci/cx88/cx88-cards.c 		v4l2_device_unregister(&core->v4l2_dev);
core             3710 drivers/media/pci/cx88/cx88-cards.c 		kfree(core);
core             3715 drivers/media/pci/cx88/cx88-cards.c 	cx88_pci_quirks(core->name, pci);
core             3716 drivers/media/pci/cx88/cx88-cards.c 	core->lmmio = ioremap(pci_resource_start(pci, 0),
core             3718 drivers/media/pci/cx88/cx88-cards.c 	core->bmmio = (u8 __iomem *)core->lmmio;
core             3720 drivers/media/pci/cx88/cx88-cards.c 	if (!core->lmmio) {
core             3723 drivers/media/pci/cx88/cx88-cards.c 		v4l2_ctrl_handler_free(&core->video_hdl);
core             3724 drivers/media/pci/cx88/cx88-cards.c 		v4l2_ctrl_handler_free(&core->audio_hdl);
core             3725 drivers/media/pci/cx88/cx88-cards.c 		v4l2_device_unregister(&core->v4l2_dev);
core             3726 drivers/media/pci/cx88/cx88-cards.c 		kfree(core);
core             3731 drivers/media/pci/cx88/cx88-cards.c 	core->boardnr = UNSET;
core             3732 drivers/media/pci/cx88/cx88-cards.c 	if (card[core->nr] < ARRAY_SIZE(cx88_boards))
core             3733 drivers/media/pci/cx88/cx88-cards.c 		core->boardnr = card[core->nr];
core             3734 drivers/media/pci/cx88/cx88-cards.c 	for (i = 0; core->boardnr == UNSET && i < ARRAY_SIZE(cx88_subids); i++)
core             3737 drivers/media/pci/cx88/cx88-cards.c 			core->boardnr = cx88_subids[i].card;
core             3738 drivers/media/pci/cx88/cx88-cards.c 	if (core->boardnr == UNSET) {
core             3739 drivers/media/pci/cx88/cx88-cards.c 		core->boardnr = CX88_BOARD_UNKNOWN;
core             3740 drivers/media/pci/cx88/cx88-cards.c 		cx88_card_list(core, pci);
core             3743 drivers/media/pci/cx88/cx88-cards.c 	core->board = cx88_boards[core->boardnr];
core             3745 drivers/media/pci/cx88/cx88-cards.c 	if (!core->board.num_frontends && (core->board.mpeg & CX88_MPEG_DVB))
core             3746 drivers/media/pci/cx88/cx88-cards.c 		core->board.num_frontends = 1;
core             3749 drivers/media/pci/cx88/cx88-cards.c 		pci->subsystem_vendor, pci->subsystem_device, core->board.name,
core             3750 drivers/media/pci/cx88/cx88-cards.c 		core->boardnr, card[core->nr] == core->boardnr ?
core             3752 drivers/media/pci/cx88/cx88-cards.c 		core->board.num_frontends);
core             3754 drivers/media/pci/cx88/cx88-cards.c 	if (tuner[core->nr] != UNSET)
core             3755 drivers/media/pci/cx88/cx88-cards.c 		core->board.tuner_type = tuner[core->nr];
core             3756 drivers/media/pci/cx88/cx88-cards.c 	if (radio[core->nr] != UNSET)
core             3757 drivers/media/pci/cx88/cx88-cards.c 		core->board.radio_type = radio[core->nr];
core             3760 drivers/media/pci/cx88/cx88-cards.c 		core->board.tuner_type, core->board.radio_type);
core             3763 drivers/media/pci/cx88/cx88-cards.c 	cx88_reset(core);
core             3764 drivers/media/pci/cx88/cx88-cards.c 	cx88_card_setup_pre_i2c(core);
core             3765 drivers/media/pci/cx88/cx88-cards.c 	cx88_i2c_init(core, pci);
core             3768 drivers/media/pci/cx88/cx88-cards.c 	if (core->board.tuner_type != UNSET) {
core             3780 drivers/media/pci/cx88/cx88-cards.c 		int has_demod = (core->board.tda9887_conf & TDA9887_PRESENT);
core             3788 drivers/media/pci/cx88/cx88-cards.c 		v4l2_i2c_new_subdev(&core->v4l2_dev, &core->i2c_adap,
core             3792 drivers/media/pci/cx88/cx88-cards.c 			v4l2_i2c_new_subdev(&core->v4l2_dev,
core             3793 drivers/media/pci/cx88/cx88-cards.c 					    &core->i2c_adap, "tuner",
core             3795 drivers/media/pci/cx88/cx88-cards.c 		if (core->board.tuner_addr == ADDR_UNSET) {
core             3796 drivers/media/pci/cx88/cx88-cards.c 			v4l2_i2c_new_subdev(&core->v4l2_dev,
core             3797 drivers/media/pci/cx88/cx88-cards.c 					    &core->i2c_adap, "tuner",
core             3800 drivers/media/pci/cx88/cx88-cards.c 			v4l2_i2c_new_subdev(&core->v4l2_dev, &core->i2c_adap,
core             3801 drivers/media/pci/cx88/cx88-cards.c 					    "tuner", core->board.tuner_addr,
core             3806 drivers/media/pci/cx88/cx88-cards.c 	cx88_card_setup(core);
core             3808 drivers/media/pci/cx88/cx88-cards.c 		cx88_i2c_init_ir(core);
core             3809 drivers/media/pci/cx88/cx88-cards.c 		cx88_ir_init(core, pci);
core             3812 drivers/media/pci/cx88/cx88-cards.c 	return core;
core              340 drivers/media/pci/cx88/cx88-core.c int cx88_sram_channel_setup(struct cx88_core *core,
core              419 drivers/media/pci/cx88/cx88-core.c void cx88_sram_channel_dump(struct cx88_core *core,
core              502 drivers/media/pci/cx88/cx88-core.c int cx88_core_irq(struct cx88_core *core, u32 status)
core              507 drivers/media/pci/cx88/cx88-core.c 		cx88_ir_irq(core);
core              513 drivers/media/pci/cx88/cx88-core.c 				   status, core->pci_irqmask);
core              518 drivers/media/pci/cx88/cx88-core.c void cx88_wakeup(struct cx88_core *core,
core              526 drivers/media/pci/cx88/cx88-core.c 	buf->vb.field = core->field;
core              533 drivers/media/pci/cx88/cx88-core.c void cx88_shutdown(struct cx88_core *core)
core              558 drivers/media/pci/cx88/cx88-core.c int cx88_reset(struct cx88_core *core)
core              561 drivers/media/pci/cx88/cx88-core.c 	cx88_shutdown(core);
core              572 drivers/media/pci/cx88/cx88-core.c 	cx88_sram_channel_setup(core, &cx88_sram_channels[SRAM_CH21],
core              574 drivers/media/pci/cx88/cx88-core.c 	cx88_sram_channel_setup(core, &cx88_sram_channels[SRAM_CH22], 128, 0);
core              575 drivers/media/pci/cx88/cx88-core.c 	cx88_sram_channel_setup(core, &cx88_sram_channels[SRAM_CH23], 128, 0);
core              576 drivers/media/pci/cx88/cx88-core.c 	cx88_sram_channel_setup(core, &cx88_sram_channels[SRAM_CH24], 128, 0);
core              577 drivers/media/pci/cx88/cx88-core.c 	cx88_sram_channel_setup(core, &cx88_sram_channels[SRAM_CH25], 128, 0);
core              578 drivers/media/pci/cx88/cx88-core.c 	cx88_sram_channel_setup(core, &cx88_sram_channels[SRAM_CH26], 128, 0);
core              579 drivers/media/pci/cx88/cx88-core.c 	cx88_sram_channel_setup(core, &cx88_sram_channels[SRAM_CH28],
core              581 drivers/media/pci/cx88/cx88-core.c 	cx88_sram_channel_setup(core, &cx88_sram_channels[SRAM_CH27], 128, 0);
core              668 drivers/media/pci/cx88/cx88-core.c int cx88_set_scale(struct cx88_core *core, unsigned int width,
core              671 drivers/media/pci/cx88/cx88-core.c 	unsigned int swidth  = norm_swidth(core->tvnorm);
core              672 drivers/media/pci/cx88/cx88-core.c 	unsigned int sheight = norm_maxh(core->tvnorm);
core              678 drivers/media/pci/cx88/cx88-core.c 		v4l2_norm_to_name(core->tvnorm));
core              683 drivers/media/pci/cx88/cx88-core.c 	value = (width * norm_hdelay(core->tvnorm)) / swidth;
core              699 drivers/media/pci/cx88/cx88-core.c 	cx_write(MO_VDELAY_EVEN, norm_vdelay(core->tvnorm));
core              700 drivers/media/pci/cx88/cx88-core.c 	cx_write(MO_VDELAY_ODD,  norm_vdelay(core->tvnorm));
core              701 drivers/media/pci/cx88/cx88-core.c 	dprintk(1, "set_scale: vdelay  0x%04x\n", norm_vdelay(core->tvnorm));
core              715 drivers/media/pci/cx88/cx88-core.c 	if (core->tvnorm & V4L2_STD_SECAM) {
core              719 drivers/media/pci/cx88/cx88-core.c 	if (INPUT(core->input).type == CX88_VMUX_SVIDEO)
core              740 drivers/media/pci/cx88/cx88-core.c static int set_pll(struct cx88_core *core, int prescale, u32 ofreq)
core              777 drivers/media/pci/cx88/cx88-core.c int cx88_start_audio_dma(struct cx88_core *core)
core              789 drivers/media/pci/cx88/cx88-core.c 	cx88_sram_channel_setup(core, &cx88_sram_channels[SRAM_CH25], bpl, 0);
core              790 drivers/media/pci/cx88/cx88-core.c 	cx88_sram_channel_setup(core, &cx88_sram_channels[SRAM_CH26], bpl, 0);
core              791 drivers/media/pci/cx88/cx88-core.c 	cx88_sram_channel_setup(core, &cx88_sram_channels[SRAM_CH27],
core              803 drivers/media/pci/cx88/cx88-core.c int cx88_stop_audio_dma(struct cx88_core *core)
core              815 drivers/media/pci/cx88/cx88-core.c static int set_tvaudio(struct cx88_core *core)
core              817 drivers/media/pci/cx88/cx88-core.c 	v4l2_std_id norm = core->tvnorm;
core              819 drivers/media/pci/cx88/cx88-core.c 	if (INPUT(core->input).type != CX88_VMUX_TELEVISION &&
core              820 drivers/media/pci/cx88/cx88-core.c 	    INPUT(core->input).type != CX88_VMUX_CABLE)
core              824 drivers/media/pci/cx88/cx88-core.c 		core->tvaudio = WW_BG;
core              827 drivers/media/pci/cx88/cx88-core.c 		core->tvaudio = WW_DK;
core              830 drivers/media/pci/cx88/cx88-core.c 		core->tvaudio = WW_I;
core              833 drivers/media/pci/cx88/cx88-core.c 		core->tvaudio = WW_L;
core              837 drivers/media/pci/cx88/cx88-core.c 		core->tvaudio = WW_BG;
core              840 drivers/media/pci/cx88/cx88-core.c 		core->tvaudio = WW_DK;
core              844 drivers/media/pci/cx88/cx88-core.c 		core->tvaudio = WW_BTSC;
core              847 drivers/media/pci/cx88/cx88-core.c 		core->tvaudio = WW_EIAJ;
core              851 drivers/media/pci/cx88/cx88-core.c 			v4l2_norm_to_name(core->tvnorm));
core              852 drivers/media/pci/cx88/cx88-core.c 		core->tvaudio = WW_NONE;
core              857 drivers/media/pci/cx88/cx88-core.c 	cx88_set_tvaudio(core);
core              864 drivers/media/pci/cx88/cx88-core.c 	cx88_start_audio_dma(core);
core              868 drivers/media/pci/cx88/cx88-core.c int cx88_set_tvnorm(struct cx88_core *core, v4l2_std_id norm)
core              878 drivers/media/pci/cx88/cx88-core.c 	if (norm == core->tvnorm)
core              880 drivers/media/pci/cx88/cx88-core.c 	if (core->v4ldev && (vb2_is_busy(&core->v4ldev->vb2_vidq) ||
core              881 drivers/media/pci/cx88/cx88-core.c 			     vb2_is_busy(&core->v4ldev->vb2_vbiq)))
core              883 drivers/media/pci/cx88/cx88-core.c 	if (core->dvbdev && vb2_is_busy(&core->dvbdev->vb2_mpegq))
core              885 drivers/media/pci/cx88/cx88-core.c 	core->tvnorm = norm;
core              925 drivers/media/pci/cx88/cx88-core.c 		v4l2_norm_to_name(core->tvnorm), fsc8, adc_clock, vdec_clock,
core              927 drivers/media/pci/cx88/cx88-core.c 	set_pll(core, 2, vdec_clock);
core              987 drivers/media/pci/cx88/cx88-core.c 	cx88_set_scale(core, 320, 240, V4L2_FIELD_INTERLACED);
core              990 drivers/media/pci/cx88/cx88-core.c 	set_tvaudio(core);
core              993 drivers/media/pci/cx88/cx88-core.c 	call_all(core, video, s_std, norm);
core              999 drivers/media/pci/cx88/cx88-core.c 	v4l2_ctrl_grab(core->chroma_agc, cxiformat == VideoFormatSECAM);
core             1008 drivers/media/pci/cx88/cx88-core.c void cx88_vdev_init(struct cx88_core *core,
core             1022 drivers/media/pci/cx88/cx88-core.c 	vfd->v4l2_dev = &core->v4l2_dev;
core             1025 drivers/media/pci/cx88/cx88-core.c 	vfd->lock = &core->lock;
core             1027 drivers/media/pci/cx88/cx88-core.c 		 core->name, type, core->board.name);
core             1033 drivers/media/pci/cx88/cx88-core.c 	struct cx88_core *core;
core             1036 drivers/media/pci/cx88/cx88-core.c 	list_for_each_entry(core, &cx88_devlist, devlist) {
core             1037 drivers/media/pci/cx88/cx88-core.c 		if (pci->bus->number != core->pci_bus)
core             1039 drivers/media/pci/cx88/cx88-core.c 		if (PCI_SLOT(pci->devfn) != core->pci_slot)
core             1042 drivers/media/pci/cx88/cx88-core.c 		if (cx88_get_resources(core, pci) != 0) {
core             1046 drivers/media/pci/cx88/cx88-core.c 		refcount_inc(&core->refcount);
core             1048 drivers/media/pci/cx88/cx88-core.c 		return core;
core             1051 drivers/media/pci/cx88/cx88-core.c 	core = cx88_core_create(pci, cx88_devcount);
core             1052 drivers/media/pci/cx88/cx88-core.c 	if (core) {
core             1054 drivers/media/pci/cx88/cx88-core.c 		list_add_tail(&core->devlist, &cx88_devlist);
core             1058 drivers/media/pci/cx88/cx88-core.c 	return core;
core             1062 drivers/media/pci/cx88/cx88-core.c void cx88_core_put(struct cx88_core *core, struct pci_dev *pci)
core             1067 drivers/media/pci/cx88/cx88-core.c 	if (!refcount_dec_and_test(&core->refcount))
core             1071 drivers/media/pci/cx88/cx88-core.c 	cx88_ir_fini(core);
core             1072 drivers/media/pci/cx88/cx88-core.c 	if (core->i2c_rc == 0) {
core             1073 drivers/media/pci/cx88/cx88-core.c 		if (core->i2c_rtc)
core             1074 drivers/media/pci/cx88/cx88-core.c 			i2c_unregister_device(core->i2c_rtc);
core             1075 drivers/media/pci/cx88/cx88-core.c 		i2c_del_adapter(&core->i2c_adap);
core             1077 drivers/media/pci/cx88/cx88-core.c 	list_del(&core->devlist);
core             1078 drivers/media/pci/cx88/cx88-core.c 	iounmap(core->lmmio);
core             1081 drivers/media/pci/cx88/cx88-core.c 	v4l2_ctrl_handler_free(&core->video_hdl);
core             1082 drivers/media/pci/cx88/cx88-core.c 	v4l2_ctrl_handler_free(&core->audio_hdl);
core             1083 drivers/media/pci/cx88/cx88-core.c 	v4l2_device_unregister(&core->v4l2_dev);
core             1084 drivers/media/pci/cx88/cx88-core.c 	kfree(core);
core              157 drivers/media/pci/cx88/cx88-dsp.c static s32 detect_a2_a2m_eiaj(struct cx88_core *core, s16 x[], u32 N)
core              163 drivers/media/pci/cx88/cx88-dsp.c 	switch (core->tvaudio) {
core              182 drivers/media/pci/cx88/cx88-dsp.c 			core->tvaudio, __func__);
core              200 drivers/media/pci/cx88/cx88-dsp.c 	if (core->tvaudio == WW_EIAJ) {
core              224 drivers/media/pci/cx88/cx88-dsp.c static s32 detect_btsc(struct cx88_core *core, s16 x[], u32 N)
core              237 drivers/media/pci/cx88/cx88-dsp.c static s16 *read_rds_samples(struct cx88_core *core, u32 *N)
core              272 drivers/media/pci/cx88/cx88-dsp.c s32 cx88_dsp_detect_stereo_sap(struct cx88_core *core)
core              285 drivers/media/pci/cx88/cx88-dsp.c 	if (time_before(jiffies, core->last_change + msecs_to_jiffies(500)))
core              288 drivers/media/pci/cx88/cx88-dsp.c 	samples = read_rds_samples(core, &N);
core              293 drivers/media/pci/cx88/cx88-dsp.c 	switch (core->tvaudio) {
core              298 drivers/media/pci/cx88/cx88-dsp.c 		ret = detect_a2_a2m_eiaj(core, samples, N);
core              301 drivers/media/pci/cx88/cx88-dsp.c 		ret = detect_btsc(core, samples, N);
core              175 drivers/media/pci/cx88/cx88-dvb.c 	mutex_lock(&dev->core->lock);
core              186 drivers/media/pci/cx88/cx88-dvb.c 	mutex_unlock(&dev->core->lock);
core              191 drivers/media/pci/cx88/cx88-dvb.c static void cx88_dvb_gate_ctrl(struct cx88_core  *core, int open)
core              196 drivers/media/pci/cx88/cx88-dvb.c 	if (!core->dvbdev)
core              199 drivers/media/pci/cx88/cx88-dvb.c 	f = &core->dvbdev->frontends;
core              383 drivers/media/pci/cx88/cx88-dvb.c 	struct cx88_core *core = dev->core;
core              448 drivers/media/pci/cx88/cx88-dvb.c 	struct cx88_core *core = dev->core;
core              455 drivers/media/pci/cx88/cx88-dvb.c 	if (core->prev_set_voltage)
core              456 drivers/media/pci/cx88/cx88-dvb.c 		return core->prev_set_voltage(fe, voltage);
core              464 drivers/media/pci/cx88/cx88-dvb.c 	struct cx88_core *core = dev->core;
core              471 drivers/media/pci/cx88/cx88-dvb.c 	if (core->prev_set_voltage)
core              472 drivers/media/pci/cx88/cx88-dvb.c 		return core->prev_set_voltage(fe, voltage);
core              480 drivers/media/pci/cx88/cx88-dvb.c 	struct cx88_core *core = dev->core;
core              495 drivers/media/pci/cx88/cx88-dvb.c 	if (core->prev_set_voltage)
core              496 drivers/media/pci/cx88/cx88-dvb.c 		return core->prev_set_voltage(fe, voltage);
core              504 drivers/media/pci/cx88/cx88-dvb.c 	struct cx88_core *core = dev->core;
core              521 drivers/media/pci/cx88/cx88-dvb.c 	if (core->prev_set_voltage)
core              522 drivers/media/pci/cx88/cx88-dvb.c 		return core->prev_set_voltage(fe, voltage);
core              608 drivers/media/pci/cx88/cx88-dvb.c 		.i2c_adap  = &dev->core->i2c_adap,
core              628 drivers/media/pci/cx88/cx88-dvb.c 	cx88_setup_xc3028(dev->core, &ctl);
core              659 drivers/media/pci/cx88/cx88-dvb.c 	fe = dvb_attach(xc4000_attach, fe0->dvb.frontend, &dev->core->i2c_adap,
core              697 drivers/media/pci/cx88/cx88-dvb.c 	struct cx88_core *core = dev->core;
core              780 drivers/media/pci/cx88/cx88-dvb.c 	struct cx88_core *core = dev->core;
core              787 drivers/media/pci/cx88/cx88-dvb.c 	if (!core->board.num_frontends)
core              791 drivers/media/pci/cx88/cx88-dvb.c 		core->board.num_frontends);
core              792 drivers/media/pci/cx88/cx88-dvb.c 	for (i = 1; i <= core->board.num_frontends; i++) {
core              879 drivers/media/pci/cx88/cx88-dvb.c 	if (i2c_transfer(&dev->core->i2c_adap, &msg, 1) != 1)
core              889 drivers/media/pci/cx88/cx88-dvb.c 	struct cx88_core *core = dev->core;
core              911 drivers/media/pci/cx88/cx88-dvb.c 	struct cx88_core *core = dev->core;
core              937 drivers/media/pci/cx88/cx88-dvb.c 	return (i2c_transfer(&dev->core->i2c_adap, &msg, 1) == 1) ? 0 : -EIO;
core              989 drivers/media/pci/cx88/cx88-dvb.c 	struct cx88_core *core = dev->core;
core              994 drivers/media/pci/cx88/cx88-dvb.c 	if (core->i2c_rc != 0) {
core             1008 drivers/media/pci/cx88/cx88-dvb.c 	core->gate_ctrl = cx88_dvb_gate_ctrl;
core             1011 drivers/media/pci/cx88/cx88-dvb.c 	switch (core->boardnr) {
core             1015 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1018 drivers/media/pci/cx88/cx88-dvb.c 					0x61, &core->i2c_adap,
core             1029 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1032 drivers/media/pci/cx88/cx88-dvb.c 					0x60, &core->i2c_adap,
core             1043 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1046 drivers/media/pci/cx88/cx88-dvb.c 					&core->i2c_adap, 0x61,
core             1054 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1057 drivers/media/pci/cx88/cx88-dvb.c 					&core->i2c_adap, 0x61,
core             1069 drivers/media/pci/cx88/cx88-dvb.c 					       &dev->core->i2c_adap);
core             1073 drivers/media/pci/cx88/cx88-dvb.c 					&dev->core->i2c_adap,
core             1084 drivers/media/pci/cx88/cx88-dvb.c 					       &dev->core->i2c_adap);
core             1089 drivers/media/pci/cx88/cx88-dvb.c 					&dev->core->i2c_adap,
core             1097 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1107 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1121 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1131 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1141 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1153 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1168 drivers/media/pci/cx88/cx88-dvb.c 					&core->i2c_adap, 0x61,
core             1179 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1182 drivers/media/pci/cx88/cx88-dvb.c 					&core->i2c_adap, 0x61,
core             1190 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1194 drivers/media/pci/cx88/cx88-dvb.c 						&core->i2c_adap);
core             1207 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1210 drivers/media/pci/cx88/cx88-dvb.c 					&core->i2c_adap, 0x61,
core             1229 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1232 drivers/media/pci/cx88/cx88-dvb.c 					&core->i2c_adap, 0x61,
core             1248 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1251 drivers/media/pci/cx88/cx88-dvb.c 					&core->i2c_adap, 0x61,
core             1267 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1270 drivers/media/pci/cx88/cx88-dvb.c 					&core->i2c_adap, 0x61,
core             1274 drivers/media/pci/cx88/cx88-dvb.c 					&core->i2c_adap, 0x43))
core             1289 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1292 drivers/media/pci/cx88/cx88-dvb.c 					&core->i2c_adap, 0x61,
core             1296 drivers/media/pci/cx88/cx88-dvb.c 					&core->i2c_adap, 0x43))
core             1303 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1306 drivers/media/pci/cx88/cx88-dvb.c 					&core->i2c_adap, 0x61,
core             1315 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1319 drivers/media/pci/cx88/cx88-dvb.c 			if (core->model == 92001)
core             1325 drivers/media/pci/cx88/cx88-dvb.c 					&core->i2c_adap, 0x08, ISL6421_DCL,
core             1333 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1335 drivers/media/pci/cx88/cx88-dvb.c 			core->prev_set_voltage = fe0->dvb.frontend->ops.set_voltage;
core             1342 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1344 drivers/media/pci/cx88/cx88-dvb.c 			core->prev_set_voltage = fe0->dvb.frontend->ops.set_voltage;
core             1351 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1354 drivers/media/pci/cx88/cx88-dvb.c 					&core->i2c_adap,
core             1362 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1366 drivers/media/pci/cx88/cx88-dvb.c 				.i2c_adap  = &core->i2c_adap,
core             1385 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1396 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1415 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1422 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1429 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1432 drivers/media/pci/cx88/cx88-dvb.c 					&core->i2c_adap,
core             1444 drivers/media/pci/cx88/cx88-dvb.c 					       &dev->core->i2c_adap);
core             1448 drivers/media/pci/cx88/cx88-dvb.c 					&dev->core->i2c_adap,
core             1459 drivers/media/pci/cx88/cx88-dvb.c 					       &dev->core->i2c_adap);
core             1464 drivers/media/pci/cx88/cx88-dvb.c 					&dev->core->i2c_adap,
core             1472 drivers/media/pci/cx88/cx88-dvb.c 					       &dev->core->i2c_adap);
core             1476 drivers/media/pci/cx88/cx88-dvb.c 					&dev->core->i2c_adap,
core             1486 drivers/media/pci/cx88/cx88-dvb.c 						&core->i2c_adap);
core             1489 drivers/media/pci/cx88/cx88-dvb.c 					&core->i2c_adap, DVB_PLL_OPERA1))
core             1491 drivers/media/pci/cx88/cx88-dvb.c 			core->prev_set_voltage = fe0->dvb.frontend->ops.set_voltage;
core             1497 drivers/media/pci/cx88/cx88-dvb.c 							    &core->i2c_adap);
core             1501 drivers/media/pci/cx88/cx88-dvb.c 						&core->i2c_adap))
core             1503 drivers/media/pci/cx88/cx88-dvb.c 				core->prev_set_voltage = fe0->dvb.frontend->ops.set_voltage;
core             1511 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1518 drivers/media/pci/cx88/cx88-dvb.c 						&core->i2c_adap);
core             1521 drivers/media/pci/cx88/cx88-dvb.c 				   &tevii_ts2020_config, &core->i2c_adap);
core             1532 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1539 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1551 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap, 0);
core             1555 drivers/media/pci/cx88/cx88-dvb.c 					&core->i2c_adap))
core             1564 drivers/media/pci/cx88/cx88-dvb.c 			core->prev_set_voltage =
core             1583 drivers/media/pci/cx88/cx88-dvb.c 					       &dev->core->i2c_adap);
core             1588 drivers/media/pci/cx88/cx88-dvb.c 				&dev->core->i2c_adap;
core             1600 drivers/media/pci/cx88/cx88-dvb.c 					       &core->i2c_adap);
core             1602 drivers/media/pci/cx88/cx88-dvb.c 			core->prev_set_voltage =
core             1627 drivers/media/pci/cx88/cx88-dvb.c 	call_all(core, tuner, standby);
core             1638 drivers/media/pci/cx88/cx88-dvb.c 	core->gate_ctrl = NULL;
core             1648 drivers/media/pci/cx88/cx88-dvb.c 	struct cx88_core *core = drv->core;
core             1653 drivers/media/pci/cx88/cx88-dvb.c 	switch (core->boardnr) {
core             1680 drivers/media/pci/cx88/cx88-dvb.c 		switch (core->dvbdev->frontends.active_fe_id) {
core             1686 drivers/media/pci/cx88/cx88-dvb.c 			core->dvbdev->ts_gen_cntrl = 0x02; /* Parallel IO */
core             1693 drivers/media/pci/cx88/cx88-dvb.c 			core->dvbdev->ts_gen_cntrl = 0x0c; /* Serial IO */
core             1713 drivers/media/pci/cx88/cx88-dvb.c 	struct cx88_core *core = drv->core;
core             1718 drivers/media/pci/cx88/cx88-dvb.c 	switch (core->boardnr) {
core             1733 drivers/media/pci/cx88/cx88-dvb.c 	struct cx88_core *core = drv->core;
core             1734 drivers/media/pci/cx88/cx88-dvb.c 	struct cx8802_dev *dev = drv->core->dvbdev;
core             1741 drivers/media/pci/cx88/cx88-dvb.c 		core->boardnr,
core             1742 drivers/media/pci/cx88/cx88-dvb.c 		core->name,
core             1743 drivers/media/pci/cx88/cx88-dvb.c 		core->pci_bus,
core             1744 drivers/media/pci/cx88/cx88-dvb.c 		core->pci_slot);
core             1747 drivers/media/pci/cx88/cx88-dvb.c 	if (!(core->board.mpeg & CX88_MPEG_DVB))
core             1763 drivers/media/pci/cx88/cx88-dvb.c 	for (i = 1; i <= core->board.num_frontends; i++) {
core             1766 drivers/media/pci/cx88/cx88-dvb.c 		fe = vb2_dvb_get_frontend(&core->dvbdev->frontends, i);
core             1783 drivers/media/pci/cx88/cx88-dvb.c 		q->lock = &core->lock;
core             1791 drivers/media/pci/cx88/cx88-dvb.c 		fe->dvb.name = dev->core->name;
core             1800 drivers/media/pci/cx88/cx88-dvb.c 	vb2_dvb_dealloc_frontends(&core->dvbdev->frontends);
core             1807 drivers/media/pci/cx88/cx88-dvb.c 	struct cx88_core *core = drv->core;
core             1808 drivers/media/pci/cx88/cx88-dvb.c 	struct cx8802_dev *dev = drv->core->dvbdev;
core             1816 drivers/media/pci/cx88/cx88-dvb.c 	core->gate_ctrl = NULL;
core               46 drivers/media/pci/cx88/cx88-i2c.c 	struct cx88_core *core = data;
core               49 drivers/media/pci/cx88/cx88-i2c.c 		core->i2c_state |= 0x02;
core               51 drivers/media/pci/cx88/cx88-i2c.c 		core->i2c_state &= ~0x02;
core               52 drivers/media/pci/cx88/cx88-i2c.c 	cx_write(MO_I2C, core->i2c_state);
core               58 drivers/media/pci/cx88/cx88-i2c.c 	struct cx88_core *core = data;
core               61 drivers/media/pci/cx88/cx88-i2c.c 		core->i2c_state |= 0x01;
core               63 drivers/media/pci/cx88/cx88-i2c.c 		core->i2c_state &= ~0x01;
core               64 drivers/media/pci/cx88/cx88-i2c.c 	cx_write(MO_I2C, core->i2c_state);
core               70 drivers/media/pci/cx88/cx88-i2c.c 	struct cx88_core *core = data;
core               79 drivers/media/pci/cx88/cx88-i2c.c 	struct cx88_core *core = data;
core              124 drivers/media/pci/cx88/cx88-i2c.c int cx88_i2c_init(struct cx88_core *core, struct pci_dev *pci)
core              130 drivers/media/pci/cx88/cx88-i2c.c 	core->i2c_algo = cx8800_i2c_algo_template;
core              132 drivers/media/pci/cx88/cx88-i2c.c 	core->i2c_adap.dev.parent = &pci->dev;
core              133 drivers/media/pci/cx88/cx88-i2c.c 	strscpy(core->i2c_adap.name, core->name, sizeof(core->i2c_adap.name));
core              134 drivers/media/pci/cx88/cx88-i2c.c 	core->i2c_adap.owner = THIS_MODULE;
core              135 drivers/media/pci/cx88/cx88-i2c.c 	core->i2c_algo.udelay = i2c_udelay;
core              136 drivers/media/pci/cx88/cx88-i2c.c 	core->i2c_algo.data = core;
core              137 drivers/media/pci/cx88/cx88-i2c.c 	i2c_set_adapdata(&core->i2c_adap, &core->v4l2_dev);
core              138 drivers/media/pci/cx88/cx88-i2c.c 	core->i2c_adap.algo_data = &core->i2c_algo;
core              139 drivers/media/pci/cx88/cx88-i2c.c 	core->i2c_client.adapter = &core->i2c_adap;
core              140 drivers/media/pci/cx88/cx88-i2c.c 	strscpy(core->i2c_client.name, "cx88xx internal", I2C_NAME_SIZE);
core              142 drivers/media/pci/cx88/cx88-i2c.c 	cx8800_bit_setscl(core, 1);
core              143 drivers/media/pci/cx88/cx88-i2c.c 	cx8800_bit_setsda(core, 1);
core              145 drivers/media/pci/cx88/cx88-i2c.c 	core->i2c_rc = i2c_bit_add_bus(&core->i2c_adap);
core              146 drivers/media/pci/cx88/cx88-i2c.c 	if (core->i2c_rc == 0) {
core              157 drivers/media/pci/cx88/cx88-i2c.c 		switch (core->boardnr) {
core              162 drivers/media/pci/cx88/cx88-i2c.c 			i2c_transfer(core->i2c_client.adapter, &tuner_msg, 1);
core              168 drivers/media/pci/cx88/cx88-i2c.c 			do_i2c_scan(core->name, &core->i2c_client);
core              172 drivers/media/pci/cx88/cx88-i2c.c 	return core->i2c_rc;
core               27 drivers/media/pci/cx88/cx88-input.c 	struct cx88_core *core;
core               58 drivers/media/pci/cx88/cx88-input.c 		printk(KERN_DEBUG "%s IR: " fmt, ir->core->name, ##arg);\
core               70 drivers/media/pci/cx88/cx88-input.c 	struct cx88_core *core = ir->core;
core               75 drivers/media/pci/cx88/cx88-input.c 	switch (core->boardnr) {
core              121 drivers/media/pci/cx88/cx88-input.c 	if (ir->core->boardnr == CX88_BOARD_NORWOOD_MICRO) {
core              128 drivers/media/pci/cx88/cx88-input.c 	} else if (ir->core->boardnr == CX88_BOARD_PROLINK_PLAYTVPVR ||
core              129 drivers/media/pci/cx88/cx88-input.c 		   ir->core->boardnr == CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO) {
core              184 drivers/media/pci/cx88/cx88-input.c 	struct cx88_core *core = priv;
core              187 drivers/media/pci/cx88/cx88-input.c 	if (!core || !core->ir)
core              190 drivers/media/pci/cx88/cx88-input.c 	ir = core->ir;
core              200 drivers/media/pci/cx88/cx88-input.c 		core->pci_irqmask |= PCI_INT_IR_SMPINT;
core              209 drivers/media/pci/cx88/cx88-input.c 	struct cx88_core *core = priv;
core              212 drivers/media/pci/cx88/cx88-input.c 	if (!core || !core->ir)
core              215 drivers/media/pci/cx88/cx88-input.c 	ir = core->ir;
core              218 drivers/media/pci/cx88/cx88-input.c 		core->pci_irqmask &= ~PCI_INT_IR_SMPINT;
core              225 drivers/media/pci/cx88/cx88-input.c int cx88_ir_start(struct cx88_core *core)
core              227 drivers/media/pci/cx88/cx88-input.c 	if (core->ir->users)
core              228 drivers/media/pci/cx88/cx88-input.c 		return __cx88_ir_start(core);
core              234 drivers/media/pci/cx88/cx88-input.c void cx88_ir_stop(struct cx88_core *core)
core              236 drivers/media/pci/cx88/cx88-input.c 	if (core->ir->users)
core              237 drivers/media/pci/cx88/cx88-input.c 		__cx88_ir_stop(core);
core              243 drivers/media/pci/cx88/cx88-input.c 	struct cx88_core *core = rc->priv;
core              245 drivers/media/pci/cx88/cx88-input.c 	core->ir->users++;
core              246 drivers/media/pci/cx88/cx88-input.c 	return __cx88_ir_start(core);
core              251 drivers/media/pci/cx88/cx88-input.c 	struct cx88_core *core = rc->priv;
core              253 drivers/media/pci/cx88/cx88-input.c 	core->ir->users--;
core              254 drivers/media/pci/cx88/cx88-input.c 	if (!core->ir->users)
core              255 drivers/media/pci/cx88/cx88-input.c 		__cx88_ir_stop(core);
core              260 drivers/media/pci/cx88/cx88-input.c int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci)
core              279 drivers/media/pci/cx88/cx88-input.c 	switch (core->boardnr) {
core              459 drivers/media/pci/cx88/cx88-input.c 	snprintf(ir->name, sizeof(ir->name), "cx88 IR (%s)", core->board.name);
core              476 drivers/media/pci/cx88/cx88-input.c 	dev->priv = core;
core              488 drivers/media/pci/cx88/cx88-input.c 	ir->core = core;
core              489 drivers/media/pci/cx88/cx88-input.c 	core->ir = ir;
core              500 drivers/media/pci/cx88/cx88-input.c 	core->ir = NULL;
core              505 drivers/media/pci/cx88/cx88-input.c int cx88_ir_fini(struct cx88_core *core)
core              507 drivers/media/pci/cx88/cx88-input.c 	struct cx88_IR *ir = core->ir;
core              513 drivers/media/pci/cx88/cx88-input.c 	cx88_ir_stop(core);
core              518 drivers/media/pci/cx88/cx88-input.c 	core->ir = NULL;
core              524 drivers/media/pci/cx88/cx88-input.c void cx88_ir_irq(struct cx88_core *core)
core              526 drivers/media/pci/cx88/cx88-input.c 	struct cx88_IR *ir = core->ir;
core              585 drivers/media/pci/cx88/cx88-input.c void cx88_i2c_init_ir(struct cx88_core *core)
core              599 drivers/media/pci/cx88/cx88-input.c 	if (core->i2c_rc != 0)
core              605 drivers/media/pci/cx88/cx88-input.c 	switch (core->boardnr) {
core              608 drivers/media/pci/cx88/cx88-input.c 		core->init_data.name = "cx88 Leadtek PVR 2000 remote";
core              609 drivers/media/pci/cx88/cx88-input.c 		core->init_data.type = RC_PROTO_BIT_UNKNOWN;
core              610 drivers/media/pci/cx88/cx88-input.c 		core->init_data.get_key = get_key_pvr2000;
core              611 drivers/media/pci/cx88/cx88-input.c 		core->init_data.ir_codes = RC_MAP_EMPTY;
core              624 drivers/media/pci/cx88/cx88-input.c 		memset(&core->init_data, 0, sizeof(core->init_data));
core              629 drivers/media/pci/cx88/cx88-input.c 			core->init_data.name = core->board.name;
core              630 drivers/media/pci/cx88/cx88-input.c 			core->init_data.ir_codes = RC_MAP_HAUPPAUGE;
core              631 drivers/media/pci/cx88/cx88-input.c 			core->init_data.type = RC_PROTO_BIT_RC5 |
core              633 drivers/media/pci/cx88/cx88-input.c 			core->init_data.internal_get_key_func = IR_KBD_GET_KEY_HAUP_XVR;
core              635 drivers/media/pci/cx88/cx88-input.c 			info.platform_data = &core->init_data;
core              637 drivers/media/pci/cx88/cx88-input.c 		if (i2c_smbus_xfer(&core->i2c_adap, *addrp, 0,
core              641 drivers/media/pci/cx88/cx88-input.c 			i2c_new_device(&core->i2c_adap, &info);
core               47 drivers/media/pci/cx88/cx88-mpeg.c 	if (dev->core->board.mpeg & CX88_MPEG_DVB)
core               49 drivers/media/pci/cx88/cx88-mpeg.c 	if (dev->core->board.mpeg & CX88_MPEG_BLACKBIRD)
core               76 drivers/media/pci/cx88/cx88-mpeg.c 	struct cx88_core *core = dev->core;
core               79 drivers/media/pci/cx88/cx88-mpeg.c 		core->width, core->height, core->field);
core               82 drivers/media/pci/cx88/cx88-mpeg.c 	cx88_sram_channel_setup(core, &cx88_sram_channels[SRAM_CH28],
core               93 drivers/media/pci/cx88/cx88-mpeg.c 	dprintk(1, "core->active_type_id = 0x%08x\n", core->active_type_id);
core               95 drivers/media/pci/cx88/cx88-mpeg.c 	if ((core->active_type_id == CX88_MPEG_DVB) &&
core               96 drivers/media/pci/cx88/cx88-mpeg.c 	    (core->board.mpeg & CX88_MPEG_DVB)) {
core              103 drivers/media/pci/cx88/cx88-mpeg.c 		switch (core->boardnr) {
core              140 drivers/media/pci/cx88/cx88-mpeg.c 	} else if ((core->active_type_id == CX88_MPEG_BLACKBIRD) &&
core              141 drivers/media/pci/cx88/cx88-mpeg.c 		(core->board.mpeg & CX88_MPEG_BLACKBIRD)) {
core              157 drivers/media/pci/cx88/cx88-mpeg.c 		       __func__, core->board.mpeg);
core              167 drivers/media/pci/cx88/cx88-mpeg.c 	cx_set(MO_PCI_INTMSK, core->pci_irqmask | PCI_INT_TSINT);
core              179 drivers/media/pci/cx88/cx88-mpeg.c 	struct cx88_core *core = dev->core;
core              303 drivers/media/pci/cx88/cx88-mpeg.c 	struct cx88_core *core = dev->core;
core              323 drivers/media/pci/cx88/cx88-mpeg.c 		cx88_sram_channel_dump(dev->core,
core              332 drivers/media/pci/cx88/cx88-mpeg.c 		cx88_wakeup(dev->core, &dev->mpegq, count);
core              350 drivers/media/pci/cx88/cx88-mpeg.c 	struct cx88_core *core = dev->core;
core              356 drivers/media/pci/cx88/cx88-mpeg.c 			(core->pci_irqmask | PCI_INT_TSINT);
core              365 drivers/media/pci/cx88/cx88-mpeg.c 		if (status & core->pci_irqmask)
core              366 drivers/media/pci/cx88/cx88-mpeg.c 			cx88_core_irq(core, status);
core              382 drivers/media/pci/cx88/cx88-mpeg.c 	struct cx88_core *core = dev->core;
core              410 drivers/media/pci/cx88/cx88-mpeg.c 			  IRQF_SHARED, dev->core->name, dev);
core              415 drivers/media/pci/cx88/cx88-mpeg.c 	cx_set(MO_PCI_INTMSK, core->pci_irqmask);
core              449 drivers/media/pci/cx88/cx88-mpeg.c 	cx88_shutdown(dev->core);
core              485 drivers/media/pci/cx88/cx88-mpeg.c 	cx88_reset(dev->core);
core              514 drivers/media/pci/cx88/cx88-mpeg.c 	struct cx88_core *core = drv->core;
core              518 drivers/media/pci/cx88/cx88-mpeg.c 	if (core->active_type_id != CX88_BOARD_NONE &&
core              519 drivers/media/pci/cx88/cx88-mpeg.c 	    core->active_type_id != drv->type_id)
core              524 drivers/media/pci/cx88/cx88-mpeg.c 		core->last_analog_input = core->input;
core              525 drivers/media/pci/cx88/cx88-mpeg.c 		core->input = 0;
core              527 drivers/media/pci/cx88/cx88-mpeg.c 		     i < (sizeof(core->board.input) /
core              530 drivers/media/pci/cx88/cx88-mpeg.c 			if (core->board.input[i].type == CX88_VMUX_DVB) {
core              531 drivers/media/pci/cx88/cx88-mpeg.c 				core->input = i;
core              538 drivers/media/pci/cx88/cx88-mpeg.c 		core->active_ref++;
core              539 drivers/media/pci/cx88/cx88-mpeg.c 		if (core->active_type_id == CX88_BOARD_NONE) {
core              540 drivers/media/pci/cx88/cx88-mpeg.c 			core->active_type_id = drv->type_id;
core              553 drivers/media/pci/cx88/cx88-mpeg.c 	struct cx88_core *core = drv->core;
core              555 drivers/media/pci/cx88/cx88-mpeg.c 	if (drv->advise_release && --core->active_ref == 0) {
core              561 drivers/media/pci/cx88/cx88-mpeg.c 			core->input = core->last_analog_input;
core              565 drivers/media/pci/cx88/cx88-mpeg.c 		core->active_type_id = CX88_BOARD_NONE;
core              616 drivers/media/pci/cx88/cx88-mpeg.c 			dev->pci->subsystem_device, dev->core->board.name,
core              617 drivers/media/pci/cx88/cx88-mpeg.c 			dev->core->boardnr);
core              627 drivers/media/pci/cx88/cx88-mpeg.c 		drv->core = dev->core;
core              634 drivers/media/pci/cx88/cx88-mpeg.c 		mutex_lock(&drv->core->lock);
core              642 drivers/media/pci/cx88/cx88-mpeg.c 		mutex_unlock(&drv->core->lock);
core              668 drivers/media/pci/cx88/cx88-mpeg.c 			dev->pci->subsystem_device, dev->core->board.name,
core              669 drivers/media/pci/cx88/cx88-mpeg.c 			dev->core->boardnr);
core              671 drivers/media/pci/cx88/cx88-mpeg.c 		mutex_lock(&dev->core->lock);
core              687 drivers/media/pci/cx88/cx88-mpeg.c 		mutex_unlock(&dev->core->lock);
core              701 drivers/media/pci/cx88/cx88-mpeg.c 	struct cx88_core  *core;
core              705 drivers/media/pci/cx88/cx88-mpeg.c 	core = cx88_core_get(pci_dev);
core              706 drivers/media/pci/cx88/cx88-mpeg.c 	if (!core)
core              712 drivers/media/pci/cx88/cx88-mpeg.c 	if (!core->board.mpeg)
core              720 drivers/media/pci/cx88/cx88-mpeg.c 	dev->core = core;
core              723 drivers/media/pci/cx88/cx88-mpeg.c 	core->dvbdev = dev;
core              741 drivers/media/pci/cx88/cx88-mpeg.c 	core->dvbdev = NULL;
core              742 drivers/media/pci/cx88/cx88-mpeg.c 	cx88_core_put(core, pci_dev);
core              756 drivers/media/pci/cx88/cx88-mpeg.c 	mutex_lock(&dev->core->lock);
core              775 drivers/media/pci/cx88/cx88-mpeg.c 	mutex_unlock(&dev->core->lock);
core              778 drivers/media/pci/cx88/cx88-mpeg.c 	dev->core->dvbdev = NULL;
core              782 drivers/media/pci/cx88/cx88-mpeg.c 	cx88_core_put(dev->core, dev->pci);
core               92 drivers/media/pci/cx88/cx88-tvaudio.c static void set_audio_registers(struct cx88_core *core, const struct rlist *l)
core              113 drivers/media/pci/cx88/cx88-tvaudio.c static void set_audio_start(struct cx88_core *core, u32 mode)
core              124 drivers/media/pci/cx88/cx88-tvaudio.c static void set_audio_finish(struct cx88_core *core, u32 ctl)
core              129 drivers/media/pci/cx88/cx88-tvaudio.c 	cx88_stop_audio_dma(core);
core              131 drivers/media/pci/cx88/cx88-tvaudio.c 	cx88_start_audio_dma(core);
core              133 drivers/media/pci/cx88/cx88-tvaudio.c 	if (core->board.mpeg & CX88_MPEG_BLACKBIRD) {
core              145 drivers/media/pci/cx88/cx88-tvaudio.c 	if ((always_analog) || (!(core->board.mpeg & CX88_MPEG_BLACKBIRD))) {
core              157 drivers/media/pci/cx88/cx88-tvaudio.c 	core->last_change = jiffies;
core              162 drivers/media/pci/cx88/cx88-tvaudio.c static void set_audio_standard_BTSC(struct cx88_core *core, unsigned int sap,
core              261 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_start(core, SEL_SAP);
core              262 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_registers(core, btsc_sap);
core              263 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_finish(core, mode);
core              266 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_start(core, SEL_BTSC);
core              267 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_registers(core, btsc);
core              268 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_finish(core, mode);
core              272 drivers/media/pci/cx88/cx88-tvaudio.c static void set_audio_standard_NICAM(struct cx88_core *core, u32 mode)
core              343 drivers/media/pci/cx88/cx88-tvaudio.c 	set_audio_start(core, SEL_NICAM);
core              344 drivers/media/pci/cx88/cx88-tvaudio.c 	switch (core->tvaudio) {
core              347 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_registers(core, nicam_l);
core              351 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_registers(core, nicam_bgdki_common);
core              352 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_registers(core, nicam_i);
core              364 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_registers(core, nicam_bgdki_common);
core              365 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_registers(core, nicam_default);
core              370 drivers/media/pci/cx88/cx88-tvaudio.c 	set_audio_finish(core, mode);
core              373 drivers/media/pci/cx88/cx88-tvaudio.c static void set_audio_standard_A2(struct cx88_core *core, u32 mode)
core              600 drivers/media/pci/cx88/cx88-tvaudio.c 	set_audio_start(core, SEL_A2);
core              601 drivers/media/pci/cx88/cx88-tvaudio.c 	switch (core->tvaudio) {
core              604 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_registers(core, a2_bgdk_common);
core              605 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_registers(core, a2_bg);
core              606 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_registers(core, a2_deemph50);
core              610 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_registers(core, a2_bgdk_common);
core              611 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_registers(core, a2_dk);
core              612 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_registers(core, a2_deemph50);
core              616 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_registers(core, a1_i);
core              617 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_registers(core, a2_deemph50);
core              621 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_registers(core, am_l);
core              635 drivers/media/pci/cx88/cx88-tvaudio.c 	set_audio_finish(core, mode);
core              638 drivers/media/pci/cx88/cx88-tvaudio.c static void set_audio_standard_EIAJ(struct cx88_core *core)
core              647 drivers/media/pci/cx88/cx88-tvaudio.c 	set_audio_start(core, SEL_EIAJ);
core              648 drivers/media/pci/cx88/cx88-tvaudio.c 	set_audio_registers(core, eiaj);
core              649 drivers/media/pci/cx88/cx88-tvaudio.c 	set_audio_finish(core, EN_EIAJ_AUTO_STEREO);
core              652 drivers/media/pci/cx88/cx88-tvaudio.c static void set_audio_standard_FM(struct cx88_core *core,
core              702 drivers/media/pci/cx88/cx88-tvaudio.c 	set_audio_start(core, SEL_FMRADIO);
core              707 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_registers(core, fm_no_deemph);
core              711 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_registers(core, fm_deemph_50);
core              715 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_registers(core, fm_deemph_75);
core              719 drivers/media/pci/cx88/cx88-tvaudio.c 	set_audio_finish(core, EN_FMRADIO_AUTO_STEREO);
core              724 drivers/media/pci/cx88/cx88-tvaudio.c static int cx88_detect_nicam(struct cx88_core *core)
core              747 drivers/media/pci/cx88/cx88-tvaudio.c void cx88_set_tvaudio(struct cx88_core *core)
core              749 drivers/media/pci/cx88/cx88-tvaudio.c 	switch (core->tvaudio) {
core              751 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_standard_BTSC(core, 0, EN_BTSC_AUTO_STEREO);
core              759 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_standard_A2(core, EN_A2_FORCE_MONO1);
core              765 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_standard_NICAM(core, EN_NICAM_AUTO_STEREO);
core              766 drivers/media/pci/cx88/cx88-tvaudio.c 		if (cx88_detect_nicam(core) == 0) {
core              768 drivers/media/pci/cx88/cx88-tvaudio.c 			set_audio_standard_A2(core, EN_A2_FORCE_MONO1);
core              769 drivers/media/pci/cx88/cx88-tvaudio.c 			core->audiomode_current = V4L2_TUNER_MODE_MONO;
core              770 drivers/media/pci/cx88/cx88-tvaudio.c 			core->use_nicam = 0;
core              772 drivers/media/pci/cx88/cx88-tvaudio.c 			core->use_nicam = 1;
core              776 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_standard_EIAJ(core);
core              779 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_standard_FM(core, radio_deemphasis);
core              782 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_start(core, 0x01);
core              788 drivers/media/pci/cx88/cx88-tvaudio.c 		cx_write(AUD_I2SINPUTCNTL, core->board.i2sinputcntl);
core              791 drivers/media/pci/cx88/cx88-tvaudio.c 		set_audio_finish(core, EN_I2SIN_ENABLE);
core              795 drivers/media/pci/cx88/cx88-tvaudio.c 		pr_info("unknown tv audio mode [%d]\n", core->tvaudio);
core              801 drivers/media/pci/cx88/cx88-tvaudio.c void cx88_newstation(struct cx88_core *core)
core              803 drivers/media/pci/cx88/cx88-tvaudio.c 	core->audiomode_manual = UNSET;
core              804 drivers/media/pci/cx88/cx88-tvaudio.c 	core->last_change = jiffies;
core              808 drivers/media/pci/cx88/cx88-tvaudio.c void cx88_get_stereo(struct cx88_core *core, struct v4l2_tuner *t)
core              820 drivers/media/pci/cx88/cx88-tvaudio.c 	if (core->astat != reg)
core              824 drivers/media/pci/cx88/cx88-tvaudio.c 	core->astat = reg;
core              846 drivers/media/pci/cx88/cx88-tvaudio.c 	switch (core->tvaudio) {
core              852 drivers/media/pci/cx88/cx88-tvaudio.c 		if (!core->use_nicam) {
core              853 drivers/media/pci/cx88/cx88-tvaudio.c 			t->rxsubchans = cx88_dsp_detect_stereo_sap(core);
core              881 drivers/media/pci/cx88/cx88-tvaudio.c void cx88_set_stereo(struct cx88_core *core, u32 mode, int manual)
core              887 drivers/media/pci/cx88/cx88-tvaudio.c 		core->audiomode_manual = mode;
core              889 drivers/media/pci/cx88/cx88-tvaudio.c 		if (core->audiomode_manual != UNSET)
core              892 drivers/media/pci/cx88/cx88-tvaudio.c 	core->audiomode_current = mode;
core              894 drivers/media/pci/cx88/cx88-tvaudio.c 	switch (core->tvaudio) {
core              898 drivers/media/pci/cx88/cx88-tvaudio.c 			set_audio_standard_BTSC(core, 0, EN_BTSC_FORCE_MONO);
core              901 drivers/media/pci/cx88/cx88-tvaudio.c 			set_audio_standard_BTSC(core, 0, EN_BTSC_AUTO_STEREO);
core              904 drivers/media/pci/cx88/cx88-tvaudio.c 			set_audio_standard_BTSC(core, 1, EN_BTSC_FORCE_SAP);
core              908 drivers/media/pci/cx88/cx88-tvaudio.c 			set_audio_standard_BTSC(core, 0, EN_BTSC_FORCE_STEREO);
core              917 drivers/media/pci/cx88/cx88-tvaudio.c 		if (core->use_nicam == 1) {
core              921 drivers/media/pci/cx88/cx88-tvaudio.c 				set_audio_standard_NICAM(core,
core              925 drivers/media/pci/cx88/cx88-tvaudio.c 				set_audio_standard_NICAM(core,
core              930 drivers/media/pci/cx88/cx88-tvaudio.c 				set_audio_standard_NICAM(core,
core              935 drivers/media/pci/cx88/cx88-tvaudio.c 			if ((core->tvaudio == WW_I) ||
core              936 drivers/media/pci/cx88/cx88-tvaudio.c 			    (core->tvaudio == WW_L)) {
core              938 drivers/media/pci/cx88/cx88-tvaudio.c 				set_audio_standard_A2(core, EN_A2_FORCE_MONO1);
core              989 drivers/media/pci/cx88/cx88-tvaudio.c 	struct cx88_core *core = data;
core             1001 drivers/media/pci/cx88/cx88-tvaudio.c 		switch (core->tvaudio) {
core             1007 drivers/media/pci/cx88/cx88-tvaudio.c 			if (core->use_nicam)
core             1012 drivers/media/pci/cx88/cx88-tvaudio.c 			cx88_get_stereo(core, &t);
core             1014 drivers/media/pci/cx88/cx88-tvaudio.c 			if (core->audiomode_manual != UNSET)
core             1023 drivers/media/pci/cx88/cx88-tvaudio.c 			if (mode == core->audiomode_current)
core             1026 drivers/media/pci/cx88/cx88-tvaudio.c 			cx88_set_stereo(core, mode, 0);
core               32 drivers/media/pci/cx88/cx88-vbi.c 	if (dev->core->tvnorm & V4L2_STD_525_60) {
core               40 drivers/media/pci/cx88/cx88-vbi.c 	} else if (dev->core->tvnorm & V4L2_STD_625_50) {
core               55 drivers/media/pci/cx88/cx88-vbi.c 	struct cx88_core *core = dev->core;
core               58 drivers/media/pci/cx88/cx88-vbi.c 	cx88_sram_channel_setup(dev->core, &cx88_sram_channels[SRAM_CH24],
core               70 drivers/media/pci/cx88/cx88-vbi.c 	cx_set(MO_PCI_INTMSK, core->pci_irqmask | PCI_INT_VIDINT);
core               85 drivers/media/pci/cx88/cx88-vbi.c 	struct cx88_core *core = dev->core;
core              122 drivers/media/pci/cx88/cx88-vbi.c 	if (dev->core->tvnorm & V4L2_STD_525_60)
core              138 drivers/media/pci/cx88/cx88-vbi.c 	if (dev->core->tvnorm & V4L2_STD_525_60)
core              208 drivers/media/pci/cx88/cx88-vbi.c 	struct cx88_core *core = dev->core;
core              282 drivers/media/pci/cx88/cx88-video.c int cx88_video_mux(struct cx88_core *core, unsigned int input)
core              290 drivers/media/pci/cx88/cx88-video.c 	core->input = input;
core              322 drivers/media/pci/cx88/cx88-video.c 		if (core->sd_wm8775) {
core              323 drivers/media/pci/cx88/cx88-video.c 			call_all(core, audio, s_routing,
core              334 drivers/media/pci/cx88/cx88-video.c 			core->tvaudio = WW_I2SADC;
core              335 drivers/media/pci/cx88/cx88-video.c 			cx88_set_tvaudio(core);
core              353 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core              356 drivers/media/pci/cx88/cx88-video.c 	cx88_sram_channel_setup(core, &cx88_sram_channels[SRAM_CH21],
core              358 drivers/media/pci/cx88/cx88-video.c 	cx88_set_scale(core, core->width, core->height, core->field);
core              366 drivers/media/pci/cx88/cx88-video.c 	cx_set(MO_PCI_INTMSK, core->pci_irqmask | PCI_INT_VIDINT);
core              391 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core              427 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core              430 drivers/media/pci/cx88/cx88-video.c 	sizes[0] = (dev->fmt->depth * core->width * core->height) >> 3;
core              438 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core              442 drivers/media/pci/cx88/cx88-video.c 	buf->bpl = core->width * dev->fmt->depth >> 3;
core              444 drivers/media/pci/cx88/cx88-video.c 	if (vb2_plane_size(vb, 0) < core->height * buf->bpl)
core              446 drivers/media/pci/cx88/cx88-video.c 	vb2_set_plane_payload(vb, 0, core->height * buf->bpl);
core              448 drivers/media/pci/cx88/cx88-video.c 	switch (core->field) {
core              452 drivers/media/pci/cx88/cx88-video.c 				 buf->bpl, 0, core->height);
core              457 drivers/media/pci/cx88/cx88-video.c 				 buf->bpl, 0, core->height);
core              462 drivers/media/pci/cx88/cx88-video.c 				 0, buf->bpl * (core->height >> 1),
core              464 drivers/media/pci/cx88/cx88-video.c 				 core->height >> 1);
core              469 drivers/media/pci/cx88/cx88-video.c 				 buf->bpl * (core->height >> 1), 0,
core              471 drivers/media/pci/cx88/cx88-video.c 				 core->height >> 1);
core              478 drivers/media/pci/cx88/cx88-video.c 				 core->height >> 1);
core              484 drivers/media/pci/cx88/cx88-video.c 		core->width, core->height, dev->fmt->depth, dev->fmt->fourcc,
core              543 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core              576 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core              582 drivers/media/pci/cx88/cx88-video.c 	cx_write(MO_GP3_IO, core->board.radio.gpio3);
core              583 drivers/media/pci/cx88/cx88-video.c 	cx_write(MO_GP0_IO, core->board.radio.gpio0);
core              584 drivers/media/pci/cx88/cx88-video.c 	cx_write(MO_GP1_IO, core->board.radio.gpio1);
core              585 drivers/media/pci/cx88/cx88-video.c 	cx_write(MO_GP2_IO, core->board.radio.gpio2);
core              586 drivers/media/pci/cx88/cx88-video.c 	if (core->board.radio.audioroute) {
core              587 drivers/media/pci/cx88/cx88-video.c 		if (core->sd_wm8775) {
core              588 drivers/media/pci/cx88/cx88-video.c 			call_all(core, audio, s_routing,
core              589 drivers/media/pci/cx88/cx88-video.c 				 core->board.radio.audioroute, 0, 0);
core              592 drivers/media/pci/cx88/cx88-video.c 		core->tvaudio = WW_I2SADC;
core              593 drivers/media/pci/cx88/cx88-video.c 		cx88_set_tvaudio(core);
core              596 drivers/media/pci/cx88/cx88-video.c 		core->tvaudio = WW_FM;
core              597 drivers/media/pci/cx88/cx88-video.c 		cx88_set_tvaudio(core);
core              598 drivers/media/pci/cx88/cx88-video.c 		cx88_set_stereo(core, V4L2_TUNER_MODE_STEREO, 1);
core              600 drivers/media/pci/cx88/cx88-video.c 	call_all(core, tuner, s_radio);
core              609 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core =
core              621 drivers/media/pci/cx88/cx88-video.c 		if (core->tvnorm & V4L2_STD_SECAM) {
core              656 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core =
core              662 drivers/media/pci/cx88/cx88-video.c 	if (core->sd_wm8775) {
core              665 drivers/media/pci/cx88/cx88-video.c 			wm8775_s_ctrl(core, ctrl->id, ctrl->val);
core              668 drivers/media/pci/cx88/cx88-video.c 			wm8775_s_ctrl(core, ctrl->id, (ctrl->val) ?
core              672 drivers/media/pci/cx88/cx88-video.c 			wm8775_s_ctrl(core, ctrl->id, ctrl->val << 9);
core              710 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core              712 drivers/media/pci/cx88/cx88-video.c 	f->fmt.pix.width        = core->width;
core              713 drivers/media/pci/cx88/cx88-video.c 	f->fmt.pix.height       = core->height;
core              714 drivers/media/pci/cx88/cx88-video.c 	f->fmt.pix.field        = core->field;
core              728 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core              737 drivers/media/pci/cx88/cx88-video.c 	maxw = norm_maxw(core->tvnorm);
core              738 drivers/media/pci/cx88/cx88-video.c 	maxh = norm_maxh(core->tvnorm);
core              774 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core              781 drivers/media/pci/cx88/cx88-video.c 	if (core->dvbdev && vb2_is_busy(&core->dvbdev->vb2_mpegq))
core              784 drivers/media/pci/cx88/cx88-video.c 	core->width = f->fmt.pix.width;
core              785 drivers/media/pci/cx88/cx88-video.c 	core->height = f->fmt.pix.height;
core              786 drivers/media/pci/cx88/cx88-video.c 	core->field = f->fmt.pix.field;
core              790 drivers/media/pci/cx88/cx88-video.c int cx88_querycap(struct file *file, struct cx88_core *core,
core              793 drivers/media/pci/cx88/cx88-video.c 	strscpy(cap->card, core->board.name, sizeof(cap->card));
core              797 drivers/media/pci/cx88/cx88-video.c 	if (core->board.tuner_type != UNSET)
core              799 drivers/media/pci/cx88/cx88-video.c 	if (core->board.radio.type == CX88_RADIO)
core              809 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core              813 drivers/media/pci/cx88/cx88-video.c 	return cx88_querycap(file, core, cap);
core              830 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core              832 drivers/media/pci/cx88/cx88-video.c 	*tvnorm = core->tvnorm;
core              839 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core              841 drivers/media/pci/cx88/cx88-video.c 	return cx88_set_tvnorm(core, tvnorms);
core              845 drivers/media/pci/cx88/cx88-video.c int cx88_enum_input(struct cx88_core  *core, struct v4l2_input *i)
core              879 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core              881 drivers/media/pci/cx88/cx88-video.c 	return cx88_enum_input(core, i);
core              887 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core              889 drivers/media/pci/cx88/cx88-video.c 	*i = core->input;
core              896 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core              903 drivers/media/pci/cx88/cx88-video.c 	cx88_newstation(core);
core              904 drivers/media/pci/cx88/cx88-video.c 	cx88_video_mux(core, i);
core              912 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core              915 drivers/media/pci/cx88/cx88-video.c 	if (unlikely(core->board.tuner_type == UNSET))
core              923 drivers/media/pci/cx88/cx88-video.c 	call_all(core, tuner, g_tuner, t);
core              925 drivers/media/pci/cx88/cx88-video.c 	cx88_get_stereo(core, t);
core              935 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core              937 drivers/media/pci/cx88/cx88-video.c 	if (core->board.tuner_type == UNSET)
core              942 drivers/media/pci/cx88/cx88-video.c 	cx88_set_stereo(core, t->audmode, 1);
core              950 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core              952 drivers/media/pci/cx88/cx88-video.c 	if (unlikely(core->board.tuner_type == UNSET))
core              957 drivers/media/pci/cx88/cx88-video.c 	f->frequency = core->freq;
core              959 drivers/media/pci/cx88/cx88-video.c 	call_all(core, tuner, g_frequency, f);
core              964 drivers/media/pci/cx88/cx88-video.c int cx88_set_freq(struct cx88_core  *core,
core              969 drivers/media/pci/cx88/cx88-video.c 	if (unlikely(core->board.tuner_type == UNSET))
core              974 drivers/media/pci/cx88/cx88-video.c 	cx88_newstation(core);
core              975 drivers/media/pci/cx88/cx88-video.c 	call_all(core, tuner, s_frequency, f);
core              976 drivers/media/pci/cx88/cx88-video.c 	call_all(core, tuner, g_frequency, &new_freq);
core              977 drivers/media/pci/cx88/cx88-video.c 	core->freq = new_freq.frequency;
core              981 drivers/media/pci/cx88/cx88-video.c 	cx88_set_tvaudio(core);
core              991 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core              993 drivers/media/pci/cx88/cx88-video.c 	return cx88_set_freq(core, f);
core             1001 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core             1013 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core             1028 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core             1035 drivers/media/pci/cx88/cx88-video.c 	call_all(core, tuner, g_tuner, t);
core             1043 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core             1048 drivers/media/pci/cx88/cx88-video.c 	call_all(core, tuner, s_tuner, t);
core             1064 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core             1082 drivers/media/pci/cx88/cx88-video.c 		cx88_sram_channel_dump(core, &cx88_sram_channels[SRAM_CH21]);
core             1089 drivers/media/pci/cx88/cx88-video.c 		cx88_wakeup(core, &dev->vidq, count);
core             1097 drivers/media/pci/cx88/cx88-video.c 		cx88_wakeup(core, &dev->vbiq, count);
core             1105 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core             1111 drivers/media/pci/cx88/cx88-video.c 			(core->pci_irqmask | PCI_INT_VIDINT);
core             1117 drivers/media/pci/cx88/cx88-video.c 		if (status & core->pci_irqmask)
core             1118 drivers/media/pci/cx88/cx88-video.c 			cx88_core_irq(core, status);
core             1262 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core;
core             1277 drivers/media/pci/cx88/cx88-video.c 	core = cx88_core_get(dev->pci);
core             1278 drivers/media/pci/cx88/cx88-video.c 	if (!core) {
core             1282 drivers/media/pci/cx88/cx88-video.c 	dev->core = core;
core             1310 drivers/media/pci/cx88/cx88-video.c 			  IRQF_SHARED, core->name, dev);
core             1315 drivers/media/pci/cx88/cx88-video.c 	cx_set(MO_PCI_INTMSK, core->pci_irqmask);
core             1321 drivers/media/pci/cx88/cx88-video.c 		vc = v4l2_ctrl_new_std(&core->audio_hdl, &cx8800_ctrl_aud_ops,
core             1325 drivers/media/pci/cx88/cx88-video.c 			err = core->audio_hdl.error;
core             1335 drivers/media/pci/cx88/cx88-video.c 		vc = v4l2_ctrl_new_std(&core->video_hdl, &cx8800_ctrl_vid_ops,
core             1339 drivers/media/pci/cx88/cx88-video.c 			err = core->video_hdl.error;
core             1344 drivers/media/pci/cx88/cx88-video.c 			core->chroma_agc = vc;
core             1346 drivers/media/pci/cx88/cx88-video.c 	v4l2_ctrl_add_handler(&core->video_hdl, &core->audio_hdl, NULL, false);
core             1350 drivers/media/pci/cx88/cx88-video.c 	if (core->board.audio_chip == CX88_AUDIO_WM8775) {
core             1354 drivers/media/pci/cx88/cx88-video.c 			.platform_data = &core->wm8775_data,
core             1358 drivers/media/pci/cx88/cx88-video.c 		if (core->boardnr == CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1)
core             1359 drivers/media/pci/cx88/cx88-video.c 			core->wm8775_data.is_nova_s = true;
core             1361 drivers/media/pci/cx88/cx88-video.c 			core->wm8775_data.is_nova_s = false;
core             1363 drivers/media/pci/cx88/cx88-video.c 		sd = v4l2_i2c_new_subdev_board(&core->v4l2_dev, &core->i2c_adap,
core             1366 drivers/media/pci/cx88/cx88-video.c 			core->sd_wm8775 = sd;
core             1371 drivers/media/pci/cx88/cx88-video.c 	if (core->board.audio_chip == CX88_AUDIO_TVAUDIO) {
core             1376 drivers/media/pci/cx88/cx88-video.c 		v4l2_i2c_new_subdev(&core->v4l2_dev, &core->i2c_adap,
core             1380 drivers/media/pci/cx88/cx88-video.c 	switch (core->boardnr) {
core             1388 drivers/media/pci/cx88/cx88-video.c 		core->i2c_rtc = i2c_new_device(&core->i2c_adap, &rtc_info);
core             1401 drivers/media/pci/cx88/cx88-video.c 	core->v4ldev = dev;
core             1404 drivers/media/pci/cx88/cx88-video.c 	mutex_lock(&core->lock);
core             1405 drivers/media/pci/cx88/cx88-video.c 	cx88_set_tvnorm(core, V4L2_STD_NTSC_M);
core             1406 drivers/media/pci/cx88/cx88-video.c 	v4l2_ctrl_handler_setup(&core->video_hdl);
core             1407 drivers/media/pci/cx88/cx88-video.c 	v4l2_ctrl_handler_setup(&core->audio_hdl);
core             1408 drivers/media/pci/cx88/cx88-video.c 	cx88_video_mux(core, 0);
core             1420 drivers/media/pci/cx88/cx88-video.c 	q->lock = &core->lock;
core             1437 drivers/media/pci/cx88/cx88-video.c 	q->lock = &core->lock;
core             1445 drivers/media/pci/cx88/cx88-video.c 	cx88_vdev_init(core, dev->pci, &dev->video_dev,
core             1448 drivers/media/pci/cx88/cx88-video.c 	dev->video_dev.ctrl_handler = &core->video_hdl;
core             1452 drivers/media/pci/cx88/cx88-video.c 	if (core->board.tuner_type != UNSET)
core             1455 drivers/media/pci/cx88/cx88-video.c 				    video_nr[core->nr]);
core             1463 drivers/media/pci/cx88/cx88-video.c 	cx88_vdev_init(core, dev->pci, &dev->vbi_dev,
core             1469 drivers/media/pci/cx88/cx88-video.c 	if (core->board.tuner_type != UNSET)
core             1472 drivers/media/pci/cx88/cx88-video.c 				    vbi_nr[core->nr]);
core             1480 drivers/media/pci/cx88/cx88-video.c 	if (core->board.radio.type == CX88_RADIO) {
core             1481 drivers/media/pci/cx88/cx88-video.c 		cx88_vdev_init(core, dev->pci, &dev->radio_dev,
core             1484 drivers/media/pci/cx88/cx88-video.c 		dev->radio_dev.ctrl_handler = &core->audio_hdl;
core             1487 drivers/media/pci/cx88/cx88-video.c 					    radio_nr[core->nr]);
core             1497 drivers/media/pci/cx88/cx88-video.c 	if (core->board.tuner_type != UNSET) {
core             1498 drivers/media/pci/cx88/cx88-video.c 		core->kthread = kthread_run(cx88_audio_thread,
core             1499 drivers/media/pci/cx88/cx88-video.c 					    core, "cx88 tvaudio");
core             1500 drivers/media/pci/cx88/cx88-video.c 		if (IS_ERR(core->kthread)) {
core             1501 drivers/media/pci/cx88/cx88-video.c 			err = PTR_ERR(core->kthread);
core             1506 drivers/media/pci/cx88/cx88-video.c 	mutex_unlock(&core->lock);
core             1512 drivers/media/pci/cx88/cx88-video.c 	mutex_unlock(&core->lock);
core             1516 drivers/media/pci/cx88/cx88-video.c 	core->v4ldev = NULL;
core             1517 drivers/media/pci/cx88/cx88-video.c 	cx88_core_put(core, dev->pci);
core             1528 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core             1531 drivers/media/pci/cx88/cx88-video.c 	if (core->kthread) {
core             1532 drivers/media/pci/cx88/cx88-video.c 		kthread_stop(core->kthread);
core             1533 drivers/media/pci/cx88/cx88-video.c 		core->kthread = NULL;
core             1536 drivers/media/pci/cx88/cx88-video.c 	if (core->ir)
core             1537 drivers/media/pci/cx88/cx88-video.c 		cx88_ir_stop(core);
core             1539 drivers/media/pci/cx88/cx88-video.c 	cx88_shutdown(core); /* FIXME */
core             1547 drivers/media/pci/cx88/cx88-video.c 	core->v4ldev = NULL;
core             1550 drivers/media/pci/cx88/cx88-video.c 	cx88_core_put(core, dev->pci);
core             1558 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core             1573 drivers/media/pci/cx88/cx88-video.c 	if (core->ir)
core             1574 drivers/media/pci/cx88/cx88-video.c 		cx88_ir_stop(core);
core             1576 drivers/media/pci/cx88/cx88-video.c 	cx88_shutdown(core);
core             1590 drivers/media/pci/cx88/cx88-video.c 	struct cx88_core *core = dev->core;
core             1614 drivers/media/pci/cx88/cx88-video.c 	cx88_reset(core);
core             1615 drivers/media/pci/cx88/cx88-video.c 	if (core->ir)
core             1616 drivers/media/pci/cx88/cx88-video.c 		cx88_ir_start(core);
core             1618 drivers/media/pci/cx88/cx88-video.c 	cx_set(MO_PCI_INTMSK, core->pci_irqmask);
core               27 drivers/media/pci/cx88/cx88-vp3054-i2c.c 	struct cx88_core *core = dev->core;
core               44 drivers/media/pci/cx88/cx88-vp3054-i2c.c 	struct cx88_core *core = dev->core;
core               61 drivers/media/pci/cx88/cx88-vp3054-i2c.c 	struct cx88_core *core = dev->core;
core               71 drivers/media/pci/cx88/cx88-vp3054-i2c.c 	struct cx88_core *core = dev->core;
core               93 drivers/media/pci/cx88/cx88-vp3054-i2c.c 	struct cx88_core *core = dev->core;
core               97 drivers/media/pci/cx88/cx88-vp3054-i2c.c 	if (core->boardnr != CX88_BOARD_DNTV_LIVE_DVB_T_PRO)
core              108 drivers/media/pci/cx88/cx88-vp3054-i2c.c 	strscpy(vp3054_i2c->adap.name, core->name,
core              135 drivers/media/pci/cx88/cx88-vp3054-i2c.c 	    dev->core->boardnr != CX88_BOARD_DNTV_LIVE_DVB_T_PRO)
core              294 drivers/media/pci/cx88/cx88.h #define INPUT(nr) (core->board.input[nr])
core              372 drivers/media/pci/cx88/cx88.h 	void	(*gate_ctrl)(struct cx88_core *core, int open);
core              416 drivers/media/pci/cx88/cx88.h #define call_hw(core, grpid, o, f, args...) \
core              418 drivers/media/pci/cx88/cx88.h 		if (!core->i2c_rc) {				\
core              419 drivers/media/pci/cx88/cx88.h 			if (core->gate_ctrl)			\
core              420 drivers/media/pci/cx88/cx88.h 				core->gate_ctrl(core, 1);	\
core              421 drivers/media/pci/cx88/cx88.h 			v4l2_device_call_all(&core->v4l2_dev,	\
core              423 drivers/media/pci/cx88/cx88.h 			if (core->gate_ctrl)			\
core              424 drivers/media/pci/cx88/cx88.h 				core->gate_ctrl(core, 0);	\
core              428 drivers/media/pci/cx88/cx88.h #define call_all(core, o, f, args...) call_hw(core, 0, o, f, ##args)
core              432 drivers/media/pci/cx88/cx88.h #define wm8775_s_ctrl(core, id, val) \
core              435 drivers/media/pci/cx88/cx88.h 			v4l2_ctrl_find(core->sd_wm8775->ctrl_handler, id);\
core              436 drivers/media/pci/cx88/cx88.h 		if (ctrl_ && !core->i2c_rc) {				\
core              437 drivers/media/pci/cx88/cx88.h 			if (core->gate_ctrl)				\
core              438 drivers/media/pci/cx88/cx88.h 				core->gate_ctrl(core, 1);		\
core              440 drivers/media/pci/cx88/cx88.h 			if (core->gate_ctrl)				\
core              441 drivers/media/pci/cx88/cx88.h 				core->gate_ctrl(core, 0);		\
core              445 drivers/media/pci/cx88/cx88.h #define wm8775_g_ctrl(core, id) \
core              448 drivers/media/pci/cx88/cx88.h 			v4l2_ctrl_find(core->sd_wm8775->ctrl_handler, id);\
core              450 drivers/media/pci/cx88/cx88.h 		if (ctrl_ && !core->i2c_rc) {				\
core              451 drivers/media/pci/cx88/cx88.h 			if (core->gate_ctrl)				\
core              452 drivers/media/pci/cx88/cx88.h 				core->gate_ctrl(core, 1);		\
core              454 drivers/media/pci/cx88/cx88.h 			if (core->gate_ctrl)				\
core              455 drivers/media/pci/cx88/cx88.h 				core->gate_ctrl(core, 0);		\
core              468 drivers/media/pci/cx88/cx88.h 	struct cx88_core           *core;
core              507 drivers/media/pci/cx88/cx88.h 	struct cx88_core *core;
core              536 drivers/media/pci/cx88/cx88.h 	struct cx88_core           *core;
core              583 drivers/media/pci/cx88/cx88.h #define cx_read(reg)             readl(core->lmmio + ((reg) >> 2))
core              584 drivers/media/pci/cx88/cx88.h #define cx_write(reg, value)     writel((value), core->lmmio + ((reg) >> 2))
core              585 drivers/media/pci/cx88/cx88.h #define cx_writeb(reg, value)    writeb((value), core->bmmio + (reg))
core              588 drivers/media/pci/cx88/cx88.h 	writel((readl(core->lmmio + ((reg) >> 2)) & ~(mask)) |\
core              589 drivers/media/pci/cx88/cx88.h 	((value) & (mask)), core->lmmio + ((reg) >> 2))
core              596 drivers/media/pci/cx88/cx88.h #define cx_sread(sreg)		    (core->shadow[sreg])
core              598 drivers/media/pci/cx88/cx88.h 	(core->shadow[sreg] = value, \
core              599 drivers/media/pci/cx88/cx88.h 	writel(core->shadow[sreg], core->lmmio + ((reg) >> 2)))
core              601 drivers/media/pci/cx88/cx88.h 	(core->shadow[sreg] = (core->shadow[sreg] & ~(mask)) | \
core              603 drivers/media/pci/cx88/cx88.h 				writel(core->shadow[sreg], \
core              604 drivers/media/pci/cx88/cx88.h 				       core->lmmio + ((reg) >> 2)))
core              614 drivers/media/pci/cx88/cx88.h int cx88_core_irq(struct cx88_core *core, u32 status);
core              615 drivers/media/pci/cx88/cx88.h void cx88_wakeup(struct cx88_core *core,
core              617 drivers/media/pci/cx88/cx88.h void cx88_shutdown(struct cx88_core *core);
core              618 drivers/media/pci/cx88/cx88.h int cx88_reset(struct cx88_core *core);
core              630 drivers/media/pci/cx88/cx88.h void cx88_risc_disasm(struct cx88_core *core,
core              632 drivers/media/pci/cx88/cx88.h int cx88_sram_channel_setup(struct cx88_core *core,
core              635 drivers/media/pci/cx88/cx88.h void cx88_sram_channel_dump(struct cx88_core *core,
core              638 drivers/media/pci/cx88/cx88.h int cx88_set_scale(struct cx88_core *core, unsigned int width,
core              640 drivers/media/pci/cx88/cx88.h int cx88_set_tvnorm(struct cx88_core *core, v4l2_std_id norm);
core              642 drivers/media/pci/cx88/cx88.h void cx88_vdev_init(struct cx88_core *core,
core              648 drivers/media/pci/cx88/cx88.h void cx88_core_put(struct cx88_core *core,
core              651 drivers/media/pci/cx88/cx88.h int cx88_start_audio_dma(struct cx88_core *core);
core              652 drivers/media/pci/cx88/cx88.h int cx88_stop_audio_dma(struct cx88_core *core);
core              669 drivers/media/pci/cx88/cx88.h int cx88_i2c_init(struct cx88_core *core, struct pci_dev *pci);
core              675 drivers/media/pci/cx88/cx88.h int cx88_get_resources(const struct cx88_core *core,
core              678 drivers/media/pci/cx88/cx88.h void cx88_setup_xc3028(struct cx88_core *core, struct xc2028_ctrl *ctl);
core              683 drivers/media/pci/cx88/cx88.h void cx88_set_tvaudio(struct cx88_core *core);
core              684 drivers/media/pci/cx88/cx88.h void cx88_newstation(struct cx88_core *core);
core              685 drivers/media/pci/cx88/cx88.h void cx88_get_stereo(struct cx88_core *core, struct v4l2_tuner *t);
core              686 drivers/media/pci/cx88/cx88.h void cx88_set_stereo(struct cx88_core *core, u32 mode, int manual);
core              699 drivers/media/pci/cx88/cx88.h s32 cx88_dsp_detect_stereo_sap(struct cx88_core *core);
core              704 drivers/media/pci/cx88/cx88.h int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci);
core              705 drivers/media/pci/cx88/cx88.h int cx88_ir_fini(struct cx88_core *core);
core              706 drivers/media/pci/cx88/cx88.h void cx88_ir_irq(struct cx88_core *core);
core              707 drivers/media/pci/cx88/cx88.h int cx88_ir_start(struct cx88_core *core);
core              708 drivers/media/pci/cx88/cx88.h void cx88_ir_stop(struct cx88_core *core);
core              709 drivers/media/pci/cx88/cx88.h void cx88_i2c_init_ir(struct cx88_core *core);
core              724 drivers/media/pci/cx88/cx88.h int cx88_enum_input(struct cx88_core *core, struct v4l2_input *i);
core              725 drivers/media/pci/cx88/cx88.h int cx88_set_freq(struct cx88_core  *core, const struct v4l2_frequency *f);
core              726 drivers/media/pci/cx88/cx88.h int cx88_video_mux(struct cx88_core *core, unsigned int input);
core              727 drivers/media/pci/cx88/cx88.h int cx88_querycap(struct file *file, struct cx88_core *core,
core             1383 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	.core = &cio2_subdev_core_ops,
core             1335 drivers/media/pci/ivtv/ivtv-driver.c 		v4l2_subdev_call(itv->sd_video, core, load_fw);
core              322 drivers/media/pci/ivtv/ivtv-gpio.c 	.core = &subdev_core_ops,
core             1513 drivers/media/pci/ivtv/ivtv-ioctl.c 	ivtv_call_all(itv, core, log_status);
core             1869 drivers/media/pci/ivtv/ivtv-ioctl.c 			v4l2_subdev_call(itv->sd_video, core, reset, 0);
core             1199 drivers/media/pci/saa7134/saa7134-core.c 		saa_call_all(dev, core, s_power, 0);
core               51 drivers/media/pci/saa7134/saa7134-empress.c 	saa_call_all(dev, core, init, leading_null_bytes);
core             1182 drivers/media/pci/saa7134/saa7134-video.c 		saa_call_all(dev, core, ioctl, SAA6588_CMD_CLOSE, &cmd);
core             1201 drivers/media/pci/saa7134/saa7134-video.c 	saa_call_all(dev, core, ioctl, SAA6588_CMD_READ, &cmd);
core             1217 drivers/media/pci/saa7134/saa7134-video.c 	saa_call_all(dev, core, ioctl, SAA6588_CMD_POLL, &cmd);
core              370 drivers/media/pci/saa7146/mxb.c 	saa7111a_call(mxb, core, s_gpio, 1);
core              762 drivers/media/pci/saa7146/mxb.c 		saa7111a_call(mxb, core, s_gpio, 0);
core              774 drivers/media/pci/saa7146/mxb.c 		saa7111a_call(mxb, core, s_gpio, 1);
core             1094 drivers/media/pci/sta2x11/sta2x11_vip.c 	v4l2_subdev_call(vip->decoder, core, init, 0);
core              213 drivers/media/pci/tw68/tw68-risc.c void tw68_risc_program_dump(struct tw68_core *core, struct tw68_buf *buf)
core              218 drivers/media/pci/tw68/tw68-risc.c 		  core->name, buf, buf->cpu, buf->jmp);
core             1531 drivers/media/platform/atmel/atmel-isc-base.c 	ret = v4l2_subdev_call(sd, core, s_power, 1);
core             1539 drivers/media/platform/atmel/atmel-isc-base.c 		v4l2_subdev_call(sd, core, s_power, 0);
core             1562 drivers/media/platform/atmel/atmel-isc-base.c 		v4l2_subdev_call(sd, core, s_power, 0);
core              853 drivers/media/platform/atmel/atmel-isi.c 	ret = v4l2_subdev_call(sd, core, s_power, 1);
core              859 drivers/media/platform/atmel/atmel-isi.c 		v4l2_subdev_call(sd, core, s_power, 0);
core              882 drivers/media/platform/atmel/atmel-isi.c 		v4l2_subdev_call(sd, core, s_power, 0);
core               50 drivers/media/platform/davinci/vpbe_display.c 			       core,
core              555 drivers/media/platform/davinci/vpbe_venc.c 	.core = &venc_core_ops,
core             1292 drivers/media/platform/davinci/vpif_capture.c 	v4l2_device_call_all(&vpif_obj.v4l2_dev, 0, core, log_status);
core             1041 drivers/media/platform/davinci/vpif_display.c 	v4l2_device_call_all(&vpif_obj.v4l2_dev, 0, core, log_status);
core              431 drivers/media/platform/exynos4-is/fimc-isp.c 	.core = &fimc_is_core_ops,
core             1352 drivers/media/platform/exynos4-is/fimc-lite.c 	.core = &fimc_lite_core_ops,
core              144 drivers/media/platform/exynos4-is/media-dev.c 	ret = v4l2_subdev_call(sd, core, s_power, on);
core              666 drivers/media/platform/exynos4-is/mipi-csis.c 	.core = &s5pcsis_core_ops,
core              993 drivers/media/platform/marvell-ccic/mcam-core.c 	return sensor_call(cam, core, reset, 0);
core             1036 drivers/media/platform/marvell-ccic/mcam-core.c 	ret = sensor_call(cam, core, init, 0);
core             1633 drivers/media/platform/marvell-ccic/mcam-core.c 		ret = sensor_call(cam, core, s_power, 1);
core             1658 drivers/media/platform/marvell-ccic/mcam-core.c 		sensor_call(cam, core, s_power, 0);
core             1957 drivers/media/platform/marvell-ccic/mcam-core.c 		sensor_call(cam, core, s_power, 0);
core             1979 drivers/media/platform/marvell-ccic/mcam-core.c 		sensor_call(cam, core, s_power, 0);
core             1994 drivers/media/platform/marvell-ccic/mcam-core.c 		ret = sensor_call(cam, core, s_power, 1);
core             2001 drivers/media/platform/marvell-ccic/mcam-core.c 		sensor_call(cam, core, s_power, 0);
core              185 drivers/media/platform/meson/ao-cec-g12a.c 	struct clk			*core;
core              367 drivers/media/platform/meson/ao-cec-g12a.c 	ao_cec->core = clk;
core              709 drivers/media/platform/meson/ao-cec-g12a.c 	ret = clk_prepare_enable(ao_cec->core);
core              739 drivers/media/platform/meson/ao-cec-g12a.c 	clk_disable_unprepare(ao_cec->core);
core              753 drivers/media/platform/meson/ao-cec-g12a.c 	clk_disable_unprepare(ao_cec->core);
core              221 drivers/media/platform/meson/ao-cec.c 	struct clk			*core;
core              646 drivers/media/platform/meson/ao-cec.c 	ao_cec->core = devm_clk_get(&pdev->dev, "core");
core              647 drivers/media/platform/meson/ao-cec.c 	if (IS_ERR(ao_cec->core)) {
core              649 drivers/media/platform/meson/ao-cec.c 		ret = PTR_ERR(ao_cec->core);
core              653 drivers/media/platform/meson/ao-cec.c 	ret = clk_prepare_enable(ao_cec->core);
core              659 drivers/media/platform/meson/ao-cec.c 	ret = clk_set_rate(ao_cec->core, CEC_CLK_RATE);
core              691 drivers/media/platform/meson/ao-cec.c 	clk_disable_unprepare(ao_cec->core);
core              705 drivers/media/platform/meson/ao-cec.c 	clk_disable_unprepare(ao_cec->core);
core             2480 drivers/media/platform/omap3isp/ispccdc.c 	.core = &ccdc_v4l2_core_ops,
core              280 drivers/media/platform/omap3isp/isph3a_aewb.c 	.core = &h3a_aewb_subdev_core_ops,
core              345 drivers/media/platform/omap3isp/isph3a_af.c 	.core = &h3a_af_subdev_core_ops,
core              467 drivers/media/platform/omap3isp/isphist.c 	.core = &hist_subdev_core_ops,
core             2116 drivers/media/platform/omap3isp/isppreview.c 	.core = &preview_v4l2_core_ops,
core              272 drivers/media/platform/omap3isp/ispresizer.c 	rgval |= (luma->core << ISPRSZ_YENH_CORE_SHIFT)
core               71 drivers/media/platform/omap3isp/ispresizer.h 	u8 core;		/* core offset. */
core             2029 drivers/media/platform/pxa_camera.c 	ret = sensor_call(pcdev, core, s_power, on);
core             1294 drivers/media/platform/qcom/camss/camss-csid.c 	.core = &csid_core_ops,
core              695 drivers/media/platform/qcom/camss/camss-csiphy.c 	.core = &csiphy_core_ops,
core             1278 drivers/media/platform/qcom/camss/camss-ispif.c 	.core = &ispif_core_ops,
core             2191 drivers/media/platform/qcom/camss/camss-vfe.c 	.core = &vfe_core_ops,
core               25 drivers/media/platform/qcom/venus/core.c static void venus_event_notify(struct venus_core *core, u32 event)
core               37 drivers/media/platform/qcom/venus/core.c 	mutex_lock(&core->lock);
core               38 drivers/media/platform/qcom/venus/core.c 	core->sys_error = true;
core               39 drivers/media/platform/qcom/venus/core.c 	list_for_each_entry(inst, &core->instances, list)
core               41 drivers/media/platform/qcom/venus/core.c 	mutex_unlock(&core->lock);
core               43 drivers/media/platform/qcom/venus/core.c 	disable_irq_nosync(core->irq);
core               50 drivers/media/platform/qcom/venus/core.c 	schedule_delayed_work(&core->work, msecs_to_jiffies(100));
core               59 drivers/media/platform/qcom/venus/core.c 	struct venus_core *core =
core               63 drivers/media/platform/qcom/venus/core.c 	dev_warn(core->dev, "system error has occurred, starting recovery!\n");
core               65 drivers/media/platform/qcom/venus/core.c 	pm_runtime_get_sync(core->dev);
core               67 drivers/media/platform/qcom/venus/core.c 	hfi_core_deinit(core, true);
core               68 drivers/media/platform/qcom/venus/core.c 	hfi_destroy(core);
core               69 drivers/media/platform/qcom/venus/core.c 	mutex_lock(&core->lock);
core               70 drivers/media/platform/qcom/venus/core.c 	venus_shutdown(core);
core               72 drivers/media/platform/qcom/venus/core.c 	pm_runtime_put_sync(core->dev);
core               74 drivers/media/platform/qcom/venus/core.c 	ret |= hfi_create(core, &venus_core_ops);
core               76 drivers/media/platform/qcom/venus/core.c 	pm_runtime_get_sync(core->dev);
core               78 drivers/media/platform/qcom/venus/core.c 	ret |= venus_boot(core);
core               80 drivers/media/platform/qcom/venus/core.c 	ret |= hfi_core_resume(core, true);
core               82 drivers/media/platform/qcom/venus/core.c 	enable_irq(core->irq);
core               84 drivers/media/platform/qcom/venus/core.c 	mutex_unlock(&core->lock);
core               86 drivers/media/platform/qcom/venus/core.c 	ret |= hfi_core_init(core);
core               88 drivers/media/platform/qcom/venus/core.c 	pm_runtime_put_sync(core->dev);
core               91 drivers/media/platform/qcom/venus/core.c 		disable_irq_nosync(core->irq);
core               92 drivers/media/platform/qcom/venus/core.c 		dev_warn(core->dev, "recovery failed (%d)\n", ret);
core               93 drivers/media/platform/qcom/venus/core.c 		schedule_delayed_work(&core->work, msecs_to_jiffies(10));
core               97 drivers/media/platform/qcom/venus/core.c 	mutex_lock(&core->lock);
core               98 drivers/media/platform/qcom/venus/core.c 	core->sys_error = false;
core               99 drivers/media/platform/qcom/venus/core.c 	mutex_unlock(&core->lock);
core              102 drivers/media/platform/qcom/venus/core.c static int venus_clks_get(struct venus_core *core)
core              104 drivers/media/platform/qcom/venus/core.c 	const struct venus_resources *res = core->res;
core              105 drivers/media/platform/qcom/venus/core.c 	struct device *dev = core->dev;
core              109 drivers/media/platform/qcom/venus/core.c 		core->clks[i] = devm_clk_get(dev, res->clks[i]);
core              110 drivers/media/platform/qcom/venus/core.c 		if (IS_ERR(core->clks[i]))
core              111 drivers/media/platform/qcom/venus/core.c 			return PTR_ERR(core->clks[i]);
core              117 drivers/media/platform/qcom/venus/core.c static int venus_clks_enable(struct venus_core *core)
core              119 drivers/media/platform/qcom/venus/core.c 	const struct venus_resources *res = core->res;
core              124 drivers/media/platform/qcom/venus/core.c 		ret = clk_prepare_enable(core->clks[i]);
core              132 drivers/media/platform/qcom/venus/core.c 		clk_disable_unprepare(core->clks[i]);
core              137 drivers/media/platform/qcom/venus/core.c static void venus_clks_disable(struct venus_core *core)
core              139 drivers/media/platform/qcom/venus/core.c 	const struct venus_resources *res = core->res;
core              143 drivers/media/platform/qcom/venus/core.c 		clk_disable_unprepare(core->clks[i]);
core              173 drivers/media/platform/qcom/venus/core.c static int venus_enumerate_codecs(struct venus_core *core, u32 type)
core              181 drivers/media/platform/qcom/venus/core.c 	if (core->res->hfi_version != HFI_VERSION_1XX)
core              189 drivers/media/platform/qcom/venus/core.c 	inst->core = core;
core              192 drivers/media/platform/qcom/venus/core.c 		codecs = core->dec_codecs;
core              194 drivers/media/platform/qcom/venus/core.c 		codecs = core->enc_codecs;
core              226 drivers/media/platform/qcom/venus/core.c 	struct venus_core *core;
core              230 drivers/media/platform/qcom/venus/core.c 	core = devm_kzalloc(dev, sizeof(*core), GFP_KERNEL);
core              231 drivers/media/platform/qcom/venus/core.c 	if (!core)
core              234 drivers/media/platform/qcom/venus/core.c 	core->dev = dev;
core              235 drivers/media/platform/qcom/venus/core.c 	platform_set_drvdata(pdev, core);
core              238 drivers/media/platform/qcom/venus/core.c 	core->base = devm_ioremap_resource(dev, r);
core              239 drivers/media/platform/qcom/venus/core.c 	if (IS_ERR(core->base))
core              240 drivers/media/platform/qcom/venus/core.c 		return PTR_ERR(core->base);
core              242 drivers/media/platform/qcom/venus/core.c 	core->irq = platform_get_irq(pdev, 0);
core              243 drivers/media/platform/qcom/venus/core.c 	if (core->irq < 0)
core              244 drivers/media/platform/qcom/venus/core.c 		return core->irq;
core              246 drivers/media/platform/qcom/venus/core.c 	core->res = of_device_get_match_data(dev);
core              247 drivers/media/platform/qcom/venus/core.c 	if (!core->res)
core              250 drivers/media/platform/qcom/venus/core.c 	ret = venus_clks_get(core);
core              254 drivers/media/platform/qcom/venus/core.c 	ret = dma_set_mask_and_coherent(dev, core->res->dma_mask);
core              266 drivers/media/platform/qcom/venus/core.c 	INIT_LIST_HEAD(&core->instances);
core              267 drivers/media/platform/qcom/venus/core.c 	mutex_init(&core->lock);
core              268 drivers/media/platform/qcom/venus/core.c 	INIT_DELAYED_WORK(&core->work, venus_sys_error_handler);
core              270 drivers/media/platform/qcom/venus/core.c 	ret = devm_request_threaded_irq(dev, core->irq, hfi_isr, hfi_isr_thread,
core              272 drivers/media/platform/qcom/venus/core.c 					"venus", core);
core              276 drivers/media/platform/qcom/venus/core.c 	ret = hfi_create(core, &venus_core_ops);
core              290 drivers/media/platform/qcom/venus/core.c 	ret = venus_firmware_init(core);
core              294 drivers/media/platform/qcom/venus/core.c 	ret = venus_boot(core);
core              298 drivers/media/platform/qcom/venus/core.c 	ret = hfi_core_resume(core, true);
core              302 drivers/media/platform/qcom/venus/core.c 	ret = hfi_core_init(core);
core              306 drivers/media/platform/qcom/venus/core.c 	ret = venus_enumerate_codecs(core, VIDC_SESSION_TYPE_DEC);
core              310 drivers/media/platform/qcom/venus/core.c 	ret = venus_enumerate_codecs(core, VIDC_SESSION_TYPE_ENC);
core              314 drivers/media/platform/qcom/venus/core.c 	ret = v4l2_device_register(dev, &core->v4l2_dev);
core              325 drivers/media/platform/qcom/venus/core.c 	v4l2_device_unregister(&core->v4l2_dev);
core              327 drivers/media/platform/qcom/venus/core.c 	hfi_core_deinit(core, false);
core              329 drivers/media/platform/qcom/venus/core.c 	venus_shutdown(core);
core              333 drivers/media/platform/qcom/venus/core.c 	hfi_destroy(core);
core              339 drivers/media/platform/qcom/venus/core.c 	struct venus_core *core = platform_get_drvdata(pdev);
core              340 drivers/media/platform/qcom/venus/core.c 	struct device *dev = core->dev;
core              346 drivers/media/platform/qcom/venus/core.c 	ret = hfi_core_deinit(core, true);
core              349 drivers/media/platform/qcom/venus/core.c 	hfi_destroy(core);
core              350 drivers/media/platform/qcom/venus/core.c 	venus_shutdown(core);
core              353 drivers/media/platform/qcom/venus/core.c 	venus_firmware_deinit(core);
core              358 drivers/media/platform/qcom/venus/core.c 	v4l2_device_unregister(&core->v4l2_dev);
core              365 drivers/media/platform/qcom/venus/core.c 	struct venus_core *core = dev_get_drvdata(dev);
core              368 drivers/media/platform/qcom/venus/core.c 	ret = hfi_core_suspend(core);
core              370 drivers/media/platform/qcom/venus/core.c 	venus_clks_disable(core);
core              377 drivers/media/platform/qcom/venus/core.c 	struct venus_core *core = dev_get_drvdata(dev);
core              380 drivers/media/platform/qcom/venus/core.c 	ret = venus_clks_enable(core);
core              384 drivers/media/platform/qcom/venus/core.c 	ret = hfi_core_resume(core, false);
core              391 drivers/media/platform/qcom/venus/core.c 	venus_clks_disable(core);
core              290 drivers/media/platform/qcom/venus/core.h 	struct venus_core *core;
core              345 drivers/media/platform/qcom/venus/core.h #define IS_V1(core)	((core)->res->hfi_version == HFI_VERSION_1XX)
core              346 drivers/media/platform/qcom/venus/core.h #define IS_V3(core)	((core)->res->hfi_version == HFI_VERSION_3XX)
core              347 drivers/media/platform/qcom/venus/core.h #define IS_V4(core)	((core)->res->hfi_version == HFI_VERSION_4XX)
core              357 drivers/media/platform/qcom/venus/core.h static inline void *to_hfi_priv(struct venus_core *core)
core              359 drivers/media/platform/qcom/venus/core.h 	return core->priv;
core              363 drivers/media/platform/qcom/venus/core.h venus_caps_by_codec(struct venus_core *core, u32 codec, u32 domain)
core              367 drivers/media/platform/qcom/venus/core.h 	for (c = 0; c < core->codecs_count; c++) {
core              368 drivers/media/platform/qcom/venus/core.h 		if (core->caps[c].codec == codec &&
core              369 drivers/media/platform/qcom/venus/core.h 		    core->caps[c].domain == domain)
core              370 drivers/media/platform/qcom/venus/core.h 			return &core->caps[c];
core               27 drivers/media/platform/qcom/venus/firmware.c static void venus_reset_cpu(struct venus_core *core)
core               29 drivers/media/platform/qcom/venus/firmware.c 	u32 fw_size = core->fw.mapped_mem_size;
core               30 drivers/media/platform/qcom/venus/firmware.c 	void __iomem *base = core->base;
core               45 drivers/media/platform/qcom/venus/firmware.c int venus_set_hw_state(struct venus_core *core, bool resume)
core               49 drivers/media/platform/qcom/venus/firmware.c 	if (core->use_tz) {
core               57 drivers/media/platform/qcom/venus/firmware.c 		venus_reset_cpu(core);
core               59 drivers/media/platform/qcom/venus/firmware.c 		writel(1, core->base + WRAPPER_A9SS_SW_RESET);
core               64 drivers/media/platform/qcom/venus/firmware.c static int venus_load_fw(struct venus_core *core, const char *fwname,
core               78 drivers/media/platform/qcom/venus/firmware.c 	dev = core->dev;
core              115 drivers/media/platform/qcom/venus/firmware.c 	if (core->use_tz)
core              130 drivers/media/platform/qcom/venus/firmware.c static int venus_boot_no_tz(struct venus_core *core, phys_addr_t mem_phys,
core              137 drivers/media/platform/qcom/venus/firmware.c 	dev = core->fw.dev;
core              141 drivers/media/platform/qcom/venus/firmware.c 	iommu = core->fw.iommu_domain;
core              142 drivers/media/platform/qcom/venus/firmware.c 	core->fw.mapped_mem_size = mem_size;
core              151 drivers/media/platform/qcom/venus/firmware.c 	venus_reset_cpu(core);
core              156 drivers/media/platform/qcom/venus/firmware.c static int venus_shutdown_no_tz(struct venus_core *core)
core              158 drivers/media/platform/qcom/venus/firmware.c 	const size_t mapped = core->fw.mapped_mem_size;
core              162 drivers/media/platform/qcom/venus/firmware.c 	struct device *dev = core->fw.dev;
core              163 drivers/media/platform/qcom/venus/firmware.c 	void __iomem *base = core->base;
core              173 drivers/media/platform/qcom/venus/firmware.c 	iommu = core->fw.iommu_domain;
core              182 drivers/media/platform/qcom/venus/firmware.c int venus_boot(struct venus_core *core)
core              184 drivers/media/platform/qcom/venus/firmware.c 	struct device *dev = core->dev;
core              190 drivers/media/platform/qcom/venus/firmware.c 	    (core->use_tz && !qcom_scm_is_available()))
core              193 drivers/media/platform/qcom/venus/firmware.c 	ret = venus_load_fw(core, core->res->fwname, &mem_phys, &mem_size);
core              199 drivers/media/platform/qcom/venus/firmware.c 	if (core->use_tz)
core              202 drivers/media/platform/qcom/venus/firmware.c 		ret = venus_boot_no_tz(core, mem_phys, mem_size);
core              207 drivers/media/platform/qcom/venus/firmware.c int venus_shutdown(struct venus_core *core)
core              211 drivers/media/platform/qcom/venus/firmware.c 	if (core->use_tz)
core              214 drivers/media/platform/qcom/venus/firmware.c 		ret = venus_shutdown_no_tz(core);
core              219 drivers/media/platform/qcom/venus/firmware.c int venus_firmware_init(struct venus_core *core)
core              227 drivers/media/platform/qcom/venus/firmware.c 	np = of_get_child_by_name(core->dev->of_node, "video-firmware");
core              229 drivers/media/platform/qcom/venus/firmware.c 		core->use_tz = true;
core              235 drivers/media/platform/qcom/venus/firmware.c 	info.parent = core->dev;
core              249 drivers/media/platform/qcom/venus/firmware.c 		dev_err(core->dev, "dma configure fail\n");
core              253 drivers/media/platform/qcom/venus/firmware.c 	core->fw.dev = &pdev->dev;
core              257 drivers/media/platform/qcom/venus/firmware.c 		dev_err(core->fw.dev, "Failed to allocate iommu domain\n");
core              262 drivers/media/platform/qcom/venus/firmware.c 	ret = iommu_attach_device(iommu_dom, core->fw.dev);
core              264 drivers/media/platform/qcom/venus/firmware.c 		dev_err(core->fw.dev, "could not attach device\n");
core              268 drivers/media/platform/qcom/venus/firmware.c 	core->fw.iommu_domain = iommu_dom;
core              282 drivers/media/platform/qcom/venus/firmware.c void venus_firmware_deinit(struct venus_core *core)
core              286 drivers/media/platform/qcom/venus/firmware.c 	if (!core->fw.dev)
core              289 drivers/media/platform/qcom/venus/firmware.c 	iommu = core->fw.iommu_domain;
core              291 drivers/media/platform/qcom/venus/firmware.c 	iommu_detach_device(iommu, core->fw.dev);
core              294 drivers/media/platform/qcom/venus/firmware.c 	platform_device_unregister(to_platform_device(core->fw.dev));
core               10 drivers/media/platform/qcom/venus/firmware.h int venus_firmware_init(struct venus_core *core);
core               11 drivers/media/platform/qcom/venus/firmware.h void venus_firmware_deinit(struct venus_core *core);
core               12 drivers/media/platform/qcom/venus/firmware.h int venus_boot(struct venus_core *core);
core               13 drivers/media/platform/qcom/venus/firmware.h int venus_shutdown(struct venus_core *core);
core               14 drivers/media/platform/qcom/venus/firmware.h int venus_set_hw_state(struct venus_core *core, bool suspend);
core               16 drivers/media/platform/qcom/venus/firmware.h static inline int venus_set_hw_state_suspend(struct venus_core *core)
core               18 drivers/media/platform/qcom/venus/firmware.h 	return venus_set_hw_state(core, false);
core               21 drivers/media/platform/qcom/venus/firmware.h static inline int venus_set_hw_state_resume(struct venus_core *core)
core               23 drivers/media/platform/qcom/venus/firmware.h 	return venus_set_hw_state(core, true);
core               32 drivers/media/platform/qcom/venus/helpers.c 	struct venus_core *core = inst->core;
core               72 drivers/media/platform/qcom/venus/helpers.c 	if (session_type == VIDC_SESSION_TYPE_ENC && core->enc_codecs & codec)
core               75 drivers/media/platform/qcom/venus/helpers.c 	if (session_type == VIDC_SESSION_TYPE_DEC && core->dec_codecs & codec)
core              111 drivers/media/platform/qcom/venus/helpers.c 		dma_free_attrs(inst->core->dev, buf->size, buf->va, buf->da,
core              124 drivers/media/platform/qcom/venus/helpers.c 	struct venus_core *core = inst->core;
core              125 drivers/media/platform/qcom/venus/helpers.c 	struct device *dev = core->dev;
core              126 drivers/media/platform/qcom/venus/helpers.c 	enum hfi_version ver = core->res->hfi_version;
core              185 drivers/media/platform/qcom/venus/helpers.c 	struct venus_core *core = inst->core;
core              186 drivers/media/platform/qcom/venus/helpers.c 	struct device *dev = core->dev;
core              258 drivers/media/platform/qcom/venus/helpers.c 		dma_free_attrs(inst->core->dev, buf->size, buf->va, buf->da,
core              288 drivers/media/platform/qcom/venus/helpers.c 	if (IS_V4(inst->core)) {
core              318 drivers/media/platform/qcom/venus/helpers.c 	enum hfi_version ver = inst->core->res->hfi_version;
core              337 drivers/media/platform/qcom/venus/helpers.c 		dma_free_attrs(inst->core->dev, buf->size, buf->va, buf->da,
core              374 drivers/media/platform/qcom/venus/helpers.c static u32 load_per_type(struct venus_core *core, u32 session_type)
core              379 drivers/media/platform/qcom/venus/helpers.c 	mutex_lock(&core->lock);
core              380 drivers/media/platform/qcom/venus/helpers.c 	list_for_each_entry(inst, &core->instances, list) {
core              386 drivers/media/platform/qcom/venus/helpers.c 	mutex_unlock(&core->lock);
core              391 drivers/media/platform/qcom/venus/helpers.c int venus_helper_load_scale_clocks(struct venus_core *core)
core              393 drivers/media/platform/qcom/venus/helpers.c 	const struct freq_tbl *table = core->res->freq_tbl;
core              394 drivers/media/platform/qcom/venus/helpers.c 	unsigned int num_rows = core->res->freq_tbl_size;
core              396 drivers/media/platform/qcom/venus/helpers.c 	struct clk *clk = core->clks[0];
core              397 drivers/media/platform/qcom/venus/helpers.c 	struct device *dev = core->dev;
core              402 drivers/media/platform/qcom/venus/helpers.c 	mbs_per_sec = load_per_type(core, VIDC_SESSION_TYPE_ENC) +
core              403 drivers/media/platform/qcom/venus/helpers.c 		      load_per_type(core, VIDC_SESSION_TYPE_DEC);
core              405 drivers/media/platform/qcom/venus/helpers.c 	if (mbs_per_sec > core->res->max_load)
core              407 drivers/media/platform/qcom/venus/helpers.c 			 mbs_per_sec, core->res->max_load);
core              426 drivers/media/platform/qcom/venus/helpers.c 	ret = clk_set_rate(core->core0_clk, freq);
core              430 drivers/media/platform/qcom/venus/helpers.c 	ret = clk_set_rate(core->core1_clk, freq);
core              482 drivers/media/platform/qcom/venus/helpers.c 		dev_dbg(inst->core->dev, "%s: no free slot\n", __func__);
core              562 drivers/media/platform/qcom/venus/helpers.c 	struct venus_core *core = inst->core;
core              569 drivers/media/platform/qcom/venus/helpers.c 	if (IS_V4(core))
core              572 drivers/media/platform/qcom/venus/helpers.c 	caps = venus_caps_by_codec(core, inst->hfi_codec, inst->session_type);
core              600 drivers/media/platform/qcom/venus/helpers.c 	struct venus_core *core = inst->core;
core              601 drivers/media/platform/qcom/venus/helpers.c 	struct device *dev = core->dev;
core              798 drivers/media/platform/qcom/venus/helpers.c 	if (!IS_V4(inst->core))
core              812 drivers/media/platform/qcom/venus/helpers.c 	if (!IS_V4(inst->core))
core             1061 drivers/media/platform/qcom/venus/helpers.c 			dev_err(inst->core->dev, "%s field isn't supported\n",
core             1123 drivers/media/platform/qcom/venus/helpers.c 	struct venus_core *core = inst->core;
core             1135 drivers/media/platform/qcom/venus/helpers.c 		if (inst->session_error || core->sys_error)
core             1143 drivers/media/platform/qcom/venus/helpers.c 		venus_helper_load_scale_clocks(core);
core             1196 drivers/media/platform/qcom/venus/helpers.c 	struct venus_core *core = inst->core;
core             1207 drivers/media/platform/qcom/venus/helpers.c 	venus_helper_load_scale_clocks(core);
core             1288 drivers/media/platform/qcom/venus/helpers.c 	struct venus_core *core = inst->core;
core             1298 drivers/media/platform/qcom/venus/helpers.c 	caps = venus_caps_by_codec(core, inst->hfi_codec, inst->session_type);
core             1333 drivers/media/platform/qcom/venus/helpers.c int venus_helper_power_enable(struct venus_core *core, u32 session_type,
core             1340 drivers/media/platform/qcom/venus/helpers.c 	if (!IS_V3(core) && !IS_V4(core))
core             1343 drivers/media/platform/qcom/venus/helpers.c 	if (IS_V3(core)) {
core             1345 drivers/media/platform/qcom/venus/helpers.c 			ctrl = core->base + WRAPPER_VDEC_VCODEC_POWER_CONTROL;
core             1347 drivers/media/platform/qcom/venus/helpers.c 			ctrl = core->base + WRAPPER_VENC_VCODEC_POWER_CONTROL;
core             1357 drivers/media/platform/qcom/venus/helpers.c 		ctrl = core->base + WRAPPER_VCODEC0_MMCC_POWER_CONTROL;
core             1358 drivers/media/platform/qcom/venus/helpers.c 		stat = core->base + WRAPPER_VCODEC0_MMCC_POWER_STATUS;
core             1360 drivers/media/platform/qcom/venus/helpers.c 		ctrl = core->base + WRAPPER_VCODEC1_MMCC_POWER_CONTROL;
core             1361 drivers/media/platform/qcom/venus/helpers.c 		stat = core->base + WRAPPER_VCODEC1_MMCC_POWER_STATUS;
core               55 drivers/media/platform/qcom/venus/helpers.h int venus_helper_power_enable(struct venus_core *core, u32 session_type,
core               62 drivers/media/platform/qcom/venus/helpers.h int venus_helper_load_scale_clocks(struct venus_core *core);
core               50 drivers/media/platform/qcom/venus/hfi.c int hfi_core_init(struct venus_core *core)
core               54 drivers/media/platform/qcom/venus/hfi.c 	mutex_lock(&core->lock);
core               56 drivers/media/platform/qcom/venus/hfi.c 	if (core->state >= CORE_INIT)
core               59 drivers/media/platform/qcom/venus/hfi.c 	reinit_completion(&core->done);
core               61 drivers/media/platform/qcom/venus/hfi.c 	ret = core->ops->core_init(core);
core               65 drivers/media/platform/qcom/venus/hfi.c 	ret = wait_for_completion_timeout(&core->done, TIMEOUT);
core               73 drivers/media/platform/qcom/venus/hfi.c 	if (core->error != HFI_ERR_NONE) {
core               78 drivers/media/platform/qcom/venus/hfi.c 	core->state = CORE_INIT;
core               80 drivers/media/platform/qcom/venus/hfi.c 	mutex_unlock(&core->lock);
core               84 drivers/media/platform/qcom/venus/hfi.c int hfi_core_deinit(struct venus_core *core, bool blocking)
core               88 drivers/media/platform/qcom/venus/hfi.c 	mutex_lock(&core->lock);
core               90 drivers/media/platform/qcom/venus/hfi.c 	if (core->state == CORE_UNINIT)
core               93 drivers/media/platform/qcom/venus/hfi.c 	empty = list_empty(&core->instances);
core              101 drivers/media/platform/qcom/venus/hfi.c 		mutex_unlock(&core->lock);
core              102 drivers/media/platform/qcom/venus/hfi.c 		wait_var_event(&core->insts_count,
core              103 drivers/media/platform/qcom/venus/hfi.c 			       !atomic_read(&core->insts_count));
core              104 drivers/media/platform/qcom/venus/hfi.c 		mutex_lock(&core->lock);
core              107 drivers/media/platform/qcom/venus/hfi.c 	ret = core->ops->core_deinit(core);
core              110 drivers/media/platform/qcom/venus/hfi.c 		core->state = CORE_UNINIT;
core              113 drivers/media/platform/qcom/venus/hfi.c 	mutex_unlock(&core->lock);
core              117 drivers/media/platform/qcom/venus/hfi.c int hfi_core_suspend(struct venus_core *core)
core              119 drivers/media/platform/qcom/venus/hfi.c 	if (core->state != CORE_INIT)
core              122 drivers/media/platform/qcom/venus/hfi.c 	return core->ops->suspend(core);
core              125 drivers/media/platform/qcom/venus/hfi.c int hfi_core_resume(struct venus_core *core, bool force)
core              127 drivers/media/platform/qcom/venus/hfi.c 	if (!force && core->state != CORE_INIT)
core              130 drivers/media/platform/qcom/venus/hfi.c 	return core->ops->resume(core);
core              133 drivers/media/platform/qcom/venus/hfi.c int hfi_core_trigger_ssr(struct venus_core *core, u32 type)
core              135 drivers/media/platform/qcom/venus/hfi.c 	return core->ops->core_trigger_ssr(core, type);
core              138 drivers/media/platform/qcom/venus/hfi.c int hfi_core_ping(struct venus_core *core)
core              142 drivers/media/platform/qcom/venus/hfi.c 	mutex_lock(&core->lock);
core              144 drivers/media/platform/qcom/venus/hfi.c 	ret = core->ops->core_ping(core, 0xbeef);
core              148 drivers/media/platform/qcom/venus/hfi.c 	ret = wait_for_completion_timeout(&core->done, TIMEOUT);
core              154 drivers/media/platform/qcom/venus/hfi.c 	if (core->error != HFI_ERR_NONE)
core              157 drivers/media/platform/qcom/venus/hfi.c 	mutex_unlock(&core->lock);
core              177 drivers/media/platform/qcom/venus/hfi.c 	struct venus_core *core = inst->core;
core              186 drivers/media/platform/qcom/venus/hfi.c 	mutex_lock(&core->lock);
core              187 drivers/media/platform/qcom/venus/hfi.c 	list_add_tail(&inst->list, &core->instances);
core              188 drivers/media/platform/qcom/venus/hfi.c 	atomic_inc(&core->insts_count);
core              189 drivers/media/platform/qcom/venus/hfi.c 	mutex_unlock(&core->lock);
core              197 drivers/media/platform/qcom/venus/hfi.c 	struct venus_core *core = inst->core;
core              198 drivers/media/platform/qcom/venus/hfi.c 	const struct hfi_ops *ops = core->ops;
core              223 drivers/media/platform/qcom/venus/hfi.c 	struct venus_core *core = inst->core;
core              225 drivers/media/platform/qcom/venus/hfi.c 	mutex_lock(&core->lock);
core              227 drivers/media/platform/qcom/venus/hfi.c 	if (atomic_dec_and_test(&core->insts_count))
core              228 drivers/media/platform/qcom/venus/hfi.c 		wake_up_var(&core->insts_count);
core              229 drivers/media/platform/qcom/venus/hfi.c 	mutex_unlock(&core->lock);
core              235 drivers/media/platform/qcom/venus/hfi.c 	const struct hfi_ops *ops = inst->core->ops;
core              262 drivers/media/platform/qcom/venus/hfi.c 	const struct hfi_ops *ops = inst->core->ops;
core              286 drivers/media/platform/qcom/venus/hfi.c 	const struct hfi_ops *ops = inst->core->ops;
core              310 drivers/media/platform/qcom/venus/hfi.c 	struct venus_core *core = inst->core;
core              312 drivers/media/platform/qcom/venus/hfi.c 	if (core->res->hfi_version == HFI_VERSION_1XX)
core              315 drivers/media/platform/qcom/venus/hfi.c 	return core->ops->session_continue(inst);
core              321 drivers/media/platform/qcom/venus/hfi.c 	const struct hfi_ops *ops = inst->core->ops;
core              340 drivers/media/platform/qcom/venus/hfi.c 	const struct hfi_ops *ops = inst->core->ops;
core              363 drivers/media/platform/qcom/venus/hfi.c 	const struct hfi_ops *ops = inst->core->ops;
core              387 drivers/media/platform/qcom/venus/hfi.c 	const struct hfi_ops *ops = inst->core->ops;
core              406 drivers/media/platform/qcom/venus/hfi.c 	const struct hfi_ops *ops = inst->core->ops;
core              414 drivers/media/platform/qcom/venus/hfi.c 	const struct hfi_ops *ops = inst->core->ops;
core              436 drivers/media/platform/qcom/venus/hfi.c 	const struct hfi_ops *ops = inst->core->ops;
core              460 drivers/media/platform/qcom/venus/hfi.c 	const struct hfi_ops *ops = inst->core->ops;
core              471 drivers/media/platform/qcom/venus/hfi.c 	const struct hfi_ops *ops = inst->core->ops;
core              485 drivers/media/platform/qcom/venus/hfi.c 	struct venus_core *core = dev_id;
core              487 drivers/media/platform/qcom/venus/hfi.c 	return core->ops->isr_thread(core);
core              492 drivers/media/platform/qcom/venus/hfi.c 	struct venus_core *core = dev;
core              494 drivers/media/platform/qcom/venus/hfi.c 	return core->ops->isr(core);
core              497 drivers/media/platform/qcom/venus/hfi.c int hfi_create(struct venus_core *core, const struct hfi_core_ops *ops)
core              504 drivers/media/platform/qcom/venus/hfi.c 	atomic_set(&core->insts_count, 0);
core              505 drivers/media/platform/qcom/venus/hfi.c 	core->core_ops = ops;
core              506 drivers/media/platform/qcom/venus/hfi.c 	core->state = CORE_UNINIT;
core              507 drivers/media/platform/qcom/venus/hfi.c 	init_completion(&core->done);
core              508 drivers/media/platform/qcom/venus/hfi.c 	pkt_set_version(core->res->hfi_version);
core              509 drivers/media/platform/qcom/venus/hfi.c 	ret = venus_hfi_create(core);
core              514 drivers/media/platform/qcom/venus/hfi.c void hfi_destroy(struct venus_core *core)
core              516 drivers/media/platform/qcom/venus/hfi.c 	venus_hfi_destroy(core);
core               96 drivers/media/platform/qcom/venus/hfi.h 	void (*event_notify)(struct venus_core *core, u32 event);
core              108 drivers/media/platform/qcom/venus/hfi.h 	int (*core_init)(struct venus_core *core);
core              109 drivers/media/platform/qcom/venus/hfi.h 	int (*core_deinit)(struct venus_core *core);
core              110 drivers/media/platform/qcom/venus/hfi.h 	int (*core_ping)(struct venus_core *core, u32 cookie);
core              111 drivers/media/platform/qcom/venus/hfi.h 	int (*core_trigger_ssr)(struct venus_core *core, u32 trigger_type);
core              137 drivers/media/platform/qcom/venus/hfi.h 	int (*resume)(struct venus_core *core);
core              138 drivers/media/platform/qcom/venus/hfi.h 	int (*suspend)(struct venus_core *core);
core              141 drivers/media/platform/qcom/venus/hfi.h 	irqreturn_t (*isr)(struct venus_core *core);
core              142 drivers/media/platform/qcom/venus/hfi.h 	irqreturn_t (*isr_thread)(struct venus_core *core);
core              145 drivers/media/platform/qcom/venus/hfi.h int hfi_create(struct venus_core *core, const struct hfi_core_ops *ops);
core              146 drivers/media/platform/qcom/venus/hfi.h void hfi_destroy(struct venus_core *core);
core              148 drivers/media/platform/qcom/venus/hfi.h int hfi_core_init(struct venus_core *core);
core              149 drivers/media/platform/qcom/venus/hfi.h int hfi_core_deinit(struct venus_core *core, bool blocking);
core              150 drivers/media/platform/qcom/venus/hfi.h int hfi_core_suspend(struct venus_core *core);
core              151 drivers/media/platform/qcom/venus/hfi.h int hfi_core_resume(struct venus_core *core, bool force);
core              152 drivers/media/platform/qcom/venus/hfi.h int hfi_core_trigger_ssr(struct venus_core *core, u32 type);
core              153 drivers/media/platform/qcom/venus/hfi.h int hfi_core_ping(struct venus_core *core);
core               17 drivers/media/platform/qcom/venus/hfi_msgs.c static void event_seq_changed(struct venus_core *core, struct venus_inst *inst,
core               20 drivers/media/platform/qcom/venus/hfi_msgs.c 	enum hfi_version ver = core->res->hfi_version;
core              118 drivers/media/platform/qcom/venus/hfi_msgs.c static void event_release_buffer_ref(struct venus_core *core,
core              137 drivers/media/platform/qcom/venus/hfi_msgs.c static void event_sys_error(struct venus_core *core, u32 event,
core              141 drivers/media/platform/qcom/venus/hfi_msgs.c 		dev_dbg(core->dev,
core              146 drivers/media/platform/qcom/venus/hfi_msgs.c 	core->core_ops->event_notify(core, event);
core              150 drivers/media/platform/qcom/venus/hfi_msgs.c event_session_error(struct venus_core *core, struct venus_inst *inst,
core              153 drivers/media/platform/qcom/venus/hfi_msgs.c 	struct device *dev = core->dev;
core              180 drivers/media/platform/qcom/venus/hfi_msgs.c static void hfi_event_notify(struct venus_core *core, struct venus_inst *inst,
core              190 drivers/media/platform/qcom/venus/hfi_msgs.c 		event_sys_error(core, EVT_SYS_ERROR, pkt);
core              193 drivers/media/platform/qcom/venus/hfi_msgs.c 		event_session_error(core, inst, pkt);
core              196 drivers/media/platform/qcom/venus/hfi_msgs.c 		event_seq_changed(core, inst, pkt);
core              199 drivers/media/platform/qcom/venus/hfi_msgs.c 		event_release_buffer_ref(core, inst, pkt);
core              208 drivers/media/platform/qcom/venus/hfi_msgs.c static void hfi_sys_init_done(struct venus_core *core, struct venus_inst *inst,
core              231 drivers/media/platform/qcom/venus/hfi_msgs.c 	error = hfi_parser(core, inst, pkt->data, rem_bytes);
core              234 drivers/media/platform/qcom/venus/hfi_msgs.c 	core->error = error;
core              235 drivers/media/platform/qcom/venus/hfi_msgs.c 	complete(&core->done);
core              253 drivers/media/platform/qcom/venus/hfi_msgs.c static void hfi_sys_property_info(struct venus_core *core,
core              257 drivers/media/platform/qcom/venus/hfi_msgs.c 	struct device *dev = core->dev;
core              274 drivers/media/platform/qcom/venus/hfi_msgs.c static void hfi_sys_rel_resource_done(struct venus_core *core,
core              280 drivers/media/platform/qcom/venus/hfi_msgs.c 	core->error = pkt->error_type;
core              281 drivers/media/platform/qcom/venus/hfi_msgs.c 	complete(&core->done);
core              284 drivers/media/platform/qcom/venus/hfi_msgs.c static void hfi_sys_ping_done(struct venus_core *core, struct venus_inst *inst,
core              289 drivers/media/platform/qcom/venus/hfi_msgs.c 	core->error = HFI_ERR_NONE;
core              292 drivers/media/platform/qcom/venus/hfi_msgs.c 		core->error = HFI_ERR_SYS_FATAL;
core              294 drivers/media/platform/qcom/venus/hfi_msgs.c 	complete(&core->done);
core              297 drivers/media/platform/qcom/venus/hfi_msgs.c static void hfi_sys_idle_done(struct venus_core *core, struct venus_inst *inst,
core              300 drivers/media/platform/qcom/venus/hfi_msgs.c 	dev_dbg(core->dev, "sys idle\n");
core              303 drivers/media/platform/qcom/venus/hfi_msgs.c static void hfi_sys_pc_prepare_done(struct venus_core *core,
core              308 drivers/media/platform/qcom/venus/hfi_msgs.c 	dev_dbg(core->dev, "pc prepare done (error %x)\n", pkt->error_type);
core              363 drivers/media/platform/qcom/venus/hfi_msgs.c static void hfi_session_prop_info(struct venus_core *core,
core              367 drivers/media/platform/qcom/venus/hfi_msgs.c 	struct device *dev = core->dev;
core              400 drivers/media/platform/qcom/venus/hfi_msgs.c static void hfi_session_init_done(struct venus_core *core,
core              411 drivers/media/platform/qcom/venus/hfi_msgs.c 	if (!IS_V1(core))
core              420 drivers/media/platform/qcom/venus/hfi_msgs.c 	error = hfi_parser(core, inst, pkt->data, rem_bytes);
core              426 drivers/media/platform/qcom/venus/hfi_msgs.c static void hfi_session_load_res_done(struct venus_core *core,
core              435 drivers/media/platform/qcom/venus/hfi_msgs.c static void hfi_session_flush_done(struct venus_core *core,
core              444 drivers/media/platform/qcom/venus/hfi_msgs.c static void hfi_session_etb_done(struct venus_core *core,
core              454 drivers/media/platform/qcom/venus/hfi_msgs.c static void hfi_session_ftb_done(struct venus_core *core,
core              535 drivers/media/platform/qcom/venus/hfi_msgs.c static void hfi_session_start_done(struct venus_core *core,
core              544 drivers/media/platform/qcom/venus/hfi_msgs.c static void hfi_session_stop_done(struct venus_core *core,
core              553 drivers/media/platform/qcom/venus/hfi_msgs.c static void hfi_session_rel_res_done(struct venus_core *core,
core              562 drivers/media/platform/qcom/venus/hfi_msgs.c static void hfi_session_rel_buf_done(struct venus_core *core,
core              571 drivers/media/platform/qcom/venus/hfi_msgs.c static void hfi_session_end_done(struct venus_core *core,
core              580 drivers/media/platform/qcom/venus/hfi_msgs.c static void hfi_session_abort_done(struct venus_core *core,
core              589 drivers/media/platform/qcom/venus/hfi_msgs.c static void hfi_session_get_seq_hdr_done(struct venus_core *core,
core              696 drivers/media/platform/qcom/venus/hfi_msgs.c void hfi_process_watchdog_timeout(struct venus_core *core)
core              698 drivers/media/platform/qcom/venus/hfi_msgs.c 	event_sys_error(core, EVT_SYS_WATCHDOG_TIMEOUT, NULL);
core              701 drivers/media/platform/qcom/venus/hfi_msgs.c static struct venus_inst *to_instance(struct venus_core *core, u32 session_id)
core              705 drivers/media/platform/qcom/venus/hfi_msgs.c 	mutex_lock(&core->lock);
core              706 drivers/media/platform/qcom/venus/hfi_msgs.c 	list_for_each_entry(inst, &core->instances, list)
core              708 drivers/media/platform/qcom/venus/hfi_msgs.c 			mutex_unlock(&core->lock);
core              711 drivers/media/platform/qcom/venus/hfi_msgs.c 	mutex_unlock(&core->lock);
core              716 drivers/media/platform/qcom/venus/hfi_msgs.c u32 hfi_process_msg_packet(struct venus_core *core, struct hfi_pkt_hdr *hdr)
core              719 drivers/media/platform/qcom/venus/hfi_msgs.c 	struct device *dev = core->dev;
core              749 drivers/media/platform/qcom/venus/hfi_msgs.c 		inst = to_instance(core, pkt->shdr.session_id);
core              767 drivers/media/platform/qcom/venus/hfi_msgs.c 	handler->done(core, inst, hdr);
core              271 drivers/media/platform/qcom/venus/hfi_msgs.h void hfi_process_watchdog_timeout(struct venus_core *core);
core              272 drivers/media/platform/qcom/venus/hfi_msgs.h u32 hfi_process_msg_packet(struct venus_core *core, struct hfi_pkt_hdr *hdr);
core               17 drivers/media/platform/qcom/venus/hfi_parser.c static void init_codecs(struct venus_core *core)
core               19 drivers/media/platform/qcom/venus/hfi_parser.c 	struct venus_caps *caps = core->caps, *cap;
core               22 drivers/media/platform/qcom/venus/hfi_parser.c 	for_each_set_bit(bit, &core->dec_codecs, MAX_CODEC_NUM) {
core               23 drivers/media/platform/qcom/venus/hfi_parser.c 		cap = &caps[core->codecs_count++];
core               29 drivers/media/platform/qcom/venus/hfi_parser.c 	for_each_set_bit(bit, &core->enc_codecs, MAX_CODEC_NUM) {
core               30 drivers/media/platform/qcom/venus/hfi_parser.c 		cap = &caps[core->codecs_count++];
core               63 drivers/media/platform/qcom/venus/hfi_parser.c parse_alloc_mode(struct venus_core *core, u32 codecs, u32 domain, void *data)
core               77 drivers/media/platform/qcom/venus/hfi_parser.c 			for_each_codec(core->caps, ARRAY_SIZE(core->caps),
core               94 drivers/media/platform/qcom/venus/hfi_parser.c parse_profile_level(struct venus_core *core, u32 codecs, u32 domain, void *data)
core              105 drivers/media/platform/qcom/venus/hfi_parser.c 	for_each_codec(core->caps, ARRAY_SIZE(core->caps), codecs, domain,
core              119 drivers/media/platform/qcom/venus/hfi_parser.c parse_caps(struct venus_core *core, u32 codecs, u32 domain, void *data)
core              131 drivers/media/platform/qcom/venus/hfi_parser.c 	for_each_codec(core->caps, ARRAY_SIZE(core->caps), codecs, domain,
core              145 drivers/media/platform/qcom/venus/hfi_parser.c parse_raw_formats(struct venus_core *core, u32 codecs, u32 domain, void *data)
core              170 drivers/media/platform/qcom/venus/hfi_parser.c 	for_each_codec(core->caps, ARRAY_SIZE(core->caps), codecs, domain,
core              174 drivers/media/platform/qcom/venus/hfi_parser.c static void parse_codecs(struct venus_core *core, void *data)
core              178 drivers/media/platform/qcom/venus/hfi_parser.c 	core->dec_codecs = codecs->dec_codecs;
core              179 drivers/media/platform/qcom/venus/hfi_parser.c 	core->enc_codecs = codecs->enc_codecs;
core              181 drivers/media/platform/qcom/venus/hfi_parser.c 	if (IS_V1(core)) {
core              182 drivers/media/platform/qcom/venus/hfi_parser.c 		core->dec_codecs &= ~HFI_VIDEO_CODEC_HEVC;
core              183 drivers/media/platform/qcom/venus/hfi_parser.c 		core->dec_codecs &= ~HFI_VIDEO_CODEC_SPARK;
core              184 drivers/media/platform/qcom/venus/hfi_parser.c 		core->enc_codecs &= ~HFI_VIDEO_CODEC_HEVC;
core              188 drivers/media/platform/qcom/venus/hfi_parser.c static void parse_max_sessions(struct venus_core *core, const void *data)
core              192 drivers/media/platform/qcom/venus/hfi_parser.c 	core->max_sessions_supported = sessions->max_sessions;
core              205 drivers/media/platform/qcom/venus/hfi_parser.c 	if (!inst || !IS_V1(inst->core))
core              218 drivers/media/platform/qcom/venus/hfi_parser.c 	if (!inst || !IS_V1(inst->core))
core              221 drivers/media/platform/qcom/venus/hfi_parser.c 	caps = inst->core->caps;
core              231 drivers/media/platform/qcom/venus/hfi_parser.c u32 hfi_parser(struct venus_core *core, struct venus_inst *inst, void *buf,
core              247 drivers/media/platform/qcom/venus/hfi_parser.c 			parse_codecs(core, data);
core              248 drivers/media/platform/qcom/venus/hfi_parser.c 			init_codecs(core);
core              251 drivers/media/platform/qcom/venus/hfi_parser.c 			parse_max_sessions(core, data);
core              257 drivers/media/platform/qcom/venus/hfi_parser.c 			parse_raw_formats(core, codecs, domain, data);
core              260 drivers/media/platform/qcom/venus/hfi_parser.c 			parse_caps(core, codecs, domain, data);
core              263 drivers/media/platform/qcom/venus/hfi_parser.c 			parse_profile_level(core, codecs, domain, data);
core              266 drivers/media/platform/qcom/venus/hfi_parser.c 			parse_alloc_mode(core, codecs, domain, data);
core                8 drivers/media/platform/qcom/venus/hfi_parser.h u32 hfi_parser(struct venus_core *core, struct venus_inst *inst,
core               17 drivers/media/platform/qcom/venus/hfi_parser.h 	struct venus_core *core = inst->core;
core               22 drivers/media/platform/qcom/venus/hfi_parser.h 	caps = venus_caps_by_codec(core, inst->hfi_codec, inst->session_type);
core              115 drivers/media/platform/qcom/venus/hfi_venus.c 	struct venus_core *core;
core              328 drivers/media/platform/qcom/venus/hfi_venus.c 	struct device *dev = hdev->core->dev;
core              343 drivers/media/platform/qcom/venus/hfi_venus.c 	struct device *dev = hdev->core->dev;
core              350 drivers/media/platform/qcom/venus/hfi_venus.c 	writel(value, hdev->core->base + reg);
core              355 drivers/media/platform/qcom/venus/hfi_venus.c 	return readl(hdev->core->base + reg);
core              360 drivers/media/platform/qcom/venus/hfi_venus.c 	const struct venus_resources *res = hdev->core->res;
core              377 drivers/media/platform/qcom/venus/hfi_venus.c 	struct device *dev = hdev->core->dev;
core              414 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_hfi_core_set_resource(struct venus_core *core, u32 id,
core              417 drivers/media/platform/qcom/venus/hfi_venus.c 	struct venus_hfi_device *hdev = to_hfi_priv(core);
core              440 drivers/media/platform/qcom/venus/hfi_venus.c 	struct device *dev = hdev->core->dev;
core              470 drivers/media/platform/qcom/venus/hfi_venus.c 	struct device *dev = hdev->core->dev;
core              487 drivers/media/platform/qcom/venus/hfi_venus.c 	struct device *dev = hdev->core->dev;
core              516 drivers/media/platform/qcom/venus/hfi_venus.c 	void __iomem *base = hdev->core->base;
core              517 drivers/media/platform/qcom/venus/hfi_venus.c 	struct device *dev = hdev->core->dev;
core              521 drivers/media/platform/qcom/venus/hfi_venus.c 	if (IS_V4(hdev->core)) {
core              564 drivers/media/platform/qcom/venus/hfi_venus.c 	ret = venus_set_hw_state_suspend(hdev->core);
core              584 drivers/media/platform/qcom/venus/hfi_venus.c 	ret = venus_set_hw_state_resume(hdev->core);
core              597 drivers/media/platform/qcom/venus/hfi_venus.c 	venus_set_hw_state_suspend(hdev->core);
core              861 drivers/media/platform/qcom/venus/hfi_venus.c 	struct device *dev = hdev->core->dev;
core              873 drivers/media/platform/qcom/venus/hfi_venus.c 	if (IS_V4(hdev->core))
core              890 drivers/media/platform/qcom/venus/hfi_venus.c 	struct venus_hfi_device *hdev = to_hfi_priv(inst->core);
core              900 drivers/media/platform/qcom/venus/hfi_venus.c 	struct device *dev = hdev->core->dev;
core              961 drivers/media/platform/qcom/venus/hfi_venus.c 	struct device *dev = hdev->core->dev;
core              999 drivers/media/platform/qcom/venus/hfi_venus.c static irqreturn_t venus_isr_thread(struct venus_core *core)
core             1001 drivers/media/platform/qcom/venus/hfi_venus.c 	struct venus_hfi_device *hdev = to_hfi_priv(core);
core             1009 drivers/media/platform/qcom/venus/hfi_venus.c 	res = hdev->core->res;
core             1014 drivers/media/platform/qcom/venus/hfi_venus.c 		hfi_process_watchdog_timeout(core);
core             1018 drivers/media/platform/qcom/venus/hfi_venus.c 		msg_ret = hfi_process_msg_packet(core, pkt);
core             1024 drivers/media/platform/qcom/venus/hfi_venus.c 			venus_hfi_core_set_resource(core, res->vmem_id,
core             1045 drivers/media/platform/qcom/venus/hfi_venus.c static irqreturn_t venus_isr(struct venus_core *core)
core             1047 drivers/media/platform/qcom/venus/hfi_venus.c 	struct venus_hfi_device *hdev = to_hfi_priv(core);
core             1066 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_core_init(struct venus_core *core)
core             1068 drivers/media/platform/qcom/venus/hfi_venus.c 	struct venus_hfi_device *hdev = to_hfi_priv(core);
core             1069 drivers/media/platform/qcom/venus/hfi_venus.c 	struct device *dev = core->dev;
core             1095 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_core_deinit(struct venus_core *core)
core             1097 drivers/media/platform/qcom/venus/hfi_venus.c 	struct venus_hfi_device *hdev = to_hfi_priv(core);
core             1106 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_core_ping(struct venus_core *core, u32 cookie)
core             1108 drivers/media/platform/qcom/venus/hfi_venus.c 	struct venus_hfi_device *hdev = to_hfi_priv(core);
core             1116 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_core_trigger_ssr(struct venus_core *core, u32 trigger_type)
core             1118 drivers/media/platform/qcom/venus/hfi_venus.c 	struct venus_hfi_device *hdev = to_hfi_priv(core);
core             1132 drivers/media/platform/qcom/venus/hfi_venus.c 	struct venus_hfi_device *hdev = to_hfi_priv(inst->core);
core             1153 drivers/media/platform/qcom/venus/hfi_venus.c 	struct venus_hfi_device *hdev = to_hfi_priv(inst->core);
core             1154 drivers/media/platform/qcom/venus/hfi_venus.c 	struct device *dev = hdev->core->dev;
core             1166 drivers/media/platform/qcom/venus/hfi_venus.c 	struct venus_hfi_device *hdev = to_hfi_priv(inst->core);
core             1175 drivers/media/platform/qcom/venus/hfi_venus.c 	struct venus_hfi_device *hdev = to_hfi_priv(inst->core);
core             1204 drivers/media/platform/qcom/venus/hfi_venus.c 	struct venus_hfi_device *hdev = to_hfi_priv(inst->core);
core             1234 drivers/media/platform/qcom/venus/hfi_venus.c 	struct venus_hfi_device *hdev = to_hfi_priv(inst->core);
core             1248 drivers/media/platform/qcom/venus/hfi_venus.c 	struct venus_hfi_device *hdev = to_hfi_priv(inst->core);
core             1268 drivers/media/platform/qcom/venus/hfi_venus.c 	struct venus_hfi_device *hdev = to_hfi_priv(inst->core);
core             1298 drivers/media/platform/qcom/venus/hfi_venus.c 	struct venus_hfi_device *hdev = to_hfi_priv(inst->core);
core             1319 drivers/media/platform/qcom/venus/hfi_venus.c 	struct venus_hfi_device *hdev = to_hfi_priv(inst->core);
core             1336 drivers/media/platform/qcom/venus/hfi_venus.c 	struct venus_hfi_device *hdev = to_hfi_priv(inst->core);
core             1354 drivers/media/platform/qcom/venus/hfi_venus.c 	struct venus_hfi_device *hdev = to_hfi_priv(inst->core);
core             1365 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_resume(struct venus_core *core)
core             1367 drivers/media/platform/qcom/venus/hfi_venus.c 	struct venus_hfi_device *hdev = to_hfi_priv(core);
core             1386 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_suspend_1xx(struct venus_core *core)
core             1388 drivers/media/platform/qcom/venus/hfi_venus.c 	struct venus_hfi_device *hdev = to_hfi_priv(core);
core             1389 drivers/media/platform/qcom/venus/hfi_venus.c 	struct device *dev = core->dev;
core             1471 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_suspend_3xx(struct venus_core *core)
core             1473 drivers/media/platform/qcom/venus/hfi_venus.c 	struct venus_hfi_device *hdev = to_hfi_priv(core);
core             1474 drivers/media/platform/qcom/venus/hfi_venus.c 	struct device *dev = core->dev;
core             1536 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_suspend(struct venus_core *core)
core             1538 drivers/media/platform/qcom/venus/hfi_venus.c 	if (IS_V3(core) || IS_V4(core))
core             1539 drivers/media/platform/qcom/venus/hfi_venus.c 		return venus_suspend_3xx(core);
core             1541 drivers/media/platform/qcom/venus/hfi_venus.c 	return venus_suspend_1xx(core);
core             1575 drivers/media/platform/qcom/venus/hfi_venus.c void venus_hfi_destroy(struct venus_core *core)
core             1577 drivers/media/platform/qcom/venus/hfi_venus.c 	struct venus_hfi_device *hdev = to_hfi_priv(core);
core             1582 drivers/media/platform/qcom/venus/hfi_venus.c 	core->priv = NULL;
core             1583 drivers/media/platform/qcom/venus/hfi_venus.c 	core->ops = NULL;
core             1586 drivers/media/platform/qcom/venus/hfi_venus.c int venus_hfi_create(struct venus_core *core)
core             1597 drivers/media/platform/qcom/venus/hfi_venus.c 	hdev->core = core;
core             1599 drivers/media/platform/qcom/venus/hfi_venus.c 	core->priv = hdev;
core             1600 drivers/media/platform/qcom/venus/hfi_venus.c 	core->ops = &venus_hfi_ops;
core             1601 drivers/media/platform/qcom/venus/hfi_venus.c 	core->core_caps = ENC_ROTATION_CAPABILITY | ENC_SCALING_CAPABILITY |
core             1613 drivers/media/platform/qcom/venus/hfi_venus.c 	core->priv = NULL;
core             1614 drivers/media/platform/qcom/venus/hfi_venus.c 	core->ops = NULL;
core               11 drivers/media/platform/qcom/venus/hfi_venus.h void venus_hfi_destroy(struct venus_core *core);
core               12 drivers/media/platform/qcom/venus/hfi_venus.h int venus_hfi_create(struct venus_core *core);
core              227 drivers/media/platform/qcom/venus/vdec.c 		dev_dbg(inst->core->dev, "%s: wrong state\n", __func__);
core              568 drivers/media/platform/qcom/venus/vdec.c 	struct venus_core *core = inst->core;
core              585 drivers/media/platform/qcom/venus/vdec.c 	if (core->res->hfi_version == HFI_VERSION_1XX) {
core              597 drivers/media/platform/qcom/venus/vdec.c 	if (IS_V4(core))
core              648 drivers/media/platform/qcom/venus/vdec.c 	if (IS_V3(core) || IS_V4(core)) {
core              697 drivers/media/platform/qcom/venus/vdec.c 	enum hfi_version ver = inst->core->res->hfi_version;
core              792 drivers/media/platform/qcom/venus/vdec.c 	enum hfi_version ver = inst->core->res->hfi_version;
core              867 drivers/media/platform/qcom/venus/vdec.c 	venus_helper_load_scale_clocks(inst->core);
core             1050 drivers/media/platform/qcom/venus/vdec.c 	struct venus_core *core = inst->core;
core             1068 drivers/media/platform/qcom/venus/vdec.c 	if (inst->session_error || core->sys_error)
core             1075 drivers/media/platform/qcom/venus/vdec.c 	venus_helper_load_scale_clocks(core);
core             1172 drivers/media/platform/qcom/venus/vdec.c 	struct device *dev = inst->core->dev_dec;
core             1218 drivers/media/platform/qcom/venus/vdec.c 	struct venus_core *core = inst->core;
core             1219 drivers/media/platform/qcom/venus/vdec.c 	struct device *dev = core->dev_dec;
core             1290 drivers/media/platform/qcom/venus/vdec.c 	src_vq->dev = inst->core->dev;
core             1304 drivers/media/platform/qcom/venus/vdec.c 	dst_vq->dev = inst->core->dev;
core             1316 drivers/media/platform/qcom/venus/vdec.c 	struct venus_core *core = video_drvdata(file);
core             1330 drivers/media/platform/qcom/venus/vdec.c 	inst->core = core;
core             1338 drivers/media/platform/qcom/venus/vdec.c 	ret = pm_runtime_get_sync(core->dev_dec);
core             1368 drivers/media/platform/qcom/venus/vdec.c 	v4l2_fh_init(&inst->fh, core->vdev_dec);
core             1384 drivers/media/platform/qcom/venus/vdec.c 	pm_runtime_put_sync(core->dev_dec);
core             1402 drivers/media/platform/qcom/venus/vdec.c 	pm_runtime_put_sync(inst->core->dev_dec);
core             1421 drivers/media/platform/qcom/venus/vdec.c 	struct venus_core *core;
core             1427 drivers/media/platform/qcom/venus/vdec.c 	core = dev_get_drvdata(dev->parent);
core             1428 drivers/media/platform/qcom/venus/vdec.c 	if (!core)
core             1431 drivers/media/platform/qcom/venus/vdec.c 	if (IS_V3(core) || IS_V4(core)) {
core             1432 drivers/media/platform/qcom/venus/vdec.c 		core->core0_clk = devm_clk_get(dev, "core");
core             1433 drivers/media/platform/qcom/venus/vdec.c 		if (IS_ERR(core->core0_clk))
core             1434 drivers/media/platform/qcom/venus/vdec.c 			return PTR_ERR(core->core0_clk);
core             1437 drivers/media/platform/qcom/venus/vdec.c 	if (IS_V4(core)) {
core             1438 drivers/media/platform/qcom/venus/vdec.c 		core->core0_bus_clk = devm_clk_get(dev, "bus");
core             1439 drivers/media/platform/qcom/venus/vdec.c 		if (IS_ERR(core->core0_bus_clk))
core             1440 drivers/media/platform/qcom/venus/vdec.c 			return PTR_ERR(core->core0_bus_clk);
core             1443 drivers/media/platform/qcom/venus/vdec.c 	platform_set_drvdata(pdev, core);
core             1454 drivers/media/platform/qcom/venus/vdec.c 	vdev->v4l2_dev = &core->v4l2_dev;
core             1461 drivers/media/platform/qcom/venus/vdec.c 	core->vdev_dec = vdev;
core             1462 drivers/media/platform/qcom/venus/vdec.c 	core->dev_dec = dev;
core             1464 drivers/media/platform/qcom/venus/vdec.c 	video_set_drvdata(vdev, core);
core             1476 drivers/media/platform/qcom/venus/vdec.c 	struct venus_core *core = dev_get_drvdata(pdev->dev.parent);
core             1478 drivers/media/platform/qcom/venus/vdec.c 	video_unregister_device(core->vdev_dec);
core             1479 drivers/media/platform/qcom/venus/vdec.c 	pm_runtime_disable(core->dev_dec);
core             1486 drivers/media/platform/qcom/venus/vdec.c 	struct venus_core *core = dev_get_drvdata(dev);
core             1489 drivers/media/platform/qcom/venus/vdec.c 	if (IS_V1(core))
core             1492 drivers/media/platform/qcom/venus/vdec.c 	ret = venus_helper_power_enable(core, VIDC_SESSION_TYPE_DEC, true);
core             1496 drivers/media/platform/qcom/venus/vdec.c 	if (IS_V4(core))
core             1497 drivers/media/platform/qcom/venus/vdec.c 		clk_disable_unprepare(core->core0_bus_clk);
core             1499 drivers/media/platform/qcom/venus/vdec.c 	clk_disable_unprepare(core->core0_clk);
core             1501 drivers/media/platform/qcom/venus/vdec.c 	return venus_helper_power_enable(core, VIDC_SESSION_TYPE_DEC, false);
core             1506 drivers/media/platform/qcom/venus/vdec.c 	struct venus_core *core = dev_get_drvdata(dev);
core             1509 drivers/media/platform/qcom/venus/vdec.c 	if (IS_V1(core))
core             1512 drivers/media/platform/qcom/venus/vdec.c 	ret = venus_helper_power_enable(core, VIDC_SESSION_TYPE_DEC, true);
core             1516 drivers/media/platform/qcom/venus/vdec.c 	ret = clk_prepare_enable(core->core0_clk);
core             1520 drivers/media/platform/qcom/venus/vdec.c 	if (IS_V4(core))
core             1521 drivers/media/platform/qcom/venus/vdec.c 		ret = clk_prepare_enable(core->core0_bus_clk);
core             1526 drivers/media/platform/qcom/venus/vdec.c 	return venus_helper_power_enable(core, VIDC_SESSION_TYPE_DEC, false);
core             1529 drivers/media/platform/qcom/venus/vdec.c 	clk_disable_unprepare(core->core0_clk);
core             1531 drivers/media/platform/qcom/venus/vdec.c 	venus_helper_power_enable(core, VIDC_SESSION_TYPE_DEC, false);
core               44 drivers/media/platform/qcom/venus/vdec_ctrls.c 	enum hfi_version ver = inst->core->res->hfi_version;
core              938 drivers/media/platform/qcom/venus/venc.c 	enum hfi_version ver = inst->core->res->hfi_version;
core             1067 drivers/media/platform/qcom/venus/venc.c 	struct device *dev = inst->core->dev_enc;
core             1100 drivers/media/platform/qcom/venus/venc.c 	src_vq->dev = inst->core->dev;
core             1101 drivers/media/platform/qcom/venus/venc.c 	if (inst->core->res->hfi_version == HFI_VERSION_1XX)
core             1116 drivers/media/platform/qcom/venus/venc.c 	dst_vq->dev = inst->core->dev;
core             1142 drivers/media/platform/qcom/venus/venc.c 	struct venus_core *core = video_drvdata(file);
core             1156 drivers/media/platform/qcom/venus/venc.c 	inst->core = core;
core             1161 drivers/media/platform/qcom/venus/venc.c 	ret = pm_runtime_get_sync(core->dev_enc);
core             1191 drivers/media/platform/qcom/venus/venc.c 	v4l2_fh_init(&inst->fh, core->vdev_enc);
core             1207 drivers/media/platform/qcom/venus/venc.c 	pm_runtime_put_sync(core->dev_enc);
core             1225 drivers/media/platform/qcom/venus/venc.c 	pm_runtime_put_sync(inst->core->dev_enc);
core             1244 drivers/media/platform/qcom/venus/venc.c 	struct venus_core *core;
core             1250 drivers/media/platform/qcom/venus/venc.c 	core = dev_get_drvdata(dev->parent);
core             1251 drivers/media/platform/qcom/venus/venc.c 	if (!core)
core             1254 drivers/media/platform/qcom/venus/venc.c 	if (IS_V3(core) || IS_V4(core)) {
core             1255 drivers/media/platform/qcom/venus/venc.c 		core->core1_clk = devm_clk_get(dev, "core");
core             1256 drivers/media/platform/qcom/venus/venc.c 		if (IS_ERR(core->core1_clk))
core             1257 drivers/media/platform/qcom/venus/venc.c 			return PTR_ERR(core->core1_clk);
core             1260 drivers/media/platform/qcom/venus/venc.c 	if (IS_V4(core)) {
core             1261 drivers/media/platform/qcom/venus/venc.c 		core->core1_bus_clk = devm_clk_get(dev, "bus");
core             1262 drivers/media/platform/qcom/venus/venc.c 		if (IS_ERR(core->core1_bus_clk))
core             1263 drivers/media/platform/qcom/venus/venc.c 			return PTR_ERR(core->core1_bus_clk);
core             1266 drivers/media/platform/qcom/venus/venc.c 	platform_set_drvdata(pdev, core);
core             1277 drivers/media/platform/qcom/venus/venc.c 	vdev->v4l2_dev = &core->v4l2_dev;
core             1284 drivers/media/platform/qcom/venus/venc.c 	core->vdev_enc = vdev;
core             1285 drivers/media/platform/qcom/venus/venc.c 	core->dev_enc = dev;
core             1287 drivers/media/platform/qcom/venus/venc.c 	video_set_drvdata(vdev, core);
core             1299 drivers/media/platform/qcom/venus/venc.c 	struct venus_core *core = dev_get_drvdata(pdev->dev.parent);
core             1301 drivers/media/platform/qcom/venus/venc.c 	video_unregister_device(core->vdev_enc);
core             1302 drivers/media/platform/qcom/venus/venc.c 	pm_runtime_disable(core->dev_enc);
core             1309 drivers/media/platform/qcom/venus/venc.c 	struct venus_core *core = dev_get_drvdata(dev);
core             1312 drivers/media/platform/qcom/venus/venc.c 	if (IS_V1(core))
core             1315 drivers/media/platform/qcom/venus/venc.c 	ret = venus_helper_power_enable(core, VIDC_SESSION_TYPE_ENC, true);
core             1319 drivers/media/platform/qcom/venus/venc.c 	if (IS_V4(core))
core             1320 drivers/media/platform/qcom/venus/venc.c 		clk_disable_unprepare(core->core1_bus_clk);
core             1322 drivers/media/platform/qcom/venus/venc.c 	clk_disable_unprepare(core->core1_clk);
core             1324 drivers/media/platform/qcom/venus/venc.c 	return venus_helper_power_enable(core, VIDC_SESSION_TYPE_ENC, false);
core             1329 drivers/media/platform/qcom/venus/venc.c 	struct venus_core *core = dev_get_drvdata(dev);
core             1332 drivers/media/platform/qcom/venus/venc.c 	if (IS_V1(core))
core             1335 drivers/media/platform/qcom/venus/venc.c 	ret = venus_helper_power_enable(core, VIDC_SESSION_TYPE_ENC, true);
core             1339 drivers/media/platform/qcom/venus/venc.c 	ret = clk_prepare_enable(core->core1_clk);
core             1343 drivers/media/platform/qcom/venus/venc.c 	if (IS_V4(core))
core             1344 drivers/media/platform/qcom/venus/venc.c 		ret = clk_prepare_enable(core->core1_bus_clk);
core             1349 drivers/media/platform/qcom/venus/venc.c 	return venus_helper_power_enable(core, VIDC_SESSION_TYPE_ENC, false);
core             1352 drivers/media/platform/qcom/venus/venc.c 	clk_disable_unprepare(core->core1_clk);
core             1354 drivers/media/platform/qcom/venus/venc.c 	venus_helper_power_enable(core, VIDC_SESSION_TYPE_ENC, false);
core              771 drivers/media/platform/rcar-vin/rcar-v4l2.c 	ret = v4l2_subdev_call(sd, core, s_power, power);
core             1065 drivers/media/platform/renesas-ceu.c 	v4l2_subdev_call(v4l2_sd, core, s_power, 1);
core             1081 drivers/media/platform/renesas-ceu.c 	v4l2_subdev_call(v4l2_sd, core, s_power, 0);
core             1252 drivers/media/platform/renesas-ceu.c 	v4l2_subdev_call(ceu_sd_old->v4l2_sd, core, s_power, 0);
core             1253 drivers/media/platform/renesas-ceu.c 	v4l2_subdev_call(ceudev->sd->v4l2_sd, core, s_power, 1);
core              116 drivers/media/platform/s3c-camif/camif-capture.c 		err = v4l2_subdev_call(sensor->sd, core, s_power, on);
core             1451 drivers/media/platform/stm32/stm32-dcmi.c 	ret = v4l2_subdev_call(sd, core, s_power, 1);
core             1457 drivers/media/platform/stm32/stm32-dcmi.c 		v4l2_subdev_call(sd, core, s_power, 0);
core             1480 drivers/media/platform/stm32/stm32-dcmi.c 		v4l2_subdev_call(sd, core, s_power, 0);
core              432 drivers/media/platform/ti-vpe/cal.c static struct cc_data *cc_create(struct cal_dev *dev, unsigned int core)
core              443 drivers/media/platform/ti-vpe/cal.c 					       (core == 0) ?
core              261 drivers/media/platform/via-camera.c 	ret = sensor_call(cam, core, init, 0);
core              246 drivers/media/platform/vimc/vimc-sensor.c 	.core = &vimc_sen_core_ops,
core              475 drivers/media/platform/xilinx/xilinx-tpg.c 	.core   = &xtpg_core_ops,
core              306 drivers/media/radio/radio-si476x.c 	struct si476x_core  *core;
core              351 drivers/media/radio/radio-si476x.c 	switch (radio->core->chip_id) {
core              406 drivers/media/radio/radio-si476x.c 	si476x_core_lock(radio->core);
core              408 drivers/media/radio/radio-si476x.c 	if (si476x_core_is_a_secondary_tuner(radio->core)) {
core              412 drivers/media/radio/radio-si476x.c 	} else if (si476x_core_has_am(radio->core)) {
core              413 drivers/media/radio/radio-si476x.c 		if (si476x_core_is_a_primary_tuner(radio->core))
core              440 drivers/media/radio/radio-si476x.c 	err = radio->ops->rsq_status(radio->core,
core              451 drivers/media/radio/radio-si476x.c 	si476x_core_unlock(radio->core);
core              528 drivers/media/radio/radio-si476x.c 		args.freq = v4l2_to_si476x(radio->core,
core              530 drivers/media/radio/radio-si476x.c 		retval = radio->ops->tune_freq(radio->core, &args);
core              533 drivers/media/radio/radio-si476x.c 		args.freq = v4l2_to_si476x(radio->core,
core              535 drivers/media/radio/radio-si476x.c 		retval = radio->ops->tune_freq(radio->core, &args);
core              550 drivers/media/radio/radio-si476x.c 	err = regcache_sync_region(radio->core->regmap,
core              556 drivers/media/radio/radio-si476x.c 	err = regcache_sync_region(radio->core->regmap,
core              562 drivers/media/radio/radio-si476x.c 	err = regcache_sync_region(radio->core->regmap,
core              572 drivers/media/radio/radio-si476x.c 	err = regcache_sync_region(radio->core->regmap,
core              578 drivers/media/radio/radio-si476x.c 	err = regcache_sync_region(radio->core->regmap,
core              585 drivers/media/radio/radio-si476x.c 		if (si476x_core_has_diversity(radio->core)) {
core              586 drivers/media/radio/radio-si476x.c 			err = si476x_core_cmd_fm_phase_diversity(radio->core,
core              587 drivers/media/radio/radio-si476x.c 								 radio->core->diversity_mode);
core              592 drivers/media/radio/radio-si476x.c 		err = regcache_sync_region(radio->core->regmap,
core              613 drivers/media/radio/radio-si476x.c 	if (func == radio->core->power_up_parameters.func)
core              617 drivers/media/radio/radio-si476x.c 	err = si476x_core_stop(radio->core, soft);
core              624 drivers/media/radio/radio-si476x.c 		err = si476x_core_stop(radio->core, soft);
core              631 drivers/media/radio/radio-si476x.c 	radio->core->power_up_parameters.func = func;
core              633 drivers/media/radio/radio-si476x.c 	err = si476x_core_start(radio->core, soft);
core              658 drivers/media/radio/radio-si476x.c 	si476x_core_lock(radio->core);
core              670 drivers/media/radio/radio-si476x.c 		err = radio->ops->rsq_status(radio->core, &args, &report);
core              672 drivers/media/radio/radio-si476x.c 			f->frequency = si476x_to_v4l2(radio->core,
core              678 drivers/media/radio/radio-si476x.c 	si476x_core_unlock(radio->core);
core              702 drivers/media/radio/radio-si476x.c 	si476x_core_lock(radio->core);
core              710 drivers/media/radio/radio-si476x.c 	    (!si476x_core_has_am(radio->core) ||
core              711 drivers/media/radio/radio-si476x.c 	     si476x_core_is_a_secondary_tuner(radio->core))) {
core              723 drivers/media/radio/radio-si476x.c 	args.freq		= v4l2_to_si476x(radio->core, freq);
core              728 drivers/media/radio/radio-si476x.c 	err = radio->ops->tune_freq(radio->core, &args);
core              731 drivers/media/radio/radio-si476x.c 	si476x_core_unlock(radio->core);
core              750 drivers/media/radio/radio-si476x.c 	si476x_core_lock(radio->core);
core              753 drivers/media/radio/radio-si476x.c 		err = regmap_read(radio->core->regmap,
core              758 drivers/media/radio/radio-si476x.c 		rangelow = si476x_to_v4l2(radio->core, rangelow);
core              761 drivers/media/radio/radio-si476x.c 		err = regmap_read(radio->core->regmap,
core              766 drivers/media/radio/radio-si476x.c 		rangehigh = si476x_to_v4l2(radio->core, rangehigh);
core              778 drivers/media/radio/radio-si476x.c 	} else if (si476x_core_has_am(radio->core) &&
core              792 drivers/media/radio/radio-si476x.c 		err = regmap_write(radio->core->regmap,
core              794 drivers/media/radio/radio-si476x.c 				   v4l2_to_si476x(radio->core,
core              800 drivers/media/radio/radio-si476x.c 		err = regmap_write(radio->core->regmap,
core              802 drivers/media/radio/radio-si476x.c 				   v4l2_to_si476x(radio->core,
core              808 drivers/media/radio/radio-si476x.c 		err = regmap_write(radio->core->regmap,
core              810 drivers/media/radio/radio-si476x.c 				     v4l2_to_si476x(radio->core,
core              816 drivers/media/radio/radio-si476x.c 	err = radio->ops->seek_start(radio->core,
core              820 drivers/media/radio/radio-si476x.c 	si476x_core_unlock(radio->core);
core              832 drivers/media/radio/radio-si476x.c 	si476x_core_lock(radio->core);
core              836 drivers/media/radio/radio-si476x.c 		if (si476x_core_has_diversity(radio->core)) {
core              838 drivers/media/radio/radio-si476x.c 				retval = radio->ops->phase_div_status(radio->core);
core              856 drivers/media/radio/radio-si476x.c 	si476x_core_unlock(radio->core);
core              867 drivers/media/radio/radio-si476x.c 	si476x_core_lock(radio->core);
core              871 drivers/media/radio/radio-si476x.c 		retval = regmap_update_bits(radio->core->regmap,
core              879 drivers/media/radio/radio-si476x.c 			retval = regmap_update_bits(radio->core->regmap,
core              885 drivers/media/radio/radio-si476x.c 			retval = regmap_update_bits(radio->core->regmap,
core              891 drivers/media/radio/radio-si476x.c 			retval = regmap_update_bits(radio->core->regmap,
core              902 drivers/media/radio/radio-si476x.c 		retval = regmap_write(radio->core->regmap,
core              907 drivers/media/radio/radio-si476x.c 		retval = regmap_write(radio->core->regmap,
core              912 drivers/media/radio/radio-si476x.c 		retval = regmap_write(radio->core->regmap,
core              922 drivers/media/radio/radio-si476x.c 		if (si476x_core_is_in_am_receiver_mode(radio->core))
core              923 drivers/media/radio/radio-si476x.c 			regcache_cache_only(radio->core->regmap, true);
core              926 drivers/media/radio/radio-si476x.c 			retval = regmap_write(radio->core->regmap,
core              928 drivers/media/radio/radio-si476x.c 					      radio->core->rds_fifo_depth);
core              932 drivers/media/radio/radio-si476x.c 			if (radio->core->client->irq) {
core              933 drivers/media/radio/radio-si476x.c 				retval = regmap_write(radio->core->regmap,
core              941 drivers/media/radio/radio-si476x.c 			retval = si476x_core_cmd_fm_rds_status(radio->core,
core              949 drivers/media/radio/radio-si476x.c 			retval = regmap_update_bits(radio->core->regmap,
core              954 drivers/media/radio/radio-si476x.c 			retval = regmap_update_bits(radio->core->regmap,
core              960 drivers/media/radio/radio-si476x.c 		if (si476x_core_is_in_am_receiver_mode(radio->core))
core              961 drivers/media/radio/radio-si476x.c 			regcache_cache_only(radio->core->regmap, false);
core              964 drivers/media/radio/radio-si476x.c 		retval = regmap_write(radio->core->regmap,
core              972 drivers/media/radio/radio-si476x.c 		if (mode == radio->core->diversity_mode) {
core              977 drivers/media/radio/radio-si476x.c 		if (si476x_core_is_in_am_receiver_mode(radio->core)) {
core              982 drivers/media/radio/radio-si476x.c 			radio->core->diversity_mode = mode;
core              985 drivers/media/radio/radio-si476x.c 			retval = radio->ops->phase_diversity(radio->core, mode);
core              987 drivers/media/radio/radio-si476x.c 				radio->core->diversity_mode = mode;
core              996 drivers/media/radio/radio-si476x.c 	si476x_core_unlock(radio->core);
core             1009 drivers/media/radio/radio-si476x.c 	si476x_core_lock(radio->core);
core             1011 drivers/media/radio/radio-si476x.c 	err = regmap_read(radio->core->regmap,
core             1014 drivers/media/radio/radio-si476x.c 	si476x_core_unlock(radio->core);
core             1025 drivers/media/radio/radio-si476x.c 	si476x_core_lock(radio->core);
core             1026 drivers/media/radio/radio-si476x.c 	err = regmap_write(radio->core->regmap,
core             1029 drivers/media/radio/radio-si476x.c 	si476x_core_unlock(radio->core);
core             1045 drivers/media/radio/radio-si476x.c 		si476x_core_lock(radio->core);
core             1046 drivers/media/radio/radio-si476x.c 		err = si476x_core_set_power_state(radio->core,
core             1052 drivers/media/radio/radio-si476x.c 							radio->core->power_up_parameters.func);
core             1057 drivers/media/radio/radio-si476x.c 					   radio->core->power_up_parameters.func);
core             1061 drivers/media/radio/radio-si476x.c 		si476x_core_unlock(radio->core);
core             1069 drivers/media/radio/radio-si476x.c 	si476x_core_set_power_state(radio->core,
core             1072 drivers/media/radio/radio-si476x.c 	si476x_core_unlock(radio->core);
core             1084 drivers/media/radio/radio-si476x.c 	    atomic_read(&radio->core->is_alive))
core             1085 drivers/media/radio/radio-si476x.c 		si476x_core_set_power_state(radio->core,
core             1103 drivers/media/radio/radio-si476x.c 	if (kfifo_is_empty(&radio->core->rds_fifo)) {
core             1107 drivers/media/radio/radio-si476x.c 		rval = wait_event_interruptible(radio->core->rds_read_queue,
core             1108 drivers/media/radio/radio-si476x.c 						(!kfifo_is_empty(&radio->core->rds_fifo) ||
core             1109 drivers/media/radio/radio-si476x.c 						 !atomic_read(&radio->core->is_alive)));
core             1113 drivers/media/radio/radio-si476x.c 		if (!atomic_read(&radio->core->is_alive))
core             1117 drivers/media/radio/radio-si476x.c 	fifo_len = kfifo_len(&radio->core->rds_fifo);
core             1119 drivers/media/radio/radio-si476x.c 	if (kfifo_to_user(&radio->core->rds_fifo, buf,
core             1140 drivers/media/radio/radio-si476x.c 		if (atomic_read(&radio->core->is_alive))
core             1141 drivers/media/radio/radio-si476x.c 			poll_wait(file, &radio->core->rds_read_queue, pts);
core             1143 drivers/media/radio/radio-si476x.c 		if (!atomic_read(&radio->core->is_alive))
core             1146 drivers/media/radio/radio-si476x.c 		if (!kfifo_is_empty(&radio->core->rds_fifo))
core             1199 drivers/media/radio/radio-si476x.c 	si476x_core_lock(radio->core);
core             1201 drivers/media/radio/radio-si476x.c 		err = radio->ops->acf_status(radio->core, &report);
core             1204 drivers/media/radio/radio-si476x.c 	si476x_core_unlock(radio->core);
core             1227 drivers/media/radio/radio-si476x.c 	si476x_core_lock(radio->core);
core             1229 drivers/media/radio/radio-si476x.c 		err = radio->ops->rds_blckcnt(radio->core, true,
core             1233 drivers/media/radio/radio-si476x.c 	si476x_core_unlock(radio->core);
core             1256 drivers/media/radio/radio-si476x.c 	si476x_core_lock(radio->core);
core             1258 drivers/media/radio/radio-si476x.c 		err = radio->ops->agc_status(radio->core, &report);
core             1261 drivers/media/radio/radio-si476x.c 	si476x_core_unlock(radio->core);
core             1291 drivers/media/radio/radio-si476x.c 	si476x_core_lock(radio->core);
core             1293 drivers/media/radio/radio-si476x.c 		err = radio->ops->rsq_status(radio->core, &args, &report);
core             1296 drivers/media/radio/radio-si476x.c 	si476x_core_unlock(radio->core);
core             1326 drivers/media/radio/radio-si476x.c 	si476x_core_lock(radio->core);
core             1328 drivers/media/radio/radio-si476x.c 		err = radio->ops->rsq_status(radio->core, &args, &report);
core             1331 drivers/media/radio/radio-si476x.c 	si476x_core_unlock(radio->core);
core             1434 drivers/media/radio/radio-si476x.c 	radio->core = i2c_mfd_cell_to_core(&pdev->dev);
core             1452 drivers/media/radio/radio-si476x.c 	si476x_core_lock(radio->core);
core             1453 drivers/media/radio/radio-si476x.c 	if (!si476x_core_is_a_secondary_tuner(radio->core))
core             1456 drivers/media/radio/radio-si476x.c 	si476x_core_unlock(radio->core);
core             1466 drivers/media/radio/radio-si476x.c 	if (si476x_core_has_am(radio->core)) {
core             1518 drivers/media/radio/radio-si476x.c 	if (si476x_core_has_diversity(radio->core)) {
core             1520 drivers/media/radio/radio-si476x.c 			si476x_phase_diversity_mode_to_idx(radio->core->diversity_mode);
core               77 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core;
core               95 drivers/media/radio/radio-wl1273.c static int wl1273_fm_write_fw(struct wl1273_core *core,
core               98 drivers/media/radio/radio-wl1273.c 	struct i2c_client *client = core->client;
core              133 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core              134 drivers/media/radio/radio-wl1273.c 	struct i2c_client *client = core->client;
core              154 drivers/media/radio/radio-wl1273.c 	if (core->mode != WL1273_MODE_RX)
core              157 drivers/media/radio/radio-wl1273.c 	r = core->read(core, WL1273_RDS_SYNC_GET, &val);
core              221 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core              225 drivers/media/radio/radio-wl1273.c 	r = core->read(core, WL1273_FLAG_GET, &flags);
core              249 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_RSSI_LVL_GET, &level);
core              289 drivers/media/radio/radio-wl1273.c 		if (core->mode == WL1273_MODE_RX) {
core              290 drivers/media/radio/radio-wl1273.c 			r = core->write(core, WL1273_TUNER_MODE_SET,
core              299 drivers/media/radio/radio-wl1273.c 			r = core->read(core, WL1273_FREQ_SET, &freq);
core              318 drivers/media/radio/radio-wl1273.c 			r = core->read(core, WL1273_CHANL_SET, &freq);
core              328 drivers/media/radio/radio-wl1273.c 	core->write(core, WL1273_INT_MASK_SET, radio->irq_flags);
core              336 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core              363 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_CHANL_SET, freq / 10);
core              377 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_POWER_ENB_SET, 1);
core              396 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core              418 drivers/media/radio/radio-wl1273.c 	core->write(core, WL1273_INT_MASK_SET, radio->irq_flags);
core              425 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_FREQ_SET, f);
core              431 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_TUNER_MODE_SET, TUNER_MODE_PRESET);
core              455 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core              460 drivers/media/radio/radio-wl1273.c 	if (core->mode == WL1273_MODE_RX) {
core              461 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_FREQ_SET, &f);
core              471 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_CHANL_SET, &f);
core              491 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core              515 drivers/media/radio/radio-wl1273.c 	r = wl1273_fm_write_fw(core, ptr + 1, packet_num);
core              522 drivers/media/radio/radio-wl1273.c 	core->write(core, WL1273_RESET, 0);
core              532 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core              534 drivers/media/radio/radio-wl1273.c 	if (core->mode == WL1273_MODE_RX) {
core              535 drivers/media/radio/radio-wl1273.c 		int r = core->write(core, WL1273_POWER_SET,
core              540 drivers/media/radio/radio-wl1273.c 	} else if (core->mode == WL1273_MODE_TX) {
core              541 drivers/media/radio/radio-wl1273.c 		int r = core->write(core, WL1273_PUPD_SET,
core              548 drivers/media/radio/radio-wl1273.c 	if (core->pdata->disable) {
core              549 drivers/media/radio/radio-wl1273.c 		core->pdata->disable();
core              558 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core              559 drivers/media/radio/radio-wl1273.c 	struct wl1273_fm_platform_data *pdata = core->pdata;
core              563 drivers/media/radio/radio-wl1273.c 	if (pdata->enable && core->mode == WL1273_MODE_OFF) {
core              577 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_POWER_SET, val);
core              581 drivers/media/radio/radio-wl1273.c 			r = core->write(core, WL1273_POWER_SET, val);
core              594 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_PUPD_SET, WL1273_PUPD_SET_ON);
core              597 drivers/media/radio/radio-wl1273.c 			r = core->write(core, WL1273_PUPD_SET,
core              606 drivers/media/radio/radio-wl1273.c 			r = core->write(core, WL1273_RDS_DATA_ENB, 1);
core              613 drivers/media/radio/radio-wl1273.c 			r = core->write(core, WL1273_RDS_DATA_ENB, 0);
core              624 drivers/media/radio/radio-wl1273.c 	if (core->mode == WL1273_MODE_OFF) {
core              639 drivers/media/radio/radio-wl1273.c 			r = core->write(core, WL1273_POWER_SET, val);
core              645 drivers/media/radio/radio-wl1273.c 			r = core->write(core, WL1273_PUPD_SET,
core              665 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core              669 drivers/media/radio/radio-wl1273.c 	if (core->mode == WL1273_MODE_RX)
core              670 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_POWER_SET,
core              672 drivers/media/radio/radio-wl1273.c 	else if (core->mode == WL1273_MODE_TX)
core              673 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_PUPD_SET,
core              689 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core              697 drivers/media/radio/radio-wl1273.c 	old_mode = core->mode;
core              713 drivers/media/radio/radio-wl1273.c 		core->mode = mode;
core              714 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_INT_MASK_SET, radio->irq_flags);
core              728 drivers/media/radio/radio-wl1273.c 			r = core->set_volume(core, core->volume);
core              735 drivers/media/radio/radio-wl1273.c 				core->volume);
core              746 drivers/media/radio/radio-wl1273.c 		r = core->set_audio(core, core->audio_mode);
core              756 drivers/media/radio/radio-wl1273.c 			core->mode = WL1273_MODE_OFF;
core              765 drivers/media/radio/radio-wl1273.c 			core->mode = WL1273_MODE_SUSPENDED;
core              776 drivers/media/radio/radio-wl1273.c 		core->mode = old_mode;
core              786 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core              812 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_INT_MASK_SET, radio->irq_flags);
core              818 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_SEARCH_LVL_SET, level);
core              822 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_SEARCH_DIR_SET, dir);
core              826 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_TUNER_MODE_SET, TUNER_MODE_AUTO_SEEK);
core              857 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_TUNER_MODE_SET, TUNER_MODE_AUTO_SEEK);
core              875 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core              880 drivers/media/radio/radio-wl1273.c 	if (core->mode == WL1273_MODE_OFF ||
core              881 drivers/media/radio/radio-wl1273.c 	    core->mode == WL1273_MODE_SUSPENDED)
core              884 drivers/media/radio/radio-wl1273.c 	r = core->read(core, WL1273_READ_FMANT_TUNE_VALUE, &val);
core              905 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core              909 drivers/media/radio/radio-wl1273.c 	if (core->mode == WL1273_MODE_OFF ||
core              910 drivers/media/radio/radio-wl1273.c 	    core->mode == WL1273_MODE_SUSPENDED)
core              913 drivers/media/radio/radio-wl1273.c 	mutex_lock(&core->lock);
core              930 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_PREMPH_SET, em);
core              937 drivers/media/radio/radio-wl1273.c 	mutex_unlock(&core->lock);
core              943 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core              950 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_POWER_SET,
core              964 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core              972 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_INT_MASK_SET, radio->irq_flags);
core              981 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_POWER_SET, WL1273_POWER_SET_FM);
core              997 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core              999 drivers/media/radio/radio-wl1273.c 	if (core->mode == WL1273_MODE_OFF ||
core             1000 drivers/media/radio/radio-wl1273.c 	    core->mode == WL1273_MODE_SUSPENDED)
core             1004 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_RDS_CNTRL_SET, 1);
core             1008 drivers/media/radio/radio-wl1273.c 	if (core->mode == WL1273_MODE_TX && new_mode == WL1273_RDS_OFF) {
core             1009 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_RDS_DATA_ENB, 0);
core             1010 drivers/media/radio/radio-wl1273.c 	} else if (core->mode == WL1273_MODE_TX && new_mode == WL1273_RDS_ON) {
core             1011 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_RDS_DATA_ENB, 1);
core             1012 drivers/media/radio/radio-wl1273.c 	} else if (core->mode == WL1273_MODE_RX && new_mode == WL1273_RDS_OFF) {
core             1014 drivers/media/radio/radio-wl1273.c 	} else if (core->mode == WL1273_MODE_RX && new_mode == WL1273_RDS_ON) {
core             1032 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core             1038 drivers/media/radio/radio-wl1273.c 	if (core->mode != WL1273_MODE_TX)
core             1046 drivers/media/radio/radio-wl1273.c 	if (mutex_lock_interruptible(&core->lock))
core             1064 drivers/media/radio/radio-wl1273.c 	core->write(core, WL1273_RDS_CONFIG_DATA_SET, val);
core             1075 drivers/media/radio/radio-wl1273.c 	core->write_data(core, radio->write_buf, val + 1);
core             1079 drivers/media/radio/radio-wl1273.c 	mutex_unlock(&core->lock);
core             1088 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core             1095 drivers/media/radio/radio-wl1273.c 	if (core->mode == WL1273_MODE_RX) {
core             1101 drivers/media/radio/radio-wl1273.c 	} else if (core->mode == WL1273_MODE_TX) {
core             1111 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core             1116 drivers/media/radio/radio-wl1273.c 	if (core->mode == WL1273_MODE_RX && radio->rds_on &&
core             1118 drivers/media/radio/radio-wl1273.c 		dev_dbg(radio->dev, "%s: Mode: %d\n", __func__, core->mode);
core             1120 drivers/media/radio/radio-wl1273.c 		if (mutex_lock_interruptible(&core->lock))
core             1125 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_INT_MASK_SET,
core             1128 drivers/media/radio/radio-wl1273.c 			mutex_unlock(&core->lock);
core             1134 drivers/media/radio/radio-wl1273.c 		mutex_unlock(&core->lock);
core             1143 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core             1151 drivers/media/radio/radio-wl1273.c 			mutex_lock(&core->lock);
core             1155 drivers/media/radio/radio-wl1273.c 			if (core->mode == WL1273_MODE_RX) {
core             1156 drivers/media/radio/radio-wl1273.c 				r = core->write(core,
core             1160 drivers/media/radio/radio-wl1273.c 					mutex_unlock(&core->lock);
core             1164 drivers/media/radio/radio-wl1273.c 			mutex_unlock(&core->lock);
core             1179 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core             1185 drivers/media/radio/radio-wl1273.c 	if (core->mode != WL1273_MODE_RX)
core             1193 drivers/media/radio/radio-wl1273.c 	if (mutex_lock_interruptible(&core->lock))
core             1206 drivers/media/radio/radio-wl1273.c 	r = core->read(core, WL1273_RDS_SYNC_GET, &val);
core             1258 drivers/media/radio/radio-wl1273.c 	mutex_unlock(&core->lock);
core             1321 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core             1324 drivers/media/radio/radio-wl1273.c 	if (core->mode == WL1273_MODE_OFF ||
core             1325 drivers/media/radio/radio-wl1273.c 	    core->mode == WL1273_MODE_SUSPENDED)
core             1328 drivers/media/radio/radio-wl1273.c 	mutex_lock(&core->lock);
core             1331 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_POWER_LEV_SET, 122 - power);
core             1338 drivers/media/radio/radio-wl1273.c 	mutex_unlock(&core->lock);
core             1349 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core             1353 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_SCAN_SPACING_SET,
core             1357 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_SCAN_SPACING_SET,
core             1361 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_SCAN_SPACING_SET,
core             1365 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_SCAN_SPACING_SET,
core             1376 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core             1380 drivers/media/radio/radio-wl1273.c 	if (mutex_lock_interruptible(&core->lock))
core             1394 drivers/media/radio/radio-wl1273.c 	mutex_unlock(&core->lock);
core             1413 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core             1420 drivers/media/radio/radio-wl1273.c 		if (mutex_lock_interruptible(&core->lock))
core             1423 drivers/media/radio/radio-wl1273.c 		if (core->mode == WL1273_MODE_RX && ctrl->val)
core             1424 drivers/media/radio/radio-wl1273.c 			r = core->write(core,
core             1428 drivers/media/radio/radio-wl1273.c 		else if (core->mode == WL1273_MODE_RX)
core             1429 drivers/media/radio/radio-wl1273.c 			r = core->write(core,
core             1431 drivers/media/radio/radio-wl1273.c 		else if (core->mode == WL1273_MODE_TX && ctrl->val)
core             1432 drivers/media/radio/radio-wl1273.c 			r = core->write(core, WL1273_MUTE, 1);
core             1433 drivers/media/radio/radio-wl1273.c 		else if (core->mode == WL1273_MODE_TX)
core             1434 drivers/media/radio/radio-wl1273.c 			r = core->write(core, WL1273_MUTE, 0);
core             1436 drivers/media/radio/radio-wl1273.c 		mutex_unlock(&core->lock);
core             1443 drivers/media/radio/radio-wl1273.c 			r =  core->set_volume(core, core->volume);
core             1500 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core             1524 drivers/media/radio/radio-wl1273.c 	if (core->mode != WL1273_MODE_RX)
core             1527 drivers/media/radio/radio-wl1273.c 	if (mutex_lock_interruptible(&core->lock))
core             1530 drivers/media/radio/radio-wl1273.c 	r = core->read(core, WL1273_STEREO_GET, &val);
core             1539 drivers/media/radio/radio-wl1273.c 	r = core->read(core, WL1273_RSSI_LVL_GET, &val);
core             1548 drivers/media/radio/radio-wl1273.c 	r = core->read(core, WL1273_RDS_SYNC_GET, &val);
core             1555 drivers/media/radio/radio-wl1273.c 	mutex_unlock(&core->lock);
core             1564 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core             1578 drivers/media/radio/radio-wl1273.c 	if (mutex_lock_interruptible(&core->lock))
core             1594 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_MOST_MODE_SET, WL1273_RX_MONO);
core             1602 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_MOST_MODE_SET, WL1273_RX_STEREO);
core             1617 drivers/media/radio/radio-wl1273.c 	mutex_unlock(&core->lock);
core             1626 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core             1630 drivers/media/radio/radio-wl1273.c 	if (mutex_lock_interruptible(&core->lock))
core             1636 drivers/media/radio/radio-wl1273.c 	mutex_unlock(&core->lock);
core             1645 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core             1656 drivers/media/radio/radio-wl1273.c 	if (mutex_lock_interruptible(&core->lock))
core             1659 drivers/media/radio/radio-wl1273.c 	if (core->mode == WL1273_MODE_RX) {
core             1675 drivers/media/radio/radio-wl1273.c 	mutex_unlock(&core->lock);
core             1687 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core             1698 drivers/media/radio/radio-wl1273.c 	if (mutex_lock_interruptible(&core->lock))
core             1715 drivers/media/radio/radio-wl1273.c 	mutex_unlock(&core->lock);
core             1723 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core             1731 drivers/media/radio/radio-wl1273.c 	if (mutex_lock_interruptible(&core->lock))
core             1744 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_MONO_SET, WL1273_TX_MONO);
core             1746 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_MONO_SET,
core             1752 drivers/media/radio/radio-wl1273.c 	mutex_unlock(&core->lock);
core             1761 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core             1776 drivers/media/radio/radio-wl1273.c 	if (core->mode != WL1273_MODE_TX)
core             1779 drivers/media/radio/radio-wl1273.c 	if (mutex_lock_interruptible(&core->lock))
core             1782 drivers/media/radio/radio-wl1273.c 	r = core->read(core, WL1273_MONO_SET, &val);
core             1794 drivers/media/radio/radio-wl1273.c 	mutex_unlock(&core->lock);
core             1802 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core             1809 drivers/media/radio/radio-wl1273.c 	if (core->mode == WL1273_MODE_OFF) {
core             1814 drivers/media/radio/radio-wl1273.c 	if (core->mode == WL1273_MODE_SUSPENDED) {
core             1819 drivers/media/radio/radio-wl1273.c 	r = core->read(core, WL1273_ASIC_ID_GET, &val);
core             1825 drivers/media/radio/radio-wl1273.c 	r = core->read(core, WL1273_ASIC_VER_GET, &val);
core             1831 drivers/media/radio/radio-wl1273.c 	r = core->read(core, WL1273_FIRM_VER_GET, &val);
core             1837 drivers/media/radio/radio-wl1273.c 	r = core->read(core, WL1273_BAND_SET, &val);
core             1843 drivers/media/radio/radio-wl1273.c 	if (core->mode == WL1273_MODE_TX) {
core             1844 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_PUPD_SET, &val);
core             1850 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_CHANL_SET, &val);
core             1855 drivers/media/radio/radio-wl1273.c 	} else if (core->mode == WL1273_MODE_RX) {
core             1858 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_FREQ_SET, &val);
core             1864 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_MOST_MODE_SET, &val);
core             1875 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_MOST_BLEND_SET, &val);
core             1886 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_STEREO_GET, &val);
core             1896 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_RSSI_LVL_GET, &val);
core             1902 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_POWER_SET, &val);
core             1908 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_INT_MASK_SET, &val);
core             1914 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_RDS_SYNC_GET, &val);
core             1926 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_I2S_MODE_CONFIG_SET, &val);
core             1933 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_VOLUME_SET, &val);
core             1983 drivers/media/radio/radio-wl1273.c 	struct wl1273_core *core = radio->core;
core             1987 drivers/media/radio/radio-wl1273.c 	free_irq(core->client->irq, radio);
core             1988 drivers/media/radio/radio-wl1273.c 	core->pdata->free_resources();
core             1999 drivers/media/radio/radio-wl1273.c 	struct wl1273_core **core = pdev->dev.platform_data;
core             2006 drivers/media/radio/radio-wl1273.c 	if (!core) {
core             2027 drivers/media/radio/radio-wl1273.c 	radio->core = *core;
core             2029 drivers/media/radio/radio-wl1273.c 	radio->dev = &radio->core->client->dev;
core             2031 drivers/media/radio/radio-wl1273.c 	radio->core->mode = WL1273_MODE_OFF;
core             2033 drivers/media/radio/radio-wl1273.c 	radio->core->audio_mode = WL1273_AUDIO_ANALOG;
core             2035 drivers/media/radio/radio-wl1273.c 	radio->core->i2s_mode = WL1273_I2S_DEF_MODE;
core             2036 drivers/media/radio/radio-wl1273.c 	radio->core->channel_number = 2;
core             2037 drivers/media/radio/radio-wl1273.c 	radio->core->volume = WL1273_DEFAULT_VOLUME;
core             2045 drivers/media/radio/radio-wl1273.c 	if (radio->core->pdata->request_resources) {
core             2046 drivers/media/radio/radio-wl1273.c 		r = radio->core->pdata->request_resources(radio->core->client);
core             2053 drivers/media/radio/radio-wl1273.c 		dev_dbg(radio->dev, "irq: %d\n", radio->core->client->irq);
core             2055 drivers/media/radio/radio-wl1273.c 		r = request_threaded_irq(radio->core->client->irq, NULL,
core             2141 drivers/media/radio/radio-wl1273.c 	free_irq(radio->core->client->irq, radio);
core             2143 drivers/media/radio/radio-wl1273.c 	radio->core->pdata->free_resources();
core              109 drivers/media/radio/si4713/radio-platform-si4713.c 	return v4l2_device_call_until_err(get_v4l2_dev(file), 0, core,
core             1411 drivers/media/radio/si4713/si4713.c 	.core		= &si4713_subdev_core_ops,
core              415 drivers/media/spi/gs1662.c 	.core = &gs_core_ops,
core             1675 drivers/media/usb/au0828/au0828-video.c 	v4l2_device_call_all(vdev->v4l2_dev, 0, core, log_status);
core             1707 drivers/media/usb/cx231xx/cx231xx-417.c 	call_all(dev, core, log_status);
core              563 drivers/media/usb/cx231xx/cx231xx-audio.c 			cx25840_call(dev, core, load_fw);
core             1267 drivers/media/usb/cx231xx/cx231xx-cards.c 		cx25840_call(dev, core, load_fw);
core              119 drivers/media/usb/dvb-usb/a800.c 	.rc.core = {
core             1406 drivers/media/usb/dvb-usb/cxusb-analog.c 	v4l2_device_call_all(&cxdev->v4l2dev, 0, core, log_status);
core             1480 drivers/media/usb/dvb-usb/cxusb-analog.c 	ret = v4l2_subdev_call(cxdev->cx25840, core, reset, 0);
core             1498 drivers/media/usb/dvb-usb/cxusb-analog.c 	ret = v4l2_subdev_call(cxdev->cx25840, core, s_io_pin_config,
core             1739 drivers/media/usb/dvb-usb/cxusb-analog.c 	ret = v4l2_subdev_call(cxdev->cx25840, core, init,
core             1020 drivers/media/usb/dvb-usb/cxusb.c 	for (i = 0; adap->dev->props.rc.core.rc_codes && i < 5; i++) {
core             1028 drivers/media/usb/dvb-usb/cxusb.c 			adap->dev->props.rc.core.rc_codes = NULL;
core             1854 drivers/media/usb/dvb-usb/cxusb.c 	.rc.core = {
core             1913 drivers/media/usb/dvb-usb/cxusb.c 	.rc.core = {
core             1980 drivers/media/usb/dvb-usb/cxusb.c 	.rc.core = {
core             2039 drivers/media/usb/dvb-usb/cxusb.c 	.rc.core = {
core             2094 drivers/media/usb/dvb-usb/cxusb.c 	.rc.core = {
core             2148 drivers/media/usb/dvb-usb/cxusb.c 	.rc.core = {
core             2205 drivers/media/usb/dvb-usb/cxusb.c 	.rc.core = {
core             2305 drivers/media/usb/dvb-usb/cxusb.c 	.rc.core = {
core             2359 drivers/media/usb/dvb-usb/cxusb.c 	.rc.core = {
core             2414 drivers/media/usb/dvb-usb/cxusb.c 	.rc.core = {
core              680 drivers/media/usb/dvb-usb/dib0700_core.c 	d->props.rc.core.protocol = *rc_proto;
core              744 drivers/media/usb/dvb-usb/dib0700_core.c 	switch (d->props.rc.core.protocol) {
core              899 drivers/media/usb/dvb-usb/dib0700_core.c 				dev->props.rc.core.bulk_mode = true;
core              901 drivers/media/usb/dvb-usb/dib0700_core.c 				dev->props.rc.core.bulk_mode = false;
core              550 drivers/media/usb/dvb-usb/dib0700_devices.c 	switch (d->props.rc.core.protocol) {
core             4003 drivers/media/usb/dvb-usb/dib0700_devices.c 		.rc.core = {
core             4043 drivers/media/usb/dvb-usb/dib0700_devices.c 		.rc.core = {
core             4108 drivers/media/usb/dvb-usb/dib0700_devices.c 		.rc.core = {
core             4152 drivers/media/usb/dvb-usb/dib0700_devices.c 		.rc.core = {
core             4233 drivers/media/usb/dvb-usb/dib0700_devices.c 		.rc.core = {
core             4278 drivers/media/usb/dvb-usb/dib0700_devices.c 		.rc.core = {
core             4335 drivers/media/usb/dvb-usb/dib0700_devices.c 		.rc.core = {
core             4401 drivers/media/usb/dvb-usb/dib0700_devices.c 		.rc.core = {
core             4450 drivers/media/usb/dvb-usb/dib0700_devices.c 		.rc.core = {
core             4523 drivers/media/usb/dvb-usb/dib0700_devices.c 		.rc.core = {
core             4559 drivers/media/usb/dvb-usb/dib0700_devices.c 		.rc.core = {
core             4635 drivers/media/usb/dvb-usb/dib0700_devices.c 		.rc.core = {
core             4679 drivers/media/usb/dvb-usb/dib0700_devices.c 		.rc.core = {
core             4728 drivers/media/usb/dvb-usb/dib0700_devices.c 		.rc.core = {
core             4765 drivers/media/usb/dvb-usb/dib0700_devices.c 		.rc.core = {
core             4802 drivers/media/usb/dvb-usb/dib0700_devices.c 		.rc.core = {
core             4839 drivers/media/usb/dvb-usb/dib0700_devices.c 		.rc.core = {
core             4876 drivers/media/usb/dvb-usb/dib0700_devices.c 		.rc.core = {
core             4913 drivers/media/usb/dvb-usb/dib0700_devices.c 		.rc.core = {
core             4964 drivers/media/usb/dvb-usb/dib0700_devices.c 		.rc.core = {
core             4999 drivers/media/usb/dvb-usb/dib0700_devices.c 		.rc.core = {
core             5036 drivers/media/usb/dvb-usb/dib0700_devices.c 		.rc.core = {
core             5074 drivers/media/usb/dvb-usb/dib0700_devices.c 		.rc.core = {
core             5128 drivers/media/usb/dvb-usb/dib0700_devices.c 		.rc.core = {
core              209 drivers/media/usb/dvb-usb/dtt200u.c 	.rc.core = {
core              261 drivers/media/usb/dvb-usb/dtt200u.c 	.rc.core = {
core              313 drivers/media/usb/dvb-usb/dtt200u.c 	.rc.core = {
core              365 drivers/media/usb/dvb-usb/dtt200u.c 	.rc.core = {
core              258 drivers/media/usb/dvb-usb/dvb-usb-remote.c 	if (dvb_usb_disable_rc_polling || d->props.rc.core.bulk_mode)
core              261 drivers/media/usb/dvb-usb/dvb-usb-remote.c 	err = d->props.rc.core.rc_query(d);
core              266 drivers/media/usb/dvb-usb/dvb-usb-remote.c 			      msecs_to_jiffies(d->props.rc.core.rc_interval));
core              274 drivers/media/usb/dvb-usb/dvb-usb-remote.c 	dev = rc_allocate_device(d->props.rc.core.driver_type);
core              278 drivers/media/usb/dvb-usb/dvb-usb-remote.c 	dev->driver_name = d->props.rc.core.module_name;
core              279 drivers/media/usb/dvb-usb/dvb-usb-remote.c 	dev->map_name = d->props.rc.core.rc_codes;
core              280 drivers/media/usb/dvb-usb/dvb-usb-remote.c 	dev->change_protocol = d->props.rc.core.change_protocol;
core              281 drivers/media/usb/dvb-usb/dvb-usb-remote.c 	dev->allowed_protocols = d->props.rc.core.allowed_protos;
core              287 drivers/media/usb/dvb-usb/dvb-usb-remote.c 	dev->scancode_mask = d->props.rc.core.scancode_mask;
core              298 drivers/media/usb/dvb-usb/dvb-usb-remote.c 	if (!d->props.rc.core.rc_query || d->props.rc.core.bulk_mode)
core              304 drivers/media/usb/dvb-usb/dvb-usb-remote.c 	rc_interval = d->props.rc.core.rc_interval;
core              322 drivers/media/usb/dvb-usb/dvb-usb-remote.c 	else if (d->props.rc.core.rc_codes)
core              300 drivers/media/usb/dvb-usb/dvb-usb.h 		struct dvb_rc core;
core             1838 drivers/media/usb/dvb-usb/dw2102.c 			dw2104_properties.rc.core.rc_codes = RC_MAP_TEVII_NEC;
core             1907 drivers/media/usb/dvb-usb/dw2102.c 	.rc.core = {
core             1962 drivers/media/usb/dvb-usb/dw2102.c 	.rc.core = {
core             2013 drivers/media/usb/dvb-usb/dw2102.c 	.rc.core = {
core             2062 drivers/media/usb/dvb-usb/dw2102.c 	.rc.core = {
core             2152 drivers/media/usb/dvb-usb/dw2102.c 	.rc.core = {
core             2221 drivers/media/usb/dvb-usb/dw2102.c 	.rc.core = {
core             2270 drivers/media/usb/dvb-usb/dw2102.c 	.rc.core = {
core             2344 drivers/media/usb/dvb-usb/dw2102.c 	p1100->rc.core.rc_query = prof_rc_query;
core             2345 drivers/media/usb/dvb-usb/dw2102.c 	p1100->rc.core.rc_codes = RC_MAP_TBS_NEC;
core             2367 drivers/media/usb/dvb-usb/dw2102.c 	p7500->rc.core.rc_query = prof_rc_query;
core             2368 drivers/media/usb/dvb-usb/dw2102.c 	p7500->rc.core.rc_codes = RC_MAP_TBS_NEC;
core               81 drivers/media/usb/dvb-usb/m920x.c 	if (d->props.rc.legacy.rc_query || d->props.rc.core.rc_query) {
core             1201 drivers/media/usb/dvb-usb/m920x.c 	.rc.core = {
core              955 drivers/media/usb/dvb-usb/pctv452e.c 	.rc.core = {
core             1008 drivers/media/usb/dvb-usb/pctv452e.c 	.rc.core = {
core              746 drivers/media/usb/dvb-usb/technisat-usb2.c 	.rc.core = {
core              762 drivers/media/usb/dvb-usb/ttusb2.c 	.rc.core = {
core              212 drivers/media/usb/dvb-usb/vp7045.c 	.rc.core = {
core              189 drivers/media/usb/em28xx/em28xx-video.c 	v4l2_device_call_all(v4l2_dev, 0, core,  reset, 0);
core              759 drivers/media/usb/go7007/go7007-v4l2.c 	return call_all(&go->v4l2_dev, core, log_status);
core              489 drivers/media/usb/go7007/s2250-board.c 	.core = &s2250_core_ops,
core              840 drivers/media/usb/msi2500/msi2500.c 	v4l2_subdev_call(dev->v4l2_subdev, core, s_power, 1);
core              876 drivers/media/usb/msi2500/msi2500.c 	v4l2_subdev_call(dev->v4l2_subdev, core, s_power, 0);
core             2159 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 	v4l2_device_call_all(&hdw->v4l2_dev, 0, core, load_fw);
core             3308 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 		v4l2_device_call_all(&hdw->v4l2_dev, 0, core, log_status);
core             4011 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 				     core, reset, 0);
core              359 drivers/media/usb/stk1160/stk1160-core.c 	v4l2_device_call_all(&dev->v4l2_dev, 0, core, reset, 0);
core               30 drivers/media/usb/tm6000/tm6000-alsa.c 		printk(KERN_INFO "%s/1: " fmt, chip->core->name , ## arg); \
core               70 drivers/media/usb/tm6000/tm6000-alsa.c 	struct tm6000_core *core = chip->core;
core               75 drivers/media/usb/tm6000/tm6000-alsa.c 	tm6000_set_reg_mask(core, TM6010_REQ07_RCC_ACTIVE_IF, 0x40, 0x40);
core               77 drivers/media/usb/tm6000/tm6000-alsa.c 	tm6000_set_audio_bitrate(core, 48000);
core               87 drivers/media/usb/tm6000/tm6000-alsa.c 	struct tm6000_core *core = chip->core;
core               92 drivers/media/usb/tm6000/tm6000-alsa.c 	tm6000_set_reg_mask(core, TM6010_REQ07_RCC_ACTIVE_IF, 0x00, 0x40);
core              191 drivers/media/usb/tm6000/tm6000-alsa.c 	struct tm6000_core *core = chip->core;
core              193 drivers/media/usb/tm6000/tm6000-alsa.c 	if (atomic_read(&core->stream_started) > 0) {
core              194 drivers/media/usb/tm6000/tm6000-alsa.c 		atomic_set(&core->stream_started, 0);
core              195 drivers/media/usb/tm6000/tm6000-alsa.c 		schedule_work(&core->wq_trigger);
core              201 drivers/media/usb/tm6000/tm6000-alsa.c static int tm6000_fillbuf(struct tm6000_core *core, char *buf, int size)
core              203 drivers/media/usb/tm6000/tm6000-alsa.c 	struct snd_tm6000_card *chip = core->adev;
core              210 drivers/media/usb/tm6000/tm6000-alsa.c 	if (atomic_read(&core->stream_started) == 0)
core              294 drivers/media/usb/tm6000/tm6000-alsa.c 	struct tm6000_core *core = chip->core;
core              296 drivers/media/usb/tm6000/tm6000-alsa.c 	if (atomic_read(&core->stream_started) > 0) {
core              297 drivers/media/usb/tm6000/tm6000-alsa.c 		atomic_set(&core->stream_started, 0);
core              298 drivers/media/usb/tm6000/tm6000-alsa.c 		schedule_work(&core->wq_trigger);
core              324 drivers/media/usb/tm6000/tm6000-alsa.c 	struct tm6000_core *core = container_of(work, struct tm6000_core,
core              326 drivers/media/usb/tm6000/tm6000-alsa.c 	struct snd_tm6000_card *chip = core->adev;
core              328 drivers/media/usb/tm6000/tm6000-alsa.c 	if (atomic_read(&core->stream_started)) {
core              340 drivers/media/usb/tm6000/tm6000-alsa.c 	struct tm6000_core *core = chip->core;
core              347 drivers/media/usb/tm6000/tm6000-alsa.c 		atomic_set(&core->stream_started, 1);
core              352 drivers/media/usb/tm6000/tm6000-alsa.c 		atomic_set(&core->stream_started, 0);
core              358 drivers/media/usb/tm6000/tm6000-alsa.c 	schedule_work(&core->wq_trigger);
core              448 drivers/media/usb/tm6000/tm6000-alsa.c 	chip->core = dev;
core              144 drivers/media/usb/tm6000/tm6000.h 	struct tm6000_core		*core;
core             1393 drivers/media/v4l2-core/tuner-core.c 	.core = &tuner_core_ops,
core             2444 drivers/media/v4l2-core/v4l2-ioctl.c 				return v4l2_subdev_call(sd, core, g_register, p);
core             2472 drivers/media/v4l2-core/v4l2-ioctl.c 				return v4l2_subdev_call(sd, core, s_register, p);
core             2512 drivers/media/v4l2-core/v4l2-ioctl.c 			if (sd->ops->core && sd->ops->core->s_register)
core             2514 drivers/media/v4l2-core/v4l2-ioctl.c 			if (sd->ops->core && sd->ops->core->g_register)
core              374 drivers/media/v4l2-core/v4l2-mc.c 		ret = v4l2_subdev_call(subdev, core, s_power, 1);
core              383 drivers/media/v4l2-core/v4l2-mc.c 		v4l2_subdev_call(subdev, core, s_power, 0);
core              396 drivers/media/v4l2-core/v4l2-subdev.c 		return v4l2_subdev_call(sd, core, subscribe_event, vfh, arg);
core              399 drivers/media/v4l2-core/v4l2-subdev.c 		return v4l2_subdev_call(sd, core, unsubscribe_event, vfh, arg);
core              408 drivers/media/v4l2-core/v4l2-subdev.c 		return v4l2_subdev_call(sd, core, g_register, p);
core              416 drivers/media/v4l2-core/v4l2-subdev.c 		return v4l2_subdev_call(sd, core, s_register, p);
core              424 drivers/media/v4l2-core/v4l2-subdev.c 		if (sd->ops->core && sd->ops->core->s_register)
core              426 drivers/media/v4l2-core/v4l2-subdev.c 		if (sd->ops->core && sd->ops->core->g_register)
core              438 drivers/media/v4l2-core/v4l2-subdev.c 		ret = v4l2_subdev_call(sd, core, log_status);
core              608 drivers/media/v4l2-core/v4l2-subdev.c 		return v4l2_subdev_call(sd, core, ioctl, cmd, arg);
core              642 drivers/media/v4l2-core/v4l2-subdev.c 	return v4l2_subdev_call(sd, core, compat_ioctl32, cmd, arg);
core              171 drivers/mfd/si476x-cmd.c static int si476x_core_parse_and_nag_about_error(struct si476x_core *core)
core              177 drivers/mfd/si476x-cmd.c 	if (core->revision != SI476X_REVISION_A10) {
core              178 drivers/mfd/si476x-cmd.c 		err = si476x_core_i2c_xfer(core, SI476X_I2C_RECV,
core              227 drivers/mfd/si476x-cmd.c 			dev_err(&core->client->dev,
core              230 drivers/mfd/si476x-cmd.c 			dev_err(&core->client->dev,
core              257 drivers/mfd/si476x-cmd.c static int si476x_core_send_command(struct si476x_core *core,
core              265 drivers/mfd/si476x-cmd.c 	struct i2c_client *client = core->client;
core              284 drivers/mfd/si476x-cmd.c 	err = si476x_core_i2c_xfer(core, SI476X_I2C_SEND,
core              287 drivers/mfd/si476x-cmd.c 		dev_err(&core->client->dev,
core              295 drivers/mfd/si476x-cmd.c 	atomic_set(&core->cts, 0);
core              298 drivers/mfd/si476x-cmd.c 	if (!wait_event_timeout(core->command,
core              299 drivers/mfd/si476x-cmd.c 				atomic_read(&core->cts),
core              301 drivers/mfd/si476x-cmd.c 		dev_warn(&core->client->dev,
core              312 drivers/mfd/si476x-cmd.c 	if (unlikely(!core->client->irq && command == CMD_POWER_UP)) {
core              313 drivers/mfd/si476x-cmd.c 		if (!wait_event_timeout(core->command,
core              314 drivers/mfd/si476x-cmd.c 					atomic_read(&core->cts),
core              316 drivers/mfd/si476x-cmd.c 			dev_warn(&core->client->dev,
core              322 drivers/mfd/si476x-cmd.c 	err = si476x_core_i2c_xfer(core, SI476X_I2C_RECV, resp, respn);
core              324 drivers/mfd/si476x-cmd.c 		dev_err(&core->client->dev,
core              335 drivers/mfd/si476x-cmd.c 		dev_err(&core->client->dev,
core              337 drivers/mfd/si476x-cmd.c 		err = si476x_core_parse_and_nag_about_error(core);
core              347 drivers/mfd/si476x-cmd.c static int si476x_cmd_clear_stc(struct si476x_core *core)
core              358 drivers/mfd/si476x-cmd.c 	switch (core->power_up_parameters.func) {
core              360 drivers/mfd/si476x-cmd.c 		err = si476x_core_cmd_fm_rsq_status(core, &args, NULL);
core              363 drivers/mfd/si476x-cmd.c 		err = si476x_core_cmd_am_rsq_status(core, &args, NULL);
core              372 drivers/mfd/si476x-cmd.c static int si476x_cmd_tune_seek_freq(struct si476x_core *core,
core              380 drivers/mfd/si476x-cmd.c 	atomic_set(&core->stc, 0);
core              381 drivers/mfd/si476x-cmd.c 	err = si476x_core_send_command(core, cmd, args, argn, resp, respn,
core              384 drivers/mfd/si476x-cmd.c 		wait_event_killable(core->tuning,
core              385 drivers/mfd/si476x-cmd.c 				    atomic_read(&core->stc));
core              386 drivers/mfd/si476x-cmd.c 		si476x_cmd_clear_stc(core);
core              404 drivers/mfd/si476x-cmd.c int si476x_core_cmd_func_info(struct si476x_core *core,
core              410 drivers/mfd/si476x-cmd.c 	err = si476x_core_send_command(core, CMD_FUNC_INFO,
core              435 drivers/mfd/si476x-cmd.c int si476x_core_cmd_set_property(struct si476x_core *core,
core              447 drivers/mfd/si476x-cmd.c 	return si476x_core_send_command(core, CMD_SET_PROPERTY,
core              462 drivers/mfd/si476x-cmd.c int si476x_core_cmd_get_property(struct si476x_core *core, u16 property)
core              472 drivers/mfd/si476x-cmd.c 	err = si476x_core_send_command(core, CMD_GET_PROPERTY,
core              520 drivers/mfd/si476x-cmd.c int si476x_core_cmd_dig_audio_pin_cfg(struct  si476x_core *core,
core              534 drivers/mfd/si476x-cmd.c 	return si476x_core_send_command(core, CMD_DIG_AUDIO_PIN_CFG,
core              569 drivers/mfd/si476x-cmd.c int si476x_core_cmd_zif_pin_cfg(struct si476x_core *core,
core              583 drivers/mfd/si476x-cmd.c 	return si476x_core_send_command(core, CMD_ZIF_PIN_CFG,
core              626 drivers/mfd/si476x-cmd.c int si476x_core_cmd_ic_link_gpo_ctl_pin_cfg(struct si476x_core *core,
core              640 drivers/mfd/si476x-cmd.c 	return si476x_core_send_command(core, CMD_IC_LINK_GPO_CTL_PIN_CFG,
core              660 drivers/mfd/si476x-cmd.c int si476x_core_cmd_ana_audio_pin_cfg(struct si476x_core *core,
core              668 drivers/mfd/si476x-cmd.c 	return si476x_core_send_command(core, CMD_ANA_AUDIO_PIN_CFG,
core              694 drivers/mfd/si476x-cmd.c static int si476x_core_cmd_intb_pin_cfg_a10(struct si476x_core *core,
core              704 drivers/mfd/si476x-cmd.c 	return si476x_core_send_command(core, CMD_INTB_PIN_CFG,
core              710 drivers/mfd/si476x-cmd.c static int si476x_core_cmd_intb_pin_cfg_a20(struct si476x_core *core,
core              720 drivers/mfd/si476x-cmd.c 	return si476x_core_send_command(core, CMD_INTB_PIN_CFG,
core              743 drivers/mfd/si476x-cmd.c int si476x_core_cmd_am_rsq_status(struct si476x_core *core,
core              754 drivers/mfd/si476x-cmd.c 	err = si476x_core_send_command(core, CMD_AM_RSQ_STATUS,
core              792 drivers/mfd/si476x-cmd.c int si476x_core_cmd_fm_acf_status(struct si476x_core *core,
core              804 drivers/mfd/si476x-cmd.c 	err = si476x_core_send_command(core, CMD_FM_ACF_STATUS,
core              828 drivers/mfd/si476x-cmd.c int si476x_core_cmd_am_acf_status(struct si476x_core *core,
core              840 drivers/mfd/si476x-cmd.c 	err = si476x_core_send_command(core, CMD_AM_ACF_STATUS,
core              876 drivers/mfd/si476x-cmd.c int si476x_core_cmd_fm_seek_start(struct si476x_core *core,
core              884 drivers/mfd/si476x-cmd.c 	return si476x_cmd_tune_seek_freq(core, CMD_FM_SEEK_START,
core              902 drivers/mfd/si476x-cmd.c int si476x_core_cmd_fm_rds_status(struct si476x_core *core,
core              914 drivers/mfd/si476x-cmd.c 	err = si476x_core_send_command(core, CMD_FM_RDS_STATUS,
core              968 drivers/mfd/si476x-cmd.c int si476x_core_cmd_fm_rds_blockcount(struct si476x_core *core,
core              981 drivers/mfd/si476x-cmd.c 	err = si476x_core_send_command(core, CMD_FM_RDS_BLOCKCOUNT,
core              996 drivers/mfd/si476x-cmd.c int si476x_core_cmd_fm_phase_diversity(struct si476x_core *core,
core             1004 drivers/mfd/si476x-cmd.c 	return si476x_core_send_command(core, CMD_FM_PHASE_DIVERSITY,
core             1021 drivers/mfd/si476x-cmd.c int si476x_core_cmd_fm_phase_div_status(struct si476x_core *core)
core             1026 drivers/mfd/si476x-cmd.c 	err = si476x_core_send_command(core, CMD_FM_PHASE_DIV_STATUS,
core             1050 drivers/mfd/si476x-cmd.c int si476x_core_cmd_am_seek_start(struct si476x_core *core,
core             1058 drivers/mfd/si476x-cmd.c 	return si476x_cmd_tune_seek_freq(core,  CMD_AM_SEEK_START,
core             1066 drivers/mfd/si476x-cmd.c static int si476x_core_cmd_power_up_a10(struct si476x_core *core,
core             1070 drivers/mfd/si476x-cmd.c 	const bool intsel = (core->pinmux.a1 == SI476X_A1_IRQ);
core             1071 drivers/mfd/si476x-cmd.c 	const bool ctsen  = (core->client->irq != 0);
core             1083 drivers/mfd/si476x-cmd.c 	return si476x_core_send_command(core, CMD_POWER_UP,
core             1089 drivers/mfd/si476x-cmd.c static int si476x_core_cmd_power_up_a20(struct si476x_core *core,
core             1093 drivers/mfd/si476x-cmd.c 	const bool intsel = (core->pinmux.a1 == SI476X_A1_IRQ);
core             1094 drivers/mfd/si476x-cmd.c 	const bool ctsen  = (core->client->irq != 0);
core             1105 drivers/mfd/si476x-cmd.c 	return si476x_core_send_command(core, CMD_POWER_UP,
core             1111 drivers/mfd/si476x-cmd.c static int si476x_core_cmd_power_down_a10(struct si476x_core *core,
core             1116 drivers/mfd/si476x-cmd.c 	return si476x_core_send_command(core, CMD_POWER_DOWN,
core             1122 drivers/mfd/si476x-cmd.c static int si476x_core_cmd_power_down_a20(struct si476x_core *core,
core             1129 drivers/mfd/si476x-cmd.c 	return si476x_core_send_command(core, CMD_POWER_DOWN,
core             1135 drivers/mfd/si476x-cmd.c static int si476x_core_cmd_am_tune_freq_a10(struct si476x_core *core,
core             1147 drivers/mfd/si476x-cmd.c 	return si476x_cmd_tune_seek_freq(core, CMD_AM_TUNE_FREQ, args,
core             1152 drivers/mfd/si476x-cmd.c static int si476x_core_cmd_am_tune_freq_a20(struct si476x_core *core,
core             1163 drivers/mfd/si476x-cmd.c 	return si476x_cmd_tune_seek_freq(core, CMD_AM_TUNE_FREQ,
core             1168 drivers/mfd/si476x-cmd.c static int si476x_core_cmd_fm_rsq_status_a10(struct si476x_core *core,
core             1179 drivers/mfd/si476x-cmd.c 	err = si476x_core_send_command(core, CMD_FM_RSQ_STATUS,
core             1221 drivers/mfd/si476x-cmd.c static int si476x_core_cmd_fm_rsq_status_a20(struct si476x_core *core,
core             1233 drivers/mfd/si476x-cmd.c 	err = si476x_core_send_command(core, CMD_FM_RSQ_STATUS,
core             1276 drivers/mfd/si476x-cmd.c static int si476x_core_cmd_fm_rsq_status_a30(struct si476x_core *core,
core             1288 drivers/mfd/si476x-cmd.c 	err = si476x_core_send_command(core, CMD_FM_RSQ_STATUS,
core             1338 drivers/mfd/si476x-cmd.c static int si476x_core_cmd_fm_tune_freq_a10(struct si476x_core *core,
core             1351 drivers/mfd/si476x-cmd.c 	return si476x_cmd_tune_seek_freq(core, CMD_FM_TUNE_FREQ,
core             1356 drivers/mfd/si476x-cmd.c static int si476x_core_cmd_fm_tune_freq_a20(struct si476x_core *core,
core             1367 drivers/mfd/si476x-cmd.c 	return si476x_cmd_tune_seek_freq(core, CMD_FM_TUNE_FREQ,
core             1372 drivers/mfd/si476x-cmd.c static int si476x_core_cmd_agc_status_a20(struct si476x_core *core,
core             1381 drivers/mfd/si476x-cmd.c 	err = si476x_core_send_command(core, CMD_AGC_STATUS,
core             1400 drivers/mfd/si476x-cmd.c static int si476x_core_cmd_agc_status_a10(struct si476x_core *core,
core             1409 drivers/mfd/si476x-cmd.c 	err = si476x_core_send_command(core, CMD_AGC_STATUS,
core             1424 drivers/mfd/si476x-cmd.c typedef int (*tune_freq_func_t) (struct si476x_core *core,
core             1442 drivers/mfd/si476x-cmd.c 	int (*intb_pin_cfg)(struct si476x_core *core,
core             1475 drivers/mfd/si476x-cmd.c int si476x_core_cmd_power_up(struct si476x_core *core,
core             1478 drivers/mfd/si476x-cmd.c 	BUG_ON(core->revision > SI476X_REVISION_A30 ||
core             1479 drivers/mfd/si476x-cmd.c 	       core->revision == -1);
core             1480 drivers/mfd/si476x-cmd.c 	return si476x_cmds_vtable[core->revision].power_up(core, args);
core             1484 drivers/mfd/si476x-cmd.c int si476x_core_cmd_power_down(struct si476x_core *core,
core             1487 drivers/mfd/si476x-cmd.c 	BUG_ON(core->revision > SI476X_REVISION_A30 ||
core             1488 drivers/mfd/si476x-cmd.c 	       core->revision == -1);
core             1489 drivers/mfd/si476x-cmd.c 	return si476x_cmds_vtable[core->revision].power_down(core, args);
core             1493 drivers/mfd/si476x-cmd.c int si476x_core_cmd_fm_tune_freq(struct si476x_core *core,
core             1496 drivers/mfd/si476x-cmd.c 	BUG_ON(core->revision > SI476X_REVISION_A30 ||
core             1497 drivers/mfd/si476x-cmd.c 	       core->revision == -1);
core             1498 drivers/mfd/si476x-cmd.c 	return si476x_cmds_vtable[core->revision].fm_tune_freq(core, args);
core             1502 drivers/mfd/si476x-cmd.c int si476x_core_cmd_am_tune_freq(struct si476x_core *core,
core             1505 drivers/mfd/si476x-cmd.c 	BUG_ON(core->revision > SI476X_REVISION_A30 ||
core             1506 drivers/mfd/si476x-cmd.c 	       core->revision == -1);
core             1507 drivers/mfd/si476x-cmd.c 	return si476x_cmds_vtable[core->revision].am_tune_freq(core, args);
core             1511 drivers/mfd/si476x-cmd.c int si476x_core_cmd_fm_rsq_status(struct si476x_core *core,
core             1516 drivers/mfd/si476x-cmd.c 	BUG_ON(core->revision > SI476X_REVISION_A30 ||
core             1517 drivers/mfd/si476x-cmd.c 	       core->revision == -1);
core             1518 drivers/mfd/si476x-cmd.c 	return si476x_cmds_vtable[core->revision].fm_rsq_status(core, args,
core             1523 drivers/mfd/si476x-cmd.c int si476x_core_cmd_agc_status(struct si476x_core *core,
core             1527 drivers/mfd/si476x-cmd.c 	BUG_ON(core->revision > SI476X_REVISION_A30 ||
core             1528 drivers/mfd/si476x-cmd.c 	       core->revision == -1);
core             1529 drivers/mfd/si476x-cmd.c 	return si476x_cmds_vtable[core->revision].agc_status(core, report);
core             1533 drivers/mfd/si476x-cmd.c int si476x_core_cmd_intb_pin_cfg(struct si476x_core *core,
core             1537 drivers/mfd/si476x-cmd.c 	BUG_ON(core->revision > SI476X_REVISION_A30 ||
core             1538 drivers/mfd/si476x-cmd.c 	       core->revision == -1);
core             1540 drivers/mfd/si476x-cmd.c 	return si476x_cmds_vtable[core->revision].intb_pin_cfg(core, intb, a1);
core               36 drivers/mfd/si476x-i2c.c static int si476x_core_config_pinmux(struct si476x_core *core)
core               39 drivers/mfd/si476x-i2c.c 	dev_dbg(&core->client->dev, "Configuring pinmux\n");
core               40 drivers/mfd/si476x-i2c.c 	err = si476x_core_cmd_dig_audio_pin_cfg(core,
core               41 drivers/mfd/si476x-i2c.c 						core->pinmux.dclk,
core               42 drivers/mfd/si476x-i2c.c 						core->pinmux.dfs,
core               43 drivers/mfd/si476x-i2c.c 						core->pinmux.dout,
core               44 drivers/mfd/si476x-i2c.c 						core->pinmux.xout);
core               46 drivers/mfd/si476x-i2c.c 		dev_err(&core->client->dev,
core               52 drivers/mfd/si476x-i2c.c 	err = si476x_core_cmd_zif_pin_cfg(core,
core               53 drivers/mfd/si476x-i2c.c 					  core->pinmux.iqclk,
core               54 drivers/mfd/si476x-i2c.c 					  core->pinmux.iqfs,
core               55 drivers/mfd/si476x-i2c.c 					  core->pinmux.iout,
core               56 drivers/mfd/si476x-i2c.c 					  core->pinmux.qout);
core               58 drivers/mfd/si476x-i2c.c 		dev_err(&core->client->dev,
core               64 drivers/mfd/si476x-i2c.c 	err = si476x_core_cmd_ic_link_gpo_ctl_pin_cfg(core,
core               65 drivers/mfd/si476x-i2c.c 						      core->pinmux.icin,
core               66 drivers/mfd/si476x-i2c.c 						      core->pinmux.icip,
core               67 drivers/mfd/si476x-i2c.c 						      core->pinmux.icon,
core               68 drivers/mfd/si476x-i2c.c 						      core->pinmux.icop);
core               70 drivers/mfd/si476x-i2c.c 		dev_err(&core->client->dev,
core               76 drivers/mfd/si476x-i2c.c 	err = si476x_core_cmd_ana_audio_pin_cfg(core,
core               77 drivers/mfd/si476x-i2c.c 						core->pinmux.lrout);
core               79 drivers/mfd/si476x-i2c.c 		dev_err(&core->client->dev,
core               85 drivers/mfd/si476x-i2c.c 	err = si476x_core_cmd_intb_pin_cfg(core,
core               86 drivers/mfd/si476x-i2c.c 					   core->pinmux.intb,
core               87 drivers/mfd/si476x-i2c.c 					   core->pinmux.a1);
core               89 drivers/mfd/si476x-i2c.c 		dev_err(&core->client->dev,
core               98 drivers/mfd/si476x-i2c.c static inline void si476x_core_schedule_polling_work(struct si476x_core *core)
core              100 drivers/mfd/si476x-i2c.c 	schedule_delayed_work(&core->status_monitor,
core              127 drivers/mfd/si476x-i2c.c int si476x_core_start(struct si476x_core *core, bool soft)
core              129 drivers/mfd/si476x-i2c.c 	struct i2c_client *client = core->client;
core              133 drivers/mfd/si476x-i2c.c 		if (gpio_is_valid(core->gpio_reset))
core              134 drivers/mfd/si476x-i2c.c 			gpio_set_value_cansleep(core->gpio_reset, 1);
core              142 drivers/mfd/si476x-i2c.c 			atomic_set(&core->is_alive, 1);
core              143 drivers/mfd/si476x-i2c.c 			si476x_core_schedule_polling_work(core);
core              149 drivers/mfd/si476x-i2c.c 			atomic_set(&core->is_alive, 1);
core              150 drivers/mfd/si476x-i2c.c 			si476x_core_schedule_polling_work(core);
core              154 drivers/mfd/si476x-i2c.c 	err = si476x_core_cmd_power_up(core,
core              155 drivers/mfd/si476x-i2c.c 				       &core->power_up_parameters);
core              158 drivers/mfd/si476x-i2c.c 		dev_err(&core->client->dev,
core              165 drivers/mfd/si476x-i2c.c 		atomic_set(&core->is_alive, 1);
core              167 drivers/mfd/si476x-i2c.c 	err = si476x_core_config_pinmux(core);
core              169 drivers/mfd/si476x-i2c.c 		dev_err(&core->client->dev,
core              176 drivers/mfd/si476x-i2c.c 		err = regmap_write(core->regmap,
core              182 drivers/mfd/si476x-i2c.c 			dev_err(&core->client->dev,
core              193 drivers/mfd/si476x-i2c.c 		atomic_set(&core->is_alive, 0);
core              198 drivers/mfd/si476x-i2c.c 		cancel_delayed_work_sync(&core->status_monitor);
core              200 drivers/mfd/si476x-i2c.c 	if (gpio_is_valid(core->gpio_reset))
core              201 drivers/mfd/si476x-i2c.c 		gpio_set_value_cansleep(core->gpio_reset, 0);
core              221 drivers/mfd/si476x-i2c.c int si476x_core_stop(struct si476x_core *core, bool soft)
core              224 drivers/mfd/si476x-i2c.c 	atomic_set(&core->is_alive, 0);
core              234 drivers/mfd/si476x-i2c.c 		err = si476x_core_cmd_power_down(core, &args);
core              240 drivers/mfd/si476x-i2c.c 	if (core->client->irq)
core              241 drivers/mfd/si476x-i2c.c 		disable_irq(core->client->irq);
core              243 drivers/mfd/si476x-i2c.c 		cancel_delayed_work_sync(&core->status_monitor);
core              246 drivers/mfd/si476x-i2c.c 		if (gpio_is_valid(core->gpio_reset))
core              247 drivers/mfd/si476x-i2c.c 			gpio_set_value_cansleep(core->gpio_reset, 0);
core              265 drivers/mfd/si476x-i2c.c int si476x_core_set_power_state(struct si476x_core *core,
core              275 drivers/mfd/si476x-i2c.c 	if (core->power_state == SI476X_POWER_INCONSISTENT) {
core              276 drivers/mfd/si476x-i2c.c 		dev_err(&core->client->dev,
core              281 drivers/mfd/si476x-i2c.c 	if (next_state != core->power_state) {
core              284 drivers/mfd/si476x-i2c.c 			err = regulator_bulk_enable(ARRAY_SIZE(core->supplies),
core              285 drivers/mfd/si476x-i2c.c 						    core->supplies);
core              287 drivers/mfd/si476x-i2c.c 				core->power_state = SI476X_POWER_INCONSISTENT;
core              297 drivers/mfd/si476x-i2c.c 			err = si476x_core_start(core, false);
core              301 drivers/mfd/si476x-i2c.c 			core->power_state = next_state;
core              305 drivers/mfd/si476x-i2c.c 			core->power_state = next_state;
core              306 drivers/mfd/si476x-i2c.c 			err = si476x_core_stop(core, false);
core              308 drivers/mfd/si476x-i2c.c 				core->power_state = SI476X_POWER_INCONSISTENT;
core              310 drivers/mfd/si476x-i2c.c 			err = regulator_bulk_disable(ARRAY_SIZE(core->supplies),
core              311 drivers/mfd/si476x-i2c.c 						     core->supplies);
core              313 drivers/mfd/si476x-i2c.c 				core->power_state = SI476X_POWER_INCONSISTENT;
core              330 drivers/mfd/si476x-i2c.c static inline void si476x_core_report_drainer_stop(struct si476x_core *core)
core              332 drivers/mfd/si476x-i2c.c 	mutex_lock(&core->rds_drainer_status_lock);
core              333 drivers/mfd/si476x-i2c.c 	core->rds_drainer_is_working = false;
core              334 drivers/mfd/si476x-i2c.c 	mutex_unlock(&core->rds_drainer_status_lock);
core              343 drivers/mfd/si476x-i2c.c static inline void si476x_core_start_rds_drainer_once(struct si476x_core *core)
core              345 drivers/mfd/si476x-i2c.c 	mutex_lock(&core->rds_drainer_status_lock);
core              346 drivers/mfd/si476x-i2c.c 	if (!core->rds_drainer_is_working) {
core              347 drivers/mfd/si476x-i2c.c 		core->rds_drainer_is_working = true;
core              348 drivers/mfd/si476x-i2c.c 		schedule_work(&core->rds_fifo_drainer);
core              350 drivers/mfd/si476x-i2c.c 	mutex_unlock(&core->rds_drainer_status_lock);
core              363 drivers/mfd/si476x-i2c.c 	struct si476x_core *core = container_of(work, struct si476x_core,
core              368 drivers/mfd/si476x-i2c.c 	si476x_core_lock(core);
core              369 drivers/mfd/si476x-i2c.c 	err = si476x_core_cmd_fm_rds_status(core, true, false, false, &report);
core              372 drivers/mfd/si476x-i2c.c 		dev_dbg(&core->client->dev,
core              375 drivers/mfd/si476x-i2c.c 			err = si476x_core_cmd_fm_rds_status(core, false, false,
core              380 drivers/mfd/si476x-i2c.c 			kfifo_in(&core->rds_fifo, report.rds,
core              382 drivers/mfd/si476x-i2c.c 			dev_dbg(&core->client->dev, "RDS data:\n %*ph\n",
core              385 drivers/mfd/si476x-i2c.c 		dev_dbg(&core->client->dev, "Drrrrained!\n");
core              386 drivers/mfd/si476x-i2c.c 		wake_up_interruptible(&core->rds_read_queue);
core              390 drivers/mfd/si476x-i2c.c 	si476x_core_unlock(core);
core              391 drivers/mfd/si476x-i2c.c 	si476x_core_report_drainer_stop(core);
core              403 drivers/mfd/si476x-i2c.c static void si476x_core_pronounce_dead(struct si476x_core *core)
core              405 drivers/mfd/si476x-i2c.c 	dev_info(&core->client->dev, "Core device is dead.\n");
core              407 drivers/mfd/si476x-i2c.c 	atomic_set(&core->is_alive, 0);
core              410 drivers/mfd/si476x-i2c.c 	wake_up_interruptible(&core->rds_read_queue);
core              412 drivers/mfd/si476x-i2c.c 	atomic_set(&core->cts, 1);
core              413 drivers/mfd/si476x-i2c.c 	wake_up(&core->command);
core              415 drivers/mfd/si476x-i2c.c 	atomic_set(&core->stc, 1);
core              416 drivers/mfd/si476x-i2c.c 	wake_up(&core->tuning);
core              434 drivers/mfd/si476x-i2c.c int si476x_core_i2c_xfer(struct si476x_core *core,
core              441 drivers/mfd/si476x-i2c.c 		err = i2c_master_send(core->client, buf, count);
core              443 drivers/mfd/si476x-i2c.c 		err = i2c_master_recv(core->client, buf, count);
core              447 drivers/mfd/si476x-i2c.c 			si476x_core_pronounce_dead(core);
core              466 drivers/mfd/si476x-i2c.c static int si476x_core_get_status(struct si476x_core *core)
core              469 drivers/mfd/si476x-i2c.c 	int err = si476x_core_i2c_xfer(core, SI476X_I2C_RECV,
core              483 drivers/mfd/si476x-i2c.c static void si476x_core_get_and_signal_status(struct si476x_core *core)
core              485 drivers/mfd/si476x-i2c.c 	int status = si476x_core_get_status(core);
core              487 drivers/mfd/si476x-i2c.c 		dev_err(&core->client->dev, "Failed to get status\n");
core              498 drivers/mfd/si476x-i2c.c 		dev_dbg(&core->client->dev, "[interrupt] CTSINT\n");
core              499 drivers/mfd/si476x-i2c.c 		atomic_set(&core->cts, 1);
core              500 drivers/mfd/si476x-i2c.c 		wake_up(&core->command);
core              504 drivers/mfd/si476x-i2c.c 		dev_dbg(&core->client->dev, "[interrupt] RDSINT\n");
core              505 drivers/mfd/si476x-i2c.c 		si476x_core_start_rds_drainer_once(core);
core              509 drivers/mfd/si476x-i2c.c 		dev_dbg(&core->client->dev, "[interrupt] STCINT\n");
core              510 drivers/mfd/si476x-i2c.c 		atomic_set(&core->stc, 1);
core              511 drivers/mfd/si476x-i2c.c 		wake_up(&core->tuning);
core              517 drivers/mfd/si476x-i2c.c 	struct si476x_core *core = SI476X_WORK_TO_CORE(work);
core              519 drivers/mfd/si476x-i2c.c 	si476x_core_get_and_signal_status(core);
core              521 drivers/mfd/si476x-i2c.c 	if (atomic_read(&core->is_alive))
core              522 drivers/mfd/si476x-i2c.c 		si476x_core_schedule_polling_work(core);
core              527 drivers/mfd/si476x-i2c.c 	struct si476x_core *core = dev;
core              529 drivers/mfd/si476x-i2c.c 	si476x_core_get_and_signal_status(core);
core              547 drivers/mfd/si476x-i2c.c static int si476x_core_fwver_to_revision(struct si476x_core *core,
core              592 drivers/mfd/si476x-i2c.c 	dev_err(&core->client->dev,
core              613 drivers/mfd/si476x-i2c.c static int si476x_core_get_revision_info(struct si476x_core *core)
core              618 drivers/mfd/si476x-i2c.c 	si476x_core_lock(core);
core              619 drivers/mfd/si476x-i2c.c 	rval = si476x_core_set_power_state(core, SI476X_POWER_UP_FULL);
core              623 drivers/mfd/si476x-i2c.c 	rval = si476x_core_cmd_func_info(core, &info);
core              627 drivers/mfd/si476x-i2c.c 	core->revision = si476x_core_fwver_to_revision(core, info.func,
core              632 drivers/mfd/si476x-i2c.c 	si476x_core_set_power_state(core, SI476X_POWER_DOWN);
core              634 drivers/mfd/si476x-i2c.c 	si476x_core_unlock(core);
core              639 drivers/mfd/si476x-i2c.c bool si476x_core_has_am(struct si476x_core *core)
core              641 drivers/mfd/si476x-i2c.c 	return core->chip_id == SI476X_CHIP_SI4761 ||
core              642 drivers/mfd/si476x-i2c.c 		core->chip_id == SI476X_CHIP_SI4764;
core              646 drivers/mfd/si476x-i2c.c bool si476x_core_has_diversity(struct si476x_core *core)
core              648 drivers/mfd/si476x-i2c.c 	return core->chip_id == SI476X_CHIP_SI4764;
core              652 drivers/mfd/si476x-i2c.c bool si476x_core_is_a_secondary_tuner(struct si476x_core *core)
core              654 drivers/mfd/si476x-i2c.c 	return si476x_core_has_diversity(core) &&
core              655 drivers/mfd/si476x-i2c.c 		(core->diversity_mode == SI476X_PHDIV_SECONDARY_ANTENNA ||
core              656 drivers/mfd/si476x-i2c.c 		 core->diversity_mode == SI476X_PHDIV_SECONDARY_COMBINING);
core              660 drivers/mfd/si476x-i2c.c bool si476x_core_is_a_primary_tuner(struct si476x_core *core)
core              662 drivers/mfd/si476x-i2c.c 	return si476x_core_has_diversity(core) &&
core              663 drivers/mfd/si476x-i2c.c 		(core->diversity_mode == SI476X_PHDIV_PRIMARY_ANTENNA ||
core              664 drivers/mfd/si476x-i2c.c 		 core->diversity_mode == SI476X_PHDIV_PRIMARY_COMBINING);
core              668 drivers/mfd/si476x-i2c.c bool si476x_core_is_in_am_receiver_mode(struct si476x_core *core)
core              670 drivers/mfd/si476x-i2c.c 	return si476x_core_has_am(core) &&
core              671 drivers/mfd/si476x-i2c.c 		(core->power_up_parameters.func == SI476X_FUNC_AM_RECEIVER);
core              675 drivers/mfd/si476x-i2c.c bool si476x_core_is_powered_up(struct si476x_core *core)
core              677 drivers/mfd/si476x-i2c.c 	return core->power_state == SI476X_POWER_UP_FULL;
core              685 drivers/mfd/si476x-i2c.c 	struct si476x_core          *core;
core              690 drivers/mfd/si476x-i2c.c 	core = devm_kzalloc(&client->dev, sizeof(*core), GFP_KERNEL);
core              691 drivers/mfd/si476x-i2c.c 	if (!core)
core              694 drivers/mfd/si476x-i2c.c 	core->client = client;
core              696 drivers/mfd/si476x-i2c.c 	core->regmap = devm_regmap_init_si476x(core);
core              697 drivers/mfd/si476x-i2c.c 	if (IS_ERR(core->regmap)) {
core              698 drivers/mfd/si476x-i2c.c 		rval = PTR_ERR(core->regmap);
core              705 drivers/mfd/si476x-i2c.c 	i2c_set_clientdata(client, core);
core              707 drivers/mfd/si476x-i2c.c 	atomic_set(&core->is_alive, 0);
core              708 drivers/mfd/si476x-i2c.c 	core->power_state = SI476X_POWER_DOWN;
core              712 drivers/mfd/si476x-i2c.c 		memcpy(&core->power_up_parameters,
core              714 drivers/mfd/si476x-i2c.c 		       sizeof(core->power_up_parameters));
core              716 drivers/mfd/si476x-i2c.c 		core->gpio_reset = -1;
core              724 drivers/mfd/si476x-i2c.c 			core->gpio_reset = pdata->gpio_reset;
core              725 drivers/mfd/si476x-i2c.c 			gpio_direction_output(core->gpio_reset, 0);
core              728 drivers/mfd/si476x-i2c.c 		core->diversity_mode = pdata->diversity_mode;
core              729 drivers/mfd/si476x-i2c.c 		memcpy(&core->pinmux, &pdata->pinmux,
core              736 drivers/mfd/si476x-i2c.c 	core->supplies[0].supply = "vd";
core              737 drivers/mfd/si476x-i2c.c 	core->supplies[1].supply = "va";
core              738 drivers/mfd/si476x-i2c.c 	core->supplies[2].supply = "vio1";
core              739 drivers/mfd/si476x-i2c.c 	core->supplies[3].supply = "vio2";
core              742 drivers/mfd/si476x-i2c.c 				       ARRAY_SIZE(core->supplies),
core              743 drivers/mfd/si476x-i2c.c 				       core->supplies);
core              749 drivers/mfd/si476x-i2c.c 	mutex_init(&core->cmd_lock);
core              750 drivers/mfd/si476x-i2c.c 	init_waitqueue_head(&core->command);
core              751 drivers/mfd/si476x-i2c.c 	init_waitqueue_head(&core->tuning);
core              753 drivers/mfd/si476x-i2c.c 	rval = kfifo_alloc(&core->rds_fifo,
core              761 drivers/mfd/si476x-i2c.c 	mutex_init(&core->rds_drainer_status_lock);
core              762 drivers/mfd/si476x-i2c.c 	init_waitqueue_head(&core->rds_read_queue);
core              763 drivers/mfd/si476x-i2c.c 	INIT_WORK(&core->rds_fifo_drainer, si476x_core_drain_rds_fifo);
core              771 drivers/mfd/si476x-i2c.c 						 client->name, core);
core              780 drivers/mfd/si476x-i2c.c 		core->rds_fifo_depth = 20;
core              782 drivers/mfd/si476x-i2c.c 		INIT_DELAYED_WORK(&core->status_monitor,
core              787 drivers/mfd/si476x-i2c.c 		core->rds_fifo_depth = 5;
core              790 drivers/mfd/si476x-i2c.c 	core->chip_id = id->driver_data;
core              792 drivers/mfd/si476x-i2c.c 	rval = si476x_core_get_revision_info(core);
core              800 drivers/mfd/si476x-i2c.c 	cell = &core->cells[SI476X_RADIO_CELL];
core              805 drivers/mfd/si476x-i2c.c 	if ((core->chip_id == SI476X_CHIP_SI4761 ||
core              806 drivers/mfd/si476x-i2c.c 	     core->chip_id == SI476X_CHIP_SI4764)	&&
core              807 drivers/mfd/si476x-i2c.c 	    core->pinmux.dclk == SI476X_DCLK_DAUDIO     &&
core              808 drivers/mfd/si476x-i2c.c 	    core->pinmux.dfs  == SI476X_DFS_DAUDIO      &&
core              809 drivers/mfd/si476x-i2c.c 	    core->pinmux.dout == SI476X_DOUT_I2S_OUTPUT &&
core              810 drivers/mfd/si476x-i2c.c 	    core->pinmux.xout == SI476X_XOUT_TRISTATE) {
core              811 drivers/mfd/si476x-i2c.c 		cell = &core->cells[SI476X_CODEC_CELL];
core              818 drivers/mfd/si476x-i2c.c 			       core->cells, cell_num,
core              824 drivers/mfd/si476x-i2c.c 	kfifo_free(&core->rds_fifo);
core              827 drivers/mfd/si476x-i2c.c 	if (gpio_is_valid(core->gpio_reset))
core              828 drivers/mfd/si476x-i2c.c 		gpio_free(core->gpio_reset);
core              835 drivers/mfd/si476x-i2c.c 	struct si476x_core *core = i2c_get_clientdata(client);
core              837 drivers/mfd/si476x-i2c.c 	si476x_core_pronounce_dead(core);
core              843 drivers/mfd/si476x-i2c.c 		cancel_delayed_work_sync(&core->status_monitor);
core              845 drivers/mfd/si476x-i2c.c 	kfifo_free(&core->rds_fifo);
core              847 drivers/mfd/si476x-i2c.c 	if (gpio_is_valid(core->gpio_reset))
core              848 drivers/mfd/si476x-i2c.c 		gpio_free(core->gpio_reset);
core               45 drivers/mfd/si476x-prop.c static bool si476x_core_is_valid_property_a10(struct si476x_core *core,
core               86 drivers/mfd/si476x-prop.c static bool si476x_core_is_valid_property_a20(struct si476x_core *core,
core              100 drivers/mfd/si476x-prop.c 	return	si476x_core_is_valid_property_a10(core, property) ||
core              107 drivers/mfd/si476x-prop.c static bool si476x_core_is_valid_property_a30(struct si476x_core *core,
core              126 drivers/mfd/si476x-prop.c 	return	si476x_core_is_valid_property_a20(core, property) ||
core              135 drivers/mfd/si476x-prop.c static bool si476x_core_is_valid_property(struct si476x_core *core,
core              144 drivers/mfd/si476x-prop.c 	BUG_ON(core->revision > SI476X_REVISION_A30 ||
core              145 drivers/mfd/si476x-prop.c 	       core->revision == -1);
core              146 drivers/mfd/si476x-prop.c 	return is_valid_property[core->revision](core, property);
core              150 drivers/mfd/si476x-prop.c static bool si476x_core_is_readonly_property(struct si476x_core *core,
core              153 drivers/mfd/si476x-prop.c 	BUG_ON(core->revision > SI476X_REVISION_A30 ||
core              154 drivers/mfd/si476x-prop.c 	       core->revision == -1);
core              156 drivers/mfd/si476x-prop.c 	switch (core->revision) {
core              174 drivers/mfd/si476x-prop.c 	struct si476x_core *core = i2c_get_clientdata(client);
core              176 drivers/mfd/si476x-prop.c 	return si476x_core_is_valid_property(core, (u16) reg);
core              184 drivers/mfd/si476x-prop.c 	struct si476x_core *core = i2c_get_clientdata(client);
core              186 drivers/mfd/si476x-prop.c 	return si476x_core_is_valid_property(core, (u16) reg) &&
core              187 drivers/mfd/si476x-prop.c 		!si476x_core_is_readonly_property(core, (u16) reg);
core              200 drivers/mfd/si476x-prop.c 	struct si476x_core *core = context;
core              203 drivers/mfd/si476x-prop.c 	err = si476x_core_cmd_get_property(core, reg);
core              228 drivers/mfd/si476x-prop.c struct regmap *devm_regmap_init_si476x(struct si476x_core *core)
core              230 drivers/mfd/si476x-prop.c 	return devm_regmap_init(&core->client->dev, NULL,
core              231 drivers/mfd/si476x-prop.c 				core, &si476x_regmap_config);
core               21 drivers/mfd/wl1273-core.c static int wl1273_fm_read_reg(struct wl1273_core *core, u8 reg, u16 *value)
core               23 drivers/mfd/wl1273-core.c 	struct i2c_client *client = core->client;
core               38 drivers/mfd/wl1273-core.c static int wl1273_fm_write_cmd(struct wl1273_core *core, u8 cmd, u16 param)
core               40 drivers/mfd/wl1273-core.c 	struct i2c_client *client = core->client;
core               53 drivers/mfd/wl1273-core.c static int wl1273_fm_write_data(struct wl1273_core *core, u8 *data, u16 len)
core               55 drivers/mfd/wl1273-core.c 	struct i2c_client *client = core->client;
core               80 drivers/mfd/wl1273-core.c static int wl1273_fm_set_audio(struct wl1273_core *core, unsigned int new_mode)
core               84 drivers/mfd/wl1273-core.c 	if (core->mode == WL1273_MODE_OFF ||
core               85 drivers/mfd/wl1273-core.c 	    core->mode == WL1273_MODE_SUSPENDED)
core               88 drivers/mfd/wl1273-core.c 	if (core->mode == WL1273_MODE_RX && new_mode == WL1273_AUDIO_DIGITAL) {
core               89 drivers/mfd/wl1273-core.c 		r = wl1273_fm_write_cmd(core, WL1273_PCM_MODE_SET,
core               94 drivers/mfd/wl1273-core.c 		r = wl1273_fm_write_cmd(core, WL1273_I2S_MODE_CONFIG_SET,
core               95 drivers/mfd/wl1273-core.c 					core->i2s_mode);
core               99 drivers/mfd/wl1273-core.c 		r = wl1273_fm_write_cmd(core, WL1273_AUDIO_ENABLE,
core              104 drivers/mfd/wl1273-core.c 	} else if (core->mode == WL1273_MODE_RX &&
core              106 drivers/mfd/wl1273-core.c 		r = wl1273_fm_write_cmd(core, WL1273_AUDIO_ENABLE,
core              111 drivers/mfd/wl1273-core.c 	} else if (core->mode == WL1273_MODE_TX &&
core              113 drivers/mfd/wl1273-core.c 		r = wl1273_fm_write_cmd(core, WL1273_I2S_MODE_CONFIG_SET,
core              114 drivers/mfd/wl1273-core.c 					core->i2s_mode);
core              118 drivers/mfd/wl1273-core.c 		r = wl1273_fm_write_cmd(core, WL1273_AUDIO_IO_SET,
core              123 drivers/mfd/wl1273-core.c 	} else if (core->mode == WL1273_MODE_TX &&
core              125 drivers/mfd/wl1273-core.c 		r = wl1273_fm_write_cmd(core, WL1273_AUDIO_IO_SET,
core              131 drivers/mfd/wl1273-core.c 	core->audio_mode = new_mode;
core              141 drivers/mfd/wl1273-core.c static int wl1273_fm_set_volume(struct wl1273_core *core, unsigned int volume)
core              148 drivers/mfd/wl1273-core.c 	if (core->volume == volume)
core              151 drivers/mfd/wl1273-core.c 	r = wl1273_fm_write_cmd(core, WL1273_VOLUME_SET, volume);
core              155 drivers/mfd/wl1273-core.c 	core->volume = volume;
core              163 drivers/mfd/wl1273-core.c 	struct wl1273_core *core;
core              180 drivers/mfd/wl1273-core.c 	core = devm_kzalloc(&client->dev, sizeof(*core), GFP_KERNEL);
core              181 drivers/mfd/wl1273-core.c 	if (!core)
core              184 drivers/mfd/wl1273-core.c 	core->pdata = pdata;
core              185 drivers/mfd/wl1273-core.c 	core->client = client;
core              186 drivers/mfd/wl1273-core.c 	mutex_init(&core->lock);
core              188 drivers/mfd/wl1273-core.c 	i2c_set_clientdata(client, core);
core              192 drivers/mfd/wl1273-core.c 	cell = &core->cells[children];
core              194 drivers/mfd/wl1273-core.c 	cell->platform_data = &core;
core              195 drivers/mfd/wl1273-core.c 	cell->pdata_size = sizeof(core);
core              198 drivers/mfd/wl1273-core.c 	core->read = wl1273_fm_read_reg;
core              199 drivers/mfd/wl1273-core.c 	core->write = wl1273_fm_write_cmd;
core              200 drivers/mfd/wl1273-core.c 	core->write_data = wl1273_fm_write_data;
core              201 drivers/mfd/wl1273-core.c 	core->set_audio = wl1273_fm_set_audio;
core              202 drivers/mfd/wl1273-core.c 	core->set_volume = wl1273_fm_set_volume;
core              205 drivers/mfd/wl1273-core.c 		cell = &core->cells[children];
core              209 drivers/mfd/wl1273-core.c 		cell->platform_data = &core;
core              210 drivers/mfd/wl1273-core.c 		cell->pdata_size = sizeof(core);
core              217 drivers/mfd/wl1273-core.c 	r = devm_mfd_add_devices(&client->dev, -1, core->cells,
core              313 drivers/misc/sgi-gru/grufile.c 	int core;
core              321 drivers/misc/sgi-gru/grufile.c 	core = uv_cpu_core_number(cpu) + UV_MAX_INT_CORES * uv_cpu_socket_number(cpu);
core              322 drivers/misc/sgi-gru/grufile.c 	if (core >= GRU_NUM_TFM || uv_cpu_ht_number(cpu))
core              327 drivers/misc/sgi-gru/grufile.c 		    core * (UVH_GR0_TLB_INT1_CONFIG - UVH_GR0_TLB_INT0_CONFIG);
core              330 drivers/misc/sgi-gru/grufile.c 		    core * (UVH_GR1_TLB_INT1_CONFIG - UVH_GR1_TLB_INT0_CONFIG);
core              335 drivers/misc/sgi-gru/grufile.c 	*corep = core;
core              360 drivers/misc/sgi-gru/grufile.c 	int ret, core;
core              362 drivers/misc/sgi-gru/grufile.c 	mmr = gru_chiplet_cpu_to_mmr(chiplet, cpu, &core);
core              390 drivers/misc/sgi-gru/grufile.c 	int core, irq = IRQ_GRU + chiplet;
core              395 drivers/misc/sgi-gru/grufile.c 	mmr = gru_chiplet_cpu_to_mmr(chiplet, cpu, &core);
core              409 drivers/misc/sgi-gru/grufile.c 	int irq, core;
core              412 drivers/misc/sgi-gru/grufile.c 	mmr = gru_chiplet_cpu_to_mmr(chiplet, cpu, &core);
core              430 drivers/misc/sgi-gru/grufile.c 	gru_base[blade]->bs_grus[chiplet].gs_irq[core] = irq;
core              436 drivers/misc/sgi-gru/grufile.c 	int irq, core;
core              439 drivers/misc/sgi-gru/grufile.c 	mmr = gru_chiplet_cpu_to_mmr(chiplet, cpu, &core);
core              441 drivers/misc/sgi-gru/grufile.c 		irq = gru_base[blade]->bs_grus[chiplet].gs_irq[core];
core               48 drivers/misc/sgi-gru/grumain.c 	int id, core;
core               50 drivers/misc/sgi-gru/grumain.c 	core = uv_cpu_core_number(cpu);
core               51 drivers/misc/sgi-gru/grumain.c 	id = core + UV_MAX_INT_CORES * uv_cpu_socket_number(cpu);
core              142 drivers/mtd/devices/bcm47xxsflash.c 	if (b47s->bcma_cc->core->id.rev < 20) {
core              322 drivers/mtd/devices/bcm47xxsflash.c 	if (b47s->bcma_cc->core->id.rev == 54)
core               38 drivers/mtd/nand/raw/bcm47xxnflash/main.c 	if (b47n->cc->core->bus->chipinfo.id == BCMA_CHIP_ID_BCM4706) {
core             1128 drivers/net/dsa/bcm_sf2.c 	base = &priv->core;
core               60 drivers/net/dsa/bcm_sf2.h 	void __iomem			*core;
core              176 drivers/net/dsa/bcm_sf2.h 	return readl_relaxed(priv->core + tmp);
core              182 drivers/net/dsa/bcm_sf2.h 	writel_relaxed(val, priv->core + tmp);
core              195 drivers/net/dsa/bcm_sf2.h SF2_IO64_MACRO(core);
core               15 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c static bool bcma_mdio_wait_value(struct bcma_device *core, u16 reg, u32 mask,
core               22 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 		val = bcma_read32(core, reg);
core               27 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 	dev_err(&core->dev, "Timeout waiting for reg 0x%X\n", reg);
core               37 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 	struct bcma_device *core;
core               54 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 	if (bgmac->bcma.core->id.id == BCMA_CORE_4706_MAC_GBIT) {
core               55 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 		core = bgmac->bcma.core->bus->drv_gmac_cmn.core;
core               59 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 		core = bgmac->bcma.core;
core               64 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 	tmp = bcma_read32(core, phy_ctl_addr);
core               67 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 	bcma_write32(core, phy_ctl_addr, tmp);
core               72 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 	bcma_write32(core, phy_access_addr, tmp);
core               74 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 	if (!bcma_mdio_wait_value(core, phy_access_addr, BGMAC_PA_START, 0,
core               76 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 		dev_err(&core->dev, "Reading PHY %d register 0x%X failed\n",
core               81 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 	return bcma_read32(core, phy_access_addr) & BGMAC_PA_DATA_MASK;
core               88 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 	struct bcma_device *core;
core               93 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 	if (bgmac->bcma.core->id.id == BCMA_CORE_4706_MAC_GBIT) {
core               94 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 		core = bgmac->bcma.core->bus->drv_gmac_cmn.core;
core               98 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 		core = bgmac->bcma.core;
core              103 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 	tmp = bcma_read32(core, phy_ctl_addr);
core              106 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 	bcma_write32(core, phy_ctl_addr, tmp);
core              108 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 	bcma_write32(bgmac->bcma.core, BGMAC_INT_STATUS, BGMAC_IS_MDIO);
core              109 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 	if (bcma_read32(bgmac->bcma.core, BGMAC_INT_STATUS) & BGMAC_IS_MDIO)
core              110 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 		dev_warn(&core->dev, "Error setting MDIO int\n");
core              117 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 	bcma_write32(core, phy_access_addr, tmp);
core              119 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 	if (!bcma_mdio_wait_value(core, phy_access_addr, BGMAC_PA_START, 0,
core              121 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 		dev_err(&core->dev, "Writing to PHY %d register 0x%X failed\n",
core              132 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 	struct bcma_chipinfo *ci = &bgmac->bcma.core->bus->chipinfo;
core              152 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 		struct bcma_drv_cc *cc = &bgmac->bcma.core->bus->drv_cc;
core              212 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 	struct bcma_device *core = bgmac->bcma.core;
core              223 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 	sprintf(mii_bus->id, "%s-%d-%d", "bcma_mdio", core->bus->num,
core              224 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 		core->core_unit);
core              229 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 	mii_bus->parent = &core->dev;
core              234 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 		dev_err(&core->dev, "Registration of mii bus failed\n");
core               17 drivers/net/ethernet/broadcom/bgmac-bcma.c static inline bool bgmac_is_bcm4707_family(struct bcma_device *core)
core               19 drivers/net/ethernet/broadcom/bgmac-bcma.c 	switch (core->bus->chipinfo.id) {
core               35 drivers/net/ethernet/broadcom/bgmac-bcma.c 	return bcma_read32(bgmac->bcma.core, offset);
core               40 drivers/net/ethernet/broadcom/bgmac-bcma.c 	bcma_write32(bgmac->bcma.core, offset, value);
core               45 drivers/net/ethernet/broadcom/bgmac-bcma.c 	return bcma_aread32(bgmac->bcma.core, offset);
core               50 drivers/net/ethernet/broadcom/bgmac-bcma.c 	return bcma_awrite32(bgmac->bcma.core, offset, value);
core               55 drivers/net/ethernet/broadcom/bgmac-bcma.c 	return bcma_core_is_enabled(bgmac->bcma.core);
core               60 drivers/net/ethernet/broadcom/bgmac-bcma.c 	bcma_core_enable(bgmac->bcma.core, flags);
core               66 drivers/net/ethernet/broadcom/bgmac-bcma.c 	struct bcma_drv_cc *cc = &bgmac->bcma.core->bus->drv_cc;
core               73 drivers/net/ethernet/broadcom/bgmac-bcma.c 	struct bcma_drv_cc *cc = &bgmac->bcma.core->bus->drv_cc;
core              112 drivers/net/ethernet/broadcom/bgmac-bcma.c static int bgmac_probe(struct bcma_device *core)
core              114 drivers/net/ethernet/broadcom/bgmac-bcma.c 	struct bcma_chipinfo *ci = &core->bus->chipinfo;
core              115 drivers/net/ethernet/broadcom/bgmac-bcma.c 	struct ssb_sprom *sprom = &core->bus->sprom;
core              121 drivers/net/ethernet/broadcom/bgmac-bcma.c 	bgmac = bgmac_alloc(&core->dev);
core              125 drivers/net/ethernet/broadcom/bgmac-bcma.c 	bgmac->bcma.core = core;
core              126 drivers/net/ethernet/broadcom/bgmac-bcma.c 	bgmac->dma_dev = core->dma_dev;
core              127 drivers/net/ethernet/broadcom/bgmac-bcma.c 	bgmac->irq = core->irq;
core              129 drivers/net/ethernet/broadcom/bgmac-bcma.c 	bcma_set_drvdata(core, bgmac);
core              136 drivers/net/ethernet/broadcom/bgmac-bcma.c 		switch (core->core_unit) {
core              148 drivers/net/ethernet/broadcom/bgmac-bcma.c 				core->core_unit);
core              157 drivers/net/ethernet/broadcom/bgmac-bcma.c 	if (core->id.id == BCMA_CORE_4706_MAC_GBIT &&
core              158 drivers/net/ethernet/broadcom/bgmac-bcma.c 	    !core->bus->drv_gmac_cmn.core) {
core              163 drivers/net/ethernet/broadcom/bgmac-bcma.c 	bgmac->bcma.cmn = core->bus->drv_gmac_cmn.core;
core              165 drivers/net/ethernet/broadcom/bgmac-bcma.c 	switch (core->core_unit) {
core              185 drivers/net/ethernet/broadcom/bgmac-bcma.c 	if (!bgmac_is_bcm4707_family(core) &&
core              186 drivers/net/ethernet/broadcom/bgmac-bcma.c 	    !(ci->id == BCMA_CHIP_ID_BCM53573 && core->core_unit == 1)) {
core              202 drivers/net/ethernet/broadcom/bgmac-bcma.c 	if (core->bus->hosttype == BCMA_HOSTTYPE_PCI) {
core              244 drivers/net/ethernet/broadcom/bgmac-bcma.c 		if (core->core_unit == 0) {
core              249 drivers/net/ethernet/broadcom/bgmac-bcma.c 		} else if (core->core_unit == 1) {
core              277 drivers/net/ethernet/broadcom/bgmac-bcma.c 	if (!bgmac_is_bcm4707_family(core) && core->id.rev > 2)
core              280 drivers/net/ethernet/broadcom/bgmac-bcma.c 	if (core->id.id == BCMA_CORE_4706_MAC_GBIT) {
core              285 drivers/net/ethernet/broadcom/bgmac-bcma.c 	if (core->id.rev >= 4) {
core              314 drivers/net/ethernet/broadcom/bgmac-bcma.c 	bcma_set_drvdata(core, NULL);
core              319 drivers/net/ethernet/broadcom/bgmac-bcma.c static void bgmac_remove(struct bcma_device *core)
core              321 drivers/net/ethernet/broadcom/bgmac-bcma.c 	struct bgmac *bgmac = bcma_get_drvdata(core);
core              325 drivers/net/ethernet/broadcom/bgmac-bcma.c 	bcma_set_drvdata(core, NULL);
core              487 drivers/net/ethernet/broadcom/bgmac.h 			struct bcma_device *core;
core              789 drivers/net/ethernet/cavium/liquidio/lio_main.c 	int core;
core              809 drivers/net/ethernet/cavium/liquidio/lio_main.c 		for (core = 0; core < LIO_MAX_CORES; core++) {
core              814 drivers/net/ethernet/cavium/liquidio/lio_main.c 						 >> core) & 1;
core              817 drivers/net/ethernet/cavium/liquidio/lio_main.c 			    !err_msg_was_printed[core]) {
core              820 drivers/net/ethernet/cavium/liquidio/lio_main.c 					core);
core              821 drivers/net/ethernet/cavium/liquidio/lio_main.c 				err_msg_was_printed[core] = true;
core              123 drivers/net/ethernet/mellanox/mlx5/core/cq.c 	err = mlx5_eq_add_cq(&eq->core, cq);
core              143 drivers/net/ethernet/mellanox/mlx5/core/cq.c 	mlx5_eq_del_cq(&eq->core, cq);
core              162 drivers/net/ethernet/mellanox/mlx5/core/cq.c 	mlx5_eq_del_cq(&cq->eq->core, cq);
core              183 drivers/net/ethernet/mellanox/mlx5/core/en/health.c 		   eq->core.eqn, eq->core.cons_index, eq->core.irqn);
core              190 drivers/net/ethernet/mellanox/mlx5/core/en/health.c 		   eqe_count, eq->core.eqn);
core              134 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	struct mlx5_eq *eq = &eq_comp->core;
core              184 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	disable_irq(eq->core.irqn);
core              185 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	count_eqe = eq->core.cons_index;
core              187 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	count_eqe = eq->core.cons_index - count_eqe;
core              188 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	enable_irq(eq->core.irqn);
core              198 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	struct mlx5_eq *eq = &eq_async->core;
core              486 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	eq  = &eqt->async_eq.core;
core              582 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	err = create_async_eq(dev, &table->cmd_eq.core, &param);
core              587 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	err = mlx5_eq_enable(dev, &table->cmd_eq.core, &table->cmd_eq.irq_nb);
core              601 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	err = create_async_eq(dev, &table->async_eq.core, &param);
core              606 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	err = mlx5_eq_enable(dev, &table->async_eq.core,
core              620 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	err = create_async_eq(dev, &table->pages_eq.core, &param);
core              625 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	err = mlx5_eq_enable(dev, &table->pages_eq.core,
core              635 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	destroy_async_eq(dev, &table->pages_eq.core);
core              637 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	mlx5_eq_disable(dev, &table->async_eq.core, &table->async_eq.irq_nb);
core              639 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	destroy_async_eq(dev, &table->async_eq.core);
core              642 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	mlx5_eq_disable(dev, &table->cmd_eq.core, &table->cmd_eq.irq_nb);
core              644 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	destroy_async_eq(dev, &table->cmd_eq.core);
core              655 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	mlx5_eq_disable(dev, &table->pages_eq.core, &table->pages_eq.irq_nb);
core              656 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	err = destroy_async_eq(dev, &table->pages_eq.core);
core              661 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	mlx5_eq_disable(dev, &table->async_eq.core, &table->async_eq.irq_nb);
core              662 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	err = destroy_async_eq(dev, &table->async_eq.core);
core              669 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	mlx5_eq_disable(dev, &table->cmd_eq.core, &table->cmd_eq.irq_nb);
core              670 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	err = destroy_async_eq(dev, &table->cmd_eq.core);
core              680 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	return &dev->priv.eq_table->async_eq.core;
core              685 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	synchronize_irq(dev->priv.eq_table->async_eq.core.irqn);
core              690 drivers/net/ethernet/mellanox/mlx5/core/eq.c 	synchronize_irq(dev->priv.eq_table->cmd_eq.core.irqn);
core              771 drivers/net/ethernet/mellanox/mlx5/core/eq.c 		mlx5_eq_disable(dev, &eq->core, &eq->irq_nb);
core              772 drivers/net/ethernet/mellanox/mlx5/core/eq.c 		if (destroy_unmap_eq(dev, &eq->core))
core              774 drivers/net/ethernet/mellanox/mlx5/core/eq.c 				       eq->core.eqn);
core              813 drivers/net/ethernet/mellanox/mlx5/core/eq.c 		err = create_map_eq(dev, &eq->core, &param);
core              818 drivers/net/ethernet/mellanox/mlx5/core/eq.c 		err = mlx5_eq_enable(dev, &eq->core, &eq->irq_nb);
core              820 drivers/net/ethernet/mellanox/mlx5/core/eq.c 			destroy_unmap_eq(dev, &eq->core);
core              825 drivers/net/ethernet/mellanox/mlx5/core/eq.c 		mlx5_core_dbg(dev, "allocated completion EQN %d\n", eq->core.eqn);
core              847 drivers/net/ethernet/mellanox/mlx5/core/eq.c 			*eqn = eq->core.eqn;
core              848 drivers/net/ethernet/mellanox/mlx5/core/eq.c 			*irqn = eq->core.irqn;
core              887 drivers/net/ethernet/mellanox/mlx5/core/eq.c 		if (eq->core.eqn == eqn)
core               39 drivers/net/ethernet/mellanox/mlx5/core/lib/eq.h 	struct mlx5_eq          core;
core               44 drivers/net/ethernet/mellanox/mlx5/core/lib/eq.h 	struct mlx5_eq          core;
core              420 drivers/net/ethernet/mellanox/mlxsw/core.c 	struct mlxsw_core *core;
core              444 drivers/net/ethernet/mellanox/mlxsw/core.c 	if (trans->core->fw_flash_in_progress)
core              447 drivers/net/ethernet/mellanox/mlxsw/core.c 	queue_delayed_work(trans->core->emad_wq, &trans->timeout_dw, timeout);
core              476 drivers/net/ethernet/mellanox/mlxsw/core.c 	struct mlxsw_core *mlxsw_core = trans->core;
core              493 drivers/net/ethernet/mellanox/mlxsw/core.c 		err = mlxsw_emad_transmit(trans->core, trans);
core              511 drivers/net/ethernet/mellanox/mlxsw/core.c 	mlxsw_emad_transmit_retry(trans->core, trans);
core              665 drivers/net/ethernet/mellanox/mlxsw/core.c 	trans->core = mlxsw_core;
core             1609 drivers/net/ethernet/mellanox/mlxsw/core.c 	struct mlxsw_core *mlxsw_core = trans->core;
core               13 drivers/net/ethernet/mellanox/mlxsw/core_env.c static int mlxsw_env_validate_cable_ident(struct mlxsw_core *core, int id,
core               23 drivers/net/ethernet/mellanox/mlxsw/core_env.c 	err = mlxsw_reg_query(core, MLXSW_REG(mcia), mcia_pl);
core               86 drivers/net/ethernet/mellanox/mlxsw/core_env.c int mlxsw_env_module_temp_thresholds_get(struct mlxsw_core *core, int module,
core              102 drivers/net/ethernet/mellanox/mlxsw/core_env.c 	err = mlxsw_reg_query(core, MLXSW_REG(mtmp), mtmp_pl);
core              121 drivers/net/ethernet/mellanox/mlxsw/core_env.c 	err = mlxsw_env_validate_cable_ident(core, module, &qsfp);
core              137 drivers/net/ethernet/mellanox/mlxsw/core_env.c 	err = mlxsw_reg_query(core, MLXSW_REG(mcia), mcia_pl);
core                7 drivers/net/ethernet/mellanox/mlxsw/core_env.h int mlxsw_env_module_temp_thresholds_get(struct mlxsw_core *core, int module,
core               35 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c 	struct mlxsw_core *core;
core               61 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c 	err = mlxsw_reg_query(mlxsw_hwmon->core, MLXSW_REG(mtmp), mtmp_pl);
core               84 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c 	err = mlxsw_reg_query(mlxsw_hwmon->core, MLXSW_REG(mtmp), mtmp_pl);
core              114 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c 	err = mlxsw_reg_write(mlxsw_hwmon->core, MLXSW_REG(mtmp), mtmp_pl);
core              133 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c 	err = mlxsw_reg_query(mlxsw_hwmon->core, MLXSW_REG(mfsm), mfsm_pl);
core              152 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c 	err = mlxsw_reg_query(mlxsw_hwmon->core, MLXSW_REG(fore), fore_pl);
core              173 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c 	err = mlxsw_reg_query(mlxsw_hwmon->core, MLXSW_REG(mfsc), mfsc_pl);
core              200 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c 	err = mlxsw_reg_write(mlxsw_hwmon->core, MLXSW_REG(mfsc), mfsc_pl);
core              223 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c 	err = mlxsw_reg_query(mlxsw_hwmon->core, MLXSW_REG(mtmp), mtmp_pl);
core              246 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c 	err = mlxsw_reg_query(mlxsw_hwmon->core, MLXSW_REG(mtbr), mtbr_pl);
core              285 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c 	err = mlxsw_env_module_temp_thresholds_get(mlxsw_hwmon->core, module,
core              308 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c 	err = mlxsw_env_module_temp_thresholds_get(mlxsw_hwmon->core, module,
core              467 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c 	err = mlxsw_reg_query(mlxsw_hwmon->core, MLXSW_REG(mtcap), mtcap_pl);
core              475 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c 		err = mlxsw_reg_write(mlxsw_hwmon->core,
core              502 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c 	err = mlxsw_reg_query(mlxsw_hwmon->core, MLXSW_REG(mfcr), mfcr_pl);
core              531 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c 	unsigned int module_count = mlxsw_core_max_ports(mlxsw_hwmon->core);
core              537 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c 	if (!mlxsw_core_res_query_enabled(mlxsw_hwmon->core))
core              548 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c 		err = mlxsw_reg_query(mlxsw_hwmon->core, MLXSW_REG(pmlp),
core              589 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c 	err = mlxsw_reg_query(mlxsw_hwmon->core, MLXSW_REG(mgpir), mgpir_pl);
core              603 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c 		err = mlxsw_reg_write(mlxsw_hwmon->core,
core              638 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c 	mlxsw_hwmon->core = mlxsw_core;
core              106 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct mlxsw_core *core;
core              162 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c mlxsw_thermal_module_trips_update(struct device *dev, struct mlxsw_core *core,
core              168 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	err = mlxsw_env_module_temp_thresholds_get(core, tz->module,
core              174 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	err = mlxsw_env_module_temp_thresholds_get(core, tz->module,
core              320 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	err = mlxsw_reg_query(thermal->core, MLXSW_REG(mtmp), mtmp_pl);
core              511 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	err = mlxsw_reg_query(thermal->core, MLXSW_REG(mtmp), mtmp_pl);
core              527 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	err = mlxsw_thermal_module_trips_update(dev, thermal->core, tz);
core              637 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	err = mlxsw_reg_query(thermal->core, MLXSW_REG(mtmp), mtmp_pl);
core              685 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	err = mlxsw_reg_query(thermal->core, MLXSW_REG(mfsc), mfsc_pl);
core              727 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		err = mlxsw_reg_query(thermal->core, MLXSW_REG(mfsc), mfsc_pl);
core              749 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	err = mlxsw_reg_write(thermal->core, MLXSW_REG(mfsc), mfsc_pl);
core              792 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c mlxsw_thermal_module_init(struct device *dev, struct mlxsw_core *core,
core              801 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	err = mlxsw_reg_query(core, MLXSW_REG(pmlp), pmlp_pl);
core              821 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	return mlxsw_thermal_module_trips_update(dev, core, module_tz);
core              834 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c mlxsw_thermal_modules_init(struct device *dev, struct mlxsw_core *core,
core              837 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	unsigned int module_count = mlxsw_core_max_ports(core);
core              841 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (!mlxsw_core_res_query_enabled(core))
core              851 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		err = mlxsw_thermal_module_init(dev, core, thermal, i);
core              877 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	unsigned int module_count = mlxsw_core_max_ports(thermal->core);
core              880 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (!mlxsw_core_res_query_enabled(thermal->core))
core              915 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c mlxsw_thermal_gearboxes_init(struct device *dev, struct mlxsw_core *core,
core              923 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (!mlxsw_core_res_query_enabled(core))
core              927 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	err = mlxsw_reg_query(core, MLXSW_REG(mgpir), mgpir_pl);
core              966 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (!mlxsw_core_res_query_enabled(thermal->core))
core              974 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c int mlxsw_thermal_init(struct mlxsw_core *core,
core              991 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	thermal->core = core;
core              995 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	err = mlxsw_reg_query(thermal->core, MLXSW_REG(mfcr), mfcr_pl);
core             1009 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 			err = mlxsw_reg_query(thermal->core, MLXSW_REG(mfsl),
core             1016 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 			err = mlxsw_reg_write(thermal->core, MLXSW_REG(mfsl),
core             1060 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	err = mlxsw_thermal_modules_init(dev, core, thermal);
core             1064 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	err = mlxsw_thermal_gearboxes_init(dev, core, thermal);
core               75 drivers/net/ethernet/mellanox/mlxsw/i2c.c 	struct mlxsw_core *core;
core              517 drivers/net/ethernet/mellanox/mlxsw/i2c.c 	mlxsw_i2c->core = mlxsw_core;
core              545 drivers/net/ethernet/mellanox/mlxsw/i2c.c 	mlxsw_i2c->core = NULL;
core              661 drivers/net/ethernet/mellanox/mlxsw/i2c.c 	mlxsw_core_bus_device_unregister(mlxsw_i2c->core, false);
core               24 drivers/net/ethernet/mellanox/mlxsw/minimal.c 	struct mlxsw_core *core;
core               42 drivers/net/ethernet/mellanox/mlxsw/minimal.c 	err = mlxsw_reg_query(mlxsw_m->core, MLXSW_REG(spad), spad_pl);
core               60 drivers/net/ethernet/mellanox/mlxsw/minimal.c 	return mlxsw_core_port_devlink_port_get(mlxsw_m->core,
core               91 drivers/net/ethernet/mellanox/mlxsw/minimal.c 	struct mlxsw_core *core = mlxsw_m_port->mlxsw_m->core;
core               93 drivers/net/ethernet/mellanox/mlxsw/minimal.c 	return mlxsw_env_get_module_info(core, mlxsw_m_port->module, modinfo);
core              101 drivers/net/ethernet/mellanox/mlxsw/minimal.c 	struct mlxsw_core *core = mlxsw_m_port->mlxsw_m->core;
core              103 drivers/net/ethernet/mellanox/mlxsw/minimal.c 	return mlxsw_env_get_module_eeprom(netdev, core, mlxsw_m_port->module,
core              121 drivers/net/ethernet/mellanox/mlxsw/minimal.c 	err = mlxsw_reg_query(mlxsw_m->core, MLXSW_REG(pmlp), pmlp_pl);
core              139 drivers/net/ethernet/mellanox/mlxsw/minimal.c 	err = mlxsw_reg_query(mlxsw_m->core, MLXSW_REG(ppad), ppad_pl);
core              158 drivers/net/ethernet/mellanox/mlxsw/minimal.c 	err = mlxsw_core_port_init(mlxsw_m->core, local_port,
core              200 drivers/net/ethernet/mellanox/mlxsw/minimal.c 	mlxsw_core_port_eth_set(mlxsw_m->core, mlxsw_m_port->local_port,
core              210 drivers/net/ethernet/mellanox/mlxsw/minimal.c 	mlxsw_core_port_fini(mlxsw_m->core, local_port);
core              218 drivers/net/ethernet/mellanox/mlxsw/minimal.c 	mlxsw_core_port_clear(mlxsw_m->core, local_port, mlxsw_m);
core              222 drivers/net/ethernet/mellanox/mlxsw/minimal.c 	mlxsw_core_port_fini(mlxsw_m->core, local_port);
core              255 drivers/net/ethernet/mellanox/mlxsw/minimal.c 	unsigned int max_ports = mlxsw_core_max_ports(mlxsw_m->core);
core              334 drivers/net/ethernet/mellanox/mlxsw/minimal.c 	mlxsw_m->core = mlxsw_core;
core              108 drivers/net/ethernet/mellanox/mlxsw/pci.c 	struct mlxsw_core *core;
core              303 drivers/net/ethernet/mellanox/mlxsw/pci.c 	err = mlxsw_cmd_sw2hw_sdq(mlxsw_pci->core, mbox, q->num);
core              313 drivers/net/ethernet/mellanox/mlxsw/pci.c 	mlxsw_cmd_hw2sw_sdq(mlxsw_pci->core, q->num);
core              408 drivers/net/ethernet/mellanox/mlxsw/pci.c 	err = mlxsw_cmd_sw2hw_rdq(mlxsw_pci->core, mbox, q->num);
core              432 drivers/net/ethernet/mellanox/mlxsw/pci.c 	mlxsw_cmd_hw2sw_rdq(mlxsw_pci->core, q->num);
core              443 drivers/net/ethernet/mellanox/mlxsw/pci.c 	mlxsw_cmd_hw2sw_rdq(mlxsw_pci->core, q->num);
core              490 drivers/net/ethernet/mellanox/mlxsw/pci.c 	err = mlxsw_cmd_sw2hw_cq(mlxsw_pci->core, mbox, q->num);
core              501 drivers/net/ethernet/mellanox/mlxsw/pci.c 	mlxsw_cmd_hw2sw_cq(mlxsw_pci->core, q->num);
core              526 drivers/net/ethernet/mellanox/mlxsw/pci.c 		mlxsw_core_ptp_transmitted(mlxsw_pci->core, skb,
core              579 drivers/net/ethernet/mellanox/mlxsw/pci.c 	mlxsw_core_skb_receive(mlxsw_pci->core, skb, &rx_info);
core              680 drivers/net/ethernet/mellanox/mlxsw/pci.c 	err = mlxsw_cmd_sw2hw_eq(mlxsw_pci->core, mbox, q->num);
core              691 drivers/net/ethernet/mellanox/mlxsw/pci.c 	mlxsw_cmd_hw2sw_eq(mlxsw_pci->core, q->num);
core              951 drivers/net/ethernet/mellanox/mlxsw/pci.c 	err = mlxsw_cmd_query_aq_cap(mlxsw_pci->core, mbox);
core             1061 drivers/net/ethernet/mellanox/mlxsw/pci.c 	err = mlxsw_core_kvd_sizes_get(mlxsw_pci->core, profile,
core             1192 drivers/net/ethernet/mellanox/mlxsw/pci.c 	return mlxsw_cmd_config_profile_set(mlxsw_pci->core, mbox);
core             1201 drivers/net/ethernet/mellanox/mlxsw/pci.c 	err = mlxsw_cmd_boardinfo(mlxsw_pci->core, mbox);
core             1238 drivers/net/ethernet/mellanox/mlxsw/pci.c 			err = mlxsw_cmd_map_fa(mlxsw_pci->core, mbox, nent);
core             1247 drivers/net/ethernet/mellanox/mlxsw/pci.c 		err = mlxsw_cmd_map_fa(mlxsw_pci->core, mbox, nent);
core             1271 drivers/net/ethernet/mellanox/mlxsw/pci.c 	mlxsw_cmd_unmap_fa(mlxsw_pci->core);
core             1365 drivers/net/ethernet/mellanox/mlxsw/pci.c 	err = mlxsw_reg_write(mlxsw_pci->core, MLXSW_REG(mrsr), mrsr_pl);
core             1407 drivers/net/ethernet/mellanox/mlxsw/pci.c 	mlxsw_pci->core = mlxsw_core;
core             1846 drivers/net/ethernet/mellanox/mlxsw/pci.c 	mlxsw_core_bus_device_unregister(mlxsw_pci->core, false);
core              195 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(mcqi), mcqi_pl);
core              217 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(mcc), mcc_pl);
core              228 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mcc), mcc_pl);
core              242 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mcc), mcc_pl);
core              255 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mcda), mcda_pl);
core              268 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mcc), mcc_pl);
core              280 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mcc), mcc_pl);
core              296 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(mcc), mcc_pl);
core              316 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mcc), mcc_pl);
core              329 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mcc), mcc_pl);
core              340 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	devlink_flash_update_status_notify(priv_to_devlink(mlxsw_sp->core),
core              372 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	mlxsw_core_fw_flash_start(mlxsw_sp->core);
core              373 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	devlink_flash_update_begin_notify(priv_to_devlink(mlxsw_sp->core));
core              376 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	devlink_flash_update_end_notify(priv_to_devlink(mlxsw_sp->core));
core              377 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	mlxsw_core_fw_flash_end(mlxsw_sp->core);
core              396 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = devlink_param_driverinit_value_get(priv_to_devlink(mlxsw_sp->core),
core              474 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(mgpc), mgpc_pl);
core              491 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mgpc), mgpc_pl);
core              567 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(spms), spms_pl);
core              577 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(spad), spad_pl);
core              591 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mpsc), mpsc_pl);
core              603 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(paos), paos_pl);
core              614 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ppad), ppad_pl);
core              636 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(pmtu), pmtu_pl);
core              645 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pmtu), pmtu_pl);
core              654 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pspa), pspa_pl);
core              663 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(svpe), svpe_pl);
core              678 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(spvmlr), spvmlr_pl);
core              690 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(spvid), spvid_pl);
core              700 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(spaft), spaft_pl);
core              735 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sspr), sspr_pl);
core              746 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(pmlp), pmlp_pl);
core              769 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pmlp), pmlp_pl);
core              779 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pmlp), pmlp_pl);
core              823 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	if (mlxsw_core_skb_transmit_busy(mlxsw_sp->core, &tx_info))
core              840 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_core_skb_transmit(mlxsw_sp->core, skb, &tx_info);
core              933 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(pbmc), pbmc_pl);
core              970 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pbmc), pbmc_pl);
core             1073 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(ppcnt), ppcnt_pl);
core             1205 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(spvm), spvm_pl);
core             1784 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_reg_write(mlxsw_sp_port->mlxsw_sp->core, MLXSW_REG(pplr),
core             1846 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_core_port_devlink_port_get(mlxsw_sp->core,
core             1964 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp_port->mlxsw_sp->core, MLXSW_REG(pfcc),
core             2400 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mlcr), mlcr_pl);
core             3178 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(ptys), ptys_pl);
core             3308 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(ptys), ptys_pl);
core             3345 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(ptys), ptys_pl);
core             3365 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ptys), ptys_pl);
core             3387 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_env_get_module_info(mlxsw_sp->core,
core             3402 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_env_get_module_eeprom(netdev, mlxsw_sp->core,
core             3456 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ptys), ptys_pl);
core             3471 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qeec), qeec_pl);
core             3485 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qeec), qeec_pl);
core             3500 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qeec), qeec_pl);
core             3511 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qtct), qtct_pl);
core             3608 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qtctm), qtctm_pl);
core             3619 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_core_port_init(mlxsw_sp->core, local_port,
core             3814 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	mlxsw_core_port_eth_set(mlxsw_sp->core, mlxsw_sp_port->local_port,
core             3852 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	mlxsw_core_port_fini(mlxsw_sp->core, local_port);
core             3863 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	mlxsw_core_port_clear(mlxsw_sp->core, local_port, mlxsw_sp);
core             3878 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	mlxsw_core_port_fini(mlxsw_sp->core, local_port);
core             3893 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_core_cpu_port_init(mlxsw_sp->core,
core             3915 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	mlxsw_core_cpu_port_fini(mlxsw_sp->core);
core             3929 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	for (i = 1; i < mlxsw_core_max_ports(mlxsw_sp->core); i++)
core             3940 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core);
core             4606 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 		err = mlxsw_core_trap_register(mlxsw_sp->core,
core             4617 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 		mlxsw_core_trap_unregister(mlxsw_sp->core,
core             4631 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 		mlxsw_core_trap_unregister(mlxsw_sp->core,
core             4641 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_sp_cpu_policers_set(mlxsw_sp->core);
core             4645 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_sp_trap_groups_set(mlxsw_sp->core);
core             4694 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(slcr), slcr_pl);
core             4698 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_LAG) ||
core             4699 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	    !MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_LAG_MEMBERS))
core             4702 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	mlxsw_sp->lags = kcalloc(MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_LAG),
core             4768 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	mlxsw_sp->core = mlxsw_core;
core             5569 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sldr), sldr_pl);
core             5577 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sldr), sldr_pl);
core             5588 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(slcor), slcor_pl);
core             5599 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(slcor), slcor_pl);
core             5610 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(slcor), slcor_pl);
core             5621 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(slcor), slcor_pl);
core             5633 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	max_lag = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_LAG);
core             5676 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	max_lag_members = MLXSW_CORE_RES_GET(mlxsw_sp->core,
core             5714 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	mlxsw_core_lag_mapping_set(mlxsw_sp->core, lag_id, port_index,
core             5757 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	mlxsw_core_lag_mapping_clear(mlxsw_sp->core, lag_id,
core             5774 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sldr), sldr_pl);
core             5785 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sldr), sldr_pl);
core             5860 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(spms), spms_pl);
core              144 drivers/net/ethernet/mellanox/mlxsw/spectrum.h 	struct mlxsw_core *core;
core              363 drivers/net/ethernet/mellanox/mlxsw/spectrum.h 	local_port = mlxsw_core_lag_mapping_get(mlxsw_sp->core,
core              215 drivers/net/ethernet/mellanox/mlxsw/spectrum1_acl_tcam.c 	err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(ptce2), ptce2_pl);
core              212 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c 	struct devlink *devlink = priv_to_devlink(mlxsw_sp->core);
core              335 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c 	struct devlink *devlink = priv_to_devlink(mlxsw_sp->core);
core              363 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c 	struct devlink *devlink = priv_to_devlink(mlxsw_sp->core);
core               57 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(rmft2), rmft2_pl);
core               79 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(rmft2), rmft2_pl);
core              184 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(rtar), rtar_pl);
core              195 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c 	mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(rtar), rtar_pl);
core              206 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c 	max_tcam_rules = MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_MAX_TCAM_RULES);
core              211 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(rtar), rtar_pl);
core              226 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c 	mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(rrcr), rrcr_pl);
core              301 drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam.c 	if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_MAX_TCAM_RULES))
core              103 drivers/net/ethernet/mellanox/mlxsw/spectrum2_acl_tcam.c 		err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pefa), pefa_pl);
core              108 drivers/net/ethernet/mellanox/mlxsw/spectrum2_acl_tcam.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pgcr), pgcr_pl);
core              118 drivers/net/ethernet/mellanox/mlxsw/spectrum2_kvdl.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(iedr), iedr_pl);
core              188 drivers/net/ethernet/mellanox/mlxsw/spectrum2_kvdl.c 	if (!mlxsw_core_res_valid(mlxsw_sp->core,
core              190 drivers/net/ethernet/mellanox/mlxsw/spectrum2_kvdl.c 	    !mlxsw_core_res_valid(mlxsw_sp->core,
core              193 drivers/net/ethernet/mellanox/mlxsw/spectrum2_kvdl.c 	usage_bit_count = mlxsw_core_res_get(mlxsw_sp->core,
core              195 drivers/net/ethernet/mellanox/mlxsw/spectrum2_kvdl.c 	index_range = mlxsw_core_res_get(mlxsw_sp->core,
core               44 drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pemrbt), pemrbt_pl);
core              867 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c 	acl->afk = mlxsw_afk_create(MLXSW_CORE_RES_GET(mlxsw_sp->core,
core              126 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_atcam.c 	if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_MAX_LARGE_KEY_ID))
core              129 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_atcam.c 	max_lkey_id = MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_MAX_LARGE_KEY_ID);
core              284 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_atcam.c 	max_regions = MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_MAX_REGIONS);
core              289 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_atcam.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(perar), perar_pl);
core              410 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_atcam.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ptce3), ptce3_pl);
core              439 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_atcam.c 	mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ptce3), ptce3_pl);
core              468 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_atcam.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ptce3), ptce3_pl);
core              196 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(peabfe), peabfe_pl);
core              233 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c 		mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(peabfe), peabfe_pl);
core              247 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c 	if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_MAX_BF_LOG))
core              253 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c 	bf_bank_size = 1 << MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_MAX_BF_LOG);
core               23 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_ctcam.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ptar), ptar_pl);
core               36 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_ctcam.c 	mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(prcr), prcr_pl);
core               75 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_ctcam.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ptce2), ptce2_pl);
core               96 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_ctcam.c 	mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ptce2), ptce2_pl);
core              117 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_ctcam.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ptce2), ptce2_pl);
core              129 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_ctcam.c 	max_tcam_rules = MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_MAX_TCAM_RULES);
core              193 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(percr), percr_pl);
core              399 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(perpt), perpt_pl);
core              418 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(perpt), perpt_pl);
core              434 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pererp), pererp_pl);
core              452 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pererp), pererp_pl);
core              658 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pererp), pererp_pl);
core              675 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pererp), pererp_pl);
core             1363 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(percr), percr_pl);
core             1374 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pererp), pererp_pl);
core             1497 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_ERPT_ENTRIES_2KB) ||
core             1498 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	    !MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_ERPT_ENTRIES_4KB) ||
core             1499 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	    !MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_ERPT_ENTRIES_8KB) ||
core             1500 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	    !MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_ERPT_ENTRIES_12KB))
core             1503 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	size = MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_ERPT_ENTRIES_2KB);
core             1506 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	size = MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_ERPT_ENTRIES_4KB);
core             1509 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	size = MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_ERPT_ENTRIES_8KB);
core             1512 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	size = MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_ERPT_ENTRIES_12KB);
core             1524 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_MAX_ERPT_BANK_SIZE) ||
core             1525 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	    !MLXSW_CORE_RES_VALID(mlxsw_sp->core, ACL_MAX_ERPT_BANKS))
core             1527 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	erpt_bank_size = MLXSW_CORE_RES_GET(mlxsw_sp->core,
core             1529 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c 	erp_core->num_erp_banks = MLXSW_CORE_RES_GET(mlxsw_sp->core,
core               27 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_actions.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pefa), pefa_pl);
core               78 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_actions.c 	err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(pefa), pefa_pl);
core               98 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_actions.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ppbs), ppbs_pl);
core              190 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_actions.c 	mlxsw_sp->afa = mlxsw_afa_create(MLXSW_CORE_RES_GET(mlxsw_sp->core,
core               47 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c 	max_tcam_regions = MLXSW_CORE_RES_GET(mlxsw_sp->core,
core               49 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c 	max_regions = MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_MAX_REGIONS);
core               61 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c 	max_groups = MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_MAX_GROUPS);
core               69 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c 	tcam->max_group_size = MLXSW_CORE_RES_GET(mlxsw_sp->core,
core              107 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c 	if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, KVD_SIZE))
core              111 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c 	max_priority = MLXSW_CORE_RES_GET(mlxsw_sp->core, KVD_SIZE) - 1;
core              283 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pagt), pagt_pl);
core              370 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ppbt), ppbt_pl);
core              385 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c 	mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ppbt), ppbt_pl);
core              627 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ptar), ptar_pl);
core              643 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c 	mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ptar), ptar_pl);
core              654 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pacl), pacl_pl);
core              665 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c 	mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pacl), pacl_pl);
core              183 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sbpr), sbpr_pl);
core              207 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sbcm), sbcm_pl);
core              236 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sbpm), sbpm_pl);
core              259 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	return mlxsw_reg_trans_query(mlxsw_sp->core, MLXSW_REG(sbpm), sbpm_pl,
core              287 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	return mlxsw_reg_trans_query(mlxsw_sp->core, MLXSW_REG(sbpm), sbpm_pl,
core              318 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pbmc), pbmc_pl);
core              329 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	return mlxsw_reg_write(mlxsw_sp_port->mlxsw_sp->core, MLXSW_REG(pptb),
core              363 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core);
core              401 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	int max_ports = mlxsw_core_max_ports(mlxsw_sp->core);
core              842 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 		err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sbmm), sbmm_pl);
core              904 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, CELL_SIZE))
core              907 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_BUFFER_SIZE))
core              910 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_HEADROOM_SIZE))
core              916 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	mlxsw_sp->sb->cell_size = MLXSW_CORE_RES_GET(mlxsw_sp->core, CELL_SIZE);
core              917 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	mlxsw_sp->sb->sb_size = MLXSW_CORE_RES_GET(mlxsw_sp->core,
core              919 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	max_headroom_size = MLXSW_CORE_RES_GET(mlxsw_sp->core,
core              942 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	err = devlink_sb_register(priv_to_devlink(mlxsw_sp->core), 0,
core              966 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	devlink_sb_unregister(priv_to_devlink(mlxsw_sp->core), 0);
core             1016 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	if (size > MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_BUFFER_SIZE)) {
core               39 drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.c 	pool_size = MLXSW_CORE_RES_GET(mlxsw_sp->core, COUNTER_POOL_SIZE);
core               54 drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.c 	if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, COUNTER_SIZE_PACKETS_BYTES))
core               56 drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.c 	sub_pool->entry_size = MLXSW_CORE_RES_GET(mlxsw_sp->core,
core               60 drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.c 	if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, COUNTER_SIZE_ROUTER_BASIC))
core               62 drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.c 	sub_pool->entry_size = MLXSW_CORE_RES_GET(mlxsw_sp->core,
core               76 drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.c 	if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, COUNTER_POOL_SIZE))
core               91 drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.c 	pool->pool_size = MLXSW_CORE_RES_GET(mlxsw_sp->core, COUNTER_POOL_SIZE);
core               77 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 	return mlxsw_reg_write(mlxsw_sp_port->mlxsw_sp->core, MLXSW_REG(pptb),
core               99 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 	err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(pbmc), pbmc_pl);
core              110 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pbmc), pbmc_pl);
core              329 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qpts), qpts_pl);
core              341 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qrwe), qrwe_pl);
core              382 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qpdpm), qpdpm_pl);
core              396 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qpdsm), qpdsm_pl);
core              541 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 	err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(ppcnt), ppcnt_pl);
core              581 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 	return mlxsw_reg_write(mlxsw_sp_port->mlxsw_sp->core, MLXSW_REG(pfcc),
core              212 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	rif_count = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS);
core              262 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS); i++) {
core              282 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	return MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS);
core              295 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	struct devlink *devlink = priv_to_devlink(mlxsw_sp->core);
core              305 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	struct devlink *devlink = priv_to_devlink(mlxsw_sp->core);
core              551 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	rif_count = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS);
core              558 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	for (; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS); i++) {
core              666 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS); i++) {
core              705 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS); i++) {
core              748 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	struct devlink *devlink = priv_to_devlink(mlxsw_sp->core);
core              775 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	struct devlink *devlink = priv_to_devlink(mlxsw_sp->core);
core              825 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	struct devlink *devlink = priv_to_devlink(mlxsw_sp->core);
core              852 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	struct devlink *devlink = priv_to_devlink(mlxsw_sp->core);
core             1228 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	struct devlink *devlink = priv_to_devlink(mlxsw_sp->core);
core             1255 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	struct devlink *devlink = priv_to_devlink(mlxsw_sp->core);
core             1263 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	struct devlink *devlink = priv_to_devlink(mlxsw_sp->core);
core             1294 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	devlink_dpipe_headers_unregister(priv_to_devlink(mlxsw_sp->core));
core             1300 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c 	struct devlink *devlink = priv_to_devlink(mlxsw_sp->core);
core              342 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c 	err = mlxsw_reg_write(fid_family->mlxsw_sp->core, MLXSW_REG(sftr),
core              422 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfmr), sfmr_pl);
core              437 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfmr), sfmr_pl);
core              447 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(svfa), svfa_pl);
core              457 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(svfa), svfa_pl);
core             1162 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c 		err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfgc), sfgc_pl);
core             1256 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c 	unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core);
core              139 drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ratr), ratr_pl);
core              178 drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(rtdp), rtdp_pl);
core              192 drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ralue), ralue_pl);
core               36 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr_tcam.c 	int erif_list_entries = MLXSW_CORE_RES_GET(mlxsw_sp->core,
core              161 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr_tcam.c 		err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(rigr2),
core              575 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr_tcam.c 	if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MC_ERIF_LIST_ENTRIES))
core              388 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(tnumt), tnumt_pl);
core              790 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c 	mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfdf), sfdf_pl);
core              893 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(tnqdr), tnqdr_pl);
core              905 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(tnqcr), tnqcr_pl);
core              919 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c 		err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(tneem),
core              940 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(tndem), tndem_pl);
core              979 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c 	if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_NVE_MC_ENTRIES_IPV4) ||
core              980 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c 	    !MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_NVE_MC_ENTRIES_IPV6))
core              982 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c 	max = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_NVE_MC_ENTRIES_IPV4);
core              984 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c 	max = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_NVE_MC_ENTRIES_IPV6);
core              113 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mprs), mprs_pl);
core              201 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(tngcr), tngcr_pl);
core              210 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c 	mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(tngcr), tngcr_pl);
core              220 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(rtdp), rtdp_pl);
core              304 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(tnpc), tnpc_pl);
core              328 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(tngcr), tngcr_pl);
core              346 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c 	mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(tngcr), tngcr_pl);
core              360 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(rtdp), rtdp_pl);
core               62 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c 	struct mlxsw_core *core;
core               76 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c 	struct mlxsw_core *mlxsw_core = clock->core;
core              106 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c 	struct mlxsw_core *mlxsw_core = clock->core;
core              127 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c 	struct mlxsw_core *mlxsw_core = clock->core;
core              268 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c 	clock->core = mlxsw_sp->core;
core              714 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mtptpt), mtptpt_pl);
core              723 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c 	err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(mogcr), mogcr_pl);
core              729 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mogcr), mogcr_pl);
core              738 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mtpppc), mtpppc_pl);
core              818 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c 		err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qpsc), qpsc_pl);
core              975 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c 	for (i = 1; i < mlxsw_core_max_ports(mlxsw_sp->core); i++) {
core             1013 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qeec), qeec_pl);
core             1032 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c 	err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(ptys), ptys_pl);
core              245 drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(cwtp), cwtp_cmd);
core              252 drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(cwtpm), cwtpm_cmd);
core              264 drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(cwtpm), cwtpm_cmd);
core              322 drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c 	if (p->max > MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_BUFFER_SIZE)) {
core              207 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(ritr), ritr_pl);
core              213 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ritr), ritr_pl);
core              234 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(ricnt), ricnt_pl);
core              248 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ricnt), ricnt_pl);
core              308 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	devlink = priv_to_devlink(mlxsw_sp->core);
core              516 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ralta), ralta_pl);
core              527 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ralta), ralta_pl);
core              551 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ralst), ralst_pl);
core              634 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_LPM_TREES))
core              637 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	max_trees = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_LPM_TREES);
core              701 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_VRS); i++) {
core              717 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(raltb), raltb_pl);
core              728 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(raltb), raltb_pl);
core              747 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_VRS); i++) {
core              913 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_VRS); i++) {
core              948 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_VRS))
core              951 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	max_vrs = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_VRS);
core             1468 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ritr), ritr_pl);
core             2007 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	devlink = priv_to_devlink(mlxsw_sp->core);
core             2243 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 		err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(rauhtd),
core             2372 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(rauht), rauht_pl);
core             2389 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(rauht), rauht_pl);
core             2729 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	devlink = priv_to_devlink(mlxsw_sp->core);
core             3066 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(raleu), raleu_pl);
core             3107 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ratr), ratr_pl);
core             4207 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ralue), ralue_pl);
core             4231 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ralue), ralue_pl);
core             4242 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ralue), ralue_pl);
core             4255 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ralue), ralue_pl);
core             4283 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ralue), ralue_pl);
core             5674 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ralta), ralta_pl);
core             5679 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ralst), ralst_pl);
core             5683 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_VRS); i++) {
core             5689 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 		err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(raltb),
core             5697 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 		err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ralue),
core             5882 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_VRS); i++) {
core             6329 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS); i++)
core             6343 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(ritr), ritr_pl);
core             6348 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ritr), ritr_pl);
core             6425 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS); i++) {
core             6888 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(ritr), ritr_pl);
core             6897 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ritr), ritr_pl);
core             6986 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS); i++) {
core             7165 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(ritr), ritr_pl);
core             7172 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ritr), ritr_pl);
core             7370 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ritr), ritr_pl);
core             7433 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ritr), ritr_pl);
core             7438 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_core_max_ports(mlxsw_sp->core) + 1;
core             7730 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ritr), ritr_pl);
core             7902 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	u64 max_rifs = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS);
core             7917 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	for (i = 0; i < MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS); i++)
core             7929 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(tigcr), tigcr_pl);
core             8018 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(recr2), recr2_pl);
core             8042 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(rdpm), rdpm_pl);
core             8052 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_RIFS))
core             8054 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	max_rifs = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS);
core             8059 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(rgcr), rgcr_pl);
core             8070 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(rgcr), rgcr_pl);
core               21 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c 	if (!MLXSW_CORE_RES_VALID(mlxsw_sp->core, MAX_SPAN))
core               24 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c 	mlxsw_sp->span.entries_count = MLXSW_CORE_RES_GET(mlxsw_sp->core,
core               76 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mpat), mpat_pl);
core               90 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c 	mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mpat), mpat_pl);
core              379 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mpat), mpat_pl);
core              479 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mpat), mpat_pl);
core              535 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mpat), mpat_pl);
core              749 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c 		err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sbib), sbib_pl);
core              788 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mpar), mpar_pl);
core              822 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c 		err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sbib), sbib_pl);
core              855 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c 		mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sbib), sbib_pl);
core              881 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c 		mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sbib), sbib_pl);
core              642 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfdat), sfdat_pl);
core              785 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(smid), smid_pl);
core             1206 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfdf), sfdf_pl);
core             1254 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl);
core             1282 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl);
core             1328 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl);
core             1392 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl);
core             1416 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	for (i = 1; i < mlxsw_core_max_ports(mlxsw_sp->core); i++) {
core             1424 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	for_each_set_bit(i, ports_bitmap, mlxsw_core_max_ports(mlxsw_sp->core))
core             1430 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(smid), smid_pl);
core             1447 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(smid), smid_pl);
core             1478 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 		max_lag_members = MLXSW_CORE_RES_GET(mlxsw_sp->core,
core             1523 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	num_of_ports = mlxsw_core_max_ports(mlxsw_sp->core);
core             1575 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 		     BITS_TO_LONGS(mlxsw_core_max_ports(mlxsw_sp->core));
core             1610 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 			 mlxsw_core_max_ports(mlxsw_sp->core))) {
core             1931 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	max_lag_members = MLXSW_CORE_RES_GET(mlxsw_sp->core,
core             2747 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(sfn), sfn_pl);
core               99 drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.c 	devlink = priv_to_devlink(mlxsw_sp->core);
core              100 drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.c 	in_devlink_port = mlxsw_core_port_devlink_port_get(mlxsw_sp->core,
core              109 drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.c 	struct devlink *devlink = priv_to_devlink(mlxsw_sp->core);
core              122 drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.c 	struct devlink *devlink = priv_to_devlink(mlxsw_sp->core);
core              227 drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qpcr), qpcr_pl);
core              250 drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.c 	return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(htgt), htgt_pl);
core               31 drivers/net/ethernet/mellanox/mlxsw/switchib.c 	struct mlxsw_core *core;
core              111 drivers/net/ethernet/mellanox/mlxsw/switchib.c 	err = mlxsw_reg_query(mlxsw_sib->core, MLXSW_REG(spad), spad_pl);
core              128 drivers/net/ethernet/mellanox/mlxsw/switchib.c 	return mlxsw_reg_write(mlxsw_sib->core, MLXSW_REG(paos), paos_pl);
core              140 drivers/net/ethernet/mellanox/mlxsw/switchib.c 	err = mlxsw_reg_query(mlxsw_sib->core, MLXSW_REG(pmtu), pmtu_pl);
core              149 drivers/net/ethernet/mellanox/mlxsw/switchib.c 	return mlxsw_reg_write(mlxsw_sib->core, MLXSW_REG(pmtu), pmtu_pl);
core              160 drivers/net/ethernet/mellanox/mlxsw/switchib.c 	err = mlxsw_reg_write(mlxsw_sib->core, MLXSW_REG(plib), plib_pl);
core              171 drivers/net/ethernet/mellanox/mlxsw/switchib.c 	return mlxsw_reg_write(mlxsw_sib->core, MLXSW_REG(pspa), pspa_pl);
core              182 drivers/net/ethernet/mellanox/mlxsw/switchib.c 	err = mlxsw_reg_query(mlxsw_sib->core, MLXSW_REG(pmlp), pmlp_pl);
core              198 drivers/net/ethernet/mellanox/mlxsw/switchib.c 	return mlxsw_reg_write(mlxsw_sib->core, MLXSW_REG(ptys), ptys_pl);
core              263 drivers/net/ethernet/mellanox/mlxsw/switchib.c 	mlxsw_core_port_ib_set(mlxsw_sib->core, mlxsw_sib_port->local_port,
core              283 drivers/net/ethernet/mellanox/mlxsw/switchib.c 	err = mlxsw_core_port_init(mlxsw_sib->core, local_port,
core              298 drivers/net/ethernet/mellanox/mlxsw/switchib.c 	mlxsw_core_port_fini(mlxsw_sib->core, local_port);
core              306 drivers/net/ethernet/mellanox/mlxsw/switchib.c 	mlxsw_core_port_clear(mlxsw_sib->core, local_port, mlxsw_sib);
core              316 drivers/net/ethernet/mellanox/mlxsw/switchib.c 	mlxsw_core_port_fini(mlxsw_sib->core, local_port);
core              405 drivers/net/ethernet/mellanox/mlxsw/switchib.c 		err = mlxsw_core_trap_register(mlxsw_sib->core,
core              416 drivers/net/ethernet/mellanox/mlxsw/switchib.c 		mlxsw_core_trap_unregister(mlxsw_sib->core,
core              429 drivers/net/ethernet/mellanox/mlxsw/switchib.c 		mlxsw_core_trap_unregister(mlxsw_sib->core,
core              454 drivers/net/ethernet/mellanox/mlxsw/switchib.c 	mlxsw_sib->core = mlxsw_core;
core               30 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_core *core;
core              167 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	return mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(paos), paos_pl);
core              179 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_query(mlxsw_sx->core, MLXSW_REG(paos), paos_pl);
core              196 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_query(mlxsw_sx->core, MLXSW_REG(pmtu), pmtu_pl);
core              205 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	return mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(pmtu), pmtu_pl);
core              230 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(plib), plib_pl);
core              240 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	return mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(pspa), pspa_pl);
core              250 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	return mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(sspr), sspr_pl);
core              261 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_query(mlxsw_sx->core, MLXSW_REG(pmlp), pmlp_pl);
core              310 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	if (mlxsw_core_skb_transmit_busy(mlxsw_sx->core, &tx_info))
core              321 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_core_skb_transmit(mlxsw_sx->core, skb, &tx_info);
core              385 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	return mlxsw_core_port_devlink_port_get(mlxsw_sx->core,
core              530 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_query(mlxsw_sx->core, MLXSW_REG(ppcnt), ppcnt_pl);
core              747 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_query(mlxsw_sx->core, MLXSW_REG(ptys), ptys_pl);
core              837 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_query(mlxsw_sx->core, MLXSW_REG(ptys), ptys_pl);
core              855 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(ptys), ptys_pl);
core              899 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_query(mlxsw_sx->core, MLXSW_REG(spad), spad_pl);
core              914 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_query(mlxsw_sx->core, MLXSW_REG(ppad), ppad_pl);
core              938 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(spms), spms_pl);
core              951 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	return mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(ptys), ptys_pl);
core              965 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	return mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(ptys), ptys_pl);
core              976 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	return mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(spmlr), spmlr_pl);
core             1082 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_core_port_eth_set(mlxsw_sx->core, mlxsw_sx_port->local_port,
core             1108 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_core_port_init(mlxsw_sx->core, local_port,
core             1123 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_core_port_fini(mlxsw_sx->core, local_port);
core             1131 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_core_port_clear(mlxsw_sx->core, local_port, mlxsw_sx);
core             1209 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_core_port_ib_set(mlxsw_sx->core, mlxsw_sx_port->local_port,
core             1229 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_core_port_clear(mlxsw_sx->core, local_port, mlxsw_sx);
core             1239 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		mlxsw_core_port_type_get(mlxsw_sx->core, local_port);
core             1250 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_core_port_fini(mlxsw_sx->core, local_port);
core             1257 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	for (i = 1; i < mlxsw_core_max_ports(mlxsw_sx->core); i++)
core             1266 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sx->core);
core             1341 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	port_type = mlxsw_core_port_type_get(mlxsw_sx->core, local_port);
core             1441 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(htgt), htgt_pl);
core             1452 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(htgt), htgt_pl);
core             1457 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		err = mlxsw_core_trap_register(mlxsw_sx->core,
core             1468 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		mlxsw_core_trap_unregister(mlxsw_sx->core,
core             1480 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		mlxsw_core_trap_unregister(mlxsw_sx->core,
core             1499 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(sftr), sftr_pl);
core             1510 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(sfgc), sfgc_pl);
core             1519 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(sfgc), sfgc_pl);
core             1528 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(sfgc), sfgc_pl);
core             1537 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(sfgc), sfgc_pl);
core             1546 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(sfgc), sfgc_pl);
core             1551 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	return mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(sgcr), sgcr_pl);
core             1574 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_sx->core = mlxsw_core;
core              298 drivers/net/ethernet/qlogic/qed/qed_hw.h 	}	core;
core             1653 drivers/net/ethernet/toshiba/ps3_gelic_net.c 		dev_dbg(&dev->core, "%s:ps3_open_hv_device failed\n",
core             1661 drivers/net/ethernet/toshiba/ps3_gelic_net.c 		dev_dbg(&dev->core, "%s:ps3_dma_region_create failed(%d)\n",
core             1670 drivers/net/ethernet/toshiba/ps3_gelic_net.c 		dev_info(&dev->core, "%s:gelic_net_alloc_card failed\n",
core             1690 drivers/net/ethernet/toshiba/ps3_gelic_net.c 		dev_dbg(&dev->core,
core             1747 drivers/net/ethernet/toshiba/ps3_gelic_net.c 	SET_NETDEV_DEV(netdev, &card->dev->core);
core             1751 drivers/net/ethernet/toshiba/ps3_gelic_net.c 		dev_dbg(&dev->core, "%s: setup_netdev failed %d\n",
core             1759 drivers/net/ethernet/toshiba/ps3_gelic_net.c 		dev_dbg(&dev->core, "%s: WL init failed\n", __func__);
core             1853 drivers/net/ethernet/toshiba/ps3_gelic_net.c 	.core.name = "ps3_gelic_driver",
core             1854 drivers/net/ethernet/toshiba/ps3_gelic_net.c 	.core.owner = THIS_MODULE,
core              332 drivers/net/ethernet/toshiba/ps3_gelic_net.h 	return &card->dev->core;
core             2594 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c 	SET_NETDEV_DEV(netdev, &card->dev->core);
core               75 drivers/net/wireless/broadcom/b43/bus.c struct b43_bus_dev *b43_bus_dev_bcma_init(struct bcma_device *core)
core               82 drivers/net/wireless/broadcom/b43/bus.c 	dev->bdev = core;
core              103 drivers/net/wireless/broadcom/b43/bus.c 	dev->dev = &core->dev;
core              104 drivers/net/wireless/broadcom/b43/bus.c 	dev->dma_dev = core->dma_dev;
core              105 drivers/net/wireless/broadcom/b43/bus.c 	dev->irq = core->irq;
core              107 drivers/net/wireless/broadcom/b43/bus.c 	dev->board_vendor = core->bus->boardinfo.vendor;
core              108 drivers/net/wireless/broadcom/b43/bus.c 	dev->board_type = core->bus->boardinfo.type;
core              109 drivers/net/wireless/broadcom/b43/bus.c 	dev->board_rev = core->bus->sprom.board_rev;
core              111 drivers/net/wireless/broadcom/b43/bus.c 	dev->chip_id = core->bus->chipinfo.id;
core              112 drivers/net/wireless/broadcom/b43/bus.c 	dev->chip_rev = core->bus->chipinfo.rev;
core              113 drivers/net/wireless/broadcom/b43/bus.c 	dev->chip_pkg = core->bus->chipinfo.pkg;
core              115 drivers/net/wireless/broadcom/b43/bus.c 	dev->bus_sprom = &core->bus->sprom;
core              117 drivers/net/wireless/broadcom/b43/bus.c 	dev->core_id = core->id.id;
core              118 drivers/net/wireless/broadcom/b43/bus.c 	dev->core_rev = core->id.rev;
core               90 drivers/net/wireless/broadcom/b43/bus.h struct b43_bus_dev *b43_bus_dev_bcma_init(struct bcma_device *core);
core             5617 drivers/net/wireless/broadcom/b43/main.c static int b43_bcma_probe(struct bcma_device *core)
core             5624 drivers/net/wireless/broadcom/b43/main.c 	    (core->id.rev == 0x17 || core->id.rev == 0x18)) {
core             5629 drivers/net/wireless/broadcom/b43/main.c 	dev = b43_bus_dev_bcma_init(core);
core             5656 drivers/net/wireless/broadcom/b43/main.c static void b43_bcma_remove(struct bcma_device *core)
core             5658 drivers/net/wireless/broadcom/b43/main.c 	struct b43_wldev *wldev = bcma_get_drvdata(core);
core               40 drivers/net/wireless/broadcom/b43/phy_ht.c 	int core;
core               56 drivers/net/wireless/broadcom/b43/phy_ht.c 	for (core = 0; core < 3; core++) {
core               57 drivers/net/wireless/broadcom/b43/phy_ht.c 		r = routing[core];
core              436 drivers/net/wireless/broadcom/b43/phy_ht.c 	int core;
core              441 drivers/net/wireless/broadcom/b43/phy_ht.c 		for (core = 0; core < 3; core++) {
core              443 drivers/net/wireless/broadcom/b43/phy_ht.c 			if ((core_sel == 1 && core != 0) ||
core              444 drivers/net/wireless/broadcom/b43/phy_ht.c 			    (core_sel == 2 && core != 1) ||
core              445 drivers/net/wireless/broadcom/b43/phy_ht.c 			    (core_sel == 3 && core != 2))
core              450 drivers/net/wireless/broadcom/b43/phy_ht.c 				b43_phy_set(dev, ctl_regs[core][0], 0x3 << 8);
core              451 drivers/net/wireless/broadcom/b43/phy_ht.c 				b43_phy_set(dev, ctl_regs[core][0], 0x3 << 10);
core              452 drivers/net/wireless/broadcom/b43/phy_ht.c 				b43_phy_set(dev, ctl_regs[core][1], 0x1 << 9);
core              453 drivers/net/wireless/broadcom/b43/phy_ht.c 				b43_phy_set(dev, ctl_regs[core][1], 0x1 << 10);
core              456 drivers/net/wireless/broadcom/b43/phy_ht.c 				b43_radio_write(dev, radio_r[core] | 0x159,
core              579 drivers/net/wireless/broadcom/b43/phy_ht.c 	int core;
core              581 drivers/net/wireless/broadcom/b43/phy_ht.c 	for (core = 0; core < 3; core++) {
core              582 drivers/net/wireless/broadcom/b43/phy_ht.c 		save_regs[core][1] = b43_phy_read(dev, base[core] + 6);
core              583 drivers/net/wireless/broadcom/b43/phy_ht.c 		save_regs[core][2] = b43_phy_read(dev, base[core] + 7);
core              584 drivers/net/wireless/broadcom/b43/phy_ht.c 		save_regs[core][0] = b43_phy_read(dev, base[core] + 0);
core              586 drivers/net/wireless/broadcom/b43/phy_ht.c 		b43_phy_write(dev, base[core] + 6, 0);
core              587 drivers/net/wireless/broadcom/b43/phy_ht.c 		b43_phy_mask(dev, base[core] + 7, ~0xF); /* 0xF? Or just 0x6? */
core              588 drivers/net/wireless/broadcom/b43/phy_ht.c 		b43_phy_set(dev, base[core] + 0, 0x0400);
core              589 drivers/net/wireless/broadcom/b43/phy_ht.c 		b43_phy_set(dev, base[core] + 0, 0x1000);
core              602 drivers/net/wireless/broadcom/b43/phy_ht.c 	for (core = 0; core < 3; core++) {
core              603 drivers/net/wireless/broadcom/b43/phy_ht.c 		b43_phy_write(dev, base[core] + 0, save_regs[core][0]);
core              604 drivers/net/wireless/broadcom/b43/phy_ht.c 		b43_phy_write(dev, base[core] + 6, save_regs[core][1]);
core              605 drivers/net/wireless/broadcom/b43/phy_ht.c 		b43_phy_write(dev, base[core] + 7, save_regs[core][2]);
core              612 drivers/net/wireless/broadcom/b43/phy_ht.c 	int core;
core              615 drivers/net/wireless/broadcom/b43/phy_ht.c 	for (core = 0; core < 3; core++) {
core              617 drivers/net/wireless/broadcom/b43/phy_ht.c 		b43_radio_write(dev, routing[core] | 0x0159, 0x0011);
core              736 drivers/net/wireless/broadcom/b43/phy_ht.c 	struct bcma_device *core = dev->dev->bdev;
core              742 drivers/net/wireless/broadcom/b43/phy_ht.c 	bcma_core_pll_ctl(core, B43_BCMA_CLKCTLST_PHY_PLL_REQ, 0, false);
core              743 drivers/net/wireless/broadcom/b43/phy_ht.c 	bcma_pmu_spuravoid_pllupdate(&core->bus->drv_cc, spuravoid);
core              744 drivers/net/wireless/broadcom/b43/phy_ht.c 	bcma_core_pll_ctl(core,
core              143 drivers/net/wireless/broadcom/b43/phy_n.c 					   u16 value, u8 core, bool off,
core              151 drivers/net/wireless/broadcom/b43/phy_n.c 					  u16 value, u8 core, bool off,
core              187 drivers/net/wireless/broadcom/b43/phy_n.c 			if (!core || (core & (1 << i))) {
core              199 drivers/net/wireless/broadcom/b43/phy_n.c 						 u16 value, u8 core, bool off)
core              208 drivers/net/wireless/broadcom/b43/phy_n.c 		b43_nphy_rf_ctl_override_rev7(dev, 0x20, value, core, off, 1);
core              209 drivers/net/wireless/broadcom/b43/phy_n.c 		b43_nphy_rf_ctl_override_rev7(dev, 0x10, value, core, off, 1);
core              210 drivers/net/wireless/broadcom/b43/phy_n.c 		b43_nphy_rf_ctl_override_rev7(dev, 0x08, value, core, off, 1);
core              213 drivers/net/wireless/broadcom/b43/phy_n.c 		b43_nphy_rf_ctl_override_rev7(dev, 0x4, value, core, off, 1);
core              214 drivers/net/wireless/broadcom/b43/phy_n.c 		b43_nphy_rf_ctl_override_rev7(dev, 0x2, value, core, off, 1);
core              215 drivers/net/wireless/broadcom/b43/phy_n.c 		b43_nphy_rf_ctl_override_rev7(dev, 0x1, value, core, off, 1);
core              216 drivers/net/wireless/broadcom/b43/phy_n.c 		b43_nphy_rf_ctl_override_rev7(dev, 0x2, value, core, off, 2);
core              217 drivers/net/wireless/broadcom/b43/phy_n.c 		b43_nphy_rf_ctl_override_rev7(dev, 0x0800, 0, core, off, 1);
core              220 drivers/net/wireless/broadcom/b43/phy_n.c 		b43_nphy_rf_ctl_override_rev7(dev, 0x4, value, core, off, 0);
core              221 drivers/net/wireless/broadcom/b43/phy_n.c 		b43_nphy_rf_ctl_override_rev7(dev, 0x2, value, core, off, 1);
core              222 drivers/net/wireless/broadcom/b43/phy_n.c 		b43_nphy_rf_ctl_override_rev7(dev, 0x1, value, core, off, 2);
core              223 drivers/net/wireless/broadcom/b43/phy_n.c 		b43_nphy_rf_ctl_override_rev7(dev, 0x0800, 1, core, off, 1);
core              227 drivers/net/wireless/broadcom/b43/phy_n.c 		b43_nphy_rf_ctl_override_rev7(dev, 0x0800, tmp, core, off, 0);
core              229 drivers/net/wireless/broadcom/b43/phy_n.c 		b43_nphy_rf_ctl_override_rev7(dev, 0x6000, tmp, core, off, 0);
core              233 drivers/net/wireless/broadcom/b43/phy_n.c 		b43_nphy_rf_ctl_override_rev7(dev, 0x1000, tmp, core, off, 0);
core              235 drivers/net/wireless/broadcom/b43/phy_n.c 		b43_nphy_rf_ctl_override_rev7(dev, 0x4000, tmp, core, off, 0);
core              242 drivers/net/wireless/broadcom/b43/phy_n.c 				     u16 value, u8 core, bool off)
core              270 drivers/net/wireless/broadcom/b43/phy_n.c 				if (core == 0 || ((1 << i) & core)) {
core              296 drivers/net/wireless/broadcom/b43/phy_n.c 				core = 1;
core              303 drivers/net/wireless/broadcom/b43/phy_n.c 			if ((1 << i) & core)
core              321 drivers/net/wireless/broadcom/b43/phy_n.c 	int core;
core              325 drivers/net/wireless/broadcom/b43/phy_n.c 	for (core = 0; core < 2; core++) {
core              326 drivers/net/wireless/broadcom/b43/phy_n.c 		if ((core_sel == 1 && core != 0) ||
core              327 drivers/net/wireless/broadcom/b43/phy_n.c 		    (core_sel == 2 && core != 1))
core              330 drivers/net/wireless/broadcom/b43/phy_n.c 		reg = (core == 0) ? B43_NPHY_RFCTL_INTC1 : B43_NPHY_RFCTL_INTC2;
core              388 drivers/net/wireless/broadcom/b43/phy_n.c 					  u16 value, u8 core)
core              395 drivers/net/wireless/broadcom/b43/phy_n.c 						   core);
core              402 drivers/net/wireless/broadcom/b43/phy_n.c 		if ((core == 1 && i == 1) || (core == 2 && !i))
core             1655 drivers/net/wireless/broadcom/b43/phy_n.c 					s8 offset, u8 core,
core             1660 drivers/net/wireless/broadcom/b43/phy_n.c 	bool core1or5 = (core == 1) || (core == 5);
core             1661 drivers/net/wireless/broadcom/b43/phy_n.c 	bool core2or5 = (core == 2) || (core == 5);
core             2078 drivers/net/wireless/broadcom/b43/phy_n.c 	int core, i, j, vcm;
core             2137 drivers/net/wireless/broadcom/b43/phy_n.c 	for (core = 0; core < 2; core++) {
core             2138 drivers/net/wireless/broadcom/b43/phy_n.c 		if (!(rx_core_state & (1 << core)))
core             2140 drivers/net/wireless/broadcom/b43/phy_n.c 		r = core ? B2056_RX1 : B2056_RX0;
core             2141 drivers/net/wireless/broadcom/b43/phy_n.c 		b43_nphy_scale_offset_rssi(dev, 0, 0, core + 1, N_RAIL_I,
core             2143 drivers/net/wireless/broadcom/b43/phy_n.c 		b43_nphy_scale_offset_rssi(dev, 0, 0, core + 1, N_RAIL_Q,
core             2150 drivers/net/wireless/broadcom/b43/phy_n.c 						  core ? R2057_NB_MASTER_CORE1 :
core             2165 drivers/net/wireless/broadcom/b43/phy_n.c 			if (2 * core != i)
core             2184 drivers/net/wireless/broadcom/b43/phy_n.c 					  core ? R2057_NB_MASTER_CORE1 :
core             2192 drivers/net/wireless/broadcom/b43/phy_n.c 			if (core != i / 2)
core             2208 drivers/net/wireless/broadcom/b43/phy_n.c 	for (core = 0; core < 2; core++) {
core             2209 drivers/net/wireless/broadcom/b43/phy_n.c 		if (!(rx_core_state & (1 << core)))
core             2212 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_nphy_scale_offset_rssi(dev, 0, 0, core + 1,
core             2214 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_nphy_scale_offset_rssi(dev, 0, 0, core + 1,
core             2218 drivers/net/wireless/broadcom/b43/phy_n.c 				if (j / 2 == core) {
core             2225 drivers/net/wireless/broadcom/b43/phy_n.c 						offset[2 * core], core + 1, j % 2, i);
core             2301 drivers/net/wireless/broadcom/b43/phy_n.c 	u8 core;
core             2403 drivers/net/wireless/broadcom/b43/phy_n.c 		core = (i / 2) ? 2 : 1;
core             2406 drivers/net/wireless/broadcom/b43/phy_n.c 		b43_nphy_scale_offset_rssi(dev, 0, offset[i], core, rail,
core             2725 drivers/net/wireless/broadcom/b43/phy_n.c 	u8 core;
core             2784 drivers/net/wireless/broadcom/b43/phy_n.c 	for (core = 0; core < 2; core++) {
core             2785 drivers/net/wireless/broadcom/b43/phy_n.c 		lpf_ofdm_20mhz[core] = b43_nphy_read_lpf_ctl(dev, 0x154 + core * 0x10);
core             2786 drivers/net/wireless/broadcom/b43/phy_n.c 		lpf_ofdm_40mhz[core] = b43_nphy_read_lpf_ctl(dev, 0x159 + core * 0x10);
core             2787 drivers/net/wireless/broadcom/b43/phy_n.c 		lpf_11b[core] = b43_nphy_read_lpf_ctl(dev, 0x152 + core * 0x10);
core             2800 drivers/net/wireless/broadcom/b43/phy_n.c 				for (core = 0; core < 2; core++) {
core             2801 drivers/net/wireless/broadcom/b43/phy_n.c 					scap_val_11b[core] = scap_val;
core             2802 drivers/net/wireless/broadcom/b43/phy_n.c 					bcap_val_11b[core] = bcap_val;
core             2803 drivers/net/wireless/broadcom/b43/phy_n.c 					scap_val_11n_20[core] = scap_val;
core             2804 drivers/net/wireless/broadcom/b43/phy_n.c 					bcap_val_11n_20[core] = bcap_val;
core             2805 drivers/net/wireless/broadcom/b43/phy_n.c 					scap_val_11n_40[core] = 0xc;
core             2806 drivers/net/wireless/broadcom/b43/phy_n.c 					bcap_val_11n_40[core] = 0xc;
core             2817 drivers/net/wireless/broadcom/b43/phy_n.c 			for (core = 0; core < 2; core++) {
core             2818 drivers/net/wireless/broadcom/b43/phy_n.c 				scap_val_11b[core] = scap_val;
core             2819 drivers/net/wireless/broadcom/b43/phy_n.c 				bcap_val_11b[core] = bcap_val;
core             2820 drivers/net/wireless/broadcom/b43/phy_n.c 				lpf_ofdm_20mhz[core] = 4;
core             2821 drivers/net/wireless/broadcom/b43/phy_n.c 				lpf_11b[core] = 1;
core             2823 drivers/net/wireless/broadcom/b43/phy_n.c 					scap_val_11n_20[core] = 0xc;
core             2824 drivers/net/wireless/broadcom/b43/phy_n.c 					bcap_val_11n_20[core] = 0xc;
core             2825 drivers/net/wireless/broadcom/b43/phy_n.c 					scap_val_11n_40[core] = 0xa;
core             2826 drivers/net/wireless/broadcom/b43/phy_n.c 					bcap_val_11n_40[core] = 0xa;
core             2828 drivers/net/wireless/broadcom/b43/phy_n.c 					scap_val_11n_20[core] = 0x14;
core             2829 drivers/net/wireless/broadcom/b43/phy_n.c 					bcap_val_11n_20[core] = 0x14;
core             2830 drivers/net/wireless/broadcom/b43/phy_n.c 					scap_val_11n_40[core] = 0xf;
core             2831 drivers/net/wireless/broadcom/b43/phy_n.c 					bcap_val_11n_40[core] = 0xf;
core             2838 drivers/net/wireless/broadcom/b43/phy_n.c 			for (core = 0; core < 2; core++) {
core             2839 drivers/net/wireless/broadcom/b43/phy_n.c 				bcap_val_11b[core] = bcap_val;
core             2840 drivers/net/wireless/broadcom/b43/phy_n.c 				scap_val_11b[core] = scap_val;
core             2841 drivers/net/wireless/broadcom/b43/phy_n.c 				lpf_11b[core] = 1;
core             2844 drivers/net/wireless/broadcom/b43/phy_n.c 					bcap_val_11n_20[core] = bcap_val + 13;
core             2845 drivers/net/wireless/broadcom/b43/phy_n.c 					scap_val_11n_20[core] = scap_val + 15;
core             2847 drivers/net/wireless/broadcom/b43/phy_n.c 					bcap_val_11n_20[core] = bcap_val + 14;
core             2848 drivers/net/wireless/broadcom/b43/phy_n.c 					scap_val_11n_20[core] = scap_val + 15;
core             2850 drivers/net/wireless/broadcom/b43/phy_n.c 				lpf_ofdm_20mhz[core] = 4;
core             2853 drivers/net/wireless/broadcom/b43/phy_n.c 					bcap_val_11n_40[core] = bcap_val - 7;
core             2854 drivers/net/wireless/broadcom/b43/phy_n.c 					scap_val_11n_40[core] = scap_val - 5;
core             2856 drivers/net/wireless/broadcom/b43/phy_n.c 					bcap_val_11n_40[core] = bcap_val + 2;
core             2857 drivers/net/wireless/broadcom/b43/phy_n.c 					scap_val_11n_40[core] = scap_val + 4;
core             2859 drivers/net/wireless/broadcom/b43/phy_n.c 				lpf_ofdm_40mhz[core] = 4;
core             2865 drivers/net/wireless/broadcom/b43/phy_n.c 			for (core = 0; core < 2; core++) {
core             2866 drivers/net/wireless/broadcom/b43/phy_n.c 				bcap_val_11b[core] = bcap_val;
core             2867 drivers/net/wireless/broadcom/b43/phy_n.c 				scap_val_11b[core] = scap_val;
core             2868 drivers/net/wireless/broadcom/b43/phy_n.c 				lpf_11b[core] = 1;
core             2892 drivers/net/wireless/broadcom/b43/phy_n.c 			for (core = 0; core < 2; core++) {
core             2893 drivers/net/wireless/broadcom/b43/phy_n.c 				lpf_ofdm_20mhz[core] = 1;
core             2894 drivers/net/wireless/broadcom/b43/phy_n.c 				lpf_ofdm_40mhz[core] = 3;
core             2895 drivers/net/wireless/broadcom/b43/phy_n.c 				scap_val_11b[core] = scap_val;
core             2896 drivers/net/wireless/broadcom/b43/phy_n.c 				bcap_val_11b[core] = bcap_val;
core             2897 drivers/net/wireless/broadcom/b43/phy_n.c 				scap_val_11n_20[core] = 0x11;
core             2898 drivers/net/wireless/broadcom/b43/phy_n.c 				scap_val_11n_40[core] = 0x11;
core             2899 drivers/net/wireless/broadcom/b43/phy_n.c 				bcap_val_11n_20[core] = 0x13;
core             2900 drivers/net/wireless/broadcom/b43/phy_n.c 				bcap_val_11n_40[core] = 0x13;
core             2910 drivers/net/wireless/broadcom/b43/phy_n.c 		for (core = 0; core < 2; core++) {
core             2911 drivers/net/wireless/broadcom/b43/phy_n.c 			bcap_val_11b[core] = clamp_val(bcap_val_11b[core], 0, 0x1f);
core             2912 drivers/net/wireless/broadcom/b43/phy_n.c 			scap_val_11b[core] = clamp_val(scap_val_11b[core], 0, 0x1f);
core             2913 drivers/net/wireless/broadcom/b43/phy_n.c 			bcap_val_11n_20[core] = clamp_val(bcap_val_11n_20[core], 0, 0x1f);
core             2914 drivers/net/wireless/broadcom/b43/phy_n.c 			scap_val_11n_20[core] = clamp_val(scap_val_11n_20[core], 0, 0x1f);
core             2915 drivers/net/wireless/broadcom/b43/phy_n.c 			bcap_val_11n_40[core] = clamp_val(bcap_val_11n_40[core], 0, 0x1f);
core             2916 drivers/net/wireless/broadcom/b43/phy_n.c 			scap_val_11n_40[core] = clamp_val(scap_val_11n_40[core], 0, 0x1f);
core             2918 drivers/net/wireless/broadcom/b43/phy_n.c 			rx2tx_lut_20_11b[core] = (rx2tx_lut_extra << 13) |
core             2919 drivers/net/wireless/broadcom/b43/phy_n.c 						 (bcap_val_11b[core] << 8) |
core             2920 drivers/net/wireless/broadcom/b43/phy_n.c 						 (scap_val_11b[core] << 3) |
core             2921 drivers/net/wireless/broadcom/b43/phy_n.c 						 lpf_11b[core];
core             2922 drivers/net/wireless/broadcom/b43/phy_n.c 			rx2tx_lut_20_11n[core] = (rx2tx_lut_extra << 13) |
core             2923 drivers/net/wireless/broadcom/b43/phy_n.c 						 (bcap_val_11n_20[core] << 8) |
core             2924 drivers/net/wireless/broadcom/b43/phy_n.c 						 (scap_val_11n_20[core] << 3) |
core             2925 drivers/net/wireless/broadcom/b43/phy_n.c 						 lpf_ofdm_20mhz[core];
core             2926 drivers/net/wireless/broadcom/b43/phy_n.c 			rx2tx_lut_40_11n[core] = (rx2tx_lut_extra << 13) |
core             2927 drivers/net/wireless/broadcom/b43/phy_n.c 						 (bcap_val_11n_40[core] << 8) |
core             2928 drivers/net/wireless/broadcom/b43/phy_n.c 						 (scap_val_11n_40[core] << 3) |
core             2929 drivers/net/wireless/broadcom/b43/phy_n.c 						 lpf_ofdm_40mhz[core];
core             2932 drivers/net/wireless/broadcom/b43/phy_n.c 		for (core = 0; core < 2; core++) {
core             2933 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_ntab_write(dev, B43_NTAB16(7, 0x152 + core * 16),
core             2934 drivers/net/wireless/broadcom/b43/phy_n.c 				       rx2tx_lut_20_11b[core]);
core             2935 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_ntab_write(dev, B43_NTAB16(7, 0x153 + core * 16),
core             2936 drivers/net/wireless/broadcom/b43/phy_n.c 				       rx2tx_lut_20_11n[core]);
core             2937 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_ntab_write(dev, B43_NTAB16(7, 0x154 + core * 16),
core             2938 drivers/net/wireless/broadcom/b43/phy_n.c 				       rx2tx_lut_20_11n[core]);
core             2939 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_ntab_write(dev, B43_NTAB16(7, 0x155 + core * 16),
core             2940 drivers/net/wireless/broadcom/b43/phy_n.c 				       rx2tx_lut_40_11n[core]);
core             2941 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_ntab_write(dev, B43_NTAB16(7, 0x156 + core * 16),
core             2942 drivers/net/wireless/broadcom/b43/phy_n.c 				       rx2tx_lut_40_11n[core]);
core             2943 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_ntab_write(dev, B43_NTAB16(7, 0x157 + core * 16),
core             2944 drivers/net/wireless/broadcom/b43/phy_n.c 				       rx2tx_lut_40_11n[core]);
core             2945 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_ntab_write(dev, B43_NTAB16(7, 0x158 + core * 16),
core             2946 drivers/net/wireless/broadcom/b43/phy_n.c 				       rx2tx_lut_40_11n[core]);
core             2947 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_ntab_write(dev, B43_NTAB16(7, 0x159 + core * 16),
core             2948 drivers/net/wireless/broadcom/b43/phy_n.c 				       rx2tx_lut_40_11n[core]);
core             2974 drivers/net/wireless/broadcom/b43/phy_n.c 			for (core = 0; core < 2; core++) {
core             2975 drivers/net/wireless/broadcom/b43/phy_n.c 				if (core == 0) {
core             2992 drivers/net/wireless/broadcom/b43/phy_n.c 				for (core = 0; core < 2; core++) {
core             2993 drivers/net/wireless/broadcom/b43/phy_n.c 					if (core == 0)
core             3003 drivers/net/wireless/broadcom/b43/phy_n.c 				for (core = 0; core < 2; core++) {
core             3004 drivers/net/wireless/broadcom/b43/phy_n.c 					if (core == 0) {
core             3040 drivers/net/wireless/broadcom/b43/phy_n.c 				for (core = 0; core < 2; core++) {
core             3041 drivers/net/wireless/broadcom/b43/phy_n.c 					int o = core ? 0x85 : 0;
core             3064 drivers/net/wireless/broadcom/b43/phy_n.c 			for (core = 0; core < 2; core++) {
core             3065 drivers/net/wireless/broadcom/b43/phy_n.c 				if (core == 0) {
core             3079 drivers/net/wireless/broadcom/b43/phy_n.c 		for (core = 0; core < 2; core++) {
core             3080 drivers/net/wireless/broadcom/b43/phy_n.c 			if (core == 0) {
core             3550 drivers/net/wireless/broadcom/b43/phy_n.c static void b43_nphy_iq_cal_gain_params(struct b43_wldev *dev, u16 core,
core             3559 drivers/net/wireless/broadcom/b43/phy_n.c 		params->tx_lpf = target.tx_lpf[core]; /* Rev 7+ */
core             3560 drivers/net/wireless/broadcom/b43/phy_n.c 		params->txgm = target.txgm[core];
core             3561 drivers/net/wireless/broadcom/b43/phy_n.c 		params->pga = target.pga[core];
core             3562 drivers/net/wireless/broadcom/b43/phy_n.c 		params->pad = target.pad[core];
core             3563 drivers/net/wireless/broadcom/b43/phy_n.c 		params->ipa = target.ipa[core];
core             3574 drivers/net/wireless/broadcom/b43/phy_n.c 		gain = (target.pad[core]) | (target.pga[core] << 4) |
core             3575 drivers/net/wireless/broadcom/b43/phy_n.c 			(target.txgm[core] << 8);
core             3851 drivers/net/wireless/broadcom/b43/phy_n.c 	u8 core;
core             3857 drivers/net/wireless/broadcom/b43/phy_n.c 		for (core = 0; core < 2; core++) {
core             3858 drivers/net/wireless/broadcom/b43/phy_n.c 			r = core ? 0x190 : 0x170;
core             3890 drivers/net/wireless/broadcom/b43/phy_n.c 		for (core = 0; core < 2; core++) {
core             3891 drivers/net/wireless/broadcom/b43/phy_n.c 			r = core ? B2056_TX1 : B2056_TX0;
core             4395 drivers/net/wireless/broadcom/b43/phy_n.c static void b43_nphy_rx_cal_phy_cleanup(struct b43_wldev *dev, u8 core)
core             4400 drivers/net/wireless/broadcom/b43/phy_n.c 	if (core == 0) {
core             4418 drivers/net/wireless/broadcom/b43/phy_n.c static void b43_nphy_rx_cal_phy_setup(struct b43_wldev *dev, u8 core)
core             4424 drivers/net/wireless/broadcom/b43/phy_n.c 	if (core == 0) {
core             4445 drivers/net/wireless/broadcom/b43/phy_n.c 			((1 - core) << B43_NPHY_RFSEQCA_RXDIS_SHIFT));
core             4447 drivers/net/wireless/broadcom/b43/phy_n.c 			((1 - core) << B43_NPHY_RFSEQCA_TXEN_SHIFT));
core             4449 drivers/net/wireless/broadcom/b43/phy_n.c 			(core << B43_NPHY_RFSEQCA_RXEN_SHIFT));
core             4451 drivers/net/wireless/broadcom/b43/phy_n.c 			(core << B43_NPHY_RFSEQCA_TXDIS_SHIFT));
core             4453 drivers/net/wireless/broadcom/b43/phy_n.c 	if (core == 0) {
core             4465 drivers/net/wireless/broadcom/b43/phy_n.c 	if (core == 0) {
core             4473 drivers/net/wireless/broadcom/b43/phy_n.c 				      core + 1);
core             4475 drivers/net/wireless/broadcom/b43/phy_n.c 				      2 - core);
core             4777 drivers/net/wireless/broadcom/b43/phy_n.c 	int core, off;
core             4780 drivers/net/wireless/broadcom/b43/phy_n.c 	for (core = 0; core < 2; core++) {
core             4781 drivers/net/wireless/broadcom/b43/phy_n.c 		r = core ? 0x20 : 0;
core             4782 drivers/net/wireless/broadcom/b43/phy_n.c 		off = core * 11;
core             4925 drivers/net/wireless/broadcom/b43/phy_n.c static void b43_nphy_update_tx_cal_ladder(struct b43_wldev *dev, u16 core)
core             4932 drivers/net/wireless/broadcom/b43/phy_n.c 	if (core == 0)
core             5381 drivers/net/wireless/broadcom/b43/phy_n.c 	u16 tmp, core, type, count, max, numb, last = 0, cmd;
core             5507 drivers/net/wireless/broadcom/b43/phy_n.c 			core = (cmd & 0x3000) >> 12;
core             5510 drivers/net/wireless/broadcom/b43/phy_n.c 			if (phy6or5x && updated[core] == 0) {
core             5511 drivers/net/wireless/broadcom/b43/phy_n.c 				b43_nphy_update_tx_cal_ladder(dev, core);
core             5512 drivers/net/wireless/broadcom/b43/phy_n.c 				updated[core] = true;
core             5515 drivers/net/wireless/broadcom/b43/phy_n.c 			tmp = (params[core].ncorr[type] << 8) | 0x66;
core             5520 drivers/net/wireless/broadcom/b43/phy_n.c 						B43_NTAB16(15, 69 + core));
core             5523 drivers/net/wireless/broadcom/b43/phy_n.c 				b43_ntab_write(dev, B43_NTAB16(15, 69 + core),
core             6651 drivers/net/wireless/broadcom/b43/phy_n.c 	u16 core = on ? 0xD : 0x00FD;
core             6657 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_phy_write(dev, B43_NPHY_AFECTL_C1, core);
core             6659 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_phy_write(dev, B43_NPHY_AFECTL_C2, core);
core             6663 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_phy_write(dev, B43_NPHY_AFECTL_C1, core);
core             6665 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_phy_write(dev, B43_NPHY_AFECTL_C2, core);
core             3484 drivers/net/wireless/broadcom/b43/tables_nphy.c 	int core, offset, i;
core             3499 drivers/net/wireless/broadcom/b43/tables_nphy.c 		for (core = 0; core < 2; core++) {
core             3501 drivers/net/wireless/broadcom/b43/tables_nphy.c 				offset = core ? 0x20 : 0x00;
core             3504 drivers/net/wireless/broadcom/b43/tables_nphy.c 					       antswlut0_values[core][i]);
core              231 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	bool (*iscoreup)(struct brcmf_core_priv *core);
core              232 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	void (*coredisable)(struct brcmf_core_priv *core, u32 prereset,
core              234 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	void (*resetcore)(struct brcmf_core_priv *core, u32 prereset, u32 reset,
core              239 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 				  struct brcmf_core *core)
core              243 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	regdata = ci->ops->read32(ci->ctx, CORE_SB(core->base, sbidhigh));
core              244 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	core->rev = SBCOREREV(regdata);
core              247 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c static bool brcmf_chip_sb_iscoreup(struct brcmf_core_priv *core)
core              253 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	ci = core->chip;
core              254 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	address = CORE_SB(core->pub.base, sbtmstatelow);
core              261 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c static bool brcmf_chip_ai_iscoreup(struct brcmf_core_priv *core)
core              267 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	ci = core->chip;
core              268 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	regdata = ci->ops->read32(ci->ctx, core->wrapbase + BCMA_IOCTL);
core              271 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	regdata = ci->ops->read32(ci->ctx, core->wrapbase + BCMA_RESET_CTL);
core              277 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c static void brcmf_chip_sb_coredisable(struct brcmf_core_priv *core,
core              283 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	ci = core->chip;
core              284 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	base = core->pub.base;
core              347 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c static void brcmf_chip_ai_coredisable(struct brcmf_core_priv *core,
core              353 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	ci = core->chip;
core              356 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	regdata = ci->ops->read32(ci->ctx, core->wrapbase + BCMA_RESET_CTL);
core              361 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	ci->ops->write32(ci->ctx, core->wrapbase + BCMA_IOCTL,
core              363 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	ci->ops->read32(ci->ctx, core->wrapbase + BCMA_IOCTL);
core              366 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	ci->ops->write32(ci->ctx, core->wrapbase + BCMA_RESET_CTL,
core              371 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	SPINWAIT(ci->ops->read32(ci->ctx, core->wrapbase + BCMA_RESET_CTL) !=
core              376 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	ci->ops->write32(ci->ctx, core->wrapbase + BCMA_IOCTL,
core              378 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	ci->ops->read32(ci->ctx, core->wrapbase + BCMA_IOCTL);
core              381 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c static void brcmf_chip_sb_resetcore(struct brcmf_core_priv *core, u32 prereset,
core              388 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	ci = core->chip;
core              389 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	base = core->pub.base;
core              394 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	brcmf_chip_sb_coredisable(core, 0, 0);
core              431 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c static void brcmf_chip_ai_resetcore(struct brcmf_core_priv *core, u32 prereset,
core              437 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	ci = core->chip;
core              440 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	brcmf_chip_ai_coredisable(core, prereset, reset);
core              443 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	while (ci->ops->read32(ci->ctx, core->wrapbase + BCMA_RESET_CTL) &
core              445 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		ci->ops->write32(ci->ctx, core->wrapbase + BCMA_RESET_CTL, 0);
core              452 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	ci->ops->write32(ci->ctx, core->wrapbase + BCMA_IOCTL,
core              454 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	ci->ops->read32(ci->ctx, core->wrapbase + BCMA_IOCTL);
core              470 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	struct brcmf_core_priv *core;
core              472 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	core = kzalloc(sizeof(*core), GFP_KERNEL);
core              473 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	if (!core)
core              476 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	core->pub.id = coreid;
core              477 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	core->pub.base = base;
core              478 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	core->chip = ci;
core              479 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	core->wrapbase = wrapbase;
core              481 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	list_add_tail(&core->list, &ci->cores);
core              482 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	return &core->pub;
core              488 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	struct brcmf_core_priv *core;
core              494 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	list_for_each_entry(core, &ci->cores, list) {
core              496 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 			  idx++, core->pub.id, core->pub.rev, core->pub.base,
core              497 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 			  core->wrapbase);
core              499 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		switch (core->pub.id) {
core              530 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c static u32 brcmf_chip_core_read32(struct brcmf_core_priv *core, u16 reg)
core              532 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	return core->chip->ops->read32(core->chip->ctx, core->pub.base + reg);
core              535 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c static void brcmf_chip_core_write32(struct brcmf_core_priv *core,
core              538 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	core->chip->ops->write32(core->chip->ctx, core->pub.base + reg, val);
core              541 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c static bool brcmf_chip_socram_banksize(struct brcmf_core_priv *core, u8 idx,
core              548 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	brcmf_chip_core_write32(core, SOCRAMREGOFFS(bankidx), bankidx);
core              549 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	bankinfo = brcmf_chip_core_read32(core, SOCRAMREGOFFS(bankinfo));
core              852 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	struct brcmf_core *core;
core              901 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		core = brcmf_chip_add_core(ci, id, base, wrap);
core              902 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		if (IS_ERR(core))
core              903 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 			return PTR_ERR(core);
core              905 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		core->rev = rev;
core              913 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	struct brcmf_core *core;
core              942 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		core = brcmf_chip_add_core(ci, BCMA_CORE_CHIPCOMMON,
core              944 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		brcmf_chip_sb_corerev(ci, core);
core              945 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		core = brcmf_chip_add_core(ci, BCMA_CORE_SDIO_DEV,
core              947 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		brcmf_chip_sb_corerev(ci, core);
core              948 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		core = brcmf_chip_add_core(ci, BCMA_CORE_INTERNAL_MEM,
core              950 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		brcmf_chip_sb_corerev(ci, core);
core              951 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		core = brcmf_chip_add_core(ci, BCMA_CORE_ARM_CM3,
core              953 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		brcmf_chip_sb_corerev(ci, core);
core              955 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		core = brcmf_chip_add_core(ci, BCMA_CORE_80211, 0x18001000, 0);
core              956 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		brcmf_chip_sb_corerev(ci, core);
core              989 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	struct brcmf_core *core;
core              994 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	core = brcmf_chip_get_core(&chip->pub, id);
core              995 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	if (!core)
core             1000 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		brcmf_chip_coredisable(core, 0, 0);
core             1004 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		cpu = container_of(core, struct brcmf_core_priv, pub);
core             1009 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		brcmf_chip_resetcore(core, val, ARMCR4_BCMA_IOCTL_CPUHALT,
core             1105 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	struct brcmf_core_priv *core;
core             1109 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	list_for_each_entry_safe(core, tmp, &chip->cores, list) {
core             1110 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		list_del(&core->list);
core             1111 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		kfree(core);
core             1119 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	struct brcmf_core_priv *core;
core             1122 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	list_for_each_entry(core, &chip->cores, list)
core             1123 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		if (core->pub.id == coreid)
core             1124 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 			return &core->pub;
core             1160 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	struct brcmf_core_priv *core;
core             1162 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	core = container_of(pub, struct brcmf_core_priv, pub);
core             1163 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	return core->chip->iscoreup(core);
core             1168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	struct brcmf_core_priv *core;
core             1170 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	core = container_of(pub, struct brcmf_core_priv, pub);
core             1171 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	core->chip->coredisable(core, prereset, reset);
core             1177 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	struct brcmf_core_priv *core;
core             1179 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	core = container_of(pub, struct brcmf_core_priv, pub);
core             1180 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	core->chip->resetcore(core, prereset, reset, postreset);
core             1186 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	struct brcmf_core *core;
core             1190 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	core = brcmf_chip_get_core(&chip->pub, BCMA_CORE_80211);
core             1191 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	brcmf_chip_resetcore(core, D11_BCMA_IOCTL_PHYRESET |
core             1195 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	core = brcmf_chip_get_core(&chip->pub, BCMA_CORE_INTERNAL_MEM);
core             1196 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	brcmf_chip_resetcore(core, 0, 0, 0);
core             1200 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 		sr = container_of(core, struct brcmf_core_priv, pub);
core             1208 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	struct brcmf_core *core;
core             1210 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	core = brcmf_chip_get_core(&chip->pub, BCMA_CORE_INTERNAL_MEM);
core             1211 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	if (!brcmf_chip_iscoreup(core)) {
core             1218 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	core = brcmf_chip_get_core(&chip->pub, BCMA_CORE_ARM_CM3);
core             1219 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	brcmf_chip_resetcore(core, 0, 0, 0);
core             1227 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	struct brcmf_core *core;
core             1231 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	core = brcmf_chip_get_core(&chip->pub, BCMA_CORE_80211);
core             1232 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	brcmf_chip_resetcore(core, D11_BCMA_IOCTL_PHYRESET |
core             1240 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	struct brcmf_core *core;
core             1245 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	core = brcmf_chip_get_core(&chip->pub, BCMA_CORE_ARM_CR4);
core             1246 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	brcmf_chip_resetcore(core, ARMCR4_BCMA_IOCTL_CPUHALT, 0, 0);
core             1254 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	struct brcmf_core *core;
core             1258 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	core = brcmf_chip_get_core(&chip->pub, BCMA_CORE_80211);
core             1259 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	brcmf_chip_resetcore(core, D11_BCMA_IOCTL_PHYRESET |
core             1267 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	struct brcmf_core *core;
core             1272 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	core = brcmf_chip_get_core(&chip->pub, BCMA_CORE_ARM_CA7);
core             1273 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c 	brcmf_chip_resetcore(core, ARMCR4_BCMA_IOCTL_CPUHALT, 0, 0);
core               79 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.h bool brcmf_chip_iscoreup(struct brcmf_core *core);
core               80 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.h void brcmf_chip_coredisable(struct brcmf_core *core, u32 prereset, u32 reset);
core               81 drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.h void brcmf_chip_resetcore(struct brcmf_core *core, u32 prereset, u32 reset,
core              538 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c 	struct brcmf_core *core;
core              541 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c 	core = brcmf_chip_get_core(devinfo->ci, coreid);
core              542 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c 	if (core) {
core              543 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c 		bar0_win = core->base;
core              547 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c 			if (bar0_win != core->base) {
core              548 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c 				bar0_win = core->base;
core              562 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c 	struct brcmf_core *core;
core              599 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c 	core = brcmf_chip_get_core(devinfo->ci, BCMA_CORE_PCIE2);
core              600 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c 	if (core->rev <= 13) {
core              651 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c 	struct brcmf_core *core;
core              654 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c 		core = brcmf_chip_get_core(devinfo->ci, BCMA_CORE_INTERNAL_MEM);
core              655 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c 		brcmf_chip_resetcore(core, 0, 0, 0);
core              668 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c 	struct brcmf_core *core;
core              694 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c 	core = brcmf_chip_get_core(devinfo->ci, BCMA_CORE_PCIE2);
core              695 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c 	if (core->rev <= 13)
core             1074 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 	struct brcmf_core *core = bus->sdio_core;
core             1084 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 				     core->base + SD_REG(tohostmailboxdata),
core             1088 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 		brcmf_sdiod_writel(sdiod, core->base + SD_REG(tosbmailbox),
core             1167 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 	struct brcmf_core *core = bus->sdio_core;
core             1209 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 		brcmf_sdiod_writel(sdiod, core->base + SD_REG(tosbmailbox),
core             2434 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 	struct brcmf_core *core = bus->sdio_core;
core             2454 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 		brcmf_sdiod_writel(sdiodev, core->base + SD_REG(hostintmask),
core             2480 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 		brcmf_sdiod_writel(sdiodev, core->base + SD_REG(intstatus),
core             2521 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 	struct brcmf_core *core = bus->sdio_core;
core             2526 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 	addr = core->base + SD_REG(intstatus);
core             3448 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 	struct brcmf_core *core = bus->sdio_core;
core             3455 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 	if (core->rev < 12)
core             3484 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 	struct brcmf_core *core = bus->sdio_core;
core             3504 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 	if (core->rev < 12) {
core             3840 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 	struct brcmf_core *core = sdiodev->bus->sdio_core;
core             3844 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 	reg_addr = core->base + SD_REG(intstatus);
core             4121 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 	struct brcmf_core *core = bus->sdio_core;
core             4171 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 	brcmf_sdiod_writel(sdiod, core->base + SD_REG(tosbmailboxdata),
core             4182 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 		brcmf_sdiod_writel(sdiod, core->base + SD_REG(hostintmask),
core              479 drivers/net/wireless/broadcom/brcm80211/brcmsmac/aiutils.c 	cc = pbus->drv_cc.core;
core              550 drivers/net/wireless/broadcom/brcm80211/brcmsmac/aiutils.c 	cc = sii->icbus->drv_cc.core;
core              621 drivers/net/wireless/broadcom/brcm80211/brcmsmac/aiutils.c 	cc = sii->icbus->drv_cc.core;
core              653 drivers/net/wireless/broadcom/brcm80211/brcmsmac/aiutils.c 	cc = sii->icbus->drv_cc.core;
core              677 drivers/net/wireless/broadcom/brcm80211/brcmsmac/aiutils.c 	cc = sii->icbus->drv_cc.core;
core              688 drivers/net/wireless/broadcom/brcm80211/brcmsmac/aiutils.c 	cc = sii->icbus->drv_cc.core;
core              175 drivers/net/wireless/broadcom/brcm80211/brcmsmac/aiutils.h u32 ai_core_cflags(struct bcma_device *core, u32 mask, u32 val);
core              184 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 	struct bcma_device *core = wlc->hw->d11core;
core              190 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 			brcms_err(core, "wl%d: driver not nmode enabled\n",
core              195 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 			brcms_err(core, "wl%d: device not ampdu capable\n",
core             1550 drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h #define M_PWRIND_MAP(core)  (M_PWRIND_BLKS + ((core)<<1))
core               69 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.c 	struct bcma_device *core = hw->d11core;
core               70 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.c 	struct bcma_bus *bus = core->bus;
core               89 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.c 		   core->id.rev, bus->boardinfo.type, bus->boardinfo.vendor,
core              106 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.c 	stats = *(drvr->wlc->core->macstat_snapshot);
core               54 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h #define brcms_dbg(core, l, f, a...)	__brcms_dbg(&(core)->dev, l, __func__, f, ##a)
core               55 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h #define brcms_info(core, f, a...)	__brcms_info(&(core)->dev, f, ##a)
core               56 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h #define brcms_warn(core, f, a...)	__brcms_warn(&(core)->dev, f, ##a)
core               57 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h #define brcms_err(core, f, a...)	__brcms_err(&(core)->dev, f, ##a)
core               58 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h #define brcms_crit(core, f, a...)	__brcms_crit(&(core)->dev, f, ##a)
core               60 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h #define brcms_dbg_info(core, f, a...)		brcms_dbg(core, BRCM_DL_INFO, f, ##a)
core               61 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h #define brcms_dbg_mac80211(core, f, a...)	brcms_dbg(core, BRCM_DL_MAC80211, f, ##a)
core               62 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h #define brcms_dbg_rx(core, f, a...)		brcms_dbg(core, BRCM_DL_RX, f, ##a)
core               63 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h #define brcms_dbg_tx(core, f, a...)		brcms_dbg(core, BRCM_DL_TX, f, ##a)
core               64 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h #define brcms_dbg_int(core, f, a...)		brcms_dbg(core, BRCM_DL_INT, f, ##a)
core               65 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h #define brcms_dbg_dma(core, f, a...)		brcms_dbg(core, BRCM_DL_DMA, f, ##a)
core               66 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h #define brcms_dbg_ht(core, f, a...)		brcms_dbg(core, BRCM_DL_HT, f, ##a)
core              212 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	struct bcma_device *core;
core              363 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 		control = bcma_read32(di->core, DMA64TXREGOFFS(di, control));
core              364 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 		bcma_write32(di->core, DMA64TXREGOFFS(di, control),
core              366 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 		if (bcma_read32(di->core, DMA64TXREGOFFS(di, control)) &
core              371 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 			bcma_write32(di->core, DMA64TXREGOFFS(di, control),
core              386 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	bcma_set32(di->core, ctrl_offset, D64_XC_AE);
core              387 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	w = bcma_read32(di->core, ctrl_offset);
core              388 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	bcma_mask32(di->core, ctrl_offset, ~D64_XC_AE);
core              403 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 			brcms_dbg_dma(di->core,
core              409 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 			brcms_dbg_dma(di->core,
core              424 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 		bcma_write32(di->core, DMA64TXREGOFFS(di, addrlow), 0xff0);
core              425 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 		addrl = bcma_read32(di->core, DMA64TXREGOFFS(di, addrlow));
core              429 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 		bcma_write32(di->core, DMA64RXREGOFFS(di, addrlow), 0xff0);
core              430 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 		addrl = bcma_read32(di->core, DMA64RXREGOFFS(di, addrlow));
core              512 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 			brcms_dbg_dma(di->core,
core              527 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 			brcms_dbg_dma(di->core,
core              554 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	struct bcma_device *core = wlc->hw->d11core;
core              556 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	u8 rev = core->id.rev;
core              566 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 		((bcma_aread32(core, BCMA_IOST) & SISF_DMA64) == SISF_DMA64);
core              569 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	di->core = core;
core              580 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	brcms_dbg_dma(di->core, "%s: %s flags 0x%x ntxd %d nrxd %d "
core              590 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	di->dmadev = core->dma_dev;
core              626 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	if ((core->id.id == BCMA_CORE_SDIO_DEV)
core              629 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	else if ((core->id.id == BCMA_CORE_I2S) &&
core              646 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	brcms_dbg_dma(di->core, "DMA descriptor align_needed %d, align %d\n",
core              685 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 			brcms_dbg_dma(di->core,
core              691 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 			brcms_dbg_dma(di->core,
core              701 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	brcms_dbg_dma(di->core,
core              751 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	brcms_dbg_dma(di->core, "%s:\n", di->name);
core              786 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 			bcma_write32(di->core, DMA64TXREGOFFS(di, addrlow),
core              788 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 			bcma_write32(di->core, DMA64TXREGOFFS(di, addrhigh),
core              791 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 			bcma_write32(di->core, DMA64RXREGOFFS(di, addrlow),
core              793 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 			bcma_write32(di->core, DMA64RXREGOFFS(di, addrhigh),
core              805 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 			bcma_write32(di->core, DMA64TXREGOFFS(di, addrlow),
core              807 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 			bcma_write32(di->core, DMA64TXREGOFFS(di, addrhigh),
core              809 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 			bcma_maskset32(di->core, DMA64TXREGOFFS(di, control),
core              812 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 			bcma_write32(di->core, DMA64RXREGOFFS(di, addrlow),
core              814 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 			bcma_write32(di->core, DMA64RXREGOFFS(di, addrhigh),
core              816 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 			bcma_maskset32(di->core, DMA64RXREGOFFS(di, control),
core              827 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	brcms_dbg_dma(di->core, "%s:\n", di->name);
core              829 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	control = D64_RC_RE | (bcma_read32(di->core,
core              839 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	bcma_write32(di->core, DMA64RXREGOFFS(di, control),
core              847 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	brcms_dbg_dma(di->core, "%s:\n", di->name);
core              882 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	    B2I(((bcma_read32(di->core,
core              942 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	brcms_dbg_dma(di->core, "%s: dma_rx len %d\n", di->name, len);
core              965 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 			    B2I(((bcma_read32(di->core,
core              969 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 			brcms_dbg_dma(di->core,
core              976 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 			brcms_dbg_dma(di->core, "%s: bad frame length (%d)\n",
core              994 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	brcms_dbg_dma(di->core, "%s:\n", di->name);
core              999 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	return ((bcma_read32(di->core,
core             1001 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 		(bcma_read32(di->core, DMA64RXREGOFFS(di, ptr)) &
core             1010 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	return ((bcma_read32(di->core,
core             1012 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 		(bcma_read32(di->core, DMA64TXREGOFFS(di, ptr)) &
core             1048 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	brcms_dbg_dma(di->core, "%s: post %d\n", di->name, n);
core             1061 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 			brcms_dbg_dma(di->core, "%s: out of rxbufs\n",
core             1064 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 				brcms_dbg_dma(di->core, "%s: ring is empty !\n",
core             1103 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	bcma_write32(di->core, DMA64RXREGOFFS(di, ptr),
core             1114 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	brcms_dbg_dma(di->core, "%s:\n", di->name);
core             1145 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	brcms_dbg_dma(di->core, "%s:\n", di->name);
core             1164 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	bcma_set32(di->core, DMA64TXREGOFFS(di, control), control);
core             1177 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	brcms_dbg_dma(di->core, "%s:\n", di->name);
core             1182 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	bcma_set32(di->core, DMA64TXREGOFFS(di, control), D64_XC_SE);
core             1189 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	brcms_dbg_dma(di->core, "%s:\n", di->name);
core             1194 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	bcma_mask32(di->core, DMA64TXREGOFFS(di, control), ~D64_XC_SE);
core             1202 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	       ((bcma_read32(di->core,
core             1212 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	brcms_dbg_dma(di->core, "%s: %s\n",
core             1237 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	bcma_write32(di->core, DMA64TXREGOFFS(di, control), D64_XC_SE);
core             1239 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 		   (bcma_read32(di->core, DMA64TXREGOFFS(di, status0)) &
core             1244 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	bcma_write32(di->core, DMA64TXREGOFFS(di, control), 0);
core             1246 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 		   (bcma_read32(di->core, DMA64TXREGOFFS(di, status0)) &
core             1263 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	bcma_write32(di->core, DMA64RXREGOFFS(di, control), 0);
core             1265 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 		   (bcma_read32(di->core, DMA64RXREGOFFS(di, status0)) &
core             1339 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	bcma_write32(di->core, DMA64TXREGOFFS(di, ptr),
core             1416 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 		bcma_write32(di->core, DMA64TXREGOFFS(di, ptr),
core             1423 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	brcms_dbg_dma(di->core, "%s: out of txds !!!\n", di->name);
core             1475 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	brcms_dbg_dma(di->core, "%s: %s\n",
core             1490 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 		end = (u16) (B2I(((bcma_read32(di->core,
core             1497 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 				(u16)(bcma_read32(di->core,
core             1538 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	brcms_dbg_dma(di->core, "bogus curr: start %d end %d txout %d\n",
core              534 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 	struct bcma_device *core = wl->wlc->hw->d11core;
core              544 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 		brcms_dbg_info(core, "%s: change monitor mode: %s\n",
core              548 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 		brcms_err(core, "%s: change power-save mode: %s (implement)\n",
core              555 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 			brcms_err(core, "%s: Error setting power_level\n",
core              561 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 			brcms_err(core,
core              590 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 	struct bcma_device *core = wl->wlc->hw->d11core;
core              596 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 		brcms_err(core, "%s: %s: %sassociated\n", KBUILD_MODNAME,
core              656 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 			brcms_err(core, "changing basic rates failed: %d\n",
core              700 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 		brcms_err(core, "%s: Beacon enabled: %s\n", __func__,
core              712 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 		brcms_err(core, "%s: cqm change: threshold %d, hys %d "
core              719 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 		brcms_err(core, "%s: IBSS joined: %s (implement)\n",
core              725 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 		brcms_err(core, "%s: arp filtering: %d addresses"
core              734 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 		brcms_err(core, "%s: qos enabled: %s (implement)\n",
core              746 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 	struct bcma_device *core = wl->wlc->hw->d11core;
core              752 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 		brcms_dbg_info(core, "FIF_ALLMULTI\n");
core              754 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 		brcms_dbg_info(core, "FIF_FCSFAIL\n");
core              756 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 		brcms_dbg_info(core, "FIF_CONTROL\n");
core              758 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 		brcms_dbg_info(core, "FIF_OTHER_BSS\n");
core              760 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 		brcms_dbg_info(core, "FIF_PSPOLL\n");
core              762 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 		brcms_dbg_info(core, "FIF_BCN_PRBRESP_PROMISC\n");
core              598 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct bcma_device *core = wlc_hw->d11core;
core              602 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		bcma_write16(core, D11REGOFFS(ifs_slot), 0x0207);
core              606 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		bcma_write16(core, D11REGOFFS(ifs_slot), 0x0212);
core              683 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct bcma_device *core = wlc_hw->d11core;
core              696 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			bcma_write16(core, offset, value);
core              698 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			bcma_write32(core, offset, value);
core              752 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct bcma_device *core = wlc_hw->d11core;
core              753 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	u32 ioctl = bcma_aread32(core, BCMA_IOCTL) & ~m;
core              755 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_awrite32(core, BCMA_IOCTL, ioctl | v);
core             1033 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct bcma_device *core;
core             1044 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	core = wlc_hw->d11core;
core             1048 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		s1 = bcma_read32(core, D11REGOFFS(frmtxstatus));
core             1050 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			brcms_err(core, "wl%d: %s: dead chip\n", wlc_hw->unit,
core             1059 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		s2 = bcma_read32(core, D11REGOFFS(frmtxstatus2));
core             1507 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct bcma_device *core = wlc_hw->d11core;
core             1512 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	brcms_dbg_rx(core, "wl%d: brcms_b_set_addrmatch\n", wlc_hw->unit);
core             1519 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write16(core, D11REGOFFS(rcm_ctl),
core             1521 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write16(core, D11REGOFFS(rcm_mat_data), mac_l);
core             1522 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write16(core, D11REGOFFS(rcm_mat_data), mac_m);
core             1523 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write16(core, D11REGOFFS(rcm_mat_data), mac_h);
core             1530 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct bcma_device *core = wlc_hw->d11core;
core             1535 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	brcms_dbg_info(core, "wl%d\n", wlc_hw->unit);
core             1537 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(tplatewrptr), offset);
core             1543 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	be_bit = (bcma_read32(core, D11REGOFFS(maccontrol)) & MCTL_BIGEND) != 0;
core             1556 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		bcma_write32(core, D11REGOFFS(tplatewrdata), word);
core             2086 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct bcma_device *core = wlc_hw->d11core;
core             2107 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		bcma_write16(core, D11REGOFFS(xmtfifocmd), txfifo_cmd);
core             2108 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		bcma_write16(core, D11REGOFFS(xmtfifodef), txfifo_def);
core             2109 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		bcma_write16(core, D11REGOFFS(xmtfifodef1), txfifo_def1);
core             2111 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		bcma_write16(core, D11REGOFFS(xmtfifocmd), txfifo_cmd);
core             2146 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct bcma_device *core = wlc_hw->d11core;
core             2151 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			bcma_write16(core, D11REGOFFS(tsf_clk_frac_l), 0x2082);
core             2152 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			bcma_write16(core, D11REGOFFS(tsf_clk_frac_h), 0x8);
core             2154 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			bcma_write16(core, D11REGOFFS(tsf_clk_frac_l), 0x5341);
core             2155 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			bcma_write16(core, D11REGOFFS(tsf_clk_frac_h), 0x8);
core             2157 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			bcma_write16(core, D11REGOFFS(tsf_clk_frac_l), 0x8889);
core             2158 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			bcma_write16(core, D11REGOFFS(tsf_clk_frac_h), 0x8);
core             2162 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			bcma_write16(core, D11REGOFFS(tsf_clk_frac_l), 0x7CE0);
core             2163 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			bcma_write16(core, D11REGOFFS(tsf_clk_frac_h), 0xC);
core             2165 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			bcma_write16(core, D11REGOFFS(tsf_clk_frac_l), 0xCCCD);
core             2166 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			bcma_write16(core, D11REGOFFS(tsf_clk_frac_h), 0xC);
core             2263 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct bcma_device *core = wlc_hw->d11core;
core             2271 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(objaddr),
core             2273 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	(void)bcma_read32(core, D11REGOFFS(objaddr));
core             2275 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		bcma_write32(core, D11REGOFFS(objdata), le32_to_cpu(ucode[i]));
core             2341 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct bcma_device *core = wlc_hw->d11core;
core             2348 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			bcma_read32(core,
core             2354 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		brcms_dbg_int(core, "wl%d: intstatus%d 0x%x\n",
core             2358 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			brcms_err(core, "wl%d: fifo %d: receive fifo "
core             2364 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			brcms_err(core, "wl%d: fifo %d: descriptor error\n",
core             2370 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			brcms_err(core, "wl%d: fifo %d: data error\n", unit,
core             2376 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			brcms_err(core, "wl%d: fifo %d: descriptor protocol "
core             2382 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			brcms_err(core, "wl%d: fifo %d: receive descriptor "
core             2386 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			brcms_err(core, "wl%d: fifo %d: transmit fifo "
core             2395 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			bcma_write32(core,
core             2545 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct bcma_device *core = wlc_hw->d11core;
core             2549 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	macintstatus = bcma_read32(core, D11REGOFFS(macintstatus));
core             2552 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	trace_brcms_macintstatus(&core->dev, in_isr, macintstatus, mask);
core             2572 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(macintmask), 0);
core             2573 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	(void)bcma_read32(core, D11REGOFFS(macintmask));
core             2577 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(macintstatus), macintstatus);
core             2586 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		bcma_write32(core, D11REGOFFS(intctrlregs[RX_FIFO].intstatus),
core             2648 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct bcma_device *core = wlc_hw->d11core;
core             2651 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	brcms_dbg_mac80211(core, "wl%d: bandunit %d\n", wlc_hw->unit,
core             2664 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	mc = bcma_read32(core, D11REGOFFS(maccontrol));
core             2667 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		brcms_err(core, "wl%d: %s: dead chip\n", wlc_hw->unit,
core             2676 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	mi = bcma_read32(core, D11REGOFFS(macintstatus));
core             2678 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		brcms_err(core, "wl%d: %s: dead chip\n", wlc_hw->unit,
core             2687 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	SPINWAIT(!(bcma_read32(core, D11REGOFFS(macintstatus)) & MI_MACSSPNDD),
core             2690 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	if (!(bcma_read32(core, D11REGOFFS(macintstatus)) & MI_MACSSPNDD)) {
core             2691 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		brcms_err(core, "wl%d: wlc_suspend_mac_and_wait: waited %d uS"
core             2694 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		brcms_err(core, "wl%d: psmdebug 0x%08x, phydebug 0x%08x, "
core             2696 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			  bcma_read32(core, D11REGOFFS(psmdebug)),
core             2697 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			  bcma_read32(core, D11REGOFFS(phydebug)),
core             2698 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			  bcma_read16(core, D11REGOFFS(psm_brc)));
core             2701 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	mc = bcma_read32(core, D11REGOFFS(maccontrol));
core             2703 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		brcms_err(core, "wl%d: %s: dead chip\n", wlc_hw->unit,
core             2716 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct bcma_device *core = wlc_hw->d11core;
core             2719 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	brcms_dbg_mac80211(core, "wl%d: bandunit %d\n", wlc_hw->unit,
core             2729 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	mc = bcma_read32(core, D11REGOFFS(maccontrol));
core             2735 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(macintstatus), MI_MACSSPNDD);
core             2737 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	mc = bcma_read32(core, D11REGOFFS(maccontrol));
core             2742 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	mi = bcma_read32(core, D11REGOFFS(macintstatus));
core             2759 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct bcma_device *core = wlc_hw->d11core;
core             2765 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(objaddr), OBJADDR_SHM_SEL | 0);
core             2766 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	(void)bcma_read32(core, D11REGOFFS(objaddr));
core             2767 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	w = bcma_read32(core, D11REGOFFS(objdata));
core             2770 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(objaddr), OBJADDR_SHM_SEL | 0);
core             2771 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	(void)bcma_read32(core, D11REGOFFS(objaddr));
core             2772 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(objdata), (u32) 0xaa5555aa);
core             2774 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(objaddr), OBJADDR_SHM_SEL | 0);
core             2775 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	(void)bcma_read32(core, D11REGOFFS(objaddr));
core             2776 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	val = bcma_read32(core, D11REGOFFS(objdata));
core             2783 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(objaddr), OBJADDR_SHM_SEL | 0);
core             2784 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	(void)bcma_read32(core, D11REGOFFS(objaddr));
core             2785 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(objdata), (u32) 0x55aaaa55);
core             2787 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(objaddr), OBJADDR_SHM_SEL | 0);
core             2788 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	(void)bcma_read32(core, D11REGOFFS(objaddr));
core             2789 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	val = bcma_read32(core, D11REGOFFS(objdata));
core             2796 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(objaddr), OBJADDR_SHM_SEL | 0);
core             2797 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	(void)bcma_read32(core, D11REGOFFS(objaddr));
core             2798 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(objdata), w);
core             2801 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(tsf_cfpstart), 0);
core             2803 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	w = bcma_read32(core, D11REGOFFS(maccontrol));
core             2820 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct bcma_device *core = wlc_hw->d11core;
core             2823 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	brcms_dbg_info(core, "wl%d\n", wlc_hw->unit);
core             2829 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			bcma_set32(core, D11REGOFFS(clk_ctl_st),
core             2833 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			SPINWAIT((bcma_read32(core, D11REGOFFS(clk_ctl_st)) &
core             2837 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			tmp = bcma_read32(core, D11REGOFFS(clk_ctl_st));
core             2839 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 				brcms_err(core, "%s: turn on PHY PLL failed\n",
core             2842 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			bcma_set32(core, D11REGOFFS(clk_ctl_st),
core             2845 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			SPINWAIT((bcma_read32(core, D11REGOFFS(clk_ctl_st)) &
core             2851 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			tmp = bcma_read32(core, D11REGOFFS(clk_ctl_st));
core             2856 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 				brcms_err(core, "%s: turn on PHY PLL failed\n",
core             2865 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		bcma_mask32(core, D11REGOFFS(clk_ctl_st),
core             2867 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		(void)bcma_read32(core, D11REGOFFS(clk_ctl_st));
core             2921 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct bcma_device *core = wlc_hw->d11core;
core             2924 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(objaddr), sel | (offset >> 2));
core             2925 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	(void)bcma_read32(core, D11REGOFFS(objaddr));
core             2929 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	return bcma_read16(core, objoff);
core             2936 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct bcma_device *core = wlc_hw->d11core;
core             2939 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(objaddr), sel | (offset >> 2));
core             2940 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	(void)bcma_read32(core, D11REGOFFS(objaddr));
core             2944 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_wflush16(core, objoff, v);
core             3095 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	macstats = wlc->core->macstat_snapshot;
core             3152 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	memset(wlc->core->macstat_snapshot, 0, sizeof(struct macstat));
core             3183 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct bcma_device *core = wlc_hw->d11core;
core             3192 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	brcms_dbg_info(core, "wl%d: core init\n", wlc_hw->unit);
core             3204 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(macintstatus), -1);
core             3209 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	SPINWAIT(((bcma_read32(core, D11REGOFFS(macintstatus)) &
core             3211 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	if ((bcma_read32(core, D11REGOFFS(macintstatus)) & MI_MACSSPNDD) == 0)
core             3212 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		brcms_err(core, "wl%d: wlc_coreinit: ucode did not self-"
core             3217 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	sflags = bcma_aread32(core, BCMA_IOST);
core             3223 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			brcms_err(core, "%s: wl%d: unsupported phy in corerev"
core             3230 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			brcms_err(core, "%s: wl%d: unsupported phy in corerev"
core             3234 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		brcms_err(core, "%s: wl%d: unsupported corerev %d\n",
core             3276 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		brcms_err(core, "wlc_coreinit: txfifo mismatch: ucode size %d"
core             3281 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	WARN_ON(bcma_read32(core, D11REGOFFS(maccontrol)) == 0xffffffff);
core             3290 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(intrcvlazy[0]), (1 << IRL_FC_SHIFT));
core             3299 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(tsf_cfprep),
core             3301 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(tsf_cfpstart), bcnint_us);
core             3302 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(macintstatus), MI_GP1);
core             3305 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(intctrlregs[RX_FIFO].intmask),
core             3313 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write16(core, D11REGOFFS(scc_fastpwrup_dly), wlc->fastpwrup_dly);
core             3326 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(objaddr),
core             3328 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	(void)bcma_read32(core, D11REGOFFS(objaddr));
core             3329 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(objdata), wlc_hw->SRL);
core             3330 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(objaddr),
core             3332 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	(void)bcma_read32(core, D11REGOFFS(objaddr));
core             3333 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(objdata), wlc_hw->LRL);
core             3339 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_mask16(core, D11REGOFFS(ifs_ctl), 0x0FFF);
core             3340 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write16(core, D11REGOFFS(ifs_aifsn), EDCF_AIFSN_MIN);
core             4404 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c static int brcms_b_attach(struct brcms_c_info *wlc, struct bcma_device *core,
core             4413 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct pci_dev *pcidev = core->bus->host_pci;
core             4414 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct ssb_sprom *sprom = &core->bus->sprom;
core             4416 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	if (core->bus->hosttype == BCMA_HOSTTYPE_PCI)
core             4417 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		brcms_dbg_info(core, "wl%d: vendor 0x%x device 0x%x\n", unit,
core             4421 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		brcms_dbg_info(core, "wl%d: vendor 0x%x device 0x%x\n", unit,
core             4422 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			       core->bus->boardinfo.vendor,
core             4423 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			       core->bus->boardinfo.type);
core             4440 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	wlc_hw->sih = ai_attach(core->bus);
core             4449 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	if (!brcms_c_chipmatch(core)) {
core             4456 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	if (core->bus->hosttype == BCMA_HOSTTYPE_PCI) {
core             4460 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		wlc_hw->vendorid = core->bus->boardinfo.vendor;
core             4461 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		wlc_hw->deviceid = core->bus->boardinfo.type;
core             4464 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	wlc_hw->d11core = core;
core             4465 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	wlc_hw->corerev = core->id.rev;
core             4583 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		wlc->core->coreidx = core->core_index;
core             4585 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		wlc_hw->machwcap = bcma_read32(core, D11REGOFFS(machwcap));
core             4598 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			wlc_phy_attach(wlc_hw->phy_sh, core,
core             4655 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		brcms_dbg_info(core, "wl%d: phy %u/%u radio %x/%u\n", unit,
core             5628 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c static bool brcms_c_chipmatch_pci(struct bcma_device *core)
core             5630 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct pci_dev *pcidev = core->bus->host_pci;
core             5652 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c static bool brcms_c_chipmatch_soc(struct bcma_device *core)
core             5654 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct bcma_chipinfo *chipinfo = &core->bus->chipinfo;
core             5663 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c bool brcms_c_chipmatch(struct bcma_device *core)
core             5665 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	switch (core->bus->hosttype) {
core             5667 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		return brcms_c_chipmatch_pci(core);
core             5669 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		return brcms_c_chipmatch_soc(core);
core             5671 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		pr_err("unknown host type: %i\n", core->bus->hosttype);
core             5879 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct bcma_device *core = wlc->hw->d11core;
core             5896 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			brcms_err(core, "wl%d: %s: Invalid stf\n",
core             5907 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 				brcms_err(core, "wl%d: %s: Invalid mcs 32\n",
core             5916 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 				brcms_dbg_mac80211(core, "wl%d: enabling "
core             5929 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 				brcms_err(core, "wl%d: %s: Invalid STBC\n",
core             5937 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			brcms_err(core, "wl%d: %s: Invalid OFDM\n",
core             5945 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			brcms_err(core, "wl%d: %s: Invalid CCK\n",
core             5951 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		brcms_err(core, "wl%d: %s: Unknown rate type\n",
core             5958 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		brcms_err(core, "wl%d: %s: SISO antenna but !SISO "
core             7006 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct bcma_device *core = wlc_hw->d11core;
core             7009 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	*tsf_l_ptr = bcma_read32(core, D11REGOFFS(tsf_timerlow));
core             7010 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	*tsf_h_ptr = bcma_read32(core, D11REGOFFS(tsf_timerhigh));
core             7346 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct bcma_device *core = wlc_hw->d11core;
core             7354 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	if ((bcma_read32(core, D11REGOFFS(maccommand)) & both_valid) == both_valid)
core             7356 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		bcma_write32(core, D11REGOFFS(macintstatus), MI_BCNTPL);
core             7363 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		bcma_set32(core, D11REGOFFS(maccommand), MCMD_BCN0VLD);
core             7370 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	if ((bcma_read32(core, D11REGOFFS(maccommand)) & both_valid) == both_valid) {
core             7375 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	if (!(bcma_read32(core, D11REGOFFS(maccommand)) & MCMD_BCN0VLD)) {
core             7379 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		bcma_set32(core, D11REGOFFS(maccommand), MCMD_BCN0VLD);
core             7382 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	if (!(bcma_read32(core, D11REGOFFS(maccommand)) & MCMD_BCN1VLD)) {
core             7386 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		bcma_set32(core, D11REGOFFS(maccommand), MCMD_BCN1VLD);
core             7768 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct bcma_device *core = wlc_hw->d11core;
core             7771 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		brcms_err(core, "wl%d: %s: dead chip\n", wlc_hw->unit,
core             7781 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	brcms_dbg_int(core, "wl%d: macintstatus 0x%x\n",
core             7792 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			brcms_err(core, "MI_TFS: fatal\n");
core             7802 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		brcms_dbg_info(core, "end of ATIM window\n");
core             7803 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		bcma_set32(core, D11REGOFFS(maccommand), wlc->qvalid);
core             7820 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		brcms_err(core, "wl%d: PSM microcode watchdog fired at %d "
core             7831 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		bcma_write32(core, D11REGOFFS(gptimer), 0);
core             7834 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		brcms_dbg_info(core, "wl%d: BMAC Detected a change on the"
core             7853 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	struct bcma_device *core = wlc->hw->d11core;
core             7857 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	brcms_dbg_info(core, "wl%d\n", wlc->pub->unit);
core             7880 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		bcma_write32(core, D11REGOFFS(tsf_cfprep),
core             7911 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_set16(core, D11REGOFFS(ifs_ctl), IFS_USEEDCF);
core             7934 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(rfdisabledly), RFDISABLE_DEFAULT);
core             7954 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_c_attach(struct brcms_info *wl, struct bcma_device *core, uint unit,
core             7974 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	wlc->core = wlc->corestate;
core             7991 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	err = brcms_b_attach(wlc, core, unit, piomode);
core             8015 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		wlc->core->txavail[i] = wlc->hw->txavail[i];
core              471 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.h 	struct brcms_core *core;
core              985 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	struct bcma_device *core = pi->d11core;
core             1001 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	bcma_write16(core, D11REGOFFS(xmtsel), 0);
core             1004 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 		bcma_write16(core, D11REGOFFS(wepctl), 0x100);
core             1006 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 		bcma_write16(core, D11REGOFFS(wepctl), 0);
core             1008 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	bcma_write16(core, D11REGOFFS(txe_phyctl),
core             1011 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 		bcma_write16(core, D11REGOFFS(txe_phyctl1), 0x1A02);
core             1013 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	bcma_write16(core, D11REGOFFS(txe_wm_0), 0);
core             1014 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	bcma_write16(core, D11REGOFFS(txe_wm_1), 0);
core             1016 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	bcma_write16(core, D11REGOFFS(xmttplatetxptr), 0);
core             1017 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	bcma_write16(core, D11REGOFFS(xmttxcnt), DUMMY_PKT_LEN);
core             1019 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	bcma_write16(core, D11REGOFFS(xmtsel),
core             1022 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	bcma_write16(core, D11REGOFFS(txe_ctl), 0);
core             1030 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 		bcma_write16(core, D11REGOFFS(txe_aux), 0xD0);
core             1032 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 		bcma_write16(core, D11REGOFFS(txe_aux), ((1 << 5) | (1 << 4)));
core             1034 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	(void)bcma_read16(core, D11REGOFFS(txe_aux));
core             1039 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	       && (bcma_read16(core, D11REGOFFS(txe_status)) & (1 << 7)))
core             1045 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	       ((bcma_read16(core, D11REGOFFS(txe_status)) & (1 << 10)) == 0))
core             1051 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	       ((bcma_read16(core, D11REGOFFS(ifsstat)) & (1 << 8))))
core             2238 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	u8 idx, core;
core             2243 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	for (idx = 0, core = 0; core < pi->pubpi.phy_corenum; idx += 2,
core             2244 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	     core++) {
core             2248 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 		cmplx_pwr[core] = (hi << 16) + lo;
core             2249 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 		cmplx_pwr_tot += cmplx_pwr[core];
core             2250 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 		if (cmplx_pwr[core] == 0)
core             2251 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 			noise_dbm_ant[core] = PHY_NOISE_FIXED_VAL_NPHY;
core             2253 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 			cmplx_pwr[core] >>= PHY_NOISE_SAMPLE_LOG_NUM_UCODE;
core             2259 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	for (core = 0; core < pi->pubpi.phy_corenum; core++) {
core             2260 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 		pi->nphy_noise_win[core][pi->nphy_noise_index] =
core             2261 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 			noise_dbm_ant[core];
core             2263 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 		if (noise_dbm_ant[core] > noise_dbm)
core             2264 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 			noise_dbm = noise_dbm_ant[core];
core             2503 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c void wlc_phy_compute_dB(u32 *cmplx_pwr, s8 *p_cmplx_pwr_dB, u8 core)
core             2508 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	for (i = 0; i < core; i++) {
core              928 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_compute_dB(u32 *cmplx_pwr, s8 *p_dB, u8 core);
core             1098 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_rssisel_nphy(struct brcms_phy *pi, u8 core, u8 rssi_type);
core               25 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c #define READ_RADIO_REG2(pi, radio_type, jspace, core, reg_name)	\
core               27 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		       ((core == PHY_CORE_0) ? \
core               31 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c #define WRITE_RADIO_REG2(pi, radio_type, jspace, core, reg_name, value)	\
core               33 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			((core ==  PHY_CORE_0) ? \
core               40 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c #define READ_RADIO_REG3(pi, radio_type, jspace, core, reg_name)	\
core               41 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	read_radio_reg(pi, ((core == PHY_CORE_0) ? \
core               45 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c #define WRITE_RADIO_REG3(pi, radio_type, jspace, core, reg_name, value)	\
core               46 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	write_radio_reg(pi, ((core ==  PHY_CORE_0) ? \
core               51 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c #define READ_RADIO_REG4(pi, radio_type, jspace, core, reg_name)	\
core               52 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	read_radio_reg(pi, ((core == PHY_CORE_0) ? \
core               56 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c #define WRITE_RADIO_REG4(pi, radio_type, jspace, core, reg_name, value)	\
core               57 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	write_radio_reg(pi, ((core == PHY_CORE_0) ? \
core             15082 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	uint core;
core             15117 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	for (core = 0; core < pi->pubpi.phy_corenum; core++) {
core             15120 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			regval[0] = nphy_def_lnagains[2] + gain_delta[core];
core             15121 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			regval[1] = nphy_def_lnagains[3] + gain_delta[core];
core             15122 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			regval[2] = nphy_def_lnagains[3] + gain_delta[core];
core             15123 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			regval[3] = nphy_def_lnagains[3] + gain_delta[core];
core             15128 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					gain_delta[core];
core             15130 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		wlc_phy_table_write_nphy(pi, core, 4, 8, 16, regval);
core             15132 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		minmax_gain[core] =
core             15133 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			(u16) (nphy_def_lnagains[2] + gain_delta[core] + 4);
core             15144 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_war_force_trsw_to_R_cliplo_nphy(struct brcms_phy *pi, u8 core)
core             15146 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	if (core == PHY_CORE_0) {
core             15152 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	} else if (core == PHY_CORE_1) {
core             17066 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	u8 core;
core             17069 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		for (core = 0; core < pi->pubpi.phy_corenum; core++) {
core             17071 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             17073 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             17078 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							 core, TSSIA, 0);
core             17082 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							 core, TSSIG, 0x1);
core             17085 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							 core, TSSIG, 0x31);
core             17087 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             17089 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             17091 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             17097 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 								 TX, core,
core             17101 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 								 TX, core,
core             17105 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, IQCAL_VCM_HG,
core             17107 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, IQCAL_IDAC,
core             17109 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, TSSI_VCM,
core             17111 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, TSSI_MISC1,
core             17121 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		for (core = 0; core < pi->pubpi.phy_corenum; core++) {
core             17122 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, IQCAL_VCM_HG,
core             17124 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, IQCAL_IDAC,
core             17126 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, TSSI_VCM,
core             17128 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, TX_AMP_DET,
core             17130 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, TSSI_MISC1,
core             17132 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, TSSI_MISC2,
core             17134 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, TSSI_MISC3,
core             17138 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             17143 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							 core, TSSIA, 0x0);
core             17146 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							 core, TSSIG, 0x31);
core             17149 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							 core, TSSIG, 0x11);
core             17150 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             17153 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             17155 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             17157 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             17159 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             17576 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	u8 core;
core             17672 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			for (core = 0; core <= 1; core++) {
core             17676 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 								 TX, core,
core             17681 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 								 TX, core,
core             18045 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	u8 core;
core             18048 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		for (core = 0; core < pi->pubpi.phy_corenum; core++) {
core             18050 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			    && core == PHY_CORE_1)
core             18053 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				 && core == PHY_CORE_0)
core             18060 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x91 :
core             18066 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				write_phy_reg(pi, (core == PHY_CORE_0) ? 0x91 :
core             18079 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						    (core ==
core             18084 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						   (core ==
core             18099 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						    (core ==
core             18106 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						    (core ==
core             18110 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					mask = (core == PHY_CORE_0) ?
core             18112 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					val = 1 << ((core == PHY_CORE_0) ?
core             18125 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						    (core ==
core             18140 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						    (core ==
core             18145 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						   (core ==
core             18158 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						    (core ==
core             18170 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							    (core ==
core             18176 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							    (core ==
core             18184 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							    (core ==
core             18190 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							    (core ==
core             18198 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						    (core ==
core             18211 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						    (core ==
core             18223 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							    (core ==
core             18229 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							    (core ==
core             18237 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							    (core ==
core             18243 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							    (core ==
core             18251 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						    (core ==
core             18264 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						    (core ==
core             18278 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	uint core;
core             18338 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	for (core = 0; core < pi->pubpi.phy_corenum; core++) {
core             18339 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		txpwrindex = (s32) pi->nphy_cal_orig_pwr_idx[core];
core             18346 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			if (core == PHY_CORE_0)
core             18362 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			delta_power = (dBm_targetpower * 4) - qdBm_power[core];
core             18384 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			wlc_phy_txpwr_index_nphy(pi, (1 << core),
core             18388 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		pi->nphy_txcal_pwr_idx[core] = (u8) txpwrindex;
core             18407 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			wlc_phy_table_read_nphy(pi, 7, 1, (0x110 + core), 16,
core             19212 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	uint core;
core             19216 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	core = 0;
core             19322 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		for (core = 0; core < pi->pubpi.phy_corenum; core++) {
core             19324 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x297 :
core             19327 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x298 :
core             19329 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				    (pi->nphy_papd_epsilon_offset[core]) << 7);
core             20664 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		uint core;
core             20666 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		for (core = 0; core < pi->pubpi.phy_corenum; core++) {
core             20670 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             20698 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             20700 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             20702 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             20705 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             20708 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             20711 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             20714 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             20722 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             20724 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             20726 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             20729 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, PA_SPARE1,
core             20741 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		uint core;
core             20775 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		for (core = 0; core < pi->pubpi.phy_corenum; core++) {
core             20776 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             20778 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             20780 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             20782 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             20785 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             20787 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             20790 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             20802 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             20804 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             20806 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             21605 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void brcms_phy_wr_tx_mux(struct brcms_phy *pi, u8 core)
core             21610 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					((core == PHY_CORE_0) ?
core             21618 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					((core == PHY_CORE_0) ?
core             21625 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					((core == PHY_CORE_0) ?
core             21637 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					((core == PHY_CORE_0) ?
core             21653 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	u8 core;
core             21672 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			for (core = 0; core < pi->pubpi.phy_corenum; core++) {
core             21674 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				    && core == PHY_CORE_1)
core             21677 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					 && core == PHY_CORE_0)
core             21680 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				mod_phy_reg(pi, (core == PHY_CORE_0) ?
core             21687 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						    (core ==
core             21695 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						    (core ==
core             21717 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						    (core ==
core             21723 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					mod_phy_reg(pi, (core == PHY_CORE_0) ?
core             21730 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							    (core ==
core             21736 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							    (core ==
core             21744 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							    (core ==
core             21750 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							    (core ==
core             21757 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							    (core ==
core             21763 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							    (core ==
core             21766 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						brcms_phy_wr_tx_mux(pi, core);
core             21769 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							   (core ==
core             22240 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	u8 core;
core             22242 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	for (core = 0; core < pi->pubpi.phy_corenum; core++) {
core             22244 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			if (core == PHY_CORE_0) {
core             22249 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						      core] <<
core             22254 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					      vcm_buf[2 * core +
core             22262 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						      core] <<
core             22267 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					      vcm_buf[2 * core +
core             22272 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			if (core == PHY_CORE_0)
core             22277 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						      core] <<
core             22284 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						      core] <<
core             22315 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	u8 core;
core             22442 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	for (core = 0; core < pi->pubpi.phy_corenum; core++) {
core             22444 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		if ((rxcore_state & (1 << core)) == 0)
core             22448 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					       core ==
core             22454 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					       core ==
core             22462 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				mod_radio_reg(pi, (core == PHY_CORE_0) ?
core             22468 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					      ((core ==
core             22480 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			if ((core == result_idx / 2) &&
core             22512 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			mod_radio_reg(pi, (core == PHY_CORE_0) ?
core             22518 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				      ((core ==
core             22524 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			if (core == result_idx / 2) {
core             22569 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	for (core = 0; core < pi->pubpi.phy_corenum; core++) {
core             22571 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		if ((rxcore_state & (1 << core)) == 0)
core             22584 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						       core ==
core             22591 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						       core ==
core             22602 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				if (core == result_idx / 2) {
core             22633 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						[core *
core             22635 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						(core == PHY_CORE_0) ?
core             23462 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	u16 jtag_core, core;
core             23466 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		for (core = 0; core <= 1; core++) {
core             23468 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			pi->tx_rx_cal_radio_saveregs[(core * 11) + 0] =
core             23469 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				READ_RADIO_REG3(pi, RADIO_2057, TX, core,
core             23472 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			pi->tx_rx_cal_radio_saveregs[(core * 11) + 1] =
core             23473 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				READ_RADIO_REG3(pi, RADIO_2057, TX, core,
core             23476 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			pi->tx_rx_cal_radio_saveregs[(core * 11) + 2] =
core             23477 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				READ_RADIO_REG3(pi, RADIO_2057, TX, core,
core             23480 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			pi->tx_rx_cal_radio_saveregs[(core * 11) + 3] =
core             23481 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				READ_RADIO_REG3(pi, RADIO_2057, TX, core,
core             23484 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			pi->tx_rx_cal_radio_saveregs[(core * 11) + 4] = 0;
core             23486 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			pi->tx_rx_cal_radio_saveregs[(core * 11) + 5] =
core             23487 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				READ_RADIO_REG3(pi, RADIO_2057, TX, core,
core             23491 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				pi->tx_rx_cal_radio_saveregs[(core * 11) + 6] =
core             23493 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							core,
core             23496 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			pi->tx_rx_cal_radio_saveregs[(core * 11) + 7] =
core             23497 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			       READ_RADIO_REG3(pi, RADIO_2057, TX, core, TSSIG);
core             23499 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			pi->tx_rx_cal_radio_saveregs[(core * 11) + 8] =
core             23500 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				READ_RADIO_REG3(pi, RADIO_2057, TX, core,
core             23504 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             23506 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             23508 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             23510 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             23512 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             23516 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							 core, TX_SSI_MUX, 0x4);
core             23520 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 								 TX, core,
core             23524 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 								 TX, core,
core             23527 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             23530 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             23532 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             23534 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             23536 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             23541 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							 core, TSSIA, 0x00);
core             23544 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							 core, TX_SSI_MUX,
core             23549 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 								 TX, core,
core             23553 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 								 TX, core,
core             23556 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             23562 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		for (core = 0; core <= 1; core++) {
core             23564 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				(core ==
core             23567 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			pi->tx_rx_cal_radio_saveregs[(core * 11) + 0] =
core             23572 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			pi->tx_rx_cal_radio_saveregs[(core * 11) + 1] =
core             23577 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			pi->tx_rx_cal_radio_saveregs[(core * 11) + 2] =
core             23582 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			pi->tx_rx_cal_radio_saveregs[(core * 11) + 3] =
core             23588 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			pi->tx_rx_cal_radio_saveregs[(core * 11) + 4] =
core             23593 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			pi->tx_rx_cal_radio_saveregs[(core * 11) + 5] =
core             23598 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			pi->tx_rx_cal_radio_saveregs[(core * 11) + 6] =
core             23602 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			pi->tx_rx_cal_radio_saveregs[(core * 11) + 7] =
core             23606 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			pi->tx_rx_cal_radio_saveregs[(core * 11) + 8] =
core             23611 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			pi->tx_rx_cal_radio_saveregs[(core * 11) + 9] =
core             23616 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			pi->tx_rx_cal_radio_saveregs[(core * 11) + 10] =
core             23773 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	u16 jtag_core, core;
core             23776 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		for (core = 0; core <= 1; core++) {
core             23778 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             23781 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					 tx_rx_cal_radio_saveregs[(core * 11) +
core             23784 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, IQCAL_VCM_HG,
core             23786 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					 tx_rx_cal_radio_saveregs[(core * 11) +
core             23789 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, IQCAL_IDAC,
core             23791 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					 tx_rx_cal_radio_saveregs[(core * 11) +
core             23794 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, TSSI_VCM,
core             23796 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					 tx_rx_cal_radio_saveregs[(core * 11) +
core             23799 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, TX_SSI_MUX,
core             23801 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					 tx_rx_cal_radio_saveregs[(core * 11) +
core             23805 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             23808 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							     [(core * 11) + 6]);
core             23810 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, TSSIG,
core             23812 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					 tx_rx_cal_radio_saveregs[(core * 11) +
core             23815 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, TSSI_MISC1,
core             23817 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					 tx_rx_cal_radio_saveregs[(core * 11) +
core             23821 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		for (core = 0; core <= 1; core++) {
core             23822 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			jtag_core = (core == PHY_CORE_0) ?
core             23828 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					tx_rx_cal_radio_saveregs[(core * 11) +
core             23834 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					tx_rx_cal_radio_saveregs[(core * 11) +
core             23840 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					tx_rx_cal_radio_saveregs[(core * 11) +
core             23845 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					tx_rx_cal_radio_saveregs[(core * 11) +
core             23851 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					tx_rx_cal_radio_saveregs[(core * 11) +
core             23857 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					tx_rx_cal_radio_saveregs[(core * 11) +
core             23862 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					tx_rx_cal_radio_saveregs[(core * 11) +
core             23867 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					tx_rx_cal_radio_saveregs[(core * 11) +
core             23873 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					tx_rx_cal_radio_saveregs[(core * 11) +
core             23879 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					tx_rx_cal_radio_saveregs[(core * 11) +
core             23885 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					tx_rx_cal_radio_saveregs[(core * 11) +
core             24190 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_update_txcal_ladder_nphy(struct brcms_phy *pi, u16 core)
core             24209 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	bbmult = (core == PHY_CORE_0) ?
core             24232 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static u8 wlc_phy_txpwr_idx_cur_get_nphy(struct brcms_phy *pi, u8 core)
core             24235 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	tmp = read_phy_reg(pi, ((core == PHY_CORE_0) ? 0x1ed : 0x1ee));
core             24269 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			    struct nphy_papd_restore_state *state, u8 core)
core             24275 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	off_core = core ^ 0x1;
core             24289 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				mixgain = (core == 0) ? 0x20 : 0x00;
core             24307 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						  mixgain, (1 << core), 0,
core             24313 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			1, (1 << core), 0);
core             24323 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						  (1 << core), 0,
core             24326 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						  (1 << core), 0,
core             24329 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						  (1 << core), 0,
core             24332 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						  (1 << core), 0,
core             24335 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						  (1 << core), 0,
core             24338 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						  (1 << core), 0,
core             24341 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						  (1 << core), 0,
core             24345 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						  0, (1 << core), 0,
core             24348 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						  (1 << core), 0,
core             24351 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		state->afectrl[core] = read_phy_reg(pi, (core == PHY_CORE_0) ?
core             24353 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		state->afeoverride[core] =
core             24354 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			read_phy_reg(pi, (core == PHY_CORE_0) ? 0x8f : 0xa5);
core             24356 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			read_phy_reg(pi, (core == PHY_CORE_0) ? 0xa7 : 0xa6);
core             24358 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			read_phy_reg(pi, (core == PHY_CORE_0) ? 0xa5 : 0x8f);
core             24360 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		mod_phy_reg(pi, ((core == PHY_CORE_0) ? 0xa6 : 0xa7),
core             24362 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		mod_phy_reg(pi, ((core == PHY_CORE_0) ? 0x8f :
core             24365 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		mod_phy_reg(pi, ((core == PHY_CORE_0) ? 0xa7 : 0xa6),
core             24367 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		mod_phy_reg(pi, ((core == PHY_CORE_0) ? 0xa5 :
core             24371 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			state->pwrup[core] =
core             24372 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				READ_RADIO_REG3(pi, RADIO_2057, TX, core,
core             24374 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			state->atten[core] =
core             24375 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				READ_RADIO_REG3(pi, RADIO_2057, TX, core,
core             24384 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             24390 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             24393 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             24395 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						 (core == 0) ? 0xf7 : 0xf2);
core             24398 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             24406 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			state->pwrup[core] =
core             24407 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				READ_RADIO_REG3(pi, RADIO_2057, TX, core,
core             24409 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			state->atten[core] =
core             24410 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				READ_RADIO_REG3(pi, RADIO_2057, TX, core,
core             24419 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             24424 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             24428 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             24441 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x297 :
core             24444 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 :
core             24464 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		state->afectrl[core] = read_phy_reg(pi, (core == PHY_CORE_0) ?
core             24466 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		state->afeoverride[core] =
core             24467 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			read_phy_reg(pi, (core == PHY_CORE_0) ? 0x8f : 0xa5);
core             24469 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		mod_phy_reg(pi, ((core == PHY_CORE_0) ? 0xa6 : 0xa7),
core             24471 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		mod_phy_reg(pi, ((core == PHY_CORE_0) ? 0x8f :
core             24477 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		state->vga_master[core] =
core             24478 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			READ_RADIO_REG2(pi, RADIO_2056, RX, core, VGA_MASTER);
core             24479 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		WRITE_RADIO_REG2(pi, RADIO_2056, RX, core, VGA_MASTER, 0x2b);
core             24481 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			state->fbmix[core] =
core             24482 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				READ_RADIO_REG2(pi, RADIO_2056, RX, core,
core             24484 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			state->intpa_master[core] =
core             24485 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				READ_RADIO_REG2(pi, RADIO_2056, TX, core,
core             24488 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG2(pi, RADIO_2056, RX, core, TXFBMIX_G,
core             24490 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             24493 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			state->fbmix[core] =
core             24494 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				READ_RADIO_REG2(pi, RADIO_2056, RX, core,
core             24496 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			state->intpa_master[core] =
core             24497 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				READ_RADIO_REG2(pi, RADIO_2056, TX, core,
core             24500 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG2(pi, RADIO_2056, RX, core, TXFBMIX_A,
core             24502 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             24511 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x297 :
core             24525 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	u8 core;
core             24531 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		for (core = 0; core < pi->pubpi.phy_corenum; core++) {
core             24534 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             24536 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             24538 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						 state->atten[core]);
core             24540 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             24542 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG3(pi, RADIO_2057, TX, core,
core             24544 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						 state->atten[core]);
core             24593 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		for (core = 0; core < pi->pubpi.phy_corenum; core++) {
core             24595 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			write_phy_reg(pi, (core == PHY_CORE_0) ?
core             24596 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				      0xa6 : 0xa7, state->afectrl[core]);
core             24597 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			write_phy_reg(pi, (core == PHY_CORE_0) ? 0x8f :
core             24598 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				      0xa5, state->afeoverride[core]);
core             24618 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		for (core = 0; core < pi->pubpi.phy_corenum; core++) {
core             24620 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			WRITE_RADIO_REG2(pi, RADIO_2056, RX, core, VGA_MASTER,
core             24621 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					 state->vga_master[core]);
core             24623 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG2(pi, RADIO_2056, RX, core,
core             24624 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						 TXFBMIX_G, state->fbmix[core]);
core             24625 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             24627 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						 state->intpa_master[core]);
core             24629 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG2(pi, RADIO_2056, RX, core,
core             24630 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						 TXFBMIX_A, state->fbmix[core]);
core             24631 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				WRITE_RADIO_REG2(pi, RADIO_2056, TX, core,
core             24633 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						 state->intpa_master[core]);
core             24636 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			write_phy_reg(pi, (core == PHY_CORE_0) ?
core             24637 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				      0xa6 : 0xa7, state->afectrl[core]);
core             24638 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			write_phy_reg(pi, (core == PHY_CORE_0) ? 0x8f :
core             24639 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				      0xa5, state->afeoverride[core]);
core             24650 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_a1_nphy(struct brcms_phy *pi, u8 core, u32 winsz, u32 start,
core             24665 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				(core ==
core             24694 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				 (core ==
core             24703 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		enum phy_cal_mode cal_mode, u8 core)
core             24715 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	phy_a7 = (core == PHY_CORE_0) ? 1 : 0;
core             24725 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			phy_a5 = ((phy_a9.txlpf[core] << 15) |
core             24726 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				  (phy_a9.txgm[core] << 12) |
core             24727 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				  (phy_a9.pga[core] << 8) |
core             24728 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				  (txgains->gains.pad[core] << 3) |
core             24729 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				  (phy_a9.ipa[core]));
core             24731 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			phy_a5 = ((phy_a9.txlpf[core] << 15) |
core             24732 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				  (phy_a9.txgm[core] << 12) |
core             24733 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				  (txgains->gains.pga[core] << 8) |
core             24734 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				  (phy_a9.pad[core] << 3) | (phy_a9.ipa[core]));
core             24739 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			phy_a5, (1 << core), 0);
core             24744 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				m[core] = (pi->bw == WL_CHANSPEC_BW_40) ?
core             24747 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				m[core] = (pi->bw == WL_CHANSPEC_BW_40) ?
core             24750 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			m[core] = (pi->bw == WL_CHANSPEC_BW_40) ? 75 : 107;
core             24797 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x297 :
core             24803 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 :
core             24812 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 :
core             24815 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 :
core             24818 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 :
core             24830 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						  1, ((core == 0) ? 1 : 2), 0,
core             24833 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						  0, ((core == 0) ? 2 : 1), 0,
core             24844 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					 (core ==
core             24851 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				wlc_phy_a1_nphy(pi, core, 5, 0, 35);
core             24857 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			phy_a5, (1 << core), 1);
core             24881 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							     (1 << core), 0);
core             24886 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							     (1 << core), 0);
core             24891 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			m[core] = (pi->bw == WL_CHANSPEC_BW_40) ? 45 : 64;
core             24893 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			m[core] = (pi->bw == WL_CHANSPEC_BW_40) ? 75 : 107;
core             24915 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x297 :
core             24922 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 :
core             24931 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 :
core             24934 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 :
core             24937 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 :
core             24942 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 :
core             24951 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 :
core             24954 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 :
core             24957 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 :
core             24978 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					 (core ==
core             24984 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			wlc_phy_a1_nphy(pi, core, 5, 0, 40);
core             24988 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static u8 wlc_phy_a3_nphy(struct brcms_phy *pi, u8 start_gain, u8 core)
core             25044 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				phy_a4.gains.pad[core] =
core             25047 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				phy_a4.gains.pga[core] =
core             25050 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			wlc_phy_a2_nphy(pi, &phy_a4, CAL_GCTRL, core);
core             25053 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						(core ==
core             25096 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			wlc_phy_a2_nphy(pi, &phy_a4, CAL_GCTRL, core);
core             25099 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						(core ==
core             26081 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	u8 core;
core             26097 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		for (core = 0; core < pi->pubpi.phy_corenum; core++) {
core             26098 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			est[core].i_pwr =
core             26100 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					      NPHY_IqestipwrAccHi(core)) << 16)
core             26101 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				| read_phy_reg(pi, NPHY_IqestipwrAccLo(core));
core             26102 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			est[core].q_pwr =
core             26104 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					      NPHY_IqestqpwrAccHi(core)) << 16)
core             26105 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				| read_phy_reg(pi, NPHY_IqestqpwrAccLo(core));
core             26106 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			est[core].iq_prod =
core             26108 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					      NPHY_IqestIqAccHi(core)) << 16) |
core             26109 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				read_phy_reg(pi, NPHY_IqestIqAccLo(core));
core             27738 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	uint core;
core             27783 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	for (core = 0; core < pi->pubpi.phy_corenum; core++) {
core             27790 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				txgain = tx_gaintbl[txpi[core]];
core             27796 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 								   [txpi[core]];
core             27802 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						 [txpi[core]] :
core             27804 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						 [txpi[core]];
core             27808 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 								   [txpi[core]];
core             27815 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							[txpi[core]];
core             27818 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							 [txpi[core]];
core             27823 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			txgain = nphy_tpc_txgain[txpi[core]];
core             27839 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			mod_phy_reg(pi, ((core == PHY_CORE_0) ? 0x8f :
core             27844 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		write_phy_reg(pi, (core == PHY_CORE_0) ? 0xaa : 0xab, dac_gain);
core             27846 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		wlc_phy_table_write_nphy(pi, 7, 1, (0x110 + core), 16,
core             27850 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		m1m2 &= ((core == PHY_CORE_0) ? 0x00ff : 0xff00);
core             27851 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		m1m2 |= ((core == PHY_CORE_0) ? (bbmult << 8) : (bbmult << 0));
core             27856 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						(core ==
core             27860 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						576 + txpi[core], 32,
core             27863 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x297 :
core             27867 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x297 :
core             28194 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	uint core;
core             28215 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				for (core = 0; core < pi->pubpi.phy_corenum;
core             28216 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				     core++)
core             28217 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					pi->nphy_txpwr_idx[core] =
core             28220 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							(u8) core);
core             28337 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	u8 core, txpwrctl_tbl;
core             28358 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 	for (core = 0; core < pi->pubpi.phy_corenum; core++) {
core             28360 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		if ((core_mask & (1 << core)) == 0)
core             28363 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		txpwrctl_tbl = (core == PHY_CORE_0) ? 26 : 27;
core             28366 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			if (pi->nphy_txpwrindex[core].index < 0)
core             28372 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					    pi->nphy_txpwrindex[core].
core             28375 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					    pi->nphy_txpwrindex[core].
core             28380 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					    pi->nphy_txpwrindex[core].
core             28384 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			write_phy_reg(pi, (core == PHY_CORE_0) ?
core             28386 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				      pi->nphy_txpwrindex[core].AfeCtrlDacGain);
core             28388 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			wlc_phy_table_write_nphy(pi, 7, 1, (0x110 + core), 16,
core             28389 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						 &pi->nphy_txpwrindex[core].
core             28393 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			m1m2 &= ((core == PHY_CORE_0) ? 0x00ff : 0xff00);
core             28394 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			m1m2 |= ((core == PHY_CORE_0) ?
core             28395 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				 (pi->nphy_txpwrindex[core].bbmult << 8) :
core             28396 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				 (pi->nphy_txpwrindex[core].bbmult << 0));
core             28401 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					pi, 15, 2, (80 + 2 * core), 16,
core             28402 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					&pi->nphy_txpwrindex[core].iqcomp_a);
core             28404 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					pi, 15, 1, (85 + core), 16,
core             28405 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					&pi->nphy_txpwrindex[core].locomp);
core             28407 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					pi, 15, 1, (93 + core), 16,
core             28408 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					&pi->nphy_txpwrindex[core].locomp);
core             28413 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			pi->nphy_txpwrindex[core].index_internal =
core             28414 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				pi->nphy_txpwrindex[core].index_internal_save;
core             28417 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			if (pi->nphy_txpwrindex[core].index < 0) {
core             28422 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						    pi->nphy_txpwrindex[core].
core             28425 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						    pi->nphy_txpwrindex[core].
core             28428 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					pi->nphy_txpwrindex[core].
core             28433 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				pi->nphy_txpwrindex[core].AfeCtrlDacGain =
core             28434 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					read_phy_reg(pi, (core == PHY_CORE_0) ?
core             28438 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							(0x110 + core), 16,
core             28440 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							nphy_txpwrindex[core].
core             28445 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				tmpval >>= ((core == PHY_CORE_0) ? 8 : 0);
core             28447 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				pi->nphy_txpwrindex[core].bbmult = (u8) tmpval;
core             28450 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							(80 + 2 * core), 16,
core             28452 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							nphy_txpwrindex[core].
core             28455 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				wlc_phy_table_read_nphy(pi, 15, 1, (85 + core),
core             28458 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							nphy_txpwrindex[core].
core             28461 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				pi->nphy_txpwrindex[core].index_internal_save =
core             28462 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					pi->nphy_txpwrindex[core].
core             28487 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				mod_phy_reg(pi, ((core == PHY_CORE_0) ? 0x8f :
core             28492 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			write_phy_reg(pi, (core == PHY_CORE_0) ?
core             28495 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			wlc_phy_table_write_nphy(pi, 7, 1, (0x110 + core), 16,
core             28499 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			m1m2 &= ((core == PHY_CORE_0) ? 0x00ff : 0xff00);
core             28500 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			m1m2 |= ((core == PHY_CORE_0) ?
core             28515 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 							 (80 + 2 * core), 16,
core             28523 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				wlc_phy_table_write_nphy(pi, 15, 1, (85 + core),
core             28531 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 						(core == PHY_CORE_0 ?
core             28537 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x297 :
core             28541 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 				mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x297 :
core             28549 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		pi->nphy_txpwrindex[core].index = txpwrindex;
core              146 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phyreg_n.h #define NPHY_IqestIqAccLo(core)  ((core == 0) ? 0x12c : 0x134)
core              148 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phyreg_n.h #define NPHY_IqestIqAccHi(core)  ((core == 0) ? 0x12d : 0x135)
core              150 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phyreg_n.h #define NPHY_IqestipwrAccLo(core)  ((core == 0) ? 0x12e : 0x136)
core              152 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phyreg_n.h #define NPHY_IqestipwrAccHi(core)  ((core == 0) ? 0x12f : 0x137)
core              154 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phyreg_n.h #define NPHY_IqestqpwrAccLo(core)  ((core == 0) ? 0x130 : 0x138)
core              156 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phyreg_n.h #define NPHY_IqestqpwrAccHi(core)  ((core == 0) ? 0x131 : 0x139)
core              121 drivers/net/wireless/broadcom/brcm80211/brcmsmac/pmu.c 	struct bcma_device *core;
core              128 drivers/net/wireless/broadcom/brcm80211/brcmsmac/pmu.c 	core = sii->icbus->drv_cc.core;
core              130 drivers/net/wireless/broadcom/brcm80211/brcmsmac/pmu.c 	if (bcma_read32(core, CHIPCREGOFFS(pmustatus)) & PST_EXTLPOAVAIL) {
core              137 drivers/net/wireless/broadcom/brcm80211/brcmsmac/pmu.c 		bcma_write32(core, CHIPCREGOFFS(pmu_xtalfreq),
core              144 drivers/net/wireless/broadcom/brcm80211/brcmsmac/pmu.c 		ilp_ctr = bcma_read32(core, CHIPCREGOFFS(pmu_xtalfreq)) &
core              151 drivers/net/wireless/broadcom/brcm80211/brcmsmac/pmu.c 		bcma_write32(core, CHIPCREGOFFS(pmu_xtalfreq), 0);
core              270 drivers/net/wireless/broadcom/brcm80211/brcmsmac/pub.h 				    struct bcma_device *core, uint unit,
core              276 drivers/net/wireless/broadcom/brcm80211/brcmsmac/pub.h bool brcms_c_chipmatch(struct bcma_device *core);
core               47 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	struct cw1200_common	*core;
core               95 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	if (self->core)
core               96 drivers/net/wireless/st/cw1200/cw1200_sdio.c 		cw1200_irq_handler(self->core);
core              108 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	if (self->core) {
core              110 drivers/net/wireless/st/cw1200/cw1200_sdio.c 		cw1200_irq_handler(self->core);
core              306 drivers/net/wireless/st/cw1200/cw1200_sdio.c 				   self, &func->dev, &self->core,
core              332 drivers/net/wireless/st/cw1200/cw1200_sdio.c 		if (self->core) {
core              333 drivers/net/wireless/st/cw1200/cw1200_sdio.c 			cw1200_core_release(self->core);
core              334 drivers/net/wireless/st/cw1200/cw1200_sdio.c 			self->core = NULL;
core              351 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	if (!cw1200_can_suspend(self->core))
core               37 drivers/net/wireless/st/cw1200/cw1200_spi.c 	struct cw1200_common	*core;
core              236 drivers/net/wireless/st/cw1200/cw1200_spi.c 	if (self->core) {
core              238 drivers/net/wireless/st/cw1200/cw1200_spi.c 		cw1200_irq_handler(self->core);
core              415 drivers/net/wireless/st/cw1200/cw1200_spi.c 				   self, &func->dev, &self->core,
core              436 drivers/net/wireless/st/cw1200/cw1200_spi.c 		if (self->core) {
core              437 drivers/net/wireless/st/cw1200/cw1200_spi.c 			cw1200_core_release(self->core);
core              438 drivers/net/wireless/st/cw1200/cw1200_spi.c 			self->core = NULL;
core              450 drivers/net/wireless/st/cw1200/cw1200_spi.c 	if (!cw1200_can_suspend(self->core))
core              516 drivers/net/wireless/st/cw1200/main.c 		      struct cw1200_common **core,
core              547 drivers/net/wireless/st/cw1200/main.c 	*core = priv;
core              585 drivers/net/wireless/st/cw1200/main.c 	*core = NULL;
core             1430 drivers/net/wireless/ti/wl18xx/main.c 	memcpy(conf, &conf_file->core, sizeof(*conf));
core             1152 drivers/net/wireless/ti/wlcore/conf.h 	struct wlcore_conf core;
core               41 drivers/net/wireless/ti/wlcore/sdio.c 	struct platform_device *core;
core              325 drivers/net/wireless/ti/wlcore/sdio.c 	glue->core = platform_device_alloc(chip_family, PLATFORM_DEVID_AUTO);
core              326 drivers/net/wireless/ti/wlcore/sdio.c 	if (!glue->core) {
core              332 drivers/net/wireless/ti/wlcore/sdio.c 	glue->core->dev.parent = &func->dev;
core              351 drivers/net/wireless/ti/wlcore/sdio.c 	ret = platform_device_add_resources(glue->core, res, num_irqs);
core              357 drivers/net/wireless/ti/wlcore/sdio.c 	ret = platform_device_add_data(glue->core, pdev_data,
core              364 drivers/net/wireless/ti/wlcore/sdio.c 	ret = platform_device_add(glue->core);
core              372 drivers/net/wireless/ti/wlcore/sdio.c 	platform_device_put(glue->core);
core              385 drivers/net/wireless/ti/wlcore/sdio.c 	platform_device_unregister(glue->core);
core              395 drivers/net/wireless/ti/wlcore/sdio.c 	struct wl1271 *wl = platform_get_drvdata(glue->core);
core               86 drivers/net/wireless/ti/wlcore/spi.c 	struct platform_device *core;
core              512 drivers/net/wireless/ti/wlcore/spi.c 	glue->core = platform_device_alloc(pdev_data->family->name,
core              514 drivers/net/wireless/ti/wlcore/spi.c 	if (!glue->core) {
core              519 drivers/net/wireless/ti/wlcore/spi.c 	glue->core->dev.parent = &spi->dev;
core              527 drivers/net/wireless/ti/wlcore/spi.c 	ret = platform_device_add_resources(glue->core, res, ARRAY_SIZE(res));
core              533 drivers/net/wireless/ti/wlcore/spi.c 	ret = platform_device_add_data(glue->core, pdev_data,
core              540 drivers/net/wireless/ti/wlcore/spi.c 	ret = platform_device_add(glue->core);
core              549 drivers/net/wireless/ti/wlcore/spi.c 	platform_device_put(glue->core);
core              557 drivers/net/wireless/ti/wlcore/spi.c 	platform_device_unregister(glue->core);
core              101 drivers/pci/controller/dwc/pcie-qcom.c 	struct reset_control *core;
core              401 drivers/pci/controller/dwc/pcie-qcom.c 	res->core = devm_reset_control_get_exclusive(dev, "core");
core              402 drivers/pci/controller/dwc/pcie-qcom.c 	return PTR_ERR_OR_ZERO(res->core);
core              409 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->core);
core              424 drivers/pci/controller/dwc/pcie-qcom.c 	ret = reset_control_deassert(res->core);
core              480 drivers/pci/controller/dwc/pcie-qcom.c 	reset_control_assert(res->core);
core               40 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 	struct cygnus_pcie_phy_core *core;
core               61 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 	struct cygnus_pcie_phy_core *core = phy->core;
core               65 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 	mutex_lock(&core->lock);
core               77 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 		mutex_unlock(&core->lock);
core               78 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 		dev_err(core->dev, "PCIe PHY %d invalid\n", phy->id);
core               83 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 		val = readl(core->base + PCIE_CFG_OFFSET);
core               85 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 		writel(val, core->base + PCIE_CFG_OFFSET);
core               92 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 		val = readl(core->base + PCIE_CFG_OFFSET);
core               94 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 		writel(val, core->base + PCIE_CFG_OFFSET);
core               97 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 	mutex_unlock(&core->lock);
core               98 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 	dev_dbg(core->dev, "PCIe PHY %d %s\n", phy->id,
core              127 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 	struct cygnus_pcie_phy_core *core;
core              138 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 	core = devm_kzalloc(dev, sizeof(*core), GFP_KERNEL);
core              139 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 	if (!core)
core              142 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 	core->dev = dev;
core              145 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 	core->base = devm_ioremap_resource(dev, res);
core              146 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 	if (IS_ERR(core->base))
core              147 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 		return PTR_ERR(core->base);
core              149 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 	mutex_init(&core->lock);
core              168 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 		if (core->phys[id].phy) {
core              174 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 		p = &core->phys[id];
core              182 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 		p->core = core;
core              188 drivers/phy/broadcom/phy-bcm-cygnus-pcie.c 	dev_set_drvdata(dev, core);
core               47 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	struct sr_pcie_phy_core *core;
core              120 drivers/phy/broadcom/phy-bcm-sr-pcie.c static u32 pipemux_strap_read(struct sr_pcie_phy_core *core)
core              130 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	pipemux = readl(core->base + PCIE_PIPEMUX_CFG_OFFSET);
core              133 drivers/phy/broadcom/phy-bcm-sr-pcie.c 		regmap_read(core->cdru, CDRU_STRAP_DATA_LSW_OFFSET, &pipemux);
core              147 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	struct sr_pcie_phy_core *core = phy->core;
core              150 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	return !!((pipemux_table[core->pipemux] >> core_idx) & 0x1);
core              171 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	struct sr_pcie_phy_core *core = phy->core;
core              178 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	regmap_read(core->mhb, MHB_MEM_PW_PAXC_OFFSET, &val);
core              180 drivers/phy/broadcom/phy-bcm-sr-pcie.c 		dev_err(core->dev, "PAXC is not powered up\n");
core              200 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	struct sr_pcie_phy_core *core;
core              203 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	core = dev_get_drvdata(dev);
core              204 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	if (!core)
core              212 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	return core->phys[phy_idx].phy;
core              219 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	struct sr_pcie_phy_core *core;
core              224 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	core = devm_kzalloc(dev, sizeof(*core), GFP_KERNEL);
core              225 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	if (!core)
core              228 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	core->dev = dev;
core              231 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	core->base = devm_ioremap_resource(core->dev, res);
core              232 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	if (IS_ERR(core->base))
core              233 drivers/phy/broadcom/phy-bcm-sr-pcie.c 		return PTR_ERR(core->base);
core              235 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	core->cdru = syscon_regmap_lookup_by_phandle(node, "brcm,sr-cdru");
core              236 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	if (IS_ERR(core->cdru)) {
core              237 drivers/phy/broadcom/phy-bcm-sr-pcie.c 		dev_err(core->dev, "unable to find CDRU device\n");
core              238 drivers/phy/broadcom/phy-bcm-sr-pcie.c 		return PTR_ERR(core->cdru);
core              241 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	core->mhb = syscon_regmap_lookup_by_phandle(node, "brcm,sr-mhb");
core              242 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	if (IS_ERR(core->mhb)) {
core              243 drivers/phy/broadcom/phy-bcm-sr-pcie.c 		dev_err(core->dev, "unable to find MHB device\n");
core              244 drivers/phy/broadcom/phy-bcm-sr-pcie.c 		return PTR_ERR(core->mhb);
core              248 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	core->pipemux = pipemux_strap_read(core);
core              249 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	if (!pipemux_strap_is_valid(core->pipemux)) {
core              250 drivers/phy/broadcom/phy-bcm-sr-pcie.c 		dev_err(core->dev, "invalid PCIe PIPEMUX strap %u\n",
core              251 drivers/phy/broadcom/phy-bcm-sr-pcie.c 			core->pipemux);
core              256 drivers/phy/broadcom/phy-bcm-sr-pcie.c 		struct sr_pcie_phy *p = &core->phys[phy_idx];
core              270 drivers/phy/broadcom/phy-bcm-sr-pcie.c 		p->core = core;
core              275 drivers/phy/broadcom/phy-bcm-sr-pcie.c 	dev_set_drvdata(dev, core);
core             1201 drivers/pinctrl/tegra/pinctrl-tegra210.c 	FUNCTION(core),
core              149 drivers/ps3/ps3-lpm.c 	return &lpm_priv->sbd->core;
core             1178 drivers/ps3/ps3-lpm.c 	dev_dbg(&dev->core, " -> %s:%u\n", __func__, __LINE__);
core             1181 drivers/ps3/ps3-lpm.c 		dev_info(&dev->core, "%s:%u: called twice\n",
core             1196 drivers/ps3/ps3-lpm.c 	dev_info(&dev->core, " <- %s:%u:\n", __func__, __LINE__);
core             1203 drivers/ps3/ps3-lpm.c 	dev_dbg(&dev->core, " -> %s:%u:\n", __func__, __LINE__);
core             1210 drivers/ps3/ps3-lpm.c 	dev_info(&dev->core, " <- %s:%u:\n", __func__, __LINE__);
core             1216 drivers/ps3/ps3-lpm.c 	.core.name	= "ps3-lpm",
core             1217 drivers/ps3/ps3-lpm.c 	.core.owner	= THIS_MODULE,
core              266 drivers/ps3/ps3-sys-manager.c 	dev_dbg(&dev->core, "%s:%d: %xh\n", __func__, __LINE__, attr);
core              303 drivers/ps3/ps3-sys-manager.c 	dev_dbg(&dev->core, "%s:%d: (%xh)\n", __func__, __LINE__, op);
core              345 drivers/ps3/ps3-sys-manager.c 	dev_dbg(&dev->core, "%s:%d\n", __func__, __LINE__);
core              382 drivers/ps3/ps3-sys-manager.c 	dev_dbg(&dev->core, "%s:%d: (%s)\n", __func__, __LINE__,
core              420 drivers/ps3/ps3-sys-manager.c 		dev_dbg(&dev->core, "%s:%d: unsupported event version (%u)\n",
core              427 drivers/ps3/ps3-sys-manager.c 		dev_dbg(&dev->core, "%s:%d: POWER_PRESSED (%s)\n",
core              441 drivers/ps3/ps3-sys-manager.c 		dev_dbg(&dev->core, "%s:%d: POWER_RELEASED (%u ms)\n",
core              445 drivers/ps3/ps3-sys-manager.c 		dev_dbg(&dev->core, "%s:%d: RESET_PRESSED (%s)\n",
core              459 drivers/ps3/ps3-sys-manager.c 		dev_dbg(&dev->core, "%s:%d: RESET_RELEASED (%u ms)\n",
core              463 drivers/ps3/ps3-sys-manager.c 		dev_dbg(&dev->core, "%s:%d: THERMAL_ALERT (zone %u)\n",
core              468 drivers/ps3/ps3-sys-manager.c 		dev_dbg(&dev->core, "%s:%d: THERMAL_CLEARED (zone %u)\n",
core              472 drivers/ps3/ps3-sys-manager.c 		dev_dbg(&dev->core, "%s:%d: unknown event (%u)\n",
core              496 drivers/ps3/ps3-sys-manager.c 	dev_dbg(&dev->core, "%s:%d\n", __func__, __LINE__);
core              505 drivers/ps3/ps3-sys-manager.c 		dev_dbg(&dev->core, "%s:%d: unsupported cmd version (%u)\n",
core              511 drivers/ps3/ps3-sys-manager.c 		dev_dbg(&dev->core, "%s:%d: unknown cmd (%u)\n",
core              538 drivers/ps3/ps3-sys-manager.c 		dev_dbg(&dev->core, "%s:%d: unsupported header version (%u)\n",
core              554 drivers/ps3/ps3-sys-manager.c 		dev_dbg(&dev->core, "%s:%d: EVENT\n", __func__, __LINE__);
core              557 drivers/ps3/ps3-sys-manager.c 		dev_dbg(&dev->core, "%s:%d: COMMAND\n", __func__, __LINE__);
core              560 drivers/ps3/ps3-sys-manager.c 		dev_dbg(&dev->core, "%s:%d: REQUEST_ERROR\n", __func__,
core              565 drivers/ps3/ps3-sys-manager.c 		dev_dbg(&dev->core, "%s:%d: unknown service_id (%u)\n",
core              611 drivers/ps3/ps3-sys-manager.c 	dev_dbg(&dev->core, "%s:%d\n", __func__, __LINE__);
core              635 drivers/ps3/ps3-sys-manager.c 	dev_dbg(&dev->core, "%s:%d\n", __func__, __LINE__);
core              640 drivers/ps3/ps3-sys-manager.c 		dev_dbg(&dev->core, "%s:%d: forcing poweroff\n",
core              703 drivers/ps3/ps3-sys-manager.c 	dev_dbg(&dev->core, "%s:%d\n", __func__, __LINE__);
core              724 drivers/ps3/ps3-sys-manager.c 	dev_dbg(&dev->core, "%s:%d\n", __func__, __LINE__);
core              730 drivers/ps3/ps3-sys-manager.c 	dev_dbg(&dev->core, "%s:%d\n", __func__, __LINE__);
core              734 drivers/ps3/ps3-sys-manager.c 	.core.match_id = PS3_MATCH_ID_SYSTEM_MANAGER,
core              735 drivers/ps3/ps3-sys-manager.c 	.core.core.name = "ps3_sys_manager",
core              155 drivers/ps3/ps3-vuart.c 		dev_dbg(&dev->core, "%s:%d: tx_trigger failed: %s\n",
core              164 drivers/ps3/ps3-vuart.c 		dev_dbg(&dev->core, "%s:%d: tx_buf_size failed: %s\n",
core              173 drivers/ps3/ps3-vuart.c 		dev_dbg(&dev->core, "%s:%d: rx_trigger failed: %s\n",
core              180 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, "%s:%d: tx %lxh, rx %lxh\n", __func__, __LINE__,
core              196 drivers/ps3/ps3-vuart.c 		dev_dbg(&dev->core, "%s:%d: tx_trigger failed: %s\n",
core              205 drivers/ps3/ps3-vuart.c 		dev_dbg(&dev->core, "%s:%d: tx_buf_size failed: %s\n",
core              214 drivers/ps3/ps3-vuart.c 		dev_dbg(&dev->core, "%s:%d: rx_trigger failed: %s\n",
core              219 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, "%s:%d: tx %xh, rx %xh\n", __func__, __LINE__,
core              234 drivers/ps3/ps3-vuart.c 		dev_dbg(&dev->core, "%s:%d: rx_bytes failed: %s\n",
core              237 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, "%s:%d: %llxh\n", __func__, __LINE__,
core              254 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, "%s:%d: %lxh\n", __func__, __LINE__, mask);
core              262 drivers/ps3/ps3-vuart.c 		dev_dbg(&dev->core, "%s:%d: interrupt_mask failed: %s\n",
core              279 drivers/ps3/ps3-vuart.c 		dev_dbg(&dev->core, "%s:%d: interrupt_status failed: %s\n",
core              284 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, "%s:%d: m %llxh, s %llxh, m&s %lxh\n",
core              361 drivers/ps3/ps3-vuart.c 		dev_dbg(&dev->core, "%s:%d: lv1_write_virtual_uart failed: "
core              368 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, "%s:%d: wrote %llxh/%xh=>%lxh\n", __func__, __LINE__,
core              387 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, "%s:%d: %xh\n", __func__, __LINE__, bytes);
core              393 drivers/ps3/ps3-vuart.c 		dev_dbg(&dev->core, "%s:%d: lv1_read_virtual_uart failed: %s\n",
core              400 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, "%s:%d: read %llxh/%xh=>%lxh\n", __func__, __LINE__,
core              428 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, "%s:%d: %u\n", __func__, __LINE__, bytes);
core              483 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, "%s:%d: %u(%xh) bytes\n", __func__, __LINE__,
core              496 drivers/ps3/ps3-vuart.c 			dev_dbg(&dev->core,
core              503 drivers/ps3/ps3-vuart.c 			dev_dbg(&dev->core, "%s:%d: wrote %xh bytes\n",
core              528 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, "%s:%d: queued buf_%lu, %xh bytes\n",
core              581 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, "%s:%d: buf_%lu: queued %llxh bytes\n",
core              607 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, "%s:%d: %u(%xh) bytes\n", __func__, __LINE__,
core              619 drivers/ps3/ps3-vuart.c 			dev_dbg(&dev->core, "%s:%d: starved for %lxh bytes\n",
core              637 drivers/ps3/ps3-vuart.c 			dev_dbg(&dev->core, "%s:%d: buf_%lu: dequeued %lxh "
core              644 drivers/ps3/ps3-vuart.c 		dev_dbg(&dev->core, "%s:%d: buf_%lu: free, dequeued %lxh "
core              678 drivers/ps3/ps3-vuart.c 		dev_dbg(&dev->core, "%s:%d: warning, multiple calls\n",
core              687 drivers/ps3/ps3-vuart.c 		dev_dbg(&dev->core, "%s:%d: schedule_work %xh bytes\n",
core              697 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, "%s:%d: waiting for %u(%xh) bytes\n", __func__,
core              726 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, "%s:%d\n", __func__, __LINE__);
core              738 drivers/ps3/ps3-vuart.c 			dev_dbg(&dev->core,
core              748 drivers/ps3/ps3-vuart.c 			dev_dbg(&dev->core,
core              755 drivers/ps3/ps3-vuart.c 		dev_dbg(&dev->core, "%s:%d free buf_%lu\n", __func__, __LINE__,
core              765 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, "%s:%d wrote %lxh bytes total\n",
core              785 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, "%s:%d\n", __func__, __LINE__);
core              797 drivers/ps3/ps3-vuart.c 		dev_dbg(&dev->core, "%s:%d: schedule_work %lxh bytes\n",
core              810 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, "%s:%d\n", __func__, __LINE__);
core              834 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, "%s:%d: status: %lxh\n", __func__, __LINE__,
core              988 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, "%s:%d\n", __func__, __LINE__);
core              993 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, "%s:%d: (%s)\n", __func__, __LINE__,
core              994 drivers/ps3/ps3-vuart.c 		drv->core.core.name);
core             1009 drivers/ps3/ps3-vuart.c 		dev_dbg(&dev->core, "%s:%d: port busy (%d)\n", __func__,
core             1051 drivers/ps3/ps3-vuart.c 		dev_info(&dev->core, "%s:%d: no probe method\n", __func__,
core             1056 drivers/ps3/ps3-vuart.c 		dev_dbg(&dev->core, "%s:%d: drv->probe failed\n",
core             1075 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, "%s:%d: failed\n", __func__, __LINE__);
core             1090 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, "%s:%d\n", __func__, __LINE__);
core             1115 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, " -> %s:%d: match_id %d\n", __func__, __LINE__,
core             1118 drivers/ps3/ps3-vuart.c 	if (!dev->core.driver) {
core             1119 drivers/ps3/ps3-vuart.c 		dev_dbg(&dev->core, "%s:%d: no driver bound\n", __func__,
core             1132 drivers/ps3/ps3-vuart.c 		dev_dbg(&dev->core, "%s:%d: no remove method\n", __func__,
core             1143 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, " <- %s:%d\n", __func__, __LINE__);
core             1166 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, " -> %s:%d: match_id %d\n", __func__, __LINE__,
core             1169 drivers/ps3/ps3-vuart.c 	if (!dev->core.driver) {
core             1170 drivers/ps3/ps3-vuart.c 		dev_dbg(&dev->core, "%s:%d: no driver bound\n", __func__,
core             1183 drivers/ps3/ps3-vuart.c 		dev_dbg(&dev->core, "%s:%d: no shutdown, calling remove\n",
core             1187 drivers/ps3/ps3-vuart.c 		dev_dbg(&dev->core, "%s:%d: no shutdown method\n", __func__,
core             1194 drivers/ps3/ps3-vuart.c 	dev_dbg(&dev->core, " <- %s:%d\n", __func__, __LINE__);
core             1228 drivers/ps3/ps3-vuart.c 	pr_debug("%s:%d: (%s)\n", __func__, __LINE__, drv->core.core.name);
core             1230 drivers/ps3/ps3-vuart.c 	BUG_ON(!drv->core.match_id);
core             1231 drivers/ps3/ps3-vuart.c 	BUG_ON(!drv->core.core.name);
core             1233 drivers/ps3/ps3-vuart.c 	drv->core.probe = ps3_vuart_probe;
core             1234 drivers/ps3/ps3-vuart.c 	drv->core.remove = ps3_vuart_remove;
core             1235 drivers/ps3/ps3-vuart.c 	drv->core.shutdown = ps3_vuart_shutdown;
core             1237 drivers/ps3/ps3-vuart.c 	result = ps3_system_bus_driver_register(&drv->core);
core             1248 drivers/ps3/ps3-vuart.c 	pr_debug("%s:%d: (%s)\n", __func__, __LINE__, drv->core.core.name);
core             1249 drivers/ps3/ps3-vuart.c 	ps3_system_bus_driver_unregister(&drv->core);
core              158 drivers/ps3/ps3av.c 			dev_dbg(&ps3av->dev->core,
core              178 drivers/ps3/ps3av.c 	dev_dbg(&dev->core, " -> %s:%d\n", __func__, __LINE__);
core              180 drivers/ps3/ps3av.c 	dev_dbg(&dev->core, " <- %s:%d\n", __func__, __LINE__);
core              190 drivers/ps3/ps3av.c 	dev_dbg(&dev->core, " -> %s:%d\n", __func__, __LINE__);
core              220 drivers/ps3/ps3av.c 		dev_dbg(&ps3av->dev->core,
core              233 drivers/ps3/ps3av.c 			dev_dbg(&ps3av->dev->core,
core              243 drivers/ps3/ps3av.c 			dev_dbg(&ps3av->dev->core,
core              254 drivers/ps3/ps3av.c 		dev_dbg(&ps3av->dev->core, "%s: reply err (result=%x)\n",
core              269 drivers/ps3/ps3av.c 		dev_dbg(&ps3av->dev->core, "reply_packet invalid version:%x\n",
core              430 drivers/ps3/ps3av.c 		dev_dbg(&ps3av->dev->core,
core              446 drivers/ps3/ps3av.c 			dev_dbg(&ps3av->dev->core,
core              454 drivers/ps3/ps3av.c 		dev_dbg(&ps3av->dev->core, "ps3av_cmd_avb_param failed\n");
core              462 drivers/ps3/ps3av.c 		dev_dbg(&ps3av->dev->core,
core              525 drivers/ps3/ps3av.c 		dev_dbg(&ps3av->dev->core, "ps3av_cmd_avb_param failed\n");
core              550 drivers/ps3/ps3av.c 			dev_dbg(&ps3av->dev->core, "Not supported\n");
core              552 drivers/ps3/ps3av.c 			dev_dbg(&ps3av->dev->core,
core              557 drivers/ps3/ps3av.c 			dev_dbg(&ps3av->dev->core,
core              836 drivers/ps3/ps3av.c 		dev_dbg(&ps3av->dev->core, "%s: error id :%d\n", __func__, id);
core              927 drivers/ps3/ps3av.c 	dev_dbg(&dev->core, " -> %s:%d\n", __func__, __LINE__);
core              928 drivers/ps3/ps3av.c 	dev_dbg(&dev->core, "  timeout=%d\n", timeout);
core              931 drivers/ps3/ps3av.c 		dev_err(&dev->core, "Only one ps3av device is supported\n");
core              988 drivers/ps3/ps3av.c 	dev_dbg(&dev->core, " <- %s:%d\n", __func__, __LINE__);
core             1000 drivers/ps3/ps3av.c 	dev_dbg(&dev->core, " -> %s:%d\n", __func__, __LINE__);
core             1008 drivers/ps3/ps3av.c 	dev_dbg(&dev->core, " <- %s:%d\n", __func__, __LINE__);
core             1014 drivers/ps3/ps3av.c 	dev_dbg(&dev->core, " -> %s:%d\n", __func__, __LINE__);
core             1016 drivers/ps3/ps3av.c 	dev_dbg(&dev->core, " <- %s:%d\n", __func__, __LINE__);
core             1020 drivers/ps3/ps3av.c 	.core.match_id = PS3_MATCH_ID_AV_SETTINGS,
core             1021 drivers/ps3/ps3av.c 	.core.core.name = "ps3_av",
core               89 drivers/ps3/ps3stor_lib.c 		dev_dbg(&dev->sbd.core,
core               97 drivers/ps3/ps3stor_lib.c 			dev_dbg(&dev->sbd.core, "%s:%u: read failed, "
core              103 drivers/ps3/ps3stor_lib.c 		dev_dbg(&dev->sbd.core, "%s:%u: region %u is accessible\n",
core              115 drivers/ps3/ps3stor_lib.c 		dev_info(&dev->sbd.core,
core              120 drivers/ps3/ps3stor_lib.c 	dev_info(&dev->sbd.core,
core              143 drivers/ps3/ps3stor_lib.c 		dev_err(&dev->sbd.core,
core              152 drivers/ps3/ps3stor_lib.c 		dev_err(&dev->sbd.core,
core              159 drivers/ps3/ps3stor_lib.c 			    dev->sbd.core.driver->name, dev);
core              161 drivers/ps3/ps3stor_lib.c 		dev_err(&dev->sbd.core, "%s:%u: request_irq failed %d\n",
core              169 drivers/ps3/ps3stor_lib.c 		dev_err(&dev->sbd.core,
core              183 drivers/ps3/ps3stor_lib.c 		dev_err(&dev->sbd.core, "%s:%u: cannot create DMA region\n",
core              190 drivers/ps3/ps3stor_lib.c 	dev->bounce_dma = dma_map_single(&dev->sbd.core, dev->bounce_buf,
core              193 drivers/ps3/ps3stor_lib.c 		dev_err(&dev->sbd.core, "%s:%u: map DMA region failed\n",
core              201 drivers/ps3/ps3stor_lib.c 		dev_err(&dev->sbd.core, "%s:%u: No accessible regions found\n",
core              208 drivers/ps3/ps3stor_lib.c 	dma_unmap_single(&dev->sbd.core, dev->bounce_dma, dev->bounce_size,
core              232 drivers/ps3/ps3stor_lib.c 	dma_unmap_single(&dev->sbd.core, dev->bounce_dma, dev->bounce_size,
core              240 drivers/ps3/ps3stor_lib.c 		dev_err(&dev->sbd.core,
core              246 drivers/ps3/ps3stor_lib.c 		dev_err(&dev->sbd.core,
core              271 drivers/ps3/ps3stor_lib.c 	dev_dbg(&dev->sbd.core, "%s:%u: %s %llu sectors starting at %llu\n",
core              282 drivers/ps3/ps3stor_lib.c 		dev_dbg(&dev->sbd.core, "%s:%u: %s failed %d\n", __func__,
core              289 drivers/ps3/ps3stor_lib.c 		dev_dbg(&dev->sbd.core, "%s:%u: %s failed 0x%llx\n", __func__,
core              294 drivers/ps3/ps3stor_lib.c 	dev_dbg(&dev->sbd.core, "%s:%u: %s completed\n", __func__, __LINE__,
core              319 drivers/ps3/ps3stor_lib.c 	dev_dbg(&dev->sbd.core, "%s:%u: send device command 0x%llx\n", __func__,
core              327 drivers/ps3/ps3stor_lib.c 		dev_err(&dev->sbd.core,
core              335 drivers/ps3/ps3stor_lib.c 		dev_dbg(&dev->sbd.core, "%s:%u: command 0x%llx failed 0x%llx\n",
core              340 drivers/ps3/ps3stor_lib.c 	dev_dbg(&dev->sbd.core, "%s:%u: command 0x%llx completed\n", __func__,
core               33 drivers/ps3/vuart.h 	struct ps3_system_bus_driver core;
core               54 drivers/ps3/vuart.h 	return container_of(sbd, struct ps3_vuart_port_driver, core);
core              223 drivers/s390/char/sclp.h 	memcpy(&info->core, page + sccb->offset_configured,
core              151 drivers/s390/char/sclp_cmd.c int sclp_core_configure(u8 core)
core              153 drivers/s390/char/sclp_cmd.c 	return do_core_configure(SCLP_CMDW_CONFIGURE_CPU | core << 8);
core              156 drivers/s390/char/sclp_cmd.c int sclp_core_deconfigure(u8 core)
core              158 drivers/s390/char/sclp_cmd.c 	return do_core_configure(SCLP_CMDW_DECONFIGURE_CPU | core << 8);
core               31 drivers/scsi/aic94xx/aic94xx_hwi.c 	return sas_request_addr(asd_ha->sas_ha.core.shost,
core              686 drivers/scsi/aic94xx/aic94xx_init.c 	sas_remove_host(asd_ha->sas_ha.core.shost);
core              687 drivers/scsi/aic94xx/aic94xx_init.c 	scsi_host_put(asd_ha->sas_ha.core.shost);
core              737 drivers/scsi/aic94xx/aic94xx_init.c 	asd_ha->sas_ha.core.shost = shost;
core             2660 drivers/scsi/hisi_sas/hisi_sas_main.c 	sha->core.shost = hisi_hba->shost;
core             3863 drivers/scsi/hisi_sas/hisi_sas_main.c 	struct Scsi_Host *shost = sha->core.shost;
core             3869 drivers/scsi/hisi_sas/hisi_sas_main.c 	sas_remove_host(sha->core.shost);
core             3209 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c 	sha->core.shost = shost;
core             3294 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c 	struct Scsi_Host *shost = sha->core.shost;
core             3302 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c 	sas_remove_host(sha->core.shost);
core              309 drivers/scsi/isci/host.h 	return ihost->sas_ha.core.shost;
core              572 drivers/scsi/isci/init.c 	ihost->sas_ha.core.shost = shost;
core              743 drivers/scsi/isci/init.c 		isci_host_start(ihost->sas_ha.core.shost);
core              171 drivers/scsi/libsas/sas_ata.c 	struct Scsi_Host *host = sas_ha->core.shost;
core              249 drivers/scsi/libsas/sas_ata.c 	return to_sas_internal(dev->port->ha->core.shost->transportt);
core              538 drivers/scsi/libsas/sas_ata.c 	struct Scsi_Host *shost = ha->core.shost;
core              734 drivers/scsi/libsas/sas_ata.c 	ata_scsi_port_error_handler(ha->core.shost, ap);
core              174 drivers/scsi/libsas/sas_discover.c 	struct Scsi_Host *shost = sas_ha->core.shost;
core              195 drivers/scsi/libsas/sas_discover.c 	struct Scsi_Host *shost = sas_ha->core.shost;
core              237 drivers/scsi/libsas/sas_discover.c 	struct Scsi_Host *shost = port->ha->core.shost;
core               60 drivers/scsi/libsas/sas_expander.c 		to_sas_internal(dev->port->ha->core.shost->transportt);
core              117 drivers/scsi/libsas/sas_host_smp.c 	struct sas_internal *i = to_sas_internal(sas_ha->core.shost->transportt);
core              185 drivers/scsi/libsas/sas_host_smp.c 		to_sas_internal(sas_ha->core.shost->transportt);
core              193 drivers/scsi/libsas/sas_init.c 			to_sas_internal(sas_ha->core.shost->transportt);
core              242 drivers/scsi/libsas/sas_init.c 			to_sas_internal(sas_ha->core.shost->transportt);
core              276 drivers/scsi/libsas/sas_init.c 			to_sas_internal(sas_ha->core.shost->transportt);
core              312 drivers/scsi/libsas/sas_init.c 			to_sas_internal(sas_ha->core.shost->transportt);
core              347 drivers/scsi/libsas/sas_init.c 			to_sas_internal(sas_ha->core.shost->transportt);
core              420 drivers/scsi/libsas/sas_init.c 	scsi_unblock_requests(ha->core.shost);
core              430 drivers/scsi/libsas/sas_init.c 	scsi_block_requests(ha->core.shost);
core              600 drivers/scsi/libsas/sas_init.c 		to_sas_internal(sas_ha->core.shost->transportt);
core               41 drivers/scsi/libsas/sas_phy.c 		to_sas_internal(sas_ha->core.shost->transportt);
core               69 drivers/scsi/libsas/sas_phy.c 		to_sas_internal(sas_ha->core.shost->transportt);
core               98 drivers/scsi/libsas/sas_phy.c 		to_sas_internal(sas_ha->core.shost->transportt);
core              134 drivers/scsi/libsas/sas_phy.c 		phy->phy = sas_phy_alloc(&sas_ha->core.shost->shost_gendev, i);
core               31 drivers/scsi/libsas/sas_port.c 	struct sas_internal *si = to_sas_internal(sas_ha->core.shost->transportt);
core               84 drivers/scsi/libsas/sas_port.c 		to_sas_internal(sas_ha->core.shost->transportt);
core              204 drivers/scsi/libsas/sas_port.c 		to_sas_internal(sas_ha->core.shost->transportt);
core              283 drivers/scsi/libsas/sas_scsi_host.c 		to_sas_internal(task->dev->port->ha->core.shost->transportt);
core              329 drivers/scsi/libsas/sas_scsi_host.c 		to_sas_internal(dev->port->ha->core.shost->transportt);
core              357 drivers/scsi/libsas/sas_scsi_host.c 		to_sas_internal(dev->port->ha->core.shost->transportt);
core              412 drivers/scsi/libsas/sas_scsi_host.c 	if (scsi_host_in_recovery(ha->core.shost)) {
core              442 drivers/scsi/libsas/sas_scsi_host.c 			scsi_schedule_eh(ha->core.shost);
core              422 drivers/scsi/mvsas/mv_init.c 	sha->core.shost = shost;
core              477 drivers/scsi/mvsas/mv_init.c 	sha->core.shost = mvi->shost;
core              584 drivers/scsi/pm8001/pm8001_init.c 	sha->core.shost = shost;
core               69 drivers/scsi/ps3rom.c 	dev_dbg(&dev->sbd.core, "%s:%u: id %u, lun %llu, channel %u\n", __func__,
core               92 drivers/scsi/ps3rom.c 	dev_dbg(&dev->sbd.core, "%s:%u: send ATAPI command 0x%02x\n", __func__,
core              132 drivers/scsi/ps3rom.c 		dev_dbg(&dev->sbd.core,
core              139 drivers/scsi/ps3rom.c 		dev_err(&dev->sbd.core,
core              165 drivers/scsi/ps3rom.c 	dev_dbg(&dev->sbd.core, "%s:%u: read %u sectors starting at %u\n",
core              172 drivers/scsi/ps3rom.c 		dev_err(&dev->sbd.core, "%s:%u: read failed %d\n", __func__,
core              186 drivers/scsi/ps3rom.c 	dev_dbg(&dev->sbd.core, "%s:%u: write %u sectors starting at %u\n",
core              195 drivers/scsi/ps3rom.c 		dev_err(&dev->sbd.core, "%s:%u: write failed %d\n", __func__,
core              280 drivers/scsi/ps3rom.c 		dev_err(&dev->sbd.core,
core              285 drivers/scsi/ps3rom.c 		dev_err(&dev->sbd.core, "%s:%u: res=%d status=0x%llx\n",
core              311 drivers/scsi/ps3rom.c 		dev_err(&dev->sbd.core, "%s:%u: end error without autosense\n",
core              346 drivers/scsi/ps3rom.c 	struct ps3_storage_device *dev = to_ps3_storage_device(&_dev->core);
core              352 drivers/scsi/ps3rom.c 		dev_err(&dev->sbd.core,
core              370 drivers/scsi/ps3rom.c 		dev_err(&dev->sbd.core, "%s:%u: scsi_host_alloc failed\n",
core              384 drivers/scsi/ps3rom.c 	error = scsi_add_host(host, &dev->sbd.core);
core              386 drivers/scsi/ps3rom.c 		dev_err(&dev->sbd.core, "%s:%u: scsi_host_alloc failed %d\n",
core              407 drivers/scsi/ps3rom.c 	struct ps3_storage_device *dev = to_ps3_storage_device(&_dev->core);
core              420 drivers/scsi/ps3rom.c 	.core.name	= DEVICE_NAME,
core              421 drivers/scsi/ps3rom.c 	.core.owner	= THIS_MODULE,
core              530 drivers/scsi/qla2xxx/qla_mr.c 	int i, core;
core              597 drivers/scsi/qla2xxx/qla_mr.c 	for (core = 0; core < 4; core++)
core              600 drivers/scsi/qla2xxx/qla_mr.c 			    (SOC_CORE_TIMER_REG + 0x100*core + 4*i), (0x0));
core              603 drivers/scsi/qla2xxx/qla_mr.c 	for (core = 0; core < 4; core++)
core              605 drivers/scsi/qla2xxx/qla_mr.c 		    (SOC_IRQ_ACK_REG + 0x100*core), (0x3FF));
core              127 drivers/spi/spi-meson-spicc.c 	struct clk			*core;
core              307 drivers/spi/spi-meson-spicc.c 	parent = clk_get_rate(spicc->core);
core              537 drivers/spi/spi-meson-spicc.c 	spicc->core = devm_clk_get(&pdev->dev, "core");
core              538 drivers/spi/spi-meson-spicc.c 	if (IS_ERR(spicc->core)) {
core              540 drivers/spi/spi-meson-spicc.c 		ret = PTR_ERR(spicc->core);
core              544 drivers/spi/spi-meson-spicc.c 	ret = clk_prepare_enable(spicc->core);
core              549 drivers/spi/spi-meson-spicc.c 	rate = clk_get_rate(spicc->core);
core              583 drivers/spi/spi-meson-spicc.c 	clk_disable_unprepare(spicc->core);
core              598 drivers/spi/spi-meson-spicc.c 	clk_disable_unprepare(spicc->core);
core              146 drivers/spmi/spmi-pmic-arb.c 	void __iomem		*core;
core              848 drivers/spmi/spmi-pmic-arb.c 		regval = readl_relaxed(pmic_arb->core + offset);
core              898 drivers/spmi/spmi-pmic-arb.c 		regval = readl_relaxed(pmic_arb->core + offset);
core             1161 drivers/spmi/spmi-pmic-arb.c 	void __iomem *core;
core             1174 drivers/spmi/spmi-pmic-arb.c 	core = devm_ioremap_resource(&ctrl->dev, res);
core             1175 drivers/spmi/spmi-pmic-arb.c 	if (IS_ERR(core)) {
core             1176 drivers/spmi/spmi-pmic-arb.c 		err = PTR_ERR(core);
core             1190 drivers/spmi/spmi-pmic-arb.c 	hw_ver = readl_relaxed(core + PMIC_ARB_VERSION);
core             1194 drivers/spmi/spmi-pmic-arb.c 		pmic_arb->wr_base = core;
core             1195 drivers/spmi/spmi-pmic-arb.c 		pmic_arb->rd_base = core;
core             1197 drivers/spmi/spmi-pmic-arb.c 		pmic_arb->core = core;
core             1856 drivers/staging/media/imx/imx-media-csi.c 	.core = &csi_core_ops,
core              560 drivers/staging/media/imx/imx7-mipi-csis.c 		ret = v4l2_subdev_call(state->src_sd, core, s_power, 1);
core              582 drivers/staging/media/imx/imx7-mipi-csis.c 		ret = v4l2_subdev_call(state->src_sd, core, s_power, 0);
core              816 drivers/staging/media/imx/imx7-mipi-csis.c 	.core	= &mipi_csis_core_ops,
core              920 drivers/staging/media/ipu3/ipu3-v4l2.c 	.core = &imgu_subdev_core_ops,
core               53 drivers/staging/media/meson/vdec/codec_mpeg12.c static int codec_mpeg12_can_recycle(struct amvdec_core *core)
core               55 drivers/staging/media/meson/vdec/codec_mpeg12.c 	return !amvdec_read_dos(core, MREG_BUFFERIN);
core               58 drivers/staging/media/meson/vdec/codec_mpeg12.c static void codec_mpeg12_recycle(struct amvdec_core *core, u32 buf_idx)
core               60 drivers/staging/media/meson/vdec/codec_mpeg12.c 	amvdec_write_dos(core, MREG_BUFFERIN, buf_idx + 1);
core               65 drivers/staging/media/meson/vdec/codec_mpeg12.c 	struct amvdec_core *core = sess->core;
core               74 drivers/staging/media/meson/vdec/codec_mpeg12.c 	mpeg12->workspace_vaddr = dma_alloc_coherent(core->dev, SIZE_WORKSPACE,
core               78 drivers/staging/media/meson/vdec/codec_mpeg12.c 		dev_err(core->dev, "Failed to request MPEG 1/2 Workspace\n");
core               88 drivers/staging/media/meson/vdec/codec_mpeg12.c 	amvdec_write_dos(core, POWER_CTL_VLD, BIT(4));
core               89 drivers/staging/media/meson/vdec/codec_mpeg12.c 	amvdec_write_dos(core, MREG_CO_MV_START,
core               92 drivers/staging/media/meson/vdec/codec_mpeg12.c 	amvdec_write_dos(core, MPEG1_2_REG, 0);
core               93 drivers/staging/media/meson/vdec/codec_mpeg12.c 	amvdec_write_dos(core, PSCALE_CTRL, 0);
core               94 drivers/staging/media/meson/vdec/codec_mpeg12.c 	amvdec_write_dos(core, PIC_HEAD_INFO, 0x380);
core               95 drivers/staging/media/meson/vdec/codec_mpeg12.c 	amvdec_write_dos(core, M4_CONTROL_REG, 0);
core               96 drivers/staging/media/meson/vdec/codec_mpeg12.c 	amvdec_write_dos(core, MREG_BUFFERIN, 0);
core               97 drivers/staging/media/meson/vdec/codec_mpeg12.c 	amvdec_write_dos(core, MREG_BUFFEROUT, 0);
core               98 drivers/staging/media/meson/vdec/codec_mpeg12.c 	amvdec_write_dos(core, MREG_CMD, (sess->width << 16) | sess->height);
core               99 drivers/staging/media/meson/vdec/codec_mpeg12.c 	amvdec_write_dos(core, MREG_ERROR_COUNT, 0);
core              100 drivers/staging/media/meson/vdec/codec_mpeg12.c 	amvdec_write_dos(core, MREG_FATAL_ERROR, 0);
core              101 drivers/staging/media/meson/vdec/codec_mpeg12.c 	amvdec_write_dos(core, MREG_WAIT_BUFFER, 0);
core              109 drivers/staging/media/meson/vdec/codec_mpeg12.c 	dma_free_coherent(core->dev, SIZE_WORKSPACE, mpeg12->workspace_vaddr,
core              120 drivers/staging/media/meson/vdec/codec_mpeg12.c 	struct amvdec_core *core = sess->core;
core              123 drivers/staging/media/meson/vdec/codec_mpeg12.c 		dma_free_coherent(core->dev, SIZE_WORKSPACE,
core              132 drivers/staging/media/meson/vdec/codec_mpeg12.c 	struct amvdec_core *core = sess->core;
core              133 drivers/staging/media/meson/vdec/codec_mpeg12.c 	u32 seq = amvdec_read_dos(core, MREG_SEQ_INFO);
core              155 drivers/staging/media/meson/vdec/codec_mpeg12.c 	struct amvdec_core *core = sess->core;
core              163 drivers/staging/media/meson/vdec/codec_mpeg12.c 	amvdec_write_dos(core, ASSIST_MBOX1_CLR_REG, 1);
core              164 drivers/staging/media/meson/vdec/codec_mpeg12.c 	reg = amvdec_read_dos(core, MREG_FATAL_ERROR);
core              166 drivers/staging/media/meson/vdec/codec_mpeg12.c 		dev_err(core->dev, "MPEG1/2 fatal error\n");
core              171 drivers/staging/media/meson/vdec/codec_mpeg12.c 	reg = amvdec_read_dos(core, MREG_BUFFEROUT);
core              179 drivers/staging/media/meson/vdec/codec_mpeg12.c 	pic_info = amvdec_read_dos(core, MREG_PIC_INFO);
core              189 drivers/staging/media/meson/vdec/codec_mpeg12.c 	offset = amvdec_read_dos(core, MREG_FRAME_OFFSET);
core              193 drivers/staging/media/meson/vdec/codec_mpeg12.c 	amvdec_write_dos(core, MREG_BUFFEROUT, 0);
core               62 drivers/staging/media/meson/vdec/esparser.c 	struct amvdec_core *core = dev;
core               64 drivers/staging/media/meson/vdec/esparser.c 	int_status = amvdec_read_parser(core, PARSER_INT_STATUS);
core               65 drivers/staging/media/meson/vdec/esparser.c 	amvdec_write_parser(core, PARSER_INT_STATUS, int_status);
core               68 drivers/staging/media/meson/vdec/esparser.c 		amvdec_write_parser(core, PFIFO_RD_PTR, 0);
core               69 drivers/staging/media/meson/vdec/esparser.c 		amvdec_write_parser(core, PFIFO_WR_PTR, 0);
core              103 drivers/staging/media/meson/vdec/esparser.c esparser_write_data(struct amvdec_core *core, dma_addr_t addr, u32 size)
core              105 drivers/staging/media/meson/vdec/esparser.c 	amvdec_write_parser(core, PFIFO_RD_PTR, 0);
core              106 drivers/staging/media/meson/vdec/esparser.c 	amvdec_write_parser(core, PFIFO_WR_PTR, 0);
core              107 drivers/staging/media/meson/vdec/esparser.c 	amvdec_write_parser(core, PARSER_CONTROL,
core              113 drivers/staging/media/meson/vdec/esparser.c 	amvdec_write_parser(core, PARSER_FETCH_ADDR, addr);
core              114 drivers/staging/media/meson/vdec/esparser.c 	amvdec_write_parser(core, PARSER_FETCH_CMD,
core              126 drivers/staging/media/meson/vdec/esparser.c 	struct amvdec_core *core = sess->core;
core              129 drivers/staging/media/meson/vdec/esparser.c 	vififo_usage += amvdec_read_parser(core, PARSER_VIDEO_HOLE);
core              133 drivers/staging/media/meson/vdec/esparser.c 		dev_warn(sess->core->dev,
core              142 drivers/staging/media/meson/vdec/esparser.c int esparser_queue_eos(struct amvdec_core *core, const u8 *data, u32 len)
core              144 drivers/staging/media/meson/vdec/esparser.c 	struct device *dev = core->dev;
core              155 drivers/staging/media/meson/vdec/esparser.c 	ret = esparser_write_data(core, eos_paddr, len);
core              164 drivers/staging/media/meson/vdec/esparser.c 	struct amvdec_core *core = sess->core;
core              165 drivers/staging/media/meson/vdec/esparser.c 	u32 offset = amvdec_read_parser(core, PARSER_VIDEO_WP) -
core              182 drivers/staging/media/meson/vdec/esparser.c 	struct amvdec_core *core = sess->core;
core              204 drivers/staging/media/meson/vdec/esparser.c 	dev_dbg(core->dev, "esparser: ts = %llu pld_size = %u offset = %08X\n",
core              208 drivers/staging/media/meson/vdec/esparser.c 	ret = esparser_write_data(core, phy, payload_size + pad_size);
core              211 drivers/staging/media/meson/vdec/esparser.c 		dev_warn(core->dev, "esparser: input parsing error\n");
core              214 drivers/staging/media/meson/vdec/esparser.c 		amvdec_write_parser(core, PARSER_FETCH_CMD, 0);
core              256 drivers/staging/media/meson/vdec/esparser.c 	struct amvdec_core *core = sess->core;
core              259 drivers/staging/media/meson/vdec/esparser.c 	reset_control_reset(core->esparser_reset);
core              260 drivers/staging/media/meson/vdec/esparser.c 	amvdec_write_parser(core, PARSER_CONFIG,
core              265 drivers/staging/media/meson/vdec/esparser.c 	amvdec_write_parser(core, PFIFO_RD_PTR, 0);
core              266 drivers/staging/media/meson/vdec/esparser.c 	amvdec_write_parser(core, PFIFO_WR_PTR, 0);
core              268 drivers/staging/media/meson/vdec/esparser.c 	amvdec_write_parser(core, PARSER_SEARCH_PATTERN,
core              270 drivers/staging/media/meson/vdec/esparser.c 	amvdec_write_parser(core, PARSER_SEARCH_MASK, ES_START_CODE_MASK);
core              272 drivers/staging/media/meson/vdec/esparser.c 	amvdec_write_parser(core, PARSER_CONFIG,
core              278 drivers/staging/media/meson/vdec/esparser.c 	amvdec_write_parser(core, PARSER_CONTROL,
core              281 drivers/staging/media/meson/vdec/esparser.c 	amvdec_write_parser(core, PARSER_VIDEO_START_PTR, sess->vififo_paddr);
core              282 drivers/staging/media/meson/vdec/esparser.c 	amvdec_write_parser(core, PARSER_VIDEO_END_PTR,
core              284 drivers/staging/media/meson/vdec/esparser.c 	amvdec_write_parser(core, PARSER_ES_CONTROL,
core              285 drivers/staging/media/meson/vdec/esparser.c 			    amvdec_read_parser(core, PARSER_ES_CONTROL) & ~1);
core              290 drivers/staging/media/meson/vdec/esparser.c 	amvdec_write_parser(core, PARSER_INT_STATUS, 0xffff);
core              291 drivers/staging/media/meson/vdec/esparser.c 	amvdec_write_parser(core, PARSER_INT_ENABLE,
core              297 drivers/staging/media/meson/vdec/esparser.c int esparser_init(struct platform_device *pdev, struct amvdec_core *core)
core              308 drivers/staging/media/meson/vdec/esparser.c 			       "esparserirq", core);
core              314 drivers/staging/media/meson/vdec/esparser.c 	core->esparser_reset =
core              316 drivers/staging/media/meson/vdec/esparser.c 	if (IS_ERR(core->esparser_reset)) {
core              318 drivers/staging/media/meson/vdec/esparser.c 		return PTR_ERR(core->esparser_reset);
core               14 drivers/staging/media/meson/vdec/esparser.h int esparser_init(struct platform_device *pdev, struct amvdec_core *core);
core               22 drivers/staging/media/meson/vdec/esparser.h int esparser_queue_eos(struct amvdec_core *core, const u8 *data, u32 len);
core               56 drivers/staging/media/meson/vdec/vdec.c 	struct amvdec_core *core = sess->core;
core               63 drivers/staging/media/meson/vdec/vdec.c 			if (!codec_ops->can_recycle(core))
core               66 drivers/staging/media/meson/vdec/vdec.c 			codec_ops->recycle(core, tmp->vb->index);
core               83 drivers/staging/media/meson/vdec/vdec.c 	ret = clk_prepare_enable(sess->core->dos_parser_clk);
core               87 drivers/staging/media/meson/vdec/vdec.c 	ret = clk_prepare_enable(sess->core->dos_clk);
core              100 drivers/staging/media/meson/vdec/vdec.c 	clk_disable_unprepare(sess->core->dos_clk);
core              102 drivers/staging/media/meson/vdec/vdec.c 	clk_disable_unprepare(sess->core->dos_parser_clk);
core              126 drivers/staging/media/meson/vdec/vdec.c 	clk_disable_unprepare(sess->core->dos_clk);
core              127 drivers/staging/media/meson/vdec/vdec.c 	clk_disable_unprepare(sess->core->dos_parser_clk);
core              278 drivers/staging/media/meson/vdec/vdec.c 	struct amvdec_core *core = sess->core;
core              282 drivers/staging/media/meson/vdec/vdec.c 	if (core->cur_sess && core->cur_sess != sess) {
core              304 drivers/staging/media/meson/vdec/vdec.c 		dma_alloc_coherent(sess->core->dev, sess->vififo_size,
core              307 drivers/staging/media/meson/vdec/vdec.c 		dev_err(sess->core->dev, "Failed to request VIFIFO buffer\n");
core              331 drivers/staging/media/meson/vdec/vdec.c 	core->cur_sess = sess;
core              336 drivers/staging/media/meson/vdec/vdec.c 	dma_free_coherent(sess->core->dev, sess->vififo_size,
core              357 drivers/staging/media/meson/vdec/vdec.c 		meson_canvas_free(sess->core->canvas, sess->canvas_alloc[i]);
core              385 drivers/staging/media/meson/vdec/vdec.c 	struct amvdec_core *core = sess->core;
core              396 drivers/staging/media/meson/vdec/vdec.c 		dma_free_coherent(sess->core->dev, sess->vififo_size,
core              402 drivers/staging/media/meson/vdec/vdec.c 		core->cur_sess = NULL;
core              478 drivers/staging/media/meson/vdec/vdec.c 	const struct amvdec_format *fmts = sess->core->platform->formats;
core              542 drivers/staging/media/meson/vdec/vdec.c 	vdec_try_fmt_common(sess, sess->core->platform->num_formats, f);
core              570 drivers/staging/media/meson/vdec/vdec.c 	vdec_try_fmt_common(sess, sess->core->platform->num_formats, f);
core              580 drivers/staging/media/meson/vdec/vdec.c 	u32 num_formats = sess->core->platform->num_formats;
core              638 drivers/staging/media/meson/vdec/vdec.c 	const struct vdec_platform *platform = sess->core->platform;
core              668 drivers/staging/media/meson/vdec/vdec.c 	const struct amvdec_format *formats = sess->core->platform->formats;
core              670 drivers/staging/media/meson/vdec/vdec.c 	u32 num_formats = sess->core->platform->num_formats;
core              694 drivers/staging/media/meson/vdec/vdec.c 	struct device *dev = sess->core->dev;
core              726 drivers/staging/media/meson/vdec/vdec.c 		esparser_queue_eos(sess->core, data, len);
core              800 drivers/staging/media/meson/vdec/vdec.c 	src_vq->dev = sess->core->dev;
core              814 drivers/staging/media/meson/vdec/vdec.c 	dst_vq->dev = sess->core->dev;
core              850 drivers/staging/media/meson/vdec/vdec.c 	struct amvdec_core *core = video_drvdata(file);
core              851 drivers/staging/media/meson/vdec/vdec.c 	struct device *dev = core->dev;
core              852 drivers/staging/media/meson/vdec/vdec.c 	const struct amvdec_format *formats = core->platform->formats;
core              860 drivers/staging/media/meson/vdec/vdec.c 	sess->core = core;
core              894 drivers/staging/media/meson/vdec/vdec.c 	v4l2_fh_init(&sess->fh, core->vdev_dec);
core              938 drivers/staging/media/meson/vdec/vdec.c 	struct amvdec_core *core = data;
core              939 drivers/staging/media/meson/vdec/vdec.c 	struct amvdec_session *sess = core->cur_sess;
core              948 drivers/staging/media/meson/vdec/vdec.c 	struct amvdec_core *core = data;
core              949 drivers/staging/media/meson/vdec/vdec.c 	struct amvdec_session *sess = core->cur_sess;
core              969 drivers/staging/media/meson/vdec/vdec.c 	struct amvdec_core *core;
core              975 drivers/staging/media/meson/vdec/vdec.c 	core = devm_kzalloc(dev, sizeof(*core), GFP_KERNEL);
core              976 drivers/staging/media/meson/vdec/vdec.c 	if (!core)
core              979 drivers/staging/media/meson/vdec/vdec.c 	core->dev = dev;
core              980 drivers/staging/media/meson/vdec/vdec.c 	platform_set_drvdata(pdev, core);
core              983 drivers/staging/media/meson/vdec/vdec.c 	core->dos_base = devm_ioremap_resource(dev, r);
core              984 drivers/staging/media/meson/vdec/vdec.c 	if (IS_ERR(core->dos_base)) {
core              986 drivers/staging/media/meson/vdec/vdec.c 		return PTR_ERR(core->dos_base);
core              990 drivers/staging/media/meson/vdec/vdec.c 	core->esparser_base = devm_ioremap_resource(dev, r);
core              991 drivers/staging/media/meson/vdec/vdec.c 	if (IS_ERR(core->esparser_base)) {
core              993 drivers/staging/media/meson/vdec/vdec.c 		return PTR_ERR(core->esparser_base);
core              996 drivers/staging/media/meson/vdec/vdec.c 	core->regmap_ao =
core              999 drivers/staging/media/meson/vdec/vdec.c 	if (IS_ERR(core->regmap_ao)) {
core             1001 drivers/staging/media/meson/vdec/vdec.c 		return PTR_ERR(core->regmap_ao);
core             1004 drivers/staging/media/meson/vdec/vdec.c 	core->canvas = meson_canvas_get(dev);
core             1005 drivers/staging/media/meson/vdec/vdec.c 	if (IS_ERR(core->canvas))
core             1006 drivers/staging/media/meson/vdec/vdec.c 		return PTR_ERR(core->canvas);
core             1008 drivers/staging/media/meson/vdec/vdec.c 	core->dos_parser_clk = devm_clk_get(dev, "dos_parser");
core             1009 drivers/staging/media/meson/vdec/vdec.c 	if (IS_ERR(core->dos_parser_clk))
core             1012 drivers/staging/media/meson/vdec/vdec.c 	core->dos_clk = devm_clk_get(dev, "dos");
core             1013 drivers/staging/media/meson/vdec/vdec.c 	if (IS_ERR(core->dos_clk))
core             1016 drivers/staging/media/meson/vdec/vdec.c 	core->vdec_1_clk = devm_clk_get(dev, "vdec_1");
core             1017 drivers/staging/media/meson/vdec/vdec.c 	if (IS_ERR(core->vdec_1_clk))
core             1020 drivers/staging/media/meson/vdec/vdec.c 	core->vdec_hevc_clk = devm_clk_get(dev, "vdec_hevc");
core             1021 drivers/staging/media/meson/vdec/vdec.c 	if (IS_ERR(core->vdec_hevc_clk))
core             1028 drivers/staging/media/meson/vdec/vdec.c 	ret = devm_request_threaded_irq(core->dev, irq, vdec_isr,
core             1030 drivers/staging/media/meson/vdec/vdec.c 					"vdec", core);
core             1034 drivers/staging/media/meson/vdec/vdec.c 	ret = esparser_init(pdev, core);
core             1038 drivers/staging/media/meson/vdec/vdec.c 	ret = v4l2_device_register(dev, &core->v4l2_dev);
core             1051 drivers/staging/media/meson/vdec/vdec.c 	core->platform = of_id->data;
core             1052 drivers/staging/media/meson/vdec/vdec.c 	core->vdev_dec = vdev;
core             1053 drivers/staging/media/meson/vdec/vdec.c 	core->dev_dec = dev;
core             1054 drivers/staging/media/meson/vdec/vdec.c 	mutex_init(&core->lock);
core             1061 drivers/staging/media/meson/vdec/vdec.c 	vdev->v4l2_dev = &core->v4l2_dev;
core             1062 drivers/staging/media/meson/vdec/vdec.c 	vdev->lock = &core->lock;
core             1065 drivers/staging/media/meson/vdec/vdec.c 	video_set_drvdata(vdev, core);
core             1082 drivers/staging/media/meson/vdec/vdec.c 	struct amvdec_core *core = platform_get_drvdata(pdev);
core             1084 drivers/staging/media/meson/vdec/vdec.c 	video_unregister_device(core->vdev_dec);
core              127 drivers/staging/media/meson/vdec/vdec.h 	int (*can_recycle)(struct amvdec_core *core);
core              128 drivers/staging/media/meson/vdec/vdec.h 	void (*recycle)(struct amvdec_core *core, u32 buf_idx);
core              212 drivers/staging/media/meson/vdec/vdec.h 	struct amvdec_core *core;
core               28 drivers/staging/media/meson/vdec/vdec_1.c 	struct amvdec_core *core = sess->core;
core               29 drivers/staging/media/meson/vdec/vdec_1.c 	struct device *dev = core->dev_dec;
core               47 drivers/staging/media/meson/vdec/vdec_1.c 	mc_addr = dma_alloc_coherent(core->dev, MC_SIZE,
core               56 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, MPSR, 0);
core               57 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, CPSR, 0);
core               59 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_clear_dos_bits(core, MDEC_PIC_DC_CTRL, BIT(31));
core               61 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, IMEM_DMA_ADR, mc_addr_map);
core               62 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, IMEM_DMA_COUNT, MC_SIZE / 4);
core               63 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, IMEM_DMA_CTRL, (0x8000 | (7 << 16)));
core               65 drivers/staging/media/meson/vdec/vdec_1.c 	while (--i && amvdec_read_dos(core, IMEM_DMA_CTRL) & 0x8000);
core               79 drivers/staging/media/meson/vdec/vdec_1.c 	dma_free_coherent(core->dev, MC_SIZE, mc_addr, mc_addr_map);
core               87 drivers/staging/media/meson/vdec/vdec_1.c 	struct amvdec_core *core = sess->core;
core               89 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, VLD_MEM_VIFIFO_CONTROL, 0);
core               90 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, VLD_MEM_VIFIFO_WRAP_COUNT, 0);
core               91 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, POWER_CTL_VLD, BIT(4));
core               93 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, VLD_MEM_VIFIFO_START_PTR, sess->vififo_paddr);
core               94 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, VLD_MEM_VIFIFO_CURR_PTR, sess->vififo_paddr);
core               95 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, VLD_MEM_VIFIFO_END_PTR,
core               98 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos_bits(core, VLD_MEM_VIFIFO_CONTROL, 1);
core               99 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_clear_dos_bits(core, VLD_MEM_VIFIFO_CONTROL, 1);
core              101 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, VLD_MEM_VIFIFO_BUF_CNTL, MEM_BUFCTRL_MANUAL);
core              102 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, VLD_MEM_VIFIFO_WP, sess->vififo_paddr);
core              104 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos_bits(core, VLD_MEM_VIFIFO_BUF_CNTL, 1);
core              105 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_clear_dos_bits(core, VLD_MEM_VIFIFO_BUF_CNTL, 1);
core              107 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos_bits(core, VLD_MEM_VIFIFO_CONTROL,
core              116 drivers/staging/media/meson/vdec/vdec_1.c 	struct amvdec_core *core = sess->core;
core              119 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, DOS_GEN_CTRL0, 0);
core              120 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, VLD_MEM_VIFIFO_BUF_CNTL, 1);
core              121 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_clear_dos_bits(core, VLD_MEM_VIFIFO_BUF_CNTL, 1);
core              126 drivers/staging/media/meson/vdec/vdec_1.c 	struct amvdec_core *core = sess->core;
core              128 drivers/staging/media/meson/vdec/vdec_1.c 	return amvdec_read_dos(core, VLD_MEM_VIFIFO_LEVEL);
core              133 drivers/staging/media/meson/vdec/vdec_1.c 	struct amvdec_core *core = sess->core;
core              136 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, MPSR, 0);
core              137 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, CPSR, 0);
core              138 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, ASSIST_MBOX1_MASK, 0);
core              140 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, DOS_SW_RESET0, BIT(12) | BIT(11));
core              141 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, DOS_SW_RESET0, 0);
core              142 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_read_dos(core, DOS_SW_RESET0);
core              145 drivers/staging/media/meson/vdec/vdec_1.c 	regmap_write(core->regmap_ao, AO_RTI_GEN_PWR_ISO0, 0xc0);
core              147 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, DOS_MEM_PD_VDEC, 0xffffffff);
core              149 drivers/staging/media/meson/vdec/vdec_1.c 	regmap_update_bits(core->regmap_ao, AO_RTI_GEN_PWR_SLEEP0,
core              152 drivers/staging/media/meson/vdec/vdec_1.c 	clk_disable_unprepare(core->vdec_1_clk);
core              163 drivers/staging/media/meson/vdec/vdec_1.c 	struct amvdec_core *core = sess->core;
core              167 drivers/staging/media/meson/vdec/vdec_1.c 	clk_set_rate(core->vdec_1_clk, 666666666);
core              168 drivers/staging/media/meson/vdec/vdec_1.c 	ret = clk_prepare_enable(core->vdec_1_clk);
core              173 drivers/staging/media/meson/vdec/vdec_1.c 	regmap_update_bits(core->regmap_ao, AO_RTI_GEN_PWR_SLEEP0,
core              178 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, DOS_SW_RESET0, 0xfffffffc);
core              179 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, DOS_SW_RESET0, 0x00000000);
core              181 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, DOS_GCLK_EN0, 0x3ff);
core              184 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, DOS_MEM_PD_VDEC, 0);
core              186 drivers/staging/media/meson/vdec/vdec_1.c 	regmap_write(core->regmap_ao, AO_RTI_GEN_PWR_ISO0, 0);
core              188 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, DOS_VDEC_MCRCC_STALL_CTRL, 0);
core              190 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, GCLK_EN, 0x3ff);
core              191 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_clear_dos_bits(core, MDEC_PIC_DC_CTRL, BIT(31));
core              204 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, ASSIST_MBOX1_CLR_REG, 1);
core              205 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, ASSIST_MBOX1_MASK, 1);
core              209 drivers/staging/media/meson/vdec/vdec_1.c 		amvdec_write_dos_bits(core, MDEC_PIC_DC_CTRL, BIT(17));
core              211 drivers/staging/media/meson/vdec/vdec_1.c 		amvdec_clear_dos_bits(core, MDEC_PIC_DC_CTRL, BIT(17));
core              214 drivers/staging/media/meson/vdec/vdec_1.c 	amvdec_write_dos(core, MPSR, 1);
core               17 drivers/staging/media/meson/vdec/vdec_helpers.c u32 amvdec_read_dos(struct amvdec_core *core, u32 reg)
core               19 drivers/staging/media/meson/vdec/vdec_helpers.c 	return readl_relaxed(core->dos_base + reg);
core               23 drivers/staging/media/meson/vdec/vdec_helpers.c void amvdec_write_dos(struct amvdec_core *core, u32 reg, u32 val)
core               25 drivers/staging/media/meson/vdec/vdec_helpers.c 	writel_relaxed(val, core->dos_base + reg);
core               29 drivers/staging/media/meson/vdec/vdec_helpers.c void amvdec_write_dos_bits(struct amvdec_core *core, u32 reg, u32 val)
core               31 drivers/staging/media/meson/vdec/vdec_helpers.c 	amvdec_write_dos(core, reg, amvdec_read_dos(core, reg) | val);
core               35 drivers/staging/media/meson/vdec/vdec_helpers.c void amvdec_clear_dos_bits(struct amvdec_core *core, u32 reg, u32 val)
core               37 drivers/staging/media/meson/vdec/vdec_helpers.c 	amvdec_write_dos(core, reg, amvdec_read_dos(core, reg) & ~val);
core               41 drivers/staging/media/meson/vdec/vdec_helpers.c u32 amvdec_read_parser(struct amvdec_core *core, u32 reg)
core               43 drivers/staging/media/meson/vdec/vdec_helpers.c 	return readl_relaxed(core->esparser_base + reg);
core               47 drivers/staging/media/meson/vdec/vdec_helpers.c void amvdec_write_parser(struct amvdec_core *core, u32 reg, u32 val)
core               49 drivers/staging/media/meson/vdec/vdec_helpers.c 	writel_relaxed(val, core->esparser_base + reg);
core               58 drivers/staging/media/meson/vdec/vdec_helpers.c 		dev_err(sess->core->dev, "Reached max number of canvas\n");
core               62 drivers/staging/media/meson/vdec/vdec_helpers.c 	ret = meson_canvas_alloc(sess->core->canvas, canvas_id);
core               74 drivers/staging/media/meson/vdec/vdec_helpers.c 	struct amvdec_core *core = sess->core;
core               89 drivers/staging/media/meson/vdec/vdec_helpers.c 	meson_canvas_config(core->canvas, canvas_id[0], buf_paddr[0],
core               95 drivers/staging/media/meson/vdec/vdec_helpers.c 	meson_canvas_config(core->canvas, canvas_id[1], buf_paddr[1],
core              101 drivers/staging/media/meson/vdec/vdec_helpers.c 	meson_canvas_config(core->canvas, canvas_id[2], buf_paddr[2],
core              106 drivers/staging/media/meson/vdec/vdec_helpers.c 	amvdec_write_dos(core, reg,
core              118 drivers/staging/media/meson/vdec/vdec_helpers.c 	struct amvdec_core *core = sess->core;
core              133 drivers/staging/media/meson/vdec/vdec_helpers.c 	meson_canvas_config(core->canvas, canvas_id[0], buf_paddr[0],
core              139 drivers/staging/media/meson/vdec/vdec_helpers.c 	meson_canvas_config(core->canvas, canvas_id[1], buf_paddr[1],
core              144 drivers/staging/media/meson/vdec/vdec_helpers.c 	amvdec_write_dos(core, reg,
core              185 drivers/staging/media/meson/vdec/vdec_helpers.c 			dev_err(sess->core->dev, "Unsupported pixfmt %08X\n",
core              244 drivers/staging/media/meson/vdec/vdec_helpers.c 	dev_warn(sess->core->dev_dec,
core              257 drivers/staging/media/meson/vdec/vdec_helpers.c 	struct device *dev = sess->core->dev_dec;
core              297 drivers/staging/media/meson/vdec/vdec_helpers.c 	struct device *dev = sess->core->dev_dec;
core              328 drivers/staging/media/meson/vdec/vdec_helpers.c 	struct device *dev = sess->core->dev_dec;
core              382 drivers/staging/media/meson/vdec/vdec_helpers.c 	struct device *dev = sess->core->dev_dec;
core              437 drivers/staging/media/meson/vdec/vdec_helpers.c 	dev_dbg(sess->core->dev, "Res. changed (%ux%u), DPB size %u\n",
core              445 drivers/staging/media/meson/vdec/vdec_helpers.c 	dev_info(sess->core->dev, "Aborting decoding session!\n");
core               23 drivers/staging/media/meson/vdec/vdec_helpers.h u32 amvdec_read_dos(struct amvdec_core *core, u32 reg);
core               24 drivers/staging/media/meson/vdec/vdec_helpers.h void amvdec_write_dos(struct amvdec_core *core, u32 reg, u32 val);
core               25 drivers/staging/media/meson/vdec/vdec_helpers.h void amvdec_write_dos_bits(struct amvdec_core *core, u32 reg, u32 val);
core               26 drivers/staging/media/meson/vdec/vdec_helpers.h void amvdec_clear_dos_bits(struct amvdec_core *core, u32 reg, u32 val);
core               27 drivers/staging/media/meson/vdec/vdec_helpers.h u32 amvdec_read_parser(struct amvdec_core *core, u32 reg);
core               28 drivers/staging/media/meson/vdec/vdec_helpers.h void amvdec_write_parser(struct amvdec_core *core, u32 reg, u32 val);
core              286 drivers/staging/media/soc_camera/imx074.c 	.core	= &imx074_subdev_core_ops,
core              743 drivers/staging/media/soc_camera/mt9t031.c 	.core	= &mt9t031_subdev_core_ops,
core              152 drivers/staging/media/soc_camera/soc_camera.c 	ret = v4l2_subdev_call(sd, core, s_power, 1);
core              164 drivers/staging/media/soc_camera/soc_camera.c 	ret = v4l2_subdev_call(sd, core, s_power, 0);
core              875 drivers/staging/media/soc_camera/soc_mt9v022.c 	.core	= &mt9v022_subdev_core_ops,
core              964 drivers/staging/media/soc_camera/soc_ov5642.c 	.core	= &ov5642_subdev_core_ops,
core              909 drivers/staging/media/soc_camera/soc_ov9740.c 	.core	= &ov9740_core_ops,
core             1320 drivers/staging/octeon/octeon-stubs.h static inline int cvmx_pko_get_base_queue_per_core(int port, int core)
core               41 drivers/usb/host/bcma-hcd.c 	struct bcma_device *core;
core              181 drivers/usb/host/bcma-hcd.c 	struct bcma_device *core = usb_dev->core;
core              182 drivers/usb/host/bcma-hcd.c 	struct device *dev = &core->dev;
core              186 drivers/usb/host/bcma-hcd.c 	if (core->id.rev < 5)
core              189 drivers/usb/host/bcma-hcd.c 	pmu_core = bcma_find_core(core->bus, BCMA_CORE_PMU);
core              196 drivers/usb/host/bcma-hcd.c 	bcma_awrite32(core, BCMA_IOCTL, BCMA_IOCTL_CLK | BCMA_IOCTL_FGC);
core              198 drivers/usb/host/bcma-hcd.c 	bcma_awrite32(core, BCMA_RESET_CTL, BCMA_RESET_CTL_RESET);
core              200 drivers/usb/host/bcma-hcd.c 	bcma_awrite32(core, BCMA_RESET_CTL, 0);
core              202 drivers/usb/host/bcma-hcd.c 	bcma_awrite32(core, BCMA_IOCTL, BCMA_IOCTL_CLK);
core              206 drivers/usb/host/bcma-hcd.c 	bcma_write32(core, BCMA_CLKCTLST, BCMA_CLKCTLST_FORCEHT |
core              211 drivers/usb/host/bcma-hcd.c 	bcma_write32(core, 0x510, 0xc7f85000);
core              212 drivers/usb/host/bcma-hcd.c 	bcma_write32(core, 0x510, 0xc7f85003);
core              225 drivers/usb/host/bcma-hcd.c 	bcma_write32(core, 0x510, 0x7f8d007);
core              229 drivers/usb/host/bcma-hcd.c 	bcma_write32(core, 0x200, 0x4ff);
core              231 drivers/usb/host/bcma-hcd.c 	bcma_write32(core, 0x200, 0x6ff);
core              233 drivers/usb/host/bcma-hcd.c 	bcma_write32(core, 0x200, 0x7ff);
core              269 drivers/usb/host/bcma-hcd.c 	struct bcma_device *core = bcma_hcd->core;
core              270 drivers/usb/host/bcma-hcd.c 	struct bcma_chipinfo *ci = &core->bus->chipinfo;
core              271 drivers/usb/host/bcma-hcd.c 	struct device *dev = &core->dev;
core              273 drivers/usb/host/bcma-hcd.c 	bcma_core_enable(core, 0);
core              277 drivers/usb/host/bcma-hcd.c 		bcma_hcd_usb20_ns_init_hc(core);
core              346 drivers/usb/host/bcma-hcd.c 	struct bcma_device *dev = usb_dev->core;
core              386 drivers/usb/host/bcma-hcd.c 	struct bcma_device *core = bcma_hcd->core;
core              387 drivers/usb/host/bcma-hcd.c 	struct device *dev = &core->dev;
core              389 drivers/usb/host/bcma-hcd.c 	bcma_core_enable(core, 0);
core              396 drivers/usb/host/bcma-hcd.c static int bcma_hcd_probe(struct bcma_device *core)
core              403 drivers/usb/host/bcma-hcd.c 	usb_dev = devm_kzalloc(&core->dev, sizeof(struct bcma_hcd_device),
core              407 drivers/usb/host/bcma-hcd.c 	usb_dev->core = core;
core              409 drivers/usb/host/bcma-hcd.c 	if (core->dev.of_node)
core              410 drivers/usb/host/bcma-hcd.c 		usb_dev->gpio_desc = devm_gpiod_get(&core->dev, "vcc",
core              413 drivers/usb/host/bcma-hcd.c 	switch (core->id.id) {
core              434 drivers/usb/host/bcma-hcd.c 	bcma_set_drvdata(core, usb_dev);
core               99 drivers/usb/host/ehci-ps3.c 		dev_dbg(&dev->core, "%s:%d: ps3_open_hv_device failed\n",
core              107 drivers/usb/host/ehci-ps3.c 		dev_dbg(&dev->core, "%s:%d: ps3_dma_region_create failed: "
core              116 drivers/usb/host/ehci-ps3.c 		dev_dbg(&dev->core, "%s:%d: ps3_map_mmio_region failed\n",
core              122 drivers/usb/host/ehci-ps3.c 	dev_dbg(&dev->core, "%s:%d: mmio mapped_addr %lxh\n", __func__,
core              128 drivers/usb/host/ehci-ps3.c 		dev_dbg(&dev->core, "%s:%d: ps3_construct_io_irq(%d) failed.\n",
core              135 drivers/usb/host/ehci-ps3.c 	dev->core.dma_mask = &dummy_mask;
core              136 drivers/usb/host/ehci-ps3.c 	dma_set_coherent_mask(&dev->core, dummy_mask);
core              138 drivers/usb/host/ehci-ps3.c 	hcd = usb_create_hcd(&ps3_ehci_hc_driver, &dev->core, dev_name(&dev->core));
core              141 drivers/usb/host/ehci-ps3.c 		dev_dbg(&dev->core, "%s:%d: usb_create_hcd failed\n", __func__,
core              151 drivers/usb/host/ehci-ps3.c 		dev_dbg(&dev->core, "%s:%d: request_mem_region failed\n",
core              157 drivers/usb/host/ehci-ps3.c 		dev_dbg(&dev->core, "%s:%d: ioremap failed\n", __func__,
core              163 drivers/usb/host/ehci-ps3.c 	dev_dbg(&dev->core, "%s:%d: hcd->rsrc_start %lxh\n", __func__, __LINE__,
core              165 drivers/usb/host/ehci-ps3.c 	dev_dbg(&dev->core, "%s:%d: hcd->rsrc_len   %lxh\n", __func__, __LINE__,
core              167 drivers/usb/host/ehci-ps3.c 	dev_dbg(&dev->core, "%s:%d: hcd->regs       %lxh\n", __func__, __LINE__,
core              169 drivers/usb/host/ehci-ps3.c 	dev_dbg(&dev->core, "%s:%d: virq            %lu\n", __func__, __LINE__,
core              177 drivers/usb/host/ehci-ps3.c 		dev_dbg(&dev->core, "%s:%d: usb_add_hcd failed (%d)\n",
core              210 drivers/usb/host/ehci-ps3.c 	dev_dbg(&dev->core, "%s:%d: regs %p\n", __func__, __LINE__, hcd->regs);
core              211 drivers/usb/host/ehci-ps3.c 	dev_dbg(&dev->core, "%s:%d: irq %u\n", __func__, __LINE__, hcd->irq);
core              250 drivers/usb/host/ehci-ps3.c 	.core.name = "ps3-ehci-driver",
core              251 drivers/usb/host/ehci-ps3.c 	.core.owner = THIS_MODULE,
core               82 drivers/usb/host/ohci-ps3.c 		dev_dbg(&dev->core, "%s:%d: ps3_open_hv_device failed: %s\n",
core               91 drivers/usb/host/ohci-ps3.c 		dev_dbg(&dev->core, "%s:%d: ps3_dma_region_create failed: "
core              100 drivers/usb/host/ohci-ps3.c 		dev_dbg(&dev->core, "%s:%d: ps3_map_mmio_region failed\n",
core              106 drivers/usb/host/ohci-ps3.c 	dev_dbg(&dev->core, "%s:%d: mmio mapped_addr %lxh\n", __func__,
core              112 drivers/usb/host/ohci-ps3.c 		dev_dbg(&dev->core, "%s:%d: ps3_construct_io_irq(%d) failed.\n",
core              119 drivers/usb/host/ohci-ps3.c 	dev->core.dma_mask = &dummy_mask;
core              120 drivers/usb/host/ohci-ps3.c 	dma_set_coherent_mask(&dev->core, dummy_mask);
core              122 drivers/usb/host/ohci-ps3.c 	hcd = usb_create_hcd(&ps3_ohci_hc_driver, &dev->core, dev_name(&dev->core));
core              125 drivers/usb/host/ohci-ps3.c 		dev_dbg(&dev->core, "%s:%d: usb_create_hcd failed\n", __func__,
core              135 drivers/usb/host/ohci-ps3.c 		dev_dbg(&dev->core, "%s:%d: request_mem_region failed\n",
core              141 drivers/usb/host/ohci-ps3.c 		dev_dbg(&dev->core, "%s:%d: ioremap failed\n", __func__,
core              147 drivers/usb/host/ohci-ps3.c 	dev_dbg(&dev->core, "%s:%d: hcd->rsrc_start %lxh\n", __func__, __LINE__,
core              149 drivers/usb/host/ohci-ps3.c 	dev_dbg(&dev->core, "%s:%d: hcd->rsrc_len   %lxh\n", __func__, __LINE__,
core              151 drivers/usb/host/ohci-ps3.c 	dev_dbg(&dev->core, "%s:%d: hcd->regs       %lxh\n", __func__, __LINE__,
core              153 drivers/usb/host/ohci-ps3.c 	dev_dbg(&dev->core, "%s:%d: virq            %lu\n", __func__, __LINE__,
core              161 drivers/usb/host/ohci-ps3.c 		dev_dbg(&dev->core, "%s:%d: usb_add_hcd failed (%d)\n",
core              194 drivers/usb/host/ohci-ps3.c 	dev_dbg(&dev->core, "%s:%d: regs %p\n", __func__, __LINE__, hcd->regs);
core              195 drivers/usb/host/ohci-ps3.c 	dev_dbg(&dev->core, "%s:%d: irq %u\n", __func__, __LINE__, hcd->irq);
core              235 drivers/usb/host/ohci-ps3.c 	.core.name = "ps3-ohci-driver",
core              236 drivers/usb/host/ohci-ps3.c 	.core.owner = THIS_MODULE,
core               36 drivers/video/fbdev/omap2/omapfb/dss/core.c } core;
core               44 drivers/video/fbdev/omap2/omapfb/dss/core.c 	return core.default_display_name;
core               50 drivers/video/fbdev/omap2/omapfb/dss/core.c 	struct omap_dss_board_info *pdata = core.pdev->dev.platform_data;
core               57 drivers/video/fbdev/omap2/omapfb/dss/core.c 	return core.pdev;
core               62 drivers/video/fbdev/omap2/omapfb/dss/core.c 	struct omap_dss_board_info *board_data = core.pdev->dev.platform_data;
core               72 drivers/video/fbdev/omap2/omapfb/dss/core.c 	struct omap_dss_board_info *board_data = core.pdev->dev.platform_data;
core               82 drivers/video/fbdev/omap2/omapfb/dss/core.c 	struct omap_dss_board_info *pdata = core.pdev->dev.platform_data;
core              160 drivers/video/fbdev/omap2/omapfb/dss/core.c 	core.pdev = pdev;
core              167 drivers/video/fbdev/omap2/omapfb/dss/core.c 		core.default_display_name = def_disp_name;
core              337 drivers/video/fbdev/omap2/omapfb/dss/hdmi.h 	struct hdmi_core_data	core;
core              188 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	hdmi4_configure(&hdmi.core, &hdmi.wp, &hdmi.cfg);
core              280 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	hdmi4_core_dump(&hdmi.core, s);
core              295 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = hdmi4_read_edid(&hdmi.core,  buf, len);
core              306 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	hdmi4_audio_start(&hd->core, &hd->wp);
core              311 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	hdmi4_audio_stop(&hd->core, &hd->wp);
core              338 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 		r = hdmi4_audio_config(&hdmi.core, &hdmi.wp, &hdmi.audio_config,
core              632 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	ret = hdmi4_audio_config(&hd->core, &hd->wp, dss_audio,
core              699 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = hdmi4_core_init(pdev, &hdmi.core);
core               31 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c static inline void __iomem *hdmi_av_base(struct hdmi_core_data *core)
core               33 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	return core->base + HDMI_CORE_AV;
core               36 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c static int hdmi_core_ddc_init(struct hdmi_core_data *core)
core               38 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	void __iomem *base = core->base;
core               78 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c static int hdmi_core_ddc_edid(struct hdmi_core_data *core,
core               81 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	void __iomem *base = core->base;
core              160 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c int hdmi4_read_edid(struct hdmi_core_data *core, u8 *edid, int len)
core              167 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = hdmi_core_ddc_init(core);
core              171 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = hdmi_core_ddc_edid(core, edid, 0);
core              178 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 		r = hdmi_core_ddc_edid(core, edid + 0x80, 1);
core              200 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c static void hdmi_core_powerdown_disable(struct hdmi_core_data *core)
core              203 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	REG_FLD_MOD(core->base, HDMI_CORE_SYS_SYS_CTRL1, 0x0, 0, 0);
core              206 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c static void hdmi_core_swreset_release(struct hdmi_core_data *core)
core              209 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	REG_FLD_MOD(core->base, HDMI_CORE_SYS_SRST, 0x0, 0, 0);
core              212 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c static void hdmi_core_swreset_assert(struct hdmi_core_data *core)
core              215 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	REG_FLD_MOD(core->base, HDMI_CORE_SYS_SRST, 0x1, 0, 0);
core              219 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c static void hdmi_core_video_config(struct hdmi_core_data *core,
core              223 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	void __iomem *core_sys_base = core->base;
core              224 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	void __iomem *core_av_base = hdmi_av_base(core);
core              262 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c static void hdmi_core_write_avi_infoframe(struct hdmi_core_data *core,
core              265 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	void __iomem *av_base = hdmi_av_base(core);
core              280 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c static void hdmi_core_av_packet_config(struct hdmi_core_data *core,
core              284 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	hdmi_write_reg(hdmi_av_base(core), HDMI_CORE_AV_PB_CTRL1,
core              291 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	hdmi_write_reg(hdmi_av_base(core), HDMI_CORE_AV_PB_CTRL2,
core              298 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c void hdmi4_configure(struct hdmi_core_data *core,
core              325 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	hdmi_core_swreset_assert(core);
core              328 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	hdmi_core_powerdown_disable(core);
core              333 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	hdmi_core_video_config(core, &v_core_cfg);
core              336 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	hdmi_core_swreset_release(core);
core              339 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 		hdmi_core_write_avi_infoframe(core, &cfg->infoframe);
core              349 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	hdmi_core_av_packet_config(core, repeat_cfg);
core              352 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c void hdmi4_core_dump(struct hdmi_core_data *core, struct seq_file *s)
core              358 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 		hdmi_read_reg(core->base, r))
core              360 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 		hdmi_read_reg(hdmi_av_base(core), r))
core              363 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 		hdmi_read_reg(hdmi_av_base(core), CORE_REG(i, r)))
core              520 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c static void hdmi_core_audio_config(struct hdmi_core_data *core,
core              524 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	void __iomem *av_base = hdmi_av_base(core);
core              619 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c static void hdmi_core_audio_infoframe_cfg(struct hdmi_core_data *core,
core              623 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	void __iomem *av_base = hdmi_av_base(core);
core              676 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c int hdmi4_audio_config(struct hdmi_core_data *core, struct hdmi_wp_data *wp,
core              686 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	if (!audio || !audio->iec || !audio->cea || !core)
core              850 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	hdmi_core_audio_config(core, &acore);
core              853 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	hdmi_core_audio_infoframe_cfg(core, audio->cea);
core              858 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c int hdmi4_audio_start(struct hdmi_core_data *core, struct hdmi_wp_data *wp)
core              860 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	REG_FLD_MOD(hdmi_av_base(core),
core              868 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c void hdmi4_audio_stop(struct hdmi_core_data *core, struct hdmi_wp_data *wp)
core              870 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	REG_FLD_MOD(hdmi_av_base(core),
core              876 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c int hdmi4_core_init(struct platform_device *pdev, struct hdmi_core_data *core)
core              886 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	core->base = devm_ioremap_resource(&pdev->dev, res);
core              887 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	if (IS_ERR(core->base)) {
core              889 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 		return PTR_ERR(core->base);
core              252 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.h int hdmi4_read_edid(struct hdmi_core_data *core, u8 *edid, int len);
core              253 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.h void hdmi4_configure(struct hdmi_core_data *core, struct hdmi_wp_data *wp,
core              255 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.h void hdmi4_core_dump(struct hdmi_core_data *core, struct seq_file *s);
core              256 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.h int hdmi4_core_init(struct platform_device *pdev, struct hdmi_core_data *core);
core              258 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.h int hdmi4_audio_start(struct hdmi_core_data *core, struct hdmi_wp_data *wp);
core              259 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.h void hdmi4_audio_stop(struct hdmi_core_data *core, struct hdmi_wp_data *wp);
core              260 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.h int hdmi4_audio_config(struct hdmi_core_data *core, struct hdmi_wp_data *wp,
core              205 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	hdmi5_configure(&hdmi.core, &hdmi.wp, &hdmi.cfg);
core              301 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	hdmi5_core_dump(&hdmi.core, s);
core              321 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = hdmi5_read_edid(&hdmi.core,  buf, len);
core              368 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 		r = hdmi5_audio_config(&hdmi.core, &hdmi.wp, &hdmi.audio_config,
core              662 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	ret = hdmi5_audio_config(&hd->core, &hd->wp, dss_audio,
core              738 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = hdmi5_core_init(pdev, &hdmi.core);
core               39 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c static void hdmi_core_ddc_init(struct hdmi_core_data *core)
core               41 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	void __iomem *base = core->base;
core              118 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c static void hdmi_core_ddc_uninit(struct hdmi_core_data *core)
core              120 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	void __iomem *base = core->base;
core              128 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c static int hdmi_core_ddc_edid(struct hdmi_core_data *core, u8 *pedid, u8 ext)
core              130 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	void __iomem *base = core->base;
core              188 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c int hdmi5_read_edid(struct hdmi_core_data *core, u8 *edid, int len)
core              196 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	hdmi_core_ddc_init(core);
core              198 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	r = hdmi_core_ddc_edid(core, edid, 0);
core              208 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 		r = hdmi_core_ddc_edid(core, edid + i * EDID_LENGTH, i);
core              214 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	hdmi_core_ddc_uninit(core);
core              219 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c void hdmi5_core_dump(struct hdmi_core_data *core, struct seq_file *s)
core              223 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 		hdmi_read_reg(core->base, r))
core              306 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c static void hdmi_core_video_config(struct hdmi_core_data *core,
core              309 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	void __iomem *base = core->base;
core              371 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c static void hdmi_core_config_video_packetizer(struct hdmi_core_data *core)
core              373 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	void __iomem *base = core->base;
core              392 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c static void hdmi_core_config_csc(struct hdmi_core_data *core)
core              397 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	REG_FLD_MOD(core->base, HDMI_CORE_CSC_SCALE, clr_depth, 7, 4);
core              400 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c static void hdmi_core_config_video_sampler(struct hdmi_core_data *core)
core              405 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	REG_FLD_MOD(core->base, HDMI_CORE_TX_INVID0, video_mapping, 4, 0);
core              408 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c static void hdmi_core_write_avi_infoframe(struct hdmi_core_data *core,
core              411 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	void __iomem *base = core->base;
core              464 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c static void hdmi_core_csc_config(struct hdmi_core_data *core,
core              467 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	void __iomem *base = core->base;
core              497 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c static void hdmi_core_configure_range(struct hdmi_core_data *core)
core              504 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	hdmi_core_csc_config(core, csc_coeff);
core              507 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c static void hdmi_core_enable_video_path(struct hdmi_core_data *core)
core              509 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	void __iomem *base = core->base;
core              523 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c static void hdmi_core_mask_interrupts(struct hdmi_core_data *core)
core              525 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	void __iomem *base = core->base;
core              566 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c static void hdmi_core_enable_interrupts(struct hdmi_core_data *core)
core              569 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	REG_FLD_MOD(core->base, HDMI_CORE_IH_MUTE, 0x0, 1, 0);
core              572 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c int hdmi5_core_handle_irqs(struct hdmi_core_data *core)
core              574 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	void __iomem *base = core->base;
core              589 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c void hdmi5_configure(struct hdmi_core_data *core, struct hdmi_wp_data *wp,
core              596 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	hdmi_core_mask_interrupts(core);
core              612 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	hdmi_core_configure_range(core);
core              620 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	hdmi_core_video_config(core, &v_core_cfg);
core              622 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	hdmi_core_config_video_packetizer(core);
core              623 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	hdmi_core_config_csc(core);
core              624 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	hdmi_core_config_video_sampler(core);
core              627 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 		hdmi_core_write_avi_infoframe(core, &cfg->infoframe);
core              629 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	hdmi_core_enable_video_path(core);
core              631 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	hdmi_core_enable_interrupts(core);
core              634 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c static void hdmi5_core_audio_config(struct hdmi_core_data *core,
core              637 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	void __iomem *base = core->base;
core              770 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c static void hdmi5_core_audio_infoframe_cfg(struct hdmi_core_data *core,
core              773 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	void __iomem *base = core->base;
core              787 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c int hdmi5_audio_config(struct hdmi_core_data *core, struct hdmi_wp_data *wp,
core              797 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	if (!audio || !audio->iec || !audio->cea || !core)
core              880 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	hdmi5_core_audio_config(core, &core_cfg);
core              883 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	hdmi5_core_audio_infoframe_cfg(core, audio->cea);
core              888 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c int hdmi5_core_init(struct platform_device *pdev, struct hdmi_core_data *core)
core              898 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	core->base = devm_ioremap_resource(&pdev->dev, res);
core              899 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	if (IS_ERR(core->base)) {
core              901 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 		return PTR_ERR(core->base);
core              284 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.h int hdmi5_read_edid(struct hdmi_core_data *core, u8 *edid, int len);
core              285 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.h void hdmi5_core_dump(struct hdmi_core_data *core, struct seq_file *s);
core              286 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.h int hdmi5_core_handle_irqs(struct hdmi_core_data *core);
core              287 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.h void hdmi5_configure(struct hdmi_core_data *core, struct hdmi_wp_data *wp,
core              289 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.h int hdmi5_core_init(struct platform_device *pdev, struct hdmi_core_data *core);
core              291 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.h int hdmi5_audio_config(struct hdmi_core_data *core, struct hdmi_wp_data *wp,
core              980 drivers/video/fbdev/ps3fb.c 		dev_err(&dev->core, "%s: Not enough video memory\n", __func__);
core              986 drivers/video/fbdev/ps3fb.c 		dev_err(&dev->core, "%s: ps3_open_hv_device failed\n",
core              993 drivers/video/fbdev/ps3fb.c 	dev_dbg(&dev->core, "ps3fb_mode: %d\n", ps3fb_mode);
core             1002 drivers/video/fbdev/ps3fb.c 		dev_err(&dev->core, "%s: lv1_gpu_display_sync failed: %d\n",
core             1011 drivers/video/fbdev/ps3fb.c 		dev_err(&dev->core, "%s: lv1_gpu_display_sync failed: %d\n",
core             1020 drivers/video/fbdev/ps3fb.c 		dev_info(&dev->core, "Limiting ps3fb mem size to %lu bytes\n",
core             1029 drivers/video/fbdev/ps3fb.c 		dev_err(&dev->core, "%s: lv1_gpu_memory_allocate failed: %d\n",
core             1034 drivers/video/fbdev/ps3fb.c 	dev_dbg(&dev->core, "ddr:lpar:0x%llx\n", ddr_lpar);
core             1041 drivers/video/fbdev/ps3fb.c 		dev_err(&dev->core,
core             1051 drivers/video/fbdev/ps3fb.c 		dev_err(&dev->core, "%s: ioremap failed\n", __func__);
core             1057 drivers/video/fbdev/ps3fb.c 	dev_dbg(&dev->core, "version_driver:%x\n", dinfo->version_driver);
core             1058 drivers/video/fbdev/ps3fb.c 	dev_dbg(&dev->core, "irq outlet:%x\n", dinfo->irq.irq_outlet);
core             1059 drivers/video/fbdev/ps3fb.c 	dev_dbg(&dev->core, "version_gpu: %x memory_size: %x ch: %x "
core             1066 drivers/video/fbdev/ps3fb.c 		dev_err(&dev->core, "%s: version_driver err:%x\n", __func__,
core             1075 drivers/video/fbdev/ps3fb.c 		dev_err(&dev->core, "%s: ps3_alloc_irq failed %d\n", __func__,
core             1081 drivers/video/fbdev/ps3fb.c 			     0, DEVICE_NAME, &dev->core);
core             1083 drivers/video/fbdev/ps3fb.c 		dev_err(&dev->core, "%s: request_irq failed %d\n", __func__,
core             1101 drivers/video/fbdev/ps3fb.c 		dev_err(&dev->core, "%s: lv1_gpu_context_iomap failed: %d\n",
core             1107 drivers/video/fbdev/ps3fb.c 	dev_dbg(&dev->core, "video:%p ioif:%lx lpar:%llx size:%lx\n",
core             1114 drivers/video/fbdev/ps3fb.c 		dev_err(&dev->core, "%s: lv1_gpu_fb_setup failed: %d\n",
core             1120 drivers/video/fbdev/ps3fb.c 	info = framebuffer_alloc(sizeof(struct ps3fb_par), &dev->core);
core             1195 drivers/video/fbdev/ps3fb.c 	free_irq(ps3fb.irq_no, &dev->core);
core             1215 drivers/video/fbdev/ps3fb.c 	dev_dbg(&dev->core, " -> %s:%d\n", __func__, __LINE__);
core             1226 drivers/video/fbdev/ps3fb.c 		free_irq(ps3fb.irq_no, &dev->core);
core             1242 drivers/video/fbdev/ps3fb.c 	dev_dbg(&dev->core, " <- %s:%d\n", __func__, __LINE__);
core             1250 drivers/video/fbdev/ps3fb.c 	.core.name	= DEVICE_NAME,
core             1251 drivers/video/fbdev/ps3fb.c 	.core.owner	= THIS_MODULE,
core              132 drivers/watchdog/octeon-wdt-main.c 	unsigned int core = cpu2core(cpu);
core              138 drivers/watchdog/octeon-wdt-main.c 			cvmx_write_csr_node(node, CVMX_CIU_PP_POKEX(core), 1);
core              147 drivers/watchdog/octeon-wdt-main.c 		cvmx_write_csr_node(node, CVMX_CIU_PP_POKEX(core), 1);
core              324 drivers/watchdog/octeon-wdt-main.c 	unsigned int core;
core              328 drivers/watchdog/octeon-wdt-main.c 	core = cpu2core(cpu);
core              333 drivers/watchdog/octeon-wdt-main.c 	cvmx_write_csr_node(node, CVMX_CIU_PP_POKEX(core), 1);
core              337 drivers/watchdog/octeon-wdt-main.c 	cvmx_write_csr_node(node, CVMX_CIU_WDOGX(core), ciu_wdog.u64);
core              345 drivers/watchdog/octeon-wdt-main.c 	unsigned int core;
core              352 drivers/watchdog/octeon-wdt-main.c 	core = cpu2core(cpu);
core              355 drivers/watchdog/octeon-wdt-main.c 	octeon_wdt_bootvector[core].target_ptr = (u64)octeon_wdt_nmi_stage2;
core              359 drivers/watchdog/octeon-wdt-main.c 	cvmx_write_csr_node(node, CVMX_CIU_WDOGX(core), ciu_wdog.u64);
core              368 drivers/watchdog/octeon-wdt-main.c 		hwirq = WD_BLOCK_NUMBER << 12 | 0x200 | core;
core              373 drivers/watchdog/octeon-wdt-main.c 		irq = OCTEON_IRQ_WDOG0 + core;
core              391 drivers/watchdog/octeon-wdt-main.c 	cvmx_write_csr_node(node, CVMX_CIU_PP_POKEX(core), 1);
core              397 drivers/watchdog/octeon-wdt-main.c 	cvmx_write_csr_node(node, CVMX_CIU_WDOGX(core), ciu_wdog.u64);
core              137 include/crypto/drbg.h 	const struct drbg_core *core;
core              144 include/crypto/drbg.h 	if (drbg && drbg->core)
core              145 include/crypto/drbg.h 		return drbg->core->statelen;
core              151 include/crypto/drbg.h 	if (drbg && drbg->core)
core              152 include/crypto/drbg.h 		return drbg->core->blocklen_bytes;
core              158 include/crypto/drbg.h 	if (drbg && drbg->core)
core              159 include/crypto/drbg.h 		return (drbg->core->statelen - drbg->core->blocklen_bytes);
core               44 include/linux/bcma/bcma.h 	u8 (*read8)(struct bcma_device *core, u16 offset);
core               45 include/linux/bcma/bcma.h 	u16 (*read16)(struct bcma_device *core, u16 offset);
core               46 include/linux/bcma/bcma.h 	u32 (*read32)(struct bcma_device *core, u16 offset);
core               47 include/linux/bcma/bcma.h 	void (*write8)(struct bcma_device *core, u16 offset, u8 value);
core               48 include/linux/bcma/bcma.h 	void (*write16)(struct bcma_device *core, u16 offset, u16 value);
core               49 include/linux/bcma/bcma.h 	void (*write32)(struct bcma_device *core, u16 offset, u32 value);
core               51 include/linux/bcma/bcma.h 	void (*block_read)(struct bcma_device *core, void *buffer,
core               53 include/linux/bcma/bcma.h 	void (*block_write)(struct bcma_device *core, const void *buffer,
core               57 include/linux/bcma/bcma.h 	u32 (*aread32)(struct bcma_device *core, u16 offset);
core               58 include/linux/bcma/bcma.h 	void (*awrite32)(struct bcma_device *core, u16 offset, u32 value);
core              291 include/linux/bcma/bcma.h static inline void *bcma_get_drvdata(struct bcma_device *core)
core              293 include/linux/bcma/bcma.h 	return core->drvdata;
core              295 include/linux/bcma/bcma.h static inline void bcma_set_drvdata(struct bcma_device *core, void *drvdata)
core              297 include/linux/bcma/bcma.h 	core->drvdata = drvdata;
core              367 include/linux/bcma/bcma.h static inline u32 bcma_read8(struct bcma_device *core, u16 offset)
core              369 include/linux/bcma/bcma.h 	return core->bus->ops->read8(core, offset);
core              371 include/linux/bcma/bcma.h static inline u32 bcma_read16(struct bcma_device *core, u16 offset)
core              373 include/linux/bcma/bcma.h 	return core->bus->ops->read16(core, offset);
core              375 include/linux/bcma/bcma.h static inline u32 bcma_read32(struct bcma_device *core, u16 offset)
core              377 include/linux/bcma/bcma.h 	return core->bus->ops->read32(core, offset);
core              380 include/linux/bcma/bcma.h void bcma_write8(struct bcma_device *core, u16 offset, u32 value)
core              382 include/linux/bcma/bcma.h 	core->bus->ops->write8(core, offset, value);
core              385 include/linux/bcma/bcma.h void bcma_write16(struct bcma_device *core, u16 offset, u32 value)
core              387 include/linux/bcma/bcma.h 	core->bus->ops->write16(core, offset, value);
core              390 include/linux/bcma/bcma.h void bcma_write32(struct bcma_device *core, u16 offset, u32 value)
core              392 include/linux/bcma/bcma.h 	core->bus->ops->write32(core, offset, value);
core              395 include/linux/bcma/bcma.h static inline void bcma_block_read(struct bcma_device *core, void *buffer,
core              398 include/linux/bcma/bcma.h 	core->bus->ops->block_read(core, buffer, count, offset, reg_width);
core              400 include/linux/bcma/bcma.h static inline void bcma_block_write(struct bcma_device *core,
core              404 include/linux/bcma/bcma.h 	core->bus->ops->block_write(core, buffer, count, offset, reg_width);
core              407 include/linux/bcma/bcma.h static inline u32 bcma_aread32(struct bcma_device *core, u16 offset)
core              409 include/linux/bcma/bcma.h 	return core->bus->ops->aread32(core, offset);
core              412 include/linux/bcma/bcma.h void bcma_awrite32(struct bcma_device *core, u16 offset, u32 value)
core              414 include/linux/bcma/bcma.h 	core->bus->ops->awrite32(core, offset, value);
core              456 include/linux/bcma/bcma.h 				 struct bcma_device *core, bool enable);
core              465 include/linux/bcma/bcma.h 					struct bcma_device *core, bool enable)
core              473 include/linux/bcma/bcma.h extern bool bcma_core_is_enabled(struct bcma_device *core);
core              474 include/linux/bcma/bcma.h extern void bcma_core_disable(struct bcma_device *core, u32 flags);
core              475 include/linux/bcma/bcma.h extern int bcma_core_enable(struct bcma_device *core, u32 flags);
core              476 include/linux/bcma/bcma.h extern void bcma_core_set_clockmode(struct bcma_device *core,
core              478 include/linux/bcma/bcma.h extern void bcma_core_pll_ctl(struct bcma_device *core, u32 req, u32 status,
core              485 include/linux/bcma/bcma.h extern u32 bcma_core_dma_translation(struct bcma_device *core);
core              487 include/linux/bcma/bcma.h extern unsigned int bcma_core_irq(struct bcma_device *core, int num);
core              578 include/linux/bcma/bcma_driver_chipcommon.h 	struct bcma_device *core;	/* Can be separated core or just ChipCommon one */
core              618 include/linux/bcma/bcma_driver_chipcommon.h 	struct bcma_device *core;
core              652 include/linux/bcma/bcma_driver_chipcommon.h 	struct bcma_device *core;
core              659 include/linux/bcma/bcma_driver_chipcommon.h 	bcma_read32((cc)->core, offset)
core              661 include/linux/bcma/bcma_driver_chipcommon.h 	bcma_write32((cc)->core, offset, val)
core              672 include/linux/bcma/bcma_driver_chipcommon.h 	bcma_read32((cc)->pmu.core, offset)
core              674 include/linux/bcma/bcma_driver_chipcommon.h 	bcma_write32((cc)->pmu.core, offset, val)
core               82 include/linux/bcma/bcma_driver_gmac_cmn.h 	struct bcma_device *core;
core               90 include/linux/bcma/bcma_driver_gmac_cmn.h #define gmac_cmn_read16(gc, offset)		bcma_read16((gc)->core, offset)
core               91 include/linux/bcma/bcma_driver_gmac_cmn.h #define gmac_cmn_read32(gc, offset)		bcma_read32((gc)->core, offset)
core               92 include/linux/bcma/bcma_driver_gmac_cmn.h #define gmac_cmn_write16(gc, offset, val)	bcma_write16((gc)->core, offset, val)
core               93 include/linux/bcma/bcma_driver_gmac_cmn.h #define gmac_cmn_write32(gc, offset, val)	bcma_write32((gc)->core, offset, val)
core               38 include/linux/bcma/bcma_driver_mips.h 	struct bcma_device *core;
core              226 include/linux/bcma/bcma_driver_pci.h 	struct bcma_device *core;
core              237 include/linux/bcma/bcma_driver_pci.h #define pcicore_read16(pc, offset)		bcma_read16((pc)->core, offset)
core              238 include/linux/bcma/bcma_driver_pci.h #define pcicore_read32(pc, offset)		bcma_read32((pc)->core, offset)
core              239 include/linux/bcma/bcma_driver_pci.h #define pcicore_write16(pc, offset, val)	bcma_write16((pc)->core, offset, val)
core              240 include/linux/bcma/bcma_driver_pci.h #define pcicore_write32(pc, offset, val)	bcma_write32((pc)->core, offset, val)
core              146 include/linux/bcma/bcma_driver_pcie2.h 	struct bcma_device *core;
core              151 include/linux/bcma/bcma_driver_pcie2.h #define pcie2_read16(pcie2, offset)		bcma_read16((pcie2)->core, offset)
core              152 include/linux/bcma/bcma_driver_pcie2.h #define pcie2_read32(pcie2, offset)		bcma_read32((pcie2)->core, offset)
core              153 include/linux/bcma/bcma_driver_pcie2.h #define pcie2_write16(pcie2, offset, val)	bcma_write16((pcie2)->core, offset, val)
core              154 include/linux/bcma/bcma_driver_pcie2.h #define pcie2_write32(pcie2, offset, val)	bcma_write32((pcie2)->core, offset, val)
core              156 include/linux/bcma/bcma_driver_pcie2.h #define pcie2_set32(pcie2, offset, set)		bcma_set32((pcie2)->core, offset, set)
core              157 include/linux/bcma/bcma_driver_pcie2.h #define pcie2_mask32(pcie2, offset, mask)	bcma_mask32((pcie2)->core, offset, mask)
core              306 include/linux/clk-provider.h 	struct clk_core *core;
core              836 include/linux/clk-provider.h int __clk_determine_rate(struct clk_hw *core, struct clk_rate_request *req);
core              849 include/linux/clk-provider.h 	dst->core = src->core;
core              170 include/linux/mfd/si476x-core.h static inline void si476x_core_lock(struct si476x_core *core)
core              172 include/linux/mfd/si476x-core.h 	mutex_lock(&core->cmd_lock);
core              179 include/linux/mfd/si476x-core.h static inline void si476x_core_unlock(struct si476x_core *core)
core              181 include/linux/mfd/si476x-core.h 	mutex_unlock(&core->cmd_lock);
core              186 include/linux/mfd/si476x-core.h static inline u16 hz_to_si476x(struct si476x_core *core, int freq)
core              190 include/linux/mfd/si476x-core.h 	switch (core->power_up_parameters.func) {
core              203 include/linux/mfd/si476x-core.h static inline int si476x_to_hz(struct si476x_core *core, u16 freq)
core              207 include/linux/mfd/si476x-core.h 	switch (core->power_up_parameters.func) {
core              233 include/linux/mfd/si476x-core.h static inline u16 v4l2_to_si476x(struct si476x_core *core, int freq)
core              235 include/linux/mfd/si476x-core.h 	return hz_to_si476x(core, v4l2_to_hz(freq));
core              238 include/linux/mfd/si476x-core.h static inline int si476x_to_v4l2(struct si476x_core *core, u16 freq)
core              240 include/linux/mfd/si476x-core.h 	return hz_to_v4l2(si476x_to_hz(core, freq));
core              369 include/linux/mfd/si476x-core.h bool si476x_core_is_in_am_receiver_mode(struct si476x_core *core);
core              370 include/linux/mfd/si476x-core.h bool si476x_core_is_powered_up(struct si476x_core *core);
core              270 include/linux/mfd/wl1273-core.h 	int (*read)(struct wl1273_core *core, u8, u16 *);
core              271 include/linux/mfd/wl1273-core.h 	int (*write)(struct wl1273_core *core, u8, u16);
core              272 include/linux/mfd/wl1273-core.h 	int (*write_data)(struct wl1273_core *core, u8 *, u16);
core              273 include/linux/mfd/wl1273-core.h 	int (*set_audio)(struct wl1273_core *core, unsigned int);
core              274 include/linux/mfd/wl1273-core.h 	int (*set_volume)(struct wl1273_core *core, unsigned int);
core              457 include/linux/tcp.h 	int somaxconn = READ_ONCE(sock_net(sk)->core.sysctl_somaxconn);
core              728 include/media/v4l2-subdev.h 	const struct v4l2_subdev_core_ops	*core;
core              117 include/net/net_namespace.h 	struct netns_core	core;
core              373 include/scsi/libsas.h 	struct scsi_core core;
core               71 include/soc/nps/common.h 			u32 __reserved:20, cluster:4, core:4, thread:4;
core               73 include/soc/nps/common.h 			u32 __reserved:24, cluster:4, core:4;
core               41 include/sound/hda_codec.h 	struct hdac_bus core;
core               69 include/sound/hda_codec.h #define to_hda_bus(bus)		container_of(bus, struct hda_bus, core)
core               91 include/sound/hda_codec.h 	struct hdac_driver core;
core              177 include/sound/hda_codec.h 	struct hdac_device core;
core              288 include/sound/hda_codec.h #define dev_to_hda_codec(_dev)	container_of(_dev, struct hda_codec, core.dev)
core              289 include/sound/hda_codec.h #define hda_codec_dev(_dev)	(&(_dev)->core.dev)
core              292 include/sound/hda_codec.h 	list_for_each_entry(c, &(bus)->core.codec_list, core.list)
core              294 include/sound/hda_codec.h 	list_for_each_entry_safe(c, n, &(bus)->core.codec_list, core.list)
core              317 include/sound/hda_codec.h 	return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm);
core              324 include/sound/hda_codec.h 	return snd_hdac_codec_write(&codec->core, nid, flags, verb, parm);
core              328 include/sound/hda_codec.h 	snd_hdac_read_parm(&(codec)->core, nid, param)
core              330 include/sound/hda_codec.h 	snd_hdac_get_sub_nodes(&(codec)->core, nid, start_nid)
core              340 include/sound/hda_codec.h 	snd_hdac_get_connections(&(codec)->core, nid, list, max_conns)
core              342 include/sound/hda_codec.h 	snd_hdac_get_connections(&(codec)->core, nid, NULL, 0);
core              369 include/sound/hda_codec.h 	snd_hdac_bus_queue_event(&bus->core, res, res_ex);
core              377 include/sound/hda_codec.h 	return snd_hdac_regmap_write(&codec->core, nid, verb, parm);
core              445 include/sound/hda_codec.h 	snd_hdac_query_supported_pcm(&(codec)->core, nid, ratesp, fmtsp, bpsp)
core              447 include/sound/hda_codec.h 	snd_hdac_is_supported_format(&(codec)->core, nid, fmt)
core              486 include/sound/hda_codec.h #define snd_hda_power_up(codec)		snd_hdac_power_up(&(codec)->core)
core              487 include/sound/hda_codec.h #define snd_hda_power_up_pm(codec)	snd_hdac_power_up_pm(&(codec)->core)
core              488 include/sound/hda_codec.h #define snd_hda_power_down(codec)	snd_hdac_power_down(&(codec)->core)
core              489 include/sound/hda_codec.h #define snd_hda_power_down_pm(codec)	snd_hdac_power_down_pm(&(codec)->core)
core              226 include/sound/sof/topology.h 	uint32_t core;		/**< core we run on */
core               17 include/trace/events/clk.h 	TP_PROTO(struct clk_core *core),
core               19 include/trace/events/clk.h 	TP_ARGS(core),
core               22 include/trace/events/clk.h 		__string(        name,           core->name       )
core               26 include/trace/events/clk.h 		__assign_str(name, core->name);
core               34 include/trace/events/clk.h 	TP_PROTO(struct clk_core *core),
core               36 include/trace/events/clk.h 	TP_ARGS(core)
core               41 include/trace/events/clk.h 	TP_PROTO(struct clk_core *core),
core               43 include/trace/events/clk.h 	TP_ARGS(core)
core               48 include/trace/events/clk.h 	TP_PROTO(struct clk_core *core),
core               50 include/trace/events/clk.h 	TP_ARGS(core)
core               55 include/trace/events/clk.h 	TP_PROTO(struct clk_core *core),
core               57 include/trace/events/clk.h 	TP_ARGS(core)
core               62 include/trace/events/clk.h 	TP_PROTO(struct clk_core *core),
core               64 include/trace/events/clk.h 	TP_ARGS(core)
core               69 include/trace/events/clk.h 	TP_PROTO(struct clk_core *core),
core               71 include/trace/events/clk.h 	TP_ARGS(core)
core               76 include/trace/events/clk.h 	TP_PROTO(struct clk_core *core),
core               78 include/trace/events/clk.h 	TP_ARGS(core)
core               83 include/trace/events/clk.h 	TP_PROTO(struct clk_core *core),
core               85 include/trace/events/clk.h 	TP_ARGS(core)
core               90 include/trace/events/clk.h 	TP_PROTO(struct clk_core *core, unsigned long rate),
core               92 include/trace/events/clk.h 	TP_ARGS(core, rate),
core               95 include/trace/events/clk.h 		__string(        name,           core->name                )
core              100 include/trace/events/clk.h 		__assign_str(name, core->name);
core              109 include/trace/events/clk.h 	TP_PROTO(struct clk_core *core, unsigned long rate),
core              111 include/trace/events/clk.h 	TP_ARGS(core, rate)
core              116 include/trace/events/clk.h 	TP_PROTO(struct clk_core *core, unsigned long rate),
core              118 include/trace/events/clk.h 	TP_ARGS(core, rate)
core              123 include/trace/events/clk.h 	TP_PROTO(struct clk_core *core, struct clk_core *parent),
core              125 include/trace/events/clk.h 	TP_ARGS(core, parent),
core              128 include/trace/events/clk.h 		__string(        name,           core->name                )
core              133 include/trace/events/clk.h 		__assign_str(name, core->name);
core              142 include/trace/events/clk.h 	TP_PROTO(struct clk_core *core, struct clk_core *parent),
core              144 include/trace/events/clk.h 	TP_ARGS(core, parent)
core              149 include/trace/events/clk.h 	TP_PROTO(struct clk_core *core, struct clk_core *parent),
core              151 include/trace/events/clk.h 	TP_ARGS(core, parent)
core              156 include/trace/events/clk.h 	TP_PROTO(struct clk_core *core, int phase),
core              158 include/trace/events/clk.h 	TP_ARGS(core, phase),
core              161 include/trace/events/clk.h 		__string(        name,           core->name                )
core              166 include/trace/events/clk.h 		__assign_str(name, core->name);
core              175 include/trace/events/clk.h 	TP_PROTO(struct clk_core *core, int phase),
core              177 include/trace/events/clk.h 	TP_ARGS(core, phase)
core              182 include/trace/events/clk.h 	TP_PROTO(struct clk_core *core, int phase),
core              184 include/trace/events/clk.h 	TP_ARGS(core, phase)
core              189 include/trace/events/clk.h 	TP_PROTO(struct clk_core *core, struct clk_duty *duty),
core              191 include/trace/events/clk.h 	TP_ARGS(core, duty),
core              194 include/trace/events/clk.h 		__string(        name,           core->name              )
core              200 include/trace/events/clk.h 		__assign_str(name, core->name);
core              211 include/trace/events/clk.h 	TP_PROTO(struct clk_core *core, struct clk_duty *duty),
core              213 include/trace/events/clk.h 	TP_ARGS(core, duty)
core              218 include/trace/events/clk.h 	TP_PROTO(struct clk_core *core, struct clk_duty *duty),
core              220 include/trace/events/clk.h 	TP_ARGS(core, duty)
core             5858 kernel/sched/fair.c 	int core = cpu_of(rq);
core             5862 kernel/sched/fair.c 	if (test_idle_cores(core, true))
core             5865 kernel/sched/fair.c 	for_each_cpu(cpu, cpu_smt_mask(core)) {
core             5866 kernel/sched/fair.c 		if (cpu == core)
core             5873 kernel/sched/fair.c 	set_idle_cores(core, 1);
core             5886 kernel/sched/fair.c 	int core, cpu;
core             5896 kernel/sched/fair.c 	for_each_cpu_wrap(core, cpus, target) {
core             5899 kernel/sched/fair.c 		for_each_cpu(cpu, cpu_smt_mask(core)) {
core             5906 kernel/sched/fair.c 			return core;
core             7424 mm/page_alloc.c static int __init cmdline_parse_core(char *p, unsigned long *core,
core             7445 mm/page_alloc.c 		*core = coremem >> PAGE_SHIFT;
core              370 net/core/net_namespace.c 	net->core.sysctl_somaxconn = SOMAXCONN;
core             3234 net/core/sock.c 	__this_cpu_add(net->core.prot_inuse->val[prot->inuse_idx], val);
core             3244 net/core/sock.c 		res += per_cpu_ptr(net->core.prot_inuse, cpu)->val[idx];
core             3252 net/core/sock.c 	this_cpu_add(*net->core.sock_inuse, val);
core             3260 net/core/sock.c 		res += *per_cpu_ptr(net->core.sock_inuse, cpu);
core             3269 net/core/sock.c 	net->core.prot_inuse = alloc_percpu(struct prot_inuse);
core             3270 net/core/sock.c 	if (net->core.prot_inuse == NULL)
core             3273 net/core/sock.c 	net->core.sock_inuse = alloc_percpu(int);
core             3274 net/core/sock.c 	if (net->core.sock_inuse == NULL)
core             3280 net/core/sock.c 	free_percpu(net->core.prot_inuse);
core             3286 net/core/sock.c 	free_percpu(net->core.prot_inuse);
core             3287 net/core/sock.c 	free_percpu(net->core.sock_inuse);
core              586 net/core/sysctl_net_core.c 		.data		= &init_net.core.sysctl_somaxconn,
core              605 net/core/sysctl_net_core.c 		tbl[0].data = &net->core.sysctl_somaxconn;
core              613 net/core/sysctl_net_core.c 	net->core.sysctl_hdr = register_net_sysctl(net, "net/core", tbl);
core              614 net/core/sysctl_net_core.c 	if (net->core.sysctl_hdr == NULL)
core              630 net/core/sysctl_net_core.c 	tbl = net->core.sysctl_hdr->ctl_table_arg;
core              631 net/core/sysctl_net_core.c 	unregister_net_sysctl_table(net->core.sysctl_hdr);
core             1675 net/socket.c   		somaxconn = sock_net(sock->sk)->core.sysctl_somaxconn;
core              408 sound/pci/hda/hda_auto_parser.c 		   codec->core.chip_name, cfg->line_outs, cfg->line_out_pins[0],
core              837 sound/pci/hda/hda_auto_parser.c 				    codec->core.chip_name, modelname);
core              844 sound/pci/hda/hda_auto_parser.c 				    codec->core.chip_name, modelname);
core              851 sound/pci/hda/hda_auto_parser.c 				    codec->core.chip_name, modelname);
core              858 sound/pci/hda/hda_auto_parser.c 				    codec->core.chip_name, modelname);
core              863 sound/pci/hda/hda_auto_parser.c 				   codec->core.chip_name, fix->type);
core              938 sound/pci/hda/hda_auto_parser.c 		if ((codec->core.subsystem_id & 0xffff0000) != (pq->subvendor << 16))
core              940 sound/pci/hda/hda_auto_parser.c 		if (codec->core.vendor_id != pq->codec)
core              947 sound/pci/hda/hda_auto_parser.c 				  codec->core.chip_name, codec->fixup_name);
core              989 sound/pci/hda/hda_auto_parser.c 			  codec->core.chip_name);
core             1000 sound/pci/hda/hda_auto_parser.c 					  codec->core.chip_name, codec->fixup_name);
core             1013 sound/pci/hda/hda_auto_parser.c 				  codec->core.chip_name, name, q->subdevice_mask ? "" : " - vendor generic");
core             1022 sound/pci/hda/hda_auto_parser.c 			if ((codec->core.subsystem_id & mask) == (vendorid & mask)) {
core             1027 sound/pci/hda/hda_auto_parser.c 					  codec->core.chip_name, name);
core              237 sound/pci/hda/hda_beep.c 	input_dev->id.vendor = codec->core.vendor_id >> 16;
core              238 sound/pci/hda/hda_beep.c 	input_dev->id.product = codec->core.vendor_id & 0xffff;
core               23 sound/pci/hda/hda_bind.c 	struct hda_codec *codec = container_of(dev, struct hda_codec, core);
core               25 sound/pci/hda/hda_bind.c 		container_of(drv, struct hda_codec_driver, core);
core               28 sound/pci/hda/hda_bind.c 	u32 id = codec->probe_id ? codec->probe_id : codec->core.vendor_id;
core               29 sound/pci/hda/hda_bind.c 	u32 rev_id = codec->core.revision_id;
core               44 sound/pci/hda/hda_bind.c 	struct hda_codec *codec = container_of(dev, struct hda_codec, core);
core               65 sound/pci/hda/hda_bind.c 	err = snd_hdac_device_set_chip_name(&codec->core, name);
core               71 sound/pci/hda/hda_bind.c 	    codec->bus->mixer_assigned >= codec->core.addr) {
core               74 sound/pci/hda/hda_bind.c 			 codec->core.vendor_name, codec->core.chip_name);
core               75 sound/pci/hda/hda_bind.c 		codec->bus->mixer_assigned = codec->core.addr;
core               89 sound/pci/hda/hda_bind.c 	if (codec->bus->core.ext_ops) {
core               90 sound/pci/hda/hda_bind.c 		if (WARN_ON(!codec->bus->core.ext_ops->hdev_attach))
core               92 sound/pci/hda/hda_bind.c 		return codec->bus->core.ext_ops->hdev_attach(&codec->core);
core              101 sound/pci/hda/hda_bind.c 	err = snd_hdac_regmap_init(&codec->core);
core              131 sound/pci/hda/hda_bind.c 	codec->core.lazy_cache = true;
core              149 sound/pci/hda/hda_bind.c 	if (codec->bus->core.ext_ops) {
core              150 sound/pci/hda/hda_bind.c 		if (WARN_ON(!codec->bus->core.ext_ops->hdev_detach))
core              152 sound/pci/hda/hda_bind.c 		return codec->bus->core.ext_ops->hdev_detach(&codec->core);
core              173 sound/pci/hda/hda_bind.c 	drv->core.driver.name = name;
core              174 sound/pci/hda/hda_bind.c 	drv->core.driver.owner = owner;
core              175 sound/pci/hda/hda_bind.c 	drv->core.driver.bus = &snd_hda_bus_type;
core              176 sound/pci/hda/hda_bind.c 	drv->core.driver.probe = hda_codec_driver_probe;
core              177 sound/pci/hda/hda_bind.c 	drv->core.driver.remove = hda_codec_driver_remove;
core              178 sound/pci/hda/hda_bind.c 	drv->core.driver.shutdown = hda_codec_driver_shutdown;
core              179 sound/pci/hda/hda_bind.c 	drv->core.driver.pm = &hda_codec_driver_pm;
core              180 sound/pci/hda/hda_bind.c 	drv->core.type = HDA_DEV_LEGACY;
core              181 sound/pci/hda/hda_bind.c 	drv->core.match = hda_codec_match;
core              182 sound/pci/hda/hda_bind.c 	drv->core.unsol_event = hda_codec_unsol_event;
core              183 sound/pci/hda/hda_bind.c 	return driver_register(&drv->core.driver);
core              189 sound/pci/hda/hda_bind.c 	driver_unregister(&drv->core.driver);
core              217 sound/pci/hda/hda_bind.c 		snd_hdac_codec_modalias(&codec->core, modalias, sizeof(modalias));
core              305 sound/pci/hda/hda_bind.c 	err = snd_hdac_device_register(&codec->core);
core              322 sound/pci/hda/hda_bind.c 	snd_hdac_device_unregister(&codec->core);
core               27 sound/pci/hda/hda_codec.c #define codec_in_pm(codec)		snd_hdac_is_in_pm(&codec->core)
core               28 sound/pci/hda/hda_codec.c #define hda_codec_is_power_on(codec)	snd_hdac_is_power_on(&codec->core)
core               30 sound/pci/hda/hda_codec.c 	((codec)->core.power_caps & AC_PWRST_EPSS)
core               32 sound/pci/hda/hda_codec.c 	((codec)->core.power_caps & AC_PWRST_CLKSTOP)
core               40 sound/pci/hda/hda_codec.c 	struct hda_codec *codec = container_of(dev, struct hda_codec, core);
core               49 sound/pci/hda/hda_codec.c 	mutex_lock(&bus->core.cmd_mutex);
core               52 sound/pci/hda/hda_codec.c 	err = snd_hdac_bus_exec_verb_unlocked(&bus->core, codec->core.addr,
core               55 sound/pci/hda/hda_codec.c 	mutex_unlock(&bus->core.cmd_mutex);
core              309 sound/pci/hda/hda_codec.c 	parm = snd_hdac_read_parm_uncached(&codec->core, nid, AC_PAR_DEVLIST_LEN);
core              341 sound/pci/hda/hda_codec.c 		if (snd_hdac_read(&codec->core, nid,
core              421 sound/pci/hda/hda_codec.c 	codec->wcaps = kmalloc_array(codec->core.num_nodes, 4, GFP_KERNEL);
core              424 sound/pci/hda/hda_codec.c 	nid = codec->core.start_nid;
core              425 sound/pci/hda/hda_codec.c 	for (i = 0; i < codec->core.num_nodes; i++, nid++)
core              426 sound/pci/hda/hda_codec.c 		codec->wcaps[i] = snd_hdac_read_parm_uncached(&codec->core,
core              783 sound/pci/hda/hda_codec.c 	snd_hdac_regmap_exit(&codec->core);
core              793 sound/pci/hda/hda_codec.c 		snd_hdac_display_power(&codec->bus->core, codec->addr, enable);
core              826 sound/pci/hda/hda_codec.c 	if (codec->core.type == HDA_DEV_LEGACY)
core              827 sound/pci/hda/hda_codec.c 		snd_hdac_device_unregister(&codec->core);
core              834 sound/pci/hda/hda_codec.c 	if (codec->core.type == HDA_DEV_LEGACY)
core              845 sound/pci/hda/hda_codec.c 	snd_hdac_device_exit(&codec->core);
core              854 sound/pci/hda/hda_codec.c 	if (codec->core.type == HDA_DEV_LEGACY)
core              879 sound/pci/hda/hda_codec.c 	err = snd_hdac_device_init(&codec->core, &bus->core, name, codec_addr);
core              885 sound/pci/hda/hda_codec.c 	codec->core.type = HDA_DEV_LEGACY;
core              930 sound/pci/hda/hda_codec.c 	codec->core.dev.release = snd_hda_codec_dev_release;
core              931 sound/pci/hda/hda_codec.c 	codec->core.exec_verb = codec_exec_verb;
core              967 sound/pci/hda/hda_codec.c 	fg = codec->core.afg ? codec->core.afg : codec->core.mfg;
core              977 sound/pci/hda/hda_codec.c 	codec->core.dev.power.power_state = PMSG_ON;
core              983 sound/pci/hda/hda_codec.c 	sprintf(component, "HDA:%08x,%08x,%08x", codec->core.vendor_id,
core              984 sound/pci/hda/hda_codec.c 		codec->core.subsystem_id, codec->core.revision_id);
core             1011 sound/pci/hda/hda_codec.c 	err = snd_hdac_refresh_widgets(&codec->core);
core             1019 sound/pci/hda/hda_codec.c 	fg = codec->core.afg ? codec->core.afg : codec->core.mfg;
core             1217 sound/pci/hda/hda_codec.c 		nid = codec->core.afg;
core             1266 sound/pci/hda/hda_codec.c 	return snd_hdac_override_parm(&codec->core, nid, parm, caps);
core             1299 sound/pci/hda/hda_codec.c 	return snd_hdac_regmap_update_raw(&codec->core, cmd, mask, val);
core             1348 sound/pci/hda/hda_codec.c 	if (!codec->core.regmap)
core             1350 sound/pci/hda/hda_codec.c 	return snd_hdac_regmap_update_raw_once(&codec->core, cmd, mask, val);
core             1791 sound/pci/hda/hda_codec.c 	snd_hdac_device_unregister(&codec->core);
core             2282 sound/pci/hda/hda_codec.c 	snd_hdac_regmap_update(&codec->core, nid, AC_VERB_SET_DIGI_CONVERT_1,
core             2288 sound/pci/hda/hda_codec.c 		snd_hdac_regmap_update(&codec->core, *d,
core             2486 sound/pci/hda/hda_codec.c 	snd_hdac_regmap_read(&codec->core, cvt_nid,
core             2636 sound/pci/hda/hda_codec.c 		snd_hdac_regmap_write(&codec->core, nid,
core             2651 sound/pci/hda/hda_codec.c 	snd_hdac_regmap_read(&codec->core, nid,
core             2762 sound/pci/hda/hda_codec.c 	if (nid == codec->core.afg || nid == codec->core.mfg)
core             2782 sound/pci/hda/hda_codec.c 	hda_nid_t fg = codec->core.afg ? codec->core.afg : codec->core.mfg;
core             2881 sound/pci/hda/hda_codec.c 	snd_hdac_enter_pm(&codec->core);
core             2887 sound/pci/hda/hda_codec.c 	snd_hdac_leave_pm(&codec->core);
core             2896 sound/pci/hda/hda_codec.c 	snd_hdac_enter_pm(&codec->core);
core             2897 sound/pci/hda/hda_codec.c 	if (codec->core.regmap)
core             2898 sound/pci/hda/hda_codec.c 		regcache_mark_dirty(codec->core.regmap);
core             2918 sound/pci/hda/hda_codec.c 	codec->core.dev.power.power_state = PMSG_ON;
core             2919 sound/pci/hda/hda_codec.c 	snd_hdac_leave_pm(&codec->core);
core             2932 sound/pci/hda/hda_codec.c 		snd_hdac_codec_link_down(&codec->core);
core             2942 sound/pci/hda/hda_codec.c 	snd_hdac_codec_link_up(&codec->core);
core             3260 sound/pci/hda/hda_codec.c 			  codec->core.addr, err);
core             3314 sound/pci/hda/hda_codec.c 				  dev, codec->core.addr);
core             3357 sound/pci/hda/hda_codec.c 			if (!addr && codec->core.addr)
core             3358 sound/pci/hda/hda_codec.c 				addr = codec->core.addr;
core              119 sound/pci/hda/hda_controller.c 	azx_dev->core.bufsize = 0;
core              120 sound/pci/hda/hda_controller.c 	azx_dev->core.period_bytes = 0;
core              121 sound/pci/hda/hda_controller.c 	azx_dev->core.format_val = 0;
core              190 sound/pci/hda/hda_controller.c 	stream_tag = azx_dev->core.stream_tag;
core              196 sound/pci/hda/hda_controller.c 				     azx_dev->core.format_val, substream);
core              248 sound/pci/hda/hda_controller.c 		sbits |= 1 << azx_dev->core.index;
core              296 sound/pci/hda/hda_controller.c 	struct snd_pcm_substream *substream = azx_dev->core.substream;
core              306 sound/pci/hda/hda_controller.c 	if (pos >= azx_dev->core.bufsize)
core              394 sound/pci/hda/hda_controller.c 					(azx_dev->core.stream_tag - 1);
core              509 sound/pci/hda/hda_controller.c 		nsec = timecounter_read(&azx_dev->core.tc);
core              722 sound/pci/hda/hda_controller.c 	struct hdac_bus *bus = &_bus->core;
core             1026 sound/pci/hda/hda_controller.c 	struct hdac_bus *bus = &codec->bus->core;
core             1058 sound/pci/hda/hda_controller.c 	struct hdac_bus *bus = &codec->bus->core;
core             1069 sound/pci/hda/hda_controller.c 	struct hdac_bus *bus = &codec->bus->core;
core             1211 sound/pci/hda/hda_controller.c 	struct azx *chip = bus_to_azx(&bus->core);
core             1216 sound/pci/hda/hda_controller.c 	if (bus->core.chip_init)
core             1227 sound/pci/hda/hda_controller.c 	err = snd_hdac_bus_init(&bus->core, chip->card->dev, &bus_core_ops);
core             1236 sound/pci/hda/hda_controller.c 	bus->core.snoop = azx_snoop(chip);
core             1239 sound/pci/hda/hda_controller.c 		bus->core.use_posbuf = true;
core             1240 sound/pci/hda/hda_controller.c 	bus->core.bdl_pos_adj = chip->bdl_pos_adj;
core             1242 sound/pci/hda/hda_controller.c 		bus->core.corbrp_self_clear = true;
core             1245 sound/pci/hda/hda_controller.c 		bus->core.align_bdle_4k = true;
core             1253 sound/pci/hda/hda_controller.c 		bus->core.sync_write = 1;
core               57 sound/pci/hda/hda_controller.h 	struct hdac_stream core;
core               68 sound/pci/hda/hda_controller.h #define azx_stream(dev)		(&(dev)->core)
core               69 sound/pci/hda/hda_controller.h #define stream_to_azx_dev(s)	container_of(s, struct azx_dev, core)
core              155 sound/pci/hda/hda_controller.h #define azx_bus(chip)	(&(chip)->bus.core)
core              156 sound/pci/hda/hda_controller.h #define bus_to_azx(_bus)	container_of(_bus, struct azx, bus.core)
core               28 sound/pci/hda/hda_controller_trace.h 		__entry->idx = (dev)->core.index;
core               50 sound/pci/hda/hda_controller_trace.h 		__entry->idx = (dev)->core.index;
core               68 sound/pci/hda/hda_controller_trace.h 		__entry->stream_tag = (azx_dev)->core.stream_tag;
core              632 sound/pci/hda/hda_generic.c 	if (nid == codec->core.afg)
core              828 sound/pci/hda/hda_generic.c 		if (nid == codec->core.afg)
core              848 sound/pci/hda/hda_generic.c 				snd_hdac_regmap_sync_node(&codec->core, nid);
core             4949 sound/pci/hda/hda_generic.c 	if (power_state != AC_PWRST_D0 || nid == codec->core.afg)
core             5727 sound/pci/hda/hda_generic.c 			     " Analog", codec->core.chip_name);
core             5758 sound/pci/hda/hda_generic.c 				     " Digital", codec->core.chip_name);
core             5793 sound/pci/hda/hda_generic.c 			     " Alt Analog", codec->core.chip_name);
core             6066 sound/pci/hda/hda_generic.c 	snd_hda_codec_set_power_to_all(codec, codec->core.afg, AC_PWRST_D3);
core             6067 sound/pci/hda/hda_generic.c 	snd_hda_codec_write(codec, codec->core.afg, 0,
core               44 sound/pci/hda/hda_hwdep.c 	if (verb < codec->core.start_nid ||
core               45 sound/pci/hda/hda_hwdep.c 	    verb >= codec->core.start_nid + codec->core.num_nodes) {
core               48 sound/pci/hda/hda_hwdep.c 		verb -= codec->core.start_nid;
core               49 sound/pci/hda/hda_hwdep.c 		verb = array_index_nospec(verb, codec->core.num_nodes);
core              615 sound/pci/hda/hda_intel.c 	struct snd_pcm_substream *substream = azx_dev->core.substream;
core              625 sound/pci/hda/hda_intel.c 		if (delay >= azx_dev->core.delay_negative_threshold)
core              628 sound/pci/hda/hda_intel.c 			delay += azx_dev->core.bufsize;
core              631 sound/pci/hda/hda_intel.c 	if (delay >= azx_dev->core.period_bytes) {
core              634 sound/pci/hda/hda_intel.c 			 delay, azx_dev->core.period_bytes);
core              677 sound/pci/hda/hda_intel.c 	struct snd_pcm_substream *substream = azx_dev->core.substream;
core              682 sound/pci/hda/hda_intel.c 	wallclk = azx_readl(chip, WALLCLK) - azx_dev->core.start_wallclk;
core              683 sound/pci/hda/hda_intel.c 	if (wallclk < (azx_dev->core.period_wallclk * 2) / 3)
core              706 sound/pci/hda/hda_intel.c 	if (pos >= azx_dev->core.bufsize)
core              709 sound/pci/hda/hda_intel.c 	if (WARN_ONCE(!azx_dev->core.period_bytes,
core              712 sound/pci/hda/hda_intel.c 	if (wallclk < (azx_dev->core.period_wallclk * 5) / 4 &&
core              713 sound/pci/hda/hda_intel.c 	    pos % azx_dev->core.period_bytes > azx_dev->core.period_bytes / 2)
core              716 sound/pci/hda/hda_intel.c 	azx_dev->core.start_wallclk += wallclk;
core              807 sound/pci/hda/hda_intel.c 	if (azx_dev->core.substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
core              816 sound/pci/hda/hda_intel.c 	mod_dma_pos = le32_to_cpu(*azx_dev->core.posbuf);
core              817 sound/pci/hda/hda_intel.c 	mod_dma_pos %= azx_dev->core.period_bytes;
core              830 sound/pci/hda/hda_intel.c 		mini_pos = azx_dev->core.bufsize + link_pos - fifo_size;
core              835 sound/pci/hda/hda_intel.c 	mod_mini_pos = mini_pos % azx_dev->core.period_bytes;
core              836 sound/pci/hda/hda_intel.c 	mod_link_pos = link_pos % azx_dev->core.period_bytes;
core              842 sound/pci/hda/hda_intel.c 		bound_pos = mini_pos - mod_mini_pos + azx_dev->core.period_bytes;
core              843 sound/pci/hda/hda_intel.c 		if (bound_pos >= azx_dev->core.bufsize)
core              856 sound/pci/hda/hda_intel.c 	struct snd_pcm_substream *substream = azx_dev->core.substream;
core              878 sound/pci/hda/hda_intel.c 			pos += azx_dev->core.bufsize;
core              888 sound/pci/hda/hda_intel.c 	struct snd_pcm_substream *substream = azx_dev->core.substream;
core              900 sound/pci/hda/hda_intel.c 				     azx_dev->core.index));
core              907 sound/pci/hda/hda_intel.c 	if (azx_dev->core.substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
core              118 sound/pci/hda/hda_local.h 	snd_hdac_regmap_get_amp(&(codec)->core, nid, ch, dir, idx)
core              141 sound/pci/hda/hda_local.h #define snd_hda_regmap_sync(codec)	snd_hdac_regmap_sync(&(codec)->core)
core              447 sound/pci/hda/hda_local.h 	for ((nid) = (codec)->core.start_nid; (nid) < (codec)->core.end_nid; (nid)++)
core              454 sound/pci/hda/hda_local.h 	if (nid < codec->core.start_nid ||
core              455 sound/pci/hda/hda_local.h 	    nid >= codec->core.start_nid + codec->core.num_nodes)
core              457 sound/pci/hda/hda_local.h 	return codec->wcaps[nid - codec->core.start_nid];
core              481 sound/pci/hda/hda_local.h 	if (nid >= codec->core.start_nid &&
core              482 sound/pci/hda/hda_local.h 	    nid < codec->core.start_nid + codec->core.num_nodes)
core              483 sound/pci/hda/hda_local.h 		codec->wcaps[nid - codec->core.start_nid] = val;
core              521 sound/pci/hda/hda_local.h 	return snd_hdac_override_parm(&codec->core, nid, AC_PAR_PIN_CAP, caps);
core              613 sound/pci/hda/hda_local.h 	return snd_hdac_check_power_state(&codec->core, nid, target_state);
core              620 sound/pci/hda/hda_local.h 	return snd_hdac_sync_power_state(&codec->core, nid, target_state);
core               23 sound/pci/hda/hda_proc.c 	snd_hdac_read_parm_uncached(&(codec)->core, nid, parm)
core              329 sound/pci/hda/hda_proc.c 		if ((codec->core.vendor_id >> 16) == 0x10ec)
core              642 sound/pci/hda/hda_proc.c 		param_read(codec, codec->core.afg, AC_PAR_GPIO_CAP);
core              745 sound/pci/hda/hda_proc.c 	print_codec_core_info(&codec->core, buffer);
core              746 sound/pci/hda/hda_proc.c 	fg = codec->core.afg;
core              909 sound/pci/hda/hda_proc.c 	snprintf(name, sizeof(name), "codec#%d", codec->core.addr);
core               71 sound/pci/hda/hda_sysfs.c CODEC_INFO_SHOW(vendor_id, core.vendor_id);
core               72 sound/pci/hda/hda_sysfs.c CODEC_INFO_SHOW(subsystem_id, core.subsystem_id);
core               73 sound/pci/hda/hda_sysfs.c CODEC_INFO_SHOW(revision_id, core.revision_id);
core               74 sound/pci/hda/hda_sysfs.c CODEC_INFO_SHOW(afg, core.afg);
core               75 sound/pci/hda/hda_sysfs.c CODEC_INFO_SHOW(mfg, core.mfg);
core               76 sound/pci/hda/hda_sysfs.c CODEC_INFO_STR_SHOW(vendor_name, core.vendor_name);
core               77 sound/pci/hda/hda_sysfs.c CODEC_INFO_STR_SHOW(chip_name, core.chip_name);
core              194 sound/pci/hda/hda_sysfs.c CODEC_INFO_STORE(vendor_id, core.vendor_id);
core              195 sound/pci/hda/hda_sysfs.c CODEC_INFO_STORE(subsystem_id, core.subsystem_id);
core              196 sound/pci/hda/hda_sysfs.c CODEC_INFO_STORE(revision_id, core.revision_id);
core              197 sound/pci/hda/hda_sysfs.c CODEC_INFO_STR_STORE(vendor_name, core.vendor_name);
core              198 sound/pci/hda/hda_sysfs.c CODEC_INFO_STR_STORE(chip_name, core.chip_name);
core              549 sound/pci/hda/hda_sysfs.c 			if ((vendorid <= 0 || codec->core.vendor_id == vendorid) &&
core              550 sound/pci/hda/hda_sysfs.c 			    (subid <= 0 || codec->core.subsystem_id == subid) &&
core              551 sound/pci/hda/hda_sysfs.c 			    codec->core.addr == caddr) {
core              600 sound/pci/hda/hda_sysfs.c 		(*codecp)->core.name = val; \
core              401 sound/pci/hda/hda_tegra.c 	chip->bus.core.aligned_mmio = 1;
core               89 sound/pci/hda/patch_analog.c 	switch (codec->core.vendor_id) {
core             3441 sound/pci/hda/patch_ca0132.c 	snd_hda_codec_write(codec, codec->core.afg, 0,
core             3461 sound/pci/hda/patch_ca0132.c 	snd_hda_codec_write(codec, codec->core.afg, 0,
core             3476 sound/pci/hda/patch_ca0132.c 		snd_hda_codec_write(codec, codec->core.afg, 0,
core             3483 sound/pci/hda/patch_ca0132.c 		snd_hda_codec_write(codec, codec->core.afg, 0,
core             3490 sound/pci/hda/patch_ca0132.c 	snd_hda_codec_write(codec, codec->core.afg, 0,
core             8737 sound/pci/hda/patch_ca0132.c 	switch (codec->core.subsystem_id) {
core              285 sound/pci/hda/patch_conexant.c 		snd_hdac_regmap_add_vendor_verb(&codec->core, 0x410);
core              980 sound/pci/hda/patch_conexant.c 	codec_info(codec, "%s: BIOS auto-probing.\n", codec->core.chip_name);
core              994 sound/pci/hda/patch_conexant.c 	switch (codec->core.vendor_id) {
core             1031 sound/pci/hda/patch_conexant.c 	switch (codec->core.subsystem_id >> 16) {
core             1056 sound/pci/hda/patch_conexant.c 	if (!codec->bus->core.sync_write) {
core             1059 sound/pci/hda/patch_conexant.c 		codec->bus->core.sync_write = 1;
core               41 sound/pci/hda/patch_hdmi.c #define is_haswell(codec)  ((codec)->core.vendor_id == 0x80862807)
core               42 sound/pci/hda/patch_hdmi.c #define is_broadwell(codec)    ((codec)->core.vendor_id == 0x80862808)
core               43 sound/pci/hda/patch_hdmi.c #define is_skylake(codec) ((codec)->core.vendor_id == 0x80862809)
core               44 sound/pci/hda/patch_hdmi.c #define is_broxton(codec) ((codec)->core.vendor_id == 0x8086280a)
core               45 sound/pci/hda/patch_hdmi.c #define is_kabylake(codec) ((codec)->core.vendor_id == 0x8086280b)
core               46 sound/pci/hda/patch_hdmi.c #define is_geminilake(codec) (((codec)->core.vendor_id == 0x8086280d) || \
core               47 sound/pci/hda/patch_hdmi.c 				((codec)->core.vendor_id == 0x80862800))
core               48 sound/pci/hda/patch_hdmi.c #define is_cannonlake(codec) ((codec)->core.vendor_id == 0x8086280c)
core               49 sound/pci/hda/patch_hdmi.c #define is_icelake(codec) ((codec)->core.vendor_id == 0x8086280f)
core               50 sound/pci/hda/patch_hdmi.c #define is_tigerlake(codec) ((codec)->core.vendor_id == 0x80862812)
core               56 sound/pci/hda/patch_hdmi.c #define is_valleyview(codec) ((codec)->core.vendor_id == 0x80862882)
core               57 sound/pci/hda/patch_hdmi.c #define is_cherryview(codec) ((codec)->core.vendor_id == 0x80862883)
core              734 sound/pci/hda/patch_hdmi.c 	ca = snd_hdac_channel_allocation(&codec->core,
core              740 sound/pci/hda/patch_hdmi.c 	chmap->ops.set_channel_count(&codec->core, per_pin->cvt_nid,
core             1618 sound/pci/hda/patch_hdmi.c 	size = snd_hdac_acomp_get_eld(&codec->core, per_pin->pin_nid,
core             1823 sound/pci/hda/patch_hdmi.c 	nodes = snd_hda_get_sub_nodes(codec, codec->core.afg, &nid);
core             1926 sound/pci/hda/patch_hdmi.c 		snd_hdac_sync_audio_rate(&codec->core, pin_nid, per_pin->dev_id,
core             1935 sound/pci/hda/patch_hdmi.c 		stripe = snd_hdac_get_stream_stripe_ctl(&codec->bus->core,
core             2038 sound/pci/hda/patch_hdmi.c 	struct hda_codec *codec = container_of(hdac, struct hda_codec, core);
core             2051 sound/pci/hda/patch_hdmi.c 	struct hda_codec *codec = container_of(hdac, struct hda_codec, core);
core             2065 sound/pci/hda/patch_hdmi.c 	struct hda_codec *codec = container_of(hdac, struct hda_codec, core);
core             2081 sound/pci/hda/patch_hdmi.c 	struct hda_codec *codec = container_of(hdac, struct hda_codec, core);
core             2330 sound/pci/hda/patch_hdmi.c 		snd_hdac_acomp_exit(&codec->bus->core);
core             2332 sound/pci/hda/patch_hdmi.c 		snd_hdac_acomp_register_notifier(&codec->bus->core, NULL);
core             2404 sound/pci/hda/patch_hdmi.c 	snd_hdac_register_chmap_ops(&codec->core, &spec->chmap);
core             2530 sound/pci/hda/patch_hdmi.c 	if (snd_hdac_is_in_pm(&codec->core))
core             2568 sound/pci/hda/patch_hdmi.c 	if (!snd_hdac_acomp_init(&codec->bus->core, &spec->drm_audio_ops,
core             2634 sound/pci/hda/patch_hdmi.c 	snd_hdac_regmap_add_vendor_verb(&codec->core, INTEL_SET_VENDOR_VERB);
core             2667 sound/pci/hda/patch_hdmi.c 	switch (codec->core.vendor_id) {
core             2736 sound/pci/hda/patch_hdmi.c 	if (snd_hdac_is_in_pm(&codec->core))
core             2739 sound/pci/hda/patch_hdmi.c 	snd_hdac_i915_set_bclk(&codec->bus->core);
core             2756 sound/pci/hda/patch_hdmi.c 	snd_hdac_acomp_register_notifier(&codec->bus->core,
core             2792 sound/pci/hda/patch_hdmi.c 	if (!codec->bus->core.audio_component) {
core             3671 sound/pci/hda/patch_hdmi.c 	((codec)->core.vendor_id == 0x1002aa01 && \
core             3672 sound/pci/hda/patch_hdmi.c 	 ((codec)->core.revision_id & 0xff00) >= 0x0300)
core             3795 sound/pci/hda/patch_hdmi.c 	struct hda_codec *codec = container_of(hdac, struct hda_codec, core);
core             3831 sound/pci/hda/patch_hdmi.c 	struct hda_codec *codec = container_of(hdac, struct hda_codec, core);
core              248 sound/pci/hda/patch_realtek.c 	snd_hda_codec_write(codec, codec->core.afg, 0,
core              250 sound/pci/hda/patch_realtek.c 	snd_hda_codec_write(codec, codec->core.afg, 0,
core              349 sound/pci/hda/patch_realtek.c 	switch (codec->core.vendor_id) {
core              513 sound/pci/hda/patch_realtek.c 	switch (codec->core.vendor_id) {
core              547 sound/pci/hda/patch_realtek.c 		switch (codec->core.vendor_id) {
core              622 sound/pci/hda/patch_realtek.c 	ass = codec->core.subsystem_id & 0xffff;
core              627 sound/pci/hda/patch_realtek.c 	if (codec->core.vendor_id == 0x10ec0260)
core              633 sound/pci/hda/patch_realtek.c 			   codec->core.chip_name, ass);
core              709 sound/pci/hda/patch_realtek.c 	ass = codec->core.subsystem_id & 0xffff;
core              724 sound/pci/hda/patch_realtek.c 	if (codec->core.vendor_id == 0x10ec0260)
core              745 sound/pci/hda/patch_realtek.c 		   ass & 0xffff, codec->core.vendor_id);
core              845 sound/pci/hda/patch_realtek.c 	((codec)->core.dev.power.power_state.event == PM_EVENT_RESUME)
core              847 sound/pci/hda/patch_realtek.c 	((codec)->core.dev.power.power_state.event == PM_EVENT_RESTORE)
core             1020 sound/pci/hda/patch_realtek.c 		if (p->vendor_id != codec->core.vendor_id)
core             1029 sound/pci/hda/patch_realtek.c 		if (q->codec_vendor_id != codec->core.vendor_id)
core             2546 sound/pci/hda/patch_realtek.c 	switch (codec->core.vendor_id) {
core             3037 sound/pci/hda/patch_realtek.c 	switch (codec->core.vendor_id) {
core             3063 sound/pci/hda/patch_realtek.c 	switch (codec->core.vendor_id) {
core             3643 sound/pci/hda/patch_realtek.c 	    codec->core.dev.power.power_state.event == PM_EVENT_RESTORE) {
core             3837 sound/pci/hda/patch_realtek.c 	if (strcmp(codec->core.chip_name, "ALC271X") &&
core             3838 sound/pci/hda/patch_realtek.c 	    strcmp(codec->core.chip_name, "ALC269VB"))
core             4367 sound/pci/hda/patch_realtek.c 		snd_hda_codec_write_cache(codec, codec->core.afg, 0,
core             4369 sound/pci/hda/patch_realtek.c 		snd_hda_jack_detect_enable_callback(codec, codec->core.afg,
core             4516 sound/pci/hda/patch_realtek.c 	switch (codec->core.vendor_id) {
core             4627 sound/pci/hda/patch_realtek.c 	switch (codec->core.vendor_id) {
core             4770 sound/pci/hda/patch_realtek.c 	switch (codec->core.vendor_id) {
core             4877 sound/pci/hda/patch_realtek.c 	switch (codec->core.vendor_id) {
core             4990 sound/pci/hda/patch_realtek.c 	switch (codec->core.vendor_id) {
core             5082 sound/pci/hda/patch_realtek.c 	switch (codec->core.vendor_id) {
core             5377 sound/pci/hda/patch_realtek.c 	switch (codec->core.vendor_id) {
core             5919 sound/pci/hda/patch_realtek.c 		switch (codec->core.vendor_id) {
core             8249 sound/pci/hda/patch_realtek.c 	switch (codec->core.vendor_id) {
core             8672 sound/pci/hda/patch_realtek.c 	if (codec->core.vendor_id == 0x10ec0272 || codec->core.vendor_id == 0x10ec0663 ||
core             8673 sound/pci/hda/patch_realtek.c 	    codec->core.vendor_id == 0x10ec0665 || codec->core.vendor_id == 0x10ec0670 ||
core             8674 sound/pci/hda/patch_realtek.c 	    codec->core.vendor_id == 0x10ec0671)
core             8719 sound/pci/hda/patch_realtek.c 	if (nid == codec->core.afg && power_state == AC_PWRST_D3 && spec->gpio_data)
core             9488 sound/pci/hda/patch_realtek.c 	switch (codec->core.vendor_id) {
core             9520 sound/pci/hda/patch_realtek.c 		switch (codec->core.vendor_id) {
core              194 sound/pci/hda/patch_si3054.c 	info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = codec->core.mfg;
core              195 sound/pci/hda/patch_si3054.c 	info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = codec->core.mfg;
core              211 sound/pci/hda/patch_si3054.c 	if (snd_hdac_regmap_add_vendor_verb(&codec->core,
core              216 sound/pci/hda/patch_si3054.c 	snd_hda_codec_write(codec, codec->core.mfg, 0, AC_VERB_SET_STREAM_FORMAT, 0);
core              292 sound/pci/hda/patch_sigmatel.c 	hda_nid_t fg = codec->core.afg;
core              363 sound/pci/hda/patch_sigmatel.c 	if (nid == codec->core.afg && power_state == AC_PWRST_D3)
core              408 sound/pci/hda/patch_sigmatel.c 			!(snd_hda_codec_read(codec, codec->core.afg, 0,
core              452 sound/pci/hda/patch_sigmatel.c 			snd_hda_codec_write(codec, codec->core.afg, 0,
core              484 sound/pci/hda/patch_sigmatel.c 	snd_hda_codec_write(codec, codec->core.afg, 0,
core              494 sound/pci/hda/patch_sigmatel.c 	data = snd_hda_codec_read(codec, codec->core.afg, 0,
core              497 sound/pci/hda/patch_sigmatel.c 	snd_hda_codec_write(codec, codec->core.afg, 0, 0x7e0,
core              599 sound/pci/hda/patch_sigmatel.c 	dac_mode = snd_hda_codec_read(codec, codec->core.afg, 0,
core              611 sound/pci/hda/patch_sigmatel.c 	snd_hda_codec_write_cache(codec, codec->core.afg, 0,
core              635 sound/pci/hda/patch_sigmatel.c 	if (codec->core.vendor_id != 0x111d7605 &&
core              636 sound/pci/hda/patch_sigmatel.c 	    codec->core.vendor_id != 0x111d76d1)
core              639 sound/pci/hda/patch_sigmatel.c 	switch (codec->core.subsystem_id) {
core              711 sound/pci/hda/patch_sigmatel.c 	gpio = snd_hda_param_read(codec, codec->core.afg, AC_PAR_GPIO_CAP);
core              755 sound/pci/hda/patch_sigmatel.c 			max_gpio = snd_hda_param_read(codec, codec->core.afg,
core              785 sound/pci/hda/patch_sigmatel.c 	if (!hp_blike_system(codec->core.subsystem_id) &&
core             2142 sound/pci/hda/patch_sigmatel.c 		codec->core.power_caps &= ~AC_PWRST_CLKSTOP;
core             3064 sound/pci/hda/patch_sigmatel.c 	snd_hda_codec_write_cache(codec, codec->core.afg, 0,
core             3066 sound/pci/hda/patch_sigmatel.c 	jack = snd_hda_jack_detect_enable_callback(codec, codec->core.afg,
core             3838 sound/pci/hda/patch_sigmatel.c 	if (codec->core.subsystem_id != 0x1028022f) {
core             4106 sound/pci/hda/patch_sigmatel.c 		snd_hda_codec_write_cache(codec, codec->core.afg, 0,
core             4108 sound/pci/hda/patch_sigmatel.c 		jack = snd_hda_jack_detect_enable_callback(codec, codec->core.afg,
core             4322 sound/pci/hda/patch_sigmatel.c 		if (snd_hdac_regmap_add_vendor_verb(&codec->core, wr_verb))
core             4359 sound/pci/hda/patch_sigmatel.c 		snd_hda_codec_write(codec, codec->core.afg, 0,
core             4395 sound/pci/hda/patch_sigmatel.c 	if (nid == codec->core.afg)
core             4406 sound/pci/hda/patch_sigmatel.c 		    snd_hda_codec_read(codec, codec->core.afg, 0, verb, 0));
core             4414 sound/pci/hda/patch_sigmatel.c 	if (nid == codec->core.afg)
core             4421 sound/pci/hda/patch_sigmatel.c 	if (nid == codec->core.afg)
core             4428 sound/pci/hda/patch_sigmatel.c 	if (nid == codec->core.afg)
core             4551 sound/pci/hda/patch_sigmatel.c 	if ((codec->core.vendor_id & 0xfffffff0) != 0x111d7670)
core             4653 sound/pci/hda/patch_sigmatel.c 	codec->core.power_caps &= ~AC_PWRST_EPSS;
core             4702 sound/pci/hda/patch_sigmatel.c 	codec->core.power_caps &= ~AC_PWRST_EPSS;
core             4758 sound/pci/hda/patch_sigmatel.c 	switch (codec->core.vendor_id) {
core             4764 sound/pci/hda/patch_sigmatel.c 		if ((codec->core.revision_id & 0xf) == 0 ||
core             4765 sound/pci/hda/patch_sigmatel.c 		    (codec->core.revision_id & 0xf) == 1)
core             4774 sound/pci/hda/patch_sigmatel.c 		if ((codec->core.revision_id & 0xf) == 1)
core              126 sound/pci/hda/patch_via.c 	u32 vendor_id = codec->core.vendor_id;
core              358 sound/pci/hda/patch_via.c 	snd_hda_codec_write(codec, codec->core.afg, 0, verb, parm);
core              569 sound/pci/hda/patch_via.c 	if (err < 0 || codec->core.vendor_id != 0x11061708)
core              734 sound/pci/hda/patch_via.c 	if (codec->core.vendor_id == 0x11064397)
core               15 sound/pci/hda/thinkpad_helper.c 	return (codec->core.subsystem_id >> 16 == 0x17aa) &&
core              215 sound/pci/vx222/vx222.c 	vx->core.ibl.size = ibl[dev];
core              218 sound/pci/vx222/vx222.c 		card->shortname, vx->port[0], vx->port[1], vx->core.irq);
core              220 sound/pci/vx222/vx222.c 		    card->shortname, vx->port[0], vx->port[1], vx->core.irq);
core              223 sound/pci/vx222/vx222.c 	vx->core.dev = &pci->dev;
core              226 sound/pci/vx222/vx222.c 	if ((err = snd_vx_setup_firmware(&vx->core)) < 0) {
core              252 sound/pci/vx222/vx222.c 	return snd_vx_suspend(&vx->core);
core              260 sound/pci/vx222/vx222.c 	return snd_vx_resume(&vx->core);
core               15 sound/pci/vx222/vx222.h 	struct vx_core core;
core               29 sound/pci/vx222/vx222.h #define to_vx222(x)	container_of(x, struct snd_vx222, core)
core               18 sound/pcmcia/vx/vxpocket.h 	struct vx_core core;
core               33 sound/pcmcia/vx/vxpocket.h #define to_vxpocket(x)	container_of(x, struct snd_vxpocket, core)
core              958 sound/ppc/snd_ps3.c 	dev->core.dma_mask = &dummy_mask;
core              959 sound/ppc/snd_ps3.c 	dma_set_coherent_mask(&dev->core, dummy_mask);
core              973 sound/ppc/snd_ps3.c 	ret = snd_card_new(&dev->core, index, id, THIS_MODULE,
core             1012 sound/ppc/snd_ps3.c 					&dev->core,
core             1022 sound/ppc/snd_ps3.c 		dma_alloc_coherent(&the_card.ps3_dev->core,
core             1047 sound/ppc/snd_ps3.c 	dma_free_coherent(&the_card.ps3_dev->core,
core             1086 sound/ppc/snd_ps3.c 	dma_free_coherent(&dev->core,
core             1107 sound/ppc/snd_ps3.c 	.core = {
core               97 sound/soc/codecs/arizona.h 	int core;
core               42 sound/soc/codecs/cs47l15.c 	struct madera_priv core;
core               74 sound/soc/codecs/cs47l15.c 	struct madera_priv *priv = &cs47l15->core;
core               88 sound/soc/codecs/cs47l15.c 		ret = madera_set_adsp_clk(&cs47l15->core, w->shift, freq);
core             1232 sound/soc/codecs/cs47l15.c 	struct madera_priv *priv = &cs47l15->core;
core             1251 sound/soc/codecs/cs47l15.c 	struct madera_priv *priv = &cs47l15->core;
core             1267 sound/soc/codecs/cs47l15.c 	struct madera *madera = cs47l15->core.madera;
core             1292 sound/soc/codecs/cs47l15.c 	wm_adsp2_component_probe(&cs47l15->core.adsp[0], component);
core             1300 sound/soc/codecs/cs47l15.c 	struct madera *madera = cs47l15->core.madera;
core             1306 sound/soc/codecs/cs47l15.c 	wm_adsp2_component_remove(&cs47l15->core.adsp[0], component);
core             1368 sound/soc/codecs/cs47l15.c 	cs47l15->core.madera = madera;
core             1369 sound/soc/codecs/cs47l15.c 	cs47l15->core.dev = &pdev->dev;
core             1370 sound/soc/codecs/cs47l15.c 	cs47l15->core.num_inputs = 4;
core             1372 sound/soc/codecs/cs47l15.c 	ret = madera_core_init(&cs47l15->core);
core             1376 sound/soc/codecs/cs47l15.c 	ret = madera_init_overheat(&cs47l15->core);
core             1392 sound/soc/codecs/cs47l15.c 	cs47l15->core.adsp[0].part = "cs47l15";
core             1393 sound/soc/codecs/cs47l15.c 	cs47l15->core.adsp[0].num = 1;
core             1394 sound/soc/codecs/cs47l15.c 	cs47l15->core.adsp[0].type = WMFW_ADSP2;
core             1395 sound/soc/codecs/cs47l15.c 	cs47l15->core.adsp[0].rev = 2;
core             1396 sound/soc/codecs/cs47l15.c 	cs47l15->core.adsp[0].dev = madera->dev;
core             1397 sound/soc/codecs/cs47l15.c 	cs47l15->core.adsp[0].regmap = madera->regmap_32bit;
core             1399 sound/soc/codecs/cs47l15.c 	cs47l15->core.adsp[0].base = MADERA_DSP1_CONFIG_1;
core             1400 sound/soc/codecs/cs47l15.c 	cs47l15->core.adsp[0].mem = cs47l15_dsp1_regions;
core             1401 sound/soc/codecs/cs47l15.c 	cs47l15->core.adsp[0].num_mems = ARRAY_SIZE(cs47l15_dsp1_regions);
core             1403 sound/soc/codecs/cs47l15.c 	cs47l15->core.adsp[0].lock_regions =
core             1406 sound/soc/codecs/cs47l15.c 	ret = wm_adsp2_init(&cs47l15->core.adsp[0]);
core             1410 sound/soc/codecs/cs47l15.c 	ret = madera_init_bus_error_irq(&cs47l15->core, 0, wm_adsp2_bus_error);
core             1420 sound/soc/codecs/cs47l15.c 		madera_init_dai(&cs47l15->core, i);
core             1443 sound/soc/codecs/cs47l15.c 	madera_free_bus_error_irq(&cs47l15->core, 0);
core             1445 sound/soc/codecs/cs47l15.c 	wm_adsp2_remove(&cs47l15->core.adsp[0]);
core             1450 sound/soc/codecs/cs47l15.c 	madera_free_overheat(&cs47l15->core);
core             1452 sound/soc/codecs/cs47l15.c 	madera_core_free(&cs47l15->core);
core             1463 sound/soc/codecs/cs47l15.c 	madera_free_bus_error_irq(&cs47l15->core, 0);
core             1465 sound/soc/codecs/cs47l15.c 	wm_adsp2_remove(&cs47l15->core.adsp[0]);
core             1467 sound/soc/codecs/cs47l15.c 	madera_set_irq_wake(cs47l15->core.madera, MADERA_IRQ_DSP_IRQ1, 0);
core             1468 sound/soc/codecs/cs47l15.c 	madera_free_irq(cs47l15->core.madera, MADERA_IRQ_DSP_IRQ1, cs47l15);
core             1469 sound/soc/codecs/cs47l15.c 	madera_free_overheat(&cs47l15->core);
core             1470 sound/soc/codecs/cs47l15.c 	madera_core_free(&cs47l15->core);
core               36 sound/soc/codecs/cs47l24.c 	struct arizona_priv core;
core             1076 sound/soc/codecs/cs47l24.c 	struct arizona *arizona = priv->core.arizona;
core             1090 sound/soc/codecs/cs47l24.c 	return wm_adsp_compr_open(&priv->core.adsp[n_adsp], stream);
core             1096 sound/soc/codecs/cs47l24.c 	struct arizona *arizona = priv->core.arizona;
core             1102 sound/soc/codecs/cs47l24.c 		ret = wm_adsp_compr_handle_irq(&priv->core.adsp[i]);
core             1106 sound/soc/codecs/cs47l24.c 			info.core = i;
core             1125 sound/soc/codecs/cs47l24.c 	struct arizona *arizona = priv->core.arizona;
core             1138 sound/soc/codecs/cs47l24.c 	ret = wm_adsp2_component_probe(&priv->core.adsp[1], component);
core             1142 sound/soc/codecs/cs47l24.c 	ret = wm_adsp2_component_probe(&priv->core.adsp[2], component);
core             1157 sound/soc/codecs/cs47l24.c 	wm_adsp2_component_remove(&priv->core.adsp[1], component);
core             1158 sound/soc/codecs/cs47l24.c 	wm_adsp2_component_remove(&priv->core.adsp[2], component);
core             1167 sound/soc/codecs/cs47l24.c 	wm_adsp2_component_remove(&priv->core.adsp[1], component);
core             1168 sound/soc/codecs/cs47l24.c 	wm_adsp2_component_remove(&priv->core.adsp[2], component);
core             1170 sound/soc/codecs/cs47l24.c 	priv->core.arizona->dapm = NULL;
core             1232 sound/soc/codecs/cs47l24.c 	cs47l24->core.arizona = arizona;
core             1233 sound/soc/codecs/cs47l24.c 	cs47l24->core.num_inputs = 4;
core             1236 sound/soc/codecs/cs47l24.c 		cs47l24->core.adsp[i].part = "cs47l24";
core             1237 sound/soc/codecs/cs47l24.c 		cs47l24->core.adsp[i].num = i + 1;
core             1238 sound/soc/codecs/cs47l24.c 		cs47l24->core.adsp[i].type = WMFW_ADSP2;
core             1239 sound/soc/codecs/cs47l24.c 		cs47l24->core.adsp[i].dev = arizona->dev;
core             1240 sound/soc/codecs/cs47l24.c 		cs47l24->core.adsp[i].regmap = arizona->regmap;
core             1242 sound/soc/codecs/cs47l24.c 		cs47l24->core.adsp[i].base = ARIZONA_DSP1_CONTROL_1 +
core             1244 sound/soc/codecs/cs47l24.c 		cs47l24->core.adsp[i].mem = cs47l24_dsp_regions[i - 1];
core             1245 sound/soc/codecs/cs47l24.c 		cs47l24->core.adsp[i].num_mems =
core             1248 sound/soc/codecs/cs47l24.c 		ret = wm_adsp2_init(&cs47l24->core.adsp[i]);
core             1270 sound/soc/codecs/cs47l24.c 		arizona_init_dai(&cs47l24->core, i);
core             1326 sound/soc/codecs/cs47l24.c 	struct arizona *arizona = cs47l24->core.arizona;
core             1330 sound/soc/codecs/cs47l24.c 	wm_adsp2_remove(&cs47l24->core.adsp[1]);
core             1331 sound/soc/codecs/cs47l24.c 	wm_adsp2_remove(&cs47l24->core.adsp[2]);
core               36 sound/soc/codecs/cs47l35.c 	struct madera_priv core;
core               92 sound/soc/codecs/cs47l35.c 	struct madera_priv *priv = &cs47l35->core;
core              109 sound/soc/codecs/cs47l35.c 		ret = madera_set_adsp_clk(&cs47l35->core, w->shift, freq);
core             1508 sound/soc/codecs/cs47l35.c 	struct madera_priv *priv = &cs47l35->core;
core             1529 sound/soc/codecs/cs47l35.c 	struct madera_priv *priv = &cs47l35->core;
core             1558 sound/soc/codecs/cs47l35.c 	struct madera *madera = cs47l35->core.madera;
core             1584 sound/soc/codecs/cs47l35.c 		wm_adsp2_component_probe(&cs47l35->core.adsp[i], component);
core             1592 sound/soc/codecs/cs47l35.c 	struct madera *madera = cs47l35->core.madera;
core             1600 sound/soc/codecs/cs47l35.c 		wm_adsp2_component_remove(&cs47l35->core.adsp[i], component);
core             1660 sound/soc/codecs/cs47l35.c 	cs47l35->core.madera = madera;
core             1661 sound/soc/codecs/cs47l35.c 	cs47l35->core.dev = &pdev->dev;
core             1662 sound/soc/codecs/cs47l35.c 	cs47l35->core.num_inputs = 4;
core             1664 sound/soc/codecs/cs47l35.c 	ret = madera_core_init(&cs47l35->core);
core             1668 sound/soc/codecs/cs47l35.c 	ret = madera_init_overheat(&cs47l35->core);
core             1685 sound/soc/codecs/cs47l35.c 		cs47l35->core.adsp[i].part = "cs47l35";
core             1686 sound/soc/codecs/cs47l35.c 		cs47l35->core.adsp[i].num = i + 1;
core             1687 sound/soc/codecs/cs47l35.c 		cs47l35->core.adsp[i].type = WMFW_ADSP2;
core             1688 sound/soc/codecs/cs47l35.c 		cs47l35->core.adsp[i].rev = 1;
core             1689 sound/soc/codecs/cs47l35.c 		cs47l35->core.adsp[i].dev = madera->dev;
core             1690 sound/soc/codecs/cs47l35.c 		cs47l35->core.adsp[i].regmap = madera->regmap_32bit;
core             1692 sound/soc/codecs/cs47l35.c 		cs47l35->core.adsp[i].base = wm_adsp2_control_bases[i];
core             1693 sound/soc/codecs/cs47l35.c 		cs47l35->core.adsp[i].mem = cs47l35_dsp_regions[i];
core             1694 sound/soc/codecs/cs47l35.c 		cs47l35->core.adsp[i].num_mems =
core             1697 sound/soc/codecs/cs47l35.c 		ret = wm_adsp2_init(&cs47l35->core.adsp[i]);
core             1700 sound/soc/codecs/cs47l35.c 				wm_adsp2_remove(&cs47l35->core.adsp[i]);
core             1708 sound/soc/codecs/cs47l35.c 		madera_init_dai(&cs47l35->core, i);
core             1733 sound/soc/codecs/cs47l35.c 		wm_adsp2_remove(&cs47l35->core.adsp[i]);
core             1738 sound/soc/codecs/cs47l35.c 	madera_free_overheat(&cs47l35->core);
core             1740 sound/soc/codecs/cs47l35.c 	madera_core_free(&cs47l35->core);
core             1753 sound/soc/codecs/cs47l35.c 		wm_adsp2_remove(&cs47l35->core.adsp[i]);
core             1755 sound/soc/codecs/cs47l35.c 	madera_set_irq_wake(cs47l35->core.madera, MADERA_IRQ_DSP_IRQ1, 0);
core             1756 sound/soc/codecs/cs47l35.c 	madera_free_irq(cs47l35->core.madera, MADERA_IRQ_DSP_IRQ1, cs47l35);
core             1757 sound/soc/codecs/cs47l35.c 	madera_free_overheat(&cs47l35->core);
core             1758 sound/soc/codecs/cs47l35.c 	madera_core_free(&cs47l35->core);
core               36 sound/soc/codecs/cs47l85.c 	struct madera_priv core;
core              116 sound/soc/codecs/cs47l85.c 	struct madera_priv *priv = &cs47l85->core;
core              133 sound/soc/codecs/cs47l85.c 		ret = madera_set_adsp_clk(&cs47l85->core, w->shift, freq);
core             2447 sound/soc/codecs/cs47l85.c 	struct madera_priv *priv = &cs47l85->core;
core             2468 sound/soc/codecs/cs47l85.c 	struct madera_priv *priv = &cs47l85->core;
core             2497 sound/soc/codecs/cs47l85.c 	struct madera *madera = cs47l85->core.madera;
core             2523 sound/soc/codecs/cs47l85.c 		wm_adsp2_component_probe(&cs47l85->core.adsp[i], component);
core             2531 sound/soc/codecs/cs47l85.c 	struct madera *madera = cs47l85->core.madera;
core             2539 sound/soc/codecs/cs47l85.c 		wm_adsp2_component_remove(&cs47l85->core.adsp[i], component);
core             2608 sound/soc/codecs/cs47l85.c 	cs47l85->core.madera = madera;
core             2609 sound/soc/codecs/cs47l85.c 	cs47l85->core.dev = &pdev->dev;
core             2610 sound/soc/codecs/cs47l85.c 	cs47l85->core.num_inputs = 12;
core             2612 sound/soc/codecs/cs47l85.c 	ret = madera_core_init(&cs47l85->core);
core             2616 sound/soc/codecs/cs47l85.c 	ret = madera_init_overheat(&cs47l85->core);
core             2633 sound/soc/codecs/cs47l85.c 		cs47l85->core.adsp[i].part = "cs47l85";
core             2634 sound/soc/codecs/cs47l85.c 		cs47l85->core.adsp[i].num = i + 1;
core             2635 sound/soc/codecs/cs47l85.c 		cs47l85->core.adsp[i].type = WMFW_ADSP2;
core             2636 sound/soc/codecs/cs47l85.c 		cs47l85->core.adsp[i].rev = 1;
core             2637 sound/soc/codecs/cs47l85.c 		cs47l85->core.adsp[i].dev = madera->dev;
core             2638 sound/soc/codecs/cs47l85.c 		cs47l85->core.adsp[i].regmap = madera->regmap_32bit;
core             2640 sound/soc/codecs/cs47l85.c 		cs47l85->core.adsp[i].base = wm_adsp2_control_bases[i];
core             2641 sound/soc/codecs/cs47l85.c 		cs47l85->core.adsp[i].mem = cs47l85_dsp_regions[i];
core             2642 sound/soc/codecs/cs47l85.c 		cs47l85->core.adsp[i].num_mems =
core             2645 sound/soc/codecs/cs47l85.c 		ret = wm_adsp2_init(&cs47l85->core.adsp[i]);
core             2648 sound/soc/codecs/cs47l85.c 				wm_adsp2_remove(&cs47l85->core.adsp[i]);
core             2661 sound/soc/codecs/cs47l85.c 		madera_init_dai(&cs47l85->core, i);
core             2686 sound/soc/codecs/cs47l85.c 		wm_adsp2_remove(&cs47l85->core.adsp[i]);
core             2691 sound/soc/codecs/cs47l85.c 	madera_free_overheat(&cs47l85->core);
core             2693 sound/soc/codecs/cs47l85.c 	madera_core_free(&cs47l85->core);
core             2706 sound/soc/codecs/cs47l85.c 		wm_adsp2_remove(&cs47l85->core.adsp[i]);
core             2708 sound/soc/codecs/cs47l85.c 	madera_set_irq_wake(cs47l85->core.madera, MADERA_IRQ_DSP_IRQ1, 0);
core             2709 sound/soc/codecs/cs47l85.c 	madera_free_irq(cs47l85->core.madera, MADERA_IRQ_DSP_IRQ1, cs47l85);
core             2710 sound/soc/codecs/cs47l85.c 	madera_free_overheat(&cs47l85->core);
core             2711 sound/soc/codecs/cs47l85.c 	madera_core_free(&cs47l85->core);
core               36 sound/soc/codecs/cs47l90.c 	struct madera_priv core;
core              116 sound/soc/codecs/cs47l90.c 	struct madera_priv *priv = &cs47l90->core;
core              130 sound/soc/codecs/cs47l90.c 		ret = madera_set_adsp_clk(&cs47l90->core, w->shift, freq);
core             2358 sound/soc/codecs/cs47l90.c 	struct madera_priv *priv = &cs47l90->core;
core             2379 sound/soc/codecs/cs47l90.c 	struct madera_priv *priv = &cs47l90->core;
core             2408 sound/soc/codecs/cs47l90.c 	struct madera *madera = cs47l90->core.madera;
core             2434 sound/soc/codecs/cs47l90.c 		wm_adsp2_component_probe(&cs47l90->core.adsp[i], component);
core             2442 sound/soc/codecs/cs47l90.c 	struct madera *madera = cs47l90->core.madera;
core             2450 sound/soc/codecs/cs47l90.c 		wm_adsp2_component_remove(&cs47l90->core.adsp[i], component);
core             2515 sound/soc/codecs/cs47l90.c 	cs47l90->core.madera = madera;
core             2516 sound/soc/codecs/cs47l90.c 	cs47l90->core.dev = &pdev->dev;
core             2517 sound/soc/codecs/cs47l90.c 	cs47l90->core.num_inputs = 10;
core             2519 sound/soc/codecs/cs47l90.c 	ret = madera_core_init(&cs47l90->core);
core             2536 sound/soc/codecs/cs47l90.c 		cs47l90->core.adsp[i].part = "cs47l90";
core             2537 sound/soc/codecs/cs47l90.c 		cs47l90->core.adsp[i].num = i + 1;
core             2538 sound/soc/codecs/cs47l90.c 		cs47l90->core.adsp[i].type = WMFW_ADSP2;
core             2539 sound/soc/codecs/cs47l90.c 		cs47l90->core.adsp[i].rev = 2;
core             2540 sound/soc/codecs/cs47l90.c 		cs47l90->core.adsp[i].dev = madera->dev;
core             2541 sound/soc/codecs/cs47l90.c 		cs47l90->core.adsp[i].regmap = madera->regmap_32bit;
core             2543 sound/soc/codecs/cs47l90.c 		cs47l90->core.adsp[i].base = cs47l90_dsp_control_bases[i];
core             2544 sound/soc/codecs/cs47l90.c 		cs47l90->core.adsp[i].mem = cs47l90_dsp_regions[i];
core             2545 sound/soc/codecs/cs47l90.c 		cs47l90->core.adsp[i].num_mems =
core             2548 sound/soc/codecs/cs47l90.c 		cs47l90->core.adsp[i].lock_regions = WM_ADSP2_REGION_1_9;
core             2550 sound/soc/codecs/cs47l90.c 		ret = wm_adsp2_init(&cs47l90->core.adsp[i]);
core             2553 sound/soc/codecs/cs47l90.c 			ret = madera_init_bus_error_irq(&cs47l90->core, i,
core             2556 sound/soc/codecs/cs47l90.c 				wm_adsp2_remove(&cs47l90->core.adsp[i]);
core             2561 sound/soc/codecs/cs47l90.c 				madera_free_bus_error_irq(&cs47l90->core, i);
core             2562 sound/soc/codecs/cs47l90.c 				wm_adsp2_remove(&cs47l90->core.adsp[i]);
core             2576 sound/soc/codecs/cs47l90.c 		madera_init_dai(&cs47l90->core, i);
core             2601 sound/soc/codecs/cs47l90.c 		madera_free_bus_error_irq(&cs47l90->core, i);
core             2602 sound/soc/codecs/cs47l90.c 		wm_adsp2_remove(&cs47l90->core.adsp[i]);
core             2608 sound/soc/codecs/cs47l90.c 	madera_core_free(&cs47l90->core);
core             2621 sound/soc/codecs/cs47l90.c 		madera_free_bus_error_irq(&cs47l90->core, i);
core             2622 sound/soc/codecs/cs47l90.c 		wm_adsp2_remove(&cs47l90->core.adsp[i]);
core             2625 sound/soc/codecs/cs47l90.c 	madera_set_irq_wake(cs47l90->core.madera, MADERA_IRQ_DSP_IRQ1, 0);
core             2626 sound/soc/codecs/cs47l90.c 	madera_free_irq(cs47l90->core.madera, MADERA_IRQ_DSP_IRQ1, cs47l90);
core             2627 sound/soc/codecs/cs47l90.c 	madera_core_free(&cs47l90->core);
core               36 sound/soc/codecs/cs47l92.c 	struct madera_priv core;
core               60 sound/soc/codecs/cs47l92.c 	struct madera_priv *priv = &cs47l92->core;
core              141 sound/soc/codecs/cs47l92.c 	struct madera_priv *priv = &cs47l92->core;
core              155 sound/soc/codecs/cs47l92.c 		ret = madera_set_adsp_clk(&cs47l92->core, w->shift, freq);
core             1788 sound/soc/codecs/cs47l92.c 	struct madera_priv *priv = &cs47l92->core;
core             1807 sound/soc/codecs/cs47l92.c 	struct madera_priv *priv = &cs47l92->core;
core             1823 sound/soc/codecs/cs47l92.c 	struct madera *madera = cs47l92->core.madera;
core             1848 sound/soc/codecs/cs47l92.c 	return wm_adsp2_component_probe(&cs47l92->core.adsp[0], component);
core             1854 sound/soc/codecs/cs47l92.c 	struct madera *madera = cs47l92->core.madera;
core             1860 sound/soc/codecs/cs47l92.c 	wm_adsp2_component_remove(&cs47l92->core.adsp[0], component);
core             1924 sound/soc/codecs/cs47l92.c 	cs47l92->core.madera = madera;
core             1925 sound/soc/codecs/cs47l92.c 	cs47l92->core.dev = &pdev->dev;
core             1926 sound/soc/codecs/cs47l92.c 	cs47l92->core.num_inputs = 8;
core             1928 sound/soc/codecs/cs47l92.c 	ret = madera_core_init(&cs47l92->core);
core             1944 sound/soc/codecs/cs47l92.c 	cs47l92->core.adsp[0].part = "cs47l92";
core             1945 sound/soc/codecs/cs47l92.c 	cs47l92->core.adsp[0].num = 1;
core             1946 sound/soc/codecs/cs47l92.c 	cs47l92->core.adsp[0].type = WMFW_ADSP2;
core             1947 sound/soc/codecs/cs47l92.c 	cs47l92->core.adsp[0].rev = 2;
core             1948 sound/soc/codecs/cs47l92.c 	cs47l92->core.adsp[0].dev = madera->dev;
core             1949 sound/soc/codecs/cs47l92.c 	cs47l92->core.adsp[0].regmap = madera->regmap_32bit;
core             1951 sound/soc/codecs/cs47l92.c 	cs47l92->core.adsp[0].base = MADERA_DSP1_CONFIG_1;
core             1952 sound/soc/codecs/cs47l92.c 	cs47l92->core.adsp[0].mem = cs47l92_dsp1_regions;
core             1953 sound/soc/codecs/cs47l92.c 	cs47l92->core.adsp[0].num_mems = ARRAY_SIZE(cs47l92_dsp1_regions);
core             1955 sound/soc/codecs/cs47l92.c 	cs47l92->core.adsp[0].lock_regions = WM_ADSP2_REGION_1_9;
core             1957 sound/soc/codecs/cs47l92.c 	ret = wm_adsp2_init(&cs47l92->core.adsp[0]);
core             1961 sound/soc/codecs/cs47l92.c 	ret = madera_init_bus_error_irq(&cs47l92->core, 0, wm_adsp2_bus_error);
core             1963 sound/soc/codecs/cs47l92.c 		wm_adsp2_remove(&cs47l92->core.adsp[0]);
core             1973 sound/soc/codecs/cs47l92.c 		madera_init_dai(&cs47l92->core, i);
core             1996 sound/soc/codecs/cs47l92.c 	madera_free_bus_error_irq(&cs47l92->core, 0);
core             1998 sound/soc/codecs/cs47l92.c 	wm_adsp2_remove(&cs47l92->core.adsp[0]);
core             2003 sound/soc/codecs/cs47l92.c 	madera_core_free(&cs47l92->core);
core             2014 sound/soc/codecs/cs47l92.c 	madera_free_bus_error_irq(&cs47l92->core, 0);
core             2015 sound/soc/codecs/cs47l92.c 	wm_adsp2_remove(&cs47l92->core.adsp[0]);
core             2017 sound/soc/codecs/cs47l92.c 	madera_set_irq_wake(cs47l92->core.madera, MADERA_IRQ_DSP_IRQ1, 0);
core             2018 sound/soc/codecs/cs47l92.c 	madera_free_irq(cs47l92->core.madera, MADERA_IRQ_DSP_IRQ1, cs47l92);
core             2020 sound/soc/codecs/cs47l92.c 	madera_core_free(&cs47l92->core);
core              211 sound/soc/codecs/hdac_hda.c 	hdev = &hda_pvt->codec.core;
core              292 sound/soc/codecs/hdac_hda.c 		dev_err(&hcodec->core.dev, "invalid dai id %d\n", dai->id);
core              301 sound/soc/codecs/hdac_hda.c 	dev_err(&hcodec->core.dev, "didn't find PCM for DAI %s\n", dai->name);
core              311 sound/soc/codecs/hdac_hda.c 	struct hdac_device *hdev = &hda_pvt->codec.core;
core              352 sound/soc/codecs/hdac_hda.c 	ret = snd_hdac_regmap_init(&hcodec->core);
core              381 sound/soc/codecs/hdac_hda.c 	hcodec->core.lazy_cache = true;
core              404 sound/soc/codecs/hdac_hda.c 	struct hdac_device *hdev = &hda_pvt->codec.core;
core               20 sound/soc/codecs/hdac_hda.h 			container_of(_hdac, struct hdac_hda_priv, codec.core)
core               21 sound/soc/codecs/hdac_hda.h #define hdac_to_hda_codec(_hdac) container_of(_hdac, struct hda_codec, core)
core               68 sound/soc/codecs/si476x.c 	struct si476x_core *core = i2c_mfd_cell_to_core(codec_dai->dev);
core              132 sound/soc/codecs/si476x.c 	si476x_core_lock(core);
core              138 sound/soc/codecs/si476x.c 	si476x_core_unlock(core);
core              152 sound/soc/codecs/si476x.c 	struct si476x_core *core = i2c_mfd_cell_to_core(dai->dev);
core              178 sound/soc/codecs/si476x.c 	si476x_core_lock(core);
core              197 sound/soc/codecs/si476x.c 	si476x_core_unlock(core);
core               25 sound/soc/codecs/wl1273.c 	struct wl1273_core *core;
core               29 sound/soc/codecs/wl1273.c static int snd_wl1273_fm_set_i2s_mode(struct wl1273_core *core,
core               32 sound/soc/codecs/wl1273.c 	struct device *dev = &core->client->dev;
core               39 sound/soc/codecs/wl1273.c 	mutex_lock(&core->lock);
core               41 sound/soc/codecs/wl1273.c 	mode = core->i2s_mode & ~WL1273_IS2_WIDTH & ~WL1273_IS2_RATE;
core              109 sound/soc/codecs/wl1273.c 	dev_dbg(dev, "core->i2s_mode: 0x%04x\n", core->i2s_mode);
core              112 sound/soc/codecs/wl1273.c 	if (core->i2s_mode != mode) {
core              113 sound/soc/codecs/wl1273.c 		r = core->write(core, WL1273_I2S_MODE_CONFIG_SET, mode);
core              117 sound/soc/codecs/wl1273.c 		core->i2s_mode = mode;
core              118 sound/soc/codecs/wl1273.c 		r = core->write(core, WL1273_AUDIO_ENABLE,
core              124 sound/soc/codecs/wl1273.c 	mutex_unlock(&core->lock);
core              129 sound/soc/codecs/wl1273.c static int snd_wl1273_fm_set_channel_number(struct wl1273_core *core,
core              132 sound/soc/codecs/wl1273.c 	struct device *dev = &core->client->dev;
core              137 sound/soc/codecs/wl1273.c 	mutex_lock(&core->lock);
core              139 sound/soc/codecs/wl1273.c 	if (core->channel_number == channel_number)
core              142 sound/soc/codecs/wl1273.c 	if (channel_number == 1 && core->mode == WL1273_MODE_RX)
core              143 sound/soc/codecs/wl1273.c 		r = core->write(core, WL1273_MOST_MODE_SET, WL1273_RX_MONO);
core              144 sound/soc/codecs/wl1273.c 	else if (channel_number == 1 && core->mode == WL1273_MODE_TX)
core              145 sound/soc/codecs/wl1273.c 		r = core->write(core, WL1273_MONO_SET, WL1273_TX_MONO);
core              146 sound/soc/codecs/wl1273.c 	else if (channel_number == 2 && core->mode == WL1273_MODE_RX)
core              147 sound/soc/codecs/wl1273.c 		r = core->write(core, WL1273_MOST_MODE_SET, WL1273_RX_STEREO);
core              148 sound/soc/codecs/wl1273.c 	else if (channel_number == 2 && core->mode == WL1273_MODE_TX)
core              149 sound/soc/codecs/wl1273.c 		r = core->write(core, WL1273_MONO_SET, WL1273_TX_STEREO);
core              153 sound/soc/codecs/wl1273.c 	mutex_unlock(&core->lock);
core              207 sound/soc/codecs/wl1273.c 	ucontrol->value.enumerated.item[0] = wl1273->core->audio_mode;
core              222 sound/soc/codecs/wl1273.c 	if (wl1273->core->audio_mode == val)
core              225 sound/soc/codecs/wl1273.c 	r = wl1273->core->set_audio(wl1273->core, val);
core              244 sound/soc/codecs/wl1273.c 	ucontrol->value.integer.value[0] = wl1273->core->volume;
core              258 sound/soc/codecs/wl1273.c 	r = wl1273->core->set_volume(wl1273->core,
core              325 sound/soc/codecs/wl1273.c 	struct wl1273_core *core = wl1273->core;
core              369 sound/soc/codecs/wl1273.c 	r = snd_wl1273_fm_set_i2s_mode(core, rate, width);
core              374 sound/soc/codecs/wl1273.c 	r = snd_wl1273_fm_set_channel_number(core, wl1273->channels);
core              437 sound/soc/codecs/wl1273.c 	struct wl1273_core **core = component->dev->platform_data;
core              442 sound/soc/codecs/wl1273.c 	if (!core) {
core              452 sound/soc/codecs/wl1273.c 	wl1273->core = *core;
core               37 sound/soc/codecs/wm5102.c 	struct arizona_priv core;
core             1918 sound/soc/codecs/wm5102.c 	return wm_adsp_compr_open(&priv->core.adsp[0], stream);
core             1924 sound/soc/codecs/wm5102.c 	struct arizona *arizona = priv->core.arizona;
core             1927 sound/soc/codecs/wm5102.c 	ret = wm_adsp_compr_handle_irq(&priv->core.adsp[0]);
core             1940 sound/soc/codecs/wm5102.c 	struct arizona *arizona = priv->core.arizona;
core             1945 sound/soc/codecs/wm5102.c 	ret = wm_adsp2_component_probe(&priv->core.adsp[0], component);
core             1962 sound/soc/codecs/wm5102.c 	priv->core.arizona->dapm = dapm;
core             1967 sound/soc/codecs/wm5102.c 	wm_adsp2_component_remove(&priv->core.adsp[0], component);
core             1976 sound/soc/codecs/wm5102.c 	wm_adsp2_component_remove(&priv->core.adsp[0], component);
core             1978 sound/soc/codecs/wm5102.c 	priv->core.arizona->dapm = NULL;
core             2045 sound/soc/codecs/wm5102.c 	wm5102->core.arizona = arizona;
core             2046 sound/soc/codecs/wm5102.c 	wm5102->core.num_inputs = 6;
core             2048 sound/soc/codecs/wm5102.c 	arizona_init_dvfs(&wm5102->core);
core             2050 sound/soc/codecs/wm5102.c 	wm5102->core.adsp[0].part = "wm5102";
core             2051 sound/soc/codecs/wm5102.c 	wm5102->core.adsp[0].num = 1;
core             2052 sound/soc/codecs/wm5102.c 	wm5102->core.adsp[0].type = WMFW_ADSP2;
core             2053 sound/soc/codecs/wm5102.c 	wm5102->core.adsp[0].base = ARIZONA_DSP1_CONTROL_1;
core             2054 sound/soc/codecs/wm5102.c 	wm5102->core.adsp[0].dev = arizona->dev;
core             2055 sound/soc/codecs/wm5102.c 	wm5102->core.adsp[0].regmap = arizona->regmap;
core             2056 sound/soc/codecs/wm5102.c 	wm5102->core.adsp[0].mem = wm5102_dsp1_regions;
core             2057 sound/soc/codecs/wm5102.c 	wm5102->core.adsp[0].num_mems = ARRAY_SIZE(wm5102_dsp1_regions);
core             2059 sound/soc/codecs/wm5102.c 	ret = wm_adsp2_init(&wm5102->core.adsp[0]);
core             2080 sound/soc/codecs/wm5102.c 		arizona_init_dai(&wm5102->core, i);
core             2136 sound/soc/codecs/wm5102.c 	struct arizona *arizona = wm5102->core.arizona;
core             2140 sound/soc/codecs/wm5102.c 	wm_adsp2_remove(&wm5102->core.adsp[0]);
core               38 sound/soc/codecs/wm5110.c 	struct arizona_priv core;
core             2245 sound/soc/codecs/wm5110.c 	struct arizona *arizona = priv->core.arizona;
core             2259 sound/soc/codecs/wm5110.c 	return wm_adsp_compr_open(&priv->core.adsp[n_adsp], stream);
core             2265 sound/soc/codecs/wm5110.c 	struct arizona *arizona = priv->core.arizona;
core             2271 sound/soc/codecs/wm5110.c 		ret = wm_adsp_compr_handle_irq(&priv->core.adsp[i]);
core             2275 sound/soc/codecs/wm5110.c 			info.core = i;
core             2294 sound/soc/codecs/wm5110.c 	struct arizona *arizona = priv->core.arizona;
core             2308 sound/soc/codecs/wm5110.c 		ret = wm_adsp2_component_probe(&priv->core.adsp[i], component);
core             2325 sound/soc/codecs/wm5110.c 		wm_adsp2_component_remove(&priv->core.adsp[i], component);
core             2336 sound/soc/codecs/wm5110.c 		wm_adsp2_component_remove(&priv->core.adsp[i], component);
core             2338 sound/soc/codecs/wm5110.c 	priv->core.arizona->dapm = NULL;
core             2406 sound/soc/codecs/wm5110.c 	wm5110->core.arizona = arizona;
core             2407 sound/soc/codecs/wm5110.c 	wm5110->core.num_inputs = 8;
core             2410 sound/soc/codecs/wm5110.c 		wm5110->core.adsp[i].part = "wm5110";
core             2411 sound/soc/codecs/wm5110.c 		wm5110->core.adsp[i].num = i + 1;
core             2412 sound/soc/codecs/wm5110.c 		wm5110->core.adsp[i].type = WMFW_ADSP2;
core             2413 sound/soc/codecs/wm5110.c 		wm5110->core.adsp[i].dev = arizona->dev;
core             2414 sound/soc/codecs/wm5110.c 		wm5110->core.adsp[i].regmap = arizona->regmap;
core             2416 sound/soc/codecs/wm5110.c 		wm5110->core.adsp[i].base = ARIZONA_DSP1_CONTROL_1
core             2418 sound/soc/codecs/wm5110.c 		wm5110->core.adsp[i].mem = wm5110_dsp_regions[i];
core             2419 sound/soc/codecs/wm5110.c 		wm5110->core.adsp[i].num_mems
core             2422 sound/soc/codecs/wm5110.c 		ret = wm_adsp2_init(&wm5110->core.adsp[i]);
core             2444 sound/soc/codecs/wm5110.c 		arizona_init_dai(&wm5110->core, i);
core             2500 sound/soc/codecs/wm5110.c 	struct arizona *arizona = wm5110->core.arizona;
core             2506 sound/soc/codecs/wm5110.c 		wm_adsp2_remove(&wm5110->core.adsp[i]);
core               33 sound/soc/codecs/wm8997.c 	struct arizona_priv core;
core             1060 sound/soc/codecs/wm8997.c 	struct arizona *arizona = priv->core.arizona;
core             1071 sound/soc/codecs/wm8997.c 	priv->core.arizona->dapm = dapm;
core             1080 sound/soc/codecs/wm8997.c 	priv->core.arizona->dapm = NULL;
core             1130 sound/soc/codecs/wm8997.c 	wm8997->core.arizona = arizona;
core             1131 sound/soc/codecs/wm8997.c 	wm8997->core.num_inputs = 4;
core             1133 sound/soc/codecs/wm8997.c 	arizona_init_dvfs(&wm8997->core);
core             1152 sound/soc/codecs/wm8997.c 		arizona_init_dai(&wm8997->core, i);
core             1189 sound/soc/codecs/wm8997.c 	struct arizona *arizona = wm8997->core.arizona;
core               33 sound/soc/codecs/wm8998.c 	struct arizona_priv core;
core              107 sound/soc/codecs/wm8998.c 	struct arizona *arizona = wm8998->core.arizona;
core             1276 sound/soc/codecs/wm8998.c 	struct arizona *arizona = priv->core.arizona;
core             1297 sound/soc/codecs/wm8998.c 	priv->core.arizona->dapm = NULL;
core             1350 sound/soc/codecs/wm8998.c 	wm8998->core.arizona = arizona;
core             1351 sound/soc/codecs/wm8998.c 	wm8998->core.num_inputs = 3;	/* IN1L, IN1R, IN2 */
core             1364 sound/soc/codecs/wm8998.c 		arizona_init_dai(&wm8998->core, i);
core             1400 sound/soc/codecs/wm8998.c 	struct arizona *arizona = wm8998->core.arizona;
core             1853 sound/soc/codecs/wm_adsp.c 	if (header->core != dsp->type) {
core             1855 sound/soc/codecs/wm_adsp.c 			 file, header->core, dsp->type);
core               35 sound/soc/codecs/wmfw.h 	u8 core;
core              161 sound/soc/codecs/wmfw.h 		__be32 core;
core               85 sound/soc/intel/skylake/cnl-sst-dsp.h int cnl_dsp_enable_core(struct sst_dsp *ctx, unsigned int core);
core               86 sound/soc/intel/skylake/cnl-sst-dsp.h int cnl_dsp_disable_core(struct sst_dsp *ctx, unsigned int core);
core              682 sound/soc/intel/skylake/skl.c 	snd_hdac_codec_modalias(&codec->core, modalias, sizeof(modalias));
core              684 sound/soc/intel/skylake/skl.c 	dev_dbg(&codec->core.dev, "loading %s codec module\n", mod);
core              721 sound/soc/intel/skylake/skl.c 	hdev = &hda_codec->codec.core;
core              137 sound/soc/intel/skylake/skl.h #define skl_to_bus(s)  (&(s)->hbus.core)
core              138 sound/soc/intel/skylake/skl.h #define bus_to_skl(bus) container_of(bus, struct skl_dev, hbus.core)
core               72 sound/soc/qcom/qdsp6/q6core.c 	struct q6core *core = dev_get_drvdata(&adev->dev);
core               83 sound/soc/qcom/qdsp6/q6core.c 				core->get_version_supported = false;
core               84 sound/soc/qcom/qdsp6/q6core.c 			core->resp_received = true;
core               88 sound/soc/qcom/qdsp6/q6core.c 				core->fwk_version_supported = false;
core               89 sound/soc/qcom/qdsp6/q6core.c 			core->resp_received = true;
core               93 sound/soc/qcom/qdsp6/q6core.c 				core->get_state_supported = false;
core               94 sound/soc/qcom/qdsp6/q6core.c 			core->resp_received = true;
core              104 sound/soc/qcom/qdsp6/q6core.c 		core->fwk_version = kmemdup(data->payload,
core              108 sound/soc/qcom/qdsp6/q6core.c 		if (!core->fwk_version)
core              111 sound/soc/qcom/qdsp6/q6core.c 		core->fwk_version_supported = true;
core              112 sound/soc/qcom/qdsp6/q6core.c 		core->resp_received = true;
core              121 sound/soc/qcom/qdsp6/q6core.c 		core->svc_version = kmemdup(data->payload,
core              125 sound/soc/qcom/qdsp6/q6core.c 		if (!core->svc_version)
core              128 sound/soc/qcom/qdsp6/q6core.c 		core->get_version_supported = true;
core              129 sound/soc/qcom/qdsp6/q6core.c 		core->resp_received = true;
core              134 sound/soc/qcom/qdsp6/q6core.c 		core->get_state_supported = true;
core              135 sound/soc/qcom/qdsp6/q6core.c 		core->avcs_state = result->opcode;
core              137 sound/soc/qcom/qdsp6/q6core.c 		core->resp_received = true;
core              145 sound/soc/qcom/qdsp6/q6core.c 	if (core->resp_received)
core              146 sound/soc/qcom/qdsp6/q6core.c 		wake_up(&core->wait);
core              151 sound/soc/qcom/qdsp6/q6core.c static int q6core_get_fwk_versions(struct q6core *core)
core              153 sound/soc/qcom/qdsp6/q6core.c 	struct apr_device *adev = core->adev;
core              166 sound/soc/qcom/qdsp6/q6core.c 	rc = wait_event_timeout(core->wait, (core->resp_received),
core              168 sound/soc/qcom/qdsp6/q6core.c 	if (rc > 0 && core->resp_received) {
core              169 sound/soc/qcom/qdsp6/q6core.c 		core->resp_received = false;
core              171 sound/soc/qcom/qdsp6/q6core.c 		if (!core->fwk_version_supported)
core              181 sound/soc/qcom/qdsp6/q6core.c static int q6core_get_svc_versions(struct q6core *core)
core              183 sound/soc/qcom/qdsp6/q6core.c 	struct apr_device *adev = core->adev;
core              196 sound/soc/qcom/qdsp6/q6core.c 	rc = wait_event_timeout(core->wait, (core->resp_received),
core              198 sound/soc/qcom/qdsp6/q6core.c 	if (rc > 0 && core->resp_received) {
core              199 sound/soc/qcom/qdsp6/q6core.c 		core->resp_received = false;
core              206 sound/soc/qcom/qdsp6/q6core.c static bool __q6core_is_adsp_ready(struct q6core *core)
core              208 sound/soc/qcom/qdsp6/q6core.c 	struct apr_device *adev = core->adev;
core              212 sound/soc/qcom/qdsp6/q6core.c 	core->get_state_supported = false;
core              223 sound/soc/qcom/qdsp6/q6core.c 	rc = wait_event_timeout(core->wait, (core->resp_received),
core              225 sound/soc/qcom/qdsp6/q6core.c 	if (rc > 0 && core->resp_received) {
core              226 sound/soc/qcom/qdsp6/q6core.c 		core->resp_received = false;
core              228 sound/soc/qcom/qdsp6/q6core.c 		if (core->avcs_state)
core              233 sound/soc/qcom/qdsp6/q6core.c 	if (!core->get_state_supported)
core              344 sound/soc/qcom/qdsp6/q6core.c 	struct q6core *core = dev_get_drvdata(&adev->dev);
core              346 sound/soc/qcom/qdsp6/q6core.c 	if (core->fwk_version_supported)
core              347 sound/soc/qcom/qdsp6/q6core.c 		kfree(core->fwk_version);
core              348 sound/soc/qcom/qdsp6/q6core.c 	if (core->get_version_supported)
core              349 sound/soc/qcom/qdsp6/q6core.c 		kfree(core->svc_version);
core              352 sound/soc/qcom/qdsp6/q6core.c 	kfree(core);
core              296 sound/soc/sh/fsi.c 	const struct fsi_core *core;
core              344 sound/soc/sh/fsi.c #define fsi_core_read(p, r)   _fsi_master_read(p, p->core->r)
core              358 sound/soc/sh/fsi.c #define fsi_core_mask_set(p, r, m, d)  _fsi_master_mask_set(p, p->core->r, m, d)
core              374 sound/soc/sh/fsi.c 	return master->core->ver;
core             1919 sound/soc/sh/fsi.c 	const struct fsi_core *core;
core             1927 sound/soc/sh/fsi.c 	core = NULL;
core             1929 sound/soc/sh/fsi.c 		core = of_device_get_match_data(&pdev->dev);
core             1935 sound/soc/sh/fsi.c 			core = (struct fsi_core *)id_entry->driver_data;
core             1941 sound/soc/sh/fsi.c 	if (!core) {
core             1965 sound/soc/sh/fsi.c 	master->core		= core;
core               33 sound/soc/sof/intel/hda-codec.c 	snd_hdac_codec_modalias(&codec->core, alias, sizeof(alias));
core               34 sound/soc/sof/intel/hda-codec.c 	dev_dbg(&codec->core.dev, "loading codec module: %s\n", module);
core               50 sound/soc/sof/intel/hda-codec.c 			mask |= BIT(codec->core.addr);
core               94 sound/soc/sof/intel/hda-codec.c 	mutex_lock(&hbus->core.cmd_mutex);
core               95 sound/soc/sof/intel/hda-codec.c 	snd_hdac_bus_send_cmd(&hbus->core, hda_cmd);
core               96 sound/soc/sof/intel/hda-codec.c 	snd_hdac_bus_get_response(&hbus->core, address, &resp);
core               97 sound/soc/sof/intel/hda-codec.c 	mutex_unlock(&hbus->core.cmd_mutex);
core              109 sound/soc/sof/intel/hda-codec.c 	hdev = &hda_priv->codec.core;
core              111 sound/soc/sof/intel/hda-codec.c 	ret = snd_hdac_ext_bus_device_init(&hbus->core, address, hdev);
core              133 sound/soc/sof/intel/hda-codec.c 	ret = snd_hdac_ext_bus_device_init(&hbus->core, address, hdev);
core              410 sound/soc/sof/intel/hda.h 	return &hda->hbus.core;
core              431 sound/soc/sof/intel/hda.h 	container_of(bus, struct sof_intel_hda_dev, hbus.core)
core              687 sound/soc/sof/topology.c 		offsetof(struct sof_ipc_pipe_new, core), 0},
core             1378 sound/soc/sof/topology.c 	ret = snd_sof_dsp_core_power_up(sdev, 1 << pipeline->core);
core             1381 sound/soc/sof/topology.c 			pipeline->core);
core             1386 sound/soc/sof/topology.c 	sdev->enabled_cores_mask |= 1 << pipeline->core;
core             1455 sound/soc/sof/topology.c 		pipeline->period_mips, pipeline->core, pipeline->frames_per_sched);
core             2215 sound/soc/sof/topology.c 		ret = snd_sof_dsp_core_power_down(sdev, 1 << pipeline->core);
core             2218 sound/soc/sof/topology.c 				pipeline->core);
core             2221 sound/soc/sof/topology.c 		sdev->enabled_cores_mask &= ~(1 << pipeline->core);
core               74 tools/perf/arch/arm/util/auxtrace.c 		    evsel->core.attr.type == cs_etm_pmu->type)
core               81 tools/perf/arch/arm/util/auxtrace.c 			if (evsel->core.attr.type == arm_spe_pmus[i]->type) {
core              102 tools/perf/arch/arm/util/cs-etm.c 	evsel->core.attr.config |= (1 << ETM_OPT_CTXTID);
core              151 tools/perf/arch/arm/util/cs-etm.c 	evsel->core.attr.config |= (1 << ETM_OPT_TS);
core              162 tools/perf/arch/arm/util/cs-etm.c 	struct perf_cpu_map *event_cpus = evsel->evlist->core.cpus;
core              222 tools/perf/arch/arm/util/cs-etm.c 	if (evsel->core.attr.config2 & GENMASK(31, 0))
core              240 tools/perf/arch/arm/util/cs-etm.c 		evsel->core.attr.config2 |= hash;
core              260 tools/perf/arch/arm/util/cs-etm.c 	struct perf_cpu_map *cpus = evlist->core.cpus;
core              271 tools/perf/arch/arm/util/cs-etm.c 		if (evsel->core.attr.type == cs_etm_pmu->type) {
core              277 tools/perf/arch/arm/util/cs-etm.c 			evsel->core.attr.freq = 0;
core              278 tools/perf/arch/arm/util/cs-etm.c 			evsel->core.attr.sample_period = 1;
core              423 tools/perf/arch/arm/util/cs-etm.c 		tracking_evsel->core.attr.freq = 0;
core              424 tools/perf/arch/arm/util/cs-etm.c 		tracking_evsel->core.attr.sample_period = 1;
core              445 tools/perf/arch/arm/util/cs-etm.c 		if (evsel->core.attr.type == cs_etm_pmu->type) {
core              454 tools/perf/arch/arm/util/cs-etm.c 			config = evsel->core.attr.config;
core              496 tools/perf/arch/arm/util/cs-etm.c 	struct perf_cpu_map *event_cpus = evlist->core.cpus;
core              643 tools/perf/arch/arm/util/cs-etm.c 	struct perf_cpu_map *event_cpus = session->evlist->core.cpus;
core              652 tools/perf/arch/arm/util/cs-etm.c 	if (!session->evlist->core.nr_mmaps)
core              827 tools/perf/arch/arm/util/cs-etm.c 		if (evsel->core.attr.type == ptr->cs_etm_pmu->type)
core              840 tools/perf/arch/arm/util/cs-etm.c 		if (evsel->core.attr.type == ptr->cs_etm_pmu->type)
core              868 tools/perf/arch/arm/util/cs-etm.c 		if (evsel->core.attr.type == ptr->cs_etm_pmu->type) {
core               54 tools/perf/arch/arm64/util/arm-spe.c 	if (!session->evlist->core.nr_mmaps)
core               78 tools/perf/arch/arm64/util/arm-spe.c 		if (evsel->core.attr.type == arm_spe_pmu->type) {
core               83 tools/perf/arch/arm64/util/arm-spe.c 			evsel->core.attr.freq = 0;
core               84 tools/perf/arch/arm64/util/arm-spe.c 			evsel->core.attr.sample_period = 1;
core              135 tools/perf/arch/arm64/util/arm-spe.c 	tracking_evsel->core.attr.freq = 0;
core              136 tools/perf/arch/arm64/util/arm-spe.c 	tracking_evsel->core.attr.sample_period = 1;
core              168 tools/perf/arch/arm64/util/arm-spe.c 		if (evsel->core.attr.type == sper->arm_spe_pmu->type) {
core               95 tools/perf/arch/s390/util/auxtrace.c 	if (evlist->core.nr_entries == 0)
core               99 tools/perf/arch/s390/util/auxtrace.c 		if (pos->core.attr.config == PERF_EVENT_CPUM_SF_DIAG) {
core               80 tools/perf/arch/x86/tests/perf-time-to-tsc.c 	perf_evlist__set_maps(&evlist->core, cpus, threads);
core               88 tools/perf/arch/x86/tests/perf-time-to-tsc.c 	evsel->core.attr.comm = 1;
core               89 tools/perf/arch/x86/tests/perf-time-to-tsc.c 	evsel->core.attr.disabled = 1;
core               90 tools/perf/arch/x86/tests/perf-time-to-tsc.c 	evsel->core.attr.enable_on_exec = 0;
core               96 tools/perf/arch/x86/tests/perf-time-to-tsc.c 	pc = evlist->mmap[0].core.base;
core              118 tools/perf/arch/x86/tests/perf-time-to-tsc.c 	for (i = 0; i < evlist->core.nr_mmaps; i++) {
core               32 tools/perf/arch/x86/util/auxtrace.c 		if (intel_pt_pmu && evsel->core.attr.type == intel_pt_pmu->type)
core               34 tools/perf/arch/x86/util/auxtrace.c 		if (intel_bts_pmu && evsel->core.attr.type == intel_bts_pmu->type)
core               78 tools/perf/arch/x86/util/intel-bts.c 	if (!session->evlist->core.nr_mmaps)
core               81 tools/perf/arch/x86/util/intel-bts.c 	pc = session->evlist->mmap[0].core.base;
core              113 tools/perf/arch/x86/util/intel-bts.c 	const struct perf_cpu_map *cpus = evlist->core.cpus;
core              120 tools/perf/arch/x86/util/intel-bts.c 		if (evsel->core.attr.type == intel_bts_pmu->type) {
core              125 tools/perf/arch/x86/util/intel-bts.c 			evsel->core.attr.freq = 0;
core              126 tools/perf/arch/x86/util/intel-bts.c 			evsel->core.attr.sample_period = 1;
core              238 tools/perf/arch/x86/util/intel-bts.c 		tracking_evsel->core.attr.freq = 0;
core              239 tools/perf/arch/x86/util/intel-bts.c 		tracking_evsel->core.attr.sample_period = 1;
core              323 tools/perf/arch/x86/util/intel-bts.c 		if (evsel->core.attr.type == btsr->intel_bts_pmu->type)
core              336 tools/perf/arch/x86/util/intel-bts.c 		if (evsel->core.attr.type == btsr->intel_bts_pmu->type)
core              418 tools/perf/arch/x86/util/intel-bts.c 		if (evsel->core.attr.type == btsr->intel_bts_pmu->type) {
core              128 tools/perf/arch/x86/util/intel-pt.c 		if (evsel->core.attr.type == intel_pt_pmu->type) {
core              129 tools/perf/arch/x86/util/intel-pt.c 			*res = intel_pt_masked_bits(mask, evsel->core.attr.config);
core              280 tools/perf/arch/x86/util/intel-pt.c 		if (evsel->core.attr.type == intel_pt_pmu->type)
core              355 tools/perf/arch/x86/util/intel-pt.c 	if (!session->evlist->core.nr_mmaps)
core              358 tools/perf/arch/x86/util/intel-pt.c 	pc = session->evlist->mmap[0].core.base;
core              371 tools/perf/arch/x86/util/intel-pt.c 	per_cpu_mmaps = !perf_cpu_map__empty(session->evlist->core.cpus);
core              425 tools/perf/arch/x86/util/intel-pt.c 	evsel->core.system_wide = true;
core              532 tools/perf/arch/x86/util/intel-pt.c 	    !(evsel->core.attr.config & 1)) {
core              534 tools/perf/arch/x86/util/intel-pt.c 		evsel->core.attr.config |= 1;
core              539 tools/perf/arch/x86/util/intel-pt.c 				       evsel->core.attr.config);
core              545 tools/perf/arch/x86/util/intel-pt.c 				       evsel->core.attr.config);
core              551 tools/perf/arch/x86/util/intel-pt.c 					evsel->core.attr.config);
core              564 tools/perf/arch/x86/util/intel-pt.c 		aux_output_cnt += !!evsel->core.attr.aux_output;
core              583 tools/perf/arch/x86/util/intel-pt.c 	const struct perf_cpu_map *cpus = evlist->core.cpus;
core              592 tools/perf/arch/x86/util/intel-pt.c 		if (evsel->core.attr.type == intel_pt_pmu->type) {
core              597 tools/perf/arch/x86/util/intel-pt.c 			evsel->core.attr.freq = 0;
core              598 tools/perf/arch/x86/util/intel-pt.c 			evsel->core.attr.sample_period = 1;
core              699 tools/perf/arch/x86/util/intel-pt.c 	if (opts->full_auxtrace && (intel_pt_evsel->core.attr.config & tsc_bit))
core              722 tools/perf/arch/x86/util/intel-pt.c 				switch_evsel->core.attr.freq = 0;
core              723 tools/perf/arch/x86/util/intel-pt.c 				switch_evsel->core.attr.sample_period = 1;
core              724 tools/perf/arch/x86/util/intel-pt.c 				switch_evsel->core.attr.context_switch = 1;
core              726 tools/perf/arch/x86/util/intel-pt.c 				switch_evsel->core.system_wide = true;
core              782 tools/perf/arch/x86/util/intel-pt.c 		tracking_evsel->core.attr.freq = 0;
core              783 tools/perf/arch/x86/util/intel-pt.c 		tracking_evsel->core.attr.sample_period = 1;
core              816 tools/perf/arch/x86/util/intel-pt.c 		if (evsel->core.attr.type == ptr->intel_pt_pmu->type)
core              829 tools/perf/arch/x86/util/intel-pt.c 		if (evsel->core.attr.type == ptr->intel_pt_pmu->type)
core             1102 tools/perf/arch/x86/util/intel-pt.c 		if (evsel->core.attr.type == ptr->intel_pt_pmu->type) {
core               39 tools/perf/builtin-evlist.c 		if (pos->core.attr.type == PERF_TYPE_TRACEPOINT)
core              162 tools/perf/builtin-ftrace.c 	for (i = 0; i < perf_thread_map__nr(ftrace->evlist->core.threads); i++) {
core              164 tools/perf/builtin-ftrace.c 			  ftrace->evlist->core.threads->map[i]);
core              198 tools/perf/builtin-ftrace.c 	struct perf_cpu_map *cpumap = ftrace->evlist->core.cpus;
core              535 tools/perf/builtin-inject.c 	perf_event__synthesize_sample(event_sw, evsel->core.attr.sample_type,
core              536 tools/perf/builtin-inject.c 				      evsel->core.attr.read_format, &sample_sw);
core              549 tools/perf/builtin-inject.c 	struct perf_event_attr *attr = &evsel->core.attr;
core              583 tools/perf/builtin-inject.c 	return evsel->core.attr.mmap || evsel->core.attr.mmap2 || evsel->core.attr.comm ||
core              584 tools/perf/builtin-inject.c 	       evsel->core.attr.task;
core              608 tools/perf/builtin-inject.c 			if ((evsel->core.attr.sample_type & COMPAT_MASK) ==
core              609 tools/perf/builtin-inject.c 			    (evsel_to_remove->core.attr.sample_type & COMPAT_MASK))
core              806 tools/perf/builtin-kvm.c 	for (i = 0; i < kvm->evlist->core.nr_mmaps; i++) {
core              985 tools/perf/builtin-kvm.c 		struct fdarray *fda = &kvm->evlist->core.pollfd;
core             1032 tools/perf/builtin-kvm.c 		struct perf_event_attr *attr = &pos->core.attr;
core             1460 tools/perf/builtin-kvm.c 				    kvm->evlist->core.threads, false, 1);
core              360 tools/perf/builtin-record.c 	for (i = 0; i < evlist->core.nr_mmaps; i++) {
core              363 tools/perf/builtin-record.c 		if (map->core.base)
core              606 tools/perf/builtin-record.c 	for (i = 0; i < rec->evlist->core.nr_mmaps; i++) {
core              763 tools/perf/builtin-record.c 		pos->core.attr.enable_on_exec = 1;
core              770 tools/perf/builtin-record.c 		if (evsel__open(pos, pos->core.cpus, pos->core.threads) < 0) {
core              969 tools/perf/builtin-record.c 	for (i = 0; i < evlist->core.nr_mmaps; i++) {
core              973 tools/perf/builtin-record.c 		if (map->core.base) {
core              976 tools/perf/builtin-record.c 				flush = map->core.flush;
core              977 tools/perf/builtin-record.c 				map->core.flush = 1;
core              982 tools/perf/builtin-record.c 						map->core.flush = flush;
core              990 tools/perf/builtin-record.c 						map->core.flush = flush;
core              996 tools/perf/builtin-record.c 				map->core.flush = flush;
core             1044 tools/perf/builtin-record.c 	if (!have_tracepoints(&rec->evlist->core.entries))
core             1201 tools/perf/builtin-record.c 		if (evlist->mmap && evlist->mmap[0].core.base)
core             1202 tools/perf/builtin-record.c 			return evlist->mmap[0].core.base;
core             1203 tools/perf/builtin-record.c 		if (evlist->overwrite_mmap && evlist->overwrite_mmap[0].core.base)
core             1204 tools/perf/builtin-record.c 			return evlist->overwrite_mmap[0].core.base;
core             1251 tools/perf/builtin-record.c 		if (have_tracepoints(&rec->evlist->core.entries)) {
core             1308 tools/perf/builtin-record.c 	err = perf_event__synthesize_thread_map2(&rec->tool, rec->evlist->core.threads,
core             1316 tools/perf/builtin-record.c 	err = perf_event__synthesize_cpu_map(&rec->tool, rec->evlist->core.cpus,
core             1328 tools/perf/builtin-record.c 	err = __machine__synthesize_threads(machine, tool, &opts->target, rec->evlist->core.threads,
core             1408 tools/perf/builtin-record.c 	if (data->is_pipe && rec->evlist->core.nr_entries == 1)
core             1415 tools/perf/builtin-record.c 	session->header.env.comp_mmap_len = session->evlist->core.mmap_len;
core             2413 tools/perf/builtin-record.c 	if (rec->evlist->core.nr_entries == 0 &&
core              459 tools/perf/builtin-report.c 			       evsel->core.nr_members > 1 ? "s" : "", evname);
core             2938 tools/perf/builtin-sched.c 	list_for_each_entry(evsel, &evlist->core.entries, core.node) {
core              357 tools/perf/builtin-script.c 	struct perf_event_attr *attr = &evsel->core.attr;
core              395 tools/perf/builtin-script.c 	struct perf_event_attr *attr = &evsel->core.attr;
core              430 tools/perf/builtin-script.c 		!(evsel->core.attr.sample_type & (PERF_SAMPLE_IP|PERF_SAMPLE_ADDR))) {
core              442 tools/perf/builtin-script.c 		!(evsel->core.attr.sample_type & (PERF_SAMPLE_IP|PERF_SAMPLE_ADDR))) {
core              543 tools/perf/builtin-script.c 		set_print_ip_opts(&evsel->core.attr);
core              570 tools/perf/builtin-script.c 			if (evsel->core.attr.type != j)
core              578 tools/perf/builtin-script.c 				set_print_ip_opts(&evsel->core.attr);
core              629 tools/perf/builtin-script.c 	struct perf_event_attr *attr = &evsel->core.attr;
core             1184 tools/perf/builtin-script.c 	struct perf_event_attr *attr = &evsel->core.attr;
core             1211 tools/perf/builtin-script.c 	struct perf_event_attr *attr = &evsel->core.attr;
core             1306 tools/perf/builtin-script.c 	struct perf_event_attr *attr = &evsel->core.attr;
core             1339 tools/perf/builtin-script.c 	    ((evsel->core.attr.sample_type & PERF_SAMPLE_ADDR) &&
core             1612 tools/perf/builtin-script.c 	switch (evsel->core.attr.config) {
core             1751 tools/perf/builtin-script.c 	if (evsel_script(evsel->leader)->gnum == evsel->leader->core.nr_members) {
core             1811 tools/perf/builtin-script.c 	struct perf_event_attr *attr = &evsel->core.attr;
core             1921 tools/perf/builtin-script.c 	int nthreads = perf_thread_map__nr(counter->core.threads);
core             1926 tools/perf/builtin-script.c 	if (counter->core.system_wide)
core             1942 tools/perf/builtin-script.c 				counter->core.cpus->map[cpu],
core             1943 tools/perf/builtin-script.c 				perf_thread_map__pid(counter->core.threads, thread),
core             2068 tools/perf/builtin-script.c 	if (evsel->core.attr.type >= PERF_TYPE_MAX &&
core             2069 tools/perf/builtin-script.c 	    evsel->core.attr.type != PERF_TYPE_SYNTH)
core             2073 tools/perf/builtin-script.c 		if (pos->core.attr.type == evsel->core.attr.type && pos != evsel)
core             2077 tools/perf/builtin-script.c 	set_print_ip_opts(&evsel->core.attr);
core             2079 tools/perf/builtin-script.c 	if (evsel->core.attr.sample_type)
core             2105 tools/perf/builtin-script.c 	if (!evsel->core.attr.sample_id_all) {
core             2143 tools/perf/builtin-script.c 	if (!evsel->core.attr.sample_id_all) {
core             2179 tools/perf/builtin-script.c 	if (!evsel->core.attr.sample_id_all) {
core             2211 tools/perf/builtin-script.c 	if (!evsel->core.attr.sample_id_all) {
core             2249 tools/perf/builtin-script.c 	if (!evsel->core.attr.sample_id_all) {
core             2283 tools/perf/builtin-script.c 	if (!evsel->core.attr.sample_id_all) {
core             2382 tools/perf/builtin-script.c 	if (!evsel->core.attr.sample_id_all) {
core             3286 tools/perf/builtin-script.c 	perf_evlist__set_maps(&evlist->core, script->cpus, script->threads);
core              238 tools/perf/builtin-stat.c #define SID(e, x, y) xyarray__entry(e->core.sample_id, x, y)
core              270 tools/perf/builtin-stat.c 	int nthreads = perf_thread_map__nr(evsel_list->core.threads);
core              281 tools/perf/builtin-stat.c 	if (counter->core.system_wide)
core              398 tools/perf/builtin-stat.c 	return STAT_RECORD || counter->core.attr.read_format & PERF_FORMAT_ID;
core              485 tools/perf/builtin-stat.c 				    !(counter->leader->core.nr_members > 1))
core              492 tools/perf/builtin-stat.c 				   evsel_list->core.threads &&
core              493 tools/perf/builtin-stat.c 				   evsel_list->core.threads->err_thread != -1) {
core              498 tools/perf/builtin-stat.c 				if (!thread_map__remove(evsel_list->core.threads,
core              499 tools/perf/builtin-stat.c 							evsel_list->core.threads->err_thread)) {
core              500 tools/perf/builtin-stat.c 					evsel_list->core.threads->err_thread = -1;
core              586 tools/perf/builtin-stat.c 			if (!is_target_alive(&target, evsel_list->core.threads))
core              879 tools/perf/builtin-stat.c 		if (cpu_map__build_socket_map(evsel_list->core.cpus, &stat_config.aggr_map)) {
core              886 tools/perf/builtin-stat.c 		if (cpu_map__build_die_map(evsel_list->core.cpus, &stat_config.aggr_map)) {
core              893 tools/perf/builtin-stat.c 		if (cpu_map__build_core_map(evsel_list->core.cpus, &stat_config.aggr_map)) {
core              901 tools/perf/builtin-stat.c 			if (cpu_map__build_core_map(evsel_list->core.cpus,
core              921 tools/perf/builtin-stat.c 	nr = perf_cpu_map__max(evsel_list->core.cpus);
core              984 tools/perf/builtin-stat.c 	int core = -1, cpu = perf_env__get_cpu(env, map, idx);
core             1003 tools/perf/builtin-stat.c 		core = (env->cpu[cpu].socket_id << 24) |
core             1008 tools/perf/builtin-stat.c 	return core;
core             1052 tools/perf/builtin-stat.c 		if (perf_env__build_socket_map(env, evsel_list->core.cpus, &stat_config.aggr_map)) {
core             1059 tools/perf/builtin-stat.c 		if (perf_env__build_die_map(env, evsel_list->core.cpus, &stat_config.aggr_map)) {
core             1066 tools/perf/builtin-stat.c 		if (perf_env__build_core_map(env, evsel_list->core.cpus, &stat_config.aggr_map)) {
core             1361 tools/perf/builtin-stat.c 	if (!evsel_list->core.nr_entries) {
core             1512 tools/perf/builtin-stat.c 	perf_evlist__set_maps(&evsel_list->core, st->cpus, st->threads);
core             1674 tools/perf/builtin-stat.c 			if (!counter->core.system_wide)
core             1678 tools/perf/builtin-stat.c 		if (evsel_list->core.nr_entries)
core             1884 tools/perf/builtin-stat.c 		thread_map__read_comms(evsel_list->core.threads);
core             1887 tools/perf/builtin-stat.c 				perf_thread_map__nr(evsel_list->core.threads))) {
core              560 tools/perf/builtin-timechart.c 	if (evsel->core.attr.sample_type & PERF_SAMPLE_TIME) {
core              137 tools/perf/builtin-top.c 	if (!symbol__hists(sym, top->evlist->core.nr_entries)) {
core              442 tools/perf/builtin-top.c 	if (top->evlist->core.nr_entries > 1)
core              477 tools/perf/builtin-top.c 			return top->evlist->core.nr_entries > 1 ? 1 : 0;
core              523 tools/perf/builtin-top.c 			if (top->evlist->core.nr_entries > 1) {
core              534 tools/perf/builtin-top.c 				if (counter >= top->evlist->core.nr_entries) {
core              908 tools/perf/builtin-top.c 	for (i = 0; i < top->evlist->core.nr_mmaps; i++)
core              994 tools/perf/builtin-top.c 		counter->core.attr.write_backward = false;
core             1017 tools/perf/builtin-top.c 		if (evsel__open(counter, top->evlist->core.cpus,
core             1018 tools/perf/builtin-top.c 				     top->evlist->core.threads) < 0) {
core             1253 tools/perf/builtin-top.c 				    top->evlist->core.threads, false,
core             1568 tools/perf/builtin-top.c 	if (!top.evlist->core.nr_entries &&
core             1419 tools/perf/builtin-trace.c 					    evlist->core.threads, trace__tool_process, false,
core             2061 tools/perf/builtin-trace.c 	int max_stack = evsel->core.attr.sample_max_stack ?
core             2062 tools/perf/builtin-trace.c 			evsel->core.attr.sample_max_stack :
core             2477 tools/perf/builtin-trace.c 	if (evsel->core.attr.config == PERF_COUNT_SW_PAGE_FAULTS_MAJ)
core             2490 tools/perf/builtin-trace.c 		evsel->core.attr.config == PERF_COUNT_SW_PAGE_FAULTS_MAJ ?
core             2538 tools/perf/builtin-trace.c 	    (evsel->core.attr.sample_type & PERF_SAMPLE_TIME))
core             2651 tools/perf/builtin-trace.c 		list_del_init(&evsel->core.node);
core             2700 tools/perf/builtin-trace.c 	if (evsel->core.attr.type == PERF_TYPE_TRACEPOINT &&
core             2746 tools/perf/builtin-trace.c 		sys_exit->core.attr.exclude_callchain_kernel = 1;
core             3201 tools/perf/builtin-trace.c 	} else if (perf_thread_map__pid(trace->evlist->core.threads, 0) == -1) {
core             3430 tools/perf/builtin-trace.c 	trace->multiple_threads = perf_thread_map__pid(evlist->core.threads, 0) == -1 ||
core             3431 tools/perf/builtin-trace.c 				  evlist->core.threads->nr > 1 ||
core             3432 tools/perf/builtin-trace.c 				  evlist__first(evlist)->core.attr.inherit;
core             3442 tools/perf/builtin-trace.c 		    evsel->core.attr.sample_max_stack == 0)
core             3443 tools/perf/builtin-trace.c 			evsel->core.attr.sample_max_stack = trace->max_stack;
core             3448 tools/perf/builtin-trace.c 	for (i = 0; i < evlist->core.nr_mmaps; i++) {
core             3636 tools/perf/builtin-trace.c 		if (evsel->core.attr.type == PERF_TYPE_SOFTWARE &&
core             3637 tools/perf/builtin-trace.c 		    (evsel->core.attr.config == PERF_COUNT_SW_PAGE_FAULTS_MAJ ||
core             3638 tools/perf/builtin-trace.c 		     evsel->core.attr.config == PERF_COUNT_SW_PAGE_FAULTS_MIN ||
core             3639 tools/perf/builtin-trace.c 		     evsel->core.attr.config == PERF_COUNT_SW_PAGE_FAULTS))
core             3998 tools/perf/builtin-trace.c 	if (!list_empty(&trace->evlist->core.entries))
core             4289 tools/perf/builtin-trace.c 	if (trace.evlist->core.nr_entries > 0) {
core             4387 tools/perf/builtin-trace.c 	    trace.evlist->core.nr_entries == 0 /* Was --events used? */) {
core               36 tools/perf/tests/backward-ring-buffer.c 	for (i = 0; i < evlist->core.nr_mmaps; i++) {
core              182 tools/perf/tests/bpf.c 	for (i = 0; i < evlist->core.nr_mmaps; i++) {
core              426 tools/perf/tests/code-reading.c 	for (i = 0; i < evlist->core.nr_mmaps; i++) {
core              643 tools/perf/tests/code-reading.c 		perf_evlist__set_maps(&evlist->core, cpus, threads);
core              657 tools/perf/tests/code-reading.c 		evsel->core.attr.comm = 1;
core              658 tools/perf/tests/code-reading.c 		evsel->core.attr.disabled = 1;
core              659 tools/perf/tests/code-reading.c 		evsel->core.attr.enable_on_exec = 0;
core              672 tools/perf/tests/code-reading.c 				perf_evlist__set_maps(&evlist->core, NULL, NULL);
core               41 tools/perf/tests/event-times.c 	evsel->core.attr.enable_on_exec = 1;
core               73 tools/perf/tests/event-times.c 	evsel->core.attr.disabled = 1;
core              126 tools/perf/tests/event-times.c 	evsel->core.attr.disabled = 1;
core              184 tools/perf/tests/event-times.c 	evsel->core.attr.read_format |=
core              200 tools/perf/tests/event-times.c 	perf_evsel__read(&evsel->core, 0, 0, &count);
core               98 tools/perf/tests/event_update.c 			!perf_evsel__alloc_id(&evsel->core, 1, 1));
core              100 tools/perf/tests/event_update.c 	perf_evlist__id_add(&evlist->core, &evsel->core, 0, 0, 123);
core              117 tools/perf/tests/event_update.c 	evsel->core.own_cpus = perf_cpu_map__new("1,2,3");
core              122 tools/perf/tests/event_update.c 	perf_cpu_map__put(evsel->core.own_cpus);
core               39 tools/perf/tests/keep-tracking.c 	for (i = 0; i < evlist->core.nr_mmaps; i++) {
core               89 tools/perf/tests/keep-tracking.c 	perf_evlist__set_maps(&evlist->core, cpus, threads);
core               98 tools/perf/tests/keep-tracking.c 	evsel->core.attr.comm = 1;
core               99 tools/perf/tests/keep-tracking.c 	evsel->core.attr.disabled = 1;
core              100 tools/perf/tests/keep-tracking.c 	evsel->core.attr.enable_on_exec = 0;
core               75 tools/perf/tests/mmap-basic.c 	perf_evlist__set_maps(&evlist->core, cpus, threads);
core               87 tools/perf/tests/mmap-basic.c 		evsels[i]->core.attr.wakeup_events = 1;
core              122 tools/perf/tests/openat-syscall-all-cpus.c 	perf_evsel__close_fd(&evsel->core);
core               64 tools/perf/tests/openat-syscall-tp-fields.c 	perf_thread_map__set_pid(evlist->core.threads, 0, getpid());
core               90 tools/perf/tests/openat-syscall-tp-fields.c 		for (i = 0; i < evlist->core.nr_mmaps; i++) {
core               62 tools/perf/tests/openat-syscall.c 	perf_evsel__close_fd(&evsel->core);
core               51 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
core               53 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type);
core               55 tools/perf/tests/parse-events.c 		PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type);
core               56 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period);
core               64 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", evlist->core.nr_entries > 1);
core               69 tools/perf/tests/parse-events.c 			PERF_TYPE_TRACEPOINT == evsel->core.attr.type);
core               71 tools/perf/tests/parse-events.c 			PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type);
core               73 tools/perf/tests/parse-events.c 			1 == evsel->core.attr.sample_period);
core               82 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
core               83 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type);
core               84 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong config", 0x1a == evsel->core.attr.config);
core               92 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
core               93 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", 1 == evsel->core.attr.type);
core               94 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config);
core              102 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
core              103 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core              105 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config);
core              113 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
core              114 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core              116 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config);
core              122 tools/perf/tests/parse-events.c 			0 == evsel->core.attr.sample_period);
core              124 tools/perf/tests/parse-events.c 			0 == evsel->core.attr.config1);
core              126 tools/perf/tests/parse-events.c 			1 == evsel->core.attr.config2);
core              134 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
core              135 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type);
core              137 tools/perf/tests/parse-events.c 			PERF_COUNT_SW_PAGE_FAULTS == evsel->core.attr.config);
core              145 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
core              146 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HW_CACHE == evsel->core.attr.type);
core              147 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong config", (1 << 16) == evsel->core.attr.config);
core              155 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
core              156 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type);
core              157 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config);
core              159 tools/perf/tests/parse-events.c 					 evsel->core.attr.bp_type);
core              161 tools/perf/tests/parse-events.c 					evsel->core.attr.bp_len);
core              169 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
core              170 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type);
core              171 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config);
core              173 tools/perf/tests/parse-events.c 			HW_BREAKPOINT_X == evsel->core.attr.bp_type);
core              174 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong bp_len", sizeof(long) == evsel->core.attr.bp_len);
core              182 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
core              184 tools/perf/tests/parse-events.c 			PERF_TYPE_BREAKPOINT == evsel->core.attr.type);
core              185 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config);
core              187 tools/perf/tests/parse-events.c 			HW_BREAKPOINT_R == evsel->core.attr.bp_type);
core              189 tools/perf/tests/parse-events.c 			HW_BREAKPOINT_LEN_4 == evsel->core.attr.bp_len);
core              197 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
core              199 tools/perf/tests/parse-events.c 			PERF_TYPE_BREAKPOINT == evsel->core.attr.type);
core              200 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config);
core              202 tools/perf/tests/parse-events.c 			HW_BREAKPOINT_W == evsel->core.attr.bp_type);
core              204 tools/perf/tests/parse-events.c 			HW_BREAKPOINT_LEN_4 == evsel->core.attr.bp_len);
core              212 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
core              214 tools/perf/tests/parse-events.c 			PERF_TYPE_BREAKPOINT == evsel->core.attr.type);
core              215 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config);
core              217 tools/perf/tests/parse-events.c 		(HW_BREAKPOINT_R|HW_BREAKPOINT_W) == evsel->core.attr.bp_type);
core              219 tools/perf/tests/parse-events.c 			HW_BREAKPOINT_LEN_4 == evsel->core.attr.bp_len);
core              227 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
core              228 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core              229 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core              230 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              240 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", evlist->core.nr_entries > 1);
core              244 tools/perf/tests/parse-events.c 				!evsel->core.attr.exclude_user);
core              246 tools/perf/tests/parse-events.c 				evsel->core.attr.exclude_kernel);
core              247 tools/perf/tests/parse-events.c 		TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core              248 tools/perf/tests/parse-events.c 		TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              258 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
core              259 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core              260 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core              261 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip);
core              270 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
core              271 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
core              272 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
core              273 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip);
core              282 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
core              283 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
core              284 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
core              285 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              294 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
core              295 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host);
core              304 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
core              305 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
core              314 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core              315 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
core              316 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core              317 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              326 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
core              327 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core              328 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core              329 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip);
core              338 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude idle", evsel->core.attr.exclude_idle);
core              339 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
core              340 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
core              341 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core              342 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core              343 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
core              344 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              353 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude idle", evsel->core.attr.exclude_idle);
core              354 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
core              355 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host);
core              356 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
core              357 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core              358 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core              359 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              369 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core              370 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
core              371 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core              372 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              383 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
core              384 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core              385 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core              386 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              397 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
core              398 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
core              399 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
core              400 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip);
core              411 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core              412 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
core              413 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core              414 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip);
core              425 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
core              426 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core              427 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core              428 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip);
core              440 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
core              441 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type);
core              442 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong config",    10 == evsel->core.attr.config);
core              443 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong config1",    1 == evsel->core.attr.config1);
core              444 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong config2",    3 == evsel->core.attr.config2);
core              449 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong period",     0 == evsel->core.attr.sample_period);
core              458 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 3 == evlist->core.nr_entries);
core              461 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type);
core              462 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config);
core              463 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong config1", 0 == evsel->core.attr.config1);
core              464 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong config2", 0 == evsel->core.attr.config2);
core              465 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core              466 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core              467 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
core              468 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              472 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type);
core              474 tools/perf/tests/parse-events.c 		PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type);
core              475 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period);
core              476 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
core              477 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core              478 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core              479 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              483 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", 1 == evsel->core.attr.type);
core              484 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config);
core              485 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
core              486 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
core              487 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
core              488 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip);
core              498 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
core              499 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type);
core              500 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong config",  1 == evsel->core.attr.config);
core              505 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
core              506 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type);
core              507 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong config",  2 == evsel->core.attr.config);
core              519 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
core              520 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type);
core              521 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong config",  1 == evsel->core.attr.config);
core              527 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong period",     0 == evsel->core.attr.sample_period);
core              529 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong time",  !(PERF_SAMPLE_TIME & evsel->core.attr.sample_type));
core              533 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type);
core              534 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong config",  2 == evsel->core.attr.config);
core              540 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong period",     0 == evsel->core.attr.sample_period);
core              542 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong time",  !(PERF_SAMPLE_TIME & evsel->core.attr.sample_type));
core              551 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
core              552 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type);
core              554 tools/perf/tests/parse-events.c 			!evsel->core.attr.exclude_user);
core              556 tools/perf/tests/parse-events.c 			evsel->core.attr.exclude_kernel);
core              557 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core              558 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              559 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned);
core              570 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
core              572 tools/perf/tests/parse-events.c 			!evsel->core.attr.exclude_user);
core              574 tools/perf/tests/parse-events.c 			evsel->core.attr.exclude_kernel);
core              575 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core              576 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              577 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned);
core              581 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
core              582 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type);
core              584 tools/perf/tests/parse-events.c 			!evsel->core.attr.exclude_user);
core              586 tools/perf/tests/parse-events.c 			evsel->core.attr.exclude_kernel);
core              587 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core              588 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              589 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned);
core              641 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
core              646 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core              648 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config);
core              649 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
core              650 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core              651 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core              652 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
core              653 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
core              654 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              656 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2);
core              662 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core              664 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config);
core              665 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core              666 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
core              667 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core              669 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
core              670 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
core              671 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip == 2);
core              683 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 3 == evlist->core.nr_entries);
core              688 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type);
core              690 tools/perf/tests/parse-events.c 			PERF_COUNT_SW_PAGE_FAULTS == evsel->core.attr.config);
core              691 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core              692 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core              693 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core              694 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
core              695 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
core              696 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              698 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2);
core              704 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core              706 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_CACHE_REFERENCES == evsel->core.attr.config);
core              707 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core              708 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
core              709 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core              710 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
core              711 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
core              712 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              719 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core              721 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config);
core              722 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
core              723 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core              724 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core              725 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
core              726 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
core              727 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              738 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 5 == evlist->core.nr_entries);
core              743 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type);
core              745 tools/perf/tests/parse-events.c 		PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type);
core              746 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period);
core              747 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core              748 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core              749 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
core              750 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
core              751 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
core              752 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              756 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2);
core              762 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core              764 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config);
core              765 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
core              766 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core              767 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core              769 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
core              770 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
core              771 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip == 3);
core              779 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core              781 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config);
core              782 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core              783 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core              784 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
core              785 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
core              786 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host);
core              787 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              791 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2);
core              797 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", 1 == evsel->core.attr.type);
core              798 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong config", 3 == evsel->core.attr.config);
core              799 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core              800 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core              801 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
core              802 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
core              803 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host);
core              804 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              811 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core              813 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config);
core              814 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core              815 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
core              816 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core              817 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
core              818 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
core              819 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              830 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
core              835 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core              837 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config);
core              838 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core              839 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
core              840 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core              842 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
core              843 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
core              844 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip == 1);
core              847 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2);
core              853 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core              855 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config);
core              856 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
core              857 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core              858 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core              860 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
core              861 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
core              862 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip == 2);
core              874 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 5 == evlist->core.nr_entries);
core              879 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core              881 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config);
core              882 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core              883 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core              884 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
core              885 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
core              886 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host);
core              887 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              890 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2);
core              896 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core              898 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config);
core              899 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core              900 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core              901 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
core              902 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
core              903 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host);
core              904 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              911 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core              913 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config);
core              914 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core              915 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core              916 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
core              917 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
core              918 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host);
core              919 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              922 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2);
core              928 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core              930 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config);
core              931 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core              932 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core              933 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
core              934 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
core              935 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host);
core              936 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              942 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core              944 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config);
core              945 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core              946 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core              947 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
core              948 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
core              949 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
core              950 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              960 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
core              965 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core              967 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config);
core              968 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core              969 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core              970 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
core              971 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
core              972 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
core              973 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core              976 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2);
core              981 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core              983 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config);
core              984 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core              985 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core              986 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
core              987 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
core              988 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
core              989 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core             1000 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
core             1005 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core             1007 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config);
core             1008 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core             1009 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core             1010 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
core             1011 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
core             1012 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host);
core             1013 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core             1016 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2);
core             1021 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core             1023 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config);
core             1024 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core             1025 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core             1026 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
core             1027 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
core             1028 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
core             1029 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core             1040 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
core             1045 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core             1047 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config);
core             1048 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core             1049 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
core             1050 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core             1051 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
core             1052 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host);
core             1053 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core             1056 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2);
core             1061 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core             1063 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config);
core             1064 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core             1065 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
core             1066 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core             1067 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
core             1068 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
core             1069 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core             1080 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
core             1085 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core             1087 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config);
core             1088 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core             1089 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
core             1090 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core             1091 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
core             1092 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host);
core             1093 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core             1096 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2);
core             1101 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core             1103 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config);
core             1104 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core             1105 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
core             1106 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core             1107 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
core             1108 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
core             1109 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core             1120 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 3 == evlist->core.nr_entries);
core             1124 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core             1126 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config);
core             1127 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core             1128 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core             1129 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
core             1130 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
core             1131 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
core             1132 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core             1139 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core             1141 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config);
core             1142 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core             1143 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core             1144 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
core             1145 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
core             1146 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
core             1147 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core             1153 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core             1155 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_BRANCH_MISSES == evsel->core.attr.config);
core             1156 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core             1157 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
core             1158 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
core             1159 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
core             1160 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
core             1161 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core             1173 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
core             1177 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core             1179 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config);
core             1180 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core             1181 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
core             1182 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core             1183 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
core             1184 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
core             1185 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core             1192 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core             1194 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_BRANCH_MISSES == evsel->core.attr.config);
core             1195 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core             1196 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
core             1197 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core             1198 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
core             1199 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
core             1200 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core             1212 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core             1213 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
core             1214 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core             1215 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip);
core             1216 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong pinned", evsel->core.attr.pinned);
core             1225 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 3 == evlist->core.nr_entries);
core             1229 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core             1231 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config);
core             1234 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong pinned", evsel->core.attr.pinned);
core             1238 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
core             1240 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config);
core             1241 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned);
core             1246 tools/perf/tests/parse-events.c 			PERF_COUNT_HW_BRANCH_MISSES == evsel->core.attr.config);
core             1247 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned);
core             1256 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
core             1257 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type);
core             1258 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config);
core             1260 tools/perf/tests/parse-events.c 					 evsel->core.attr.bp_type);
core             1262 tools/perf/tests/parse-events.c 					evsel->core.attr.bp_len);
core             1271 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
core             1272 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type);
core             1273 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config);
core             1275 tools/perf/tests/parse-events.c 					 evsel->core.attr.bp_type);
core             1277 tools/perf/tests/parse-events.c 					evsel->core.attr.bp_len);
core             1287 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
core             1288 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
core             1289 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
core             1290 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
core             1299 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
core             1300 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type);
core             1302 tools/perf/tests/parse-events.c 			PERF_COUNT_SW_TASK_CLOCK == evsel->core.attr.config);
core             1363 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", evsel->core.attr.type == PERF_TYPE_HARDWARE);
core             1364 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong config", evsel->core.attr.config == PERF_COUNT_HW_CPU_CYCLES);
core             1365 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
core             1373 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong type", evsel->core.attr.type == PERF_TYPE_HARDWARE);
core             1374 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong config", evsel->core.attr.config == PERF_COUNT_HW_CPU_CYCLES);
core             1375 tools/perf/tests/parse-events.c 	TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
core             1428 tools/perf/tests/parse-events.c 			count_tracepoints() == evlist->core.nr_entries);
core              168 tools/perf/tests/perf-record.c 		for (i = 0; i < evlist->core.nr_mmaps; i++) {
core              160 tools/perf/tests/sample-parsing.c 		.core = {
core              228 tools/perf/tests/sample-parsing.c 		evsel.core.attr.sample_regs_user = sample_regs;
core              231 tools/perf/tests/sample-parsing.c 		evsel.core.attr.sample_regs_intr = sample_regs;
core               71 tools/perf/tests/sw-clock.c 	perf_evlist__set_maps(&evlist->core, cpus, threads);
core              270 tools/perf/tests/switch-tracking.c 	for (i = 0; i < evlist->core.nr_mmaps; i++) {
core              361 tools/perf/tests/switch-tracking.c 	perf_evlist__set_maps(&evlist->core, cpus, threads);
core              399 tools/perf/tests/switch-tracking.c 	switch_evsel->core.system_wide = true;
core              428 tools/perf/tests/switch-tracking.c 	tracking_evsel->core.attr.freq = 0;
core              429 tools/perf/tests/switch-tracking.c 	tracking_evsel->core.attr.sample_period = 1;
core              443 tools/perf/tests/switch-tracking.c 	if (!tracking_evsel->core.attr.mmap || !tracking_evsel->core.attr.comm) {
core              451 tools/perf/tests/switch-tracking.c 			if (evsel->core.attr.mmap || evsel->core.attr.comm) {
core               80 tools/perf/tests/task-exit.c 	perf_evlist__set_maps(&evlist->core, cpus, threads);
core               93 tools/perf/tests/task-exit.c 	evsel->core.attr.task = 1;
core               95 tools/perf/tests/task-exit.c 	evsel->core.attr.sample_freq = 1000000;
core               97 tools/perf/tests/task-exit.c 	evsel->core.attr.sample_freq = 1;
core               99 tools/perf/tests/task-exit.c 	evsel->core.attr.inherit = 0;
core              100 tools/perf/tests/task-exit.c 	evsel->core.attr.watermark = 0;
core              101 tools/perf/tests/task-exit.c 	evsel->core.attr.wakeup_events = 1;
core              102 tools/perf/tests/task-exit.c 	evsel->core.attr.exclude_kernel = 1;
core              426 tools/perf/ui/browsers/annotate.c 	if (!symbol__hists(dl->ops.target.sym, evsel->evlist->core.nr_entries)) {
core             3225 tools/perf/ui/browsers/hists.c 	struct evsel *evsel = list_entry(entry, struct evsel, core.node);
core             3322 tools/perf/ui/browsers/hists.c 				if (pos->core.node.next == &evlist->core.entries)
core             3328 tools/perf/ui/browsers/hists.c 				if (pos->core.node.prev == &evlist->core.entries)
core             3364 tools/perf/ui/browsers/hists.c 	struct evsel *evsel = list_entry(entry, struct evsel, core.node);
core             3383 tools/perf/ui/browsers/hists.c 			.entries    = &evlist->core.entries,
core             3417 tools/perf/ui/browsers/hists.c 	int nr_entries = evlist->core.nr_entries;
core               74 tools/perf/ui/browsers/res_sample.c 	attr_to_script(extra_format, &evsel->core.attr);
core              108 tools/perf/ui/browsers/scripts.c 		attr_to_script(scriptc.extra_format, &evsel->core.attr);
core              133 tools/perf/ui/gtk/annotate.c 			for (i = 0; i < evsel->core.nr_members; i++) {
core              648 tools/perf/ui/gtk/hists.c 			if (pos->core.nr_members > 1) {
core               49 tools/perf/ui/hist.c 		int nr_members = evsel->core.nr_members;
core              171 tools/perf/ui/hist.c 	nr_members = evsel->core.nr_members;
core              232 tools/perf/ui/hist.c 		len = max(len, evsel->core.nr_members * fmt->len);
core              945 tools/perf/util/annotate.c 	src = symbol__hists(sym, evsel->evlist->core.nr_entries);
core             1179 tools/perf/util/annotate.c 		nr = evsel->core.nr_members;
core             1457 tools/perf/util/annotate.c 			width *= evsel->core.nr_members;
core             2298 tools/perf/util/annotate.c 		width *= evsel->core.nr_members;
core             2994 tools/perf/util/annotate.c 		nr_pcnt = evsel->core.nr_members;
core              136 tools/perf/util/auxtrace.c 		mp->cpu = evlist->core.cpus->map[idx];
core              137 tools/perf/util/auxtrace.c 		if (evlist->core.threads)
core              138 tools/perf/util/auxtrace.c 			mp->tid = perf_thread_map__pid(evlist->core.threads, 0);
core              143 tools/perf/util/auxtrace.c 		mp->tid = perf_thread_map__pid(evlist->core.threads, idx);
core             2160 tools/perf/util/auxtrace.c 		if (pmu->type == evsel->core.attr.type)
core             1409 tools/perf/util/bpf-loader.c 	struct xyarray *xy = evsel->core.fd;
core             1427 tools/perf/util/bpf-loader.c 	attr = &evsel->core.attr;
core              212 tools/perf/util/cgroup.c 	if (list_empty(&evlist->core.entries)) {
core             1270 tools/perf/util/cs-etm.c 		if (evsel->core.attr.type == etm->pmu_type) {
core             1284 tools/perf/util/cs-etm.c 	attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK;
core             1292 tools/perf/util/cs-etm.c 	attr.exclude_user = evsel->core.attr.exclude_user;
core             1293 tools/perf/util/cs-etm.c 	attr.exclude_kernel = evsel->core.attr.exclude_kernel;
core             1294 tools/perf/util/cs-etm.c 	attr.exclude_hv = evsel->core.attr.exclude_hv;
core             1295 tools/perf/util/cs-etm.c 	attr.exclude_host = evsel->core.attr.exclude_host;
core             1296 tools/perf/util/cs-etm.c 	attr.exclude_guest = evsel->core.attr.exclude_guest;
core             1297 tools/perf/util/cs-etm.c 	attr.sample_id_all = evsel->core.attr.sample_id_all;
core             1298 tools/perf/util/cs-etm.c 	attr.read_format = evsel->core.attr.read_format;
core             1301 tools/perf/util/cs-etm.c 	id = evsel->core.id[0] + 1000000000;
core             2343 tools/perf/util/cs-etm.c 		if ((evsel->core.attr.sample_type & PERF_SAMPLE_TIME))
core              591 tools/perf/util/data-convert-bt.c 	u64 type = evsel->core.attr.sample_type;
core              761 tools/perf/util/data-convert-bt.c 	if (evsel->core.attr.sample_type & PERF_SAMPLE_CPU)
core              799 tools/perf/util/data-convert-bt.c 	unsigned long type = evsel->core.attr.sample_type;
core              824 tools/perf/util/data-convert-bt.c 	if (evsel->core.attr.type == PERF_TYPE_TRACEPOINT) {
core             1091 tools/perf/util/data-convert-bt.c 	u64 type = evsel->core.attr.sample_type;
core             1161 tools/perf/util/data-convert-bt.c 	pr("Adding event '%s' (type %d)\n", name, evsel->core.attr.type);
core             1171 tools/perf/util/data-convert-bt.c 	if (evsel->core.attr.type == PERF_TYPE_TRACEPOINT) {
core              392 tools/perf/util/db-export.c 	if ((evsel->core.attr.sample_type & PERF_SAMPLE_ADDR) &&
core              393 tools/perf/util/db-export.c 	    sample_addr_correlates_sym(&evsel->core.attr)) {
core               52 tools/perf/util/evlist.c #define FD(e, x, y) (*(int *)xyarray__entry(e->core.fd, x, y))
core               53 tools/perf/util/evlist.c #define SID(e, x, y) xyarray__entry(e->core.sample_id, x, y)
core               58 tools/perf/util/evlist.c 	perf_evlist__init(&evlist->core);
core               59 tools/perf/util/evlist.c 	perf_evlist__set_maps(&evlist->core, cpus, threads);
core               60 tools/perf/util/evlist.c 	fdarray__init(&evlist->core.pollfd, 64);
core              129 tools/perf/util/evlist.c 		list_del_init(&pos->core.node);
core              134 tools/perf/util/evlist.c 	evlist->core.nr_entries = 0;
core              141 tools/perf/util/evlist.c 	fdarray__exit(&evlist->core.pollfd);
core              151 tools/perf/util/evlist.c 	perf_cpu_map__put(evlist->core.cpus);
core              152 tools/perf/util/evlist.c 	perf_thread_map__put(evlist->core.threads);
core              153 tools/perf/util/evlist.c 	evlist->core.cpus = NULL;
core              154 tools/perf/util/evlist.c 	evlist->core.threads = NULL;
core              163 tools/perf/util/evlist.c 	entry->idx = evlist->core.nr_entries;
core              166 tools/perf/util/evlist.c 	perf_evlist__add(&evlist->core, &entry->core);
core              168 tools/perf/util/evlist.c 	if (evlist->core.nr_entries == 1)
core              175 tools/perf/util/evlist.c 	perf_evlist__remove(&evlist->core, &evsel->core);
core              184 tools/perf/util/evlist.c 		list_del_init(&evsel->core.node);
core              193 tools/perf/util/evlist.c 	leader = list_entry(list->next, struct evsel, core.node);
core              194 tools/perf/util/evlist.c 	evsel = list_entry(list->prev, struct evsel, core.node);
core              196 tools/perf/util/evlist.c 	leader->core.nr_members = evsel->idx - leader->idx + 1;
core              205 tools/perf/util/evlist.c 	if (evlist->core.nr_entries) {
core              206 tools/perf/util/evlist.c 		evlist->nr_groups = evlist->core.nr_entries > 1 ? 1 : 0;
core              207 tools/perf/util/evlist.c 		__perf_evlist__set_leader(&evlist->core.entries);
core              229 tools/perf/util/evlist.c 	struct evsel *evsel = perf_evsel__new_idx(&attr, evlist->core.nr_entries);
core              246 tools/perf/util/evlist.c 		evsel = perf_evsel__new_idx(attrs + i, evlist->core.nr_entries + i);
core              249 tools/perf/util/evlist.c 		list_add_tail(&evsel->core.node, &head);
core              279 tools/perf/util/evlist.c 		if (evsel->core.attr.type   == PERF_TYPE_TRACEPOINT &&
core              280 tools/perf/util/evlist.c 		    (int)evsel->core.attr.config == id)
core              294 tools/perf/util/evlist.c 		if ((evsel->core.attr.type == PERF_TYPE_TRACEPOINT) &&
core              318 tools/perf/util/evlist.c 	if (evsel->core.system_wide)
core              321 tools/perf/util/evlist.c 		return perf_thread_map__nr(evlist->core.threads);
core              329 tools/perf/util/evlist.c 		if (pos->disabled || !perf_evsel__is_group_leader(pos) || !pos->core.fd)
core              342 tools/perf/util/evlist.c 		if (!perf_evsel__is_group_leader(pos) || !pos->core.fd)
core              361 tools/perf/util/evlist.c 	if (!evsel->core.fd)
core              377 tools/perf/util/evlist.c 	int nr_cpus = perf_cpu_map__nr(evlist->core.cpus);
core              379 tools/perf/util/evlist.c 	if (!evsel->core.fd)
core              393 tools/perf/util/evlist.c 	bool per_cpu_mmaps = !perf_cpu_map__empty(evlist->core.cpus);
core              403 tools/perf/util/evlist.c 	return perf_evlist__add_pollfd(&evlist->core, fd, NULL, POLLIN);
core              417 tools/perf/util/evlist.c 	return fdarray__filter(&evlist->core.pollfd, revents_and_mask,
core              423 tools/perf/util/evlist.c 	return perf_evlist__poll(&evlist->core, timeout);
core              432 tools/perf/util/evlist.c 	if (evlist->core.cpus && cpu >= 0)
core              433 tools/perf/util/evlist.c 		sid->cpu = evlist->core.cpus->map[cpu];
core              436 tools/perf/util/evlist.c 	if (!evsel->core.system_wide && evlist->core.threads && thread >= 0)
core              437 tools/perf/util/evlist.c 		sid->tid = perf_thread_map__pid(evlist->core.threads, thread);
core              449 tools/perf/util/evlist.c 	head = &evlist->core.heads[hash];
core              462 tools/perf/util/evlist.c 	if (evlist->core.nr_entries == 1 || !id)
core              467 tools/perf/util/evlist.c 		return container_of(sid->evsel, struct evsel, core);
core              485 tools/perf/util/evlist.c 		return container_of(sid->evsel, struct evsel, core);
core              520 tools/perf/util/evlist.c 	if (evlist->core.nr_entries == 1)
core              523 tools/perf/util/evlist.c 	if (!first->core.attr.sample_id_all &&
core              535 tools/perf/util/evlist.c 	head = &evlist->core.heads[hash];
core              539 tools/perf/util/evlist.c 			return container_of(sid->evsel, struct evsel, core);
core              551 tools/perf/util/evlist.c 	for (i = 0; i < evlist->core.nr_mmaps; i++) {
core              552 tools/perf/util/evlist.c 		int fd = evlist->overwrite_mmap[i].core.fd;
core              579 tools/perf/util/evlist.c 		for (i = 0; i < evlist->core.nr_mmaps; i++)
core              583 tools/perf/util/evlist.c 		for (i = 0; i < evlist->core.nr_mmaps; i++)
core              600 tools/perf/util/evlist.c 	evlist->core.nr_mmaps = perf_cpu_map__nr(evlist->core.cpus);
core              601 tools/perf/util/evlist.c 	if (perf_cpu_map__empty(evlist->core.cpus))
core              602 tools/perf/util/evlist.c 		evlist->core.nr_mmaps = perf_thread_map__nr(evlist->core.threads);
core              603 tools/perf/util/evlist.c 	map = zalloc(evlist->core.nr_mmaps * sizeof(struct mmap));
core              607 tools/perf/util/evlist.c 	for (i = 0; i < evlist->core.nr_mmaps; i++) {
core              608 tools/perf/util/evlist.c 		map[i].core.fd = -1;
core              609 tools/perf/util/evlist.c 		map[i].core.overwrite = overwrite;
core              619 tools/perf/util/evlist.c 		refcount_set(&map[i].core.refcnt, 0);
core              628 tools/perf/util/evlist.c 	if (evsel->core.attr.write_backward)
core              639 tools/perf/util/evlist.c 	int evlist_cpu = cpu_map__cpu(evlist->core.cpus, cpu_idx);
core              648 tools/perf/util/evlist.c 		if (evsel->core.attr.write_backward) {
core              663 tools/perf/util/evlist.c 		if (evsel->core.system_wide && thread)
core              666 tools/perf/util/evlist.c 		cpu = perf_cpu_map__idx(evsel->core.cpus, evlist_cpu);
core              693 tools/perf/util/evlist.c 		if (!evsel->core.system_wide &&
core              694 tools/perf/util/evlist.c 		     perf_evlist__add_pollfd(&evlist->core, fd, &maps[idx], revent) < 0) {
core              699 tools/perf/util/evlist.c 		if (evsel->core.attr.read_format & PERF_FORMAT_ID) {
core              700 tools/perf/util/evlist.c 			if (perf_evlist__id_add_fd(&evlist->core, &evsel->core, cpu, thread,
core              715 tools/perf/util/evlist.c 	int nr_cpus = perf_cpu_map__nr(evlist->core.cpus);
core              716 tools/perf/util/evlist.c 	int nr_threads = perf_thread_map__nr(evlist->core.threads);
core              744 tools/perf/util/evlist.c 	int nr_threads = perf_thread_map__nr(evlist->core.threads);
core              894 tools/perf/util/evlist.c 	const struct perf_cpu_map *cpus = evlist->core.cpus;
core              895 tools/perf/util/evlist.c 	const struct perf_thread_map *threads = evlist->core.threads;
core              909 tools/perf/util/evlist.c 	if (evlist->core.pollfd.entries == NULL && perf_evlist__alloc_pollfd(&evlist->core) < 0)
core              912 tools/perf/util/evlist.c 	evlist->core.mmap_len = evlist__mmap_size(pages);
core              913 tools/perf/util/evlist.c 	pr_debug("mmap size %zuB\n", evlist->core.mmap_len);
core              914 tools/perf/util/evlist.c 	mp.mask = evlist->core.mmap_len - page_size - 1;
core              916 tools/perf/util/evlist.c 	auxtrace_mmap_params__init(&mp.auxtrace_mp, evlist->core.mmap_len,
core              920 tools/perf/util/evlist.c 		if ((evsel->core.attr.read_format & PERF_FORMAT_ID) &&
core              921 tools/perf/util/evlist.c 		    evsel->core.sample_id == NULL &&
core              922 tools/perf/util/evlist.c 		    perf_evsel__alloc_id(&evsel->core, perf_cpu_map__nr(cpus), threads->nr) < 0)
core              975 tools/perf/util/evlist.c 	evlist->core.has_user_cpus = !!target->cpu_list;
core              977 tools/perf/util/evlist.c 	perf_evlist__set_maps(&evlist->core, cpus, threads);
core             1017 tools/perf/util/evlist.c 		err = perf_evsel__apply_filter(&evsel->core, evsel->filter);
core             1033 tools/perf/util/evlist.c 		if (evsel->core.attr.type != PERF_TYPE_TRACEPOINT)
core             1080 tools/perf/util/evlist.c 	if (evlist->core.nr_entries == 1)
core             1103 tools/perf/util/evlist.c 		evlist->combined_sample_type |= evsel->core.attr.sample_type;
core             1120 tools/perf/util/evlist.c 		branch_type |= evsel->core.attr.branch_sample_type;
core             1127 tools/perf/util/evlist.c 	u64 read_format = first->core.attr.read_format;
core             1128 tools/perf/util/evlist.c 	u64 sample_type = first->core.attr.sample_type;
core             1131 tools/perf/util/evlist.c 		if (read_format != pos->core.attr.read_format)
core             1151 tools/perf/util/evlist.c 	if (!first->core.attr.sample_id_all)
core             1154 tools/perf/util/evlist.c 	sample_type = first->core.attr.sample_type;
core             1182 tools/perf/util/evlist.c 		if (first->core.attr.sample_id_all != pos->core.attr.sample_id_all)
core             1192 tools/perf/util/evlist.c 	return first->core.attr.sample_id_all;
core             1232 tools/perf/util/evlist.c 	perf_evlist__set_maps(&evlist->core, cpus, threads);
core             1249 tools/perf/util/evlist.c 	if (evlist->core.threads == NULL && evlist->core.cpus == NULL) {
core             1258 tools/perf/util/evlist.c 		err = evsel__open(evsel, evsel->core.cpus, evsel->core.threads);
core             1352 tools/perf/util/evlist.c 		if (evlist->core.threads == NULL) {
core             1357 tools/perf/util/evlist.c 		perf_thread_map__set_pid(evlist->core.threads, 0, evlist->workload.pid);
core             1459 tools/perf/util/evlist.c 		if (first->core.attr.sample_freq < (u64)max_freq)
core             1466 tools/perf/util/evlist.c 				    emsg, max_freq, first->core.attr.sample_freq);
core             1481 tools/perf/util/evlist.c 	int pages_attempted = evlist->core.mmap_len / 1024, pages_max_per_user, printed = 0;
core             1520 tools/perf/util/evlist.c 			list_move_tail(&evsel->core.node, &move);
core             1523 tools/perf/util/evlist.c 	list_splice(&move, &evlist->core.entries);
core             1621 tools/perf/util/evlist.c 		if (!evsel->core.attr.exclude_kernel)
core             1651 tools/perf/util/evlist.c 			leader->name, leader->core.nr_members);
core             1662 tools/perf/util/evlist.c 				perf_evsel__close(&c2->core);
core             1664 tools/perf/util/evlist.c 			c2->core.nr_members = 0;
core             1688 tools/perf/util/evlist.c 	evsel = perf_evsel__new_idx(attr, (*evlist)->core.nr_entries);
core             1728 tools/perf/util/evlist.c 		for (i = 0; i < evlist->core.nr_mmaps; i++) {
core             1766 tools/perf/util/evlist.c 		if (evsel__open(counter, evlist->core.cpus,
core             1767 tools/perf/util/evlist.c 				     evlist->core.threads) < 0)
core               52 tools/perf/util/evlist.h 	struct perf_evlist core;
core              234 tools/perf/util/evlist.h 	return list_empty(&evlist->core.entries);
core              239 tools/perf/util/evlist.h 	struct perf_evsel *evsel = perf_evlist__first(&evlist->core);
core              241 tools/perf/util/evlist.h 	return container_of(evsel, struct evsel, core);
core              246 tools/perf/util/evlist.h 	struct perf_evsel *evsel = perf_evlist__last(&evlist->core);
core              248 tools/perf/util/evlist.h 	return container_of(evsel, struct evsel, core);
core              264 tools/perf/util/evlist.h         list_for_each_entry(evsel, list, core.node)
core              272 tools/perf/util/evlist.h 	__evlist__for_each_entry(&(evlist)->core.entries, evsel)
core              280 tools/perf/util/evlist.h         list_for_each_entry_continue(evsel, list, core.node)
core              288 tools/perf/util/evlist.h 	__evlist__for_each_entry_continue(&(evlist)->core.entries, evsel)
core              296 tools/perf/util/evlist.h         list_for_each_entry_reverse(evsel, list, core.node)
core              304 tools/perf/util/evlist.h 	__evlist__for_each_entry_reverse(&(evlist)->core.entries, evsel)
core              313 tools/perf/util/evlist.h         list_for_each_entry_safe(evsel, tmp, list, core.node)
core              322 tools/perf/util/evlist.h 	__evlist__for_each_entry_safe(&(evlist)->core.entries, tmp, evsel)
core              103 tools/perf/util/evsel.c #define FD(e, x, y) (*(int *)xyarray__entry(e->core.fd, x, y))
core              183 tools/perf/util/evsel.c 	evsel->id_pos = __perf_evsel__calc_id_pos(evsel->core.attr.sample_type);
core              184 tools/perf/util/evsel.c 	evsel->is_pos = __perf_evsel__calc_is_pos(evsel->core.attr.sample_type);
core              190 tools/perf/util/evsel.c 	if (!(evsel->core.attr.sample_type & bit)) {
core              191 tools/perf/util/evsel.c 		evsel->core.attr.sample_type |= bit;
core              200 tools/perf/util/evsel.c 	if (evsel->core.attr.sample_type & bit) {
core              201 tools/perf/util/evsel.c 		evsel->core.attr.sample_type &= ~bit;
core              216 tools/perf/util/evsel.c 	evsel->core.attr.read_format |= PERF_FORMAT_ID;
core              240 tools/perf/util/evsel.c 	perf_evsel__init(&evsel->core, attr);
core              271 tools/perf/util/evsel.c 		evsel->core.attr.sample_type |= (PERF_SAMPLE_RAW | PERF_SAMPLE_TIME |
core              273 tools/perf/util/evsel.c 		evsel->core.attr.sample_period = 1;
core              399 tools/perf/util/evsel.c 	struct perf_event_attr *attr = &evsel->core.attr;
core              434 tools/perf/util/evsel.c 	int r = scnprintf(bf, size, "%s", __perf_evsel__hw_name(evsel->core.attr.config));
core              460 tools/perf/util/evsel.c 	int r = scnprintf(bf, size, "%s", __perf_evsel__sw_name(evsel->core.attr.config));
core              484 tools/perf/util/evsel.c 	struct perf_event_attr *attr = &evsel->core.attr;
core              584 tools/perf/util/evsel.c 	int ret = __perf_evsel__hw_cache_name(evsel->core.attr.config, bf, size);
core              590 tools/perf/util/evsel.c 	int ret = scnprintf(bf, size, "raw 0x%" PRIx64, evsel->core.attr.config);
core              610 tools/perf/util/evsel.c 	switch (evsel->core.attr.type) {
core              640 tools/perf/util/evsel.c 			  evsel->core.attr.type);
core              694 tools/perf/util/evsel.c 	struct perf_event_attr *attr = &evsel->core.attr;
core              760 tools/perf/util/evsel.c 	struct perf_event_attr *attr = &evsel->core.attr;
core              779 tools/perf/util/evsel.c 	struct perf_event_attr *attr = &evsel->core.attr;
core              895 tools/perf/util/evsel.c 				evsel->core.attr.mmap_data = track;
core              904 tools/perf/util/evsel.c 	return (evsel->core.attr.type == PERF_TYPE_SOFTWARE) &&
core              905 tools/perf/util/evsel.c 	       (evsel->core.attr.config == PERF_COUNT_SW_DUMMY);
core              940 tools/perf/util/evsel.c 	struct perf_event_attr *attr = &evsel->core.attr;
core              964 tools/perf/util/evsel.c 		if (leader->core.nr_members > 1) {
core             1001 tools/perf/util/evsel.c 		attr->sample_type = leader->core.attr.sample_type;
core             1008 tools/perf/util/evsel.c 		evsel->core.attr.read_format |=
core             1026 tools/perf/util/evsel.c 		evsel->core.attr.exclude_callchain_user = 1;
core             1094 tools/perf/util/evsel.c 		evsel->core.attr.read_format |=
core             1140 tools/perf/util/evsel.c 	if (evsel->core.own_cpus || evsel->unit)
core             1141 tools/perf/util/evsel.c 		evsel->core.attr.read_format |= PERF_FORMAT_ID;
core             1210 tools/perf/util/evsel.c 	int err = perf_evsel__enable(&evsel->core);
core             1220 tools/perf/util/evsel.c 	int err = perf_evsel__disable(&evsel->core);
core             1245 tools/perf/util/evsel.c 	assert(list_empty(&evsel->core.node));
core             1248 tools/perf/util/evsel.c 	perf_evsel__free_fd(&evsel->core);
core             1249 tools/perf/util/evsel.c 	perf_evsel__free_id(&evsel->core);
core             1252 tools/perf/util/evsel.c 	perf_cpu_map__put(evsel->core.cpus);
core             1253 tools/perf/util/evsel.c 	perf_cpu_map__put(evsel->core.own_cpus);
core             1254 tools/perf/util/evsel.c 	perf_thread_map__put(evsel->core.threads);
core             1311 tools/perf/util/evsel.c 	return perf_evsel__read(&evsel->core, cpu, thread, count);
core             1333 tools/perf/util/evsel.c 	u64 read_format = leader->core.attr.read_format;
core             1339 tools/perf/util/evsel.c 	if (nr != (u64) leader->core.nr_members)
core             1371 tools/perf/util/evsel.c 	u64 read_format = leader->core.attr.read_format;
core             1372 tools/perf/util/evsel.c 	int size = perf_evsel__read_size(&leader->core);
core             1400 tools/perf/util/evsel.c 	u64 read_format = evsel->core.attr.read_format;
core             1441 tools/perf/util/evsel.c 	BUG_ON(!leader->core.fd);
core             1493 tools/perf/util/evsel.c 	if (evsel->core.system_wide)
core             1539 tools/perf/util/evsel.c 	int precise_ip = evsel->core.attr.precise_ip;
core             1546 tools/perf/util/evsel.c 		fd = sys_perf_event_open(&evsel->core.attr, pid, cpu, group_fd, flags);
core             1558 tools/perf/util/evsel.c 		if (!evsel->core.attr.precise_ip) {
core             1559 tools/perf/util/evsel.c 			evsel->core.attr.precise_ip = precise_ip;
core             1564 tools/perf/util/evsel.c 		evsel->core.attr.precise_ip--;
core             1565 tools/perf/util/evsel.c 		pr_debug2("decreasing precise_ip by one (%d)\n", evsel->core.attr.precise_ip);
core             1566 tools/perf/util/evsel.c 		display_attr(&evsel->core.attr);
core             1580 tools/perf/util/evsel.c 	if ((perf_missing_features.write_backward && evsel->core.attr.write_backward) ||
core             1581 tools/perf/util/evsel.c 	    (perf_missing_features.aux_output     && evsel->core.attr.aux_output))
core             1608 tools/perf/util/evsel.c 	if (evsel->core.system_wide)
core             1613 tools/perf/util/evsel.c 	if (evsel->core.fd == NULL &&
core             1614 tools/perf/util/evsel.c 	    perf_evsel__alloc_fd(&evsel->core, cpus->nr, nthreads) < 0)
core             1624 tools/perf/util/evsel.c 		evsel->core.attr.clockid = CLOCK_MONOTONIC; /* should always work */
core             1626 tools/perf/util/evsel.c 		evsel->core.attr.use_clockid = 0;
core             1627 tools/perf/util/evsel.c 		evsel->core.attr.clockid = 0;
core             1632 tools/perf/util/evsel.c 		evsel->core.attr.mmap2 = 0;
core             1634 tools/perf/util/evsel.c 		evsel->core.attr.exclude_guest = evsel->core.attr.exclude_host = 0;
core             1636 tools/perf/util/evsel.c 		evsel->core.attr.branch_sample_type &= ~(PERF_SAMPLE_BRANCH_NO_FLAGS |
core             1638 tools/perf/util/evsel.c 	if (perf_missing_features.group_read && evsel->core.attr.inherit)
core             1639 tools/perf/util/evsel.c 		evsel->core.attr.read_format &= ~(PERF_FORMAT_GROUP|PERF_FORMAT_ID);
core             1641 tools/perf/util/evsel.c 		evsel->core.attr.ksymbol = 0;
core             1643 tools/perf/util/evsel.c 		evsel->core.attr.bpf_event = 0;
core             1646 tools/perf/util/evsel.c 		evsel->core.attr.sample_id_all = 0;
core             1648 tools/perf/util/evsel.c 	display_attr(&evsel->core.attr);
core             1655 tools/perf/util/evsel.c 			if (!evsel->cgrp && !evsel->core.system_wide)
core             1755 tools/perf/util/evsel.c 	if (!perf_missing_features.aux_output && evsel->core.attr.aux_output) {
core             1759 tools/perf/util/evsel.c 	} else if (!perf_missing_features.bpf && evsel->core.attr.bpf_event) {
core             1763 tools/perf/util/evsel.c 	} else if (!perf_missing_features.ksymbol && evsel->core.attr.ksymbol) {
core             1767 tools/perf/util/evsel.c 	} else if (!perf_missing_features.write_backward && evsel->core.attr.write_backward) {
core             1771 tools/perf/util/evsel.c 	} else if (!perf_missing_features.clockid_wrong && evsel->core.attr.use_clockid) {
core             1775 tools/perf/util/evsel.c 	} else if (!perf_missing_features.clockid && evsel->core.attr.use_clockid) {
core             1783 tools/perf/util/evsel.c 	} else if (!perf_missing_features.mmap2 && evsel->core.attr.mmap2) {
core             1788 tools/perf/util/evsel.c 		   (evsel->core.attr.exclude_guest || evsel->core.attr.exclude_host)) {
core             1797 tools/perf/util/evsel.c 			(evsel->core.attr.branch_sample_type &
core             1804 tools/perf/util/evsel.c 		    evsel->core.attr.inherit &&
core             1805 tools/perf/util/evsel.c 		   (evsel->core.attr.read_format & PERF_FORMAT_GROUP) &&
core             1827 tools/perf/util/evsel.c 	perf_evsel__close(&evsel->core);
core             1828 tools/perf/util/evsel.c 	perf_evsel__free_id(&evsel->core);
core             1847 tools/perf/util/evsel.c 	u64 type = evsel->core.attr.sample_type;
core             1936 tools/perf/util/evsel.c 	u64 type = evsel->core.attr.sample_type;
core             1952 tools/perf/util/evsel.c 	data->period = evsel->core.attr.sample_period;
core             1959 tools/perf/util/evsel.c 		if (!evsel->core.attr.sample_id_all)
core             2032 tools/perf/util/evsel.c 		u64 read_format = evsel->core.attr.read_format;
core             2137 tools/perf/util/evsel.c 			u64 mask = evsel->core.attr.sample_regs_user;
core             2193 tools/perf/util/evsel.c 			u64 mask = evsel->core.attr.sample_regs_intr;
core             2216 tools/perf/util/evsel.c 	u64 type = evsel->core.attr.sample_type;
core             2227 tools/perf/util/evsel.c 		if (!evsel->core.attr.sample_id_all)
core             2336 tools/perf/util/evsel.c 	    evsel->core.attr.type   == PERF_TYPE_HARDWARE &&
core             2337 tools/perf/util/evsel.c 	    evsel->core.attr.config == PERF_COUNT_HW_CPU_CYCLES) {
core             2349 tools/perf/util/evsel.c 		evsel->core.attr.type   = PERF_TYPE_SOFTWARE;
core             2350 tools/perf/util/evsel.c 		evsel->core.attr.config = PERF_COUNT_SW_CPU_CLOCK;
core             2354 tools/perf/util/evsel.c 	} else if (err == EACCES && !evsel->core.attr.exclude_kernel &&
core             2374 tools/perf/util/evsel.c 		evsel->core.attr.exclude_kernel = 1;
core             2375 tools/perf/util/evsel.c 		evsel->core.attr.exclude_hv     = 1;
core             2472 tools/perf/util/evsel.c 		if (evsel->core.attr.sample_period != 0)
core             2476 tools/perf/util/evsel.c 		if (evsel->core.attr.precise_ip)
core             2480 tools/perf/util/evsel.c 		if (evsel->core.attr.type == PERF_TYPE_HARDWARE)
core             2492 tools/perf/util/evsel.c 		if (evsel->core.attr.write_backward && perf_missing_features.write_backward)
core             2523 tools/perf/util/evsel.c 	for (cpu = 0; cpu < xyarray__max_x(evsel->core.fd); cpu++) {
core             2524 tools/perf/util/evsel.c 		for (thread = 0; thread < xyarray__max_y(evsel->core.fd);
core             2528 tools/perf/util/evsel.c 			if (perf_evlist__id_add_fd(&evlist->core, &evsel->core,
core             2539 tools/perf/util/evsel.c 	struct perf_cpu_map *cpus = evsel->core.cpus;
core             2540 tools/perf/util/evsel.c 	struct perf_thread_map *threads = evsel->core.threads;
core             2542 tools/perf/util/evsel.c 	if (perf_evsel__alloc_id(&evsel->core, cpus->nr, threads->nr))
core               44 tools/perf/util/evsel.h 	struct perf_evsel	core;
core              129 tools/perf/util/evsel.h 	return perf_evsel__cpus(&evsel->core);
core              253 tools/perf/util/evsel.h 	(evsel->core.attr.type == PERF_TYPE_##t &&	\
core              254 tools/perf/util/evsel.h 	 evsel->core.attr.config == PERF_COUNT_##c)
core              259 tools/perf/util/evsel.h 	return (e1->core.attr.type == e2->core.attr.type) &&
core              260 tools/perf/util/evsel.h 	       (e1->core.attr.config == e2->core.attr.config);
core              266 tools/perf/util/evsel.h 	 (a)->core.attr.type == (b)->core.attr.type &&	\
core              267 tools/perf/util/evsel.h 	 (a)->core.attr.config == (b)->core.attr.config)
core              309 tools/perf/util/evsel.h 	return list_entry(evsel->core.node.next, struct evsel, core.node);
core              314 tools/perf/util/evsel.h 	return list_entry(evsel->core.node.prev, struct evsel, core.node);
core              342 tools/perf/util/evsel.h 	return perf_evsel__is_group_leader(evsel) && evsel->core.nr_members > 1;
core              370 tools/perf/util/evsel.h for ((_evsel) = list_entry((_leader)->core.node.next, struct evsel, core.node); \
core              372 tools/perf/util/evsel.h      (_evsel) = list_entry((_evsel)->core.node.next, struct evsel, core.node))
core              378 tools/perf/util/evsel.h      (_evsel) = list_entry((_evsel)->core.node.next, struct evsel, core.node))
core              382 tools/perf/util/evsel.h 	return evsel->core.attr.branch_sample_type & PERF_SAMPLE_BRANCH_CALL_STACK;
core              387 tools/perf/util/evsel.h 	return (evsel->core.attr.sample_type & PERF_SAMPLE_CALLCHAIN) != 0;
core               50 tools/perf/util/evsel_fprintf.c 		if (evsel->core.nr_members > 1)
core               57 tools/perf/util/evsel_fprintf.c 		if (evsel->core.nr_members > 1)
core               65 tools/perf/util/evsel_fprintf.c 		printed += perf_event_attr__fprintf(fp, &evsel->core.attr,
core               70 tools/perf/util/evsel_fprintf.c 		if (!evsel->core.attr.freq)
core               74 tools/perf/util/evsel_fprintf.c 					 term, (u64)evsel->core.attr.sample_freq);
core               80 tools/perf/util/evsel_fprintf.c 		if (evsel->core.attr.type != PERF_TYPE_TRACEPOINT) {
core              302 tools/perf/util/header.c 	return read_tracing_data(ff->fd, &evlist->core.entries);
core              492 tools/perf/util/header.c 	nre = evlist->core.nr_entries;
core              504 tools/perf/util/header.c 	sz = (u32)sizeof(evsel->core.attr);
core              510 tools/perf/util/header.c 		ret = do_write(ff, &evsel->core.attr, sz);
core              520 tools/perf/util/header.c 		nri = evsel->core.ids;
core              534 tools/perf/util/header.c 		ret = do_write(ff, evsel->core.id, evsel->core.ids * sizeof(u64));
core              787 tools/perf/util/header.c 		    evsel->core.nr_members > 1) {
core              790 tools/perf/util/header.c 			u32 nr_members = evsel->core.nr_members;
core             1585 tools/perf/util/header.c 	for (evsel = events; evsel->core.attr.size; evsel++) {
core             1587 tools/perf/util/header.c 		zfree(&evsel->core.id);
core             1618 tools/perf/util/header.c 	msz = sizeof(evsel->core.attr);
core             1635 tools/perf/util/header.c 		memcpy(&evsel->core.attr, buf, msz);
core             1653 tools/perf/util/header.c 		evsel->core.ids = nr;
core             1654 tools/perf/util/header.c 		evsel->core.id = id;
core             1693 tools/perf/util/header.c 	for (evsel = events; evsel->core.attr.size; evsel++) {
core             1696 tools/perf/util/header.c 		if (evsel->core.ids) {
core             1698 tools/perf/util/header.c 			for (j = 0, id = evsel->core.id; j < evsel->core.ids; j++, id++) {
core             1706 tools/perf/util/header.c 		perf_event_attr__fprintf(fp, &evsel->core.attr, __desc_attr__fprintf, NULL);
core             1821 tools/perf/util/header.c 		    evsel->core.nr_members > 1) {
core             1825 tools/perf/util/header.c 			nr = evsel->core.nr_members - 1;
core             2148 tools/perf/util/header.c 	for (evsel = events; evsel->core.attr.size; evsel++)
core             2474 tools/perf/util/header.c 			evsel->core.nr_members = desc[i].nr_members;
core             2482 tools/perf/util/header.c 			nr = evsel->core.nr_members - 1;
core             3065 tools/perf/util/header.c 		err = do_write(&ff, evsel->core.id, evsel->core.ids * sizeof(u64));
core             3076 tools/perf/util/header.c 			.attr = evsel->core.attr,
core             3079 tools/perf/util/header.c 				.size   = evsel->core.ids * sizeof(u64),
core             3105 tools/perf/util/header.c 			.size   = evlist->core.nr_entries * sizeof(f_attr),
core             3499 tools/perf/util/header.c 	event = tep_find_event(pevent, evsel->core.attr.config);
core             3501 tools/perf/util/header.c 		pr_debug("cannot find event format for %d\n", (int)evsel->core.attr.config);
core             3522 tools/perf/util/header.c 		if (pos->core.attr.type == PERF_TYPE_TRACEPOINT &&
core             3606 tools/perf/util/header.c 		if (perf_evsel__alloc_id(&evsel->core, 1, nr_ids))
core             3615 tools/perf/util/header.c 			perf_evlist__id_add(&session->evlist->core, &evsel->core, 0, j, f_id);
core             3747 tools/perf/util/header.c 	if (perf_evsel__alloc_id(&evsel->core, 1, n_ids))
core             3751 tools/perf/util/header.c 		perf_evlist__id_add(&evlist->core, &evsel->core, 0, i, event->attr.id[i]);
core             3793 tools/perf/util/header.c 			evsel->core.own_cpus = map;
core             2670 tools/perf/util/hist.c 		scnprintf(sample_freq_str, sizeof(sample_freq_str), " %d Hz,", evsel->core.attr.sample_freq);
core             2675 tools/perf/util/hist.c 			   nr_samples, unit, evsel->core.nr_members > 1 ? "s" : "",
core              771 tools/perf/util/intel-bts.c 		if (evsel->core.attr.type == bts->pmu_type && evsel->core.ids) {
core              785 tools/perf/util/intel-bts.c 	attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK;
core              790 tools/perf/util/intel-bts.c 	attr.exclude_user = evsel->core.attr.exclude_user;
core              791 tools/perf/util/intel-bts.c 	attr.exclude_kernel = evsel->core.attr.exclude_kernel;
core              792 tools/perf/util/intel-bts.c 	attr.exclude_hv = evsel->core.attr.exclude_hv;
core              793 tools/perf/util/intel-bts.c 	attr.exclude_host = evsel->core.attr.exclude_host;
core              794 tools/perf/util/intel-bts.c 	attr.exclude_guest = evsel->core.attr.exclude_guest;
core              795 tools/perf/util/intel-bts.c 	attr.sample_id_all = evsel->core.attr.sample_id_all;
core              796 tools/perf/util/intel-bts.c 	attr.read_format = evsel->core.attr.read_format;
core              798 tools/perf/util/intel-bts.c 	id = evsel->core.id[0] + 1000000000;
core              730 tools/perf/util/intel-pt.c 		if (intel_pt_get_config(pt, &evsel->core.attr, NULL) &&
core              731 tools/perf/util/intel-pt.c 		    !evsel->core.attr.exclude_kernel)
core              746 tools/perf/util/intel-pt.c 		if (intel_pt_get_config(pt, &evsel->core.attr, &config) &&
core              759 tools/perf/util/intel-pt.c 		if (intel_pt_get_config(pt, &evsel->core.attr, &config) &&
core              779 tools/perf/util/intel-pt.c 		if (intel_pt_get_config(pt, &evsel->core.attr, &config))
core              795 tools/perf/util/intel-pt.c 		if (!(evsel->core.attr.sample_type & PERF_SAMPLE_TIME))
core              797 tools/perf/util/intel-pt.c 		if (intel_pt_get_config(pt, &evsel->core.attr, &config)) {
core              812 tools/perf/util/intel-pt.c 		if (intel_pt_get_config(pt, &evsel->core.attr, NULL) &&
core              813 tools/perf/util/intel-pt.c 		    !evsel->core.attr.exclude_kernel)
core              829 tools/perf/util/intel-pt.c 		if (intel_pt_get_config(pt, &evsel->core.attr, &config)) {
core             1707 tools/perf/util/intel-pt.c 	u64 sample_type = evsel->core.attr.sample_type;
core             1708 tools/perf/util/intel-pt.c 	u64 id = evsel->core.id[0];
core             1719 tools/perf/util/intel-pt.c 	if (!evsel->core.attr.freq)
core             1720 tools/perf/util/intel-pt.c 		sample.period = evsel->core.attr.sample_period;
core             1761 tools/perf/util/intel-pt.c 		u64 regs_mask = evsel->core.attr.sample_regs_intr;
core             2723 tools/perf/util/intel-pt.c 		if (evsel->core.id && evsel->core.id[0] == id) {
core             2738 tools/perf/util/intel-pt.c 		if (evsel->core.attr.type == pt->pmu_type && evsel->core.ids)
core             2762 tools/perf/util/intel-pt.c 	attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK;
core             2771 tools/perf/util/intel-pt.c 	attr.exclude_user = evsel->core.attr.exclude_user;
core             2772 tools/perf/util/intel-pt.c 	attr.exclude_kernel = evsel->core.attr.exclude_kernel;
core             2773 tools/perf/util/intel-pt.c 	attr.exclude_hv = evsel->core.attr.exclude_hv;
core             2774 tools/perf/util/intel-pt.c 	attr.exclude_host = evsel->core.attr.exclude_host;
core             2775 tools/perf/util/intel-pt.c 	attr.exclude_guest = evsel->core.attr.exclude_guest;
core             2776 tools/perf/util/intel-pt.c 	attr.sample_id_all = evsel->core.attr.sample_id_all;
core             2777 tools/perf/util/intel-pt.c 	attr.read_format = evsel->core.attr.read_format;
core             2779 tools/perf/util/intel-pt.c 	id = evsel->core.id[0] + 1000000000;
core             2861 tools/perf/util/intel-pt.c 	if (pt->synth_opts.pwr_events && (evsel->core.attr.config & 0x10)) {
core             2906 tools/perf/util/intel-pt.c 		if (evsel->core.attr.aux_output && evsel->core.id) {
core             2933 tools/perf/util/intel-pt.c 		if (evsel->core.attr.context_switch)
core              126 tools/perf/util/jitdump.c 		if (evsel->core.attr.use_clockid == 0 || evsel->core.attr.clockid != CLOCK_MONOTONIC)
core              781 tools/perf/util/jitdump.c 	jd.sample_type = first->core.attr.sample_type;
core             2488 tools/perf/util/machine.c 	if (!((evsel->core.attr.sample_type & PERF_SAMPLE_REGS_USER) &&
core             2489 tools/perf/util/machine.c 	      (evsel->core.attr.sample_type & PERF_SAMPLE_STACK_USER)))
core               28 tools/perf/util/mmap.c 	return map->core.mask + 1 + page_size;
core               35 tools/perf/util/mmap.c 	unsigned char *data = map->core.base + page_size;
core               42 tools/perf/util/mmap.c 		event = (union perf_event *)&data[*startp & map->core.mask];
core               52 tools/perf/util/mmap.c 		if ((*startp & map->core.mask) + size != ((*startp + size) & map->core.mask)) {
core               55 tools/perf/util/mmap.c 			void *dst = map->core.event_copy;
core               58 tools/perf/util/mmap.c 				cpy = min(map->core.mask + 1 - (offset & map->core.mask), len);
core               59 tools/perf/util/mmap.c 				memcpy(dst, &data[offset & map->core.mask], cpy);
core               65 tools/perf/util/mmap.c 			event = (union perf_event *)map->core.event_copy;
core               93 tools/perf/util/mmap.c 	if (!refcount_read(&map->core.refcnt))
core               97 tools/perf/util/mmap.c 	if (!map->core.overwrite)
core               98 tools/perf/util/mmap.c 		map->core.end = perf_mmap__read_head(map);
core              100 tools/perf/util/mmap.c 	event = perf_mmap__read(map, &map->core.start, map->core.end);
core              102 tools/perf/util/mmap.c 	if (!map->core.overwrite)
core              103 tools/perf/util/mmap.c 		map->core.prev = map->core.start;
core              110 tools/perf/util/mmap.c 	return perf_mmap__read_head(map) == map->core.prev && !map->auxtrace_mmap.base;
core              115 tools/perf/util/mmap.c 	refcount_inc(&map->core.refcnt);
core              120 tools/perf/util/mmap.c 	BUG_ON(map->core.base && refcount_read(&map->core.refcnt) == 0);
core              122 tools/perf/util/mmap.c 	if (refcount_dec_and_test(&map->core.refcnt))
core              128 tools/perf/util/mmap.c 	if (!map->core.overwrite) {
core              129 tools/perf/util/mmap.c 		u64 old = map->core.prev;
core              134 tools/perf/util/mmap.c 	if (refcount_read(&map->core.refcnt) == 1 && perf_mmap__empty(map))
core              260 tools/perf/util/mmap.c 			ret = perf_mmap__aio_bind(map, i, map->core.cpu, mp->affinity);
core              321 tools/perf/util/mmap.c 	if (map->core.base != NULL) {
core              322 tools/perf/util/mmap.c 		munmap(map->core.base, perf_mmap__mmap_len(map));
core              323 tools/perf/util/mmap.c 		map->core.base = NULL;
core              324 tools/perf/util/mmap.c 		map->core.fd = -1;
core              325 tools/perf/util/mmap.c 		refcount_set(&map->core.refcnt, 0);
core              351 tools/perf/util/mmap.c 		build_node_mask(cpu__get_node(map->core.cpu), &map->affinity_mask);
core              353 tools/perf/util/mmap.c 		CPU_SET(map->core.cpu, &map->affinity_mask);
core              371 tools/perf/util/mmap.c 	refcount_set(&map->core.refcnt, 2);
core              372 tools/perf/util/mmap.c 	map->core.prev = 0;
core              373 tools/perf/util/mmap.c 	map->core.mask = mp->mask;
core              374 tools/perf/util/mmap.c 	map->core.base = mmap(NULL, perf_mmap__mmap_len(map), mp->prot,
core              376 tools/perf/util/mmap.c 	if (map->core.base == MAP_FAILED) {
core              379 tools/perf/util/mmap.c 		map->core.base = NULL;
core              382 tools/perf/util/mmap.c 	map->core.fd = fd;
core              383 tools/perf/util/mmap.c 	map->core.cpu = cpu;
core              387 tools/perf/util/mmap.c 	map->core.flush = mp->flush;
core              403 tools/perf/util/mmap.c 				&mp->auxtrace_mp, map->core.base, fd))
core              447 tools/perf/util/mmap.c 	u64 old = md->core.prev;
core              448 tools/perf/util/mmap.c 	unsigned char *data = md->core.base + page_size;
core              451 tools/perf/util/mmap.c 	md->core.start = md->core.overwrite ? head : old;
core              452 tools/perf/util/mmap.c 	md->core.end = md->core.overwrite ? old : head;
core              454 tools/perf/util/mmap.c 	if ((md->core.end - md->core.start) < md->core.flush)
core              457 tools/perf/util/mmap.c 	size = md->core.end - md->core.start;
core              458 tools/perf/util/mmap.c 	if (size > (unsigned long)(md->core.mask) + 1) {
core              459 tools/perf/util/mmap.c 		if (!md->core.overwrite) {
core              462 tools/perf/util/mmap.c 			md->core.prev = head;
core              471 tools/perf/util/mmap.c 		if (overwrite_rb_find_range(data, md->core.mask, &md->core.start, &md->core.end))
core              483 tools/perf/util/mmap.c 	if (!refcount_read(&map->core.refcnt))
core              493 tools/perf/util/mmap.c 	unsigned char *data = md->core.base + page_size;
core              502 tools/perf/util/mmap.c 	size = md->core.end - md->core.start;
core              504 tools/perf/util/mmap.c 	if ((md->core.start & md->core.mask) + size != (md->core.end & md->core.mask)) {
core              505 tools/perf/util/mmap.c 		buf = &data[md->core.start & md->core.mask];
core              506 tools/perf/util/mmap.c 		size = md->core.mask + 1 - (md->core.start & md->core.mask);
core              507 tools/perf/util/mmap.c 		md->core.start += size;
core              515 tools/perf/util/mmap.c 	buf = &data[md->core.start & md->core.mask];
core              516 tools/perf/util/mmap.c 	size = md->core.end - md->core.start;
core              517 tools/perf/util/mmap.c 	md->core.start += size;
core              524 tools/perf/util/mmap.c 	md->core.prev = head;
core              541 tools/perf/util/mmap.c 	if (!refcount_read(&map->core.refcnt))
core              544 tools/perf/util/mmap.c 	map->core.prev = perf_mmap__read_head(map);
core               24 tools/perf/util/mmap.h 	struct perf_mmap	core;
core               54 tools/perf/util/mmap.h 	return ring_buffer_read_head(mm->core.base);
core               59 tools/perf/util/mmap.h 	ring_buffer_write_tail(md->core.base, tail);
core              337 tools/perf/util/parse-events.c 	evsel->core.cpus   = perf_cpu_map__get(cpus);
core              338 tools/perf/util/parse-events.c 	evsel->core.own_cpus = perf_cpu_map__get(cpus);
core              339 tools/perf/util/parse-events.c 	evsel->core.system_wide = pmu ? pmu->is_uncore : false;
core              348 tools/perf/util/parse-events.c 	list_add_tail(&evsel->core.node, list);
core              531 tools/perf/util/parse-events.c 	list_add_tail(&evsel->core.node, list);
core              665 tools/perf/util/parse-events.c 		list_for_each_entry_safe(evsel, tmp, &new_evsels, core.node) {
core              666 tools/perf/util/parse-events.c 			list_del_init(&evsel->core.node);
core              673 tools/perf/util/parse-events.c 	list_for_each_entry(pos, &new_evsels, core.node) {
core             1478 tools/perf/util/parse-events.c 	leader = list_first_entry(list, struct evsel, core.node);
core             1479 tools/perf/util/parse-events.c 	evsel = list_last_entry(list, struct evsel, core.node);
core             1547 tools/perf/util/parse-events.c 		evsel->core.nr_members = total_members / nr_pmu;
core             1575 tools/perf/util/parse-events.c 	leader = list_entry(list->next, struct evsel, core.node);
core             1610 tools/perf/util/parse-events.c 	int eu = evsel ? evsel->core.attr.exclude_user : 0;
core             1611 tools/perf/util/parse-events.c 	int ek = evsel ? evsel->core.attr.exclude_kernel : 0;
core             1612 tools/perf/util/parse-events.c 	int eh = evsel ? evsel->core.attr.exclude_hv : 0;
core             1613 tools/perf/util/parse-events.c 	int eH = evsel ? evsel->core.attr.exclude_host : 0;
core             1614 tools/perf/util/parse-events.c 	int eG = evsel ? evsel->core.attr.exclude_guest : 0;
core             1615 tools/perf/util/parse-events.c 	int eI = evsel ? evsel->core.attr.exclude_idle : 0;
core             1616 tools/perf/util/parse-events.c 	int precise = evsel ? evsel->core.attr.precise_ip : 0;
core             1619 tools/perf/util/parse-events.c 	int pinned = evsel ? evsel->core.attr.pinned : 0;
core             1737 tools/perf/util/parse-events.c 		evsel->core.attr.exclude_user   = mod.eu;
core             1738 tools/perf/util/parse-events.c 		evsel->core.attr.exclude_kernel = mod.ek;
core             1739 tools/perf/util/parse-events.c 		evsel->core.attr.exclude_hv     = mod.eh;
core             1740 tools/perf/util/parse-events.c 		evsel->core.attr.precise_ip     = mod.precise;
core             1741 tools/perf/util/parse-events.c 		evsel->core.attr.exclude_host   = mod.eH;
core             1742 tools/perf/util/parse-events.c 		evsel->core.attr.exclude_guest  = mod.eG;
core             1743 tools/perf/util/parse-events.c 		evsel->core.attr.exclude_idle   = mod.eI;
core             1750 tools/perf/util/parse-events.c 			evsel->core.attr.pinned = mod.pinned;
core             1929 tools/perf/util/parse-events.c 		.idx    = evlist->core.nr_entries,
core             2065 tools/perf/util/parse-events.c 	if (evlist->core.nr_entries > 0)
core             2075 tools/perf/util/parse-events.c 		if (last->core.node.prev == &evlist->core.entries)
core             2077 tools/perf/util/parse-events.c 		last = list_entry(last->core.node.prev, struct evsel, core.node);
core             2096 tools/perf/util/parse-events.c 	if (evsel->core.attr.type == PERF_TYPE_TRACEPOINT) {
core             2107 tools/perf/util/parse-events.c 		if (pmu->type == evsel->core.attr.type) {
core             2145 tools/perf/util/parse-events.c 	if (evsel == NULL || evsel->core.attr.type != PERF_TYPE_TRACEPOINT) {
core             2356 tools/perf/util/parse-events.c 			evsel->core.attr.exclude_kernel = 1;
core              351 tools/perf/util/python.c 	return pevent->evsel->core.attr.type == PERF_TYPE_TRACEPOINT;
core              403 tools/perf/util/python.c 		tp_format = trace_event__tp_format_id(evsel->core.attr.config);
core              826 tools/perf/util/python.c 	evsel->core.attr.inherit = inherit;
core              944 tools/perf/util/python.c 	for (i = 0; i < evlist->core.pollfd.nr; ++i) {
core              947 tools/perf/util/python.c 		FILE *fp = fdopen(evlist->core.pollfd.entries[i].fd, "r");
core              954 tools/perf/util/python.c 		file = PyFile_FromFd(evlist->core.pollfd.entries[i].fd, "perf", "r", -1,
core              987 tools/perf/util/python.c 	evsel->idx = evlist->core.nr_entries;
core              990 tools/perf/util/python.c 	return Py_BuildValue("i", evlist->core.nr_entries);
core              997 tools/perf/util/python.c 	for (i = 0; i < evlist->core.nr_mmaps; i++) {
core             1000 tools/perf/util/python.c 		if (md->core.cpu == cpu)
core             1126 tools/perf/util/python.c 	return pevlist->evlist.core.nr_entries;
core             1134 tools/perf/util/python.c 	if (i >= pevlist->evlist.core.nr_entries)
core               36 tools/perf/util/record.c 		fd = sys_perf_event_open(&evsel->core.attr, pid, cpu, -1, flags);
core               50 tools/perf/util/record.c 	fd = sys_perf_event_open(&evsel->core.attr, pid, cpu, -1, flags);
core               87 tools/perf/util/record.c 	evsel->core.attr.sample_type |= PERF_SAMPLE_IDENTIFIER;
core               92 tools/perf/util/record.c 	evsel->core.attr.comm_exec = 1;
core               97 tools/perf/util/record.c 	evsel->core.attr.context_switch = 1;
core              154 tools/perf/util/record.c 	if (evlist->core.cpus->map[0] < 0)
core              162 tools/perf/util/record.c 			evsel->core.attr.comm_exec = 1;
core              173 tools/perf/util/record.c 	} else if (evlist->core.nr_entries > 1) {
core              177 tools/perf/util/record.c 			if (evsel->core.attr.sample_type == first->core.attr.sample_type)
core              281 tools/perf/util/record.c 	if (!evlist || perf_cpu_map__empty(evlist->core.cpus)) {
core              287 tools/perf/util/record.c 		cpu = evlist->core.cpus->map[0];
core              291 tools/perf/util/record.c 		fd = sys_perf_event_open(&evsel->core.attr, pid, cpu, -1,
core              937 tools/perf/util/s390-cpumsf.c 		    ev_bc000->core.attr.config == PERF_EVENT_CPUM_CF_DIAG)
core              210 tools/perf/util/s390-sample-raw.c 	    ev_bc000->core.attr.config != PERF_EVENT_CPUM_CF_DIAG)
core              356 tools/perf/util/scripting-engines/trace-event-perl.c 	if (evsel->core.attr.type != PERF_TYPE_TRACEPOINT)
core              360 tools/perf/util/scripting-engines/trace-event-perl.c 		pr_debug("ug! no event found for type %" PRIu64, (u64)evsel->core.attr.config);
core              445 tools/perf/util/scripting-engines/trace-event-perl.c 	XPUSHs(sv_2mortal(newSVpvn((const char *)&evsel->core.attr, sizeof(evsel->core.attr))));
core              639 tools/perf/util/scripting-engines/trace-event-python.c 	u64 read_format = evsel->core.attr.read_format;
core              710 tools/perf/util/scripting-engines/trace-event-python.c 	struct perf_event_attr *attr = &evsel->core.attr;
core              740 tools/perf/util/scripting-engines/trace-event-python.c 	pydict_set_item_string_decref(dict, "attr", _PyBytes_FromStringAndSize((const char *)&evsel->core.attr, sizeof(evsel->core.attr)));
core              812 tools/perf/util/scripting-engines/trace-event-python.c 			 "ug! no event found for type %" PRIu64, (u64)evsel->core.attr.config);
core             1166 tools/perf/util/scripting-engines/trace-event-python.c 	tuple_set_u64(t, 1, es->evsel->core.attr.config);
core             1181 tools/perf/util/scripting-engines/trace-event-python.c 	if (es->evsel->core.attr.type == PERF_TYPE_SYNTH && tables->synth_handler)
core             1319 tools/perf/util/scripting-engines/trace-event-python.c 	switch (evsel->core.attr.type) {
core             1395 tools/perf/util/scripting-engines/trace-event-python.c 	struct perf_thread_map *threads = counter->core.threads;
core             1396 tools/perf/util/scripting-engines/trace-event-python.c 	struct perf_cpu_map *cpus = counter->core.cpus;
core              163 tools/perf/util/session.c 		if (evsel->core.attr.comm_exec)
core             1232 tools/perf/util/session.c 	sample_type = evsel->core.attr.sample_type;
core             1262 tools/perf/util/session.c 		sample_read__printf(sample, evsel->core.attr.read_format);
core             1280 tools/perf/util/session.c 	read_format = evsel->core.attr.read_format;
core             1346 tools/perf/util/session.c 	evsel = container_of(sid->evsel, struct evsel, core);
core             1379 tools/perf/util/session.c 	u64 sample_type = evsel->core.attr.sample_type;
core             1380 tools/perf/util/session.c 	u64 read_format = evsel->core.attr.read_format;
core             1733 tools/perf/util/session.c 		if (evsel->core.attr.write_backward)
core             2228 tools/perf/util/session.c 		if (evsel->core.attr.type == PERF_TYPE_TRACEPOINT)
core             2305 tools/perf/util/session.c 		if (pos->core.attr.type == type)
core             2325 tools/perf/util/session.c 		if (!(evsel->core.attr.sample_type & PERF_SAMPLE_CPU)) {
core              732 tools/perf/util/sort.c 	if (evsel->core.attr.type != PERF_TYPE_TRACEPOINT)
core              749 tools/perf/util/sort.c 	if (evsel->core.attr.type != PERF_TYPE_TRACEPOINT)
core             2329 tools/perf/util/sort.c 		if (nr > evlist->core.nr_entries)
core             2397 tools/perf/util/sort.c 		if (evsel->core.attr.type != PERF_TYPE_TRACEPOINT)
core             2415 tools/perf/util/sort.c 		if (evsel->core.attr.type != PERF_TYPE_TRACEPOINT)
core             2476 tools/perf/util/sort.c 	if (evsel->core.attr.type != PERF_TYPE_TRACEPOINT) {
core             2734 tools/perf/util/sort.c 		if (evsel->core.attr.type != PERF_TYPE_TRACEPOINT) {
core              120 tools/perf/util/stat-display.c 			perf_thread_map__comm(evsel->core.threads, id),
core              122 tools/perf/util/stat-display.c 			perf_thread_map__pid(evsel->core.threads, id),
core              331 tools/perf/util/stat-display.c 		if (config->aggr_get_id(config, evlist->core.cpus, cpu2) == id)
core              370 tools/perf/util/stat-display.c 	u32 pmu_type = counter->core.attr.type;
core              373 tools/perf/util/stat-display.c 	if (counter->core.nr_members < 2)
core              378 tools/perf/util/stat-display.c 		if (pos->core.attr.type == PERF_TYPE_SOFTWARE)
core              381 tools/perf/util/stat-display.c 			pmu_type = pos->core.attr.type;
core              384 tools/perf/util/stat-display.c 		if (pmu_type != pos->core.attr.type)
core              504 tools/perf/util/stat-display.c 				s2 = config->aggr_get_id(config, evlist->core.cpus, cpu);
core              552 tools/perf/util/stat-display.c 	alias = list_prepare_entry(counter, &(evlist->core.entries), core.node);
core              553 tools/perf/util/stat-display.c 	list_for_each_entry_continue (alias, &evlist->core.entries, core.node) {
core              748 tools/perf/util/stat-display.c 	int nthreads = perf_thread_map__nr(counter->core.threads);
core              749 tools/perf/util/stat-display.c 	int ncpus = perf_cpu_map__nr(counter->core.cpus);
core              872 tools/perf/util/stat-display.c 	nrcpus = evlist->core.cpus->nr;
core              153 tools/perf/util/stat-shadow.c 	if (evsel->core.attr.exclude_kernel)
core              155 tools/perf/util/stat-shadow.c 	if (evsel->core.attr.exclude_user)
core              157 tools/perf/util/stat-shadow.c 	if (evsel->core.attr.exclude_hv)
core              159 tools/perf/util/stat-shadow.c 	if (evsel->core.attr.exclude_host)
core              161 tools/perf/util/stat-shadow.c 	if (evsel->core.attr.exclude_idle)
core              861 tools/perf/util/stat-shadow.c 		evsel->core.attr.type == PERF_TYPE_HW_CACHE &&
core              862 tools/perf/util/stat-shadow.c 		evsel->core.attr.config ==  ( PERF_COUNT_HW_CACHE_L1D |
core              871 tools/perf/util/stat-shadow.c 		evsel->core.attr.type == PERF_TYPE_HW_CACHE &&
core              872 tools/perf/util/stat-shadow.c 		evsel->core.attr.config ==  ( PERF_COUNT_HW_CACHE_L1I |
core              881 tools/perf/util/stat-shadow.c 		evsel->core.attr.type == PERF_TYPE_HW_CACHE &&
core              882 tools/perf/util/stat-shadow.c 		evsel->core.attr.config ==  ( PERF_COUNT_HW_CACHE_DTLB |
core              891 tools/perf/util/stat-shadow.c 		evsel->core.attr.type == PERF_TYPE_HW_CACHE &&
core              892 tools/perf/util/stat-shadow.c 		evsel->core.attr.config ==  ( PERF_COUNT_HW_CACHE_ITLB |
core              901 tools/perf/util/stat-shadow.c 		evsel->core.attr.type == PERF_TYPE_HW_CACHE &&
core              902 tools/perf/util/stat-shadow.c 		evsel->core.attr.config ==  ( PERF_COUNT_HW_CACHE_LL |
core              177 tools/perf/util/stat.c 	int nthreads = perf_thread_map__nr(evsel->core.threads);
core              335 tools/perf/util/stat.c 	int nthreads = perf_thread_map__nr(counter->core.threads);
core              339 tools/perf/util/stat.c 	if (counter->core.system_wide)
core              468 tools/perf/util/stat.c 	struct perf_event_attr *attr = &evsel->core.attr;
core              479 tools/perf/util/stat.c 	if (leader->core.nr_members > 1)
core              512 tools/perf/util/stat.c 	return perf_evsel__open_per_thread(evsel, evsel->core.threads);
core             1416 tools/perf/util/synthetic-events.c 		nr += evsel->core.ids;
core             1431 tools/perf/util/synthetic-events.c 		for (j = 0; j < evsel->core.ids; j++) {
core             1445 tools/perf/util/synthetic-events.c 			e->id = evsel->core.id[j];
core             1518 tools/perf/util/synthetic-events.c 	ev = event_update_event__new(size + 1, PERF_EVENT_UPDATE__UNIT, evsel->core.id[0]);
core             1535 tools/perf/util/synthetic-events.c 	ev = event_update_event__new(sizeof(*ev_data), PERF_EVENT_UPDATE__SCALE, evsel->core.id[0]);
core             1553 tools/perf/util/synthetic-events.c 	ev = event_update_event__new(len + 1, PERF_EVENT_UPDATE__NAME, evsel->core.id[0]);
core             1571 tools/perf/util/synthetic-events.c 	if (!evsel->core.own_cpus)
core             1574 tools/perf/util/synthetic-events.c 	ev = cpu_map_data__alloc(evsel->core.own_cpus, &size, &type, &max);
core             1581 tools/perf/util/synthetic-events.c 	ev->id		= evsel->core.id[0];
core             1584 tools/perf/util/synthetic-events.c 				 evsel->core.own_cpus, type, max);
core             1598 tools/perf/util/synthetic-events.c 		err = perf_event__synthesize_attr(tool, &evsel->core.attr, evsel->core.ids,
core             1599 tools/perf/util/synthetic-events.c 						  evsel->core.id, process);
core             1652 tools/perf/util/synthetic-events.c 		if (evsel->core.own_cpus) {
core             1727 tools/perf/util/synthetic-events.c 	tdata = tracing_data_get(&evlist->core.entries, fd, true);
core             1792 tools/perf/util/synthetic-events.c 	err = perf_event__synthesize_thread_map2(tool, evlist->core.threads, process, NULL);
core             1798 tools/perf/util/synthetic-events.c 	err = perf_event__synthesize_cpu_map(tool, evlist->core.cpus, process, NULL);
core               73 tools/perf/util/top.c 	if (top->evlist->core.nr_entries == 1) {
core               76 tools/perf/util/top.c 				(uint64_t)first->core.attr.sample_period,
core               98 tools/perf/util/top.c 				top->evlist->core.cpus->nr > 1 ? "s" : "",
core              105 tools/perf/util/top.c 					top->evlist->core.cpus->nr,
core              106 tools/perf/util/top.c 					top->evlist->core.cpus->nr > 1 ? "s" : "");
core              410 tools/perf/util/trace-event-info.c 	list_for_each_entry(pos, pattrs, core.node) {
core              411 tools/perf/util/trace-event-info.c 		if (pos->core.attr.type != PERF_TYPE_TRACEPOINT)
core              427 tools/perf/util/trace-event-info.c 		ppath->next = tracepoint_id_to_path(pos->core.attr.config);
core              445 tools/perf/util/trace-event-info.c 	list_for_each_entry(pos, pattrs, core.node)
core              446 tools/perf/util/trace-event-info.c 		if (pos->core.attr.type == PERF_TYPE_TRACEPOINT)
core              113 tools/power/cpupower/lib/cpupower.c 	else if (top1->core < top2->core)
core              115 tools/power/cpupower/lib/cpupower.c 	else if (top1->core > top2->core)
core              147 tools/power/cpupower/lib/cpupower.c 			cpu_top->core_info[cpu].core = -1;
core              153 tools/power/cpupower/lib/cpupower.c 			&(cpu_top->core_info[cpu].core)) < 0) {
core              155 tools/power/cpupower/lib/cpupower.c 			cpu_top->core_info[cpu].core = -1;
core               17 tools/power/cpupower/lib/cpupower.h 	int core;
core              158 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c 		printf("%4d|", cpu_top.core_info[cpu].core);
core              262 tools/testing/selftests/powerpc/ptrace/core-pkey.c 	void *core;
core              330 tools/testing/selftests/powerpc/ptrace/core-pkey.c 	core = mmap(NULL, core_size, PROT_READ, MAP_PRIVATE, fd, 0);
core              331 tools/testing/selftests/powerpc/ptrace/core-pkey.c 	if (core == (void *) -1) {
core              337 tools/testing/selftests/powerpc/ptrace/core-pkey.c 	ret = check_core_file(info, core, core_size);
core              339 tools/testing/selftests/powerpc/ptrace/core-pkey.c 	munmap(core, core_size);