Home
last modified time | relevance | path

Searched refs:gpt (Results 1 – 25 of 37) sorted by relevance

12

/Linux-v4.19/arch/powerpc/platforms/52xx/
Dmpc52xx_gpt.c141 struct mpc52xx_gpt_priv *gpt = irq_data_get_irq_chip_data(d); in mpc52xx_gpt_irq_unmask() local
144 raw_spin_lock_irqsave(&gpt->lock, flags); in mpc52xx_gpt_irq_unmask()
145 setbits32(&gpt->regs->mode, MPC52xx_GPT_MODE_IRQ_EN); in mpc52xx_gpt_irq_unmask()
146 raw_spin_unlock_irqrestore(&gpt->lock, flags); in mpc52xx_gpt_irq_unmask()
151 struct mpc52xx_gpt_priv *gpt = irq_data_get_irq_chip_data(d); in mpc52xx_gpt_irq_mask() local
154 raw_spin_lock_irqsave(&gpt->lock, flags); in mpc52xx_gpt_irq_mask()
155 clrbits32(&gpt->regs->mode, MPC52xx_GPT_MODE_IRQ_EN); in mpc52xx_gpt_irq_mask()
156 raw_spin_unlock_irqrestore(&gpt->lock, flags); in mpc52xx_gpt_irq_mask()
161 struct mpc52xx_gpt_priv *gpt = irq_data_get_irq_chip_data(d); in mpc52xx_gpt_irq_ack() local
163 out_be32(&gpt->regs->status, MPC52xx_GPT_STATUS_IRQMASK); in mpc52xx_gpt_irq_ack()
[all …]
DKconfig20 gpt nodes, then it is safe to use such gpt to reset the board,
/Linux-v4.19/drivers/clk/spear/
Dclk-gpt-synth.c37 struct clk_gpt *gpt = to_clk_gpt(hw); in gpt_calc_rate() local
38 struct gpt_rate_tbl *rtbl = gpt->rtbl; in gpt_calc_rate()
48 struct clk_gpt *gpt = to_clk_gpt(hw); in clk_gpt_round_rate() local
52 gpt->rtbl_cnt, &unused); in clk_gpt_round_rate()
58 struct clk_gpt *gpt = to_clk_gpt(hw); in clk_gpt_recalc_rate() local
62 if (gpt->lock) in clk_gpt_recalc_rate()
63 spin_lock_irqsave(gpt->lock, flags); in clk_gpt_recalc_rate()
65 val = readl_relaxed(gpt->reg); in clk_gpt_recalc_rate()
67 if (gpt->lock) in clk_gpt_recalc_rate()
68 spin_unlock_irqrestore(gpt->lock, flags); in clk_gpt_recalc_rate()
[all …]
DMakefile6 obj-y += clk.o clk-aux-synth.o clk-frac-synth.o clk-gpt-synth.o clk-vco-pll.o
/Linux-v4.19/block/partitions/
Defi.c288 gpt_header *gpt) in alloc_read_gpt_entries() argument
293 if (!gpt) in alloc_read_gpt_entries()
296 count = (size_t)le32_to_cpu(gpt->num_partition_entries) * in alloc_read_gpt_entries()
297 le32_to_cpu(gpt->sizeof_partition_entry); in alloc_read_gpt_entries()
304 if (read_lba(state, le64_to_cpu(gpt->partition_entry_lba), in alloc_read_gpt_entries()
325 gpt_header *gpt; in alloc_read_gpt_header() local
328 gpt = kmalloc(ssz, GFP_KERNEL); in alloc_read_gpt_header()
329 if (!gpt) in alloc_read_gpt_header()
332 if (read_lba(state, lba, (u8 *) gpt, ssz) < ssz) { in alloc_read_gpt_header()
333 kfree(gpt); in alloc_read_gpt_header()
[all …]
/Linux-v4.19/drivers/clocksource/
Dtimer-imx-gpt.c68 const struct imx_gpt_data *gpt; member
154 void __iomem *reg = imxtm->base + imxtm->gpt->reg_tcn; in mxc_clocksource_init()
211 imxtm->gpt->gpt_irq_disable(imxtm); in mxc_shutdown()
213 tcn = readl_relaxed(imxtm->base + imxtm->gpt->reg_tcn); in mxc_shutdown()
215 writel_relaxed(tcn - 3, imxtm->base + imxtm->gpt->reg_tcmp); in mxc_shutdown()
218 imxtm->gpt->gpt_irq_acknowledge(imxtm); in mxc_shutdown()
241 imxtm->gpt->gpt_irq_disable(imxtm); in mxc_set_oneshot()
244 u32 tcn = readl_relaxed(imxtm->base + imxtm->gpt->reg_tcn); in mxc_set_oneshot()
246 writel_relaxed(tcn - 3, imxtm->base + imxtm->gpt->reg_tcmp); in mxc_set_oneshot()
249 imxtm->gpt->gpt_irq_acknowledge(imxtm); in mxc_set_oneshot()
[all …]
DMakefile72 obj-$(CONFIG_CLKSRC_IMX_GPT) += timer-imx-gpt.o
/Linux-v4.19/arch/powerpc/boot/dts/
Dmpc5200b.dtsi68 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
76 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
83 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
90 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
97 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
104 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
111 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
118 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
Dlite5200.dts67 compatible = "fsl,mpc5200-gpt";
74 compatible = "fsl,mpc5200-gpt";
80 compatible = "fsl,mpc5200-gpt";
86 compatible = "fsl,mpc5200-gpt";
92 compatible = "fsl,mpc5200-gpt";
98 compatible = "fsl,mpc5200-gpt";
104 compatible = "fsl,mpc5200-gpt";
110 compatible = "fsl,mpc5200-gpt";
Dtqm5200.dts67 compatible = "fsl,mpc5200-gpt";
/Linux-v4.19/Documentation/devicetree/bindings/timer/
Dfsl,imxgpt.txt5 - compatible : should be "fsl,<soc>-gpt"
13 compatible = "fsl,imx27-gpt", "fsl,imx1-gpt";
/Linux-v4.19/arch/arm/boot/dts/
Dimx27.dtsi112 compatible = "fsl,imx27-gpt", "fsl,imx21-gpt";
121 compatible = "fsl,imx27-gpt", "fsl,imx21-gpt";
130 compatible = "fsl,imx27-gpt", "fsl,imx21-gpt";
389 compatible = "fsl,imx27-gpt", "fsl,imx21-gpt";
398 compatible = "fsl,imx27-gpt", "fsl,imx21-gpt";
449 compatible = "fsl,imx27-gpt", "fsl,imx21-gpt";
Dimx25.dtsi357 compatible = "fsl,imx25-gpt", "fsl,imx31-gpt";
365 compatible = "fsl,imx25-gpt", "fsl,imx31-gpt";
373 compatible = "fsl,imx25-gpt", "fsl,imx31-gpt";
381 compatible = "fsl,imx25-gpt", "fsl,imx31-gpt";
Dimx7s.dtsi442 gpt1: gpt@302d0000 {
443 compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt";
451 gpt2: gpt@302e0000 {
452 compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt";
461 gpt3: gpt@302f0000 {
462 compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt";
471 gpt4: gpt@30300000 {
472 compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt";
Dimx6dl.dtsi290 &gpt {
291 compatible = "fsl,imx6dl-gpt";
Dimx1.dtsi81 compatible = "fsl,imx1-gpt";
90 compatible = "fsl,imx1-gpt";
Dimx35.dtsi212 gpt: timer@53f90000 { label
213 compatible = "fsl,imx35-gpt", "fsl,imx31-gpt";
Dimx50.dtsi267 gpt: timer@53fa0000 { label
268 compatible = "fsl,imx50-gpt", "fsl,imx31-gpt";
Dimx6ul.dtsi423 gpt1: gpt@2098000 {
424 compatible = "fsl,imx6ul-gpt", "fsl,imx6sx-gpt";
696 gpt2: gpt@20e8000 {
697 compatible = "fsl,imx6ul-gpt", "fsl,imx6sx-gpt";
Dimx31.dtsi257 gpt: timer@53f90000 { label
258 compatible = "fsl,imx31-gpt";
Dimx51.dtsi367 gpt: timer@73fa0000 { label
368 compatible = "fsl,imx51-gpt", "fsl,imx31-gpt";
/Linux-v4.19/drivers/gpu/drm/i915/gvt/
Dtrace.h191 TP_PROTO(int id, const char *tag, int page_id, void *gpt, int type),
193 TP_ARGS(id, tag, page_id, gpt, type),
202 id, tag, page_id, gpt, type);
209 TP_PROTO(int id, int page_id, void *gpt, int type, u64 v,
212 TP_ARGS(id, page_id, gpt, type, v, index),
221 id, page_id, gpt, type, v, index);
/Linux-v4.19/Documentation/devicetree/bindings/powerpc/fsl/
Dmpc5200.txt84 timer@<addr> fsl,mpc5200-gpt General purpose timers
102 fsl,mpc5200-gpt nodes
109 mode has priority over the gpt mode, i.e. if the watchdog is activated, any
110 gpt api call to this timer will fail with -EBUSY.
114 GPT0 will be marked as in-use watchdog, i.e. blocking every gpt access to it.
117 - just mark GPT0 as watchdog, blocking gpt accesses, and configure it later;
123 An mpc5200-gpt can be used as a single line GPIO controller. To do so,
124 add the following properties to the gpt node:
131 An mpc5200-gpt can be used as a single line edge sensitive interrupt
132 controller. To do so, add the following properties to the gpt node:
/Linux-v4.19/Documentation/devicetree/bindings/pinctrl/
Dlantiq,pinctrl-xway.txt57 spi, asc, cgu, jtag, exin, stp, gpt, nmi, pci, ebu
69 spi, asc, cgu, jtag, exin, stp, gpt, nmi, pci, ebu, mdio, gphy
78 spi, asc, cgu, jtag, exin, stp, gpt, mdio, ephy, dfe
89 spi, asc, cgu, jtag, exin, stp, gpt, nmi, pci, ebu, dfe
101 spi, asc, cgu, exin, stp, gpt, nmi, pci, ebu, mdio, dfe
116 spi, usif, cgu, exin, stp, gpt, nmi, pci, ebu, mdio, dfe, gphy
/Linux-v4.19/arch/powerpc/include/asm/
Dmpc52xx.h283 extern int mpc52xx_gpt_start_timer(struct mpc52xx_gpt_priv *gpt, u64 period,
285 extern u64 mpc52xx_gpt_timer_period(struct mpc52xx_gpt_priv *gpt);
286 extern int mpc52xx_gpt_stop_timer(struct mpc52xx_gpt_priv *gpt);

12