Home
last modified time | relevance | path

Searched refs:tmu (Results 1 - 25 of 26) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/clocksource/
H A Dsh_tmu.c39 struct sh_tmu_device *tmu; member
89 switch (ch->tmu->model) { in sh_tmu_read()
91 return ioread8(ch->tmu->mapbase + 2); in sh_tmu_read()
93 return ioread8(ch->tmu->mapbase + 4); in sh_tmu_read()
111 switch (ch->tmu->model) { in sh_tmu_write()
113 return iowrite8(value, ch->tmu->mapbase + 2); in sh_tmu_write()
115 return iowrite8(value, ch->tmu->mapbase + 4); in sh_tmu_write()
132 raw_spin_lock_irqsave(&ch->tmu->lock, flags); in sh_tmu_start_stop_ch()
141 raw_spin_unlock_irqrestore(&ch->tmu->lock, flags); in sh_tmu_start_stop_ch()
149 ret = clk_enable(ch->tmu in __sh_tmu_enable()
452 sh_tmu_channel_setup(struct sh_tmu_channel *ch, unsigned int index, bool clockevent, bool clocksource, struct sh_tmu_device *tmu) sh_tmu_channel_setup() argument
479 sh_tmu_map_memory(struct sh_tmu_device *tmu) sh_tmu_map_memory() argument
496 sh_tmu_parse_dt(struct sh_tmu_device *tmu) sh_tmu_parse_dt() argument
514 sh_tmu_setup(struct sh_tmu_device *tmu, struct platform_device *pdev) sh_tmu_setup() argument
599 struct sh_tmu_device *tmu = platform_get_drvdata(pdev); sh_tmu_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/clocksource/
H A Dsh_tmu.c39 struct sh_tmu_device *tmu; member
89 switch (ch->tmu->model) { in sh_tmu_read()
91 return ioread8(ch->tmu->mapbase + 2); in sh_tmu_read()
93 return ioread8(ch->tmu->mapbase + 4); in sh_tmu_read()
111 switch (ch->tmu->model) { in sh_tmu_write()
113 return iowrite8(value, ch->tmu->mapbase + 2); in sh_tmu_write()
115 return iowrite8(value, ch->tmu->mapbase + 4); in sh_tmu_write()
132 raw_spin_lock_irqsave(&ch->tmu->lock, flags); in sh_tmu_start_stop_ch()
141 raw_spin_unlock_irqrestore(&ch->tmu->lock, flags); in sh_tmu_start_stop_ch()
149 ret = clk_enable(ch->tmu in __sh_tmu_enable()
452 sh_tmu_channel_setup(struct sh_tmu_channel *ch, unsigned int index, bool clockevent, bool clocksource, struct sh_tmu_device *tmu) sh_tmu_channel_setup() argument
479 sh_tmu_map_memory(struct sh_tmu_device *tmu) sh_tmu_map_memory() argument
496 sh_tmu_parse_dt(struct sh_tmu_device *tmu) sh_tmu_parse_dt() argument
514 sh_tmu_setup(struct sh_tmu_device *tmu, struct platform_device *pdev) sh_tmu_setup() argument
599 struct sh_tmu_device *tmu = platform_get_drvdata(pdev); sh_tmu_probe() local
[all...]
/kernel/linux/linux-5.10/drivers/thermal/
H A Dimx8mm_thermal.c64 struct imx8mm_tmu *tmu = sensor->priv; in imx8mm_tmu_get_temp() local
67 val = readl_relaxed(tmu->base + TRITSR) & TRITSR_TEMP0_VAL_MASK; in imx8mm_tmu_get_temp()
84 struct imx8mm_tmu *tmu = sensor->priv; in imx8mp_tmu_get_temp() local
88 val = readl_relaxed(tmu->base + TRITSR); in imx8mp_tmu_get_temp()
108 struct imx8mm_tmu *tmu = sensor->priv; in tmu_get_temp() local
110 return tmu->socdata->get_temp(data, temp); in tmu_get_temp()
117 static void imx8mm_tmu_enable(struct imx8mm_tmu *tmu, bool enable) in imx8mm_tmu_enable() argument
121 val = readl_relaxed(tmu->base + TER); in imx8mm_tmu_enable()
123 if (tmu->socdata->version == TMU_VER2) in imx8mm_tmu_enable()
125 writel_relaxed(val, tmu in imx8mm_tmu_enable()
128 imx8mm_tmu_probe_sel_all(struct imx8mm_tmu *tmu) imx8mm_tmu_probe_sel_all() argument
140 struct imx8mm_tmu *tmu; imx8mm_tmu_probe() local
200 struct imx8mm_tmu *tmu = platform_get_drvdata(pdev); imx8mm_tmu_remove() local
[all...]
/kernel/linux/linux-6.6/drivers/thermal/
H A Dimx8mm_thermal.c100 struct imx8mm_tmu *tmu = sensor->priv; in imx8mm_tmu_get_temp() local
103 val = readl_relaxed(tmu->base + TRITSR) & TRITSR_TEMP0_VAL_MASK; in imx8mm_tmu_get_temp()
120 struct imx8mm_tmu *tmu = sensor->priv; in imx8mp_tmu_get_temp() local
124 val = readl_relaxed(tmu->base + TRITSR); in imx8mp_tmu_get_temp()
144 struct imx8mm_tmu *tmu = sensor->priv; in tmu_get_temp() local
146 return tmu->socdata->get_temp(sensor, temp); in tmu_get_temp()
153 static void imx8mm_tmu_enable(struct imx8mm_tmu *tmu, bool enable) in imx8mm_tmu_enable() argument
157 val = readl_relaxed(tmu->base + TER); in imx8mm_tmu_enable()
159 if (tmu->socdata->version == TMU_VER2) in imx8mm_tmu_enable()
161 writel_relaxed(val, tmu in imx8mm_tmu_enable()
164 imx8mm_tmu_probe_sel_all(struct imx8mm_tmu *tmu) imx8mm_tmu_probe_sel_all() argument
173 imx8mm_tmu_probe_set_calib_v1(struct platform_device *pdev, struct imx8mm_tmu *tmu) imx8mm_tmu_probe_set_calib_v1() argument
198 imx8mm_tmu_probe_set_calib_v2(struct platform_device *pdev, struct imx8mm_tmu *tmu) imx8mm_tmu_probe_set_calib_v2() argument
271 imx8mm_tmu_probe_set_calib(struct platform_device *pdev, struct imx8mm_tmu *tmu) imx8mm_tmu_probe_set_calib() argument
297 struct imx8mm_tmu *tmu; imx8mm_tmu_probe() local
368 struct imx8mm_tmu *tmu = platform_get_drvdata(pdev); imx8mm_tmu_remove() local
[all...]
/kernel/linux/linux-6.6/drivers/thunderbolt/
H A Dtmu.c73 sw->tmu.cap + TMU_RTR_CS_0, 1); in tb_switch_set_tmu_mode_params()
81 sw->tmu.cap + TMU_RTR_CS_0, 1); in tb_switch_set_tmu_mode_params()
86 sw->tmu.cap + TMU_RTR_CS_15, 1); in tb_switch_set_tmu_mode_params()
100 sw->tmu.cap + TMU_RTR_CS_15, 1); in tb_switch_set_tmu_mode_params()
108 sw->tmu.cap + TMU_RTR_CS_18, 1); in tb_switch_set_tmu_mode_params()
116 sw->tmu.cap + TMU_RTR_CS_18, 1); in tb_switch_set_tmu_mode_params()
128 sw->tmu.cap + TMU_RTR_CS_0, 1); in tb_switch_tmu_ucap_is_supported()
141 sw->tmu.cap + TMU_RTR_CS_3, 1); in tb_switch_tmu_rate_read()
155 sw->tmu.cap + TMU_RTR_CS_3, 1); in tb_switch_tmu_rate_write()
163 sw->tmu in tb_switch_tmu_rate_write()
[all...]
H A DMakefile4 thunderbolt-objs += domain.o dma_port.o icm.o property.o xdomain.o lc.o tmu.o usb4.o
H A Dtb.h118 * @tmu: The switch TMU configuration
176 struct tb_switch_tmu tmu; member
985 return sw->tmu.mode_request == mode; in tb_switch_tmu_is_configured()
997 return sw->tmu.mode != TB_SWITCH_TMU_MODE_OFF && in tb_switch_tmu_is_enabled()
998 sw->tmu.mode == sw->tmu.mode_request; in tb_switch_tmu_is_enabled()
/kernel/linux/linux-5.10/drivers/thunderbolt/
H A Dtmu.c18 switch (sw->tmu.rate) { in tb_switch_tmu_mode_name()
26 if (sw->tmu.unidirectional) in tb_switch_tmu_mode_name()
46 sw->tmu.cap + TMU_RTR_CS_0, 1); in tb_switch_tmu_ucap_supported()
59 sw->tmu.cap + TMU_RTR_CS_3, 1); in tb_switch_tmu_rate_read()
73 sw->tmu.cap + TMU_RTR_CS_3, 1); in tb_switch_tmu_rate_write()
81 sw->tmu.cap + TMU_RTR_CS_3, 1); in tb_switch_tmu_rate_write()
106 if (!port->sw->tmu.has_ucap) in tb_port_tmu_set_unidirectional()
137 sw->tmu.cap + TMU_RTR_CS_0, 1); in tb_switch_tmu_set_time_disruption()
147 sw->tmu.cap + TMU_RTR_CS_0, 1); in tb_switch_tmu_set_time_disruption()
168 sw->tmu in tb_switch_tmu_init()
[all...]
H A DMakefile4 thunderbolt-objs += domain.o dma_port.o icm.o property.o xdomain.o lc.o tmu.o usb4.o
H A Dtb.h105 * @tmu: The switch TMU configuration
147 struct tb_switch_tmu tmu; member
836 return sw->tmu.rate == TB_SWITCH_TMU_RATE_HIFI && in tb_switch_tmu_is_enabled()
837 !sw->tmu.unidirectional; in tb_switch_tmu_is_enabled()
/kernel/linux/linux-5.10/drivers/gpu/drm/vc4/
H A Dvc4_validate_shaders.c157 int tmu) in record_texture_sample()
170 &validation_state->tmu_setup[tmu], in record_texture_sample()
177 validation_state->tmu_setup[tmu].p_offset[i] = ~0; in record_texture_sample()
193 int tmu = waddr > QPU_W_TMU0_B; in check_tmu_write() local
195 bool is_direct = submit && validation_state->tmu_write_count[tmu] == 0; in check_tmu_write()
236 validation_state->tmu_setup[tmu].p_offset[1] = in check_tmu_write()
245 validation_state->tmu_setup[tmu].is_direct = true; in check_tmu_write()
255 if (validation_state->tmu_write_count[tmu] >= 4) { in check_tmu_write()
257 tmu); in check_tmu_write()
260 validation_state->tmu_setup[tmu] in check_tmu_write()
155 record_texture_sample(struct vc4_validated_shader_info *validated_shader, struct vc4_shader_validation_state *validation_state, int tmu) record_texture_sample() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/vc4/
H A Dvc4_validate_shaders.c157 int tmu) in record_texture_sample()
170 &validation_state->tmu_setup[tmu], in record_texture_sample()
177 validation_state->tmu_setup[tmu].p_offset[i] = ~0; in record_texture_sample()
193 int tmu = waddr > QPU_W_TMU0_B; in check_tmu_write() local
195 bool is_direct = submit && validation_state->tmu_write_count[tmu] == 0; in check_tmu_write()
236 validation_state->tmu_setup[tmu].p_offset[1] = in check_tmu_write()
245 validation_state->tmu_setup[tmu].is_direct = true; in check_tmu_write()
255 if (validation_state->tmu_write_count[tmu] >= 4) { in check_tmu_write()
257 tmu); in check_tmu_write()
260 validation_state->tmu_setup[tmu] in check_tmu_write()
155 record_texture_sample(struct vc4_validated_shader_info *validated_shader, struct vc4_shader_validation_state *validation_state, int tmu) record_texture_sample() argument
[all...]
/kernel/linux/linux-5.10/drivers/pinctrl/renesas/
H A Dpfc-r8a77970.c2123 SH_PFC_FUNCTION(tmu),
H A Dpfc-r8a77980.c2544 SH_PFC_FUNCTION(tmu),
H A Dpfc-r8a77990.c4508 SH_PFC_FUNCTION(tmu),
H A Dpfc-r8a77951.c5090 SH_PFC_FUNCTION(tmu),
H A Dpfc-r8a77965.c5299 SH_PFC_FUNCTION(tmu),
H A Dpfc-r8a7796.c5046 SH_PFC_FUNCTION(tmu),
H A Dpfc-r8a77950.c4739 SH_PFC_FUNCTION(tmu),
/kernel/linux/linux-6.6/drivers/pinctrl/renesas/
H A Dpfc-r8a77970.c2079 SH_PFC_FUNCTION(tmu),
H A Dpfc-r8a77980.c2500 SH_PFC_FUNCTION(tmu),
H A Dpfc-r8a779a0.c3157 SH_PFC_FUNCTION(tmu),
H A Dpfc-r8a77990.c4588 SH_PFC_FUNCTION(tmu),
H A Dpfc-r8a77951.c5118 SH_PFC_FUNCTION(tmu),
H A Dpfc-r8a77965.c5316 SH_PFC_FUNCTION(tmu),

Completed in 86 milliseconds

12