Lines Matching refs:chan
74 static int tegra_hsp_of_xlate(struct mbox_chan *chan, in tegra_hsp_of_xlate() argument
77 debug("%s(chan=%p)\n", __func__, chan); in tegra_hsp_of_xlate()
84 chan->id = (args->args[0] << 16) | args->args[1]; in tegra_hsp_of_xlate()
89 static int tegra_hsp_request(struct mbox_chan *chan) in tegra_hsp_request() argument
93 debug("%s(chan=%p)\n", __func__, chan); in tegra_hsp_request()
95 db_id = tegra_hsp_db_id(chan->id); in tegra_hsp_request()
104 static int tegra_hsp_free(struct mbox_chan *chan) in tegra_hsp_free() argument
106 debug("%s(chan=%p)\n", __func__, chan); in tegra_hsp_free()
111 static int tegra_hsp_send(struct mbox_chan *chan, const void *data) in tegra_hsp_send() argument
113 struct tegra_hsp *thsp = dev_get_priv(chan->dev); in tegra_hsp_send()
116 debug("%s(chan=%p, data=%p)\n", __func__, chan, data); in tegra_hsp_send()
118 db_id = tegra_hsp_db_id(chan->id); in tegra_hsp_send()
124 static int tegra_hsp_recv(struct mbox_chan *chan, void *data) in tegra_hsp_recv() argument
126 struct tegra_hsp *thsp = dev_get_priv(chan->dev); in tegra_hsp_recv()
130 debug("%s(chan=%p, data=%p)\n", __func__, chan, data); in tegra_hsp_recv()
133 if (!(val & BIT(chan->id))) in tegra_hsp_recv()
136 tegra_hsp_writel(thsp, BIT(chan->id), db_id, TEGRA_HSP_DB_REG_RAW); in tegra_hsp_recv()