Home
last modified time | relevance | path

Searched refs:tegra (Results 1 – 25 of 167) sorted by relevance

1234567

/linux-6.12.1/drivers/usb/host/
Dxhci-tegra.c218 u32 (*mbox_reg_readl)(struct tegra_xusb *tegra, unsigned int offset);
219 void (*mbox_reg_writel)(struct tegra_xusb *tegra, u32 value, unsigned int offset);
220 u32 (*csb_reg_readl)(struct tegra_xusb *tegra, unsigned int offset);
221 void (*csb_reg_writel)(struct tegra_xusb *tegra, u32 value, unsigned int offset);
319 static inline u32 fpci_readl(struct tegra_xusb *tegra, unsigned int offset) in fpci_readl() argument
321 return readl(tegra->fpci_base + offset); in fpci_readl()
324 static inline void fpci_writel(struct tegra_xusb *tegra, u32 value, in fpci_writel() argument
327 writel(value, tegra->fpci_base + offset); in fpci_writel()
330 static inline u32 ipfs_readl(struct tegra_xusb *tegra, unsigned int offset) in ipfs_readl() argument
332 return readl(tegra->ipfs_base + offset); in ipfs_readl()
[all …]
/linux-6.12.1/drivers/devfreq/
Dtegra30-devfreq.c218 static u32 actmon_readl(struct tegra_devfreq *tegra, u32 offset) in actmon_readl() argument
220 return readl_relaxed(tegra->regs + offset); in actmon_readl()
223 static void actmon_writel(struct tegra_devfreq *tegra, u32 val, u32 offset) in actmon_writel() argument
225 writel_relaxed(val, tegra->regs + offset); in actmon_writel()
251 static void tegra_devfreq_update_avg_wmark(struct tegra_devfreq *tegra, in tegra_devfreq_update_avg_wmark() argument
254 u32 avg_band_freq = tegra->max_freq * ACTMON_DEFAULT_AVG_BAND / KHZ; in tegra_devfreq_update_avg_wmark()
255 u32 band = avg_band_freq * tegra->devfreq->profile->polling_ms; in tegra_devfreq_update_avg_wmark()
265 static void tegra_devfreq_update_wmark(struct tegra_devfreq *tegra, in tegra_devfreq_update_wmark() argument
268 u32 val = tegra->cur_freq * tegra->devfreq->profile->polling_ms; in tegra_devfreq_update_wmark()
277 static void actmon_isr_device(struct tegra_devfreq *tegra, in actmon_isr_device() argument
[all …]
/linux-6.12.1/drivers/ata/
Dahci_tegra.c184 struct tegra_ahci_priv *tegra = hpriv->plat_data; in tegra_ahci_handle_quirks() local
187 if (tegra->sata_aux_regs && !tegra->soc->supports_devslp) { in tegra_ahci_handle_quirks()
188 val = readl(tegra->sata_aux_regs + SATA_AUX_MISC_CNTL_1_0); in tegra_ahci_handle_quirks()
190 writel(val, tegra->sata_aux_regs + SATA_AUX_MISC_CNTL_1_0); in tegra_ahci_handle_quirks()
196 struct tegra_ahci_priv *tegra = hpriv->plat_data; in tegra124_ahci_init() local
208 writel(BIT(0), tegra->sata_regs + SCFG_OFFSET + T_SATA0_INDEX); in tegra124_ahci_init()
210 val = readl(tegra->sata_regs + in tegra124_ahci_init()
216 writel(val, tegra->sata_regs + SCFG_OFFSET + in tegra124_ahci_init()
219 val = readl(tegra->sata_regs + in tegra124_ahci_init()
225 writel(val, tegra->sata_regs + SCFG_OFFSET + in tegra124_ahci_init()
[all …]
/linux-6.12.1/drivers/clk/tegra/
Dclk-tegra124-emc.c94 struct tegra_clk_emc *tegra; in emc_recalc_rate() local
97 tegra = container_of(hw, struct tegra_clk_emc, hw); in emc_recalc_rate()
105 val = readl(tegra->clk_regs + CLK_SOURCE_EMC); in emc_recalc_rate()
118 struct tegra_clk_emc *tegra; in emc_determine_rate() local
123 tegra = container_of(hw, struct tegra_clk_emc, hw); in emc_determine_rate()
125 for (k = 0; k < tegra->num_timings; k++) { in emc_determine_rate()
126 if (tegra->timings[k].ram_code == ram_code) in emc_determine_rate()
130 for (t = k; t < tegra->num_timings; t++) { in emc_determine_rate()
131 if (tegra->timings[t].ram_code != ram_code) in emc_determine_rate()
136 timing = tegra->timings + i; in emc_determine_rate()
[all …]
DMakefile14 obj-y += clk-tegra-audio.o
15 obj-y += clk-tegra-periph.o
16 obj-y += clk-tegra-fixed.o
17 obj-y += clk-tegra-super-cclk.o
18 obj-y += clk-tegra-super-gen4.o
/linux-6.12.1/drivers/clocksource/
Dtimer-tegra186.c108 static struct tegra186_tmr *tegra186_tmr_create(struct tegra186_timer *tegra, in tegra186_tmr_create() argument
114 tmr = devm_kzalloc(tegra->dev, sizeof(*tmr), GFP_KERNEL); in tegra186_tmr_create()
118 tmr->parent = tegra; in tegra186_tmr_create()
119 tmr->regs = tegra->regs + offset; in tegra186_tmr_create()
143 struct tegra186_timer *tegra = wdt->tmr->parent; in tegra186_wdt_enable() local
148 writel(value, tegra->regs + TKEIE(wdt->tmr->hwirq)); in tegra186_wdt_enable()
245 static struct tegra186_wdt *tegra186_wdt_create(struct tegra186_timer *tegra, in tegra186_wdt_create() argument
253 offset += tegra->soc->num_timers * 0x10000 + index * 0x10000; in tegra186_wdt_create()
255 wdt = devm_kzalloc(tegra->dev, sizeof(*wdt), GFP_KERNEL); in tegra186_wdt_create()
259 wdt->regs = tegra->regs + offset; in tegra186_wdt_create()
[all …]
/linux-6.12.1/drivers/soc/tegra/
Dregulators-tegra20.c44 static int tegra20_core_limit(struct tegra_regulator_coupler *tegra, in tegra20_core_limit() argument
62 if (tegra_pmc_core_domain_state_synced() && !tegra->sys_reboot_mode) { in tegra20_core_limit()
67 if (tegra->core_min_uV > 0) in tegra20_core_limit()
68 return tegra->core_min_uV; in tegra20_core_limit()
85 tegra->core_min_uV = core_max_uV; in tegra20_core_limit()
87 pr_info("core voltage initialized to %duV\n", tegra->core_min_uV); in tegra20_core_limit()
89 return tegra->core_min_uV; in tegra20_core_limit()
135 static int tegra20_core_rtc_update(struct tegra_regulator_coupler *tegra, in tegra20_core_rtc_update() argument
161 core_min_uV = tegra20_core_limit(tegra, core_rdev); in tegra20_core_rtc_update()
175 if (tegra->sys_suspend_mode) in tegra20_core_rtc_update()
[all …]
Dregulators-tegra30.c43 static int tegra30_core_limit(struct tegra_regulator_coupler *tegra, in tegra30_core_limit() argument
61 if (tegra_pmc_core_domain_state_synced() && !tegra->sys_reboot_mode) { in tegra30_core_limit()
66 if (tegra->core_min_uV > 0) in tegra30_core_limit()
67 return tegra->core_min_uV; in tegra30_core_limit()
84 tegra->core_min_uV = core_max_uV; in tegra30_core_limit()
86 pr_info("core voltage initialized to %duV\n", tegra->core_min_uV); in tegra30_core_limit()
88 return tegra->core_min_uV; in tegra30_core_limit()
166 static int tegra30_voltage_update(struct tegra_regulator_coupler *tegra, in tegra30_voltage_update() argument
212 core_min_uV = tegra30_core_limit(tegra, core_rdev); in tegra30_voltage_update()
222 if (tegra->sys_suspend_mode) in tegra30_voltage_update()
[all …]
/linux-6.12.1/drivers/gpu/drm/tegra/
Ddrm.c77 struct tegra_drm *tegra = drm->dev_private; in tegra_atomic_commit_tail() local
79 if (tegra->hub) { in tegra_atomic_commit_tail()
461 struct tegra_drm *tegra = drm->dev_private; in tegra_open_channel() local
473 list_for_each_entry(client, &tegra->clients, list) in tegra_open_channel()
856 struct tegra_drm *tegra = drm->dev_private; in tegra_debugfs_iova() local
859 if (tegra->domain) { in tegra_debugfs_iova()
860 mutex_lock(&tegra->mm_lock); in tegra_debugfs_iova()
861 drm_mm_print(&tegra->mm, &p); in tegra_debugfs_iova()
862 mutex_unlock(&tegra->mm_lock); in tegra_debugfs_iova()
907 int tegra_drm_register_client(struct tegra_drm *tegra, in tegra_drm_register_client() argument
[all …]
Dplane.c301 struct tegra_dc_state *tegra; in tegra_plane_state_add() local
319 tegra = to_dc_state(crtc_state); in tegra_plane_state_add()
321 tegra->planes |= WIN_A_ACT_REQ << plane->index; in tegra_plane_state_add()
590 static int tegra_plane_setup_opacity(struct tegra_plane *tegra, in tegra_plane_setup_opacity() argument
617 static int tegra_plane_check_transparency(struct tegra_plane *tegra, in tegra_plane_check_transparency() argument
623 old = drm_atomic_get_old_plane_state(state->base.state, &tegra->base); in tegra_plane_check_transparency()
631 drm_for_each_plane(plane, tegra->base.dev) { in tegra_plane_check_transparency()
635 if (p == tegra || p->dc != tegra->dc) in tegra_plane_check_transparency()
667 static void tegra_plane_update_transparency(struct tegra_plane *tegra, in tegra_plane_update_transparency() argument
679 if (p == tegra || p->dc != tegra->dc) in tegra_plane_update_transparency()
[all …]
Dgem.c235 static int tegra_bo_iommu_map(struct tegra_drm *tegra, struct tegra_bo *bo) in tegra_bo_iommu_map() argument
247 mutex_lock(&tegra->mm_lock); in tegra_bo_iommu_map()
249 err = drm_mm_insert_node_generic(&tegra->mm, in tegra_bo_iommu_map()
252 dev_err(tegra->drm->dev, "out of I/O virtual memory: %d\n", in tegra_bo_iommu_map()
259 bo->size = iommu_map_sgtable(tegra->domain, bo->iova, bo->sgt, prot); in tegra_bo_iommu_map()
261 dev_err(tegra->drm->dev, "failed to map buffer\n"); in tegra_bo_iommu_map()
266 mutex_unlock(&tegra->mm_lock); in tegra_bo_iommu_map()
273 mutex_unlock(&tegra->mm_lock); in tegra_bo_iommu_map()
278 static int tegra_bo_iommu_unmap(struct tegra_drm *tegra, struct tegra_bo *bo) in tegra_bo_iommu_unmap() argument
283 mutex_lock(&tegra->mm_lock); in tegra_bo_iommu_unmap()
[all …]
DMakefile4 tegra-drm-y := \
30 tegra-drm-y += trace.o
32 tegra-drm-$(CONFIG_DRM_FBDEV_EMULATION) += fbdev.o
34 obj-$(CONFIG_DRM_TEGRA) += tegra-drm.o
Ddrm.h55 static inline struct host1x *tegra_drm_to_host1x(struct tegra_drm *tegra) in tegra_drm_to_host1x() argument
57 return dev_get_drvdata(tegra->drm->dev->parent); in tegra_drm_to_host1x()
116 int tegra_drm_register_client(struct tegra_drm *tegra,
118 int tegra_drm_unregister_client(struct tegra_drm *tegra,
123 void *tegra_drm_alloc(struct tegra_drm *tegra, size_t size, dma_addr_t *iova);
124 void tegra_drm_free(struct tegra_drm *tegra, size_t size, void *virt,
Ddc.c628 struct tegra_plane *tegra = to_tegra_plane(plane); in tegra_plane_atomic_check() local
654 err = tegra_plane_setup_legacy_state(tegra, plane_state); in tegra_plane_atomic_check()
702 err = tegra_plane_state_add(tegra, new_plane_state); in tegra_plane_atomic_check()
871 struct tegra_plane *tegra = to_tegra_plane(plane); in tegra_cursor_atomic_check() local
896 err = tegra_plane_state_add(tegra, new_plane_state); in tegra_cursor_atomic_check()
908 struct tegra_drm *tegra = plane->dev->dev_private; in __tegra_cursor_atomic_update() local
985 value = (src.y1 & tegra->vmask) << 16 | (src.x1 & tegra->hmask); in __tegra_cursor_atomic_update()
988 value = (drm_rect_height(&src) & tegra->vmask) << 16 | in __tegra_cursor_atomic_update()
989 (drm_rect_width(&src) & tegra->hmask); in __tegra_cursor_atomic_update()
997 value = ((y & tegra->vmask) << 16) | (x & tegra->hmask); in __tegra_cursor_atomic_update()
[all …]
/linux-6.12.1/drivers/thermal/tegra/
Dtegra-bpmp-thermal.c20 struct tegra_bpmp_thermal *tegra; member
52 err = tegra_bpmp_transfer(zone->tegra->bpmp, &msg); in __tegra_bpmp_thermal_get_temp()
91 err = tegra_bpmp_transfer(zone->tegra->bpmp, &msg); in tegra_bpmp_thermal_set_trips()
114 struct tegra_bpmp_thermal *tegra = data; in bpmp_mrq_thermal() local
122 dev_err(tegra->dev, "%s: invalid request type: %d\n", __func__, req.type); in bpmp_mrq_thermal()
127 for (i = 0; i < tegra->num_zones; ++i) { in bpmp_mrq_thermal()
128 if (tegra->zones[i]->idx != req.host_trip_reached.zone) in bpmp_mrq_thermal()
131 schedule_work(&tegra->zones[i]->tz_device_update_work); in bpmp_mrq_thermal()
136 dev_err(tegra->dev, "%s: invalid thermal zone: %d\n", __func__, in bpmp_mrq_thermal()
216 struct tegra_bpmp_thermal *tegra; in tegra_bpmp_thermal_probe() local
[all …]
DMakefile2 obj-$(CONFIG_TEGRA_SOCTHERM) += tegra-soctherm.o
3 obj-$(CONFIG_TEGRA_BPMP_THERMAL) += tegra-bpmp-thermal.o
6 tegra-soctherm-y := soctherm.o soctherm-fuse.o
7 tegra-soctherm-$(CONFIG_ARCH_TEGRA_124_SOC) += tegra124-soctherm.o
8 tegra-soctherm-$(CONFIG_ARCH_TEGRA_132_SOC) += tegra132-soctherm.o
9 tegra-soctherm-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210-soctherm.o
Dsoctherm.c385 static void enable_tsensor(struct tegra_soctherm *tegra, unsigned int i) in enable_tsensor() argument
387 const struct tegra_tsensor *sensor = &tegra->soc->tsensors[i]; in enable_tsensor()
388 void __iomem *base = tegra->regs + sensor->base; in enable_tsensor()
400 writel(tegra->calib[i], base + SENSOR_CONFIG2); in enable_tsensor()
1451 struct tegra_soctherm *tegra = platform_get_drvdata(pdev); in soctherm_debug_init() local
1456 tegra->debugfs_dir = root; in soctherm_debug_init()
1466 struct tegra_soctherm *tegra = platform_get_drvdata(pdev); in soctherm_clk_enable() local
1469 if (!tegra->clock_soctherm || !tegra->clock_tsensor) in soctherm_clk_enable()
1472 reset_control_assert(tegra->reset); in soctherm_clk_enable()
1475 err = clk_prepare_enable(tegra->clock_soctherm); in soctherm_clk_enable()
[all …]
/linux-6.12.1/drivers/memory/tegra/
DMakefile2 tegra-mc-y := mc.o
4 tegra-mc-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra20.o
5 tegra-mc-$(CONFIG_ARCH_TEGRA_3x_SOC) += tegra30.o
6 tegra-mc-$(CONFIG_ARCH_TEGRA_114_SOC) += tegra114.o
7 tegra-mc-$(CONFIG_ARCH_TEGRA_124_SOC) += tegra124.o
8 tegra-mc-$(CONFIG_ARCH_TEGRA_132_SOC) += tegra124.o
9 tegra-mc-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210.o
10 tegra-mc-$(CONFIG_ARCH_TEGRA_186_SOC) += tegra186.o
11 tegra-mc-$(CONFIG_ARCH_TEGRA_194_SOC) += tegra186.o tegra194.o
12 tegra-mc-$(CONFIG_ARCH_TEGRA_234_SOC) += tegra186.o tegra234.o
[all …]
/linux-6.12.1/drivers/crypto/tegra/
DMakefile4 tegra-se-objs := tegra-se-key.o tegra-se-main.o
6 tegra-se-y += tegra-se-aes.o
7 tegra-se-y += tegra-se-hash.o
9 obj-$(CONFIG_CRYPTO_DEV_TEGRA) += tegra-se.o
/linux-6.12.1/drivers/phy/tegra/
DMakefile2 obj-$(CONFIG_PHY_TEGRA_XUSB) += phy-tegra-xusb.o
4 phy-tegra-xusb-y += xusb.o
5 phy-tegra-xusb-$(CONFIG_ARCH_TEGRA_124_SOC) += xusb-tegra124.o
6 phy-tegra-xusb-$(CONFIG_ARCH_TEGRA_132_SOC) += xusb-tegra124.o
7 phy-tegra-xusb-$(CONFIG_ARCH_TEGRA_210_SOC) += xusb-tegra210.o
8 phy-tegra-xusb-$(CONFIG_ARCH_TEGRA_186_SOC) += xusb-tegra186.o
9 phy-tegra-xusb-$(CONFIG_ARCH_TEGRA_194_SOC) += xusb-tegra186.o
10 phy-tegra-xusb-$(CONFIG_ARCH_TEGRA_234_SOC) += xusb-tegra186.o
/linux-6.12.1/drivers/firmware/tegra/
DMakefile2 tegra-bpmp-y = bpmp.o
3 tegra-bpmp-$(CONFIG_ARCH_TEGRA_210_SOC) += bpmp-tegra210.o
4 tegra-bpmp-$(CONFIG_ARCH_TEGRA_186_SOC) += bpmp-tegra186.o
5 tegra-bpmp-$(CONFIG_ARCH_TEGRA_194_SOC) += bpmp-tegra186.o
6 tegra-bpmp-$(CONFIG_ARCH_TEGRA_234_SOC) += bpmp-tegra186.o
7 tegra-bpmp-$(CONFIG_DEBUG_FS) += bpmp-debugfs.o
8 obj-$(CONFIG_TEGRA_BPMP) += tegra-bpmp.o
/linux-6.12.1/sound/soc/tegra/
DMakefile3 snd-soc-tegra-pcm-y := tegra_pcm.o
4 snd-soc-tegra-utils-y += tegra_asoc_utils.o
24 obj-$(CONFIG_SND_SOC_TEGRA) += snd-soc-tegra-pcm.o
45 snd-soc-tegra-wm8903-y := tegra_wm8903.o
46 snd-soc-tegra-machine-y := tegra_asoc_machine.o
47 snd-soc-tegra-audio-graph-card-y := tegra_audio_graph_card.o
49 obj-$(CONFIG_SND_SOC_TEGRA_WM8903) += snd-soc-tegra-wm8903.o
50 obj-$(CONFIG_SND_SOC_TEGRA_MACHINE_DRV) += snd-soc-tegra-machine.o
51 obj-$(CONFIG_SND_SOC_TEGRA_AUDIO_GRAPH_CARD) += snd-soc-tegra-audio-graph-card.o
/linux-6.12.1/drivers/staging/media/tegra-video/
DMakefile2 tegra-video-objs := \
8 tegra-video-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra20.o
9 tegra-video-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210.o
10 obj-$(CONFIG_VIDEO_TEGRA) += tegra-video.o
/linux-6.12.1/Documentation/devicetree/bindings/regulator/
Dnvidia,tegra-regulators-coupling.txt24 - nvidia,tegra-core-regulator: Boolean property that designates regulator
26 - nvidia,tegra-rtc-regulator: Boolean property that designates regulator
28 - nvidia,tegra-cpu-regulator: Boolean property that designates regulator
42 nvidia,tegra-core-regulator;
52 nvidia,tegra-rtc-regulator;
62 nvidia,tegra-cpu-regulator;
/linux-6.12.1/drivers/staging/nvec/
DREADME13 [1] e.g. https://nv-tegra.nvidia.com/gitweb/?p=linux-2.6.git;a=tree;f=arch/arm/mach-tegra/nvec;hb=a…

1234567