Home
last modified time | relevance | path

Searched refs:cpu_base (Results 1 - 25 of 33) sorted by relevance

12

/kernel/linux/linux-6.6/kernel/time/
H A Dhrtimer.c53 * cpu_base->active
135 * timer->base->cpu_base
139 .cpu_base = &migration_cpu_base,
174 raw_spin_lock_irqsave(&base->cpu_base->lock, *flags);
178 raw_spin_unlock_irqrestore(&base->cpu_base->lock, *flags);
191 * Called with cpu_base->lock of target cpu held.
199 return expires < new_base->cpu_base->expires_next; in hrtimer_check_target()
253 raw_spin_unlock(&base->cpu_base->lock); in switch_hrtimer_base()
254 raw_spin_lock(&new_base->cpu_base->lock); in switch_hrtimer_base()
258 raw_spin_unlock(&new_base->cpu_base in switch_hrtimer_base()
488 __next_base(struct hrtimer_cpu_base *cpu_base, unsigned int *active) __next_base() argument
504 __hrtimer_next_event_base(struct hrtimer_cpu_base *cpu_base, const struct hrtimer *exclude, unsigned int active, ktime_t expires_next) __hrtimer_next_event_base() argument
571 __hrtimer_get_next_event(struct hrtimer_cpu_base *cpu_base, unsigned int active_mask) __hrtimer_get_next_event() argument
596 hrtimer_update_next_event(struct hrtimer_cpu_base *cpu_base) hrtimer_update_next_event() argument
646 __hrtimer_hres_active(struct hrtimer_cpu_base *cpu_base) __hrtimer_hres_active() argument
657 __hrtimer_reprogram(struct hrtimer_cpu_base *cpu_base, struct hrtimer *next_timer, ktime_t expires_next) __hrtimer_reprogram() argument
692 hrtimer_force_reprogram(struct hrtimer_cpu_base *cpu_base, int skip_equal) hrtimer_force_reprogram() argument
812 struct hrtimer_cpu_base *cpu_base = this_cpu_ptr(&hrtimer_bases); hrtimer_reprogram() local
871 update_needs_ipi(struct hrtimer_cpu_base *cpu_base, unsigned int active) update_needs_ipi() argument
949 struct hrtimer_cpu_base *cpu_base = raw_cpu_ptr(&hrtimer_bases); clock_was_set() local
1112 struct hrtimer_cpu_base *cpu_base = base->cpu_base; __remove_hrtimer() local
1192 hrtimer_update_softirq_timer(struct hrtimer_cpu_base *cpu_base, bool reprogram) hrtimer_update_softirq_timer() argument
1370 hrtimer_sync_wait_running(struct hrtimer_cpu_base *cpu_base, unsigned long flags) hrtimer_sync_wait_running() argument
1485 struct hrtimer_cpu_base *cpu_base = this_cpu_ptr(&hrtimer_bases); hrtimer_get_next_event() local
1508 struct hrtimer_cpu_base *cpu_base = this_cpu_ptr(&hrtimer_bases); hrtimer_next_event_without() local
1549 struct hrtimer_cpu_base *cpu_base; __hrtimer_init() local
1721 __hrtimer_run_queues(struct hrtimer_cpu_base *cpu_base, ktime_t now, unsigned long flags, unsigned int active_mask) __hrtimer_run_queues() argument
1762 struct hrtimer_cpu_base *cpu_base = this_cpu_ptr(&hrtimer_bases); hrtimer_run_softirq() local
1787 struct hrtimer_cpu_base *cpu_base = this_cpu_ptr(&hrtimer_bases); hrtimer_interrupt() local
1900 struct hrtimer_cpu_base *cpu_base = this_cpu_ptr(&hrtimer_bases); hrtimer_run_queues() local
2168 struct hrtimer_cpu_base *cpu_base = &per_cpu(hrtimer_bases, cpu); hrtimers_prepare_cpu() local
[all...]
H A Dtimer_list.c73 raw_spin_lock_irqsave(&base->cpu_base->lock, flags); in print_active_timers()
89 raw_spin_unlock_irqrestore(&base->cpu_base->lock, flags); in print_active_timers()
95 raw_spin_unlock_irqrestore(&base->cpu_base->lock, flags); in print_active_timers()
117 struct hrtimer_cpu_base *cpu_base = &per_cpu(hrtimer_bases, cpu); in print_cpu() local
123 print_base(m, cpu_base->clock_base + i, now); in print_cpu()
127 (unsigned long long)(cpu_base->x)) in print_cpu()
130 (unsigned long long)(ktime_to_ns(cpu_base->x))) in print_cpu()
H A Dtick-broadcast-hrtimer.c71 bc->bound_on = bctimer.base->cpu_base->cpu; in bc_set_next()
/kernel/linux/linux-5.10/kernel/time/
H A Dhrtimer.c53 * cpu_base->active
135 * timer->base->cpu_base
139 .cpu_base = &migration_cpu_base,
173 raw_spin_lock_irqsave(&base->cpu_base->lock, *flags); in lock_hrtimer_base()
177 raw_spin_unlock_irqrestore(&base->cpu_base->lock, *flags); in lock_hrtimer_base()
190 * Called with cpu_base->lock of target cpu held.
198 return expires < new_base->cpu_base->expires_next; in hrtimer_check_target()
252 raw_spin_unlock(&base->cpu_base->lock); in switch_hrtimer_base()
253 raw_spin_lock(&new_base->cpu_base->lock); in switch_hrtimer_base()
257 raw_spin_unlock(&new_base->cpu_base in switch_hrtimer_base()
486 __next_base(struct hrtimer_cpu_base *cpu_base, unsigned int *active) __next_base() argument
502 __hrtimer_next_event_base(struct hrtimer_cpu_base *cpu_base, const struct hrtimer *exclude, unsigned int active, ktime_t expires_next) __hrtimer_next_event_base() argument
569 __hrtimer_get_next_event(struct hrtimer_cpu_base *cpu_base, unsigned int active_mask) __hrtimer_get_next_event() argument
594 hrtimer_update_next_event(struct hrtimer_cpu_base *cpu_base) hrtimer_update_next_event() argument
644 __hrtimer_hres_active(struct hrtimer_cpu_base *cpu_base) __hrtimer_hres_active() argument
661 hrtimer_force_reprogram(struct hrtimer_cpu_base *cpu_base, int skip_equal) hrtimer_force_reprogram() argument
778 struct hrtimer_cpu_base *cpu_base = this_cpu_ptr(&hrtimer_bases); hrtimer_reprogram() local
1011 struct hrtimer_cpu_base *cpu_base = base->cpu_base; __remove_hrtimer() local
1103 hrtimer_update_softirq_timer(struct hrtimer_cpu_base *cpu_base, bool reprogram) hrtimer_update_softirq_timer() argument
1287 hrtimer_sync_wait_running(struct hrtimer_cpu_base *cpu_base, unsigned long flags) hrtimer_sync_wait_running() argument
1402 struct hrtimer_cpu_base *cpu_base = this_cpu_ptr(&hrtimer_bases); hrtimer_get_next_event() local
1425 struct hrtimer_cpu_base *cpu_base = this_cpu_ptr(&hrtimer_bases); hrtimer_next_event_without() local
1466 struct hrtimer_cpu_base *cpu_base; __hrtimer_init() local
1642 __hrtimer_run_queues(struct hrtimer_cpu_base *cpu_base, ktime_t now, unsigned long flags, unsigned int active_mask) __hrtimer_run_queues() argument
1683 struct hrtimer_cpu_base *cpu_base = this_cpu_ptr(&hrtimer_bases); hrtimer_run_softirq() local
1708 struct hrtimer_cpu_base *cpu_base = this_cpu_ptr(&hrtimer_bases); hrtimer_interrupt() local
1821 struct hrtimer_cpu_base *cpu_base = this_cpu_ptr(&hrtimer_bases); hrtimer_run_queues() local
2089 struct hrtimer_cpu_base *cpu_base = &per_cpu(hrtimer_bases, cpu); hrtimers_prepare_cpu() local
[all...]
H A Dtimer_list.c86 raw_spin_lock_irqsave(&base->cpu_base->lock, flags); in print_active_timers()
102 raw_spin_unlock_irqrestore(&base->cpu_base->lock, flags); in print_active_timers()
108 raw_spin_unlock_irqrestore(&base->cpu_base->lock, flags); in print_active_timers()
132 struct hrtimer_cpu_base *cpu_base = &per_cpu(hrtimer_bases, cpu); in print_cpu() local
138 print_base(m, cpu_base->clock_base + i, now); in print_cpu()
142 (unsigned long long)(cpu_base->x)) in print_cpu()
145 (unsigned long long)(ktime_to_ns(cpu_base->x))) in print_cpu()
H A Dtick-broadcast-hrtimer.c76 bc->bound_on = bctimer.base->cpu_base->cpu; in bc_set_next()
/kernel/linux/linux-5.10/drivers/irqchip/
H A Dirq-gic.c71 union gic_base cpu_base; member
145 #define gic_data_cpu_base(d) __get_base(&(d)->cpu_base)
148 #define gic_data_cpu_base(d) ((d)->cpu_base.common_base)
340 void __iomem *cpu_base = gic_data_cpu_base(gic); in gic_handle_irq() local
343 irqstat = readl_relaxed(cpu_base + GIC_CPU_INTACK); in gic_handle_irq()
350 writel_relaxed(irqstat, cpu_base + GIC_CPU_EOI); in gic_handle_irq()
450 void __iomem *cpu_base = gic_data_cpu_base(gic); in gic_cpu_if_up() local
458 if (gic_check_gicv2(cpu_base)) in gic_cpu_if_up()
460 writel_relaxed(0, cpu_base + GIC_CPU_ACTIVEPRIO + i * 4); in gic_cpu_if_up()
465 bypass = readl(cpu_base in gic_cpu_if_up()
537 void __iomem *cpu_base; gic_cpu_if_down() local
648 void __iomem *cpu_base; gic_cpu_save() local
678 void __iomem *cpu_base; gic_cpu_restore() local
1301 gic_init(void __iomem *dist_base, void __iomem *cpu_base) gic_init() argument
[all...]
H A Dirq-hip04.c54 void __iomem *cpu_base; member
80 return hip04_data->cpu_base; in hip04_cpu_base()
202 void __iomem *cpu_base = hip04_data.cpu_base; in hip04_handle_irq() local
205 irqstat = readl_relaxed(cpu_base + GIC_CPU_INTACK); in hip04_handle_irq()
271 void __iomem *base = intc->cpu_base; in hip04_irq_cpu_init()
367 hip04_data.cpu_base = of_iomap(node, 1); in hip04_of_init()
368 WARN(!hip04_data.cpu_base, "unable to map hip04 intc cpu registers\n"); in hip04_of_init()
/kernel/linux/linux-6.6/drivers/irqchip/
H A Dirq-gic.c72 union gic_base cpu_base; member
146 #define gic_data_cpu_base(d) __get_base(&(d)->cpu_base)
149 #define gic_data_cpu_base(d) ((d)->cpu_base.common_base)
341 void __iomem *cpu_base = gic_data_cpu_base(gic); in gic_handle_irq() local
344 irqstat = readl_relaxed(cpu_base + GIC_CPU_INTACK); in gic_handle_irq()
351 writel_relaxed(irqstat, cpu_base + GIC_CPU_EOI); in gic_handle_irq()
445 void __iomem *cpu_base = gic_data_cpu_base(gic); in gic_cpu_if_up() local
453 if (gic_check_gicv2(cpu_base)) in gic_cpu_if_up()
455 writel_relaxed(0, cpu_base + GIC_CPU_ACTIVEPRIO + i * 4); in gic_cpu_if_up()
460 bypass = readl(cpu_base in gic_cpu_if_up()
532 void __iomem *cpu_base; gic_cpu_if_down() local
643 void __iomem *cpu_base; gic_cpu_save() local
673 void __iomem *cpu_base; gic_cpu_restore() local
[all...]
H A Dirq-hip04.c54 void __iomem *cpu_base; member
80 return hip04_data->cpu_base; in hip04_cpu_base()
202 void __iomem *cpu_base = hip04_data.cpu_base; in hip04_handle_irq() local
205 irqstat = readl_relaxed(cpu_base + GIC_CPU_INTACK); in hip04_handle_irq()
271 void __iomem *base = intc->cpu_base; in hip04_irq_cpu_init()
363 hip04_data.cpu_base = of_iomap(node, 1); in hip04_of_init()
364 WARN(!hip04_data.cpu_base, "unable to map hip04 intc cpu registers\n"); in hip04_of_init()
/kernel/linux/linux-6.6/drivers/remoteproc/
H A Dmeson_mx_ao_arc.c48 void __iomem *cpu_base; member
105 writel(tmp, priv->cpu_base + AO_CPU_CNTL); in meson_mx_ao_arc_rproc_start()
116 writel(AO_CPU_CNTL_HALT, priv->cpu_base + AO_CPU_CNTL); in meson_mx_ao_arc_rproc_stop()
198 priv->cpu_base = devm_platform_ioremap_resource_byname(pdev, "cpu"); in meson_mx_ao_arc_rproc_probe()
199 if (IS_ERR(priv->cpu_base)) { in meson_mx_ao_arc_rproc_probe()
200 ret = PTR_ERR(priv->cpu_base); in meson_mx_ao_arc_rproc_probe()
/kernel/linux/linux-5.10/arch/mips/ar7/
H A Dclock.c327 int cpu_base, cpu_mul, cpu_prediv, cpu_postdiv; in tnetd7200_init_clocks() local
331 cpu_base = tnetd7200_get_clock_base(TNETD7200_CLOCK_ID_CPU, bootcr); in tnetd7200_init_clocks()
347 calculate(cpu_base, TNETD7200_DEF_CPU_CLK, &cpu_prediv, in tnetd7200_init_clocks()
350 ((cpu_base / cpu_prediv) * cpu_mul) / cpu_postdiv; in tnetd7200_init_clocks()
351 tnetd7200_set_clock(cpu_base, &clocks->cpu, in tnetd7200_init_clocks()
360 calculate(cpu_base, TNETD7200_DEF_CPU_CLK, &cpu_prediv, in tnetd7200_init_clocks()
362 cpu_clk.rate = ((cpu_base / cpu_prediv) * cpu_mul) in tnetd7200_init_clocks()
364 tnetd7200_set_clock(cpu_base, &clocks->cpu, in tnetd7200_init_clocks()
/kernel/linux/linux-6.6/arch/mips/ar7/
H A Dclock.c337 int cpu_base, cpu_mul, cpu_prediv, cpu_postdiv; in tnetd7200_init_clocks() local
342 cpu_base = tnetd7200_get_clock_base(TNETD7200_CLOCK_ID_CPU, bootcr); in tnetd7200_init_clocks()
358 calculate(cpu_base, TNETD7200_DEF_CPU_CLK, &cpu_prediv, in tnetd7200_init_clocks()
361 ((cpu_base / cpu_prediv) * cpu_mul) / cpu_postdiv; in tnetd7200_init_clocks()
362 tnetd7200_set_clock(cpu_base, &clocks->cpu, in tnetd7200_init_clocks()
371 calculate(cpu_base, TNETD7200_DEF_CPU_CLK, &cpu_prediv, in tnetd7200_init_clocks()
373 cpu_clk.rate = ((cpu_base / cpu_prediv) * cpu_mul) in tnetd7200_init_clocks()
375 tnetd7200_set_clock(cpu_base, &clocks->cpu, in tnetd7200_init_clocks()
/kernel/linux/linux-5.10/scripts/gdb/linux/
H A Dtimerlist.py70 cpu_base = cpus.per_cpu(hrtimer_bases, cpu)
78 text += print_base(cpu_base['clock_base'][i])
87 text += "\n".join([s.format(f, cpu_base[f]) for s, f in fmts])
/kernel/linux/linux-6.6/scripts/gdb/linux/
H A Dtimerlist.py69 cpu_base = cpus.per_cpu(hrtimer_bases, cpu)
77 text += print_base(cpu_base['clock_base'][i])
86 text += "\n".join([s.format(f, cpu_base[f]) for s, f in fmts])
/kernel/linux/linux-5.10/arch/arm64/kvm/vgic/
H A Dvgic-v2.c289 static bool vgic_v2_check_base(gpa_t dist_base, gpa_t cpu_base) in vgic_v2_check_base() argument
293 if (cpu_base + KVM_VGIC_V2_CPU_SIZE < cpu_base) in vgic_v2_check_base()
296 if (dist_base + KVM_VGIC_V2_DIST_SIZE <= cpu_base) in vgic_v2_check_base()
298 if (cpu_base + KVM_VGIC_V2_CPU_SIZE <= dist_base) in vgic_v2_check_base()
/kernel/linux/linux-6.6/arch/arm64/kvm/vgic/
H A Dvgic-v2.c274 static bool vgic_v2_check_base(gpa_t dist_base, gpa_t cpu_base) in vgic_v2_check_base() argument
278 if (cpu_base + KVM_VGIC_V2_CPU_SIZE < cpu_base) in vgic_v2_check_base()
281 if (dist_base + KVM_VGIC_V2_DIST_SIZE <= cpu_base) in vgic_v2_check_base()
283 if (cpu_base + KVM_VGIC_V2_CPU_SIZE <= dist_base) in vgic_v2_check_base()
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/
H A Dbgmac.c124 dma_desc = &ring->cpu_base[i]; in bgmac_dma_tx_add_buf()
217 u32 ctl1 = le32_to_cpu(ring->cpu_base[index].ctl1); in bgmac_dma_tx_add()
257 ctl0 = le32_to_cpu(ring->cpu_base[slot_idx].ctl0); in bgmac_dma_tx_free()
258 ctl1 = le32_to_cpu(ring->cpu_base[slot_idx].ctl1); in bgmac_dma_tx_free()
380 struct bgmac_dma_desc *dma_desc = ring->cpu_base + desc_idx; in bgmac_dma_rx_setup_desc()
529 struct bgmac_dma_desc *dma_desc = ring->cpu_base; in bgmac_dma_tx_ring_free()
579 if (!ring->cpu_base) in bgmac_dma_ring_desc_free()
584 dma_free_coherent(dma_dev, size, ring->cpu_base, in bgmac_dma_ring_desc_free()
637 ring->cpu_base = dma_alloc_coherent(dma_dev, size, in bgmac_dma_alloc()
640 if (!ring->cpu_base) { in bgmac_dma_alloc()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/
H A Dbgmac.c124 dma_desc = &ring->cpu_base[i]; in bgmac_dma_tx_add_buf()
217 u32 ctl1 = le32_to_cpu(ring->cpu_base[index].ctl1); in bgmac_dma_tx_add()
257 ctl0 = le32_to_cpu(ring->cpu_base[slot_idx].ctl0); in bgmac_dma_tx_free()
258 ctl1 = le32_to_cpu(ring->cpu_base[slot_idx].ctl1); in bgmac_dma_tx_free()
380 struct bgmac_dma_desc *dma_desc = ring->cpu_base + desc_idx; in bgmac_dma_rx_setup_desc()
529 struct bgmac_dma_desc *dma_desc = ring->cpu_base; in bgmac_dma_tx_ring_free()
579 if (!ring->cpu_base) in bgmac_dma_ring_desc_free()
584 dma_free_coherent(dma_dev, size, ring->cpu_base, in bgmac_dma_ring_desc_free()
637 ring->cpu_base = dma_alloc_coherent(dma_dev, size, in bgmac_dma_alloc()
640 if (!ring->cpu_base) { in bgmac_dma_alloc()
[all...]
/kernel/linux/linux-6.6/drivers/infiniband/hw/hns/
H A Dhns_roce_hem.c1270 static int alloc_fake_root_bt(struct hns_roce_dev *hr_dev, void *cpu_base, in alloc_fake_root_bt() argument
1282 hem_list_assign_bt(hr_dev, hem, cpu_base, phy_base); in alloc_fake_root_bt()
1289 static int setup_middle_bt(struct hns_roce_dev *hr_dev, void *cpu_base, in setup_middle_bt() argument
1305 hem_list_link_bt(hr_dev, cpu_base + offset, hem->dma_addr); in setup_middle_bt()
1319 void *cpu_base; in setup_root_hem() local
1336 cpu_base = root_hem->addr + total * BA_BYTE_LEN; in setup_root_hem()
1343 ret = alloc_fake_root_bt(hr_dev, cpu_base, phy_base, r, in setup_root_hem()
1346 ret = setup_middle_bt(hr_dev, cpu_base, unit, r, in setup_root_hem()
1486 void *cpu_base = NULL; in hns_roce_hem_list_find_mtt() local
1492 cpu_base in hns_roce_hem_list_find_mtt()
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dhrtimer.h85 * timer->base->cpu_base->running == timer
93 * All state transitions are protected by cpu_base->lock.
152 * @cpu_base: per cpu clock base
163 struct hrtimer_cpu_base *cpu_base; member
318 timer->base->cpu_base->hres_active : 0; in hrtimer_is_hres_active()
/kernel/linux/linux-6.6/include/linux/
H A Dhrtimer.h84 * timer->base->cpu_base->running == timer
92 * All state transitions are protected by cpu_base->lock.
149 * @cpu_base: per cpu clock base
160 struct hrtimer_cpu_base *cpu_base; member
315 timer->base->cpu_base->hres_active : 0; in hrtimer_is_hres_active()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dmub/src/
H A Ddmub_srv.c326 uint8_t *cpu_base; in dmub_srv_calc_mem_info() local
338 cpu_base = (uint8_t *)params->cpu_fb_addr; in dmub_srv_calc_mem_info()
345 out->fb[i].cpu_addr = cpu_base + reg->base; in dmub_srv_calc_mem_info()
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
H A Dhns_roce_hem.c1227 void *cpu_base; in hem_list_alloc_root_bt() local
1268 cpu_base = root_hem->addr + total * BA_BYTE_LEN; in hem_list_alloc_root_bt()
1282 hem_list_assign_bt(hr_dev, hem, cpu_base, phy_base); in hem_list_alloc_root_bt()
1297 hem_list_link_bt(hr_dev, cpu_base + offset, in hem_list_alloc_root_bt()
1402 void *cpu_base = NULL; in hns_roce_hem_list_find_mtt() local
1409 cpu_base = hem->addr + nr * BA_BYTE_LEN; in hns_roce_hem_list_find_mtt()
1422 return cpu_base; in hns_roce_hem_list_find_mtt()
/kernel/linux/linux-6.6/drivers/media/platform/qcom/venus/
H A Dcore.c252 core->cpu_base = core->base + CPU_BASE_V6; in venus_assign_register_offsets()
260 core->cpu_base = core->base + CPU_BASE; in venus_assign_register_offsets()

Completed in 24 milliseconds

12