Home
last modified time | relevance | path

Searched refs:tcu (Results 1 - 23 of 23) sorted by relevance

/kernel/linux/linux-6.6/drivers/tty/serial/
H A Dtegra-tcu.c51 static void tegra_tcu_write_one(struct tegra_tcu *tcu, u32 value, in tegra_tcu_write_one() argument
58 mbox_send_message(tcu->tx, msg); in tegra_tcu_write_one()
59 mbox_flush(tcu->tx, 1000); in tegra_tcu_write_one()
62 static void tegra_tcu_write(struct tegra_tcu *tcu, const char *s, in tegra_tcu_write() argument
82 tegra_tcu_write_one(tcu, value, 3); in tegra_tcu_write()
88 tegra_tcu_write_one(tcu, value, written); in tegra_tcu_write()
93 struct tegra_tcu *tcu = port->private_data; in tegra_tcu_uart_start_tx() local
102 tegra_tcu_write(tcu, &xmit->buf[xmit->tail], count); in tegra_tcu_uart_start_tx()
149 struct tegra_tcu *tcu = container_of(cons, struct tegra_tcu, console); in tegra_tcu_console_write() local
151 tegra_tcu_write(tcu, in tegra_tcu_console_write()
162 struct tegra_tcu *tcu = container_of(cl, struct tegra_tcu, rx_client); tegra_tcu_receive() local
179 struct tegra_tcu *tcu; tegra_tcu_probe() local
271 struct tegra_tcu *tcu = platform_get_drvdata(pdev); tegra_tcu_remove() local
[all...]
H A DMakefile72 obj-$(CONFIG_SERIAL_TEGRA_TCU) += tegra-tcu.o
/kernel/linux/linux-5.10/drivers/tty/serial/
H A Dtegra-tcu.c52 static void tegra_tcu_write_one(struct tegra_tcu *tcu, u32 value, in tegra_tcu_write_one() argument
59 mbox_send_message(tcu->tx, msg); in tegra_tcu_write_one()
60 mbox_flush(tcu->tx, 1000); in tegra_tcu_write_one()
63 static void tegra_tcu_write(struct tegra_tcu *tcu, const char *s, in tegra_tcu_write() argument
83 tegra_tcu_write_one(tcu, value, 3); in tegra_tcu_write()
89 tegra_tcu_write_one(tcu, value, written); in tegra_tcu_write()
94 struct tegra_tcu *tcu = port->private_data; in tegra_tcu_uart_start_tx() local
103 tegra_tcu_write(tcu, &xmit->buf[xmit->tail], count); in tegra_tcu_uart_start_tx()
150 struct tegra_tcu *tcu = container_of(cons, struct tegra_tcu, console); in tegra_tcu_console_write() local
152 tegra_tcu_write(tcu, in tegra_tcu_console_write()
163 struct tegra_tcu *tcu = container_of(cl, struct tegra_tcu, rx_client); tegra_tcu_receive() local
180 struct tegra_tcu *tcu; tegra_tcu_probe() local
268 struct tegra_tcu *tcu = platform_get_drvdata(pdev); tegra_tcu_remove() local
[all...]
/kernel/linux/linux-6.6/drivers/clk/ingenic/
H A Dtcu.c10 #include <linux/mfd/ingenic-tcu.h>
16 #include <dt-bindings/clock/ingenic,tcu.h>
22 #define pr_fmt(fmt) "ingenic-tcu-clk: " fmt
46 struct ingenic_tcu *tcu; member
69 struct ingenic_tcu *tcu = tcu_clk->tcu; in ingenic_tcu_enable() local
71 regmap_write(tcu->map, TCU_REG_TSCR, BIT(info->gate_bit)); in ingenic_tcu_enable()
80 struct ingenic_tcu *tcu = tcu_clk->tcu; in ingenic_tcu_disable() local
82 regmap_write(tcu in ingenic_tcu_disable()
100 struct ingenic_tcu *tcu = tcu_clk->tcu; ingenic_tcu_enable_regs() local
117 struct ingenic_tcu *tcu = tcu_clk->tcu; ingenic_tcu_disable_regs() local
268 ingenic_tcu_register_clock(struct ingenic_tcu *tcu, unsigned int idx, enum tcu_clk_parent parent, const struct ingenic_tcu_clk_info *info, struct clk_hw_onecell_data *clocks) ingenic_tcu_register_clock() argument
338 struct ingenic_tcu *tcu; ingenic_tcu_probe() local
460 struct ingenic_tcu *tcu = ingenic_tcu; tcu_pm_suspend() local
470 struct ingenic_tcu *tcu = ingenic_tcu; tcu_pm_resume() local
[all...]
/kernel/linux/linux-5.10/drivers/clk/ingenic/
H A Dtcu.c10 #include <linux/mfd/ingenic-tcu.h>
16 #include <dt-bindings/clock/ingenic,tcu.h>
22 #define pr_fmt(fmt) "ingenic-tcu-clk: " fmt
45 struct ingenic_tcu *tcu; member
68 struct ingenic_tcu *tcu = tcu_clk->tcu; in ingenic_tcu_enable() local
70 regmap_write(tcu->map, TCU_REG_TSCR, BIT(info->gate_bit)); in ingenic_tcu_enable()
79 struct ingenic_tcu *tcu = tcu_clk->tcu; in ingenic_tcu_disable() local
81 regmap_write(tcu in ingenic_tcu_disable()
99 struct ingenic_tcu *tcu = tcu_clk->tcu; ingenic_tcu_enable_regs() local
116 struct ingenic_tcu *tcu = tcu_clk->tcu; ingenic_tcu_disable_regs() local
264 ingenic_tcu_register_clock(struct ingenic_tcu *tcu, unsigned int idx, enum tcu_clk_parent parent, const struct ingenic_tcu_clk_info *info, struct clk_hw_onecell_data *clocks) ingenic_tcu_register_clock() argument
332 struct ingenic_tcu *tcu; ingenic_tcu_probe() local
441 struct ingenic_tcu *tcu = ingenic_tcu; tcu_pm_suspend() local
451 struct ingenic_tcu *tcu = ingenic_tcu; tcu_pm_resume() local
[all...]
/kernel/linux/linux-5.10/drivers/clocksource/
H A Dingenic-timer.c13 #include <linux/mfd/ingenic-tcu.h>
24 #include <dt-bindings/clock/ingenic,tcu.h>
54 struct ingenic_tcu *tcu = ingenic_tcu; in ingenic_tcu_timer_read() local
57 regmap_read(tcu->map, TCU_REG_TCNTc(tcu->cs_channel), &count); in ingenic_tcu_timer_read()
82 struct ingenic_tcu *tcu = to_ingenic_tcu(timer); in ingenic_tcu_cevt_set_state_shutdown() local
84 regmap_write(tcu->map, TCU_REG_TECR, BIT(timer->channel)); in ingenic_tcu_cevt_set_state_shutdown()
93 struct ingenic_tcu *tcu = to_ingenic_tcu(timer); in ingenic_tcu_cevt_set_next() local
98 regmap_write(tcu->map, TCU_REG_TDFRc(timer->channel), next); in ingenic_tcu_cevt_set_next()
99 regmap_write(tcu in ingenic_tcu_cevt_set_next()
115 struct ingenic_tcu *tcu = to_ingenic_tcu(timer); ingenic_tcu_cevt_cb() local
143 struct ingenic_tcu *tcu = ingenic_tcu; ingenic_tcu_setup_cevt() local
204 ingenic_tcu_clocksource_init(struct device_node *np, struct ingenic_tcu *tcu) ingenic_tcu_clocksource_init() argument
277 struct ingenic_tcu *tcu; ingenic_tcu_init() local
373 struct ingenic_tcu *tcu = dev_get_drvdata(dev); ingenic_tcu_suspend() local
386 struct ingenic_tcu *tcu = dev_get_drvdata(dev); ingenic_tcu_resume() local
[all...]
H A Dingenic-ost.c11 #include <linux/mfd/ingenic-tcu.h>
25 * The TCU_REG_OST_CNT{L,R} from <linux/mfd/ingenic-tcu.h> are only for the
/kernel/linux/linux-6.6/drivers/clocksource/
H A Dingenic-timer.c14 #include <linux/mfd/ingenic-tcu.h>
23 #include <dt-bindings/clock/ingenic,tcu.h>
53 struct ingenic_tcu *tcu = ingenic_tcu; in ingenic_tcu_timer_read() local
56 regmap_read(tcu->map, TCU_REG_TCNTc(tcu->cs_channel), &count); in ingenic_tcu_timer_read()
81 struct ingenic_tcu *tcu = to_ingenic_tcu(timer); in ingenic_tcu_cevt_set_state_shutdown() local
83 regmap_write(tcu->map, TCU_REG_TECR, BIT(timer->channel)); in ingenic_tcu_cevt_set_state_shutdown()
92 struct ingenic_tcu *tcu = to_ingenic_tcu(timer); in ingenic_tcu_cevt_set_next() local
97 regmap_write(tcu->map, TCU_REG_TDFRc(timer->channel), next); in ingenic_tcu_cevt_set_next()
98 regmap_write(tcu in ingenic_tcu_cevt_set_next()
114 struct ingenic_tcu *tcu = to_ingenic_tcu(timer); ingenic_tcu_cevt_cb() local
142 struct ingenic_tcu *tcu = ingenic_tcu; ingenic_tcu_setup_cevt() local
203 ingenic_tcu_clocksource_init(struct device_node *np, struct ingenic_tcu *tcu) ingenic_tcu_clocksource_init() argument
277 struct ingenic_tcu *tcu; ingenic_tcu_init() local
374 struct ingenic_tcu *tcu = dev_get_drvdata(dev); ingenic_tcu_suspend() local
387 struct ingenic_tcu *tcu = dev_get_drvdata(dev); ingenic_tcu_resume() local
[all...]
H A Dingenic-ost.c11 #include <linux/mfd/ingenic-tcu.h>
25 * The TCU_REG_OST_CNT{L,R} from <linux/mfd/ingenic-tcu.h> are only for the
/kernel/linux/linux-5.10/drivers/irqchip/
H A Dirq-ingenic-tcu.c11 #include <linux/mfd/ingenic-tcu.h>
91 struct ingenic_tcu *tcu; in ingenic_tcu_irq_init() local
100 tcu = kzalloc(sizeof(*tcu), GFP_KERNEL); in ingenic_tcu_irq_init()
101 if (!tcu) in ingenic_tcu_irq_init()
104 tcu->map = map; in ingenic_tcu_irq_init()
107 if (irqs < 0 || irqs > ARRAY_SIZE(tcu->parent_irqs)) { in ingenic_tcu_irq_init()
113 tcu->nb_parent_irqs = irqs; in ingenic_tcu_irq_init()
115 tcu->domain = irq_domain_add_linear(np, 32, &irq_generic_chip_ops, in ingenic_tcu_irq_init()
117 if (!tcu in ingenic_tcu_irq_init()
[all...]
/kernel/linux/linux-6.6/drivers/irqchip/
H A Dirq-ingenic-tcu.c11 #include <linux/mfd/ingenic-tcu.h>
93 struct ingenic_tcu *tcu; in ingenic_tcu_irq_init() local
102 tcu = kzalloc(sizeof(*tcu), GFP_KERNEL); in ingenic_tcu_irq_init()
103 if (!tcu) in ingenic_tcu_irq_init()
106 tcu->map = map; in ingenic_tcu_irq_init()
109 if (irqs < 0 || irqs > ARRAY_SIZE(tcu->parent_irqs)) { in ingenic_tcu_irq_init()
115 tcu->nb_parent_irqs = irqs; in ingenic_tcu_irq_init()
117 tcu->domain = irq_domain_add_linear(np, 32, &irq_generic_chip_ops, in ingenic_tcu_irq_init()
119 if (!tcu in ingenic_tcu_irq_init()
[all...]
/kernel/linux/linux-5.10/drivers/hid/
H A Dhid-roccat-kone.c457 return snprintf(buf, PAGE_SIZE, "%d\n", kone->settings.tcu); in kone_sysfs_show_tcu()
469 * Calibrating the tcu is the only action that changes settings data inside the
500 ssleep(5); /* tcu needs this time for calibration */ in kone_sysfs_set_tcu()
525 if (kone->settings.tcu != state) { in kone_sysfs_set_tcu()
526 kone->settings.tcu = state; in kone_sysfs_set_tcu()
531 dev_err(&usb_dev->dev, "couldn't set tcu state\n"); in kone_sysfs_set_tcu()
552 static DEVICE_ATTR(tcu, 0660, kone_sysfs_show_tcu, kone_sysfs_set_tcu);
630 * 1 = on. Writing 0 deactivates tcu and writing 1 calibrates and
631 * activates the tcu
H A Dhid-roccat-kone.h139 uint8_t tcu; /* 0 = off, 1 = on */ member
H A Dhid-roccat-konepure.c47 ROCCAT_COMMON2_BIN_ATTRIBUTE_RW(tcu, 0x0c, 0x04);
H A Dhid-roccat-koneplus.c183 KONEPLUS_BIN_ATTRIBUTE_RW(tcu, TCU);
/kernel/linux/linux-6.6/drivers/hid/
H A Dhid-roccat-kone.c454 return snprintf(buf, PAGE_SIZE, "%d\n", kone->settings.tcu); in kone_sysfs_show_tcu()
466 * Calibrating the tcu is the only action that changes settings data inside the
497 ssleep(5); /* tcu needs this time for calibration */ in kone_sysfs_set_tcu()
522 if (kone->settings.tcu != state) { in kone_sysfs_set_tcu()
523 kone->settings.tcu = state; in kone_sysfs_set_tcu()
528 dev_err(&usb_dev->dev, "couldn't set tcu state\n"); in kone_sysfs_set_tcu()
549 static DEVICE_ATTR(tcu, 0660, kone_sysfs_show_tcu, kone_sysfs_set_tcu);
627 * 1 = on. Writing 0 deactivates tcu and writing 1 calibrates and
628 * activates the tcu
H A Dhid-roccat-kone.h139 uint8_t tcu; /* 0 = off, 1 = on */ member
H A Dhid-roccat-konepure.c45 ROCCAT_COMMON2_BIN_ATTRIBUTE_RW(tcu, 0x0c, 0x04);
H A Dhid-roccat-koneplus.c181 KONEPLUS_BIN_ATTRIBUTE_RW(tcu, TCU);
/kernel/linux/linux-5.10/drivers/watchdog/
H A Djz4740_wdt.c7 #include <linux/mfd/ingenic-tcu.h>
/kernel/linux/linux-6.6/drivers/watchdog/
H A Djz4740_wdt.c7 #include <linux/mfd/ingenic-tcu.h>
/kernel/linux/linux-5.10/drivers/pwm/
H A Dpwm-jz4740.c15 #include <linux/mfd/ingenic-tcu.h>
/kernel/linux/linux-6.6/drivers/pwm/
H A Dpwm-jz4740.c15 #include <linux/mfd/ingenic-tcu.h>

Completed in 16 milliseconds