/Linux-v4.19/drivers/usb/host/ |
D | xhci-tegra.c | 210 static inline u32 fpci_readl(struct tegra_xusb *tegra, unsigned int offset) in fpci_readl() argument 212 return readl(tegra->fpci_base + offset); in fpci_readl() 215 static inline void fpci_writel(struct tegra_xusb *tegra, u32 value, in fpci_writel() argument 218 writel(value, tegra->fpci_base + offset); in fpci_writel() 221 static inline u32 ipfs_readl(struct tegra_xusb *tegra, unsigned int offset) in ipfs_readl() argument 223 return readl(tegra->ipfs_base + offset); in ipfs_readl() 226 static inline void ipfs_writel(struct tegra_xusb *tegra, u32 value, in ipfs_writel() argument 229 writel(value, tegra->ipfs_base + offset); in ipfs_writel() 232 static u32 csb_readl(struct tegra_xusb *tegra, unsigned int offset) in csb_readl() argument 237 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-v4.19/drivers/ata/ |
D | ahci_tegra.c | 188 struct tegra_ahci_priv *tegra = hpriv->plat_data; in tegra_ahci_handle_quirks() local 191 if (tegra->sata_aux_regs && !tegra->soc->supports_devslp) { in tegra_ahci_handle_quirks() 192 val = readl(tegra->sata_aux_regs + SATA_AUX_MISC_CNTL_1_0); in tegra_ahci_handle_quirks() 194 writel(val, tegra->sata_aux_regs + SATA_AUX_MISC_CNTL_1_0); in tegra_ahci_handle_quirks() 200 struct tegra_ahci_priv *tegra = hpriv->plat_data; in tegra124_ahci_init() local 212 writel(BIT(0), tegra->sata_regs + SCFG_OFFSET + T_SATA0_INDEX); 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() 223 val = readl(tegra->sata_regs + in tegra124_ahci_init() 229 writel(val, tegra->sata_regs + SCFG_OFFSET + in tegra124_ahci_init() [all …]
|
/Linux-v4.19/drivers/devfreq/ |
D | tegra-devfreq.c | 192 static u32 actmon_readl(struct tegra_devfreq *tegra, u32 offset) in actmon_readl() argument 194 return readl(tegra->regs + offset); in actmon_readl() 197 static void actmon_writel(struct tegra_devfreq *tegra, u32 val, u32 offset) in actmon_writel() argument 199 writel(val, tegra->regs + offset); in actmon_writel() 218 static void tegra_devfreq_update_avg_wmark(struct tegra_devfreq *tegra, in tegra_devfreq_update_avg_wmark() argument 222 u32 avg_band_freq = tegra->max_freq * ACTMON_DEFAULT_AVG_BAND / KHZ; in tegra_devfreq_update_avg_wmark() 231 static void tegra_devfreq_update_wmark(struct tegra_devfreq *tegra, in tegra_devfreq_update_wmark() argument 234 u32 val = tegra->cur_freq * ACTMON_SAMPLING_PERIOD; in tegra_devfreq_update_wmark() 243 static void actmon_write_barrier(struct tegra_devfreq *tegra) in actmon_write_barrier() argument 247 actmon_readl(tegra, ACTMON_GLB_STATUS); in actmon_write_barrier() [all …]
|
/Linux-v4.19/drivers/clk/tegra/ |
D | clk-emc.c | 97 struct tegra_clk_emc *tegra; in emc_recalc_rate() local 100 tegra = container_of(hw, struct tegra_clk_emc, hw); in emc_recalc_rate() 108 val = readl(tegra->clk_regs + CLK_SOURCE_EMC); in emc_recalc_rate() 121 struct tegra_clk_emc *tegra; in emc_determine_rate() local 126 tegra = container_of(hw, struct tegra_clk_emc, hw); in emc_determine_rate() 128 for (i = 0; i < tegra->num_timings; i++) { in emc_determine_rate() 129 if (tegra->timings[i].ram_code != ram_code) in emc_determine_rate() 132 timing = tegra->timings + i; in emc_determine_rate() 136 req->rate = tegra->timings[i - 1].rate; in emc_determine_rate() 160 struct tegra_clk_emc *tegra; in emc_get_parent() local [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-v4.19/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-v4.19/drivers/thermal/tegra/ |
D | tegra-bpmp-thermal.c | 29 struct tegra_bpmp_thermal *tegra; member 61 err = tegra_bpmp_transfer(zone->tegra->bpmp, &msg); in tegra_bpmp_thermal_get_temp() 88 return tegra_bpmp_transfer(zone->tegra->bpmp, &msg); in tegra_bpmp_thermal_set_trips() 105 struct tegra_bpmp_thermal *tegra = data; in bpmp_mrq_thermal() local 111 dev_err(tegra->dev, "%s: invalid request type: %d\n", in bpmp_mrq_thermal() 117 for (i = 0; i < tegra->num_zones; ++i) { in bpmp_mrq_thermal() 118 if (tegra->zones[i]->idx != req->host_trip_reached.zone) in bpmp_mrq_thermal() 121 schedule_work(&tegra->zones[i]->tz_device_update_work); in bpmp_mrq_thermal() 126 dev_err(tegra->dev, "%s: invalid thermal zone: %d\n", __func__, in bpmp_mrq_thermal() 166 struct tegra_bpmp_thermal *tegra; in tegra_bpmp_thermal_probe() local [all …]
|
D | soctherm.c | 268 static void enable_tsensor(struct tegra_soctherm *tegra, unsigned int i) in enable_tsensor() argument 270 const struct tegra_tsensor *sensor = &tegra->soc->tsensors[i]; in enable_tsensor() 271 void __iomem *base = tegra->regs + sensor->base; in enable_tsensor() 283 writel(tegra->calib[i], base + SENSOR_CONFIG2); in enable_tsensor() 820 struct tegra_soctherm *tegra = platform_get_drvdata(pdev); in soctherm_debug_init() local 829 tegra->debugfs_dir = root; in soctherm_debug_init() 835 debugfs_remove_recursive(tegra->debugfs_dir); in soctherm_debug_init() 836 tegra->debugfs_dir = NULL; in soctherm_debug_init() 845 struct tegra_soctherm *tegra = platform_get_drvdata(pdev); in soctherm_clk_enable() local 848 if (!tegra->clock_soctherm || !tegra->clock_tsensor) in soctherm_clk_enable() [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
|
/Linux-v4.19/drivers/gpu/drm/tegra/ |
D | drm.c | 60 struct tegra_drm *tegra = drm->dev_private; in tegra_atomic_commit_tail() local 62 if (tegra->hub) { in tegra_atomic_commit_tail() 83 struct tegra_drm *tegra; in tegra_drm_load() local 86 tegra = kzalloc(sizeof(*tegra), GFP_KERNEL); in tegra_drm_load() 87 if (!tegra) in tegra_drm_load() 95 tegra->domain = iommu_domain_alloc(&platform_bus_type); in tegra_drm_load() 96 if (!tegra->domain) { in tegra_drm_load() 105 geometry = &tegra->domain->geometry; in tegra_drm_load() 111 order = __ffs(tegra->domain->pgsize_bitmap); in tegra_drm_load() 112 init_iova_domain(&tegra->carveout.domain, 1UL << order, in tegra_drm_load() [all …]
|
D | plane.c | 104 struct tegra_dc_state *tegra; in tegra_plane_state_add() local 118 tegra = to_dc_state(crtc_state); in tegra_plane_state_add() 120 tegra->planes |= WIN_A_ACT_REQ << plane->index; in tegra_plane_state_add() 311 static int tegra_plane_setup_opacity(struct tegra_plane *tegra, in tegra_plane_setup_opacity() argument 338 static int tegra_plane_check_transparency(struct tegra_plane *tegra, in tegra_plane_check_transparency() argument 344 old = drm_atomic_get_old_plane_state(state->base.state, &tegra->base); in tegra_plane_check_transparency() 352 drm_for_each_plane(plane, tegra->base.dev) { in tegra_plane_check_transparency() 356 if (p == tegra || p->dc != tegra->dc) in tegra_plane_check_transparency() 388 static void tegra_plane_update_transparency(struct tegra_plane *tegra, in tegra_plane_update_transparency() argument 400 if (p == tegra || p->dc != tegra->dc) in tegra_plane_update_transparency() [all …]
|
D | fb.c | 210 struct tegra_drm *tegra = helper->dev->dev_private; in tegra_fbdev_probe() local 226 tegra->pitch_align); in tegra_fbdev_probe() 373 struct tegra_drm *tegra = drm->dev_private; in tegra_drm_fb_prepare() local 375 tegra->fbdev = tegra_fbdev_create(drm); in tegra_drm_fb_prepare() 376 if (IS_ERR(tegra->fbdev)) in tegra_drm_fb_prepare() 377 return PTR_ERR(tegra->fbdev); in tegra_drm_fb_prepare() 386 struct tegra_drm *tegra = drm->dev_private; in tegra_drm_fb_free() local 388 tegra_fbdev_free(tegra->fbdev); in tegra_drm_fb_free() 395 struct tegra_drm *tegra = drm->dev_private; in tegra_drm_fb_init() local 398 err = tegra_fbdev_init(tegra->fbdev, 32, drm->mode_config.num_crtc, in tegra_drm_fb_init() [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 | vic.c | 121 struct tegra_drm *tegra = falcon->data; in vic_falcon_alloc() local 123 return tegra_drm_alloc(tegra, size, iova); in vic_falcon_alloc() 129 struct tegra_drm *tegra = falcon->data; in vic_falcon_free() local 131 return tegra_drm_free(tegra, size, va, iova); in vic_falcon_free() 144 struct tegra_drm *tegra = dev->dev_private; in vic_init() local 148 if (group && tegra->domain) { in vic_init() 149 err = iommu_attach_group(tegra->domain, group); in vic_init() 156 vic->domain = tegra->domain; in vic_init() 160 vic->falcon.data = tegra; in vic_init() 178 err = tegra_drm_register_client(tegra, drm); in vic_init() [all …]
|
D | drm.h | 104 int tegra_drm_register_client(struct tegra_drm *tegra, 106 int tegra_drm_unregister_client(struct tegra_drm *tegra, 113 int tegra_drm_init(struct tegra_drm *tegra, struct drm_device *drm); 114 int tegra_drm_exit(struct tegra_drm *tegra); 116 void *tegra_drm_alloc(struct tegra_drm *tegra, size_t size, dma_addr_t *iova); 117 void tegra_drm_free(struct tegra_drm *tegra, size_t size, void *virt,
|
D | Makefile | 4 tegra-drm-y := \ 23 tegra-drm-y += trace.o 25 obj-$(CONFIG_DRM_TEGRA) += tegra-drm.o
|
D | hub.c | 332 struct tegra_shared_plane *tegra = to_tegra_shared_plane(plane); in tegra_shared_plane_atomic_check() local 371 err = tegra_plane_state_add(&tegra->base, state); in tegra_shared_plane_atomic_check() 535 struct tegra_drm *tegra = drm->dev_private; in tegra_shared_plane_create() local 536 struct tegra_display_hub *hub = tegra->hub; in tegra_shared_plane_create() 623 struct tegra_drm *tegra = drm->dev_private; in tegra_display_hub_atomic_check() local 629 if (!tegra->hub) in tegra_display_hub_atomic_check() 632 hub_state = tegra_display_hub_get_state(tegra->hub, state); in tegra_display_hub_atomic_check() 684 struct tegra_drm *tegra = drm->dev_private; in tegra_display_hub_atomic_commit() local 685 struct tegra_display_hub *hub = tegra->hub; in tegra_display_hub_atomic_commit() 712 struct tegra_drm *tegra = drm->dev_private; in tegra_display_hub_init() local [all …]
|
/Linux-v4.19/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-v4.19/drivers/phy/tegra/ |
D | Makefile | 1 obj-$(CONFIG_PHY_TEGRA_XUSB) += phy-tegra-xusb.o 3 phy-tegra-xusb-y += xusb.o 4 phy-tegra-xusb-$(CONFIG_ARCH_TEGRA_124_SOC) += xusb-tegra124.o 5 phy-tegra-xusb-$(CONFIG_ARCH_TEGRA_132_SOC) += xusb-tegra124.o 6 phy-tegra-xusb-$(CONFIG_ARCH_TEGRA_210_SOC) += xusb-tegra210.o
|
/Linux-v4.19/drivers/firmware/tegra/ |
D | Makefile | 1 tegra-bpmp-y = bpmp.o 2 tegra-bpmp-$(CONFIG_DEBUG_FS) += bpmp-debugfs.o 3 obj-$(CONFIG_TEGRA_BPMP) += tegra-bpmp.o
|
/Linux-v4.19/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-v4.19/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…
|
/Linux-v4.19/drivers/pinctrl/tegra/ |
D | Makefile | 2 obj-$(CONFIG_PINCTRL_TEGRA) += pinctrl-tegra.o 8 obj-$(CONFIG_PINCTRL_TEGRA_XUSB) += pinctrl-tegra-xusb.o
|