| /Linux-v5.4/drivers/usb/host/ |
| D | xhci-tegra.c | 217 static inline u32 fpci_readl(struct tegra_xusb *tegra, unsigned int offset) in fpci_readl() argument 219 return readl(tegra->fpci_base + offset); in fpci_readl() 222 static inline void fpci_writel(struct tegra_xusb *tegra, u32 value, in fpci_writel() argument 225 writel(value, tegra->fpci_base + offset); in fpci_writel() 228 static inline u32 ipfs_readl(struct tegra_xusb *tegra, unsigned int offset) in ipfs_readl() argument 230 return readl(tegra->ipfs_base + offset); in ipfs_readl() 233 static inline void ipfs_writel(struct tegra_xusb *tegra, u32 value, in ipfs_writel() argument 236 writel(value, tegra->ipfs_base + offset); in ipfs_writel() 239 static u32 csb_readl(struct tegra_xusb *tegra, unsigned int offset) in csb_readl() argument 244 fpci_writel(tegra, page, XUSB_CFG_ARU_C11_CSBRANGE); in csb_readl() [all …]
|
| D | ehci-tegra.c | 57 struct tegra_ehci_hcd *tegra = in tegra_reset_usb_controller() local 88 err = reset_control_deassert(tegra->rst); in tegra_reset_usb_controller() 92 err = reset_control_assert(tegra->rst); in tegra_reset_usb_controller() 98 err = reset_control_deassert(tegra->rst); in tegra_reset_usb_controller() 180 struct tegra_ehci_hcd *tegra = (struct tegra_ehci_hcd *)ehci->priv; in tegra_ehci_hub_control() local 192 if (tegra->port_resuming && !(temp & PORT_SUSPEND)) { in tegra_ehci_hub_control() 194 tegra->port_resuming = 0; in tegra_ehci_hub_control() 223 if (tegra->needs_double_reset && in tegra_ehci_hub_control() 270 tegra->port_resuming = 1; in tegra_ehci_hub_control() 390 struct tegra_ehci_hcd *tegra; in tegra_ehci_probe() local [all …]
|
| /Linux-v5.4/drivers/devfreq/ |
| D | tegra30-devfreq.c | 181 static u32 actmon_readl(struct tegra_devfreq *tegra, u32 offset) in actmon_readl() argument 183 return readl_relaxed(tegra->regs + offset); in actmon_readl() 186 static void actmon_writel(struct tegra_devfreq *tegra, u32 val, u32 offset) in actmon_writel() argument 188 writel_relaxed(val, tegra->regs + offset); in actmon_writel() 207 static void tegra_devfreq_update_avg_wmark(struct tegra_devfreq *tegra, in tegra_devfreq_update_avg_wmark() argument 211 u32 avg_band_freq = tegra->max_freq * ACTMON_DEFAULT_AVG_BAND / KHZ; in tegra_devfreq_update_avg_wmark() 220 static void tegra_devfreq_update_wmark(struct tegra_devfreq *tegra, in tegra_devfreq_update_wmark() argument 223 u32 val = tegra->cur_freq * ACTMON_SAMPLING_PERIOD; in tegra_devfreq_update_wmark() 232 static void actmon_write_barrier(struct tegra_devfreq *tegra) in actmon_write_barrier() argument 235 readl(tegra->regs + ACTMON_GLB_STATUS); in actmon_write_barrier() [all …]
|
| D | tegra20-devfreq.c | 40 struct tegra_devfreq *tegra = dev_get_drvdata(dev); in tegra_devfreq_target() local 41 struct devfreq *devfreq = tegra->devfreq; in tegra_devfreq_target() 53 err = clk_set_min_rate(tegra->emc_clock, rate); in tegra_devfreq_target() 57 err = clk_set_rate(tegra->emc_clock, 0); in tegra_devfreq_target() 64 clk_set_min_rate(tegra->emc_clock, devfreq->previous_freq); in tegra_devfreq_target() 72 struct tegra_devfreq *tegra = dev_get_drvdata(dev); in tegra_devfreq_get_dev_status() local 84 stat->busy_time = readl_relaxed(tegra->regs + MC_STAT_EMC_COUNT); in tegra_devfreq_get_dev_status() 85 stat->total_time = readl_relaxed(tegra->regs + MC_STAT_EMC_CLOCKS) / 8; in tegra_devfreq_get_dev_status() 86 stat->current_frequency = clk_get_rate(tegra->emc_clock); in tegra_devfreq_get_dev_status() 88 writel_relaxed(EMC_GATHER_CLEAR, tegra->regs + MC_STAT_CONTROL); in tegra_devfreq_get_dev_status() [all …]
|
| /Linux-v5.4/drivers/ata/ |
| D | ahci_tegra.c | 179 struct tegra_ahci_priv *tegra = hpriv->plat_data; in tegra_ahci_handle_quirks() local 182 if (tegra->sata_aux_regs && !tegra->soc->supports_devslp) { in tegra_ahci_handle_quirks() 183 val = readl(tegra->sata_aux_regs + SATA_AUX_MISC_CNTL_1_0); in tegra_ahci_handle_quirks() 185 writel(val, tegra->sata_aux_regs + SATA_AUX_MISC_CNTL_1_0); in tegra_ahci_handle_quirks() 191 struct tegra_ahci_priv *tegra = hpriv->plat_data; in tegra124_ahci_init() local 203 writel(BIT(0), tegra->sata_regs + SCFG_OFFSET + T_SATA0_INDEX); in tegra124_ahci_init() 205 val = readl(tegra->sata_regs + in tegra124_ahci_init() 211 writel(val, tegra->sata_regs + SCFG_OFFSET + in tegra124_ahci_init() 214 val = readl(tegra->sata_regs + in tegra124_ahci_init() 220 writel(val, tegra->sata_regs + SCFG_OFFSET + in tegra124_ahci_init() [all …]
|
| /Linux-v5.4/drivers/clk/tegra/ |
| D | clk-emc.c | 90 struct tegra_clk_emc *tegra; in emc_recalc_rate() local 93 tegra = container_of(hw, struct tegra_clk_emc, hw); in emc_recalc_rate() 101 val = readl(tegra->clk_regs + CLK_SOURCE_EMC); in emc_recalc_rate() 114 struct tegra_clk_emc *tegra; in emc_determine_rate() local 119 tegra = container_of(hw, struct tegra_clk_emc, hw); in emc_determine_rate() 121 for (k = 0; k < tegra->num_timings; k++) { in emc_determine_rate() 122 if (tegra->timings[k].ram_code == ram_code) in emc_determine_rate() 126 for (t = k; t < tegra->num_timings; t++) { in emc_determine_rate() 127 if (tegra->timings[t].ram_code != ram_code) in emc_determine_rate() 132 timing = tegra->timings + i; in emc_determine_rate() [all …]
|
| D | Makefile | 13 obj-y += clk-tegra-audio.o 14 obj-y += clk-tegra-periph.o 15 obj-y += clk-tegra-pmc.o 16 obj-y += clk-tegra-fixed.o 17 obj-y += clk-tegra-super-gen4.o
|
| /Linux-v5.4/sound/soc/tegra/ |
| D | Makefile | 3 snd-soc-tegra-pcm-objs := tegra_pcm.o 4 snd-soc-tegra-utils-objs += tegra_asoc_utils.o 12 obj-$(CONFIG_SND_SOC_TEGRA) += snd-soc-tegra-pcm.o 13 obj-$(CONFIG_SND_SOC_TEGRA) += snd-soc-tegra-utils.o 22 snd-soc-tegra-rt5640-objs := tegra_rt5640.o 23 snd-soc-tegra-rt5677-objs := tegra_rt5677.o 24 snd-soc-tegra-wm8753-objs := tegra_wm8753.o 25 snd-soc-tegra-wm8903-objs := tegra_wm8903.o 26 snd-soc-tegra-wm9712-objs := tegra_wm9712.o 27 snd-soc-tegra-trimslice-objs := trimslice.o [all …]
|
| /Linux-v5.4/drivers/thermal/tegra/ |
| D | tegra-bpmp-thermal.c | 20 struct tegra_bpmp_thermal *tegra; member 52 err = tegra_bpmp_transfer(zone->tegra->bpmp, &msg); in tegra_bpmp_thermal_get_temp() 79 return tegra_bpmp_transfer(zone->tegra->bpmp, &msg); in tegra_bpmp_thermal_set_trips() 96 struct tegra_bpmp_thermal *tegra = data; in bpmp_mrq_thermal() local 102 dev_err(tegra->dev, "%s: invalid request type: %d\n", in bpmp_mrq_thermal() 108 for (i = 0; i < tegra->num_zones; ++i) { in bpmp_mrq_thermal() 109 if (tegra->zones[i]->idx != req->host_trip_reached.zone) in bpmp_mrq_thermal() 112 schedule_work(&tegra->zones[i]->tz_device_update_work); in bpmp_mrq_thermal() 117 dev_err(tegra->dev, "%s: invalid thermal zone: %d\n", __func__, in bpmp_mrq_thermal() 157 struct tegra_bpmp_thermal *tegra; in tegra_bpmp_thermal_probe() local [all …]
|
| D | Makefile | 2 obj-$(CONFIG_TEGRA_SOCTHERM) += tegra-soctherm.o 3 obj-$(CONFIG_TEGRA_BPMP_THERMAL) += tegra-bpmp-thermal.o 5 tegra-soctherm-y := soctherm.o soctherm-fuse.o 6 tegra-soctherm-$(CONFIG_ARCH_TEGRA_124_SOC) += tegra124-soctherm.o 7 tegra-soctherm-$(CONFIG_ARCH_TEGRA_132_SOC) += tegra132-soctherm.o 8 tegra-soctherm-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210-soctherm.o
|
| D | soctherm.c | 385 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() 1487 struct tegra_soctherm *tegra = platform_get_drvdata(pdev); in soctherm_debug_init() local 1492 tegra->debugfs_dir = root; in soctherm_debug_init() 1502 struct tegra_soctherm *tegra = platform_get_drvdata(pdev); in soctherm_clk_enable() local 1505 if (!tegra->clock_soctherm || !tegra->clock_tsensor) in soctherm_clk_enable() 1508 reset_control_assert(tegra->reset); in soctherm_clk_enable() 1511 err = clk_prepare_enable(tegra->clock_soctherm); in soctherm_clk_enable() [all …]
|
| /Linux-v5.4/drivers/gpu/drm/tegra/ |
| D | drm.c | 69 struct tegra_drm *tegra = drm->dev_private; in tegra_atomic_commit_tail() local 71 if (tegra->hub) { in tegra_atomic_commit_tail() 92 struct tegra_drm *tegra; in tegra_drm_load() local 95 tegra = kzalloc(sizeof(*tegra), GFP_KERNEL); in tegra_drm_load() 96 if (!tegra) in tegra_drm_load() 100 tegra->domain = iommu_domain_alloc(&platform_bus_type); in tegra_drm_load() 101 if (!tegra->domain) { in tegra_drm_load() 111 mutex_init(&tegra->clients_lock); in tegra_drm_load() 112 INIT_LIST_HEAD(&tegra->clients); in tegra_drm_load() 114 drm->dev_private = tegra; in tegra_drm_load() [all …]
|
| D | plane.c | 102 struct tegra_dc_state *tegra; in tegra_plane_state_add() local 116 tegra = to_dc_state(crtc_state); in tegra_plane_state_add() 118 tegra->planes |= WIN_A_ACT_REQ << plane->index; in tegra_plane_state_add() 309 static int tegra_plane_setup_opacity(struct tegra_plane *tegra, in tegra_plane_setup_opacity() argument 336 static int tegra_plane_check_transparency(struct tegra_plane *tegra, in tegra_plane_check_transparency() argument 342 old = drm_atomic_get_old_plane_state(state->base.state, &tegra->base); in tegra_plane_check_transparency() 350 drm_for_each_plane(plane, tegra->base.dev) { in tegra_plane_check_transparency() 354 if (p == tegra || p->dc != tegra->dc) in tegra_plane_check_transparency() 386 static void tegra_plane_update_transparency(struct tegra_plane *tegra, in tegra_plane_update_transparency() argument 398 if (p == tegra || p->dc != tegra->dc) in tegra_plane_update_transparency() [all …]
|
| D | gem.c | 114 static int tegra_bo_iommu_map(struct tegra_drm *tegra, struct tegra_bo *bo) in tegra_bo_iommu_map() argument 126 mutex_lock(&tegra->mm_lock); in tegra_bo_iommu_map() 128 err = drm_mm_insert_node_generic(&tegra->mm, in tegra_bo_iommu_map() 131 dev_err(tegra->drm->dev, "out of I/O virtual memory: %d\n", in tegra_bo_iommu_map() 138 bo->size = iommu_map_sg(tegra->domain, bo->paddr, bo->sgt->sgl, in tegra_bo_iommu_map() 141 dev_err(tegra->drm->dev, "failed to map buffer\n"); in tegra_bo_iommu_map() 146 mutex_unlock(&tegra->mm_lock); in tegra_bo_iommu_map() 153 mutex_unlock(&tegra->mm_lock); in tegra_bo_iommu_map() 158 static int tegra_bo_iommu_unmap(struct tegra_drm *tegra, struct tegra_bo *bo) in tegra_bo_iommu_unmap() argument 163 mutex_lock(&tegra->mm_lock); in tegra_bo_iommu_unmap() [all …]
|
| D | fb.c | 208 struct tegra_drm *tegra = helper->dev->dev_private; in tegra_fbdev_probe() local 224 tegra->pitch_align); in tegra_fbdev_probe() 368 struct tegra_drm *tegra = drm->dev_private; in tegra_drm_fb_prepare() local 370 tegra->fbdev = tegra_fbdev_create(drm); in tegra_drm_fb_prepare() 371 if (IS_ERR(tegra->fbdev)) in tegra_drm_fb_prepare() 372 return PTR_ERR(tegra->fbdev); in tegra_drm_fb_prepare() 381 struct tegra_drm *tegra = drm->dev_private; in tegra_drm_fb_free() local 383 tegra_fbdev_free(tegra->fbdev); in tegra_drm_fb_free() 390 struct tegra_drm *tegra = drm->dev_private; in tegra_drm_fb_init() local 393 err = tegra_fbdev_init(tegra->fbdev, 32, drm->mode_config.num_crtc, in tegra_drm_fb_init() [all …]
|
| D | vic.c | 163 struct tegra_drm *tegra = falcon->data; in vic_falcon_alloc() local 165 return tegra_drm_alloc(tegra, size, iova); in vic_falcon_alloc() 171 struct tegra_drm *tegra = falcon->data; in vic_falcon_free() local 173 return tegra_drm_free(tegra, size, va, iova); in vic_falcon_free() 186 struct tegra_drm *tegra = dev->dev_private; in vic_init() local 190 if (group && tegra->domain) { in vic_init() 191 err = iommu_attach_group(tegra->domain, group); in vic_init() 198 vic->domain = tegra->domain; in vic_init() 213 err = tegra_drm_register_client(tegra, drm); in vic_init() 224 if (group && tegra->domain) in vic_init() [all …]
|
| D | drm.h | 99 int tegra_drm_register_client(struct tegra_drm *tegra, 101 int tegra_drm_unregister_client(struct tegra_drm *tegra, 108 int tegra_drm_init(struct tegra_drm *tegra, struct drm_device *drm); 109 int tegra_drm_exit(struct tegra_drm *tegra); 111 void *tegra_drm_alloc(struct tegra_drm *tegra, size_t size, dma_addr_t *iova); 112 void tegra_drm_free(struct tegra_drm *tegra, size_t size, void *virt,
|
| D | Makefile | 4 tegra-drm-y := \ 24 tegra-drm-y += trace.o 26 obj-$(CONFIG_DRM_TEGRA) += tegra-drm.o
|
| /Linux-v5.4/drivers/memory/tegra/ |
| D | Makefile | 2 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 11 obj-$(CONFIG_TEGRA_MC) += tegra-mc.o
|
| /Linux-v5.4/drivers/firmware/tegra/ |
| D | Makefile | 2 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_DEBUG_FS) += bpmp-debugfs.o 7 obj-$(CONFIG_TEGRA_BPMP) += tegra-bpmp.o
|
| /Linux-v5.4/drivers/phy/tegra/ |
| D | Makefile | 2 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
|
| /Linux-v5.4/Documentation/devicetree/bindings/sound/ |
| D | nvidia,tegra-audio-wm8753.txt | 4 - compatible : "nvidia,tegra-audio-wm8753" 26 compatible = "nvidia,tegra-audio-wm8753-whistler", 27 "nvidia,tegra-audio-wm8753" 28 nvidia,model = "tegra-wm8753-harmony";
|
| D | nvidia,tegra-audio-wm8903.txt | 4 - compatible : "nvidia,tegra-audio-wm8903" 35 compatible = "nvidia,tegra-audio-wm8903-harmony", 36 "nvidia,tegra-audio-wm8903" 37 nvidia,model = "tegra-wm8903-harmony";
|
| /Linux-v5.4/drivers/staging/media/tegra-vde/ |
| D | Makefile | 2 tegra-vde-y := vde.o iommu.o dmabuf-cache.o 3 obj-$(CONFIG_TEGRA_VDE) += tegra-vde.o
|
| /Linux-v5.4/drivers/staging/nvec/ |
| D | README | 13 [1] e.g. http://nv-tegra.nvidia.com/gitweb/?p=linux-2.6.git;a=tree;f=arch/arm/mach-tegra/nvec;hb=an…
|