/linux-6.6.21/drivers/mailbox/ |
D | pcc.c | 233 struct pcc_chan_info *pchan; in pcc_mbox_irq() local 238 pchan = chan->con_priv; in pcc_mbox_irq() 240 ret = pcc_chan_reg_read(&pchan->cmd_complete, &val); in pcc_mbox_irq() 245 val &= pchan->cmd_complete.status_mask; in pcc_mbox_irq() 250 ret = pcc_chan_reg_read(&pchan->error, &val); in pcc_mbox_irq() 253 val &= pchan->error.status_mask; in pcc_mbox_irq() 255 val &= ~pchan->error.status_mask; in pcc_mbox_irq() 256 pcc_chan_reg_write(&pchan->error, val); in pcc_mbox_irq() 260 if (pcc_chan_reg_read_modify_write(&pchan->plat_irq_ack)) in pcc_mbox_irq() 283 struct pcc_chan_info *pchan; in pcc_mbox_request_channel() local [all …]
|
D | arm_mhu_db.c | 54 unsigned int pchan; member 59 mhu_db_mbox_to_channel(struct mbox_controller *mbox, unsigned int pchan, in mhu_db_mbox_to_channel() argument 67 if (chan_info && chan_info->pchan == pchan && in mhu_db_mbox_to_channel() 78 void __iomem *base = chan_info->mhu->mlink[chan_info->pchan].rx_reg; in mhu_db_mbox_clear_irq() 85 unsigned int pchan; in mhu_db_mbox_irq_to_pchan_num() local 87 for (pchan = 0; pchan < MHU_CHANS; pchan++) in mhu_db_mbox_irq_to_pchan_num() 88 if (mhu->mlink[pchan].irq == irq) in mhu_db_mbox_irq_to_pchan_num() 90 return pchan; in mhu_db_mbox_irq_to_pchan_num() 94 mhu_db_mbox_irq_to_channel(struct arm_mhu *mhu, unsigned int pchan) in mhu_db_mbox_irq_to_channel() argument 100 void __iomem *base = mhu->mlink[pchan].rx_reg; in mhu_db_mbox_irq_to_channel() [all …]
|
/linux-6.6.21/drivers/dma/ |
D | owl-dma.c | 205 struct owl_dma_pchan *pchan; member 241 static void pchan_update(struct owl_dma_pchan *pchan, u32 reg, in pchan_update() argument 246 regval = readl(pchan->base + reg); in pchan_update() 253 writel(val, pchan->base + reg); in pchan_update() 256 static void pchan_writel(struct owl_dma_pchan *pchan, u32 reg, u32 data) in pchan_writel() argument 258 writel(data, pchan->base + reg); in pchan_writel() 261 static u32 pchan_readl(struct owl_dma_pchan *pchan, u32 reg) in pchan_readl() argument 263 return readl(pchan->base + reg); in pchan_readl() 471 struct owl_dma_pchan *pchan = NULL; in owl_dma_get_pchan() local 476 pchan = &od->pchans[i]; in owl_dma_get_pchan() [all …]
|
D | sun6i-dma.c | 252 struct sun6i_pchan *pchan) in sun6i_dma_dump_chan_regs() argument 263 pchan->idx, in sun6i_dma_dump_chan_regs() 265 readl(pchan->base + DMA_CHAN_ENABLE), in sun6i_dma_dump_chan_regs() 267 readl(pchan->base + DMA_CHAN_PAUSE), in sun6i_dma_dump_chan_regs() 269 readl(pchan->base + DMA_CHAN_LLI_ADDR), in sun6i_dma_dump_chan_regs() 271 readl(pchan->base + DMA_CHAN_CUR_CFG), in sun6i_dma_dump_chan_regs() 273 readl(pchan->base + DMA_CHAN_CUR_SRC), in sun6i_dma_dump_chan_regs() 275 readl(pchan->base + DMA_CHAN_CUR_DST), in sun6i_dma_dump_chan_regs() 277 readl(pchan->base + DMA_CHAN_CUR_CNT), in sun6i_dma_dump_chan_regs() 279 readl(pchan->base + DMA_CHAN_CUR_PARA)); in sun6i_dma_dump_chan_regs() [all …]
|
D | sun4i-dma.c | 147 struct sun4i_dma_pchan *pchan; member 231 struct sun4i_dma_pchan *pchan = NULL, *pchans = priv->pchans; in find_and_use_pchan() local 249 pchan = &pchans[i]; in find_and_use_pchan() 250 pchan->vchan = vchan; in find_and_use_pchan() 256 return pchan; in find_and_use_pchan() 260 struct sun4i_dma_pchan *pchan) in release_pchan() argument 263 int nr = pchan - priv->pchans; in release_pchan() 267 pchan->vchan = NULL; in release_pchan() 273 static void configure_pchan(struct sun4i_dma_pchan *pchan, in configure_pchan() argument 280 if (pchan->is_dedicated) { in configure_pchan() [all …]
|
D | timb_dma.c | 685 struct timb_dma_platform_data_channel *pchan = in td_probe() local 689 if ((i % 2) == pchan->rx) { in td_probe() 702 td_chan->descs = pchan->descriptors; in td_probe() 703 td_chan->desc_elems = pchan->descriptor_elements; in td_probe() 704 td_chan->bytes_per_line = pchan->bytes_per_line; in td_probe() 705 td_chan->direction = pchan->rx ? DMA_DEV_TO_MEM : in td_probe() 710 (pchan->rx ? 0 : TIMBDMA_INSTANCE_TX_OFFSET); in td_probe()
|
D | mmp_pdma.c | 239 static struct mmp_pdma_phy *lookup_phy(struct mmp_pdma_chan *pchan) in lookup_phy() argument 242 struct mmp_pdma_device *pdev = to_mmp_pdma_dev(pchan->chan.device); in lookup_phy() 261 phy->vchan = pchan; in lookup_phy() 273 static void mmp_pdma_free_phy(struct mmp_pdma_chan *pchan) in mmp_pdma_free_phy() argument 275 struct mmp_pdma_device *pdev = to_mmp_pdma_dev(pchan->chan.device); in mmp_pdma_free_phy() 279 if (!pchan->phy) in mmp_pdma_free_phy() 283 reg = DRCMR(pchan->drcmr); in mmp_pdma_free_phy() 284 writel(0, pchan->phy->base + reg); in mmp_pdma_free_phy() 287 pchan->phy->vchan = NULL; in mmp_pdma_free_phy() 288 pchan->phy = NULL; in mmp_pdma_free_phy()
|
D | pxa_dma.c | 369 static struct pxad_phy *lookup_phy(struct pxad_chan *pchan) in lookup_phy() argument 372 struct pxad_device *pdev = to_pxad_dev(pchan->vc.chan.device); in lookup_phy() 385 for (prio = pchan->prio; prio >= PXAD_PRIO_HIGHEST; prio--) { in lookup_phy() 391 phy->vchan = pchan; in lookup_phy() 400 dev_dbg(&pchan->vc.chan.dev->device, in lookup_phy()
|
D | pl330.c | 541 struct dma_pl330_chan *pchan; member 1565 pch = desc->pchan; in dma_pl330_rqcb() 2617 desc->pchan = pch; in pl330_get_desc() 2667 struct dma_pl330_chan *pch = desc->pchan; in get_burst_len()
|
/linux-6.6.21/drivers/w1/masters/ |
D | ds2482.c | 262 struct ds2482_w1_chan *pchan = data; in ds2482_w1_touch_bit() local 263 struct ds2482_data *pdev = pchan->pdev; in ds2482_w1_touch_bit() 271 ds2482_set_channel(pdev, pchan->channel); in ds2482_w1_touch_bit() 294 struct ds2482_w1_chan *pchan = data; in ds2482_w1_triplet() local 295 struct ds2482_data *pdev = pchan->pdev; in ds2482_w1_triplet() 303 ds2482_set_channel(pdev, pchan->channel); in ds2482_w1_triplet() 324 struct ds2482_w1_chan *pchan = data; in ds2482_w1_write_byte() local 325 struct ds2482_data *pdev = pchan->pdev; in ds2482_w1_write_byte() 332 ds2482_set_channel(pdev, pchan->channel); in ds2482_w1_write_byte() 348 struct ds2482_w1_chan *pchan = data; in ds2482_w1_read_byte() local [all …]
|
/linux-6.6.21/drivers/gpu/drm/nouveau/ |
D | nouveau_chan.c | 89 nouveau_channel_del(struct nouveau_channel **pchan) in nouveau_channel_del() argument 91 struct nouveau_channel *chan = *pchan; in nouveau_channel_del() 116 *pchan = NULL; in nouveau_channel_del() 146 u32 size, struct nouveau_channel **pchan) in nouveau_channel_prep() argument 154 chan = *pchan = kzalloc(sizeof(*chan), GFP_KERNEL); in nouveau_channel_prep() 177 nouveau_channel_del(pchan); in nouveau_channel_prep() 199 nouveau_channel_del(pchan); in nouveau_channel_prep() 249 nouveau_channel_del(pchan); in nouveau_channel_prep() 258 struct nouveau_channel **pchan) in nouveau_channel_ctor() argument 302 *pchan = chan; in nouveau_channel_ctor() [all …]
|
/linux-6.6.21/drivers/iio/multiplexer/ |
D | iio-mux.c | 246 struct iio_chan_spec const *pchan = mux->parent->channel; in mux_configure_channel() local 253 chan->output = pchan->output; in mux_configure_channel() 263 if (iio_channel_has_info(pchan, IIO_CHAN_INFO_RAW)) in mux_configure_channel() 265 if (iio_channel_has_info(pchan, IIO_CHAN_INFO_SCALE)) in mux_configure_channel() 268 if (iio_channel_has_available(pchan, IIO_CHAN_INFO_RAW)) in mux_configure_channel() 294 if (!pchan->ext_info[i].write) in mux_configure_channel() 296 if (!pchan->ext_info[i].read) in mux_configure_channel() 304 pchan->ext_info[i].name); in mux_configure_channel() 309 pchan->ext_info[i].name); in mux_configure_channel()
|
/linux-6.6.21/drivers/firmware/ |
D | arm_scpi.c | 943 struct scpi_chan *pchan = scpi_drvinfo->channels + idx; in scpi_probe() local 944 struct mbox_client *cl = &pchan->cl; in scpi_probe() 958 pchan->rx_payload = devm_ioremap(dev, res.start, size); in scpi_probe() 959 if (!pchan->rx_payload) { in scpi_probe() 963 pchan->tx_payload = pchan->rx_payload + (size >> 1); in scpi_probe() 972 INIT_LIST_HEAD(&pchan->rx_pending); in scpi_probe() 973 INIT_LIST_HEAD(&pchan->xfers_list); in scpi_probe() 974 spin_lock_init(&pchan->rx_lock); in scpi_probe() 975 mutex_init(&pchan->xfers_lock); in scpi_probe() 977 ret = scpi_alloc_xfer_list(dev, pchan); in scpi_probe() [all …]
|
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
D | chan.c | 262 nvkm_chan_del(struct nvkm_chan **pchan) in nvkm_chan_del() argument 264 struct nvkm_chan *chan = *pchan; in nvkm_chan_del() 296 nvkm_chan_put(struct nvkm_chan **pchan, unsigned long irqflags) in nvkm_chan_put() argument 298 struct nvkm_chan *chan = *pchan; in nvkm_chan_put() 303 *pchan = NULL; in nvkm_chan_put() 349 struct nvkm_memory *userd, u64 ouserd, struct nvkm_chan **pchan) in nvkm_chan_new_() argument 371 if (!(chan = *pchan = kzalloc(sizeof(*chan), GFP_KERNEL))) in nvkm_chan_new_()
|
/linux-6.6.21/net/bluetooth/ |
D | l2cap_sock.c | 1771 struct l2cap_chan *pchan = l2cap_pi(parent)->chan; in l2cap_sock_init() local 1776 chan->chan_type = pchan->chan_type; in l2cap_sock_init() 1777 chan->imtu = pchan->imtu; in l2cap_sock_init() 1778 chan->omtu = pchan->omtu; in l2cap_sock_init() 1779 chan->conf_state = pchan->conf_state; in l2cap_sock_init() 1780 chan->mode = pchan->mode; in l2cap_sock_init() 1781 chan->fcs = pchan->fcs; in l2cap_sock_init() 1782 chan->max_tx = pchan->max_tx; in l2cap_sock_init() 1783 chan->tx_win = pchan->tx_win; in l2cap_sock_init() 1784 chan->tx_win_max = pchan->tx_win_max; in l2cap_sock_init() [all …]
|
D | l2cap_core.c | 4135 struct l2cap_chan *chan = NULL, *pchan; in l2cap_connect() local 4144 pchan = l2cap_global_chan_by_psm(BT_LISTEN, psm, &conn->hcon->src, in l2cap_connect() 4146 if (!pchan) { in l2cap_connect() 4152 l2cap_chan_lock(pchan); in l2cap_connect() 4176 chan = pchan->ops->new_connection(pchan); in l2cap_connect() 4236 l2cap_chan_unlock(pchan); in l2cap_connect() 4238 l2cap_chan_put(pchan); in l2cap_connect() 5818 struct l2cap_chan *chan, *pchan; in l2cap_le_connect_req() local 5853 pchan = l2cap_global_chan_by_psm(BT_LISTEN, psm, &conn->hcon->src, in l2cap_le_connect_req() 5855 if (!pchan) { in l2cap_le_connect_req() [all …]
|
D | 6lowpan.c | 737 static inline struct l2cap_chan *chan_new_conn_cb(struct l2cap_chan *pchan) in chan_new_conn_cb() argument 745 chan->ops = pchan->ops; in chan_new_conn_cb() 747 BT_DBG("chan %p pchan %p", chan, pchan); in chan_new_conn_cb()
|
D | smp.c | 3244 static inline struct l2cap_chan *smp_new_conn_cb(struct l2cap_chan *pchan) in smp_new_conn_cb() argument 3248 BT_DBG("pchan %p", pchan); in smp_new_conn_cb() 3254 chan->chan_type = pchan->chan_type; in smp_new_conn_cb() 3256 chan->scid = pchan->scid; in smp_new_conn_cb() 3258 chan->imtu = pchan->imtu; in smp_new_conn_cb() 3259 chan->omtu = pchan->omtu; in smp_new_conn_cb() 3260 chan->mode = pchan->mode; in smp_new_conn_cb()
|