| /linux/drivers/net/wireless/ath/wil6210/ |
| H A D | pmc.c | 21 static int wil_is_pmc_allocated(struct pmc_ctx *pmc) in wil_is_pmc_allocated() argument 23 return !!pmc->pring_va; in wil_is_pmc_allocated() 28 memset(&wil->pmc, 0, sizeof(struct pmc_ctx)); in wil_pmc_init() 29 mutex_init(&wil->pmc.lock); in wil_pmc_init() 44 struct pmc_ctx *pmc = &wil->pmc; in wil_pmc_alloc() local 50 mutex_lock(&pmc->lock); in wil_pmc_alloc() 52 if (wil_is_pmc_allocated(pmc)) { in wil_pmc_alloc() 81 pmc->num_descriptors = num_descriptors; in wil_pmc_alloc() 82 pmc->descriptor_size = descriptor_size; in wil_pmc_alloc() 88 pmc->descriptors = kzalloc_objs(struct desc_alloc_info, num_descriptors); in wil_pmc_alloc() [all …]
|
| /linux/tools/testing/selftests/powerpc/pmu/sampling_tests/ |
| H A D | misc.h | 65 static inline int get_mmcr0_fc56(u64 mmcr0, int pmc) 70 static inline int get_mmcr0_pmccext(u64 mmcr0, int pmc) 75 static inline int get_mmcr0_pmao(u64 mmcr0, int pmc) 80 static inline int get_mmcr0_cc56run(u64 mmcr0, int pmc) 85 static inline int get_mmcr0_pmcjce(u64 mmcr0, int pmc) 90 static inline int get_mmcr0_pmc1ce(u64 mmcr0, int pmc) 95 static inline int get_mmcr0_pmae(u64 mmcr0, int pmc) 100 static inline int get_mmcr1_pmcxsel(u64 mmcr1, int pmc) 102 return ((mmcr1 >> ((24 - (((pmc) - 1) * 8))) & 0xff)); in get_mmcr1_unit() 105 static inline int get_mmcr1_unit(u64 mmcr1, int pmc) 61 get_mmcr0_fc56(u64 mmcr0,int pmc) get_mmcr0_fc56() argument 66 get_mmcr0_pmccext(u64 mmcr0,int pmc) get_mmcr0_pmccext() argument 71 get_mmcr0_pmao(u64 mmcr0,int pmc) get_mmcr0_pmao() argument 76 get_mmcr0_cc56run(u64 mmcr0,int pmc) get_mmcr0_cc56run() argument 81 get_mmcr0_pmcjce(u64 mmcr0,int pmc) get_mmcr0_pmcjce() argument 86 get_mmcr0_pmc1ce(u64 mmcr0,int pmc) get_mmcr0_pmc1ce() argument 91 get_mmcr0_pmae(u64 mmcr0,int pmc) get_mmcr0_pmae() argument 96 get_mmcr1_pmcxsel(u64 mmcr1,int pmc) get_mmcr1_pmcxsel() argument 101 get_mmcr1_unit(u64 mmcr1,int pmc) get_mmcr1_unit() argument 106 get_mmcr1_comb(u64 mmcr1,int pmc) get_mmcr1_comb() argument 111 get_mmcr1_cache(u64 mmcr1,int pmc) get_mmcr1_cache() argument 116 get_mmcr1_rsq(u64 mmcr1,int pmc) get_mmcr1_rsq() argument 121 get_mmcr2_fcs(u64 mmcr2,int pmc) get_mmcr2_fcs() argument 126 get_mmcr2_fcp(u64 mmcr2,int pmc) get_mmcr2_fcp() argument 131 get_mmcr2_fcpc(u64 mmcr2,int pmc) get_mmcr2_fcpc() argument 136 get_mmcr2_fcm1(u64 mmcr2,int pmc) get_mmcr2_fcm1() argument 141 get_mmcr2_fcm0(u64 mmcr2,int pmc) get_mmcr2_fcm0() argument 146 get_mmcr2_fcwait(u64 mmcr2,int pmc) get_mmcr2_fcwait() argument 151 get_mmcr2_fch(u64 mmcr2,int pmc) get_mmcr2_fch() argument 156 get_mmcr2_fcti(u64 mmcr2,int pmc) get_mmcr2_fcti() argument 161 get_mmcr2_fcta(u64 mmcr2,int pmc) get_mmcr2_fcta() argument 166 get_mmcr2_l2l3(u64 mmcr2,int pmc) get_mmcr2_l2l3() argument 173 get_mmcr3_src(u64 mmcr3,int pmc) get_mmcr3_src() argument 180 get_mmcra_thd_cmp(u64 mmcra,int pmc) get_mmcra_thd_cmp() argument 187 get_mmcra_sm(u64 mmcra,int pmc) get_mmcra_sm() argument 192 get_mmcra_bhrb_disable(u64 mmcra,int pmc) get_mmcra_bhrb_disable() argument 199 get_mmcra_ifm(u64 mmcra,int pmc) get_mmcra_ifm() argument 204 get_mmcra_thd_sel(u64 mmcra,int pmc) get_mmcra_thd_sel() argument 209 get_mmcra_thd_start(u64 mmcra,int pmc) get_mmcra_thd_start() argument 214 get_mmcra_thd_stop(u64 mmcra,int pmc) get_mmcra_thd_stop() argument 219 get_mmcra_rand_samp_elig(u64 mmcra,int pmc) get_mmcra_rand_samp_elig() argument 224 get_mmcra_sample_mode(u64 mmcra,int pmc) get_mmcra_sample_mode() argument 229 get_mmcra_marked(u64 mmcra,int pmc) get_mmcra_marked() argument [all...] |
| /linux/drivers/platform/x86/intel/pmc/ |
| H A D | core.c | 66 static inline u32 pmc_core_reg_read(struct pmc *pmc, int reg_offset) in pmc_core_reg_read() argument 68 return readl(pmc->regbase + reg_offset); in pmc_core_reg_read() 71 static inline void pmc_core_reg_write(struct pmc *pmc, int reg_offset, in pmc_core_reg_write() argument 74 writel(val, pmc->regbase + reg_offset); in pmc_core_reg_write() 77 static inline u64 pmc_core_adjust_slp_s0_step(struct pmc *pmc, u32 value) in pmc_core_adjust_slp_s0_step() argument 85 const int lpm_adj_x2 = pmc->map->lpm_res_counter_step_x2; in pmc_core_adjust_slp_s0_step() 87 if (pmc->map == &adl_reg_map) in pmc_core_adjust_slp_s0_step() 90 return (u64)value * pmc->map->slp_s0_res_counter_step; in pmc_core_adjust_slp_s0_step() 95 struct pmc *pmc = pmcdev->pmcs[PMC_IDX_MAIN]; in set_etr3() local 96 const struct pmc_reg_map *map = pmc->map; in set_etr3() [all …]
|
| /linux/drivers/platform/mellanox/ |
| H A D | mlxbf-pmc.c | 1000 static struct mlxbf_pmc_context *pmc; variable 1011 arm_smccc_smc(command, pmc->sreg_tbl_perf, (uintptr_t)addr, 0, 0, 0, 0, in mlxbf_pmc_secure_read() 1034 if (pmc->svc_sreg_support) in mlxbf_pmc_read() 1065 arm_smccc_smc(command, pmc->sreg_tbl_perf, value, (uintptr_t)addr, 0, 0, in mlxbf_pmc_secure_write() 1085 if (pmc->svc_sreg_support) in mlxbf_pmc_write() 1100 (offset + MLXBF_PMC_REG_SIZE <= pmc->block[blk_num].blk_size)) in mlxbf_pmc_valid_range() 1122 switch (pmc->event_set) { in mlxbf_pmc_event_list() 1137 switch (pmc->event_set) { in mlxbf_pmc_event_list() 1255 return mlxbf_pmc_write(pmc->block[blk_num].mmio_base + in mlxbf_pmc_config_l3_counters() 1274 pmcaddr = pmc->block[blk_num].mmio_base + in mlxbf_pmc_program_l3_counter() [all …]
|
| /linux/arch/riscv/kvm/ |
| H A D | vcpu_pmu.c | 41 static u64 kvm_pmu_get_sample_period(struct kvm_pmc *pmc) in kvm_pmu_get_sample_period() argument 43 u64 counter_val_mask = GENMASK(pmc->cinfo.width, 0); in kvm_pmu_get_sample_period() 46 if (!pmc->counter_val) in kvm_pmu_get_sample_period() 49 sample_period = (-pmc->counter_val) & counter_val_mask; in kvm_pmu_get_sample_period() 83 static void kvm_pmu_release_perf_event(struct kvm_pmc *pmc) in kvm_pmu_release_perf_event() argument 85 if (pmc->perf_event) { in kvm_pmu_release_perf_event() 86 perf_event_disable(pmc->perf_event); in kvm_pmu_release_perf_event() 87 perf_event_release_kernel(pmc->perf_event); in kvm_pmu_release_perf_event() 88 pmc->perf_event = NULL; in kvm_pmu_release_perf_event() 213 struct kvm_pmc *pmc; in pmu_fw_ctr_read_hi() local 251 struct kvm_pmc *pmc; pmu_ctr_read() local 299 struct kvm_pmc *pmc = perf_event->overflow_handler_context; kvm_riscv_pmu_overflow() local 336 kvm_pmu_create_perf_event(struct kvm_pmc * pmc,struct perf_event_attr * attr,unsigned long flags,unsigned long eidx,unsigned long evtdata) kvm_pmu_create_perf_event() argument 571 struct kvm_pmc *pmc; kvm_riscv_vcpu_pmu_ctr_start() local 649 struct kvm_pmc *pmc; kvm_riscv_vcpu_pmu_ctr_stop() local 751 struct kvm_pmc *pmc = NULL; kvm_riscv_vcpu_pmu_ctr_cfg_match() local 850 struct kvm_pmc *pmc; kvm_riscv_vcpu_pmu_init() local 917 struct kvm_pmc *pmc; kvm_riscv_vcpu_pmu_deinit() local [all...] |
| /linux/arch/powerpc/perf/ |
| H A D | ppc970-pmu.c | 147 int pmc, psel, unit, byte, bit; in p970_marked_instr_event() local 150 pmc = (event >> PM_PMC_SH) & PM_PMC_MSK; in p970_marked_instr_event() 152 if (pmc) { in p970_marked_instr_event() 153 if (direct_marked_event[pmc - 1] & (1 << psel)) in p970_marked_instr_event() 156 bit = (pmc <= 4)? pmc - 1: 8 - pmc; in p970_marked_instr_event() 195 int pmc, byte, unit, sh, spcsel; in p970_get_constraint() local 199 pmc = (event >> PM_PMC_SH) & PM_PMC_MSK; in p970_get_constraint() 200 if (pmc) { in p970_get_constraint() 201 if (pmc > 8) in p970_get_constraint() 203 sh = (pmc - 1) * 2; in p970_get_constraint() [all …]
|
| H A D | power7-pmu.c | 86 int pmc, sh, unit; in power7_get_constraint() local 89 pmc = (event >> PM_PMC_SH) & PM_PMC_MSK; in power7_get_constraint() 90 if (pmc) { in power7_get_constraint() 91 if (pmc > 6) in power7_get_constraint() 93 sh = (pmc - 1) * 2; in power7_get_constraint() 96 if (pmc >= 5 && !(event == 0x500fa || event == 0x600f4)) in power7_get_constraint() 99 if (pmc < 5) { in power7_get_constraint() 146 int pmc, psel; in find_alternative_decode() local 149 pmc = (event >> PM_PMC_SH) & PM_PMC_MSK; in find_alternative_decode() 151 if ((pmc == 2 || pmc == 4) && (psel & ~7) == 0x40) in find_alternative_decode() [all …]
|
| H A D | power6-pmu.c | 139 int pmc, psel, ptype; in power6_marked_instr_event() local 143 pmc = (event >> PM_PMC_SH) & PM_PMC_MSK; in power6_marked_instr_event() 145 if (pmc >= 5) in power6_marked_instr_event() 151 if (pmc == 0 || !(ptype & (1 << (pmc - 1)))) in power6_marked_instr_event() 159 bit = ptype ^ (pmc - 1); in power6_marked_instr_event() 182 unsigned int pmc, ev, b, u, s, psel; in p6_compute_mmcr() local 189 pmc = (event[i] >> PM_PMC_SH) & PM_PMC_MSK; in p6_compute_mmcr() 190 if (pmc) { in p6_compute_mmcr() 191 if (pmc_inuse & (1 << (pmc - 1))) in p6_compute_mmcr() 193 pmc_inuse |= 1 << (pmc - 1); in p6_compute_mmcr() [all …]
|
| H A D | power5-pmu.c | 141 int pmc, byte, unit, sh; in power5_get_constraint() local 146 pmc = (event >> PM_PMC_SH) & PM_PMC_MSK; in power5_get_constraint() 147 if (pmc) { in power5_get_constraint() 148 if (pmc > 6) in power5_get_constraint() 150 sh = (pmc - 1) * 2; in power5_get_constraint() 153 if (pmc <= 4) in power5_get_constraint() 154 grp = (pmc - 1) >> 1; in power5_get_constraint() 186 if (!pmc) in power5_get_constraint() 201 if (pmc < 5) { in power5_get_constraint() 253 int pmc, altpmc, pp, j; in find_alternative_bdecode() local [all …]
|
| H A D | power5+-pmu.c | 137 int pmc, byte, unit, sh; in power5p_get_constraint() local 141 pmc = (event >> PM_PMC_SH) & PM_PMC_MSK; in power5p_get_constraint() 142 if (pmc) { in power5p_get_constraint() 143 if (pmc > 6) in power5p_get_constraint() 145 sh = (pmc - 1) * 2; in power5p_get_constraint() 148 if (pmc >= 5 && !(event == 0x500009 || event == 0x600005)) in power5p_get_constraint() 179 if (pmc < 5) { in power5p_get_constraint() 191 int pmc = (event >> PM_PMC_SH) & PM_PMC_MSK; in power5p_limited_pmc_event() local 193 return pmc == 5 || pmc == 6; in power5p_limited_pmc_event() 245 int pmc, altpmc, pp, j; in find_alternative_bdecode() local [all …]
|
| H A D | isa207-common.h | 200 #define CNST_PMC_SHIFT(pmc) ((pmc - 1) * 2) argument 201 #define CNST_PMC_VAL(pmc) (1 << CNST_PMC_SHIFT(pmc)) argument 202 #define CNST_PMC_MASK(pmc) (2 << CNST_PMC_SHIFT(pmc)) argument 210 #define MMCR1_UNIT_SHIFT(pmc) (60 - (4 * ((pmc) - 1))) argument 211 #define MMCR1_COMBINE_SHIFT(pmc) (35 - ((pmc) - 1)) argument 212 #define MMCR1_PMCSEL_SHIFT(pmc) (24 - (((pmc) - 1)) * 8) argument 218 #define p9_MMCR1_COMBINE_SHIFT(pmc) (38 - ((pmc - 1) * 2)) argument 250 #define MMCR2_FCS(pmc) (1ull << (63 - (((pmc) - 1) * 9))) argument 251 #define MMCR2_FCP(pmc) (1ull << (62 - (((pmc) - 1) * 9))) argument 252 #define MMCR2_FCWAIT(pmc) (1ull << (58 - (((pmc) - 1) * 9))) argument [all …]
|
| H A D | mpc7450-pmu.c | 39 int pmc; in mpc7450_classify_event() local 41 pmc = (event >> PM_PMC_SH) & PM_PMC_MSK; in mpc7450_classify_event() 42 if (pmc) { in mpc7450_classify_event() 43 if (pmc > N_COUNTER) in mpc7450_classify_event() 79 int pmc, sel; in mpc7450_threshold_use() local 81 pmc = (event >> PM_PMC_SH) & PM_PMC_MSK; in mpc7450_threshold_use() 83 switch (pmc) { in mpc7450_threshold_use() 153 int pmc, class; in mpc7450_get_constraint() local 161 pmc = ((unsigned int)event >> PM_PMC_SH) & PM_PMC_MSK; in mpc7450_get_constraint() 162 mask = pmcbits[pmc - 1][0]; in mpc7450_get_constraint() [all …]
|
| /linux/net/ipv4/ |
| H A D | igmp.c | 176 static int sf_setstate(struct ip_mc_list *pmc); 177 static void sf_markstate(struct ip_mc_list *pmc); 179 static void ip_mc_clear_src(struct ip_mc_list *pmc); 191 #define pmc_dereference(e, pmc) \ argument 192 rcu_dereference_protected(e, lockdep_is_held(&(pmc)->lock) || \ 193 lockdep_is_held(&(pmc)->interface->mc_tomb_lock)) 195 #define for_each_pmc_rcu(in_dev, pmc) \ argument 196 for (pmc = rcu_dereference(in_dev->mc_list); \ 197 pmc != NULL; \ 198 pmc = rcu_dereference(pmc->next_rcu)) [all …]
|
| /linux/drivers/mfd/ |
| H A D | intel_pmc_bxt.c | 82 int intel_pmc_gcr_read64(struct intel_pmc_dev *pmc, u32 offset, u64 *data) in intel_pmc_gcr_read64() argument 87 spin_lock(&pmc->gcr_lock); in intel_pmc_gcr_read64() 88 *data = readq(pmc->gcr_mem_base + offset); in intel_pmc_gcr_read64() 89 spin_unlock(&pmc->gcr_lock); in intel_pmc_gcr_read64() 107 int intel_pmc_gcr_update(struct intel_pmc_dev *pmc, u32 offset, u32 mask, u32 val) in intel_pmc_gcr_update() argument 114 spin_lock(&pmc->gcr_lock); in intel_pmc_gcr_update() 115 new_val = readl(pmc->gcr_mem_base + offset); in intel_pmc_gcr_update() 118 writel(new_val, pmc->gcr_mem_base + offset); in intel_pmc_gcr_update() 120 new_val = readl(pmc->gcr_mem_base + offset); in intel_pmc_gcr_update() 121 spin_unlock(&pmc->gcr_lock); in intel_pmc_gcr_update() [all …]
|
| /linux/net/ipv6/ |
| H A D | mcast.c | 82 static int sf_setstate(struct ifmcaddr6 *pmc); 83 static void sf_markstate(struct ifmcaddr6 *pmc); 84 static void ip6_mc_clear_src(struct ifmcaddr6 *pmc); 120 #define for_each_pmc_socklock(np, sk, pmc) \ argument 121 for (pmc = sock_dereference((np)->ipv6_mc_list, sk); \ 122 pmc; \ 123 pmc = sock_dereference(pmc->next, sk)) 125 #define for_each_pmc_rcu(np, pmc) \ argument 126 for (pmc = rcu_dereference((np)->ipv6_mc_list); \ 127 pmc; \ [all …]
|
| /linux/mm/ |
| H A D | mremap.c | 197 static int move_ptes(struct pagetable_move_control *pmc, in move_ptes() argument 200 struct vm_area_struct *vma = pmc->old; in move_ptes() 208 unsigned long old_addr = pmc->old_addr; in move_ptes() 209 unsigned long new_addr = pmc->new_addr; in move_ptes() 234 if (pmc->need_rmap_locks) in move_ptes() 325 if (pmc->need_rmap_locks) in move_ptes() 339 static inline bool uffd_supports_page_table_move(struct pagetable_move_control *pmc) in uffd_supports_page_table_move() argument 354 return !vma_has_uffd_without_event_remap(pmc->old) && in uffd_supports_page_table_move() 355 !vma_has_uffd_without_event_remap(pmc->new); in uffd_supports_page_table_move() 359 static bool move_normal_pmd(struct pagetable_move_control *pmc, in move_normal_pmd() argument 428 move_normal_pmd(struct pagetable_move_control * pmc,pmd_t * old_pmd,pmd_t * new_pmd) move_normal_pmd() argument 436 move_normal_pud(struct pagetable_move_control * pmc,pud_t * old_pud,pud_t * new_pud) move_normal_pud() argument 479 move_normal_pud(struct pagetable_move_control * pmc,pud_t * old_pud,pud_t * new_pud) move_normal_pud() argument 487 move_huge_pud(struct pagetable_move_control * pmc,pud_t * old_pud,pud_t * new_pud) move_huge_pud() argument 528 move_huge_pud(struct pagetable_move_control * pmc,pud_t * old_pud,pud_t * new_pud) move_huge_pud() argument 551 get_extent(enum pgt_entry entry,struct pagetable_move_control * pmc) get_extent() argument 589 should_take_rmap_locks(struct pagetable_move_control * pmc,enum pgt_entry entry) should_take_rmap_locks() argument 605 move_pgt_entry(struct pagetable_move_control * pmc,enum pgt_entry entry,void * old_entry,void * new_entry) move_pgt_entry() argument 649 can_align_down(struct pagetable_move_control * pmc,struct vm_area_struct * vma,unsigned long addr_to_align,unsigned long mask) can_align_down() argument 678 can_realign_addr(struct pagetable_move_control * pmc,unsigned long pagetable_mask) can_realign_addr() argument 757 try_realign_addr(struct pagetable_move_control * pmc,unsigned long pagetable_mask) try_realign_addr() argument 775 pmc_done(struct pagetable_move_control * pmc) pmc_done() argument 781 pmc_next(struct pagetable_move_control * pmc,unsigned long extent) pmc_next() argument 791 pmc_progress(struct pagetable_move_control * pmc) pmc_progress() argument 804 move_page_tables(struct pagetable_move_control * pmc) move_page_tables() argument [all...] |
| /linux/arch/arm/mach-at91/ |
| H A D | pm_suspend.S | 22 pmc .req r0 label 42 2: ldr r8, [pmc, #AT91_PMC_SR] 54 1: ldr r7, [pmc, #AT91_PMC_SR] 65 1: ldr r7, [pmc, #AT91_PMC_SR] 79 str r7, [pmc, #AT91_PMC_SCDR] 453 ldr pmc, .pmc_base 462 ldr tmp1, [pmc, tmp3] 465 str tmp1, [pmc, tmp3] 473 ldr tmp1, [pmc, #AT91_CKGR_MOR] 476 str tmp1, [pmc, #AT91_CKGR_MOR] [all …]
|
| /linux/arch/arm/boot/dts/microchip/ |
| H A D | sama7g5.dtsi | 37 clocks = <&pmc PMC_TYPE_CORE PMC_CPUPLL>; 205 clocks = <&pmc PMC_TYPE_CORE PMC_MCK1>; 223 clocks = <&pmc PMC_TYPE_PERIPHERAL 18>; 254 clocks = <&pmc PMC_TYPE_PERIPHERAL 11>; 257 pmc: clock-controller@e0018000 { label 258 compatible = "microchip,sama7g5-pmc", "syscon"; 328 …clocks = <&pmc PMC_TYPE_PERIPHERAL 91>, <&pmc PMC_TYPE_PERIPHERAL 92>, <&pmc PMC_TYPE_PERIPHERAL 9… 336 clocks = <&pmc PMC_TYPE_PERIPHERAL 21>; 356 clocks = <&pmc PMC_TYPE_PERIPHERAL 78>, <&pmc PMC_TYPE_GCK 78>; 371 clocks = <&pmc PMC_TYPE_PERIPHERAL 79>, <&pmc PMC_TYPE_GCK 79>; [all …]
|
| H A D | sama5d2.dtsi | 50 clocks = <&pmc PMC_TYPE_CORE PMC_MCK>; 66 clocks = <&pmc PMC_TYPE_CORE PMC_MCK>; 136 clocks = <&pmc PMC_TYPE_PERIPHERAL 42>, <&pmc PMC_TYPE_CORE PMC_UTMI>; 145 clocks = <&pmc PMC_TYPE_PERIPHERAL 41>, <&pmc PMC_TYPE_PERIPHERAL 41>, <&pmc PMC_TYPE_SYSTEM 6>; 154 clocks = <&pmc PMC_TYPE_CORE PMC_UTMI>, <&pmc PMC_TYPE_PERIPHERAL 41>; 179 clocks = <&pmc PMC_TYPE_CORE PMC_MCK2>; 198 clocks = <&pmc PMC_TYPE_PERIPHERAL 31>, <&pmc PMC_TYPE_GCK 31>, <&pmc PMC_TYPE_CORE PMC_MAIN>; 200 assigned-clocks = <&pmc PMC_TYPE_GCK 31>; 209 clocks = <&pmc PMC_TYPE_PERIPHERAL 32>, <&pmc PMC_TYPE_GCK 32>, <&pmc PMC_TYPE_CORE PMC_MAIN>; 211 assigned-clocks = <&pmc PMC_TYPE_GCK 32>; [all …]
|
| H A D | sam9x7.dtsi | 77 clocks = <&pmc PMC_TYPE_PERIPHERAL 12>, <&pmc PMC_TYPE_GCK 12>; 79 assigned-clocks = <&pmc PMC_TYPE_GCK 12>; 88 clocks = <&pmc PMC_TYPE_PERIPHERAL 26>, <&pmc PMC_TYPE_GCK 26>; 90 assigned-clocks = <&pmc PMC_TYPE_GCK 26>; 108 clocks = <&pmc PMC_TYPE_PERIPHERAL 13>; 115 clocks = <&pmc PMC_TYPE_PERIPHERAL 13>; 139 clocks = <&pmc PMC_TYPE_PERIPHERAL 13>; 160 clocks = <&pmc PMC_TYPE_PERIPHERAL 13>; 181 clocks = <&pmc PMC_TYPE_PERIPHERAL 14>; 188 clocks = <&pmc PMC_TYPE_PERIPHERAL 14>; [all …]
|
| H A D | at91sam9260.dtsi | 118 pmc: clock-controller@fffffc00 { label 119 compatible = "atmel,at91sam9260-pmc", "syscon"; 130 clocks = <&pmc PMC_TYPE_CORE PMC_SLOW>; 136 clocks = <&pmc PMC_TYPE_CORE PMC_SLOW>; 143 clocks = <&pmc PMC_TYPE_CORE PMC_MCK>; 154 …clocks = <&pmc PMC_TYPE_PERIPHERAL 17>, <&pmc PMC_TYPE_PERIPHERAL 18>, <&pmc PMC_TYPE_PERIPHERAL 1… 166 …clocks = <&pmc PMC_TYPE_PERIPHERAL 26>, <&pmc PMC_TYPE_PERIPHERAL 27>, <&pmc PMC_TYPE_PERIPHERAL 2… 507 clocks = <&pmc PMC_TYPE_PERIPHERAL 2>; 518 clocks = <&pmc PMC_TYPE_PERIPHERAL 3>; 529 clocks = <&pmc PMC_TYPE_PERIPHERAL 4>; [all …]
|
| /linux/include/soc/tegra/ |
| H A D | pmc.h | 151 int tegra_pmc_powergate_power_on(struct tegra_pmc *pmc, unsigned int id); 152 int tegra_pmc_powergate_power_off(struct tegra_pmc *pmc, unsigned int id); 153 int tegra_pmc_powergate_remove_clamping(struct tegra_pmc *pmc, unsigned int id); 156 int tegra_pmc_powergate_sequence_power_up(struct tegra_pmc *pmc, 159 int tegra_pmc_io_pad_power_enable(struct tegra_pmc *pmc, enum tegra_io_pad id); 160 int tegra_pmc_io_pad_power_disable(struct tegra_pmc *pmc, enum tegra_io_pad id); 169 tegra_pmc_powergate_power_on(struct tegra_pmc *pmc, unsigned int id) in tegra_pmc_powergate_power_on() argument 175 tegra_pmc_powergate_power_off(struct tegra_pmc *pmc, unsigned int id) in tegra_pmc_powergate_power_off() argument 181 tegra_pmc_powergate_remove_clamping(struct tegra_pmc *pmc, unsigned int id) in tegra_pmc_powergate_remove_clamping() argument 188 tegra_pmc_powergate_sequence_power_up(struct tegra_pmc *pmc, unsigned int id, in tegra_pmc_powergate_sequence_power_up() argument [all …]
|
| /linux/tools/testing/selftests/powerpc/pmu/ebb/ |
| H A D | ebb.h | 14 #define PMC_INDEX(pmc) ((pmc)-1) argument 41 static inline void ebb_enable_pmc_counting(int pmc) in ebb_enable_pmc_counting() argument 43 ebb_state.pmc_enable[PMC_INDEX(pmc)] = true; in ebb_enable_pmc_counting() 46 bool ebb_check_count(int pmc, u64 sample_period, int fudge); 58 int count_pmc(int pmc, uint32_t sample_period); 63 void write_pmc(int pmc, u64 value); 64 u64 read_pmc(int pmc);
|
| /linux/include/linux/mfd/ |
| H A D | intel_pmc_bxt.h | 31 int intel_pmc_gcr_read64(struct intel_pmc_dev *pmc, u32 offset, u64 *data); 32 int intel_pmc_gcr_update(struct intel_pmc_dev *pmc, u32 offset, u32 mask, u32 val); 33 int intel_pmc_s0ix_counter_read(struct intel_pmc_dev *pmc, u64 *data); 35 static inline int intel_pmc_gcr_read64(struct intel_pmc_dev *pmc, u32 offset, in intel_pmc_gcr_read64() argument 41 static inline int intel_pmc_gcr_update(struct intel_pmc_dev *pmc, u32 offset, in intel_pmc_gcr_update() argument 47 static inline int intel_pmc_s0ix_counter_read(struct intel_pmc_dev *pmc, u64 *data) in intel_pmc_s0ix_counter_read() argument
|
| /linux/arch/powerpc/kvm/ |
| H A D | book3s_hv_p9_perf.c | 88 mtspr(SPRN_PMC1, vcpu->arch.pmc[0]); in switch_pmu_to_guest() 89 mtspr(SPRN_PMC2, vcpu->arch.pmc[1]); in switch_pmu_to_guest() 90 mtspr(SPRN_PMC3, vcpu->arch.pmc[2]); in switch_pmu_to_guest() 91 mtspr(SPRN_PMC4, vcpu->arch.pmc[3]); in switch_pmu_to_guest() 92 mtspr(SPRN_PMC5, vcpu->arch.pmc[4]); in switch_pmu_to_guest() 93 mtspr(SPRN_PMC6, vcpu->arch.pmc[5]); in switch_pmu_to_guest() 142 vcpu->arch.pmc[0] = mfspr(SPRN_PMC1); in switch_pmu_to_host() 143 vcpu->arch.pmc[1] = mfspr(SPRN_PMC2); in switch_pmu_to_host() 144 vcpu->arch.pmc[2] = mfspr(SPRN_PMC3); in switch_pmu_to_host() 145 vcpu->arch.pmc[3] = mfspr(SPRN_PMC4); in switch_pmu_to_host() [all …]
|