Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/dma/
Dimg-mdc-dma.c128 void (*enable_chan)(struct mdc_chan *mchan);
129 void (*disable_chan)(struct mdc_chan *mchan);
158 static inline u32 mdc_chan_readl(struct mdc_chan *mchan, u32 reg) in mdc_chan_readl() argument
160 return mdc_readl(mchan->mdma, mchan->chan_nr * 0x040 + reg); in mdc_chan_readl()
163 static inline void mdc_chan_writel(struct mdc_chan *mchan, u32 val, u32 reg) in mdc_chan_writel() argument
165 mdc_writel(mchan->mdma, val, mchan->chan_nr * 0x040 + reg); in mdc_chan_writel()
204 static void mdc_list_desc_config(struct mdc_chan *mchan, in mdc_list_desc_config() argument
209 struct mdc_dma *mdma = mchan->mdma; in mdc_list_desc_config()
216 (mchan->thread << MDC_READ_PORT_CONFIG_STHREAD_SHIFT) | in mdc_list_desc_config()
217 (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.c140 struct mbox_chan *mchan; member
218 mbox_client_peek_data(sba->mchan); in sba_alloc_request()
360 ret = mbox_send_message(sba->mchan, &req->msg); in sba_send_mbox_request()
373 mbox_client_txdone(sba->mchan, ret); in sba_send_mbox_request()
550 mbox_client_peek_data(sba->mchan); in sba_tx_status()
1680 sba->mchan = mbox_request_channel(&sba->client, 0); in sba_probe()
1681 if (IS_ERR(sba->mchan)) { in sba_probe()
1682 ret = PTR_ERR(sba->mchan); in sba_probe()
1733 mbox_free_channel(sba->mchan); in sba_probe()
1747 mbox_free_channel(sba->mchan); in sba_remove()
/linux-6.6.21/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-6.6.21/drivers/mailbox/
Dzynqmp-ipi-mailbox.c149 struct zynqmp_ipi_mchan *mchan; in zynqmp_ipi_interrupt() local
160 mchan = &ipi_mbox->mchans[IPI_MB_CHNL_RX]; in zynqmp_ipi_interrupt()
165 if (mchan->is_opened) { in zynqmp_ipi_interrupt()
166 msg = mchan->rx_buf; in zynqmp_ipi_interrupt()
167 msg->len = mchan->req_buf_size; in zynqmp_ipi_interrupt()
168 memcpy_fromio(msg->data, mchan->req_buf, in zynqmp_ipi_interrupt()
189 struct zynqmp_ipi_mchan *mchan = chan->con_priv; in zynqmp_ipi_peek_data() local
203 if (mchan->chan_type == IPI_MB_CHNL_TX) { in zynqmp_ipi_peek_data()
229 struct zynqmp_ipi_mchan *mchan = chan->con_priv; in zynqmp_ipi_last_tx_done() local
239 if (mchan->chan_type == IPI_MB_CHNL_TX) { in zynqmp_ipi_last_tx_done()
[all …]
Dhi6220-mailbox.c83 struct hi6220_mbox_chan *mchan; member
112 struct hi6220_mbox_chan *mchan = chan->con_priv; in hi6220_mbox_last_tx_done() local
113 struct hi6220_mbox *mbox = mchan->parent; in hi6220_mbox_last_tx_done()
119 state = readl(mbox->base + MBOX_MODE_REG(mchan->slot)); in hi6220_mbox_last_tx_done()
125 struct hi6220_mbox_chan *mchan = chan->con_priv; in hi6220_mbox_send_data() local
126 struct hi6220_mbox *mbox = mchan->parent; in hi6220_mbox_send_data()
127 unsigned int slot = mchan->slot; in hi6220_mbox_send_data()
132 mchan->dir = MBOX_TX; in hi6220_mbox_send_data()
145 writel(BIT(mchan->dst_irq), DST_INT_RAW_REG(mbox->ipc)); in hi6220_mbox_send_data()
152 struct hi6220_mbox_chan *mchan; in hi6220_mbox_interrupt() local
[all …]
Dhi3660-mailbox.c76 struct hi3660_chan_info mchan[MBOX_CHAN_MAX]; member
89 struct hi3660_chan_info *mchan = &mbox->mchan[ch]; in hi3660_mbox_check_state() local
107 writel(BIT(mchan->ack_irq), base + MBOX_ICLR_REG); in hi3660_mbox_check_state()
137 struct hi3660_chan_info *mchan = &mbox->mchan[ch]; in hi3660_mbox_acquire_channel() local
144 writel(BIT(mchan->ack_irq), base + MBOX_SRC_REG); in hi3660_mbox_acquire_channel()
148 if (val & BIT(mchan->ack_irq)) in hi3660_mbox_acquire_channel()
178 struct hi3660_chan_info *mchan = &mbox->mchan[ch]; in hi3660_mbox_send_data() local
189 writel_relaxed(~BIT(mchan->dst_irq), base + MBOX_IMASK_REG); in hi3660_mbox_send_data()
192 writel_relaxed(BIT(mchan->dst_irq), base + MBOX_DST_REG); in hi3660_mbox_send_data()
202 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.c291 chan = pchan->chan.mchan; in pcc_mbox_request_channel()
313 struct mbox_chan *chan = pchan->mchan; in pcc_mbox_free_channel()
681 pchan->chan.mchan = &pcc_mbox_channels[i]; in pcc_mbox_probe()
/linux-6.6.21/drivers/acpi/
Dacpi_pcc.c78 if (!pcc_chan->mchan->mbox->txdone_irq) { in acpi_pcc_address_space_setup()
118 ret = mbox_send_message(data->pcc_chan->mchan, NULL); in acpi_pcc_address_space_handler()
135 mbox_chan_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-6.6.21/include/acpi/
Dpcc.h13 struct mbox_chan *mchan; member
/linux-6.6.21/drivers/i2c/busses/
Di2c-xgene-slimpro.c497 ctx->mbox_chan = pcc_chan->mchan; in xgene_slimpro_i2c_probe()
/linux-6.6.21/drivers/hwmon/
Dxgene-hwmon.c686 ctx->mbox_chan = pcc_chan->mchan; in xgene_hwmon_probe()
/linux-6.6.21/drivers/soc/hisilicon/
Dkunpeng_hccs.c143 cl_info->mbox_chan = pcc_chan->mchan; in hccs_register_pcc_channel()
/linux-6.6.21/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dcfg80211.c7421 bool mon_flag, mbss, p2p, rsdb, mchan; in brcmf_setup_ifmodes() local
7428 mchan = brcmf_feat_is_enabled(ifp, BRCMF_FEAT_MCHAN); in brcmf_setup_ifmodes()
7452 combo[c].num_different_channels = 1 + (rsdb || (p2p && mchan)); in brcmf_setup_ifmodes()
7453 c0_limits[i].max = 1 + (p2p && mchan); in brcmf_setup_ifmodes()
/linux-6.6.21/
DMAINTAINERS4343 M: Michael Chan <mchan@broadcom.com>