Lines Matching defs:access
126 void arch_timer_reg_write(int access, enum arch_timer_reg reg, u64 val,
129 if (access == ARCH_TIMER_MEM_PHYS_ACCESS) {
145 } else if (access == ARCH_TIMER_MEM_VIRT_ACCESS) {
159 arch_timer_reg_write_cp15(access, reg, val);
164 u32 arch_timer_reg_read(int access, enum arch_timer_reg reg,
169 if (access == ARCH_TIMER_MEM_PHYS_ACCESS) {
178 } else if (access == ARCH_TIMER_MEM_VIRT_ACCESS) {
188 val = arch_timer_reg_read_cp15(access, reg);
233 * Default to cp15 based access because arm64 uses this function for
421 void erratum_set_next_event_generic(const int access, unsigned long evt,
427 ctrl = arch_timer_reg_read(access, ARCH_TIMER_REG_CTRL, clk);
431 if (access == ARCH_TIMER_PHYS_ACCESS) {
439 arch_timer_reg_write(access, ARCH_TIMER_REG_CTRL, ctrl, clk);
665 static __always_inline irqreturn_t timer_handler(const int access,
670 ctrl = arch_timer_reg_read(access, ARCH_TIMER_REG_CTRL, evt);
673 arch_timer_reg_write(access, ARCH_TIMER_REG_CTRL, ctrl, evt);
709 static __always_inline int arch_timer_shutdown(const int access,
714 ctrl = arch_timer_reg_read(access, ARCH_TIMER_REG_CTRL, clk);
716 arch_timer_reg_write(access, ARCH_TIMER_REG_CTRL, ctrl, clk);
741 static __always_inline void set_next_event(const int access, unsigned long evt,
747 ctrl = arch_timer_reg_read(access, ARCH_TIMER_REG_CTRL, clk);
751 if (access == ARCH_TIMER_PHYS_ACCESS)
756 arch_timer_reg_write(access, ARCH_TIMER_REG_CVAL, evt + cnt, clk);
757 arch_timer_reg_write(access, ARCH_TIMER_REG_CTRL, ctrl, clk);
787 static __always_inline void set_next_event_mem(const int access, unsigned long evt,
794 ctrl = arch_timer_reg_read(access, ARCH_TIMER_REG_CTRL, clk);
799 arch_timer_reg_write(access, ARCH_TIMER_REG_CTRL, ctrl, clk);
805 if (access == ARCH_TIMER_MEM_VIRT_ACCESS)
810 arch_timer_reg_write(access, ARCH_TIMER_REG_CVAL, evt + cnt, clk);
811 arch_timer_reg_write(access, ARCH_TIMER_REG_CTRL, ctrl, clk);
963 /* Disable user access to the timers and both counters */
972 * Enable user access to the virtual counter if it doesn't
977 pr_info("CPU%d: Trapping CNTVCT access\n", smp_processor_id());