Lines Matching refs:chan
71 static int tegra_hsp_of_xlate(struct mbox_chan *chan, in tegra_hsp_of_xlate() argument
74 debug("%s(chan=%p)\n", __func__, chan); in tegra_hsp_of_xlate()
81 chan->id = (args->args[0] << 16) | args->args[1]; in tegra_hsp_of_xlate()
86 static int tegra_hsp_request(struct mbox_chan *chan) in tegra_hsp_request() argument
90 debug("%s(chan=%p)\n", __func__, chan); in tegra_hsp_request()
92 db_id = tegra_hsp_db_id(chan->id); in tegra_hsp_request()
101 static int tegra_hsp_free(struct mbox_chan *chan) in tegra_hsp_free() argument
103 debug("%s(chan=%p)\n", __func__, chan); in tegra_hsp_free()
108 static int tegra_hsp_send(struct mbox_chan *chan, const void *data) in tegra_hsp_send() argument
110 struct tegra_hsp *thsp = dev_get_priv(chan->dev); in tegra_hsp_send()
113 debug("%s(chan=%p, data=%p)\n", __func__, chan, data); in tegra_hsp_send()
115 db_id = tegra_hsp_db_id(chan->id); in tegra_hsp_send()
121 static int tegra_hsp_recv(struct mbox_chan *chan, void *data) in tegra_hsp_recv() argument
123 struct tegra_hsp *thsp = dev_get_priv(chan->dev); in tegra_hsp_recv()
127 debug("%s(chan=%p, data=%p)\n", __func__, chan, data); in tegra_hsp_recv()
130 if (!(val & BIT(chan->id))) in tegra_hsp_recv()
133 tegra_hsp_writel(thsp, BIT(chan->id), db_id, TEGRA_HSP_DB_REG_RAW); in tegra_hsp_recv()