Home
last modified time | relevance | path

Searched refs:chan_num (Results 1 – 22 of 22) sorted by relevance

/drivers/dma/
Dintel_mid_dma_regs.h38 #define UNMASK_INTR_REG(chan_num) \ argument
39 ((REG_BIT0 << chan_num) | (REG_BIT8 << chan_num))
40 #define MASK_INTR_REG(chan_num) (REG_BIT8 << chan_num) argument
42 #define ENABLE_CHANNEL(chan_num) \ argument
43 ((REG_BIT0 << chan_num) | (REG_BIT8 << chan_num))
45 #define DISABLE_CHANNEL(chan_num) \ argument
46 (REG_BIT8 << chan_num)
Dmic_x100_dma.h215 u32 chan_num = ch->ch_num; in mic_dma_chan_set_owner() local
217 dcr = (dcr & ~(0x1 << (chan_num * 2))) | (ch->owner << (chan_num * 2)); in mic_dma_chan_set_owner()
Dmmp_tdma.c608 int chan_num = TDMA_CHANNEL_NUM; in mmp_tdma_probe() local
624 for (i = 0; i < chan_num; i++) { in mmp_tdma_probe()
645 if (irq_num != chan_num) { in mmp_tdma_probe()
654 for (i = 0; i < chan_num; i++) { in mmp_tdma_probe()
655 irq = (irq_num != chan_num) ? 0 : platform_get_irq(pdev, i); in mmp_tdma_probe()
Dmic_x100_dma.c657 int i, chan_num, first_chan = mic_dma_dev->start_ch; in mic_dma_reg_seq_show() local
669 chan_num = ch->ch_num; in mic_dma_reg_seq_show()
671 chan_num, in mic_dma_reg_seq_show()
/drivers/net/ethernet/ti/
Ddavinci_cpdma.h22 #define is_rx_chan(chan) ((chan)->chan_num >= CPDMA_MAX_CHANNELS)
24 #define __chan_linear(chan_num) ((chan_num) & (CPDMA_MAX_CHANNELS - 1)) argument
25 #define chan_linear(chan) __chan_linear((chan)->chan_num)
82 struct cpdma_chan *cpdma_chan_create(struct cpdma_ctlr *ctlr, int chan_num,
Ddavinci_cpdma.c117 int chan_num; member
494 struct cpdma_chan *cpdma_chan_create(struct cpdma_ctlr *ctlr, int chan_num, in cpdma_chan_create() argument
498 int offset = (chan_num % CPDMA_MAX_CHANNELS) * 4; in cpdma_chan_create()
501 if (__chan_linear(chan_num) >= ctlr->num_chan) in cpdma_chan_create()
509 if (ctlr->channels[chan_num]) { in cpdma_chan_create()
517 chan->chan_num = chan_num; in cpdma_chan_create()
540 ctlr->channels[chan_num] = chan; in cpdma_chan_create()
558 ctlr->channels[chan->chan_num] = NULL; in cpdma_chan_destroy()
585 chan->chan_num, is_rx_chan(chan) ? "rx" : "tx", in cpdma_chan_dump()
/drivers/soc/ti/
Dknav_dma.c424 int chan_num = -1; in knav_dma_open_channel() local
432 chan_num = of_channel_match_helper(dev->of_node, name, &instance); in knav_dma_open_channel()
433 if (chan_num < 0) { in knav_dma_open_channel()
441 "unknown", chan_num, instance); in knav_dma_open_channel()
465 if (chan->channel == chan_num) { in knav_dma_open_channel()
470 if (chan->flow == chan_num) { in knav_dma_open_channel()
478 chan_num, instance); in knav_dma_open_channel()
485 chan_num); in knav_dma_open_channel()
497 chan_num, instance); in knav_dma_open_channel()
582 unsigned chan_num) in pktdma_init_chan() argument
[all …]
/drivers/media/pci/cx25821/
Dcx25821-video.h61 extern int cx25821_video_irq(struct cx25821_dev *dev, int chan_num, u32 status);
62 extern void cx25821_video_unregister(struct cx25821_dev *dev, int chan_num);
Dcx25821-video.c219 int cx25821_video_irq(struct cx25821_dev *dev, int chan_num, u32 status) in cx25821_video_irq() argument
224 const struct sram_channel *channel = dev->channels[chan_num].sram_channels; in cx25821_video_irq()
1015 void cx25821_video_unregister(struct cx25821_dev *dev, int chan_num) in cx25821_video_unregister() argument
1019 if (video_is_registered(&dev->channels[chan_num].vdev)) { in cx25821_video_unregister()
1020 video_unregister_device(&dev->channels[chan_num].vdev); in cx25821_video_unregister()
1021 v4l2_ctrl_handler_free(&dev->channels[chan_num].hdl); in cx25821_video_unregister()
1024 &dev->channels[chan_num].dma_vidq.stopper); in cx25821_video_unregister()
Dcx25821-audio-upstream.c420 static int cx25821_audio_upstream_irq(struct cx25821_dev *dev, int chan_num, in cx25821_audio_upstream_irq() argument
425 const struct sram_channel *channel = dev->channels[chan_num].sram_channels; in cx25821_audio_upstream_irq()
/drivers/staging/comedi/drivers/
Dunioxx5.c82 static int __unioxx5_define_chan_offset(int chan_num) in __unioxx5_define_chan_offset() argument
85 if (chan_num < 0 || chan_num > 23) in __unioxx5_define_chan_offset()
88 return (chan_num >> 3) + 1; in __unioxx5_define_chan_offset()
/drivers/char/xillybus/
Dxillybus_core.c478 channel->chan_num = i; in xilly_setupchannels()
780 iowrite32(1 | (channel->chan_num << 1) | in xillybus_read()
870 iowrite32(1 | (channel->chan_num << 1) | in xillybus_read()
959 iowrite32(1 | (channel->chan_num << 1) | in xillybus_read()
1081 iowrite32((channel->chan_num << 1) | /* Channel ID */ in xillybus_myflush()
1322 iowrite32((channel->chan_num << 1) | in xillybus_write()
1516 iowrite32(1 | (channel->chan_num << 1) | in xillybus_open()
1538 iowrite32((channel->chan_num << 1) | in xillybus_open()
1582 iowrite32((channel->chan_num << 1) | /* Channel ID */ in xillybus_release()
1596 iowrite32(1 | (channel->chan_num << 1) | in xillybus_release()
[all …]
Dxillybus.h48 int chan_num; member
/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_dma.c338 static void sxgbe_enable_tso(void __iomem *ioaddr, u8 chan_num) in sxgbe_enable_tso() argument
342 ctrl = readl(ioaddr + SXGBE_DMA_CHA_TXCTL_REG(chan_num)); in sxgbe_enable_tso()
344 writel(ctrl, ioaddr + SXGBE_DMA_CHA_TXCTL_REG(chan_num)); in sxgbe_enable_tso()
Dsxgbe_dma.h45 void (*enable_tso)(void __iomem *ioaddr, u8 chan_num);
/drivers/net/wireless/p54/
Deeprom.c149 unsigned int *chan_num, in p54_generate_band() argument
197 priv->survey[*chan_num].channel = &tmp->channels[j]; in p54_generate_band()
198 priv->survey[*chan_num].filled = SURVEY_INFO_NOISE_DBM | in p54_generate_band()
202 dest->hw_value = (*chan_num); in p54_generate_band()
204 (*chan_num)++; in p54_generate_band()
346 priv->chan_num = max_channel_num; in p54_generate_channel_lists()
Dp54.h205 unsigned int chan_num; member
Dmain.c617 if (idx >= priv->chan_num) in p54_get_survey()
/drivers/dma/ioat/
Ddma.h44 #define chan_num(ch) ((int)((ch)->reg_base - (ch)->device->reg_base) / 0x80) macro
Ddma.c211 chan_num(chan), chansts, chanerr); in ioat1_reset_channel()
369 int chan_id = chan_num(chan); in ioat_stop()
543 "chan%d - get_next_desc failed\n", chan_num(chan)); in ioat1_dma_prep_memcpy()
/drivers/dma/sh/
Dshdma-base.c965 int chan_num) in shdma_init() argument
986 sdev->schan = kcalloc(chan_num, sizeof(*sdev->schan), GFP_KERNEL); in shdma_init()
/drivers/net/wireless/mwifiex/
Dscan.c809 u32 chan_num; in mwifiex_config_scan() local
1062 chan_num = chan_idx; in mwifiex_config_scan()
1066 chan_num = mwifiex_scan_create_channel_list(priv, user_scan_in, in mwifiex_config_scan()