Home
last modified time | relevance | path

Searched refs:channel (Results 1 – 200 of 1955) sorted by relevance

12345678910

/linux-4.4.14/drivers/char/xillybus/
Dxillybus_core.c134 struct xilly_channel *channel; in xillybus_isr() local
194 channel = ep->channels[msg_channel]; in xillybus_isr()
197 if (msg_bufno >= channel->num_wr_buffers) { in xillybus_isr()
201 spin_lock(&channel->wr_spinlock); in xillybus_isr()
202 channel->wr_buffers[msg_bufno]->end_offset = in xillybus_isr()
204 channel->wr_fpga_buf_idx = msg_bufno; in xillybus_isr()
205 channel->wr_empty = 0; in xillybus_isr()
206 channel->wr_sleepy = 0; in xillybus_isr()
207 spin_unlock(&channel->wr_spinlock); in xillybus_isr()
209 wake_up_interruptible(&channel->wr_wait); in xillybus_isr()
[all …]
/linux-4.4.14/drivers/staging/most/aim-cdev/
Dcdev.c56 struct aim_channel *channel, *tmp; in get_channel() local
61 list_for_each_entry_safe(channel, tmp, &channel_list, list) { in get_channel()
62 if ((channel->iface == iface) && (channel->channel_id == id)) { in get_channel()
70 return channel; in get_channel()
83 struct aim_channel *channel; in aim_open() local
86 channel = to_channel(inode->i_cdev); in aim_open()
87 filp->private_data = channel; in aim_open()
89 if (((channel->cfg->direction == MOST_CH_RX) && in aim_open()
91 ((channel->cfg->direction == MOST_CH_TX) && in aim_open()
96 if (!atomic_inc_and_test(&channel->access_ref)) { in aim_open()
[all …]
/linux-4.4.14/drivers/soc/qcom/
Dsmd.c255 #define GET_RX_CHANNEL_FLAG(channel, param) \ argument
257 BUILD_BUG_ON(sizeof(channel->info->rx.param) != sizeof(u8)); \
258 channel->info_word ? \
259 le32_to_cpu(channel->info_word->rx.param) : \
260 channel->info->rx.param; \
263 #define GET_RX_CHANNEL_INFO(channel, param) \ argument
265 BUILD_BUG_ON(sizeof(channel->info->rx.param) != sizeof(u32)); \
266 le32_to_cpu(channel->info_word ? \
267 channel->info_word->rx.param : \
268 channel->info->rx.param); \
[all …]
/linux-4.4.14/drivers/hsi/controllers/
Domap_ssi_regs.h46 # define SSI_DATAACCEPT(channel) (1 << (channel)) argument
47 # define SSI_DATAAVAILABLE(channel) (1 << ((channel) + 8)) argument
48 # define SSI_DATAOVERRUN(channel) (1 << ((channel) + 16)) argument
53 # define SSI_GDD_LCH(channel) (1 << (channel)) argument
57 # define SSI_WAKE(channel) (1 << (channel)) argument
75 # define SSI_FULL(channel) (1 << (channel)) argument
84 #define SSI_SST_BUFFER_CH_REG(channel) (0x80 + ((channel) * 4)) argument
85 #define SSI_SST_SWAPBUF_CH_REG(channel) (0xc0 + ((channel) * 4)) argument
95 # define SSI_NOTEMPTY(channel) (1 << (channel)) argument
104 #define SSI_SSR_BUFFER_CH_REG(channel) (0x80 + ((channel) * 4)) argument
[all …]
/linux-4.4.14/drivers/staging/unisys/visorbus/
Dvisorchannel.c67 struct visorchannel *channel; in visorchannel_create_guts() local
74 channel = kzalloc(sizeof(*channel), gfp); in visorchannel_create_guts()
75 if (!channel) in visorchannel_create_guts()
78 channel->needs_lock = needs_lock; in visorchannel_create_guts()
79 spin_lock_init(&channel->insert_lock); in visorchannel_create_guts()
80 spin_lock_init(&channel->remove_lock); in visorchannel_create_guts()
88 channel->requested = request_mem_region(physaddr, size, MYDRVNAME); in visorchannel_create_guts()
89 if (!channel->requested) { in visorchannel_create_guts()
96 channel->mapped = memremap(physaddr, size, MEMREMAP_WB); in visorchannel_create_guts()
97 if (!channel->mapped) { in visorchannel_create_guts()
[all …]
/linux-4.4.14/drivers/ipack/devices/
Dipoctal.c52 struct ipoctal_channel channel[NR_CHANNELS]; member
61 return container_of(chan, struct ipoctal, channel[index]); in chan_to_ipoctal()
64 static void ipoctal_reset_channel(struct ipoctal_channel *channel) in ipoctal_reset_channel() argument
66 iowrite8(CR_DISABLE_RX | CR_DISABLE_TX, &channel->regs->w.cr); in ipoctal_reset_channel()
67 channel->rx_enable = 0; in ipoctal_reset_channel()
68 iowrite8(CR_CMD_RESET_RX, &channel->regs->w.cr); in ipoctal_reset_channel()
69 iowrite8(CR_CMD_RESET_TX, &channel->regs->w.cr); in ipoctal_reset_channel()
70 iowrite8(CR_CMD_RESET_ERR_STATUS, &channel->regs->w.cr); in ipoctal_reset_channel()
71 iowrite8(CR_CMD_RESET_MR, &channel->regs->w.cr); in ipoctal_reset_channel()
76 struct ipoctal_channel *channel; in ipoctal_port_activate() local
[all …]
/linux-4.4.14/drivers/staging/most/aim-sound/
Dsound.c47 struct channel { struct
163 static struct channel *get_channel(struct most_interface *iface, in get_channel()
166 struct channel *channel, *tmp; in get_channel() local
168 list_for_each_entry_safe(channel, tmp, &dev_list, list) { in get_channel()
169 if ((channel->iface == iface) && (channel->id == channel_id)) in get_channel()
170 return channel; in get_channel()
183 static bool copy_data(struct channel *channel, struct mbo *mbo) in copy_data() argument
185 struct snd_pcm_runtime *const runtime = channel->substream->runtime; in copy_data()
186 unsigned int const frame_bytes = channel->cfg->subbuffer_size; in copy_data()
191 if (channel->cfg->direction & MOST_CH_RX) in copy_data()
[all …]
/linux-4.4.14/arch/blackfin/include/asm/
Ddma.h185 extern int channel2irq(unsigned int channel);
187 static inline void set_dma_start_addr(unsigned int channel, unsigned long addr) in set_dma_start_addr() argument
189 dma_ch[channel].regs->start_addr = addr; in set_dma_start_addr()
191 static inline void set_dma_next_desc_addr(unsigned int channel, void *addr) in set_dma_next_desc_addr() argument
193 dma_ch[channel].regs->next_desc_ptr = addr; in set_dma_next_desc_addr()
195 static inline void set_dma_curr_desc_addr(unsigned int channel, void *addr) in set_dma_curr_desc_addr() argument
197 dma_ch[channel].regs->curr_desc_ptr = addr; in set_dma_curr_desc_addr()
199 static inline void set_dma_x_count(unsigned int channel, unsigned DMA_MMR_SIZE_TYPE x_count) in set_dma_x_count() argument
201 dma_ch[channel].regs->x_count = x_count; in set_dma_x_count()
203 static inline void set_dma_y_count(unsigned int channel, unsigned DMA_MMR_SIZE_TYPE y_count) in set_dma_y_count() argument
[all …]
/linux-4.4.14/drivers/gpu/host1x/
Dchannel.c42 struct host1x *host = dev_get_drvdata(job->channel->dev->parent); in host1x_job_submit()
48 struct host1x_channel *host1x_channel_get(struct host1x_channel *channel) in host1x_channel_get() argument
52 mutex_lock(&channel->reflock); in host1x_channel_get()
54 if (channel->refcount == 0) in host1x_channel_get()
55 err = host1x_cdma_init(&channel->cdma); in host1x_channel_get()
58 channel->refcount++; in host1x_channel_get()
60 mutex_unlock(&channel->reflock); in host1x_channel_get()
62 return err ? NULL : channel; in host1x_channel_get()
66 void host1x_channel_put(struct host1x_channel *channel) in host1x_channel_put() argument
68 mutex_lock(&channel->reflock); in host1x_channel_put()
[all …]
/linux-4.4.14/drivers/hsi/clients/
Dhsi_char.c129 static void hsc_add_tail(struct hsc_channel *channel, struct hsi_msg *msg, in hsc_add_tail() argument
134 spin_lock_irqsave(&channel->lock, flags); in hsc_add_tail()
136 spin_unlock_irqrestore(&channel->lock, flags); in hsc_add_tail()
139 static struct hsi_msg *hsc_get_first_msg(struct hsc_channel *channel, in hsc_get_first_msg() argument
145 spin_lock_irqsave(&channel->lock, flags); in hsc_get_first_msg()
153 spin_unlock_irqrestore(&channel->lock, flags); in hsc_get_first_msg()
174 static void hsc_reset_list(struct hsc_channel *channel, struct list_head *l) in hsc_reset_list() argument
179 spin_lock_irqsave(&channel->lock, flags); in hsc_reset_list()
181 spin_unlock_irqrestore(&channel->lock, flags); in hsc_reset_list()
208 static inline int hsc_msgs_alloc(struct hsc_channel *channel) in hsc_msgs_alloc() argument
[all …]
/linux-4.4.14/drivers/net/wireless/b43/
Dradio_2055.c305 { .channel = 184,
313 { .channel = 186,
321 { .channel = 188,
329 { .channel = 190,
337 { .channel = 192,
345 { .channel = 194,
353 { .channel = 196,
361 { .channel = 198,
369 { .channel = 200,
377 { .channel = 202,
[all …]
Dphy_lp.c35 static inline u16 channel2freq_lp(u8 channel) in channel2freq_lp() argument
37 if (channel < 14) in channel2freq_lp()
38 return (2407 + 5 * channel); in channel2freq_lp()
39 else if (channel == 14) in channel2freq_lp()
41 else if (channel < 184) in channel2freq_lp()
42 return (5000 + 5 * channel); in channel2freq_lp()
44 return (4000 + 5 * channel); in channel2freq_lp()
1456 static void lpphy_set_analog_filter(struct b43_wldev *dev, int channel) in lpphy_set_analog_filter() argument
1459 u16 tmp = (channel == 14); //SPEC FIXME check japanwidefilter! in lpphy_set_analog_filter()
1617 b43_write16(dev, B43_MMIO_CHANNEL, lpphy->channel); in lpphy_pr41573_workaround()
[all …]
/linux-4.4.14/drivers/tty/serial/jsm/
Djsm_tty.c75 struct jsm_channel *channel = in jsm_tty_get_mctrl() local
78 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_get_mctrl()
80 result = jsm_get_mstat(channel); in jsm_tty_get_mctrl()
85 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_get_mctrl()
97 struct jsm_channel *channel = in jsm_tty_set_mctrl() local
100 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_set_mctrl()
103 channel->ch_mostat |= UART_MCR_RTS; in jsm_tty_set_mctrl()
105 channel->ch_mostat &= ~UART_MCR_RTS; in jsm_tty_set_mctrl()
108 channel->ch_mostat |= UART_MCR_DTR; in jsm_tty_set_mctrl()
110 channel->ch_mostat &= ~UART_MCR_DTR; in jsm_tty_set_mctrl()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/powerpc/fsl/
Ddma.txt4 This is a little-endian 4-channel DMA controller, used in Freescale mpc83xx
18 - DMA channel nodes:
19 - compatible : must include "fsl,elo-dma-channel"
21 - reg : DMA channel specific registers
22 - cell-index : DMA channel index starts at 0.
25 - interrupts : interrupt specifier for DMA channel IRQ
40 dma-channel@0 {
41 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
47 dma-channel@80 {
48 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
[all …]
/linux-4.4.14/drivers/isdn/sc/
Dpacket.c23 int sndpkt(int devId, int channel, int ack, struct sk_buff *data) in sndpkt() argument
39 sc_adapter[card]->channel[channel].first_sendbuf, in sndpkt()
40 sc_adapter[card]->channel[channel].next_sendbuf, in sndpkt()
41 sc_adapter[card]->channel[channel].free_sendbufs, in sndpkt()
42 sc_adapter[card]->channel[channel].num_sendbufs); in sndpkt()
44 if (!sc_adapter[card]->channel[channel].free_sendbufs) { in sndpkt()
56 ReqLnkWrite.buff_offset = sc_adapter[card]->channel[channel].next_sendbuf * in sndpkt()
57 BUFFER_SIZE + sc_adapter[card]->channel[channel].first_sendbuf; in sndpkt()
70 sc_adapter[card]->channel[channel].next_sendbuf); in sndpkt()
73 channel + 1, sizeof(LLData), (unsigned int *)&ReqLnkWrite); in sndpkt()
[all …]
Dcommand.c25 static int dial(int card, unsigned long channel, setup_parm setup);
26 static int hangup(int card, unsigned long channel);
27 static int answer(int card, unsigned long channel);
28 static int clreaz(int card, unsigned long channel);
29 static int seteaz(int card, unsigned long channel, char *);
32 static int acceptb(int card, unsigned long channel);
161 static int dial(int card, unsigned long channel, setup_parm setup) in dial() argument
178 (unsigned char)channel + 1, in dial()
183 sc_adapter[card]->devicename, Phone, channel + 1); in dial()
191 static int answer(int card, unsigned long channel) in answer() argument
[all …]
/linux-4.4.14/drivers/usb/musb/
Dmusbhsdma.c40 static void dma_channel_release(struct dma_channel *channel);
45 struct dma_channel *channel; in dma_controller_stop() local
54 channel = &controller->channel[bit].channel; in dma_controller_stop()
55 dma_channel_release(channel); in dma_controller_stop()
70 struct dma_channel *channel = NULL; in dma_channel_allocate() local
76 musb_channel = &(controller->channel[bit]); in dma_channel_allocate()
81 channel = &(musb_channel->channel); in dma_channel_allocate()
82 channel->private_data = musb_channel; in dma_channel_allocate()
83 channel->status = MUSB_DMA_STATUS_FREE; in dma_channel_allocate()
84 channel->max_len = 0x100000; in dma_channel_allocate()
[all …]
Dux500_dma.c43 struct dma_channel channel; member
65 struct dma_channel *channel = private_data; in ux500_dma_callback() local
66 struct ux500_dma_channel *ux500_channel = channel->private_data; in ux500_dma_callback()
75 ux500_channel->channel.actual_len = ux500_channel->cur_len; in ux500_dma_callback()
76 ux500_channel->channel.status = MUSB_DMA_STATUS_FREE; in ux500_dma_callback()
82 static bool ux500_configure_channel(struct dma_channel *channel, in ux500_configure_channel() argument
86 struct ux500_dma_channel *ux500_channel = channel->private_data; in ux500_configure_channel()
132 dma_desc->callback_param = channel; in ux500_configure_channel()
172 return &(ux500_channel->channel); in ux500_dma_channel_allocate()
175 static void ux500_dma_channel_release(struct dma_channel *channel) in ux500_dma_channel_release() argument
[all …]
Dmusb_cppi41.c26 struct dma_channel channel; member
130 (cppi41_channel->channel.status == MUSB_DMA_STATUS_FREE)) { in cppi41_trans_done()
133 cppi41_channel->channel.actual_len = in cppi41_trans_done()
135 cppi41_channel->channel.status = MUSB_DMA_STATUS_FREE; in cppi41_trans_done()
136 cppi41_channel->channel.rx_packet_done = true; in cppi41_trans_done()
174 dma_desc->callback_param = &cppi41_channel->channel; in cppi41_trans_done()
225 struct dma_channel *channel = private_data; in cppi41_dma_callback() local
226 struct cppi41_dma_channel *cppi41_channel = channel->private_data; in cppi41_dma_callback()
366 static bool cppi41_configure_channel(struct dma_channel *channel, in cppi41_configure_channel() argument
370 struct cppi41_dma_channel *cppi41_channel = channel->private_data; in cppi41_configure_channel()
[all …]
Dtusb6010_omap.c109 struct dma_channel *channel = (struct dma_channel *)data; in tusb_omap_dma_cb() local
110 struct tusb_omap_dma_ch *chdat = to_chdat(channel); in tusb_omap_dma_cb()
149 channel->actual_len = chdat->transfer_len - remaining; in tusb_omap_dma_cb()
150 pio = chdat->len - channel->actual_len; in tusb_omap_dma_cb()
171 channel->actual_len += pio; in tusb_omap_dma_cb()
177 channel->status = MUSB_DMA_STATUS_FREE; in tusb_omap_dma_cb()
208 static int tusb_omap_dma_program(struct dma_channel *channel, u16 packet_sz, in tusb_omap_dma_program() argument
211 struct tusb_omap_dma_ch *chdat = to_chdat(channel); in tusb_omap_dma_program()
284 omap_set_dma_callback(ch, tusb_omap_dma_cb, channel); in tusb_omap_dma_program()
289 channel->actual_len = 0; in tusb_omap_dma_program()
[all …]
/linux-4.4.14/arch/sh/drivers/dma/
Ddma-api.c79 struct dma_channel *channel; in get_dma_channel() local
86 channel = &info->channels[i]; in get_dma_channel()
87 if (channel->vchan == chan) in get_dma_channel()
88 return channel; in get_dma_channel()
98 struct dma_channel *channel = get_dma_channel(chan); in get_dma_residue() local
101 return info->ops->get_residue(channel); in get_dma_residue()
150 struct dma_channel *channel = &info->channels[i]; in request_dma_bycap() local
152 if (unlikely(!channel->caps)) in request_dma_bycap()
156 if (!search_cap(channel->caps, *p)) in request_dma_bycap()
158 if (request_dma(channel->chan, dev_id) == 0) in request_dma_bycap()
[all …]
Ddma-g2.c40 struct g2_channel channel[G2_NR_DMA_CHANNELS]; member
51 ((g2_dma->channel[i].size - \
80 g2_dma->channel[chan_nr].chan_enable = 1; in g2_enable_dma()
81 g2_dma->channel[chan_nr].xfer_enable = 1; in g2_enable_dma()
90 g2_dma->channel[chan_nr].chan_enable = 0; in g2_disable_dma()
91 g2_dma->channel[chan_nr].xfer_enable = 0; in g2_disable_dma()
124 g2_dma->channel[chan_nr].g2_addr = chan->dar & 0x1fffffe0; in g2_xfer_dma()
125 g2_dma->channel[chan_nr].root_addr = chan->sar & 0x1fffffe0; in g2_xfer_dma()
126 g2_dma->channel[chan_nr].size = (chan->count & ~31) | 0x80000000; in g2_xfer_dma()
127 g2_dma->channel[chan_nr].direction = chan->mode; in g2_xfer_dma()
[all …]
Ddma-sysfs.c34 struct dma_channel *channel = get_dma_channel(i); in dma_show_devices() local
36 if (unlikely(!info) || !channel) in dma_show_devices()
40 channel->chan, info->name, in dma_show_devices()
41 channel->dev_id); in dma_show_devices()
64 struct dma_channel *channel = to_dma_channel(dev); in dma_show_dev_id() local
65 return sprintf(buf, "%s\n", channel->dev_id); in dma_show_dev_id()
72 struct dma_channel *channel = to_dma_channel(dev); in dma_store_dev_id() local
73 strcpy(channel->dev_id, buf); in dma_store_dev_id()
83 struct dma_channel *channel = to_dma_channel(dev); in dma_store_config() local
87 dma_configure_channel(channel->vchan, config); in dma_store_config()
[all …]
/linux-4.4.14/drivers/tty/serial/
Dip22zilog.c54 #define ZS_WSYNC(channel) do { } while (0) argument
112 static unsigned char read_zsreg(struct zilog_channel *channel, in read_zsreg() argument
117 writeb(reg, &channel->control); in read_zsreg()
119 retval = readb(&channel->control); in read_zsreg()
125 static void write_zsreg(struct zilog_channel *channel, in write_zsreg() argument
128 writeb(reg, &channel->control); in write_zsreg()
130 writeb(value, &channel->control); in write_zsreg()
134 static void ip22zilog_clear_fifo(struct zilog_channel *channel) in ip22zilog_clear_fifo() argument
141 regval = readb(&channel->control); in ip22zilog_clear_fifo()
146 regval = read_zsreg(channel, R1); in ip22zilog_clear_fifo()
[all …]
Dsunzilog.c59 #define ZS_WSYNC(channel) do { } while (0) argument
129 static unsigned char read_zsreg(struct zilog_channel __iomem *channel, in read_zsreg() argument
134 writeb(reg, &channel->control); in read_zsreg()
136 retval = readb(&channel->control); in read_zsreg()
142 static void write_zsreg(struct zilog_channel __iomem *channel, in write_zsreg() argument
145 writeb(reg, &channel->control); in write_zsreg()
147 writeb(value, &channel->control); in write_zsreg()
151 static void sunzilog_clear_fifo(struct zilog_channel __iomem *channel) in sunzilog_clear_fifo() argument
158 regval = readb(&channel->control); in sunzilog_clear_fifo()
163 regval = read_zsreg(channel, R1); in sunzilog_clear_fifo()
[all …]
Dip22zilog.h268 #define ZS_CLEARERR(channel) do { writeb(ERR_RES, &channel->control); \ argument
271 #define ZS_CLEARSTAT(channel) do { writeb(RES_EXT_INT, &channel->control); \ argument
274 #define ZS_CLEARFIFO(channel) do { readb(&channel->data); \ argument
276 readb(&channel->data); \
278 readb(&channel->data); \
Dsunzilog.h276 #define ZS_CLEARERR(channel) do { sbus_writeb(ERR_RES, &channel->control); \ argument
279 #define ZS_CLEARSTAT(channel) do { sbus_writeb(RES_EXT_INT, &channel->control); \ argument
282 #define ZS_CLEARFIFO(channel) do { sbus_readb(&channel->data); \ argument
284 sbus_readb(&channel->data); \
286 sbus_readb(&channel->data); \
/linux-4.4.14/drivers/uwb/
Dradio.c42 static void uwb_radio_channel_changed(struct uwb_rc *rc, int channel) in uwb_radio_channel_changed() argument
47 if (pal->channel && channel != pal->channel) { in uwb_radio_channel_changed()
48 pal->channel = channel; in uwb_radio_channel_changed()
50 pal->channel_changed(pal, pal->channel); in uwb_radio_channel_changed()
62 static int uwb_radio_change_channel(struct uwb_rc *rc, int channel) in uwb_radio_change_channel() argument
68 channel, rc->beaconing); in uwb_radio_change_channel()
70 if (channel == -1) in uwb_radio_change_channel()
71 uwb_radio_channel_changed(rc, channel); in uwb_radio_change_channel()
73 if (channel != rc->beaconing) { in uwb_radio_change_channel()
74 if (rc->beaconing != -1 && channel != -1) { in uwb_radio_change_channel()
[all …]
Dscan.c58 unsigned channel, enum uwb_scan_type type, in uwb_rc_scan() argument
72 cmd->bChannelNumber = channel; in uwb_rc_scan()
88 rc->scanning = channel; in uwb_rc_scan()
122 unsigned channel; in uwb_rc_scan_store() local
127 result = sscanf(buf, "%u %u %u\n", &channel, &type, &bpst_offset); in uwb_rc_scan_store()
129 result = uwb_rc_scan(rc, channel, type, bpst_offset); in uwb_rc_scan_store()
/linux-4.4.14/drivers/net/ethernet/sfc/
Defx.c204 static void efx_remove_channel(struct efx_channel *channel);
208 static void efx_init_napi_channel(struct efx_channel *channel);
210 static void efx_fini_napi_channel(struct efx_channel *channel);
246 static int efx_process_channel(struct efx_channel *channel, int budget) in efx_process_channel() argument
251 if (unlikely(!channel->enabled)) in efx_process_channel()
254 efx_for_each_channel_tx_queue(tx_queue, channel) { in efx_process_channel()
259 spent = efx_nic_process_eventq(channel, budget); in efx_process_channel()
260 if (spent && efx_channel_has_rx_queue(channel)) { in efx_process_channel()
262 efx_channel_get_rx_queue(channel); in efx_process_channel()
264 efx_rx_flush_packet(channel); in efx_process_channel()
[all …]
Dselftest.c170 struct efx_channel *channel; in efx_test_eventq_irq() local
177 efx_for_each_channel(channel, efx) { in efx_test_eventq_irq()
178 read_ptr[channel->channel] = channel->eventq_read_ptr; in efx_test_eventq_irq()
179 set_bit(channel->channel, &dma_pend); in efx_test_eventq_irq()
180 set_bit(channel->channel, &int_pend); in efx_test_eventq_irq()
181 efx_nic_event_test_start(channel); in efx_test_eventq_irq()
193 efx_for_each_channel(channel, efx) { in efx_test_eventq_irq()
194 efx_stop_eventq(channel); in efx_test_eventq_irq()
195 if (channel->eventq_read_ptr != in efx_test_eventq_irq()
196 read_ptr[channel->channel]) { in efx_test_eventq_irq()
[all …]
Dnet_driver.h231 struct efx_channel *channel; member
427 int channel; member
482 static inline void efx_channel_busy_poll_init(struct efx_channel *channel) in efx_channel_busy_poll_init() argument
484 WRITE_ONCE(channel->busy_poll_state, EFX_CHANNEL_STATE_IDLE); in efx_channel_busy_poll_init()
488 static inline bool efx_channel_lock_napi(struct efx_channel *channel) in efx_channel_lock_napi() argument
490 unsigned long prev, old = READ_ONCE(channel->busy_poll_state); in efx_channel_lock_napi()
497 &channel->busy_poll_state); in efx_channel_lock_napi()
504 prev = cmpxchg(&channel->busy_poll_state, old, in efx_channel_lock_napi()
517 static inline void efx_channel_unlock_napi(struct efx_channel *channel) in efx_channel_unlock_napi() argument
521 WRITE_ONCE(channel->busy_poll_state, EFX_CHANNEL_STATE_IDLE); in efx_channel_unlock_napi()
[all …]
Defx.h49 void __efx_rx_packet(struct efx_channel *channel);
52 static inline void efx_rx_flush_packet(struct efx_channel *channel) in efx_rx_flush_packet() argument
54 if (channel->rx_pkt_n_frags) in efx_rx_flush_packet()
55 __efx_rx_packet(channel); in efx_rx_flush_packet()
173 static inline void efx_filter_rfs_expire(struct efx_channel *channel) in efx_filter_rfs_expire() argument
175 if (channel->rfs_filters_added >= 60 && in efx_filter_rfs_expire()
176 __efx_filter_rfs_expire(channel->efx, 100)) in efx_filter_rfs_expire()
177 channel->rfs_filters_added -= 60; in efx_filter_rfs_expire()
181 static inline void efx_filter_rfs_expire(struct efx_channel *channel) {} in efx_filter_rfs_expire() argument
187 int efx_channel_dummy_op_int(struct efx_channel *channel);
[all …]
Dnic.h42 static inline efx_qword_t *efx_event(struct efx_channel *channel, in efx_event() argument
45 return ((efx_qword_t *) (channel->eventq.buf.addr)) + in efx_event()
46 (index & channel->eventq_mask); in efx_event()
559 int efx_ptp_probe(struct efx_nic *efx, struct efx_channel *channel);
573 void efx_time_sync_event(struct efx_channel *channel, efx_qword_t *ev);
574 void __efx_rx_skb_attach_timestamp(struct efx_channel *channel,
576 static inline void efx_rx_skb_attach_timestamp(struct efx_channel *channel, in efx_rx_skb_attach_timestamp() argument
579 if (channel->sync_events_state == SYNC_EVENTS_VALID) in efx_rx_skb_attach_timestamp()
580 __efx_rx_skb_attach_timestamp(channel, skb); in efx_rx_skb_attach_timestamp()
641 static inline int efx_nic_probe_eventq(struct efx_channel *channel) in efx_nic_probe_eventq() argument
[all …]
Dfarch.c70 _EFX_CHANNEL_MAGIC(_EFX_CHANNEL_MAGIC_TEST, (_channel)->channel)
81 static void efx_farch_magic_event(struct efx_channel *channel, u32 magic);
384 tx_queue->channel->channel, in efx_farch_tx_init()
546 efx_rx_queue_channel(rx_queue)->channel, in efx_farch_rx_init()
614 struct efx_channel *channel; in efx_check_tx_flush_complete() local
617 efx_for_each_channel(channel, efx) { in efx_check_tx_flush_complete()
618 efx_for_each_channel_tx_queue(tx_queue, channel) { in efx_check_tx_flush_complete()
641 efx_farch_magic_event(channel, in efx_check_tx_flush_complete()
657 struct efx_channel *channel; in efx_farch_do_flush() local
662 efx_for_each_channel(channel, efx) { in efx_farch_do_flush()
[all …]
Drx.c244 static void efx_recycle_rx_page(struct efx_channel *channel, in efx_recycle_rx_page() argument
248 struct efx_rx_queue *rx_queue = efx_channel_get_rx_queue(channel); in efx_recycle_rx_page()
292 static void efx_recycle_rx_pages(struct efx_channel *channel, in efx_recycle_rx_pages() argument
296 struct efx_rx_queue *rx_queue = efx_channel_get_rx_queue(channel); in efx_recycle_rx_pages()
299 efx_recycle_rx_page(channel, rx_buf); in efx_recycle_rx_pages()
304 static void efx_discard_rx_packet(struct efx_channel *channel, in efx_discard_rx_packet() argument
308 struct efx_rx_queue *rx_queue = efx_channel_get_rx_queue(channel); in efx_discard_rx_packet()
310 efx_recycle_rx_pages(channel, rx_buf, n_frags); in efx_discard_rx_packet()
426 efx_rx_packet_gro(struct efx_channel *channel, struct efx_rx_buffer *rx_buf, in efx_rx_packet_gro() argument
429 struct napi_struct *napi = &channel->napi_str; in efx_rx_packet_gro()
[all …]
Dnic.c57 bool efx_nic_event_present(struct efx_channel *channel) in efx_nic_event_present() argument
59 return efx_event_present(efx_event(channel, channel->eventq_read_ptr)); in efx_nic_event_present()
62 void efx_nic_event_test_start(struct efx_channel *channel) in efx_nic_event_test_start() argument
64 channel->event_test_cpu = -1; in efx_nic_event_test_start()
66 channel->efx->type->ev_test_generate(channel); in efx_nic_event_test_start()
81 struct efx_channel *channel; in efx_nic_init_interrupt() local
111 efx_for_each_channel(channel, efx) { in efx_nic_init_interrupt()
112 rc = request_irq(channel->irq, efx->type->irq_handle_msi, in efx_nic_init_interrupt()
114 efx->msi_context[channel->channel].name, in efx_nic_init_interrupt()
115 &efx->msi_context[channel->channel]); in efx_nic_init_interrupt()
[all …]
Def10.c523 struct efx_channel *channel; in efx_ef10_link_piobufs() local
555 efx_for_each_channel(channel, efx) { in efx_ef10_link_piobufs()
556 efx_for_each_channel_tx_queue(tx_queue, channel) { in efx_ef10_link_piobufs()
562 tx_queue->channel->channel - 1) * in efx_ef10_link_piobufs()
624 struct efx_channel *channel; in efx_ef10_forget_old_piobufs() local
628 efx_for_each_channel(channel, efx) in efx_ef10_forget_old_piobufs()
629 efx_for_each_channel_tx_queue(tx_queue, channel) in efx_ef10_forget_old_piobufs()
1530 static void efx_ef10_push_irq_moderation(struct efx_channel *channel) in efx_ef10_push_irq_moderation() argument
1532 struct efx_nic *efx = channel->efx; in efx_ef10_push_irq_moderation()
1536 if (channel->irq_moderation) { in efx_ef10_push_irq_moderation()
[all …]
Dethtool.c60 EFX_ETHTOOL_STAT(field, channel, n_##field, \
239 #define EFX_CHANNEL_NAME(_channel) "chan%d", _channel->channel
263 struct efx_channel *channel = in efx_fill_loopback_test() local
267 efx_for_each_channel_tx_queue(tx_queue, channel) { in efx_fill_loopback_test()
306 struct efx_channel *channel; in efx_ethtool_fill_self_tests() local
318 efx_for_each_channel(channel, efx) { in efx_ethtool_fill_self_tests()
320 &tests->eventq_dma[channel->channel], in efx_ethtool_fill_self_tests()
321 EFX_CHANNEL_NAME(channel), in efx_ethtool_fill_self_tests()
324 &tests->eventq_int[channel->channel], in efx_ethtool_fill_self_tests()
325 EFX_CHANNEL_NAME(channel), in efx_ethtool_fill_self_tests()
[all …]
/linux-4.4.14/sound/core/oss/
Dmulaw.c174 int channel; in mulaw_decode() local
176 for (channel = 0; channel < nchannels; ++channel) { in mulaw_decode()
181 if (!src_channels[channel].enabled) { in mulaw_decode()
182 if (dst_channels[channel].wanted) in mulaw_decode()
183 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_decode()
184 dst_channels[channel].enabled = 0; in mulaw_decode()
187 dst_channels[channel].enabled = 1; in mulaw_decode()
188 src = src_channels[channel].area.addr + src_channels[channel].area.first / 8; in mulaw_decode()
189 dst = dst_channels[channel].area.addr + dst_channels[channel].area.first / 8; in mulaw_decode()
190 src_step = src_channels[channel].area.step / 8; in mulaw_decode()
[all …]
Drate.c55 unsigned int channel; in rate_init() local
58 for (channel = 0; channel < plugin->src_format.channels; channel++) { in rate_init()
59 data->channels[channel].last_S1 = 0; in rate_init()
60 data->channels[channel].last_S2 = 0; in rate_init()
73 unsigned int channel; in resample_expand() local
79 for (channel = 0; channel < plugin->src_format.channels; channel++) { in resample_expand()
83 if (!src_channels[channel].enabled) { in resample_expand()
84 if (dst_channels[channel].wanted) in resample_expand()
85 snd_pcm_area_silence(&dst_channels[channel].area, 0, dst_frames, plugin->dst_format.format); in resample_expand()
86 dst_channels[channel].enabled = 0; in resample_expand()
[all …]
Dio.c49 int channel, channels = plugin->dst_format.channels; in io_playback_transfer() local
53 for (channel = 0; channel < channels; channel++) { in io_playback_transfer()
54 if (src_channels[channel].enabled) in io_playback_transfer()
55 bufs[channel] = src_channels[channel].area.addr; in io_playback_transfer()
57 bufs[channel] = NULL; in io_playback_transfer()
75 int channel, channels = plugin->dst_format.channels; in io_capture_transfer() local
79 for (channel = 0; channel < channels; channel++) { in io_capture_transfer()
80 if (dst_channels[channel].enabled) in io_capture_transfer()
81 bufs[channel] = dst_channels[channel].area.addr; in io_capture_transfer()
83 bufs[channel] = NULL; in io_capture_transfer()
[all …]
Dlinear.c61 int channel; in convert() local
63 for (channel = 0; channel < nchannels; ++channel) { in convert()
68 if (!src_channels[channel].enabled) { in convert()
69 if (dst_channels[channel].wanted) in convert()
70 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in convert()
71 dst_channels[channel].enabled = 0; in convert()
74 dst_channels[channel].enabled = 1; in convert()
75 src = src_channels[channel].area.addr + src_channels[channel].area.first / 8; in convert()
76 dst = dst_channels[channel].area.addr + dst_channels[channel].area.first / 8; in convert()
77 src_step = src_channels[channel].area.step / 8; in convert()
[all …]
/linux-4.4.14/arch/mips/jazz/
Djazzdma.c357 void vdma_enable(int channel) in vdma_enable() argument
362 printk("vdma_enable: channel %d\n", channel); in vdma_enable()
367 status = r4030_read_reg32(JAZZ_R4030_CHNL_ENABLE + (channel << 5)); in vdma_enable()
369 printk("VDMA: Channel %d: Address error!\n", channel); in vdma_enable()
371 printk("VDMA: Channel %d: Memory error!\n", channel); in vdma_enable()
376 r4030_write_reg32(JAZZ_R4030_CHNL_ENABLE + (channel << 5), in vdma_enable()
378 (channel << 5)) | R4030_TC_INTR in vdma_enable()
384 r4030_write_reg32(JAZZ_R4030_CHNL_ENABLE + (channel << 5), in vdma_enable()
386 (channel << 5)) | in vdma_enable()
395 void vdma_disable(int channel) in vdma_disable() argument
[all …]
/linux-4.4.14/arch/frv/kernel/
Ddma.c114 #define frv_clear_dma_inprogress(channel) \ argument
115 (void)__atomic32_fetch_and(~(1 << (channel)), &frv_dma_inprogress);
117 #define frv_set_dma_inprogress(channel) \ argument
118 (void)__atomic32_fetch_or(1 << (channel), &frv_dma_inprogress);
126 struct frv_dma_channel *channel = _channel; in dma_irq_handler() local
128 frv_clear_dma_inprogress(channel - frv_dma_channels); in dma_irq_handler()
129 return channel->handler(channel - frv_dma_channels, in dma_irq_handler()
130 __get_DMAC(channel->ioaddr, CSTR), in dma_irq_handler()
131 channel->data); in dma_irq_handler()
176 struct frv_dma_channel *channel; in frv_dma_open() local
[all …]
/linux-4.4.14/drivers/hv/
Dchannel_mgmt.c35 static void init_vp_index(struct vmbus_channel *channel,
140 struct vmbus_channel *channel; in alloc_channel() local
142 channel = kzalloc(sizeof(*channel), GFP_ATOMIC); in alloc_channel()
143 if (!channel) in alloc_channel()
146 channel->id = atomic_inc_return(&chan_num); in alloc_channel()
147 spin_lock_init(&channel->inbound_lock); in alloc_channel()
148 spin_lock_init(&channel->lock); in alloc_channel()
150 INIT_LIST_HEAD(&channel->sc_list); in alloc_channel()
151 INIT_LIST_HEAD(&channel->percpu_list); in alloc_channel()
153 return channel; in alloc_channel()
[all …]
Dchannel.c41 static void vmbus_setevent(struct vmbus_channel *channel) in vmbus_setevent() argument
45 if (channel->offermsg.monitor_allocated) { in vmbus_setevent()
47 sync_set_bit(channel->offermsg.child_relid & 31, in vmbus_setevent()
49 (channel->offermsg.child_relid >> 5)); in vmbus_setevent()
54 sync_set_bit(channel->monitor_bit, in vmbus_setevent()
56 [channel->monitor_grp].pending); in vmbus_setevent()
59 vmbus_set_event(channel); in vmbus_setevent()
371 int vmbus_establish_gpadl(struct vmbus_channel *channel, void *kbuffer, in vmbus_establish_gpadl() argument
395 gpadlmsg->child_relid = channel->offermsg.child_relid; in vmbus_establish_gpadl()
447 int vmbus_teardown_gpadl(struct vmbus_channel *channel, u32 gpadl_handle) in vmbus_teardown_gpadl() argument
[all …]
Dvmbus_drv.c124 static u8 channel_monitor_group(struct vmbus_channel *channel) in channel_monitor_group() argument
126 return (u8)channel->offermsg.monitorid / 32; in channel_monitor_group()
129 static u8 channel_monitor_offset(struct vmbus_channel *channel) in channel_monitor_offset() argument
131 return (u8)channel->offermsg.monitorid % 32; in channel_monitor_offset()
134 static u32 channel_pending(struct vmbus_channel *channel, in channel_pending() argument
137 u8 monitor_group = channel_monitor_group(channel); in channel_pending()
141 static u32 channel_latency(struct vmbus_channel *channel, in channel_latency() argument
144 u8 monitor_group = channel_monitor_group(channel); in channel_latency()
145 u8 monitor_offset = channel_monitor_offset(channel); in channel_latency()
149 static u32 channel_conn_id(struct vmbus_channel *channel, in channel_conn_id() argument
[all …]
Dconnection.c262 struct vmbus_channel *channel; in pcpu_relid2channel() local
267 list_for_each_entry(channel, pcpu_head, percpu_list) { in pcpu_relid2channel()
268 if (channel->offermsg.child_relid == relid) { in pcpu_relid2channel()
269 found_channel = channel; in pcpu_relid2channel()
283 struct vmbus_channel *channel; in relid2channel() local
290 list_for_each_entry(channel, &vmbus_connection.chn_list, listentry) { in relid2channel()
291 if (channel->offermsg.child_relid == relid) { in relid2channel()
292 found_channel = channel; in relid2channel()
294 } else if (!list_empty(&channel->sc_list)) { in relid2channel()
298 list_for_each_safe(cur, tmp, &channel->sc_list) { in relid2channel()
[all …]
Dhv_util.c104 struct vmbus_channel *channel = context; in shutdown_onchannelcallback() local
115 vmbus_recvpacket(channel, shut_txf_buf, in shutdown_onchannelcallback()
154 vmbus_sendpacket(channel, shut_txf_buf, in shutdown_onchannelcallback()
235 struct vmbus_channel *channel = context; in timesync_onchannelcallback() local
243 vmbus_recvpacket(channel, time_txf_buf, in timesync_onchannelcallback()
265 vmbus_sendpacket(channel, time_txf_buf, in timesync_onchannelcallback()
278 struct vmbus_channel *channel = context; in heartbeat_onchannelcallback() local
286 vmbus_recvpacket(channel, hbeat_txf_buf, in heartbeat_onchannelcallback()
309 vmbus_sendpacket(channel, hbeat_txf_buf, in heartbeat_onchannelcallback()
341 set_channel_read_state(dev->channel, false); in util_probe()
[all …]
/linux-4.4.14/drivers/staging/comedi/drivers/
Djr3_pci.c103 struct jr3_channel __iomem *channel; member
134 static int is_complete(struct jr3_channel __iomem *channel) in is_complete() argument
136 return get_s16(&channel->command_word0) == 0; in is_complete()
139 static void set_transforms(struct jr3_channel __iomem *channel, in set_transforms() argument
146 set_u16(&channel->transforms[num].link[i].link_type, in set_transforms()
149 set_s16(&channel->transforms[num].link[i].link_amount, in set_transforms()
157 static void use_transform(struct jr3_channel __iomem *channel, in use_transform() argument
160 set_s16(&channel->command_word0, 0x0500 + (transf_num & 0x000f)); in use_transform()
163 static void use_offset(struct jr3_channel __iomem *channel, short offset_num) in use_offset() argument
165 set_s16(&channel->command_word0, 0x0600 + (offset_num & 0x000f)); in use_offset()
[all …]
Dmite.c67 mite->channels[i].channel = i; in mite_alloc()
85 static unsigned mite_fifo_size(struct mite_struct *mite, unsigned channel) in mite_fifo_size() argument
87 unsigned fcr_bits = readl(mite->mite_io_addr + MITE_FCR(channel)); in mite_fifo_size()
224 struct mite_channel *channel = NULL; in mite_request_channel_in_range() local
234 channel = &mite->channels[i]; in mite_request_channel_in_range()
235 channel->ring = ring; in mite_request_channel_in_range()
240 return channel; in mite_request_channel_in_range()
251 if (mite->channel_allocated[mite_chan->channel]) { in mite_release_channel()
262 mite->mite_io_addr + MITE_CHCR(mite_chan->channel)); in mite_release_channel()
263 mite->channel_allocated[mite_chan->channel] = 0; in mite_release_channel()
[all …]
Dcb_pcidda.c67 #define CAL_CHANNEL_BITS(channel) (((channel) << 1) & CAL_CHANNEL_MASK) argument
233 unsigned int caldac, unsigned int channel, in cb_pcidda_write_caldac() argument
246 cb_pcidda_serial_out(dev, channel, num_channel_bits); in cb_pcidda_write_caldac()
266 static void cb_pcidda_calibrate(struct comedi_device *dev, unsigned int channel, in cb_pcidda_calibrate() argument
270 unsigned int caldac = channel / 2; /* two caldacs per channel */ in cb_pcidda_calibrate()
271 unsigned int chan = 4 * (channel % 2); /* caldac channel base */ in cb_pcidda_calibrate()
272 unsigned int index = 2 * range + 12 * channel; in cb_pcidda_calibrate()
277 devpriv->ao_range[channel] = range; in cb_pcidda_calibrate()
300 unsigned int channel = CR_CHAN(insn->chanspec); in cb_pcidda_ao_insn_write() local
304 if (range != devpriv->ao_range[channel]) in cb_pcidda_ao_insn_write()
[all …]
/linux-4.4.14/drivers/iio/adc/
Dtwl6030-gpadc.c98 int channel; member
121 int (*start_conversion)(int channel);
122 u8 (*channel_to_reg)(int channel);
154 .channel = 0,
161 .channel = 1,
168 .channel = 2,
175 .channel = 3,
182 .channel = 4,
189 .channel = 5,
196 .channel = 6,
[all …]
Dad7476.c29 struct iio_chan_spec channel[2]; member
118 *val = (ret >> st->chip_info->channel[0].scan_type.shift) & in ad7476_read_raw()
119 GENMASK(st->chip_info->channel[0].scan_type.realbits - 1, 0); in ad7476_read_raw()
159 .channel[0] = AD7091R_CHAN(12),
160 .channel[1] = IIO_CHAN_SOFT_TIMESTAMP(1),
164 .channel[0] = AD7940_CHAN(12),
165 .channel[1] = IIO_CHAN_SOFT_TIMESTAMP(1),
168 .channel[0] = AD7940_CHAN(10),
169 .channel[1] = IIO_CHAN_SOFT_TIMESTAMP(1),
172 .channel[0] = AD7940_CHAN(8),
[all …]
Dda9150-gpadc.c160 static int da9150_gpadc_read_processed(struct da9150_gpadc *gpadc, int channel, in da9150_gpadc_read_processed() argument
169 switch (channel) { in da9150_gpadc_read_processed()
194 static int da9150_gpadc_read_scale(int channel, int *val, int *val2) in da9150_gpadc_read_scale() argument
196 switch (channel) { in da9150_gpadc_read_scale()
211 static int da9150_gpadc_read_offset(int channel, int *val) in da9150_gpadc_read_offset() argument
213 switch (channel) { in da9150_gpadc_read_offset()
232 if ((chan->channel < DA9150_GPADC_CHAN_GPIOA) || in da9150_gpadc_read_raw()
233 (chan->channel > DA9150_GPADC_CHAN_TJUNC_OVP)) in da9150_gpadc_read_raw()
239 return da9150_gpadc_read_processed(gpadc, chan->channel, in da9150_gpadc_read_raw()
242 return da9150_gpadc_read_scale(chan->channel, val, val2); in da9150_gpadc_read_raw()
[all …]
Dcc10001_adc.c96 unsigned int channel) in cc10001_adc_start() argument
101 val = (channel & CC10001_ADC_CH_MASK) | CC10001_ADC_MODE_SINGLE_CONV; in cc10001_adc_start()
111 unsigned int channel, in cc10001_adc_poll_done() argument
127 CC10001_ADC_CH_MASK) != channel) { in cc10001_adc_poll_done()
145 unsigned int channel; in cc10001_adc_trigger_h() local
168 channel = indio_dev->channels[scan_idx].channel; in cc10001_adc_trigger_h()
169 cc10001_adc_start(adc_dev, channel); in cc10001_adc_trigger_h()
171 data[i] = cc10001_adc_poll_done(indio_dev, channel, delay_ns); in cc10001_adc_trigger_h()
174 "invalid sample on channel %d\n", channel); in cc10001_adc_trigger_h()
208 cc10001_adc_start(adc_dev, chan->channel); in cc10001_adc_read_raw_voltage()
[all …]
/linux-4.4.14/drivers/mailbox/
Dmailbox-sti.c87 unsigned int channel; member
95 unsigned int channel = chan_info->channel; in sti_mbox_channel_is_enabled() local
97 return mdev->enabled[instance] & BIT(channel); in sti_mbox_channel_is_enabled()
103 unsigned int channel) in sti_mbox_to_channel() argument
112 chan_info->channel == channel) in sti_mbox_to_channel()
118 instance, channel); in sti_mbox_to_channel()
128 unsigned int channel = chan_info->channel; in sti_mbox_enable_channel() local
133 mdev->enabled[instance] |= BIT(channel); in sti_mbox_enable_channel()
134 writel_relaxed(BIT(channel), base + STI_ENA_SET_OFFSET); in sti_mbox_enable_channel()
143 unsigned int channel = chan_info->channel; in sti_mbox_disable_channel() local
[all …]
/linux-4.4.14/drivers/net/wireless/ipw2x00/
Dlibipw_geo.c45 int libipw_is_valid_channel(struct libipw_device *ieee, u8 channel) in libipw_is_valid_channel() argument
59 if ((ieee->geo.bg[i].channel == channel) && in libipw_is_valid_channel()
67 if ((ieee->geo.a[i].channel == channel) && in libipw_is_valid_channel()
74 int libipw_channel_to_index(struct libipw_device *ieee, u8 channel) in libipw_channel_to_index() argument
85 if (ieee->geo.bg[i].channel == channel) in libipw_channel_to_index()
90 if (ieee->geo.a[i].channel == channel) in libipw_channel_to_index()
96 u32 libipw_channel_to_freq(struct libipw_device * ieee, u8 channel) in libipw_channel_to_freq() argument
105 ch = libipw_get_channel(ieee, channel); in libipw_channel_to_freq()
106 if (!ch->channel) in libipw_channel_to_freq()
125 return ieee->geo.bg[i].channel; in libipw_freq_to_channel()
[all …]
/linux-4.4.14/drivers/net/ethernet/amd/xgbe/
Dxgbe-drv.c135 struct xgbe_channel *channel_mem, *channel; in xgbe_alloc_channels() local
156 for (i = 0, channel = channel_mem; i < count; i++, channel++) { in xgbe_alloc_channels()
157 snprintf(channel->name, sizeof(channel->name), "channel-%d", i); in xgbe_alloc_channels()
158 channel->pdata = pdata; in xgbe_alloc_channels()
159 channel->queue_index = i; in xgbe_alloc_channels()
160 channel->dma_regs = pdata->xgmac_regs + DMA_CH_BASE + in xgbe_alloc_channels()
173 channel->dma_irq = ret; in xgbe_alloc_channels()
178 channel->tx_ring = tx_ring++; in xgbe_alloc_channels()
183 channel->rx_ring = rx_ring++; in xgbe_alloc_channels()
188 channel->name, channel->dma_regs, channel->dma_irq, in xgbe_alloc_channels()
[all …]
Dxgbe-dev.c174 struct xgbe_channel *channel; in xgbe_config_pblx8() local
177 channel = pdata->channel; in xgbe_config_pblx8()
178 for (i = 0; i < pdata->channel_count; i++, channel++) in xgbe_config_pblx8()
179 XGMAC_DMA_IOWRITE_BITS(channel, DMA_CH_CR, PBLX8, in xgbe_config_pblx8()
187 return XGMAC_DMA_IOREAD_BITS(pdata->channel, DMA_CH_TCR, PBL); in xgbe_get_tx_pbl_val()
192 struct xgbe_channel *channel; in xgbe_config_tx_pbl_val() local
195 channel = pdata->channel; in xgbe_config_tx_pbl_val()
196 for (i = 0; i < pdata->channel_count; i++, channel++) { in xgbe_config_tx_pbl_val()
197 if (!channel->tx_ring) in xgbe_config_tx_pbl_val()
200 XGMAC_DMA_IOWRITE_BITS(channel, DMA_CH_TCR, PBL, in xgbe_config_tx_pbl_val()
[all …]
Dxgbe-desc.c174 struct xgbe_channel *channel; in xgbe_free_ring_resources() local
179 channel = pdata->channel; in xgbe_free_ring_resources()
180 for (i = 0; i < pdata->channel_count; i++, channel++) { in xgbe_free_ring_resources()
181 xgbe_free_ring(pdata, channel->tx_ring); in xgbe_free_ring_resources()
182 xgbe_free_ring(pdata, channel->rx_ring); in xgbe_free_ring_resources()
222 struct xgbe_channel *channel; in xgbe_alloc_ring_resources() local
228 channel = pdata->channel; in xgbe_alloc_ring_resources()
229 for (i = 0; i < pdata->channel_count; i++, channel++) { in xgbe_alloc_ring_resources()
231 channel->name); in xgbe_alloc_ring_resources()
233 ret = xgbe_init_ring(pdata, channel->tx_ring, in xgbe_alloc_ring_resources()
[all …]
/linux-4.4.14/sound/firewire/
Diso-resources.c109 int bandwidth, channel, err; in fw_iso_resources_allocate() local
130 &channel, &bandwidth, true); in fw_iso_resources_allocate()
131 if (channel == -EAGAIN) { in fw_iso_resources_allocate()
135 if (channel >= 0) { in fw_iso_resources_allocate()
136 r->channel = channel; in fw_iso_resources_allocate()
139 if (channel == -EBUSY) in fw_iso_resources_allocate()
149 return channel; in fw_iso_resources_allocate()
167 int bandwidth, channel; in fw_iso_resources_update() local
183 fw_iso_resource_manage(card, r->generation, 1uLL << r->channel, in fw_iso_resources_update()
184 &channel, &bandwidth, true); in fw_iso_resources_update()
[all …]
/linux-4.4.14/drivers/clk/bcm/
Dclk-ns2.c59 .channel = BCM_NS2_GENPLL_SCR_SCR_CLK,
65 .channel = BCM_NS2_GENPLL_SCR_FS_CLK,
71 .channel = BCM_NS2_GENPLL_SCR_AUDIO_CLK,
77 .channel = BCM_NS2_GENPLL_SCR_CH3_UNUSED,
83 .channel = BCM_NS2_GENPLL_SCR_CH4_UNUSED,
89 .channel = BCM_NS2_GENPLL_SCR_CH5_UNUSED,
121 .channel = BCM_NS2_GENPLL_SW_RPE_CLK,
127 .channel = BCM_NS2_GENPLL_SW_250_CLK,
133 .channel = BCM_NS2_GENPLL_SW_NIC_CLK,
139 .channel = BCM_NS2_GENPLL_SW_CHIMP_CLK,
[all …]
Dclk-cygnus.c73 .channel = BCM_CYGNUS_GENPLL_AXI21_CLK,
79 .channel = BCM_CYGNUS_GENPLL_250MHZ_CLK,
85 .channel = BCM_CYGNUS_GENPLL_IHOST_SYS_CLK,
91 .channel = BCM_CYGNUS_GENPLL_ENET_SW_CLK,
97 .channel = BCM_CYGNUS_GENPLL_AUDIO_125_CLK,
103 .channel = BCM_CYGNUS_GENPLL_CAN_CLK,
131 .channel = BCM_CYGNUS_LCPLL0_PCIE_PHY_REF_CLK,
137 .channel = BCM_CYGNUS_LCPLL0_DDR_PHY_CLK,
143 .channel = BCM_CYGNUS_LCPLL0_SDIO_CLK,
149 .channel = BCM_CYGNUS_LCPLL0_USB_PHY_REF_CLK,
[all …]
Dclk-nsp.c58 .channel = BCM_NSP_GENPLL_PHY_CLK,
64 .channel = BCM_NSP_GENPLL_ENET_SW_CLK,
70 .channel = BCM_NSP_GENPLL_USB_PHY_REF_CLK,
76 .channel = BCM_NSP_GENPLL_IPROCFAST_CLK,
82 .channel = BCM_NSP_GENPLL_SATA1_CLK,
88 .channel = BCM_NSP_GENPLL_SATA2_CLK,
115 .channel = BCM_NSP_LCPLL0_PCIE_PHY_REF_CLK,
121 .channel = BCM_NSP_LCPLL0_SDIO_CLK,
127 .channel = BCM_NSP_LCPLL0_DDR_PHY_CLK,
/linux-4.4.14/drivers/net/ethernet/neterion/vxge/
Dvxge-traffic.c293 void vxge_hw_channel_msix_mask(struct __vxge_hw_channel *channel, int msix_id) in vxge_hw_channel_msix_mask() argument
298 &channel->common_reg->set_msix_mask_vect[msix_id%4]); in vxge_hw_channel_msix_mask()
311 vxge_hw_channel_msix_unmask(struct __vxge_hw_channel *channel, int msix_id) in vxge_hw_channel_msix_unmask() argument
316 &channel->common_reg->clear_msix_mask_vect[msix_id%4]); in vxge_hw_channel_msix_unmask()
329 void vxge_hw_channel_msix_clear(struct __vxge_hw_channel *channel, int msix_id) in vxge_hw_channel_msix_clear() argument
333 &channel->common_reg->clr_msix_one_shot_vec[msix_id % 4]); in vxge_hw_channel_msix_clear()
1005 vxge_hw_channel_dtr_alloc(struct __vxge_hw_channel *channel, void **dtrh) in vxge_hw_channel_dtr_alloc() argument
1007 if (channel->reserve_ptr - channel->reserve_top > 0) { in vxge_hw_channel_dtr_alloc()
1009 *dtrh = channel->reserve_arr[--channel->reserve_ptr]; in vxge_hw_channel_dtr_alloc()
1020 if (channel->length - channel->free_ptr > 0) { in vxge_hw_channel_dtr_alloc()
[all …]
/linux-4.4.14/sound/oss/
Dmidi_synth.c283 midi_synth_kill_note(int dev, int channel, int note, int velocity) in midi_synth_kill_note() argument
290 if (channel < 0 || channel > 15) in midi_synth_kill_note()
302 if (chn == channel && ((msg == 0x90 && velocity == 64) || msg == 0x80)) in midi_synth_kill_note()
324 if (!prefix_cmd(orig_dev, 0x90 | (channel & 0x0f))) in midi_synth_kill_note()
326 midi_outc(orig_dev, 0x90 | (channel & 0x0f)); /* in midi_synth_kill_note()
335 if (!prefix_cmd(orig_dev, 0x80 | (channel & 0x0f))) in midi_synth_kill_note()
337 midi_outc(orig_dev, 0x80 | (channel & 0x0f)); /* in midi_synth_kill_note()
350 midi_synth_set_instr(int dev, int channel, int instr_no) in midi_synth_set_instr() argument
356 if (channel < 0 || channel > 15) in midi_synth_set_instr()
361 if (!prefix_cmd(orig_dev, 0xc0 | (channel & 0x0f))) in midi_synth_set_instr()
[all …]
Dmidi_synth.h3 int midi_synth_kill_note (int dev, int channel, int note, int velocity);
4 int midi_synth_set_instr (int dev, int channel, int instr_no);
5 int midi_synth_start_note (int dev, int channel, int note, int volume);
12 void midi_synth_panning (int dev, int channel, int pressure);
13 void midi_synth_aftertouch (int dev, int channel, int pressure);
14 void midi_synth_controller (int dev, int channel, int ctrl_num, int value);
/linux-4.4.14/drivers/hwmon/
Dmax197.c59 static inline void max197_set_unipolarity(struct max197_data *data, int channel) in max197_set_unipolarity() argument
61 data->ctrl_bytes[channel] &= ~MAX197_BIP; in max197_set_unipolarity()
64 static inline void max197_set_bipolarity(struct max197_data *data, int channel) in max197_set_bipolarity() argument
66 data->ctrl_bytes[channel] |= MAX197_BIP; in max197_set_bipolarity()
69 static inline void max197_set_half_range(struct max197_data *data, int channel) in max197_set_half_range() argument
71 data->ctrl_bytes[channel] &= ~MAX197_RNG; in max197_set_half_range()
74 static inline void max197_set_full_range(struct max197_data *data, int channel) in max197_set_full_range() argument
76 data->ctrl_bytes[channel] |= MAX197_RNG; in max197_set_full_range()
79 static inline bool max197_is_bipolar(struct max197_data *data, int channel) in max197_is_bipolar() argument
81 return data->ctrl_bytes[channel] & MAX197_BIP; in max197_is_bipolar()
[all …]
Dda9055-hwmon.c61 unsigned char channel) in da9055_adc_manual_read() argument
69 if (channel > DA9055_ADC_TJUNC) in da9055_adc_manual_read()
75 mux_sel = chan_mux[channel] | DA9055_ADC_MAN_CONV; in da9055_adc_manual_read()
121 static inline int volt_reg_to_mv(int value, int channel) in volt_reg_to_mv() argument
123 if (channel == DA9055_ADC_VSYS) in volt_reg_to_mv()
129 static int da9055_enable_auto_mode(struct da9055 *da9055, int channel) in da9055_enable_auto_mode() argument
132 return da9055_reg_update(da9055, DA9055_REG_ADC_CONT, 1 << channel, in da9055_enable_auto_mode()
133 1 << channel); in da9055_enable_auto_mode()
137 static int da9055_disable_auto_mode(struct da9055 *da9055, int channel) in da9055_disable_auto_mode() argument
140 return da9055_reg_update(da9055, DA9055_REG_ADC_CONT, 1 << channel, 0); in da9055_disable_auto_mode()
[all …]
Dads1015.c73 static int ads1015_read_adc(struct i2c_client *client, unsigned int channel) in ads1015_read_adc() argument
77 unsigned int pga = data->channel_data[channel].pga; in ads1015_read_adc()
78 unsigned int data_rate = data->channel_data[channel].data_rate; in ads1015_read_adc()
96 config |= (channel & 0x0007) << 12; in ads1015_read_adc()
123 static int ads1015_reg_to_mv(struct i2c_client *client, unsigned int channel, in ads1015_reg_to_mv() argument
127 unsigned int pga = data->channel_data[channel].pga; in ads1015_reg_to_mv()
188 unsigned int channel; in ads1015_get_channels_config_of() local
198 channel = pval; in ads1015_get_channels_config_of()
199 if (channel >= ADS1015_CHANNELS) { in ads1015_get_channels_config_of()
202 channel, node->full_name); in ads1015_get_channels_config_of()
[all …]
Dpcf8591.c88 static int pcf8591_read_channel(struct device *dev, int channel);
91 #define show_in_channel(channel) \ argument
92 static ssize_t show_in##channel##_input(struct device *dev, \
96 return sprintf(buf, "%d\n", pcf8591_read_channel(dev, channel));\
98 static DEVICE_ATTR(in##channel##_input, S_IRUGO, \
99 show_in##channel##_input, NULL);
273 static int pcf8591_read_channel(struct device *dev, int channel) in pcf8591_read_channel() argument
281 if ((data->control & PCF8591_CONTROL_AICH_MASK) != channel) { in pcf8591_read_channel()
283 | channel; in pcf8591_read_channel()
296 if ((channel == 2 && input_mode == 2) || in pcf8591_read_channel()
[all …]
/linux-4.4.14/Documentation/sound/alsa/
DChannel-Mapping-API.txt1 ALSA PCM channel-mapping API
8 The channel mapping API allows user to query the possible channel maps
9 and the current channel map, also optionally to modify the channel map
12 A channel map is an array of position for each PCM channel.
13 Typically, a stereo PCM stream has a channel map of
15 while a 4.0 surround PCM stream has a channel map of
18 The problem, so far, was that we had no standard channel map
19 explicitly, and applications had no way to know which channel
27 was no way to specify this because of lack of channel map
28 specification. These are the main motivations for the new channel
[all …]
/linux-4.4.14/sound/pci/emu10k1/
Dp16v.c177 struct snd_emu10k1_voice *channel = &(emu->p16v_voices[channel_id]); in snd_p16v_pcm_open_playback_channel() local
198 channel->emu = emu; in snd_p16v_pcm_open_playback_channel()
199 channel->number = channel_id; in snd_p16v_pcm_open_playback_channel()
201 channel->use=1; in snd_p16v_pcm_open_playback_channel()
205 channel_id, channel, channel->use); in snd_p16v_pcm_open_playback_channel()
207 channel_id, chip, channel); in snd_p16v_pcm_open_playback_channel()
210 channel->epcm = epcm; in snd_p16v_pcm_open_playback_channel()
225 struct snd_emu10k1_voice *channel = &(emu->p16v_capture_voice); in snd_p16v_pcm_open_capture_channel() local
246 channel->emu = emu; in snd_p16v_pcm_open_capture_channel()
247 channel->number = channel_id; in snd_p16v_pcm_open_capture_channel()
[all …]
/linux-4.4.14/drivers/staging/unisys/include/
Dvisorbus.h193 void visorchannel_destroy(struct visorchannel *channel);
194 int visorchannel_read(struct visorchannel *channel, ulong offset,
196 int visorchannel_write(struct visorchannel *channel, ulong offset,
198 int visorchannel_clear(struct visorchannel *channel, ulong offset,
200 bool visorchannel_signalremove(struct visorchannel *channel, u32 queue,
202 bool visorchannel_signalinsert(struct visorchannel *channel, u32 queue,
204 bool visorchannel_signalempty(struct visorchannel *channel, u32 queue);
206 int visorchannel_signalqueue_slots_avail(struct visorchannel *channel,
208 int visorchannel_signalqueue_max_slots(struct visorchannel *channel, u32 queue);
209 u64 visorchannel_get_physaddr(struct visorchannel *channel);
[all …]
/linux-4.4.14/drivers/gpu/drm/imx/
Dimx-ldb.c78 struct imx_ldb_channel channel[2]; member
227 if (imx_ldb_ch == &ldb->channel[0] || dual) { in imx_ldb_encoder_commit()
234 if (imx_ldb_ch == &ldb->channel[1] || dual) { in imx_ldb_encoder_commit()
245 if (imx_ldb_ch == &ldb->channel[0]) in imx_ldb_encoder_commit()
247 else if (imx_ldb_ch == &ldb->channel[1]) in imx_ldb_encoder_commit()
290 if (imx_ldb_ch == &ldb->channel[0]) { in imx_ldb_encoder_mode_set()
296 if (imx_ldb_ch == &ldb->channel[1]) { in imx_ldb_encoder_mode_set()
315 if (imx_ldb_ch == &ldb->channel[0] && in imx_ldb_encoder_disable()
318 else if (imx_ldb_ch == &ldb->channel[1] && in imx_ldb_encoder_disable()
324 if (imx_ldb_ch == &ldb->channel[0]) in imx_ldb_encoder_disable()
[all …]
/linux-4.4.14/drivers/staging/most/Documentation/ABI/
Dsysfs-class-most.txt14 This is used to establish a connection of a channel and the
23 This is used to remove a connected channel from the
54 What: /sys/class/most/mostcore/devices/<mdev>/<channel>/
59 For every channel of the device a directory is created, whose
61 collect information about the channel's capabilities and
65 What: /sys/class/most/mostcore/devices/<mdev>/<channel>/available_datatypes
70 Indicates the data types the current channel can transport.
73 What: /sys/class/most/mostcore/devices/<mdev>/<channel>/available_directions
78 Indicates the directions the current channel is capable of.
81 What: /sys/class/most/mostcore/devices/<mdev>/<channel>/number_of_packet_buffers
[all …]
/linux-4.4.14/drivers/media/i2c/
Dtw2804.c42 u8 channel:2; member
118 static int write_reg(struct i2c_client *client, u8 reg, u8 value, u8 channel) in write_reg() argument
120 return i2c_smbus_write_byte_data(client, reg | (channel << 6), value); in write_reg()
123 static int write_regs(struct i2c_client *client, const u8 *regs, u8 channel) in write_regs() argument
130 regs[i] | (channel << 6), regs[i + 1]); in write_regs()
137 static int read_reg(struct i2c_client *client, u8 reg, u8 channel) in read_reg() argument
139 return i2c_smbus_read_byte_data(client, (reg) | (channel << 6)); in read_reg()
158 v4l2_info(sd, "Channel: %d\n", state->channel); in tw2804_log_status()
211 reg = read_reg(client, addr, state->channel); in tw2804_s_ctrl()
218 return write_reg(client, addr, reg, state->channel); in tw2804_s_ctrl()
[all …]
/linux-4.4.14/drivers/media/platform/sti/c8sectpfe/
Dc8sectpfe-core.c67 struct channel_info *channel; in c8sectpfe_timer_interrupt() local
72 channel = fei->channel_data[chan_num]; in c8sectpfe_timer_interrupt()
75 if (channel->irec && readl(channel->irec + DMA_PRDS_TPENABLE)) in c8sectpfe_timer_interrupt()
76 tasklet_schedule(&channel->tsklet); in c8sectpfe_timer_interrupt()
85 struct channel_info *channel = (struct channel_info *)data; in channel_swdemux_tsklet() local
86 struct c8sectpfei *fei = channel->fei; in channel_swdemux_tsklet()
91 if (unlikely(!channel || !channel->irec)) in channel_swdemux_tsklet()
94 wp = readl(channel->irec + DMA_PRDS_BUSWP_TP(0)); in channel_swdemux_tsklet()
95 rp = readl(channel->irec + DMA_PRDS_BUSRP_TP(0)); in channel_swdemux_tsklet()
97 pos = rp - channel->back_buffer_busaddr; in channel_swdemux_tsklet()
[all …]
/linux-4.4.14/drivers/gpu/ipu-v3/
Dipu-common.c252 struct ipuv3_channel *channel; in ipu_idmac_get() local
261 channel = &ipu->channel[num]; in ipu_idmac_get()
263 if (channel->busy) { in ipu_idmac_get()
264 channel = ERR_PTR(-EBUSY); in ipu_idmac_get()
268 channel->busy = true; in ipu_idmac_get()
269 channel->num = num; in ipu_idmac_get()
274 return channel; in ipu_idmac_get()
278 void ipu_idmac_put(struct ipuv3_channel *channel) in ipu_idmac_put() argument
280 struct ipu_soc *ipu = channel->ipu; in ipu_idmac_put()
282 dev_dbg(ipu->dev, "%s %d\n", __func__, channel->num); in ipu_idmac_put()
[all …]
/linux-4.4.14/drivers/iio/
Dinkern.c128 static int __of_iio_channel_get(struct iio_channel *channel, in __of_iio_channel_get() argument
149 channel->indio_dev = indio_dev; in __of_iio_channel_get()
156 channel->channel = &indio_dev->channels[index]; in __of_iio_channel_get()
167 struct iio_channel *channel; in of_iio_channel_get() local
173 channel = kzalloc(sizeof(*channel), GFP_KERNEL); in of_iio_channel_get()
174 if (channel == NULL) in of_iio_channel_get()
177 err = __of_iio_channel_get(channel, np, index); in of_iio_channel_get()
181 return channel; in of_iio_channel_get()
184 kfree(channel); in of_iio_channel_get()
286 struct iio_channel *channel; in iio_channel_get_sys() local
[all …]
/linux-4.4.14/arch/m68k/include/asm/
Dm68360_regs.h364 #define CHANNEL_PRAM_BASE(quicc,channel) ((struct quicc32_pram *) \ argument
365 (&(quicc->ch_or_u.ch_pram_tbl[channel])))
366 #define TBD_32_ADDR(quicc,page,channel) ((struct quicc_bd *) \ argument
367 (MCBASE(quicc,page) + (CHANNEL_PRAM_BASE(quicc,channel)->tbase)))
368 #define RBD_32_ADDR(quicc,page,channel) ((struct quicc_bd *) \ argument
369 (MCBASE(quicc,page) + (CHANNEL_PRAM_BASE(quicc,channel)->rbase)))
370 #define TBD_32_CUR_ADDR(quicc,page,channel) ((struct quicc_bd *) \ argument
371 (MCBASE(quicc,page) + (CHANNEL_PRAM_BASE(quicc,channel)->tbptr)))
372 #define RBD_32_CUR_ADDR(quicc,page,channel) ((struct quicc_bd *) \ argument
373 (MCBASE(quicc,page) + (CHANNEL_PRAM_BASE(quicc,channel)->rbptr)))
[all …]
/linux-4.4.14/drivers/isdn/icn/
Dicn.c57 icn_free_queue(icn_card *card, int channel) in icn_free_queue() argument
59 struct sk_buff_head *queue = &card->spqueue[channel]; in icn_free_queue()
63 card->xlen[channel] = 0; in icn_free_queue()
64 card->sndcount[channel] = 0; in icn_free_queue()
65 if ((skb = card->xskb[channel])) { in icn_free_queue()
66 card->xskb[channel] = NULL; in icn_free_queue()
116 icn_map_channel(icn_card *card, int channel) in icn_map_channel() argument
119 printk(KERN_DEBUG "icn_map_channel %d %d\n", dev.channel, channel); in icn_map_channel()
121 if ((channel == dev.channel) && (card == dev.mcard)) in icn_map_channel()
125 icn_shiftout(ICN_BANK, chan2bank[channel], 3, 4); /* Select Bank */ in icn_map_channel()
[all …]
/linux-4.4.14/arch/blackfin/kernel/
Dbfin_dma.c99 static void set_dma_peripheral_map(unsigned int channel, const char *device_id) in set_dma_peripheral_map() argument
104 switch (channel) { in set_dma_peripheral_map()
113 dma_ch[channel].regs->peripheral_map = per_map; in set_dma_peripheral_map()
122 int request_dma(unsigned int channel, const char *device_id) in request_dma() argument
127 printk(KERN_WARNING "request_dma(%u): no device_id given\n", channel); in request_dma()
130 if (channel >= CH_IMEM_STREAM0_DEST && channel <= CH_IMEM_STREAM1_DEST) { in request_dma()
139 if (atomic_cmpxchg(&dma_ch[channel].chan_status, 0, 1)) { in request_dma()
144 set_dma_peripheral_map(channel, device_id); in request_dma()
145 dma_ch[channel].device_id = device_id; in request_dma()
146 dma_ch[channel].irq = 0; in request_dma()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/dma/xilinx/
Dxilinx_vdma.txt2 It can be configured to have one channel or two channels. If configured
11 - dma-channel child node: Should have at least one channel and can have up to
13 DMA channel (see child node properties below).
18 - xlnx,flush-fsync: Tells which channel to Flush on Frame sync.
21 {2}, flush mm2s channel
22 {3}, flush s2mm channel
25 - compatible: It should be either "xlnx,axi-vdma-mm2s-channel" or
26 "xlnx,axi-vdma-s2mm-channel".
27 - interrupts: Should contain per channel VDMA interrupts.
46 dma-channel@40030000 {
[all …]
Dxilinx_dma.txt2 target devices. It can be configured to have one channel or two channels.
10 - dma-channel child node: Should have atleast one channel and can have upto
12 DMA channel (see child node properties below).
19 - compatible: It should be either "xlnx,axi-dma-mm2s-channel" or
20 "xlnx,axi-dma-s2mm-channel".
21 - interrupts: Should contain per channel DMA interrupts.
36 dma-channel@40400000 {
37 compatible = "xlnx,axi-dma-mm2s-channel";
41 dma-channel@40400030 {
42 compatible = "xlnx,axi-dma-s2mm-channel";
[all …]
/linux-4.4.14/drivers/s390/net/
Dctcm_sysfs.c41 ndev = priv->channel[CTCM_READ]->netdev; in ctcm_buffer_write()
42 if (!(priv && priv->channel[CTCM_READ] && ndev)) { in ctcm_buffer_write()
60 priv->channel[CTCM_READ]->max_bufsize = bs1; in ctcm_buffer_write()
61 priv->channel[CTCM_WRITE]->max_bufsize = bs1; in ctcm_buffer_write()
64 priv->channel[CTCM_READ]->flags |= CHANNEL_FLAGS_BUFSIZE_CHANGED; in ctcm_buffer_write()
65 priv->channel[CTCM_WRITE]->flags |= CHANNEL_FLAGS_BUFSIZE_CHANGED; in ctcm_buffer_write()
90 fsm_getstate_str(priv->channel[CTCM_READ]->fsm)); in ctcm_print_statistics()
92 fsm_getstate_str(priv->channel[CTCM_WRITE]->fsm)); in ctcm_print_statistics()
94 priv->channel[WRITE]->prof.maxmulti); in ctcm_print_statistics()
96 priv->channel[WRITE]->prof.maxcqueue); in ctcm_print_statistics()
[all …]
Dlcs.c116 lcs_alloc_channel(struct lcs_channel *channel) in lcs_alloc_channel() argument
123 channel->iob[cnt].data = in lcs_alloc_channel()
125 if (channel->iob[cnt].data == NULL) in lcs_alloc_channel()
127 channel->iob[cnt].state = LCS_BUF_STATE_EMPTY; in lcs_alloc_channel()
133 kfree(channel->iob[cnt].data); in lcs_alloc_channel()
143 lcs_free_channel(struct lcs_channel *channel) in lcs_free_channel() argument
149 kfree(channel->iob[cnt].data); in lcs_free_channel()
150 channel->iob[cnt].data = NULL; in lcs_free_channel()
158 lcs_cleanup_channel(struct lcs_channel *channel) in lcs_cleanup_channel() argument
162 tasklet_kill(&channel->irq_tasklet); in lcs_cleanup_channel()
[all …]
Dctcm_main.c65 struct channel *channels;
74 void ctcm_unpack_skb(struct channel *ch, struct sk_buff *pskb) in ctcm_unpack_skb()
187 static void channel_free(struct channel *ch) in channel_free()
199 static void channel_remove(struct channel *ch) in channel_remove()
201 struct channel **c = &channels; in channel_remove()
251 static struct channel *channel_get(enum ctcm_channel_types type, in channel_get()
254 struct channel *ch = channels; in channel_get()
308 static inline void ccw_unit_check(struct channel *ch, __u8 sense) in ccw_unit_check()
381 int ctcm_ch_alloc_buffer(struct channel *ch) in ctcm_ch_alloc_buffer()
464 static int ctcm_transmit_skb(struct channel *ch, struct sk_buff *skb) in ctcm_transmit_skb()
[all …]
Dctcm_main.h130 struct channel { struct
131 struct channel *next; argument
220 struct channel *channel[2]; member
256 extern struct channel *channels;
258 void ctcm_unpack_skb(struct channel *ch, struct sk_buff *pskb);
277 int ctcm_ch_alloc_buffer(struct channel *ch);
279 static inline int ctcm_checkalloc_buffer(struct channel *ch) in ctcm_checkalloc_buffer()
/linux-4.4.14/drivers/phy/
Dphy-rcar-gen2.c49 struct rcar_gen2_channel *channel; member
73 struct rcar_gen2_channel *channel = phy->channel; in rcar_gen2_phy_init() local
74 struct rcar_gen2_phy_driver *drv = channel->drv; in rcar_gen2_phy_init()
84 if (cmpxchg(&channel->selected_phy, -1, phy->number) != -1) in rcar_gen2_phy_init()
91 ugctrl2 &= ~channel->select_mask; in rcar_gen2_phy_init()
101 struct rcar_gen2_channel *channel = phy->channel; in rcar_gen2_phy_exit() local
103 clk_disable_unprepare(channel->drv->clk); in rcar_gen2_phy_exit()
105 channel->selected_phy = -1; in rcar_gen2_phy_exit()
113 struct rcar_gen2_phy_driver *drv = phy->channel->drv; in rcar_gen2_phy_power_on()
157 struct rcar_gen2_phy_driver *drv = phy->channel->drv; in rcar_gen2_phy_power_off()
[all …]
/linux-4.4.14/arch/powerpc/boot/dts/fsl/
Delo3-dma-1.dtsi42 dma-channel@0 {
43 compatible = "fsl,eloplus-dma-channel";
47 dma-channel@80 {
48 compatible = "fsl,eloplus-dma-channel";
52 dma-channel@100 {
53 compatible = "fsl,eloplus-dma-channel";
57 dma-channel@180 {
58 compatible = "fsl,eloplus-dma-channel";
62 dma-channel@300 {
63 compatible = "fsl,eloplus-dma-channel";
[all …]
Delo3-dma-2.dtsi42 dma-channel@0 {
43 compatible = "fsl,eloplus-dma-channel";
47 dma-channel@80 {
48 compatible = "fsl,eloplus-dma-channel";
52 dma-channel@100 {
53 compatible = "fsl,eloplus-dma-channel";
57 dma-channel@180 {
58 compatible = "fsl,eloplus-dma-channel";
62 dma-channel@300 {
63 compatible = "fsl,eloplus-dma-channel";
[all …]
Delo3-dma-0.dtsi42 dma-channel@0 {
43 compatible = "fsl,eloplus-dma-channel";
47 dma-channel@80 {
48 compatible = "fsl,eloplus-dma-channel";
52 dma-channel@100 {
53 compatible = "fsl,eloplus-dma-channel";
57 dma-channel@180 {
58 compatible = "fsl,eloplus-dma-channel";
62 dma-channel@300 {
63 compatible = "fsl,eloplus-dma-channel";
[all …]
Dpq3-dma-1.dtsi42 dma-channel@0 {
43 compatible = "fsl,eloplus-dma-channel";
48 dma-channel@80 {
49 compatible = "fsl,eloplus-dma-channel";
54 dma-channel@100 {
55 compatible = "fsl,eloplus-dma-channel";
60 dma-channel@180 {
61 compatible = "fsl,eloplus-dma-channel";
Dqoriq-dma-1.dtsi42 dma-channel@0 {
43 compatible = "fsl,eloplus-dma-channel";
48 dma-channel@80 {
49 compatible = "fsl,eloplus-dma-channel";
54 dma-channel@100 {
55 compatible = "fsl,eloplus-dma-channel";
60 dma-channel@180 {
61 compatible = "fsl,eloplus-dma-channel";
Dpq3-dma-0.dtsi42 dma-channel@0 {
43 compatible = "fsl,eloplus-dma-channel";
48 dma-channel@80 {
49 compatible = "fsl,eloplus-dma-channel";
54 dma-channel@100 {
55 compatible = "fsl,eloplus-dma-channel";
60 dma-channel@180 {
61 compatible = "fsl,eloplus-dma-channel";
Dqoriq-dma-0.dtsi42 dma-channel@0 {
43 compatible = "fsl,eloplus-dma-channel";
48 dma-channel@80 {
49 compatible = "fsl,eloplus-dma-channel";
54 dma-channel@100 {
55 compatible = "fsl,eloplus-dma-channel";
60 dma-channel@180 {
61 compatible = "fsl,eloplus-dma-channel";
/linux-4.4.14/drivers/iio/dac/
Dad5446.c55 struct iio_chan_spec channel; member
146 .channel = 0, \
256 indio_dev->channels = &st->chip_info->channel; in ad5446_probe()
347 .channel = AD5446_CHANNEL_POWERDOWN(8, 16, 4),
351 .channel = AD5446_CHANNEL_POWERDOWN(10, 16, 2),
355 .channel = AD5446_CHANNEL_POWERDOWN(12, 16, 0),
359 .channel = AD5446_CHANNEL(12, 16, 2),
363 .channel = AD5446_CHANNEL(14, 16, 0),
367 .channel = AD5446_CHANNEL(8, 16, 6),
371 .channel = AD5446_CHANNEL(10, 16, 4),
[all …]
Dad5686.c54 struct iio_chan_spec channel[AD5686_DAC_CHANNELS]; member
144 return ((st->pwr_down_mode >> (chan->channel * 2)) & 0x3) - 1; in ad5686_get_powerdown_mode()
152 st->pwr_down_mode &= ~(0x3 << (chan->channel * 2)); in ad5686_set_powerdown_mode()
153 st->pwr_down_mode |= ((mode + 1) << (chan->channel * 2)); in ad5686_set_powerdown_mode()
171 (0x3 << (chan->channel * 2)))); in ad5686_read_dac_powerdown()
187 st->pwr_down_mask |= (0x3 << (chan->channel * 2)); in ad5686_write_dac_powerdown()
189 st->pwr_down_mask &= ~(0x3 << (chan->channel * 2)); in ad5686_write_dac_powerdown()
274 .channel = chan, \
289 .channel[0] = AD5868_CHANNEL(0, 12, 4),
290 .channel[1] = AD5868_CHANNEL(1, 12, 4),
[all …]
Dmax5821.c62 return st->powerdown_mode[chan->channel]; in max5821_get_powerdown_mode()
71 st->powerdown_mode[chan->channel] = mode; in max5821_set_powerdown_mode()
90 return sprintf(buf, "%d\n", st->powerdown[chan->channel]); in max5821_read_dac_powerdown()
100 if (chan->channel == 0) in max5821_sync_powerdown_mode()
105 if (data->powerdown[chan->channel]) in max5821_sync_powerdown_mode()
106 outbuf[1] |= data->powerdown_mode[chan->channel] + 1; in max5821_sync_powerdown_mode()
126 data->powerdown[chan->channel] = powerdown; in max5821_write_dac_powerdown()
151 .channel = (chan), \
173 int *val, int channel) in max5821_get_value() argument
181 if ((channel != 0) && (channel != 1)) in max5821_get_value()
[all …]
Dad5755.c123 unsigned int channel, unsigned int reg, unsigned int val) in ad5755_write_ctrl_unlocked() argument
126 AD5755_WRITE_REG_CTRL(channel), (reg << 13) | val); in ad5755_write_ctrl_unlocked()
141 static int ad5755_write_ctrl(struct iio_dev *indio_dev, unsigned int channel, in ad5755_write_ctrl() argument
147 ret = ad5755_write_ctrl_unlocked(indio_dev, channel, reg, val); in ad5755_write_ctrl()
184 unsigned int channel, unsigned int set, unsigned int clr) in ad5755_update_dac_ctrl() argument
189 st->ctrl[channel] |= set; in ad5755_update_dac_ctrl()
190 st->ctrl[channel] &= ~clr; in ad5755_update_dac_ctrl()
192 ret = ad5755_write_ctrl_unlocked(indio_dev, channel, in ad5755_update_dac_ctrl()
193 AD5755_CTRL_REG_DAC, st->ctrl[channel]); in ad5755_update_dac_ctrl()
199 unsigned int channel, bool pwr_down) in ad5755_set_channel_pwr_down() argument
[all …]
/linux-4.4.14/drivers/clocksource/
Dsamsung_pwm_timer.c85 static void samsung_timer_set_prescale(unsigned int channel, u16 prescale) in samsung_timer_set_prescale() argument
91 if (channel >= 2) in samsung_timer_set_prescale()
104 static void samsung_timer_set_divisor(unsigned int channel, u8 divisor) in samsung_timer_set_divisor() argument
106 u8 shift = TCFG1_SHIFT(channel); in samsung_timer_set_divisor()
123 static void samsung_time_stop(unsigned int channel) in samsung_time_stop() argument
128 if (channel > 0) in samsung_time_stop()
129 ++channel; in samsung_time_stop()
134 tcon &= ~TCON_START(channel); in samsung_time_stop()
140 static void samsung_time_setup(unsigned int channel, unsigned long tcnt) in samsung_time_setup() argument
144 unsigned int tcon_chan = channel; in samsung_time_setup()
[all …]
/linux-4.4.14/drivers/gpu/drm/omapdrm/
Domap_crtc.c35 enum omap_channel channel; member
64 return dispc_mgr_get_vsync_irq(omap_crtc->channel); in pipe2vbl()
76 return omap_crtc->channel; in omap_crtc_channel()
136 enum omap_channel channel = omap_crtc->channel; in omap_crtc_set_enabled() local
141 if (dispc_mgr_is_enabled(channel) == enable) in omap_crtc_set_enabled()
144 if (omap_crtc->channel == OMAP_DSS_CHANNEL_DIGIT) { in omap_crtc_set_enabled()
152 framedone_irq = dispc_mgr_get_framedone_irq(channel); in omap_crtc_set_enabled()
153 vsync_irq = dispc_mgr_get_vsync_irq(channel); in omap_crtc_set_enabled()
173 dispc_mgr_enable(channel, enable); in omap_crtc_set_enabled()
181 if (omap_crtc->channel == OMAP_DSS_CHANNEL_DIGIT) { in omap_crtc_set_enabled()
[all …]
/linux-4.4.14/drivers/firewire/
Dcore-iso.c164 int type, int channel, int speed, size_t header_size, in fw_iso_context_create() argument
170 type, channel, header_size); in fw_iso_context_create()
176 ctx->channel = channel; in fw_iso_context_create()
278 int channel, ret = -EIO, retry = 5; in manage_channel() local
282 for (channel = 0; channel < 32; channel++) { in manage_channel()
283 if (!(channels_mask & 1 << channel)) in manage_channel()
288 bit = cpu_to_be32(1 << (31 - channel)); in manage_channel()
299 return allocate ? -EAGAIN : channel; in manage_channel()
303 return channel; in manage_channel()
315 channel--; in manage_channel()
[all …]
/linux-4.4.14/arch/mips/pci/
Dops-tx4927.c25 struct pci_controller *channel; member
29 static void __init set_tx4927_pcicptr(struct pci_controller *channel, in set_tx4927_pcicptr() argument
35 if (pcicptrs[i].channel == channel) { in set_tx4927_pcicptr()
41 if (!pcicptrs[i].channel) { in set_tx4927_pcicptr()
42 pcicptrs[i].channel = channel; in set_tx4927_pcicptr()
51 struct pci_controller *channel) in get_tx4927_pcicptr() argument
56 if (pcicptrs[i].channel == channel) in get_tx4927_pcicptr()
139 struct pci_controller *channel = bus->sysdata; in pci_bus_to_pcicptr() local
140 return get_tx4927_pcicptr(channel); in pci_bus_to_pcicptr()
224 struct pci_controller *channel, int extarb) in tx4927_pcic_setup() argument
[all …]
Dops-tx3927.c129 void __init tx3927_pcic_setup(struct pci_controller *channel, in tx3927_pcic_setup() argument
134 channel->io_resource->start + mips_io_port_base - IO_BASE; in tx3927_pcic_setup()
136 channel->io_resource->end - channel->io_resource->start; in tx3927_pcic_setup()
138 channel->io_resource->start - channel->io_offset; in tx3927_pcic_setup()
140 channel->mem_resource->start; in tx3927_pcic_setup()
142 channel->mem_resource->end - channel->mem_resource->start; in tx3927_pcic_setup()
144 channel->mem_resource->start - channel->mem_offset; in tx3927_pcic_setup()
150 channel->pci_ops = &tx3927_pci_ops; in tx3927_pcic_setup()
/linux-4.4.14/drivers/video/fbdev/omap2/dss/
Ddispc.h118 static inline u16 DISPC_DEFAULT_COLOR(enum omap_channel channel) in DISPC_DEFAULT_COLOR() argument
120 switch (channel) { in DISPC_DEFAULT_COLOR()
135 static inline u16 DISPC_TRANS_COLOR(enum omap_channel channel) in DISPC_TRANS_COLOR() argument
137 switch (channel) { in DISPC_TRANS_COLOR()
152 static inline u16 DISPC_TIMING_H(enum omap_channel channel) in DISPC_TIMING_H() argument
154 switch (channel) { in DISPC_TIMING_H()
170 static inline u16 DISPC_TIMING_V(enum omap_channel channel) in DISPC_TIMING_V() argument
172 switch (channel) { in DISPC_TIMING_V()
188 static inline u16 DISPC_POL_FREQ(enum omap_channel channel) in DISPC_POL_FREQ() argument
190 switch (channel) { in DISPC_POL_FREQ()
[all …]
Ddsi.c221 static int dsi_vc_send_null(struct omap_dss_device *dssdev, int channel);
644 static void print_irq_status_vc(int channel, u32 status) in print_irq_status_vc() argument
655 channel, in print_irq_status_vc()
1049 static int dsi_register_isr_vc(struct platform_device *dsidev, int channel, in dsi_register_isr_vc() argument
1059 dsi->isr_tables.isr_table_vc[channel], in dsi_register_isr_vc()
1060 ARRAY_SIZE(dsi->isr_tables.isr_table_vc[channel])); in dsi_register_isr_vc()
1063 _omap_dsi_set_irqs_vc(dsidev, channel); in dsi_register_isr_vc()
1070 static int dsi_unregister_isr_vc(struct platform_device *dsidev, int channel, in dsi_unregister_isr_vc() argument
1080 dsi->isr_tables.isr_table_vc[channel], in dsi_unregister_isr_vc()
1081 ARRAY_SIZE(dsi->isr_tables.isr_table_vc[channel])); in dsi_unregister_isr_vc()
[all …]
Ddispc.c262 static u32 mgr_fld_read(enum omap_channel channel, enum mgr_reg_fields regfld) in mgr_fld_read() argument
264 const struct dispc_reg_field rfld = mgr_desc[channel].reg_desc[regfld]; in mgr_fld_read()
268 static void mgr_fld_write(enum omap_channel channel, in mgr_fld_write() argument
270 const struct dispc_reg_field rfld = mgr_desc[channel].reg_desc[regfld]; in mgr_fld_write()
540 u32 dispc_mgr_get_vsync_irq(enum omap_channel channel) in dispc_mgr_get_vsync_irq() argument
542 return mgr_desc[channel].vsync_irq; in dispc_mgr_get_vsync_irq()
546 u32 dispc_mgr_get_framedone_irq(enum omap_channel channel) in dispc_mgr_get_framedone_irq() argument
548 if (channel == OMAP_DSS_CHANNEL_DIGIT && dispc.feat->no_framedone_tv) in dispc_mgr_get_framedone_irq()
551 return mgr_desc[channel].framedone_irq; in dispc_mgr_get_framedone_irq()
555 u32 dispc_mgr_get_sync_lost_irq(enum omap_channel channel) in dispc_mgr_get_sync_lost_irq() argument
[all …]
Ddss.c77 int (*dpi_select_source)(int port, enum omap_channel channel);
206 enum omap_channel channel) in dss_ctrl_pll_set_control_mux() argument
213 switch (channel) { in dss_ctrl_pll_set_control_mux()
460 void dss_select_lcd_clk_source(enum omap_channel channel, in dss_select_lcd_clk_source() argument
475 BUG_ON(channel != OMAP_DSS_CHANNEL_LCD); in dss_select_lcd_clk_source()
479 BUG_ON(channel != OMAP_DSS_CHANNEL_LCD2 && in dss_select_lcd_clk_source()
480 channel != OMAP_DSS_CHANNEL_LCD3); in dss_select_lcd_clk_source()
488 pos = channel == OMAP_DSS_CHANNEL_LCD ? 0 : in dss_select_lcd_clk_source()
489 (channel == OMAP_DSS_CHANNEL_LCD2 ? 12 : 19); in dss_select_lcd_clk_source()
492 ix = channel == OMAP_DSS_CHANNEL_LCD ? 0 : in dss_select_lcd_clk_source()
[all …]
/linux-4.4.14/drivers/gpu/host1x/hw/
Dhw_host1x04_sync.h80 static inline u32 host1x_sync_cf_setup_r(unsigned int channel) in host1x_sync_cf_setup_r() argument
82 return 0xc00 + channel * REGISTER_STRIDE; in host1x_sync_cf_setup_r()
84 #define HOST1X_SYNC_CF_SETUP(channel) \ argument
85 host1x_sync_cf_setup_r(channel)
170 static inline u32 host1x_sync_cbread_r(unsigned int channel) in host1x_sync_cbread_r() argument
172 return 0xc80 + channel * REGISTER_STRIDE; in host1x_sync_cbread_r()
174 #define HOST1X_SYNC_CBREAD(channel) \ argument
175 host1x_sync_cbread_r(channel)
224 static inline u32 host1x_sync_cbstat_r(unsigned int channel) in host1x_sync_cbstat_r() argument
226 return 0xcc0 + channel * REGISTER_STRIDE; in host1x_sync_cbstat_r()
[all …]
Dhw_host1x01_sync.h80 static inline u32 host1x_sync_cf_setup_r(unsigned int channel) in host1x_sync_cf_setup_r() argument
82 return 0x80 + channel * REGISTER_STRIDE; in host1x_sync_cf_setup_r()
84 #define HOST1X_SYNC_CF_SETUP(channel) \ argument
85 host1x_sync_cf_setup_r(channel)
170 static inline u32 host1x_sync_cbread_r(unsigned int channel) in host1x_sync_cbread_r() argument
172 return 0x720 + channel * REGISTER_STRIDE; in host1x_sync_cbread_r()
174 #define HOST1X_SYNC_CBREAD(channel) \ argument
175 host1x_sync_cbread_r(channel)
224 static inline u32 host1x_sync_cbstat_r(unsigned int channel) in host1x_sync_cbstat_r() argument
226 return 0x758 + channel * REGISTER_STRIDE; in host1x_sync_cbstat_r()
[all …]
Dhw_host1x02_sync.h80 static inline u32 host1x_sync_cf_setup_r(unsigned int channel) in host1x_sync_cf_setup_r() argument
82 return 0x80 + channel * REGISTER_STRIDE; in host1x_sync_cf_setup_r()
84 #define HOST1X_SYNC_CF_SETUP(channel) \ argument
85 host1x_sync_cf_setup_r(channel)
170 static inline u32 host1x_sync_cbread_r(unsigned int channel) in host1x_sync_cbread_r() argument
172 return 0x720 + channel * REGISTER_STRIDE; in host1x_sync_cbread_r()
174 #define HOST1X_SYNC_CBREAD(channel) \ argument
175 host1x_sync_cbread_r(channel)
224 static inline u32 host1x_sync_cbstat_r(unsigned int channel) in host1x_sync_cbstat_r() argument
226 return 0x758 + channel * REGISTER_STRIDE; in host1x_sync_cbstat_r()
[all …]
/linux-4.4.14/drivers/isdn/hardware/eicon/
Ddebug.c66 diva_trace_line_state_t *channel,
1428 diva_trace_line_state_t *channel, in diva_maint_state_change_notify() argument
1431 diva_trace_fax_state_t *fax = &channel->fax; in diva_maint_state_change_notify()
1432 diva_trace_modem_state_t *modem = &channel->modem; in diva_maint_state_change_notify()
1445 if (channel->Line[0] == 'I' && channel->Line[1] == 'd' && in diva_maint_state_change_notify()
1446 channel->Line[2] == 'l' && channel->Line[3] == 'e') { in diva_maint_state_change_notify()
1447 if ((TraceFilterIdent == pC->hDbg->id) && (TraceFilterChannel == (int)channel->ChannelNumber)) { in diva_maint_state_change_notify()
1448 (*(hLib->DivaSTraceSetBChannel))(hLib, (int)channel->ChannelNumber, 0); in diva_maint_state_change_notify()
1449 (*(hLib->DivaSTraceSetAudioTap))(hLib, (int)channel->ChannelNumber, 0); in diva_maint_state_change_notify()
1451 (int)channel->ChannelNumber); in diva_maint_state_change_notify()
[all …]
/linux-4.4.14/drivers/staging/most/hdm-usb/
Dhdm_usb.c197 static void free_anchored_buffers(struct most_dev *mdev, unsigned int channel) in free_anchored_buffers() argument
203 spin_lock_irqsave(&mdev->anchor_list_lock[channel], flags); in free_anchored_buffers()
204 list_for_each_entry_safe(anchor, tmp, &mdev->anchor_list[channel], in free_anchored_buffers()
208 spin_unlock_irqrestore(&mdev->anchor_list_lock[channel], flags); in free_anchored_buffers()
224 spin_lock_irqsave(&mdev->anchor_list_lock[channel], flags); in free_anchored_buffers()
228 spin_unlock_irqrestore(&mdev->anchor_list_lock[channel], flags); in free_anchored_buffers()
276 static int hdm_poison_channel(struct most_interface *iface, int channel) in hdm_poison_channel() argument
285 if (unlikely((channel < 0) || (channel >= iface->num_channels))) { in hdm_poison_channel()
290 mdev->is_channel_healthy[channel] = false; in hdm_poison_channel()
293 free_anchored_buffers(mdev, channel); in hdm_poison_channel()
[all …]
/linux-4.4.14/sound/soc/tegra/
Dtegra30_ahub.c101 int channel; in tegra30_ahub_allocate_rx_fifo() local
105 channel = find_first_zero_bit(ahub->rx_usage, in tegra30_ahub_allocate_rx_fifo()
107 if (channel >= TEGRA30_AHUB_CHANNEL_CTRL_COUNT) in tegra30_ahub_allocate_rx_fifo()
110 __set_bit(channel, ahub->rx_usage); in tegra30_ahub_allocate_rx_fifo()
112 *rxcif = TEGRA30_AHUB_RXCIF_APBIF_RX0 + channel; in tegra30_ahub_allocate_rx_fifo()
113 snprintf(dmachan, dmachan_len, "rx%d", channel); in tegra30_ahub_allocate_rx_fifo()
115 (channel * TEGRA30_AHUB_CHANNEL_RXFIFO_STRIDE); in tegra30_ahub_allocate_rx_fifo()
120 (channel * TEGRA30_AHUB_CHANNEL_CTRL_STRIDE); in tegra30_ahub_allocate_rx_fifo()
142 (channel * TEGRA30_AHUB_CIF_RX_CTRL_STRIDE); in tegra30_ahub_allocate_rx_fifo()
153 int channel = rxcif - TEGRA30_AHUB_RXCIF_APBIF_RX0; in tegra30_ahub_enable_rx_fifo() local
[all …]
/linux-4.4.14/drivers/net/wireless/b43legacy/
Dmain.h48 u8 channel; in b43legacy_freq_to_channel_bg() local
51 channel = 14; in b43legacy_freq_to_channel_bg()
53 channel = (freq - 2407) / 5; in b43legacy_freq_to_channel_bg()
55 return channel; in b43legacy_freq_to_channel_bg()
66 int b43legacy_channel_to_freq_bg(u8 channel) in b43legacy_channel_to_freq_bg() argument
70 if (channel == 14) in b43legacy_channel_to_freq_bg()
73 freq = 2407 + (5 * channel); in b43legacy_channel_to_freq_bg()
80 u8 channel) in b43legacy_channel_to_freq() argument
82 return b43legacy_channel_to_freq_bg(channel); in b43legacy_channel_to_freq()
/linux-4.4.14/drivers/net/wireless/zd1211rw/
Dzd_rf.c119 int zd_rf_set_channel(struct zd_rf *rf, u8 channel) in zd_rf_set_channel() argument
124 if (channel < MIN_CHANNEL24) in zd_rf_set_channel()
126 if (channel > MAX_CHANNEL24) in zd_rf_set_channel()
128 dev_dbg_f(zd_chip_dev(zd_rf_to_chip(rf)), "channel: %d\n", channel); in zd_rf_set_channel()
130 r = rf->set_channel(rf, channel); in zd_rf_set_channel()
132 rf->channel = channel; in zd_rf_set_channel()
169 int zd_rf_patch_6m_band_edge(struct zd_rf *rf, u8 channel) in zd_rf_patch_6m_band_edge() argument
174 return rf->patch_6m_band_edge(rf, channel); in zd_rf_patch_6m_band_edge()
177 int zd_rf_generic_patch_6m(struct zd_rf *rf, u8 channel) in zd_rf_generic_patch_6m() argument
179 return zd_chip_generic_patch_6m_band(zd_rf_to_chip(rf), channel); in zd_rf_generic_patch_6m()
Dzd_rf.h51 u8 channel; member
68 int (*set_channel)(struct zd_rf *rf, u8 channel);
71 int (*patch_6m_band_edge)(struct zd_rf *rf, u8 channel);
82 int zd_rf_set_channel(struct zd_rf *rf, u8 channel);
87 int zd_rf_patch_6m_band_edge(struct zd_rf *rf, u8 channel);
88 int zd_rf_generic_patch_6m(struct zd_rf *rf, u8 channel);
100 int zd_rf_patch_6m_band_edge(struct zd_rf *rf, u8 channel);
101 int zd_rf_generic_patch_6m(struct zd_rf *rf, u8 channel);
/linux-4.4.14/Documentation/devicetree/bindings/iio/
Diio-bindings.txt10 value of a #io-channel-cells property in the IIO provider node.
17 #io-channel-cells: Number of cells in an IIO specifier; Typically 0 for nodes
26 #io-channel-cells = <1>;
36 #io-channel-cells = <1>;
40 #io-channel-cells = <1>;
50 IIO provider specifies '0' for #io-channel-cells,
54 io-channel-names:
57 will use io-channel-names to match IIO input names
59 io-channel-ranges:
62 and IIO channel to their children.
[all …]
/linux-4.4.14/arch/x86/kvm/
Di8254.c74 static void pit_set_gate(struct kvm *kvm, int channel, u32 val) in pit_set_gate() argument
77 &kvm->arch.vpit->pit_state.channels[channel]; in pit_set_gate()
100 static int pit_get_gate(struct kvm *kvm, int channel) in pit_get_gate() argument
104 return kvm->arch.vpit->pit_state.channels[channel].gate; in pit_get_gate()
132 int channel) in kpit_elapsed() argument
134 if (channel == 0) in kpit_elapsed()
140 static int pit_get_count(struct kvm *kvm, int channel) in pit_get_count() argument
143 &kvm->arch.vpit->pit_state.channels[channel]; in pit_get_count()
149 t = kpit_elapsed(kvm, c, channel); in pit_get_count()
170 static int pit_get_out(struct kvm *kvm, int channel) in pit_get_out() argument
[all …]
/linux-4.4.14/drivers/net/wireless/brcm80211/include/
Dbrcmu_wifi.h148 static inline int lower_20_sb(int channel) in lower_20_sb() argument
150 return channel > CH_10MHZ_APART ? (channel - CH_10MHZ_APART) : 0; in lower_20_sb()
153 static inline int upper_20_sb(int channel) in upper_20_sb() argument
155 return (channel < (MAXCHANNEL - CH_10MHZ_APART)) ? in upper_20_sb()
156 channel + CH_10MHZ_APART : 0; in upper_20_sb()
164 static inline u16 ch20mhz_chspec(int channel) in ch20mhz_chspec() argument
166 u16 rc = channel <= CH_MAX_2G_CHANNEL ? in ch20mhz_chspec()
169 return (u16)((u16)channel | WL_CHANSPEC_BW_20 | in ch20mhz_chspec()
173 static inline int next_20mhz_chan(int channel) in next_20mhz_chan() argument
175 return channel < (MAXCHANNEL - CH_20MHZ_APART) ? in next_20mhz_chan()
[all …]
/linux-4.4.14/arch/mips/include/asm/
Djazzdma.h18 extern void vdma_enable(int channel);
19 extern void vdma_disable(int channel);
20 extern void vdma_set_mode(int channel, int mode);
21 extern void vdma_set_addr(int channel, long addr);
22 extern void vdma_set_count(int channel, int count);
23 extern int vdma_get_residue(int channel);
24 extern int vdma_get_enable(int channel);
/linux-4.4.14/Documentation/hwmon/
Dmax663917 This driver implements support for the Maxim MAX6639. This chip is a 2-channel
26 temp1_input R Temperature channel 1 input (0..150 C)
27 temp2_input R Temperature channel 2 input (0..150 C)
28 temp1_fault R Temperature channel 1 diode fault
29 temp2_fault R Temperature channel 2 diode fault
44 temp1_max_alarm R Alarm on THERM temperature on channel 1
45 temp2_max_alarm R Alarm on THERM temperature on channel 2
46 temp1_crit_alarm R Alarm on ALERT temperature on channel 1
47 temp2_crit_alarm R Alarm on ALERT temperature on channel 2
48 temp1_emergency_alarm R Alarm on OT temperature on channel 1
[all …]
/linux-4.4.14/drivers/isdn/hisax/
Dhfc_2bs0.c92 cip = HFC_CIP | HFC_F1 | HFC_REC | HFC_CHANNEL(bcs->channel); in hfc_clear_fifo()
99 cip = HFC_CIP | HFC_F2 | HFC_REC | HFC_CHANNEL(bcs->channel); in hfc_clear_fifo()
102 z1 = ReadZReg(bcs, HFC_Z1 | HFC_REC | HFC_CHANNEL(bcs->channel)); in hfc_clear_fifo()
103 z2 = ReadZReg(bcs, HFC_Z2 | HFC_REC | HFC_CHANNEL(bcs->channel)); in hfc_clear_fifo()
108 bcs->channel, f1, f2); in hfc_clear_fifo()
116 bcs->channel, z1, z2, rcnt); in hfc_clear_fifo()
117 cip = HFC_CIP | HFC_FIFO_OUT | HFC_REC | HFC_CHANNEL(bcs->channel); in hfc_clear_fifo()
126 HFC_CHANNEL(bcs->channel)); in hfc_clear_fifo()
129 cip = HFC_CIP | HFC_F1 | HFC_REC | HFC_CHANNEL(bcs->channel); in hfc_clear_fifo()
132 cip = HFC_CIP | HFC_F2 | HFC_REC | HFC_CHANNEL(bcs->channel); in hfc_clear_fifo()
[all …]
Dst5481_b.c41 DBG(4, "ep %d urb %d busy", (bcs->channel + 1) * 2, buf_nr); in usb_b_out()
50 DBG(4, "B%d,adjust flow,add %d bytes", bcs->channel + 1, B_FLOW_ADJUST); in usb_b_out()
54 DBG(4, "B%d,adjust flow,remove %d bytes", bcs->channel + 1, B_FLOW_ADJUST); in usb_b_out()
65 DBG(4, "B%d,len=%d", bcs->channel + 1, skb->len); in usb_b_out()
134 DBG(4, "B%d", bcs->channel + 1); in st5481B_start_xfer()
185 st5481_usb_pipe_reset(adapter, (bcs->channel + 1) * 2 | USB_DIR_OUT, NULL, NULL); in usb_b_out_complete()
205 DBG(4, "B%d,mode=%d", bcs->channel + 1, mode); in st5481B_mode()
226 st5481_usb_pipe_reset(adapter, (bcs->channel + 1) * 2, NULL, NULL); in st5481B_mode()
229 st5481_usb_device_ctrl_msg(adapter, FFMSK_B1 + (bcs->channel * 2), in st5481B_mode()
233 …st5481_usb_device_ctrl_msg(adapter, OUT_B1_COUNTER+(bcs->channel * 2), 32, st5481B_start_xfer, bcs… in st5481B_mode()
[all …]
/linux-4.4.14/arch/unicore32/kernel/
Ddma.c102 struct dma_channel *channel = &dma_channels[i]; in dma_irq_handler() local
108 if (channel->name && channel->irq_handler) { in dma_irq_handler()
109 channel->irq_handler(i, channel->data); in dma_irq_handler()
130 struct dma_channel *channel = &dma_channels[i]; in dma_err_handler() local
136 if (channel->name && channel->err_handler) { in dma_err_handler()
137 channel->err_handler(i, channel->data); in dma_err_handler()
/linux-4.4.14/drivers/media/usb/pvrusb2/
Dpvrusb2-dvb.c44 stream = adap->channel.stream->stream; in pvr2_dvb_feed_func()
119 if (adap->channel.stream) { in pvr2_dvb_stream_end()
120 stream = adap->channel.stream->stream; in pvr2_dvb_stream_end()
125 pvr2_hdw_set_streaming(adap->channel.hdw, 0); in pvr2_dvb_stream_end()
129 pvr2_channel_claim_stream(&adap->channel, NULL); in pvr2_dvb_stream_end()
144 struct pvr2_context *pvr = adap->channel.mc_head; in pvr2_dvb_stream_do_start()
152 ret = pvr2_channel_claim_stream(&adap->channel, &pvr->video_stream); in pvr2_dvb_stream_do_start()
156 stream = adap->channel.stream->stream; in pvr2_dvb_stream_do_start()
177 ret = pvr2_hdw_set_streaming(adap->channel.hdw, 1); in pvr2_dvb_stream_do_start()
252 &adap->channel, in pvr2_dvb_bus_ctrl()
[all …]
Dpvrusb2-v4l2.c54 struct pvr2_channel channel; member
66 struct pvr2_channel channel; member
144 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_querycap()
168 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_g_std()
181 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_s_std()
190 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_querystd()
203 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_enum_input()
251 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_g_input()
273 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_s_input()
325 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_g_tuner()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/dma/
Dste-dma40.txt33 - dmas: Comma separated list of dma channel requests
40 3. The DMA request line number (only when 'use fixed channel' is set)
44 Logical channel when unset
45 Physical channel when set
52 0x00000008: Use fixed channel:
53 Use automatic channel selection when unset
55 0x00000010: Set channel as high priority:
82 20: SLIMbus or HSI channel 0
83 21: SLIMbus or HSI channel 1
84 22: SLIMbus or HSI channel 2
[all …]
Dk3dma.txt8 - interrupts: Should contain one interrupt shared by all channel
11 - dma-requests: virtual channels supported, each virtual channel
31 For example, i2c0 read channel request line is 18, while write channel use 19
35 dmas = <&dma0 18 /* read channel */
36 &dma0 19>; /* write channel */
42 dmas = <&dma0 20 /* read channel */
43 &dma0 21>; /* write channel */
Dadi,axi-dmac.txt11 - adi,channels: This sub-node must contain a sub-node for each DMA channel. For
12 the channel sub-nodes the following bindings apply. They must match the
19 Required channel sub-node properties:
20 - reg: Which channel this node refers to.
31 Optional channel properties:
32 - adi,cyclic: Must be set if the channel supports hardware cyclic DMA
34 - adi,2d: Must be set if the channel supports hardware 2D DMA transfers.
38 specifier refers to the DMA channel index.
53 dma-channel@0 {
Dmmp-dma.txt9 - interrupts: Either contain all of the per-channel DMA interrupts
22 * Each channel has specific irq
23 * ICU parse out irq channel from ICU register,
24 * while DMA controller may not able to distinguish the irq channel
26 * For example, pxa688 icu register 0x128, bit 0~15 is PDMA channel irq,
39 * Dmaengine driver (DMA controller) distinguish irq channel via
56 - interrupts: Either contain all of the per-channel DMA interrupts
64 /* each channel has specific irq */
Dmv-xor.txt10 The DT node must also contains sub-nodes for each XOR channel that the
13 - interrupts: interrupt of the XOR channel
17 - dmacap,memcpy to indicate that the XOR channel is capable of memcpy operations
18 - dmacap,memset to indicate that the XOR channel is capable of memset operations
19 - dmacap,xor to indicate that the XOR channel is capable of xor operations
20 - dmacap,interrupt to indicate that the XOR channel is capable of
/linux-4.4.14/drivers/staging/iio/cdc/
Dad7152.c271 ad7152_addresses[chan->channel][AD7152_GAIN], in ad7152_write_raw()
285 ad7152_addresses[chan->channel][AD7152_OFFS], in ad7152_write_raw()
301 chip->setup[chan->channel] &= ~AD7152_SETUP_RANGE_4pF; in ad7152_write_raw()
302 chip->setup[chan->channel] |= AD7152_SETUP_RANGE(i); in ad7152_write_raw()
305 ad7152_addresses[chan->channel][AD7152_SETUP], in ad7152_write_raw()
306 chip->setup[chan->channel]); in ad7152_write_raw()
335 regval = chip->setup[chan->channel]; in ad7152_read_raw()
338 chip->setup[chan->channel] |= AD7152_SETUP_CAPDIFF; in ad7152_read_raw()
340 chip->setup[chan->channel] &= ~AD7152_SETUP_CAPDIFF; in ad7152_read_raw()
342 if (regval != chip->setup[chan->channel]) { in ad7152_read_raw()
[all …]
/linux-4.4.14/arch/sh/include/cpu-sh3/cpu/
Ddac.h17 static __inline__ void sh_dac_enable(int channel) in sh_dac_enable() argument
21 if(channel) v |= DACR_DAOE1; in sh_dac_enable()
26 static __inline__ void sh_dac_disable(int channel) in sh_dac_disable() argument
30 if(channel) v &= ~DACR_DAOE1; in sh_dac_disable()
35 static __inline__ void sh_dac_output(u8 value, int channel) in sh_dac_output() argument
37 if(channel) __raw_writeb(value,DADR1); in sh_dac_output()
/linux-4.4.14/Documentation/devicetree/bindings/power/
Drx51-battery.txt8 - io-channels: Should contain IIO channel specifiers
9 for each element in io-channel-names.
10 - io-channel-names: Should contain the following values:
11 * "temp" - The ADC channel for temperature reading
12 * "bsi" - The ADC channel for battery size identification
13 * "vbat" - The ADC channel to measure the battery voltage
22 io-channel-names = "temp",
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-bus-rpmsg6 Every rpmsg device is a communication channel with a remote
11 This sysfs entry contains the name of this channel.
18 Every rpmsg device is a communication channel with a remote
21 starts listening on one end of a channel, it assigns it with
27 of this channel. If it contains 0xffffffff, then an address
29 channel).
36 Every rpmsg device is a communication channel with a remote
39 starts listening on one end of a channel, it assigns it with
45 of this channel. If it contains 0xffffffff, then an address
47 is attached to this channel is exposing a service to the
[all …]
/linux-4.4.14/drivers/net/wireless/ath/ath5k/
Dphy.c136 ath5k_channel_ok(struct ath5k_hw *ah, struct ieee80211_channel *channel) in ath5k_channel_ok() argument
138 u16 freq = channel->center_freq; in ath5k_channel_ok()
141 if (channel->band == IEEE80211_BAND_2GHZ) { in ath5k_channel_ok()
145 } else if (channel->band == IEEE80211_BAND_5GHZ) in ath5k_channel_ok()
160 struct ieee80211_channel *channel) in ath5k_hw_chan_has_spur_noise() argument
172 if ((channel->center_freq % refclk_freq != 0) && in ath5k_hw_chan_has_spur_noise()
173 ((channel->center_freq % refclk_freq < 10) || in ath5k_hw_chan_has_spur_noise()
174 (channel->center_freq % refclk_freq > 22))) in ath5k_hw_chan_has_spur_noise()
286 struct ieee80211_channel *channel) in ath5k_hw_write_ofdm_timings() argument
293 (channel->hw_value == AR5K_MODE_11B)); in ath5k_hw_write_ofdm_timings()
[all …]
/linux-4.4.14/drivers/dma/
Dimx-dma.c151 unsigned int channel; member
187 struct imxdma_channel channel[IMX_DMA_CHANNELS]; member
295 DMA_DAR(imxdmac->channel)); in imxdma_sg_next()
298 DMA_SAR(imxdmac->channel)); in imxdma_sg_next()
300 imx_dmav1_writel(imxdma, now, DMA_CNTR(imxdmac->channel)); in imxdma_sg_next()
303 "size 0x%08x\n", __func__, imxdmac->channel, in imxdma_sg_next()
304 imx_dmav1_readl(imxdma, DMA_DAR(imxdmac->channel)), in imxdma_sg_next()
305 imx_dmav1_readl(imxdma, DMA_SAR(imxdmac->channel)), in imxdma_sg_next()
306 imx_dmav1_readl(imxdma, DMA_CNTR(imxdmac->channel))); in imxdma_sg_next()
315 int channel = imxdmac->channel; in imxdma_enable_hw() local
[all …]
Dimx-sdma.c304 unsigned int channel; member
374 struct sdma_channel channel[MAX_DMA_CHANNELS]; member
531 int channel = sdmac->channel; in sdma_config_ownership() local
542 __clear_bit(channel, &dsp); in sdma_config_ownership()
544 __set_bit(channel, &dsp); in sdma_config_ownership()
547 __clear_bit(channel, &evt); in sdma_config_ownership()
549 __set_bit(channel, &evt); in sdma_config_ownership()
552 __clear_bit(channel, &mcu); in sdma_config_ownership()
554 __set_bit(channel, &mcu); in sdma_config_ownership()
563 static void sdma_enable_channel(struct sdma_engine *sdma, int channel) in sdma_enable_channel() argument
[all …]
/linux-4.4.14/Documentation/networking/
Dppp_generic.txt22 the services of PPP `channels'. A PPP channel encapsulates a
24 PPP channel implementation can be arbitrarily complex internally but
27 handle ioctl requests. Currently there are PPP channel
32 natural and straightforward way, by allowing more than one channel to
38 PPP channel API
45 Each channel has to provide two functions to the generic PPP layer,
49 send. The channel has the option of rejecting the frame for
51 and the channel should call the ppp_output_wakeup() function at a
57 program to control aspects of the channel's behaviour. This
60 channel. (Usually it would only be pppd which would do this.)
[all …]
/linux-4.4.14/drivers/tty/
Dmetag_da.c132 register int channel asm("D0Ar2") = in_channel; in chancall()
147 "d" (channel), in chancall()
160 static int fetch_data(unsigned int channel) in fetch_data() argument
162 struct dashtty_port *dport = &dashtty_ports[channel]; in fetch_data()
169 if (chancall(RDBUF, channel, RX_BUF_SIZE, in fetch_data()
314 int channel; in dashtty_timer() local
320 channel = find_channel_to_poll(); in dashtty_timer()
323 if (channel >= 0) in dashtty_timer()
324 fetch_data(channel); in dashtty_timer()
436 int channel; in dashtty_hangup() local
[all …]
Disicom.c205 u16 channel; member
271 u16 channel = port->channel; in raise_dtr() local
276 outw(0x8000 | (channel << card->shift_count) | 0x02, base); in raise_dtr()
287 u16 channel = port->channel; in drop_dtr() local
292 outw(0x8000 | (channel << card->shift_count) | 0x02, base); in drop_dtr()
303 u16 channel = port->channel; in raise_rts() local
308 outw(0x8000 | (channel << card->shift_count) | 0x02, base); in raise_rts()
319 u16 channel = port->channel; in drop_rts() local
324 outw(0x8000 | (channel << card->shift_count) | 0x02, base); in drop_rts()
337 u16 channel = ip->channel; in isicom_dtr_rts() local
[all …]
/linux-4.4.14/drivers/net/can/usb/
Dkvaser_usb.c189 u8 channel; member
248 u8 channel; member
257 u8 channel; member
273 u8 channel; member
278 u8 channel; member
286 u8 channel; member
295 u8 channel; member
307 u8 channel; member
318 u8 channel; member
323 u8 channel; member
[all …]
/linux-4.4.14/drivers/soc/ti/
Dknav_qmss_acc.c61 queue = acc->channel - range->acc_info.start_channel; in __knav_acc_notify()
86 mask = BIT(kq->acc->channel % 32); in knav_acc_set_notify()
87 offset = ACC_INTD_OFFSET_STATUS(kq->acc->channel); in knav_acc_set_notify()
104 int range_base, channel, queue = 0; in knav_acc_int_handler() local
122 channel = acc->channel; in knav_acc_int_handler()
126 channel, acc->list_index, list_cpu, list_dma); in knav_acc_int_handler()
130 writel_relaxed(1, pdsp->intd + ACC_INTD_OFFSET_COUNT(channel)); in knav_acc_int_handler()
132 writel_relaxed(ACC_CHANNEL_INT_BASE + channel, in knav_acc_int_handler()
138 notifies = readl_relaxed(pdsp->intd + ACC_INTD_OFFSET_COUNT(channel)); in knav_acc_int_handler()
203 writel_relaxed(1, pdsp->intd + ACC_INTD_OFFSET_COUNT(channel)); in knav_acc_int_handler()
[all …]
/linux-4.4.14/Documentation/leds/
Dleds-lp5523.txt14 The name of each channel is configurable in the platform data - name and label.
15 There are three options to make the channel name.
18 To make specific channel name, then use 'name' platform data.
23 For one device name with channel number, then use 'label'.
52 LP5523 has three master faders. If a channel is mapped to one of
60 creates the following channel-fader mappings:
62 channel 0,6 to master_fader1
63 channel 1,7 to master_fader2
64 channel 2,8 to master_fader3
66 Then, to have 25% of the original output on channel 0,6:
[all …]
/linux-4.4.14/drivers/edac/
Di5000_edac.c467 int channel; in i5000_process_fatal_error_info() local
478 channel = EXTRACT_FBDCHAN_INDX(info->ferr_fat_fbd); in i5000_process_fatal_error_info()
488 rank, channel, bank, in i5000_process_fatal_error_info()
529 channel >> 1, channel & 1, rank, in i5000_process_fatal_error_info()
552 int channel; in i5000_process_nonfatal_error_info() local
574 channel = branch & 2; in i5000_process_nonfatal_error_info()
583 rank, channel, channel + 1, branch >> 1, bank, in i5000_process_nonfatal_error_info()
628 channel >> 1, -1, rank, in i5000_process_nonfatal_error_info()
640 channel = 0; in i5000_process_nonfatal_error_info()
642 channel = 1; in i5000_process_nonfatal_error_info()
[all …]
Di5400_edac.c517 int channel; in i5400_proccess_non_recoverable_info() local
541 channel = branch; in i5400_proccess_non_recoverable_info()
552 rank, channel, channel + 1, branch >> 1, bank, in i5400_proccess_non_recoverable_info()
582 int channel; in i5400_process_nonfatal_error_info() local
607 channel = 0; in i5400_process_nonfatal_error_info()
609 channel = 1; in i5400_process_nonfatal_error_info()
613 channel += branch; in i5400_process_nonfatal_error_info()
625 rank, channel, branch >> 1, bank, in i5400_process_nonfatal_error_info()
636 branch >> 1, channel % 2, rank, in i5400_process_nonfatal_error_info()
837 static int determine_amb_present_reg(struct i5400_pvt *pvt, int channel) in determine_amb_present_reg() argument
[all …]
Dx38_edac.c123 static int eccerrlog_row(int channel, u64 log) in eccerrlog_row() argument
126 (channel * X38_RANKS_PER_CHANNEL); in eccerrlog_row()
208 int channel; in x38_process_error_info() local
221 for (channel = 0; channel < x38_channel_num; channel++) { in x38_process_error_info()
222 log = info->eccerrlog[channel]; in x38_process_error_info()
226 eccerrlog_row(channel, log), in x38_process_error_info()
232 eccerrlog_row(channel, log), in x38_process_error_info()
304 bool stacked, int channel, int rank) in drb_to_nr_pages() argument
308 n = drbs[channel][rank]; in drb_to_nr_pages()
310 n -= drbs[channel][rank - 1]; in drb_to_nr_pages()
[all …]
Di3200_edac.c137 static int eccerrlog_row(int channel, u64 log) in eccerrlog_row() argument
141 return rank | (channel * I3200_RANKS_PER_CHANNEL); in eccerrlog_row()
224 int channel; in i3200_process_error_info() local
236 for (channel = 0; channel < nr_channels; channel++) { in i3200_process_error_info()
237 log = info->eccerrlog[channel]; in i3200_process_error_info()
241 eccerrlog_row(channel, log), in i3200_process_error_info()
247 eccerrlog_row(channel, log), in i3200_process_error_info()
320 int channel, int rank) in drb_to_nr_pages() argument
324 n = drbs[channel][rank]; in drb_to_nr_pages()
329 n -= drbs[channel][rank - 1]; in drb_to_nr_pages()
[all …]
Di7300_edac.c414 unsigned branch, channel, bank, rank, cas, ras; in i7300_process_fbd_error() local
485 channel = (branch << 1); in i7300_process_fbd_error()
487 channel++; in i7300_process_fbd_error()
500 branch >> 1, channel % 2, rank, in i7300_process_fbd_error()
592 int mtr, ans, addrBits, channel; in decode_mtr() local
594 channel = to_channel(ch, branch); in decode_mtr()
600 slot, channel, ans ? "" : "NOT "); in decode_mtr()
690 int channel, slot; in print_dimm_size() local
698 for (channel = 0; channel < MAX_CHANNELS; channel++) { in print_dimm_size()
699 n = snprintf(p, space, "channel %d | ", channel); in print_dimm_size()
[all …]
/linux-4.4.14/sound/sh/
Daica.c270 dreamcastcard->channel, sizeof(struct aica_channel)); in startup_aica()
286 dreamcastcard->channel->flags |= 0x01; in run_spu_dma()
355 struct aica_channel *channel; in snd_aicapcm_pcm_open() local
360 channel = kmalloc(sizeof(struct aica_channel), GFP_KERNEL); in snd_aicapcm_pcm_open()
361 if (!channel) in snd_aicapcm_pcm_open()
364 channel->sfmt = SM_8BIT; in snd_aicapcm_pcm_open()
365 channel->cmd = AICA_CMD_START; in snd_aicapcm_pcm_open()
366 channel->vol = dreamcastcard->master_volume; in snd_aicapcm_pcm_open()
367 channel->pan = 0x80; in snd_aicapcm_pcm_open()
368 channel->pos = 0; in snd_aicapcm_pcm_open()
[all …]
/linux-4.4.14/drivers/w1/masters/
Dds2482.c115 u8 channel; member
128 u8 channel; member
230 __func__, pdev->channel); in ds2482_wait_1wire_idle()
243 static int ds2482_set_channel(struct ds2482_data *pdev, u8 channel) in ds2482_set_channel() argument
246 ds2482_chan_wr[channel]) < 0) in ds2482_set_channel()
250 pdev->channel = -1; in ds2482_set_channel()
251 if (i2c_smbus_read_byte(pdev->client) == ds2482_chan_rd[channel]) { in ds2482_set_channel()
252 pdev->channel = channel; in ds2482_set_channel()
277 ds2482_set_channel(pdev, pchan->channel); in ds2482_w1_touch_bit()
309 ds2482_set_channel(pdev, pchan->channel); in ds2482_w1_triplet()
[all …]
/linux-4.4.14/drivers/staging/rtl8188eu/hal/
Drf.c134 u8 channel, u32 *ofdmbase, u32 *mcs_base) in getpowerbase88e() argument
159 static void get_rx_power_val_by_reg(struct adapter *adapt, u8 channel, in get_rx_power_val_by_reg() argument
186 if (channel < 3) in get_rx_power_val_by_reg()
188 else if (channel < 6) in get_rx_power_val_by_reg()
190 else if (channel < 9) in get_rx_power_val_by_reg()
192 else if (channel < 12) in get_rx_power_val_by_reg()
194 else if (channel < 14) in get_rx_power_val_by_reg()
196 else if (channel == 14) in get_rx_power_val_by_reg()
211 pwr_diff = hal_data->TxPwrLegacyHtDiff[rf][channel-1]; in get_rx_power_val_by_reg()
213 pwr_diff = hal_data->TxPwrHt20Diff[rf][channel-1]; in get_rx_power_val_by_reg()
[all …]
/linux-4.4.14/drivers/net/hyperv/
Dnetvsc.c125 ret = vmbus_sendpacket(net_device->dev->channel, in netvsc_destroy_buf()
143 ret = vmbus_teardown_gpadl(net_device->dev->channel, in netvsc_destroy_buf()
185 ret = vmbus_sendpacket(net_device->dev->channel, in netvsc_destroy_buf()
201 ret = vmbus_teardown_gpadl(net_device->dev->channel, in netvsc_destroy_buf()
238 node = cpu_to_node(device->channel->target_cpu); in netvsc_init_buf()
255 ret = vmbus_establish_gpadl(device->channel, net_device->recv_buf, in netvsc_init_buf()
277 ret = vmbus_sendpacket(device->channel, init_packet, in netvsc_init_buf()
344 ret = vmbus_establish_gpadl(device->channel, net_device->send_buf, in netvsc_init_buf()
362 ret = vmbus_sendpacket(device->channel, init_packet, in netvsc_init_buf()
435 ret = vmbus_sendpacket(device->channel, init_packet, in negotiate_nvsp_ver()
[all …]
/linux-4.4.14/Documentation/sound/oss/
DWaveArtist7 0a - 13 for channel volumes
36 0a | 0 | left PCM channel volume |
38 0b | 0 | right PCM channel volume |
40 0c | 0 | left FM channel volume |
42 0d | 0 | right FM channel volume |
44 0e | 0 | left wavetable channel volume |
46 0f | 0 | right wavetable channel volume |
48 10 | 0 | left PCM expansion channel volume |
50 11 | 0 | right PCM expansion channel volume |
52 12 | 0 | left FM expansion channel volume |
[all …]
/linux-4.4.14/include/video/
Domapdss.h649 void (*enable_hs)(struct omap_dss_device *dssdev, int channel,
653 int (*update)(struct omap_dss_device *dssdev, int channel,
659 int (*enable_video_output)(struct omap_dss_device *dssdev, int channel);
661 int channel);
663 int (*request_vc)(struct omap_dss_device *dssdev, int *channel);
664 int (*set_vc_id)(struct omap_dss_device *dssdev, int channel,
666 void (*release_vc)(struct omap_dss_device *dssdev, int channel);
669 int (*dcs_write)(struct omap_dss_device *dssdev, int channel,
671 int (*dcs_write_nosync)(struct omap_dss_device *dssdev, int channel,
673 int (*dcs_read)(struct omap_dss_device *dssdev, int channel, u8 dcs_cmd,
[all …]
Dimx-ipu-v3.h123 int ipu_idmac_channel_irq(struct ipu_soc *ipu, struct ipuv3_channel *channel,
148 struct ipuv3_channel *ipu_idmac_get(struct ipu_soc *ipu, unsigned channel);
151 int ipu_idmac_enable_channel(struct ipuv3_channel *channel);
152 int ipu_idmac_disable_channel(struct ipuv3_channel *channel);
153 void ipu_idmac_enable_watermark(struct ipuv3_channel *channel, bool enable);
154 int ipu_idmac_lock_enable(struct ipuv3_channel *channel, int num_bursts);
155 int ipu_idmac_wait_busy(struct ipuv3_channel *channel, int ms);
157 void ipu_idmac_set_double_buffer(struct ipuv3_channel *channel,
159 int ipu_idmac_get_current_buffer(struct ipuv3_channel *channel);
160 bool ipu_idmac_buffer_is_ready(struct ipuv3_channel *channel, u32 buf_num);
[all …]
/linux-4.4.14/drivers/net/ethernet/ibm/emac/
Dmal.c85 int mal_set_rcbs(struct mal_instance *mal, int channel, unsigned long size) in mal_set_rcbs() argument
87 BUG_ON(channel < 0 || channel >= mal->num_rx_chans || in mal_set_rcbs()
90 MAL_DBG(mal, "set_rbcs(%d, %lu)" NL, channel, size); in mal_set_rcbs()
95 mal->index, size, channel); in mal_set_rcbs()
99 set_mal_dcrn(mal, MAL_RCBS(channel), size >> 4); in mal_set_rcbs()
103 int mal_tx_bd_offset(struct mal_instance *mal, int channel) in mal_tx_bd_offset() argument
105 BUG_ON(channel < 0 || channel >= mal->num_tx_chans); in mal_tx_bd_offset()
107 return channel * NUM_TX_BUFF; in mal_tx_bd_offset()
110 int mal_rx_bd_offset(struct mal_instance *mal, int channel) in mal_rx_bd_offset() argument
112 BUG_ON(channel < 0 || channel >= mal->num_rx_chans); in mal_rx_bd_offset()
[all …]
/linux-4.4.14/drivers/net/wireless/ath/carl9170/
Dphy.c1035 carl9170_get_hw_dyn_params(struct ieee80211_channel *channel, in carl9170_get_hw_dyn_params() argument
1041 if (channel) { in carl9170_get_hw_dyn_params()
1042 chanidx = channel->hw_value; in carl9170_get_hw_dyn_params()
1043 freq = channel->center_freq; in carl9170_get_hw_dyn_params()
1118 struct ieee80211_channel *channel) in carl9170_set_freq_cal_data() argument
1127 switch (channel->band) { in carl9170_set_freq_cal_data()
1129 f = channel->center_freq - 2300; in carl9170_set_freq_cal_data()
1135 f = (channel->center_freq - 4800) / 5; in carl9170_set_freq_cal_data()
1160 switch (channel->band) { in carl9170_set_freq_cal_data()
1229 if (edges[i].channel == 0xff) in carl9170_get_max_edge_power()
[all …]
/linux-4.4.14/include/linux/mfd/abx500/
Dab8500-gpadc.h56 int ab8500_gpadc_sw_hw_convert(struct ab8500_gpadc *gpadc, u8 channel,
58 static inline int ab8500_gpadc_convert(struct ab8500_gpadc *gpadc, u8 channel) in ab8500_gpadc_convert() argument
60 return ab8500_gpadc_sw_hw_convert(gpadc, channel, in ab8500_gpadc_convert()
64 int ab8500_gpadc_read_raw(struct ab8500_gpadc *gpadc, u8 channel,
66 int ab8500_gpadc_double_read_raw(struct ab8500_gpadc *gpadc, u8 channel,
70 u8 channel, int ad_value);
/linux-4.4.14/drivers/dma/ipu/
Dipu_idmac.c116 static void ipu_ic_enable_task(struct ipu *ipu, enum ipu_channel channel) in ipu_ic_enable_task() argument
120 switch (channel) { in ipu_ic_enable_task()
135 static void ipu_ic_disable_task(struct ipu *ipu, enum ipu_channel channel) in ipu_ic_disable_task() argument
139 switch (channel) { in ipu_ic_disable_task()
153 static uint32_t ipu_channel_status(struct ipu *ipu, enum ipu_channel channel) in ipu_channel_status() argument
158 switch (channel) { in ipu_channel_status()
563 static void ipu_channel_set_priority(struct ipu *ipu, enum ipu_channel channel, in ipu_channel_set_priority() argument
569 reg |= 1UL << channel; in ipu_channel_set_priority()
571 reg &= ~(1UL << channel); in ipu_channel_set_priority()
578 static uint32_t ipu_channel_conf_mask(enum ipu_channel channel) in ipu_channel_conf_mask() argument
[all …]
/linux-4.4.14/drivers/staging/rtl8188eu/core/
Drtw_rf.c29 u32 channel; member
57 u32 rtw_ch2freq(u32 channel) in rtw_ch2freq() argument
63 if (channel == ch_freq_map[i].channel) { in rtw_ch2freq()
81 ch = ch_freq_map[i].channel; in rtw_freq2ch()
/linux-4.4.14/Documentation/filesystems/
Drelay.txt8 A 'relay channel' is a kernel->user data relay mechanism implemented
9 as a set of per-cpu kernel buffers ('channel buffers'), each
11 clients write into the channel buffers using efficient write
12 functions; these automatically log into the current cpu's channel
16 are associated with the channel buffers using the API described below.
18 The format of the data logged into the channel buffers is completely
32 Each relay channel has one buffer per CPU, each buffer has one or more
47 A relay channel can operate in a mode where it will overwrite data not
50 The relay channel itself does not provide for communication of such
58 the channel buffers, special-purpose communication between kernel and
[all …]
/linux-4.4.14/arch/powerpc/boot/dts/
Dmpc8610_hpcd.dts307 dma00: dma-channel@0 {
308 compatible = "fsl,mpc8610-dma-channel",
309 "fsl,ssi-dma-channel";
315 dma01: dma-channel@1 {
316 compatible = "fsl,mpc8610-dma-channel",
317 "fsl,ssi-dma-channel";
323 dma-channel@2 {
324 compatible = "fsl,mpc8610-dma-channel",
325 "fsl,eloplus-dma-channel";
331 dma-channel@3 {
[all …]
Dmpc8349emitxgp.dts111 dma-channel@0 {
112 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
118 dma-channel@80 {
119 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
125 dma-channel@100 {
126 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
132 dma-channel@180 {
133 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
214 fsl,channel-fifo-len = <24>;
Dxpedite5301.dts295 dma-channel@0 {
296 compatible = "fsl,mpc8572-dma-channel",
297 "fsl,eloplus-dma-channel";
303 dma-channel@80 {
304 compatible = "fsl,mpc8572-dma-channel",
305 "fsl,eloplus-dma-channel";
311 dma-channel@100 {
312 compatible = "fsl,mpc8572-dma-channel",
313 "fsl,eloplus-dma-channel";
319 dma-channel@180 {
[all …]
/linux-4.4.14/sound/firewire/dice/
Ddice-stream.c47 __be32 channel; in release_resources() local
50 channel = cpu_to_be32((u32)-1); in release_resources()
53 &channel, sizeof(channel)); in release_resources()
56 &channel, sizeof(channel)); in release_resources()
65 __be32 channel; in keep_resources() local
74 channel = cpu_to_be32(resources->channel); in keep_resources()
77 &channel, sizeof(channel)); in keep_resources()
80 &channel, sizeof(channel)); in keep_resources()
158 err = amdtp_stream_start(stream, resources->channel, in start_stream()
/linux-4.4.14/drivers/ide/
Dit821x.c117 int channel = hwif->channel; in it821x_program() local
126 pci_write_config_byte(dev, 0x54 + 4 * channel, conf); in it821x_program()
143 int channel = hwif->channel; in it821x_program_udma() local
153 pci_write_config_byte(dev, 0x56 + 4 * channel + unit, conf); in it821x_program_udma()
155 pci_write_config_byte(dev, 0x56 + 4 * channel, conf); in it821x_program_udma()
156 pci_write_config_byte(dev, 0x56 + 4 * channel + 1, conf); in it821x_program_udma()
208 v &= ~(1 << (1 + hwif->channel)); in it821x_clock_strategy()
209 v |= sel << (1 + hwif->channel); in it821x_clock_strategy()
286 u8 unit = drive->dn & 1, channel = hwif->channel, conf; in it821x_tune_mwdma() local
299 conf |= channel ? 0x60: 0x18; in it821x_tune_mwdma()
[all …]
/linux-4.4.14/sound/pci/oxygen/
Doxygen_pcm.c133 unsigned int channel) in oxygen_open() argument
139 runtime->private_data = (void *)(uintptr_t)channel; in oxygen_open()
140 if (channel == PCM_B && chip->has_ac97_1 && in oxygen_open()
144 runtime->hw = *oxygen_hardware[channel]; in oxygen_open()
145 switch (channel) { in oxygen_open()
162 chip->model.pcm_hardware_filter(channel, &runtime->hw); in oxygen_open()
184 chip->streams[channel] = substream; in oxygen_open()
187 chip->pcm_active |= 1 << channel; in oxygen_open()
188 if (channel == PCM_SPDIF) { in oxygen_open()
234 unsigned int channel = oxygen_substream_channel(substream); in oxygen_close() local
[all …]
/linux-4.4.14/sound/mips/
Dsgio2audio.c102 struct snd_sgio2audio_chan channel[3]; member
369 struct snd_pcm_runtime *runtime = chip->channel[ch].substream->runtime; in snd_sgio2audio_dma_pull_frag()
371 spin_lock_irqsave(&chip->channel[ch].lock, flags); in snd_sgio2audio_dma_pull_frag()
376 dst_pos = chip->channel[ch].pos; in snd_sgio2audio_dma_pull_frag()
380 chip->channel[ch].size += (count >> 3); /* in frames */ in snd_sgio2audio_dma_pull_frag()
381 ret = chip->channel[ch].size >= runtime->period_size; in snd_sgio2audio_dma_pull_frag()
382 chip->channel[ch].size %= runtime->period_size; in snd_sgio2audio_dma_pull_frag()
398 chip->channel[ch].pos = dst_pos; in snd_sgio2audio_dma_pull_frag()
400 spin_unlock_irqrestore(&chip->channel[ch].lock, flags); in snd_sgio2audio_dma_pull_frag()
417 struct snd_pcm_runtime *runtime = chip->channel[ch].substream->runtime; in snd_sgio2audio_dma_push_frag()
[all …]
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Drf.c146 u8 *ppowerlevel_bw40, u8 channel, in rtl8821ae_phy_get_power_base() argument
184 u8 channel, u8 index, in get_txpower_writeval_by_regulatory() argument
213 if (channel < 3) in get_txpower_writeval_by_regulatory()
215 else if (channel < 6) in get_txpower_writeval_by_regulatory()
217 else if (channel < 9) in get_txpower_writeval_by_regulatory()
219 else if (channel < 12) in get_txpower_writeval_by_regulatory()
221 else if (channel < 14) in get_txpower_writeval_by_regulatory()
223 else if (channel == 14) in get_txpower_writeval_by_regulatory()
253 rtlefuse->pwrgroup_ht40[rf][channel - in get_txpower_writeval_by_regulatory()
259 rtlefuse->pwrgroup_ht20[rf][channel - in get_txpower_writeval_by_regulatory()
[all …]
/linux-4.4.14/sound/pci/ca0106/
Dca0106_main.c564 struct snd_ca0106_channel *channel = &(chip->playback_channels[channel_id]); in snd_ca0106_pcm_open_playback_channel() local
582 channel->emu = chip; in snd_ca0106_pcm_open_playback_channel()
583 channel->number = channel_id; in snd_ca0106_pcm_open_playback_channel()
585 channel->use = 1; in snd_ca0106_pcm_open_playback_channel()
591 channel->epcm = epcm; in snd_ca0106_pcm_open_playback_channel()
657 struct snd_ca0106_channel *channel = &(chip->capture_channels[channel_id]); in snd_ca0106_pcm_open_capture_channel() local
677 channel->emu = chip; in snd_ca0106_pcm_open_capture_channel()
678 channel->number = channel_id; in snd_ca0106_pcm_open_capture_channel()
680 channel->use = 1; in snd_ca0106_pcm_open_capture_channel()
686 channel->epcm = epcm; in snd_ca0106_pcm_open_capture_channel()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/hsi/
Dclient-devices.txt7 - hsi-channel-ids: A list of channel ids
20 - hsi-channel-names: A list with one name per channel specified in the
21 hsi-channel-ids property
31 hsi-channel-ids = <0>, <1>, <2>, <3>;
32 hsi-channel-names = "mcsaab-control",
/linux-4.4.14/drivers/staging/octeon-usb/
Docteon-hcd.c344 uint8_t channel; member
350 int channel; member
433 #define USB_FIFO_ADDRESS(channel, usb_index) \ argument
434 (CVMX_USBCX_GOTGCTL(usb_index) + ((channel)+1)*0x1000)
714 int channel; in cvmx_usb_initialize() local
923 for (channel = 0; channel < 8; channel++) in cvmx_usb_initialize()
925 CVMX_USBCX_HCINTMSKX(channel, usb->index), in cvmx_usb_initialize()
1180 int channel; in cvmx_usb_poll_rx_fifo() local
1194 channel = rx_status.s.chnum; in cvmx_usb_poll_rx_fifo()
1201 channel * 8); in cvmx_usb_poll_rx_fifo()
[all …]
/linux-4.4.14/drivers/usb/atm/
Dusbatm.c211 static struct urb *usbatm_pop_urb(struct usbatm_channel *channel) in usbatm_pop_urb() argument
215 spin_lock_irq(&channel->lock); in usbatm_pop_urb()
216 if (list_empty(&channel->list)) { in usbatm_pop_urb()
217 spin_unlock_irq(&channel->lock); in usbatm_pop_urb()
221 urb = list_entry(channel->list.next, struct urb, urb_list); in usbatm_pop_urb()
223 spin_unlock_irq(&channel->lock); in usbatm_pop_urb()
230 struct usbatm_channel *channel = urb->context; in usbatm_submit_urb() local
239 atm_warn(channel->usbatm, "%s: urb 0x%p submission failed (%d)!\n", in usbatm_submit_urb()
244 spin_lock_irq(&channel->lock); in usbatm_submit_urb()
247 list_add(&urb->urb_list, &channel->list); in usbatm_submit_urb()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/display/imx/
Dldb.txt6 The LVDS Display Bridge device tree node contains up to two lvds-channel
15 interfaces as input for each LVDS channel.
23 "di0_pll" - LDB LVDS channel 0 mux
24 "di1_pll" - LDB LVDS channel 1 mux
25 "di0" - LDB LVDS channel 0 gate
26 "di1" - LDB LVDS channel 1 gate
40 - fsl,dual-channel : boolean. if it exists, only LVDS channel 0 should
42 channel mode
56 limitations, only one input port (port@[0,1]) can be used for each channel
57 (lvds-channel@[0,1], respectively).
[all …]
/linux-4.4.14/drivers/gpu/drm/tegra/
Dgr2d.c17 struct host1x_channel *channel; member
35 gr2d->channel = host1x_channel_request(client->dev); in gr2d_init()
36 if (!gr2d->channel) in gr2d_init()
41 host1x_channel_free(gr2d->channel); in gr2d_init()
60 host1x_channel_free(gr2d->channel); in gr2d_exit()
75 context->channel = host1x_channel_get(gr2d->channel); in gr2d_open_channel()
76 if (!context->channel) in gr2d_open_channel()
84 host1x_channel_put(context->channel); in gr2d_close_channel()
/linux-4.4.14/Documentation/devicetree/bindings/gpio/
Dgpio-xilinx.txt3 Dual channel GPIO controller with configurable number of pins
4 (from 1 to 32 per channel). Every pin can be configured as
6 local interrupts can be enabled on channel basis.
23 - xlnx,is-dual : if 1, controller also uses the second channel
24 - xlnx,all-inputs-2 : as above but for the second channel
25 - xlnx,dout-default-2 : as above but the second channel
26 - xlnx,gpio2-width : as above but for the second channel
27 - xlnx,tri-default-2 : as above but for the second channel
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Drf.c162 u8 channel, u32 *ofdmbase, in rtl8723be_phy_get_power_base() argument
201 u8 channel, u8 index, in _rtl8723be_get_txpower_writeval_by_regulatory() argument
230 if (channel < 3) in _rtl8723be_get_txpower_writeval_by_regulatory()
232 else if (channel < 6) in _rtl8723be_get_txpower_writeval_by_regulatory()
234 else if (channel < 9) in _rtl8723be_get_txpower_writeval_by_regulatory()
236 else if (channel < 12) in _rtl8723be_get_txpower_writeval_by_regulatory()
238 else if (channel < 14) in _rtl8723be_get_txpower_writeval_by_regulatory()
240 else if (channel == 14) in _rtl8723be_get_txpower_writeval_by_regulatory()
271 [rf][channel - 1]); in _rtl8723be_get_txpower_writeval_by_regulatory()
277 [rf][channel - 1]); in _rtl8723be_get_txpower_writeval_by_regulatory()
[all …]
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
Drf.c152 u8 *ppowerlevel, u8 channel, in rtl92c_phy_get_power_base() argument
164 legacy_pwrdiff = rtlefuse->txpwr_legacyhtdiff[i][channel - 1]; in rtl92c_phy_get_power_base()
177 ht20_pwrdiff = rtlefuse->txpwr_ht20diff[i][channel - 1]; in rtl92c_phy_get_power_base()
193 u8 channel, u8 index, in _rtl92c_get_txpower_writeval_by_regulatory() argument
229 if (channel <= 3) in _rtl92c_get_txpower_writeval_by_regulatory()
231 else if (channel >= 4 && channel <= 9) in _rtl92c_get_txpower_writeval_by_regulatory()
233 else if (channel > 9) in _rtl92c_get_txpower_writeval_by_regulatory()
264 rtlefuse->pwrgroup_ht40[rf][channel - in _rtl92c_get_txpower_writeval_by_regulatory()
270 rtlefuse->pwrgroup_ht20[rf][channel - in _rtl92c_get_txpower_writeval_by_regulatory()
283 pwrgroup_ht40[rf][channel - 1]) in _rtl92c_get_txpower_writeval_by_regulatory()
[all …]
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
Drf.c162 u8 *ppowerlevel_bw40, u8 channel, in rtl88e_phy_get_power_base() argument
200 u8 channel, u8 index, in _rtl88e_get_txpower_writeval_by_regulatory() argument
229 if (channel < 3) in _rtl88e_get_txpower_writeval_by_regulatory()
231 else if (channel < 6) in _rtl88e_get_txpower_writeval_by_regulatory()
233 else if (channel < 9) in _rtl88e_get_txpower_writeval_by_regulatory()
235 else if (channel < 12) in _rtl88e_get_txpower_writeval_by_regulatory()
237 else if (channel < 14) in _rtl88e_get_txpower_writeval_by_regulatory()
239 else if (channel == 14) in _rtl88e_get_txpower_writeval_by_regulatory()
269 rtlefuse->pwrgroup_ht40[rf][channel - in _rtl88e_get_txpower_writeval_by_regulatory()
275 rtlefuse->pwrgroup_ht20[rf][channel - in _rtl88e_get_txpower_writeval_by_regulatory()
[all …]
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
Drf.c152 u8 *ppowerlevel, u8 channel, in rtl8723e_phy_get_power_base() argument
164 legacy_pwrdiff = rtlefuse->txpwr_legacyhtdiff[i][channel - 1]; in rtl8723e_phy_get_power_base()
178 rtlefuse->txpwr_ht20diff[i][channel - 1]; in rtl8723e_phy_get_power_base()
194 u8 channel, u8 index, in get_txpower_writeval_by_reg() argument
231 if (channel <= 3) in get_txpower_writeval_by_reg()
233 else if (channel >= 4 && channel <= 9) in get_txpower_writeval_by_reg()
235 else if (channel > 9) in get_txpower_writeval_by_reg()
270 rtlefuse->pwrgroup_ht40[rf][channel - in get_txpower_writeval_by_reg()
276 rtlefuse->pwrgroup_ht20[rf][channel - in get_txpower_writeval_by_reg()
290 pwrgroup_ht40[rf][channel - 1]) in get_txpower_writeval_by_reg()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/input/
Dsun4i-lradc-keys.txt15 - channel: Channel this key is attached to, must be 0 or 1.
31 channel = <0>;
38 channel = <0>;
45 channel = <0>;
52 channel = <0>;
59 channel = <0>;
/linux-4.4.14/drivers/media/usb/gspca/
Dspca506.c37 char channel; member
125 __u16 channel) in spca506_SetNormeInput() argument
140 if (channel == 4 || channel == 5 || channel > 9) in spca506_SetNormeInput()
141 channel = 0; in spca506_SetNormeInput()
142 if (channel < 4) in spca506_SetNormeInput()
146 spca506_WriteI2c(gspca_dev, (0xc0 | (channel & 0x0F)), 0x02); in spca506_SetNormeInput()
159 sd->channel = channel; in spca506_SetNormeInput()
161 PDEBUG(D_STREAM, "Set Norme: %08x Channel %d", norme, channel); in spca506_SetNormeInput()
165 __u16 *norme, __u16 *channel) in spca506_GetNormeInput() argument
172 *channel = sd->channel; in spca506_GetNormeInput()
[all …]
/linux-4.4.14/arch/sh/kernel/cpu/
Dadc.c12 int adc_single(unsigned int channel) in adc_single() argument
17 if (channel >= 8) return -1; in adc_single()
19 off = (channel & 0x03) << 2; in adc_single()
22 csr = channel | ADCSR_ADST | ADCSR_CKS; in adc_single()
/linux-4.4.14/Documentation/devicetree/bindings/iio/adc/
Dqcom,spmi-vadc.txt22 channel number.
29 - #io-channel-cells:
45 Definition: ADC channel number.
59 Definition: Used for scaling the channel input signal before the signal is
70 VADC will use the VDD reference (1.8V) and GND for channel
71 calibration. If property is not found, channel will be
83 If property is not found, channel will use 0us.
98 result calibration and their channel configuration nodes should be defined:
111 #io-channel-cells = <1>;
112 io-channel-ranges;
[all …]
/linux-4.4.14/arch/cris/
DKconfig346 prompt "Ser0 DMA out channel"
360 Enables the DMA6 output channel for ser0 (ttyS0).
363 Normally you want to use DMA, unless you use the DMA channel for
370 Enables the DMA0 output channel for ser0 (ttyS0).
373 Normally you want to use DMA, unless you use the DMA channel for
379 prompt "Ser0 DMA in channel "
384 What DMA channel to use for ser0.
395 Enables the DMA7 input channel for ser0 (ttyS0).
398 Normally you want to use DMA, unless you use the DMA channel for
405 Enables the DMA1 input channel for ser0 (ttyS0).
[all …]
/linux-4.4.14/drivers/net/wireless/ti/wl1251/
Dcmd.c206 int wl1251_cmd_data_path_rx(struct wl1251 *wl, u8 channel, bool enable) in wl1251_cmd_data_path_rx() argument
220 cmd->channel = channel; in wl1251_cmd_data_path_rx()
230 enable ? "start" : "stop", channel); in wl1251_cmd_data_path_rx()
235 enable ? "start" : "stop", channel); in wl1251_cmd_data_path_rx()
242 int wl1251_cmd_data_path_tx(struct wl1251 *wl, u8 channel, bool enable) in wl1251_cmd_data_path_tx() argument
254 cmd->channel = channel; in wl1251_cmd_data_path_tx()
264 enable ? "start" : "stop", channel); in wl1251_cmd_data_path_tx()
267 enable ? "start" : "stop", channel); in wl1251_cmd_data_path_tx()
273 int wl1251_cmd_join(struct wl1251 *wl, u8 bss_type, u8 channel, in wl1251_cmd_join() argument
288 channel, beacon_interval, dtim_interval); in wl1251_cmd_join()
[all …]
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
Drf.c150 u8 *ppowerlevel, u8 channel, in rtl92c_phy_get_power_base() argument
162 legacy_pwrdiff = rtlefuse->txpwr_legacyhtdiff[i][channel - 1]; in rtl92c_phy_get_power_base()
173 ht20_pwrdiff = rtlefuse->txpwr_ht20diff[i][channel - 1]; in rtl92c_phy_get_power_base()
187 u8 channel, u8 index, in _rtl92c_get_txpower_writeval_by_regulatory() argument
213 if (channel <= 3) in _rtl92c_get_txpower_writeval_by_regulatory()
215 else if (channel >= 4 && channel <= 9) in _rtl92c_get_txpower_writeval_by_regulatory()
217 else if (channel > 9) in _rtl92c_get_txpower_writeval_by_regulatory()
248 [channel - 1]); in _rtl92c_get_txpower_writeval_by_regulatory()
254 [channel - 1]); in _rtl92c_get_txpower_writeval_by_regulatory()
264 [channel - 1]) in _rtl92c_get_txpower_writeval_by_regulatory()
[all …]
/linux-4.4.14/Documentation/dmaengine/
Dpxa_dma.txt8 is queued even on a running DMA channel.
13 stop and restart, but is submitted on a "running channel". The other
24 A driver should be able to query if a channel is running or not. For the
26 a check of the DMA channel reports a "stopped channel", the transfer should
28 know if a channel is in running or stopped state.
41 channel" linked to the requestor line, and the physical DMA channel is
56 physical channel, meaning that a read of this value will tell which
79 If while new_link was created the DMA channel stopped, it is _not_
86 - then hot-chaining cannot happen, as the channel must be stopped, the
87 "align bit" must be set, and the channel restarted As a consequence,
[all …]
/linux-4.4.14/drivers/staging/rtl8192e/rtl8192e/
Dr8192E_phy.c630 void rtl92e_set_tx_power(struct net_device *dev, u8 channel) in rtl92e_set_tx_power() argument
638 powerlevel = priv->TxPowerLevelCCK[channel-1]; in rtl92e_set_tx_power()
639 powerlevelOFDM24G = priv->TxPowerLevelOFDM24G[channel-1]; in rtl92e_set_tx_power()
642 powerlevel = priv->TxPowerLevelCCK_C[channel-1]; in rtl92e_set_tx_power()
643 powerlevelOFDM24G = priv->TxPowerLevelOFDM24G_C[channel-1]; in rtl92e_set_tx_power()
645 powerlevel = priv->TxPowerLevelCCK_A[channel-1]; in rtl92e_set_tx_power()
646 powerlevelOFDM24G = priv->TxPowerLevelOFDM24G_A[channel-1]; in rtl92e_set_tx_power()
648 ant_pwr_diff = priv->TxPowerLevelOFDM24G_C[channel-1] in rtl92e_set_tx_power()
649 - priv->TxPowerLevelOFDM24G_A[channel-1]; in rtl92e_set_tx_power()
769 static void _rtl92e_set_tx_power_level(struct net_device *dev, u8 channel) in _rtl92e_set_tx_power_level() argument
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/hwmon/
Dads1015.txt17 Each channel can be configured individually:
43 The node contains child nodes for each channel that the platform uses.
56 2) channel nodes
60 - reg : the channel number
67 Example ADS1015 channel node:
69 channel@4 {
/linux-4.4.14/drivers/net/wireless/ti/wl18xx/
Dcmd.c46 cmd->channel = ch_switch->chandef.chan->hw_value; in wl18xx_cmd_channel_switch()
182 wlvif->channel, start ? "start" : "stop"); in wl18xx_cmd_set_cac()
189 cmd->channel = wlvif->channel; in wl18xx_cmd_set_cac()
207 int wl18xx_cmd_radar_detection_debug(struct wl1271 *wl, u8 channel) in wl18xx_cmd_radar_detection_debug() argument
213 channel); in wl18xx_cmd_radar_detection_debug()
219 cmd->channel = channel; in wl18xx_cmd_radar_detection_debug()
/linux-4.4.14/drivers/staging/iio/Documentation/
Dinkernel.txt7 Describing the channel mapping (iio/machine.h)
17 adc_channel_label identifies the channel on the IIO device by being
21 This are then used to find the channel mapping from the consumer device (see
24 Finally consumer_channel is a string identifying the channel to the consumer.
37 to associate a given channel with the consumer requesting it.
42 by calling iio_channel_get(). The correct channel is identified by:
48 about this channel such as it's current reading.
52 iio_get_channel_type() - get the type of channel
/linux-4.4.14/drivers/net/wireless/orinoco/
Dscan.c78 struct ieee80211_channel *channel; in orinoco_add_hostscan_result() local
114 le16_to_cpu(bss->a.channel), IEEE80211_BAND_2GHZ); in orinoco_add_hostscan_result()
115 channel = ieee80211_get_channel(wiphy, freq); in orinoco_add_hostscan_result()
116 if (!channel) { in orinoco_add_hostscan_result()
118 bss->a.channel, freq); in orinoco_add_hostscan_result()
126 cbss = cfg80211_inform_bss(wiphy, channel, CFG80211_BSS_FTYPE_UNKNOWN, in orinoco_add_hostscan_result()
138 struct ieee80211_channel *channel; in orinoco_add_extscan_result() local
152 channel = ieee80211_get_channel(wiphy, freq); in orinoco_add_extscan_result()
160 cbss = cfg80211_inform_bss(wiphy, channel, CFG80211_BSS_FTYPE_UNKNOWN, in orinoco_add_extscan_result()
/linux-4.4.14/drivers/net/wireless/iwlegacy/
D4965.c618 il4965_get_tx_atten_grp(u16 channel) in il4965_get_tx_atten_grp() argument
620 if (channel >= CALIB_IL_TX_ATTEN_GR5_FCH && in il4965_get_tx_atten_grp()
621 channel <= CALIB_IL_TX_ATTEN_GR5_LCH) in il4965_get_tx_atten_grp()
624 if (channel >= CALIB_IL_TX_ATTEN_GR1_FCH && in il4965_get_tx_atten_grp()
625 channel <= CALIB_IL_TX_ATTEN_GR1_LCH) in il4965_get_tx_atten_grp()
628 if (channel >= CALIB_IL_TX_ATTEN_GR2_FCH && in il4965_get_tx_atten_grp()
629 channel <= CALIB_IL_TX_ATTEN_GR2_LCH) in il4965_get_tx_atten_grp()
632 if (channel >= CALIB_IL_TX_ATTEN_GR3_FCH && in il4965_get_tx_atten_grp()
633 channel <= CALIB_IL_TX_ATTEN_GR3_LCH) in il4965_get_tx_atten_grp()
636 if (channel >= CALIB_IL_TX_ATTEN_GR4_FCH && in il4965_get_tx_atten_grp()
[all …]

12345678910