/drivers/firmware/tegra/ |
D | bpmp.c | 37 struct tegra_bpmp *bpmp = channel->bpmp; in channel_to_ops() local 39 return bpmp->soc->ops; in channel_to_ops() 45 struct tegra_bpmp *bpmp; in tegra_bpmp_get() local 54 bpmp = ERR_PTR(-ENODEV); in tegra_bpmp_get() 58 bpmp = platform_get_drvdata(pdev); in tegra_bpmp_get() 59 if (!bpmp) { in tegra_bpmp_get() 60 bpmp = ERR_PTR(-EPROBE_DEFER); in tegra_bpmp_get() 67 return bpmp; in tegra_bpmp_get() 71 void tegra_bpmp_put(struct tegra_bpmp *bpmp) in tegra_bpmp_put() argument 73 if (bpmp) in tegra_bpmp_put() [all …]
|
D | bpmp-tegra186.c | 81 static int tegra186_bpmp_ring_doorbell(struct tegra_bpmp *bpmp) in tegra186_bpmp_ring_doorbell() argument 83 struct tegra186_bpmp *priv = bpmp->priv; in tegra186_bpmp_ring_doorbell() 97 struct tegra_bpmp *bpmp = data; in tegra186_bpmp_ivc_notify() local 98 struct tegra186_bpmp *priv = bpmp->priv; in tegra186_bpmp_ivc_notify() 103 tegra186_bpmp_ring_doorbell(bpmp); in tegra186_bpmp_ivc_notify() 107 struct tegra_bpmp *bpmp, in tegra186_bpmp_channel_init() argument 110 struct tegra186_bpmp *priv = bpmp->priv; in tegra186_bpmp_channel_init() 115 channel->ivc = devm_kzalloc(bpmp->dev, sizeof(*channel->ivc), in tegra186_bpmp_channel_init() 128 bpmp); in tegra186_bpmp_channel_init() 130 dev_err(bpmp->dev, "failed to setup IVC for channel %u: %d\n", in tegra186_bpmp_channel_init() [all …]
|
D | bpmp-tegra210.c | 37 static u32 bpmp_channel_status(struct tegra_bpmp *bpmp, unsigned int index) in bpmp_channel_status() argument 39 struct tegra210_bpmp *priv = bpmp->priv; in bpmp_channel_status() 48 return bpmp_channel_status(channel->bpmp, index) == MA_ACKD(index); in tegra210_bpmp_is_response_ready() 55 return bpmp_channel_status(channel->bpmp, index) == SL_SIGL(index); in tegra210_bpmp_is_request_ready() 63 return bpmp_channel_status(channel->bpmp, index) == MA_FREE(index); in tegra210_bpmp_is_request_channel_free() 71 return bpmp_channel_status(channel->bpmp, index) == SL_QUED(index); in tegra210_bpmp_is_response_channel_free() 76 struct tegra210_bpmp *priv = channel->bpmp->priv; in tegra210_bpmp_post_request() 85 struct tegra210_bpmp *priv = channel->bpmp->priv; in tegra210_bpmp_post_response() 94 struct tegra210_bpmp *priv = channel->bpmp->priv; in tegra210_bpmp_ack_response() 104 struct tegra210_bpmp *priv = channel->bpmp->priv; in tegra210_bpmp_ack_request() [all …]
|
D | bpmp-debugfs.c | 74 static const char *get_filename(struct tegra_bpmp *bpmp, in get_filename() argument 86 root_path = dentry_path(bpmp->debugfs_mirror, root_path_buf, in get_filename() 111 static int mrq_debug_open(struct tegra_bpmp *bpmp, const char *name, in mrq_debug_open() argument 138 err = tegra_bpmp_transfer(bpmp, &msg); in mrq_debug_open() 150 static int mrq_debug_close(struct tegra_bpmp *bpmp, uint32_t fd) in mrq_debug_close() argument 172 err = tegra_bpmp_transfer(bpmp, &msg); in mrq_debug_close() 181 static int mrq_debug_read(struct tegra_bpmp *bpmp, const char *name, in mrq_debug_read() argument 203 err = mrq_debug_open(bpmp, name, &fd, &len, 0); in mrq_debug_read() 216 err = tegra_bpmp_transfer(bpmp, &msg); in mrq_debug_read() 238 err = mrq_debug_close(bpmp, fd); in mrq_debug_read() [all …]
|
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_ARCH_TEGRA_234_SOC) += bpmp-tegra186.o 7 tegra-bpmp-$(CONFIG_DEBUG_FS) += bpmp-debugfs.o 8 obj-$(CONFIG_TEGRA_BPMP) += tegra-bpmp.o
|
D | bpmp-private.h | 12 int (*init)(struct tegra_bpmp *bpmp); 13 void (*deinit)(struct tegra_bpmp *bpmp); 22 int (*ring_doorbell)(struct tegra_bpmp *bpmp); 23 int (*resume)(struct tegra_bpmp *bpmp);
|
/drivers/soc/tegra/ |
D | powergate-bpmp.c | 21 struct tegra_bpmp *bpmp; member 31 static int tegra_bpmp_powergate_set_state(struct tegra_bpmp *bpmp, in tegra_bpmp_powergate_set_state() argument 48 err = tegra_bpmp_transfer(bpmp, &msg); in tegra_bpmp_powergate_set_state() 57 static int tegra_bpmp_powergate_get_state(struct tegra_bpmp *bpmp, in tegra_bpmp_powergate_get_state() argument 78 err = tegra_bpmp_transfer(bpmp, &msg); in tegra_bpmp_powergate_get_state() 87 static int tegra_bpmp_powergate_get_max_id(struct tegra_bpmp *bpmp) in tegra_bpmp_powergate_get_max_id() argument 106 err = tegra_bpmp_transfer(bpmp, &msg); in tegra_bpmp_powergate_get_max_id() 115 static char *tegra_bpmp_powergate_get_name(struct tegra_bpmp *bpmp, in tegra_bpmp_powergate_get_name() argument 136 err = tegra_bpmp_transfer(bpmp, &msg); in tegra_bpmp_powergate_get_name() 143 static inline bool tegra_bpmp_powergate_is_powered(struct tegra_bpmp *bpmp, in tegra_bpmp_powergate_is_powered() argument [all …]
|
D | Makefile | 8 obj-$(CONFIG_SOC_TEGRA_POWERGATE_BPMP) += powergate-bpmp.o
|
/drivers/clk/tegra/ |
D | clk-bpmp.c | 31 struct tegra_bpmp *bpmp; member 59 static int tegra_bpmp_clk_transfer(struct tegra_bpmp *bpmp, in tegra_bpmp_clk_transfer() argument 86 err = tegra_bpmp_transfer(bpmp, &msg); in tegra_bpmp_clk_transfer() 104 return tegra_bpmp_clk_transfer(clk->bpmp, &msg); in tegra_bpmp_clk_prepare() 117 err = tegra_bpmp_clk_transfer(clk->bpmp, &msg); in tegra_bpmp_clk_unprepare() 119 dev_err(clk->bpmp->dev, "failed to disable clock %s: %d\n", in tegra_bpmp_clk_unprepare() 136 err = tegra_bpmp_clk_transfer(clk->bpmp, &msg); in tegra_bpmp_clk_is_prepared() 160 err = tegra_bpmp_clk_transfer(clk->bpmp, &msg); in tegra_bpmp_clk_recalc_rate() 190 err = tegra_bpmp_clk_transfer(clk->bpmp, &msg); in tegra_bpmp_clk_determine_rate() 218 err = tegra_bpmp_clk_transfer(clk->bpmp, &msg); in tegra_bpmp_clk_set_parent() [all …]
|
D | Makefile | 31 obj-$(CONFIG_CLK_TEGRA_BPMP) += clk-bpmp.o
|
/drivers/reset/tegra/ |
D | reset-bpmp.c | 20 struct tegra_bpmp *bpmp = to_tegra_bpmp(rstc); in tegra_bpmp_reset_common() local 34 err = tegra_bpmp_transfer(bpmp, &msg); in tegra_bpmp_reset_common() 67 int tegra_bpmp_init_resets(struct tegra_bpmp *bpmp) in tegra_bpmp_init_resets() argument 69 bpmp->rstc.ops = &tegra_bpmp_reset_ops; in tegra_bpmp_init_resets() 70 bpmp->rstc.owner = THIS_MODULE; in tegra_bpmp_init_resets() 71 bpmp->rstc.of_node = bpmp->dev->of_node; in tegra_bpmp_init_resets() 72 bpmp->rstc.nr_resets = bpmp->soc->num_resets; in tegra_bpmp_init_resets() 74 return devm_reset_controller_register(bpmp->dev, &bpmp->rstc); in tegra_bpmp_init_resets()
|
D | Makefile | 2 obj-$(CONFIG_RESET_TEGRA_BPMP) += reset-bpmp.o
|
/drivers/thermal/tegra/ |
D | tegra-bpmp-thermal.c | 28 struct tegra_bpmp *bpmp; member 52 err = tegra_bpmp_transfer(zone->tegra->bpmp, &msg); in __tegra_bpmp_thermal_get_temp() 87 err = tegra_bpmp_transfer(zone->tegra->bpmp, &msg); in tegra_bpmp_thermal_set_trips() 136 static int tegra_bpmp_thermal_get_num_zones(struct tegra_bpmp *bpmp, in tegra_bpmp_thermal_get_num_zones() argument 154 err = tegra_bpmp_transfer(bpmp, &msg); in tegra_bpmp_thermal_get_num_zones() 172 struct tegra_bpmp *bpmp = dev_get_drvdata(pdev->dev.parent); in tegra_bpmp_thermal_probe() local 183 tegra->bpmp = bpmp; in tegra_bpmp_thermal_probe() 185 err = tegra_bpmp_thermal_get_num_zones(bpmp, &max_num_zones); in tegra_bpmp_thermal_probe() 230 err = tegra_bpmp_request_mrq(bpmp, MRQ_THERMAL, bpmp_mrq_thermal, in tegra_bpmp_thermal_probe() 247 tegra_bpmp_free_mrq(tegra->bpmp, MRQ_THERMAL, tegra); in tegra_bpmp_thermal_remove()
|
D | Makefile | 3 obj-$(CONFIG_TEGRA_BPMP_THERMAL) += tegra-bpmp-thermal.o
|
/drivers/cpufreq/ |
D | tegra186-cpufreq.c | 130 struct platform_device *pdev, struct tegra_bpmp *bpmp, in init_vhint_table() argument 141 virt = dma_alloc_coherent(bpmp->dev, sizeof(*data), &phys, in init_vhint_table() 157 err = tegra_bpmp_transfer(bpmp, &msg); in init_vhint_table() 213 dma_free_coherent(bpmp->dev, sizeof(*data), virt, phys); in init_vhint_table() 221 struct tegra_bpmp *bpmp; in tegra186_cpufreq_probe() local 235 bpmp = tegra_bpmp_get(&pdev->dev); in tegra186_cpufreq_probe() 236 if (IS_ERR(bpmp)) in tegra186_cpufreq_probe() 237 return PTR_ERR(bpmp); in tegra186_cpufreq_probe() 248 cluster->table = init_vhint_table(pdev, bpmp, cluster, i); in tegra186_cpufreq_probe() 260 tegra_bpmp_put(bpmp); in tegra186_cpufreq_probe()
|
D | tegra194-cpufreq.c | 441 init_freq_table(struct platform_device *pdev, struct tegra_bpmp *bpmp, in init_freq_table() argument 462 err = tegra_bpmp_transfer(bpmp, &msg); in init_freq_table() 516 struct tegra_bpmp *bpmp; in tegra194_cpufreq_probe() local 546 bpmp = tegra_bpmp_get(&pdev->dev); in tegra194_cpufreq_probe() 547 if (IS_ERR(bpmp)) in tegra194_cpufreq_probe() 548 return PTR_ERR(bpmp); in tegra194_cpufreq_probe() 558 data->tables[i] = init_freq_table(pdev, bpmp, i); in tegra194_cpufreq_probe() 574 tegra_bpmp_put(bpmp); in tegra194_cpufreq_probe()
|
/drivers/memory/tegra/ |
D | tegra186-emc.c | 20 struct tegra_bpmp *bpmp; member 174 emc->bpmp = tegra_bpmp_get(&pdev->dev); in tegra186_emc_probe() 175 if (IS_ERR(emc->bpmp)) in tegra186_emc_probe() 176 return dev_err_probe(&pdev->dev, PTR_ERR(emc->bpmp), "failed to get BPMP\n"); in tegra186_emc_probe() 195 err = tegra_bpmp_transfer(emc->bpmp, &msg); in tegra186_emc_probe() 255 tegra_bpmp_put(emc->bpmp); in tegra186_emc_probe() 264 tegra_bpmp_put(emc->bpmp); in tegra186_emc_remove()
|
/drivers/i2c/busses/ |
D | i2c-tegra-bpmp.c | 32 struct tegra_bpmp *bpmp; member 193 err = tegra_bpmp_transfer_atomic(i2c->bpmp, &msg); in tegra_bpmp_i2c_msg_xfer() 195 err = tegra_bpmp_transfer(i2c->bpmp, &msg); in tegra_bpmp_i2c_msg_xfer() 295 i2c->bpmp = dev_get_drvdata(pdev->dev.parent); in tegra_bpmp_i2c_probe() 296 if (!i2c->bpmp) in tegra_bpmp_i2c_probe()
|
D | Makefile | 116 obj-$(CONFIG_I2C_TEGRA_BPMP) += i2c-tegra-bpmp.o
|
/drivers/pci/controller/dwc/ |
D | pcie-tegra194.c | 257 struct tegra_bpmp *bpmp; member 1229 return tegra_bpmp_transfer(pcie->bpmp, &msg); in tegra_pcie_bpmp_set_ctrl_state() 1257 return tegra_bpmp_transfer(pcie->bpmp, &msg); in tegra_pcie_bpmp_set_pll_state() 2215 pcie->bpmp = tegra_bpmp_get(dev); in tegra_pcie_dw_probe() 2216 if (IS_ERR(pcie->bpmp)) in tegra_pcie_dw_probe() 2217 return PTR_ERR(pcie->bpmp); in tegra_pcie_dw_probe() 2261 tegra_bpmp_put(pcie->bpmp); in tegra_pcie_dw_probe() 2282 tegra_bpmp_put(pcie->bpmp); in tegra_pcie_dw_remove()
|