Home
last modified time | relevance | path

Searched refs:gpt (Results 1 - 13 of 13) sorted by relevance

/kernel/linux/linux-6.6/arch/powerpc/platforms/52xx/
H A Dmpc52xx_gpt.c8 * This file is a driver for the General Purpose Timer (gpt) devices
18 * this prevents the use of any gpt0 gpt function (i.e. they will fail with
19 * -EBUSY). Thus, the safety wdt function always has precedence over the gpt
25 * to the device tree node for the gpt device (typically in the .dts file
33 * be added to the device tree node for the gpt device:
72 MODULE_DESCRIPTION("Freescale MPC52xx gpt driver");
84 * if the gpt may be used as wdt, bit 1 (MPC52xx_GPT_IS_WDT) indicates
85 * if the timer is actively used as wdt which blocks gpt functions
139 struct mpc52xx_gpt_priv *gpt = irq_data_get_irq_chip_data(d); in mpc52xx_gpt_irq_unmask() local
142 raw_spin_lock_irqsave(&gpt in mpc52xx_gpt_irq_unmask()
149 struct mpc52xx_gpt_priv *gpt = irq_data_get_irq_chip_data(d); mpc52xx_gpt_irq_mask() local
159 struct mpc52xx_gpt_priv *gpt = irq_data_get_irq_chip_data(d); mpc52xx_gpt_irq_ack() local
166 struct mpc52xx_gpt_priv *gpt = irq_data_get_irq_chip_data(d); mpc52xx_gpt_irq_set_type() local
194 struct mpc52xx_gpt_priv *gpt = irq_desc_get_handler_data(desc); mpc52xx_gpt_irq_cascade() local
205 struct mpc52xx_gpt_priv *gpt = h->host_data; mpc52xx_gpt_irq_map() local
219 struct mpc52xx_gpt_priv *gpt = h->host_data; mpc52xx_gpt_irq_xlate() local
240 mpc52xx_gpt_irq_setup(struct mpc52xx_gpt_priv *gpt, struct device_node *node) mpc52xx_gpt_irq_setup() argument
278 struct mpc52xx_gpt_priv *gpt = gpiochip_get_data(gc); mpc52xx_gpt_gpio_get() local
286 struct mpc52xx_gpt_priv *gpt = gpiochip_get_data(gc); mpc52xx_gpt_gpio_set() local
300 struct mpc52xx_gpt_priv *gpt = gpiochip_get_data(gc); mpc52xx_gpt_gpio_dir_in() local
319 mpc52xx_gpt_gpio_setup(struct mpc52xx_gpt_priv *gpt) mpc52xx_gpt_gpio_setup() argument
352 mpc52xx_gpt_gpio_setup(struct mpc52xx_gpt_priv *gpt) mpc52xx_gpt_gpio_setup() argument
365 struct mpc52xx_gpt_priv *gpt; mpc52xx_gpt_from_irq() local
383 mpc52xx_gpt_do_start(struct mpc52xx_gpt_priv *gpt, u64 period, int continuous, int as_wdt) mpc52xx_gpt_do_start() argument
453 mpc52xx_gpt_start_timer(struct mpc52xx_gpt_priv *gpt, u64 period, int continuous) mpc52xx_gpt_start_timer() argument
466 mpc52xx_gpt_stop_timer(struct mpc52xx_gpt_priv *gpt) mpc52xx_gpt_stop_timer() argument
489 mpc52xx_gpt_timer_period(struct mpc52xx_gpt_priv *gpt) mpc52xx_gpt_timer_period() argument
674 mpc52xx_gpt_wdt_setup(struct mpc52xx_gpt_priv *gpt, const u32 *period) mpc52xx_gpt_wdt_setup() argument
701 mpc52xx_gpt_wdt_setup(struct mpc52xx_gpt_priv *gpt, const u32 *period) mpc52xx_gpt_wdt_setup() argument
714 struct mpc52xx_gpt_priv *gpt; mpc52xx_gpt_probe() local
[all...]
/kernel/linux/linux-5.10/arch/powerpc/platforms/52xx/
H A Dmpc52xx_gpt.c8 * This file is a driver for the the General Purpose Timer (gpt) devices
18 * this prevents the use of any gpt0 gpt function (i.e. they will fail with
19 * -EBUSY). Thus, the safety wdt function always has precedence over the gpt
25 * to the device tree node for the gpt device (typically in the .dts file
33 * be added to the device tree node for the gpt device:
70 MODULE_DESCRIPTION("Freescale MPC52xx gpt driver");
82 * if the gpt may be used as wdt, bit 1 (MPC52xx_GPT_IS_WDT) indicates
83 * if the timer is actively used as wdt which blocks gpt functions
137 struct mpc52xx_gpt_priv *gpt = irq_data_get_irq_chip_data(d); in mpc52xx_gpt_irq_unmask() local
140 raw_spin_lock_irqsave(&gpt in mpc52xx_gpt_irq_unmask()
147 struct mpc52xx_gpt_priv *gpt = irq_data_get_irq_chip_data(d); mpc52xx_gpt_irq_mask() local
157 struct mpc52xx_gpt_priv *gpt = irq_data_get_irq_chip_data(d); mpc52xx_gpt_irq_ack() local
164 struct mpc52xx_gpt_priv *gpt = irq_data_get_irq_chip_data(d); mpc52xx_gpt_irq_set_type() local
192 struct mpc52xx_gpt_priv *gpt = irq_desc_get_handler_data(desc); mpc52xx_gpt_irq_cascade() local
206 struct mpc52xx_gpt_priv *gpt = h->host_data; mpc52xx_gpt_irq_map() local
220 struct mpc52xx_gpt_priv *gpt = h->host_data; mpc52xx_gpt_irq_xlate() local
241 mpc52xx_gpt_irq_setup(struct mpc52xx_gpt_priv *gpt, struct device_node *node) mpc52xx_gpt_irq_setup() argument
279 struct mpc52xx_gpt_priv *gpt = gpiochip_get_data(gc); mpc52xx_gpt_gpio_get() local
287 struct mpc52xx_gpt_priv *gpt = gpiochip_get_data(gc); mpc52xx_gpt_gpio_set() local
301 struct mpc52xx_gpt_priv *gpt = gpiochip_get_data(gc); mpc52xx_gpt_gpio_dir_in() local
321 mpc52xx_gpt_gpio_setup(struct mpc52xx_gpt_priv *gpt, struct device_node *node) mpc52xx_gpt_gpio_setup() argument
369 struct mpc52xx_gpt_priv *gpt; mpc52xx_gpt_from_irq() local
387 mpc52xx_gpt_do_start(struct mpc52xx_gpt_priv *gpt, u64 period, int continuous, int as_wdt) mpc52xx_gpt_do_start() argument
457 mpc52xx_gpt_start_timer(struct mpc52xx_gpt_priv *gpt, u64 period, int continuous) mpc52xx_gpt_start_timer() argument
470 mpc52xx_gpt_stop_timer(struct mpc52xx_gpt_priv *gpt) mpc52xx_gpt_stop_timer() argument
493 mpc52xx_gpt_timer_period(struct mpc52xx_gpt_priv *gpt) mpc52xx_gpt_timer_period() argument
677 mpc52xx_gpt_wdt_setup(struct mpc52xx_gpt_priv *gpt, const u32 *period) mpc52xx_gpt_wdt_setup() argument
704 mpc52xx_gpt_wdt_setup(struct mpc52xx_gpt_priv *gpt, const u32 *period) mpc52xx_gpt_wdt_setup() argument
717 struct mpc52xx_gpt_priv *gpt; mpc52xx_gpt_probe() local
[all...]
/kernel/linux/linux-5.10/drivers/clk/spear/
H A Dclk-gpt-synth.c12 #define pr_fmt(fmt) "clk-gpt-synth: " fmt
27 * Calculates gpt synth clk rate for different values of mscale and nscale
37 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 in clk_gpt_recalc_rate()
83 struct clk_gpt *gpt = to_clk_gpt(hw); clk_gpt_set_rate() local
119 struct clk_gpt *gpt; clk_register_gpt() local
[all...]
/kernel/linux/linux-6.6/drivers/clk/spear/
H A Dclk-gpt-synth.c9 #define pr_fmt(fmt) "clk-gpt-synth: " fmt
24 * Calculates gpt synth clk rate for different values of mscale and nscale
34 struct clk_gpt *gpt = to_clk_gpt(hw); in gpt_calc_rate() local
35 struct gpt_rate_tbl *rtbl = gpt->rtbl; in gpt_calc_rate()
45 struct clk_gpt *gpt = to_clk_gpt(hw); in clk_gpt_round_rate() local
49 gpt->rtbl_cnt, &unused); in clk_gpt_round_rate()
55 struct clk_gpt *gpt = to_clk_gpt(hw); in clk_gpt_recalc_rate() local
59 if (gpt->lock) in clk_gpt_recalc_rate()
60 spin_lock_irqsave(gpt->lock, flags); in clk_gpt_recalc_rate()
62 val = readl_relaxed(gpt in clk_gpt_recalc_rate()
80 struct clk_gpt *gpt = to_clk_gpt(hw); clk_gpt_set_rate() local
116 struct clk_gpt *gpt; clk_register_gpt() local
[all...]
/kernel/linux/linux-5.10/block/partitions/
H A Defi.c19 * AGPT, allow override with 'gpt' kernel command line option.
42 * - Changed gpt structure names and members to be simpler and more Linux-like.
64 * - Added kernel command line option 'gpt' to override valid PMBR test.
93 /* This allows a kernel command line option 'gpt' to override
104 __setup("gpt", force_gpt_fn);
267 * @gpt: GPT header
270 * Allocates space for PTEs based on information found in @gpt.
274 gpt_header *gpt) in alloc_read_gpt_entries()
279 if (!gpt) in alloc_read_gpt_entries()
282 count = (size_t)le32_to_cpu(gpt in alloc_read_gpt_entries()
273 alloc_read_gpt_entries(struct parsed_partitions *state, gpt_header *gpt) alloc_read_gpt_entries() argument
311 gpt_header *gpt; alloc_read_gpt_header() local
337 is_gpt_valid(struct parsed_partitions *state, u64 lba, gpt_header **gpt, gpt_entry **ptes) is_gpt_valid() argument
583 find_valid_gpt(struct parsed_partitions *state, gpt_header **gpt, gpt_entry **ptes) find_valid_gpt() argument
705 gpt_header *gpt = NULL; efi_partition() local
[all...]
/kernel/linux/linux-6.6/block/partitions/
H A Defi.c19 * AGPT, allow override with 'gpt' kernel command line option.
42 * - Changed gpt structure names and members to be simpler and more Linux-like.
64 * - Added kernel command line option 'gpt' to override valid PMBR test.
93 /* This allows a kernel command line option 'gpt' to override
104 __setup("gpt", force_gpt_fn);
265 * @gpt: GPT header
268 * Allocates space for PTEs based on information found in @gpt.
272 gpt_header *gpt) in alloc_read_gpt_entries()
277 if (!gpt) in alloc_read_gpt_entries()
280 count = (size_t)le32_to_cpu(gpt in alloc_read_gpt_entries()
271 alloc_read_gpt_entries(struct parsed_partitions *state, gpt_header *gpt) alloc_read_gpt_entries() argument
309 gpt_header *gpt; alloc_read_gpt_header() local
335 is_gpt_valid(struct parsed_partitions *state, u64 lba, gpt_header **gpt, gpt_entry **ptes) is_gpt_valid() argument
581 find_valid_gpt(struct parsed_partitions *state, gpt_header **gpt, gpt_entry **ptes) find_valid_gpt() argument
715 gpt_header *gpt = NULL; efi_partition() local
[all...]
/kernel/linux/linux-5.10/drivers/clocksource/
H A Dtimer-imx-gpt.c68 const struct imx_gpt_data *gpt; member
155 void __iomem *reg = imxtm->base + imxtm->gpt->reg_tcn; in mxc_clocksource_init()
207 imxtm->gpt->gpt_irq_disable(imxtm); in mxc_shutdown()
209 tcn = readl_relaxed(imxtm->base + imxtm->gpt->reg_tcn); in mxc_shutdown()
211 writel_relaxed(tcn - 3, imxtm->base + imxtm->gpt->reg_tcmp); in mxc_shutdown()
214 imxtm->gpt->gpt_irq_acknowledge(imxtm); in mxc_shutdown()
228 imxtm->gpt->gpt_irq_disable(imxtm); in mxc_set_oneshot()
231 u32 tcn = readl_relaxed(imxtm->base + imxtm->gpt->reg_tcn); in mxc_set_oneshot()
233 writel_relaxed(tcn - 3, imxtm->base + imxtm->gpt->reg_tcmp); in mxc_set_oneshot()
236 imxtm->gpt in mxc_set_oneshot()
[all...]
/kernel/linux/linux-6.6/drivers/clocksource/
H A Dtimer-imx-gpt.c73 const struct imx_gpt_data *gpt; member
155 void __iomem *reg = imxtm->base + imxtm->gpt->reg_tcn; in mxc_clocksource_init()
207 imxtm->gpt->gpt_irq_disable(imxtm); in mxc_shutdown()
209 tcn = readl_relaxed(imxtm->base + imxtm->gpt->reg_tcn); in mxc_shutdown()
211 writel_relaxed(tcn - 3, imxtm->base + imxtm->gpt->reg_tcmp); in mxc_shutdown()
214 imxtm->gpt->gpt_irq_acknowledge(imxtm); in mxc_shutdown()
228 imxtm->gpt->gpt_irq_disable(imxtm); in mxc_set_oneshot()
231 u32 tcn = readl_relaxed(imxtm->base + imxtm->gpt->reg_tcn); in mxc_set_oneshot()
233 writel_relaxed(tcn - 3, imxtm->base + imxtm->gpt->reg_tcmp); in mxc_set_oneshot()
236 imxtm->gpt in mxc_set_oneshot()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gvt/
H A 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),
201 "VM%d [oos %s] page id %d gpt %p type %d\n",
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),
220 "VM%d [oos sync] page id %d gpt %p type %d entry 0x%llx index 0x%lx\n",
221 id, page_id, gpt, type, v, index);
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gvt/
H A 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),
201 "VM%d [oos %s] page id %d gpt %p type %d\n",
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),
220 "VM%d [oos sync] page id %d gpt %p type %d entry 0x%llx index 0x%lx\n",
221 id, page_id, gpt, type, v, index);
/kernel/linux/linux-6.6/arch/powerpc/include/asm/
H A 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);
/kernel/linux/linux-5.10/drivers/staging/gasket/
H A Dapex_driver.c512 struct gasket_page_table *gpt; in sysfs_show() local
529 gpt = gasket_dev->page_table[0]; in sysfs_show()
532 val = gasket_page_table_num_entries(gpt); in sysfs_show()
535 val = gasket_page_table_num_simple_entries(gpt); in sysfs_show()
538 val = gasket_page_table_num_active_pages(gpt); in sysfs_show()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
H A 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);

Completed in 10 milliseconds