Home
last modified time | relevance | path

Searched refs:tcu (Results 1 – 11 of 11) sorted by relevance

/drivers/tty/serial/
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, s, count); in tegra_tcu_console_write()
[all …]
DMakefile76 obj-$(CONFIG_SERIAL_TEGRA_TCU) += tegra-tcu.o
/drivers/clocksource/
Dingenic-timer.c54 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->map, TCU_REG_TCNTc(timer->channel), 0); in ingenic_tcu_cevt_set_next()
100 regmap_write(tcu->map, TCU_REG_TESR, BIT(timer->channel)); in ingenic_tcu_cevt_set_next()
115 struct ingenic_tcu *tcu = to_ingenic_tcu(timer); in ingenic_tcu_cevt_cb() local
118 regmap_write(tcu->map, TCU_REG_TECR, BIT(timer->channel)); in ingenic_tcu_cevt_cb()
[all …]
/drivers/clk/ingenic/
Dtcu.c45 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->map, TCU_REG_TSSR, BIT(info->gate_bit)); in ingenic_tcu_disable()
90 regmap_read(tcu_clk->tcu->map, TCU_REG_TSR, &value); in ingenic_tcu_is_enabled()
99 struct ingenic_tcu *tcu = tcu_clk->tcu; in ingenic_tcu_enable_regs() local
107 regmap_write(tcu->map, TCU_REG_TSCR, BIT(info->gate_bit)); in ingenic_tcu_enable_regs()
116 struct ingenic_tcu *tcu = tcu_clk->tcu; in ingenic_tcu_disable_regs() local
118 regmap_write(tcu->map, TCU_REG_TSSR, BIT(info->gate_bit)); in ingenic_tcu_disable_regs()
[all …]
DMakefile9 obj-$(CONFIG_INGENIC_TCU_CLK) += tcu.o
/drivers/irqchip/
Dirq-ingenic-tcu.c91 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->domain) { in ingenic_tcu_irq_init()
122 ret = irq_alloc_domain_generic_chips(tcu->domain, 32, 1, "TCU", in ingenic_tcu_irq_init()
130 gc = irq_get_domain_generic_chip(tcu->domain, 0); in ingenic_tcu_irq_init()
[all …]
DMakefile78 obj-$(CONFIG_INGENIC_TCU_IRQ) += irq-ingenic-tcu.o
/drivers/hid/
Dhid-roccat-kone.c457 return snprintf(buf, PAGE_SIZE, "%d\n", kone->settings.tcu); in kone_sysfs_show_tcu()
525 if (kone->settings.tcu != state) { in kone_sysfs_set_tcu()
526 kone->settings.tcu = state; in kone_sysfs_set_tcu()
552 static DEVICE_ATTR(tcu, 0660, kone_sysfs_show_tcu, kone_sysfs_set_tcu);
Dhid-roccat-kone.h139 uint8_t tcu; /* 0 = off, 1 = on */ member
Dhid-roccat-konepure.c47 ROCCAT_COMMON2_BIN_ATTRIBUTE_RW(tcu, 0x0c, 0x04);
Dhid-roccat-koneplus.c183 KONEPLUS_BIN_ATTRIBUTE_RW(tcu, TCU);