Lines Matching refs:das
99 static inline void tegra20_das_write(struct tegra20_das *das, u32 reg, u32 val) in tegra20_das_write() argument
101 regmap_write(das->regmap, reg, val); in tegra20_das_write()
104 static void tegra20_das_connect_dap_to_dac(struct tegra20_das *das, int dap, int dac) in tegra20_das_connect_dap_to_dac() argument
113 tegra20_das_write(das, addr, reg); in tegra20_das_connect_dap_to_dac()
116 static void tegra20_das_connect_dac_to_dap(struct tegra20_das *das, int dac, int dap) in tegra20_das_connect_dac_to_dap() argument
127 tegra20_das_write(das, addr, reg); in tegra20_das_connect_dac_to_dap()
158 struct tegra20_das *das; in tegra20_das_probe() local
160 das = devm_kzalloc(&pdev->dev, sizeof(struct tegra20_das), GFP_KERNEL); in tegra20_das_probe()
161 if (!das) in tegra20_das_probe()
168 das->regmap = devm_regmap_init_mmio(&pdev->dev, regs, in tegra20_das_probe()
170 if (IS_ERR(das->regmap)) { in tegra20_das_probe()
172 return PTR_ERR(das->regmap); in tegra20_das_probe()
175 tegra20_das_connect_dap_to_dac(das, TEGRA20_DAS_DAP_ID_1, in tegra20_das_probe()
177 tegra20_das_connect_dac_to_dap(das, TEGRA20_DAS_DAC_ID_1, in tegra20_das_probe()
179 tegra20_das_connect_dap_to_dac(das, TEGRA20_DAS_DAP_ID_3, in tegra20_das_probe()
181 tegra20_das_connect_dac_to_dap(das, TEGRA20_DAS_DAC_ID_3, in tegra20_das_probe()