Home
last modified time | relevance | path

Searched refs:mchan (Results 1 – 17 of 17) sorted by relevance

/linux-5.19.10/drivers/dma/
Dimg-mdc-dma.c129 void (*enable_chan)(struct mdc_chan *mchan);
130 void (*disable_chan)(struct mdc_chan *mchan);
159 static inline u32 mdc_chan_readl(struct mdc_chan *mchan, u32 reg) in mdc_chan_readl() argument
161 return mdc_readl(mchan->mdma, mchan->chan_nr * 0x040 + reg); in mdc_chan_readl()
164 static inline void mdc_chan_writel(struct mdc_chan *mchan, u32 val, u32 reg) in mdc_chan_writel() argument
166 mdc_writel(mchan->mdma, val, mchan->chan_nr * 0x040 + reg); in mdc_chan_writel()
205 static void mdc_list_desc_config(struct mdc_chan *mchan, in mdc_list_desc_config() argument
210 struct mdc_dma *mdma = mchan->mdma; in mdc_list_desc_config()
217 (mchan->thread << MDC_READ_PORT_CONFIG_STHREAD_SHIFT) | in mdc_list_desc_config()
218 (mchan->thread << MDC_READ_PORT_CONFIG_RTHREAD_SHIFT) | in mdc_list_desc_config()
[all …]
Dmpc512x_dma.c241 struct mpc_dma_chan *mchan = dma_chan_to_mpc_dma_chan(c); in dma_chan_to_mpc_dma() local
243 return container_of(mchan, struct mpc_dma, channels[c->chan_id]); in dma_chan_to_mpc_dma()
254 static void mpc_dma_execute(struct mpc_dma_chan *mchan) in mpc_dma_execute() argument
256 struct mpc_dma *mdma = dma_chan_to_mpc_dma(&mchan->chan); in mpc_dma_execute()
260 int cid = mchan->chan.chan_id; in mpc_dma_execute()
262 while (!list_empty(&mchan->queued)) { in mpc_dma_execute()
263 mdesc = list_first_entry(&mchan->queued, in mpc_dma_execute()
272 if (list_empty(&mchan->active)) in mpc_dma_execute()
273 list_move_tail(&mdesc->node, &mchan->active); in mpc_dma_execute()
276 list_move_tail(&mdesc->node, &mchan->active); in mpc_dma_execute()
[all …]
Dbcm-sba-raid.c148 struct mbox_chan *mchan; member
226 mbox_client_peek_data(sba->mchan); in sba_alloc_request()
368 ret = mbox_send_message(sba->mchan, &req->msg); in sba_send_mbox_request()
381 mbox_client_txdone(sba->mchan, ret); in sba_send_mbox_request()
558 mbox_client_peek_data(sba->mchan); in sba_tx_status()
1688 sba->mchan = mbox_request_channel(&sba->client, 0); in sba_probe()
1689 if (IS_ERR(sba->mchan)) { in sba_probe()
1690 ret = PTR_ERR(sba->mchan); in sba_probe()
1741 mbox_free_channel(sba->mchan); in sba_probe()
1755 mbox_free_channel(sba->mchan); in sba_remove()
/linux-5.19.10/drivers/dma/qcom/
Dhidma.c108 static void hidma_process_completed(struct hidma_chan *mchan) in hidma_process_completed() argument
110 struct dma_device *ddev = mchan->chan.device; in hidma_process_completed()
122 spin_lock_irqsave(&mchan->lock, irqflags); in hidma_process_completed()
123 list_splice_tail_init(&mchan->completed, &list); in hidma_process_completed()
124 spin_unlock_irqrestore(&mchan->lock, irqflags); in hidma_process_completed()
137 spin_lock_irqsave(&mchan->lock, irqflags); in hidma_process_completed()
139 mchan->last_success = last_cookie; in hidma_process_completed()
146 spin_unlock_irqrestore(&mchan->lock, irqflags); in hidma_process_completed()
152 spin_lock_irqsave(&mchan->lock, irqflags); in hidma_process_completed()
153 list_move(&mdesc->node, &mchan->free); in hidma_process_completed()
[all …]
Dhidma_dbg.c86 struct hidma_chan *mchan = s->private; in hidma_chan_show() local
88 struct hidma_dev *dmadev = mchan->dmadev; in hidma_chan_show()
91 seq_printf(s, "paused=%u\n", mchan->paused); in hidma_chan_show()
92 seq_printf(s, "dma_sig=%u\n", mchan->dma_sig); in hidma_chan_show()
94 list_for_each_entry(mdesc, &mchan->prepared, node) in hidma_chan_show()
95 hidma_ll_chstats(s, mchan->dmadev->lldev, mdesc->tre_ch); in hidma_chan_show()
98 list_for_each_entry(mdesc, &mchan->active, node) in hidma_chan_show()
99 hidma_ll_chstats(s, mchan->dmadev->lldev, mdesc->tre_ch); in hidma_chan_show()
102 list_for_each_entry(mdesc, &mchan->completed, node) in hidma_chan_show()
103 hidma_ll_chstats(s, mchan->dmadev->lldev, mdesc->tre_ch); in hidma_chan_show()
[all …]
/linux-5.19.10/drivers/mailbox/
Dzynqmp-ipi-mailbox.c151 struct zynqmp_ipi_mchan *mchan; in zynqmp_ipi_interrupt() local
162 mchan = &ipi_mbox->mchans[IPI_MB_CHNL_RX]; in zynqmp_ipi_interrupt()
167 if (mchan->is_opened) { in zynqmp_ipi_interrupt()
168 msg = mchan->rx_buf; in zynqmp_ipi_interrupt()
169 msg->len = mchan->req_buf_size; in zynqmp_ipi_interrupt()
170 memcpy_fromio(msg->data, mchan->req_buf, in zynqmp_ipi_interrupt()
191 struct zynqmp_ipi_mchan *mchan = chan->con_priv; in zynqmp_ipi_peek_data() local
205 if (mchan->chan_type == IPI_MB_CHNL_TX) { in zynqmp_ipi_peek_data()
231 struct zynqmp_ipi_mchan *mchan = chan->con_priv; in zynqmp_ipi_last_tx_done() local
241 if (mchan->chan_type == IPI_MB_CHNL_TX) { in zynqmp_ipi_last_tx_done()
[all …]
Dhi6220-mailbox.c82 struct hi6220_mbox_chan *mchan; member
111 struct hi6220_mbox_chan *mchan = chan->con_priv; in hi6220_mbox_last_tx_done() local
112 struct hi6220_mbox *mbox = mchan->parent; in hi6220_mbox_last_tx_done()
118 state = readl(mbox->base + MBOX_MODE_REG(mchan->slot)); in hi6220_mbox_last_tx_done()
124 struct hi6220_mbox_chan *mchan = chan->con_priv; in hi6220_mbox_send_data() local
125 struct hi6220_mbox *mbox = mchan->parent; in hi6220_mbox_send_data()
126 unsigned int slot = mchan->slot; in hi6220_mbox_send_data()
131 mchan->dir = MBOX_TX; in hi6220_mbox_send_data()
144 writel(BIT(mchan->dst_irq), DST_INT_RAW_REG(mbox->ipc)); in hi6220_mbox_send_data()
151 struct hi6220_mbox_chan *mchan; in hi6220_mbox_interrupt() local
[all …]
Dhi3660-mailbox.c75 struct hi3660_chan_info mchan[MBOX_CHAN_MAX]; member
88 struct hi3660_chan_info *mchan = &mbox->mchan[ch]; in hi3660_mbox_check_state() local
106 writel(BIT(mchan->ack_irq), base + MBOX_ICLR_REG); in hi3660_mbox_check_state()
136 struct hi3660_chan_info *mchan = &mbox->mchan[ch]; in hi3660_mbox_acquire_channel() local
143 writel(BIT(mchan->ack_irq), base + MBOX_SRC_REG); in hi3660_mbox_acquire_channel()
147 if (val & BIT(mchan->ack_irq)) in hi3660_mbox_acquire_channel()
177 struct hi3660_chan_info *mchan = &mbox->mchan[ch]; in hi3660_mbox_send_data() local
188 writel_relaxed(~BIT(mchan->dst_irq), base + MBOX_IMASK_REG); in hi3660_mbox_send_data()
191 writel_relaxed(BIT(mchan->dst_irq), base + MBOX_DST_REG); in hi3660_mbox_send_data()
201 writel(BIT(mchan->ack_irq), base + MBOX_SEND_REG); in hi3660_mbox_send_data()
[all …]
Dqcom-ipcc.c55 struct qcom_ipcc_chan_info *mchan; member
149 struct qcom_ipcc_chan_info *mchan = chan->con_priv; in qcom_ipcc_mbox_send_data() local
152 hwirq = qcom_ipcc_get_hwirq(mchan->client_id, mchan->signal_id); in qcom_ipcc_mbox_send_data()
167 struct qcom_ipcc_chan_info *mchan; in qcom_ipcc_mbox_xlate() local
179 mchan = chan->con_priv; in qcom_ipcc_mbox_xlate()
181 if (!mchan) in qcom_ipcc_mbox_xlate()
183 else if (mchan->client_id == ph->args[0] && in qcom_ipcc_mbox_xlate()
184 mchan->signal_id == ph->args[1]) in qcom_ipcc_mbox_xlate()
191 mchan = devm_kzalloc(dev, sizeof(*mchan), GFP_KERNEL); in qcom_ipcc_mbox_xlate()
192 if (!mchan) in qcom_ipcc_mbox_xlate()
[all …]
Dpcc.c292 chan = pchan->chan.mchan; in pcc_mbox_request_channel()
337 struct mbox_chan *chan = pchan->mchan; in pcc_mbox_free_channel()
675 pchan->chan.mchan = &pcc_mbox_channels[i]; in pcc_mbox_probe()
/linux-5.19.10/drivers/acpi/
Dacpi_pcc.c95 ret = mbox_send_message(data->pcc_chan->mchan, NULL); in acpi_pcc_address_space_handler()
99 if (data->pcc_chan->mchan->mbox->txdone_irq) in acpi_pcc_address_space_handler()
102 mbox_client_txdone(data->pcc_chan->mchan, ret); in acpi_pcc_address_space_handler()
Dcppc_acpi.c311 ret = mbox_send_message(pcc_ss_data->pcc_channel->mchan, &cmd); in send_pcc_cmd()
324 if (pcc_ss_data->pcc_channel->mchan->mbox->txdone_irq) in send_pcc_cmd()
325 mbox_chan_txdone(pcc_ss_data->pcc_channel->mchan, ret); in send_pcc_cmd()
327 mbox_client_txdone(pcc_ss_data->pcc_channel->mchan, ret); in send_pcc_cmd()
/linux-5.19.10/include/acpi/
Dpcc.h13 struct mbox_chan *mchan; member
/linux-5.19.10/drivers/i2c/busses/
Di2c-xgene-slimpro.c494 ctx->mbox_chan = pcc_chan->mchan; in xgene_slimpro_i2c_probe()
/linux-5.19.10/drivers/hwmon/
Dxgene-hwmon.c686 ctx->mbox_chan = pcc_chan->mchan; in xgene_hwmon_probe()
/linux-5.19.10/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dcfg80211.c7015 bool mon_flag, mbss, p2p, rsdb, mchan; in brcmf_setup_ifmodes() local
7022 mchan = brcmf_feat_is_enabled(ifp, BRCMF_FEAT_MCHAN); in brcmf_setup_ifmodes()
7046 combo[c].num_different_channels = 1 + (rsdb || (p2p && mchan)); in brcmf_setup_ifmodes()
/linux-5.19.10/
DMAINTAINERS4297 M: Michael Chan <mchan@broadcom.com>