Home
last modified time | relevance | path

Searched refs:channel (Results 1 – 25 of 2205) sorted by relevance

12345678910>>...89

/Linux-v5.4/drivers/char/xillybus/
Dxillybus_core.c131 struct xilly_channel *channel; in xillybus_isr() local
191 channel = ep->channels[msg_channel]; in xillybus_isr()
194 if (msg_bufno >= channel->num_wr_buffers) { in xillybus_isr()
198 spin_lock(&channel->wr_spinlock); in xillybus_isr()
199 channel->wr_buffers[msg_bufno]->end_offset = in xillybus_isr()
201 channel->wr_fpga_buf_idx = msg_bufno; in xillybus_isr()
202 channel->wr_empty = 0; in xillybus_isr()
203 channel->wr_sleepy = 0; in xillybus_isr()
204 spin_unlock(&channel->wr_spinlock); in xillybus_isr()
206 wake_up_interruptible(&channel->wr_wait); in xillybus_isr()
[all …]
/Linux-v5.4/drivers/visorbus/
Dvisorchannel.c48 void visorchannel_destroy(struct visorchannel *channel) in visorchannel_destroy() argument
50 if (!channel) in visorchannel_destroy()
53 if (channel->mapped) { in visorchannel_destroy()
54 memunmap(channel->mapped); in visorchannel_destroy()
55 if (channel->requested) in visorchannel_destroy()
56 release_mem_region(channel->physaddr, channel->nbytes); in visorchannel_destroy()
58 kfree(channel); in visorchannel_destroy()
61 u64 visorchannel_get_physaddr(struct visorchannel *channel) in visorchannel_get_physaddr() argument
63 return channel->physaddr; in visorchannel_get_physaddr()
66 ulong visorchannel_get_nbytes(struct visorchannel *channel) in visorchannel_get_nbytes() argument
[all …]
/Linux-v5.4/drivers/rpmsg/
Dqcom_smd.c275 #define GET_RX_CHANNEL_FLAG(channel, param) \ argument
277 BUILD_BUG_ON(sizeof(channel->info->rx.param) != sizeof(u8)); \
278 channel->info_word ? \
279 le32_to_cpu(channel->info_word->rx.param) : \
280 channel->info->rx.param; \
283 #define GET_RX_CHANNEL_INFO(channel, param) \ argument
285 BUILD_BUG_ON(sizeof(channel->info->rx.param) != sizeof(u32)); \
286 le32_to_cpu(channel->info_word ? \
287 channel->info_word->rx.param : \
288 channel->info->rx.param); \
[all …]
Dqcom_glink_native.c212 struct glink_channel *channel; in qcom_glink_alloc_channel() local
214 channel = kzalloc(sizeof(*channel), GFP_KERNEL); in qcom_glink_alloc_channel()
215 if (!channel) in qcom_glink_alloc_channel()
219 spin_lock_init(&channel->recv_lock); in qcom_glink_alloc_channel()
220 spin_lock_init(&channel->intent_lock); in qcom_glink_alloc_channel()
221 mutex_init(&channel->intent_req_lock); in qcom_glink_alloc_channel()
223 channel->glink = glink; in qcom_glink_alloc_channel()
224 channel->name = kstrdup(name, GFP_KERNEL); in qcom_glink_alloc_channel()
226 init_completion(&channel->open_req); in qcom_glink_alloc_channel()
227 init_completion(&channel->open_ack); in qcom_glink_alloc_channel()
[all …]
/Linux-v5.4/drivers/hsi/controllers/
Domap_ssi_regs.h33 # define SSI_DATAACCEPT(channel) (1 << (channel)) argument
34 # define SSI_DATAAVAILABLE(channel) (1 << ((channel) + 8)) argument
35 # define SSI_DATAOVERRUN(channel) (1 << ((channel) + 16)) argument
40 # define SSI_GDD_LCH(channel) (1 << (channel)) argument
44 # define SSI_WAKE(channel) (1 << (channel)) argument
62 # define SSI_FULL(channel) (1 << (channel)) argument
71 #define SSI_SST_BUFFER_CH_REG(channel) (0x80 + ((channel) * 4)) argument
72 #define SSI_SST_SWAPBUF_CH_REG(channel) (0xc0 + ((channel) * 4)) argument
82 # define SSI_NOTEMPTY(channel) (1 << (channel)) argument
91 #define SSI_SSR_BUFFER_CH_REG(channel) (0x80 + ((channel) * 4)) argument
[all …]
/Linux-v5.4/drivers/ipack/devices/
Dipoctal.c49 struct ipoctal_channel channel[NR_CHANNELS]; member
58 return container_of(chan, struct ipoctal, channel[index]); in chan_to_ipoctal()
61 static void ipoctal_reset_channel(struct ipoctal_channel *channel) in ipoctal_reset_channel() argument
63 iowrite8(CR_DISABLE_RX | CR_DISABLE_TX, &channel->regs->w.cr); in ipoctal_reset_channel()
64 channel->rx_enable = 0; in ipoctal_reset_channel()
65 iowrite8(CR_CMD_RESET_RX, &channel->regs->w.cr); in ipoctal_reset_channel()
66 iowrite8(CR_CMD_RESET_TX, &channel->regs->w.cr); in ipoctal_reset_channel()
67 iowrite8(CR_CMD_RESET_ERR_STATUS, &channel->regs->w.cr); in ipoctal_reset_channel()
68 iowrite8(CR_CMD_RESET_MR, &channel->regs->w.cr); in ipoctal_reset_channel()
73 struct ipoctal_channel *channel; in ipoctal_port_activate() local
[all …]
/Linux-v5.4/drivers/staging/greybus/
Dlight.c69 static void gb_lights_channel_free(struct gb_channel *channel);
71 static struct gb_connection *get_conn_from_channel(struct gb_channel *channel) in get_conn_from_channel() argument
73 return channel->light->glights->connection; in get_conn_from_channel()
81 static bool is_channel_flash(struct gb_channel *channel) in is_channel_flash() argument
83 return !!(channel->mode & (GB_CHANNEL_MODE_FLASH | GB_CHANNEL_MODE_TORCH in is_channel_flash()
95 static struct led_classdev *get_channel_cdev(struct gb_channel *channel) in get_channel_cdev() argument
97 return &channel->fled.led_cdev; in get_channel_cdev()
103 struct gb_channel *channel = NULL; in get_channel_from_mode() local
107 channel = &light->channels[i]; in get_channel_from_mode()
108 if (channel && channel->mode == mode) in get_channel_from_mode()
[all …]
/Linux-v5.4/drivers/staging/most/sound/
Dsound.c42 struct channel { struct
169 static struct channel *get_channel(struct most_interface *iface, in get_channel()
173 struct channel *channel, *tmp; in get_channel() local
175 list_for_each_entry_safe(channel, tmp, &adpt->dev_list, list) { in get_channel()
176 if ((channel->iface == iface) && (channel->id == channel_id)) in get_channel()
177 return channel; in get_channel()
190 static bool copy_data(struct channel *channel, struct mbo *mbo) in copy_data() argument
192 struct snd_pcm_runtime *const runtime = channel->substream->runtime; in copy_data()
193 unsigned int const frame_bytes = channel->cfg->subbuffer_size; in copy_data()
198 if (channel->cfg->direction & MOST_CH_RX) in copy_data()
[all …]
/Linux-v5.4/drivers/hsi/clients/
Dhsi_char.c116 static void hsc_add_tail(struct hsc_channel *channel, struct hsi_msg *msg, in hsc_add_tail() argument
121 spin_lock_irqsave(&channel->lock, flags); in hsc_add_tail()
123 spin_unlock_irqrestore(&channel->lock, flags); in hsc_add_tail()
126 static struct hsi_msg *hsc_get_first_msg(struct hsc_channel *channel, in hsc_get_first_msg() argument
132 spin_lock_irqsave(&channel->lock, flags); in hsc_get_first_msg()
140 spin_unlock_irqrestore(&channel->lock, flags); in hsc_get_first_msg()
161 static void hsc_reset_list(struct hsc_channel *channel, struct list_head *l) in hsc_reset_list() argument
166 spin_lock_irqsave(&channel->lock, flags); in hsc_reset_list()
168 spin_unlock_irqrestore(&channel->lock, flags); in hsc_reset_list()
195 static inline int hsc_msgs_alloc(struct hsc_channel *channel) in hsc_msgs_alloc() argument
[all …]
/Linux-v5.4/sound/xen/
Dxen_snd_front_evtchnl.c23 struct xen_snd_front_evtchnl *channel = dev_id; in evtchnl_interrupt_req() local
24 struct xen_snd_front_info *front_info = channel->front_info; in evtchnl_interrupt_req()
28 if (unlikely(channel->state != EVTCHNL_STATE_CONNECTED)) in evtchnl_interrupt_req()
31 mutex_lock(&channel->ring_io_lock); in evtchnl_interrupt_req()
34 rp = channel->u.req.ring.sring->rsp_prod; in evtchnl_interrupt_req()
43 for (i = channel->u.req.ring.rsp_cons; i != rp; i++) { in evtchnl_interrupt_req()
44 resp = RING_GET_RESPONSE(&channel->u.req.ring, i); in evtchnl_interrupt_req()
45 if (resp->id != channel->evt_id) in evtchnl_interrupt_req()
57 channel->u.req.resp_status = resp->status; in evtchnl_interrupt_req()
58 complete(&channel->u.req.completion); in evtchnl_interrupt_req()
[all …]
/Linux-v5.4/drivers/staging/media/allegro-dvt/
Dallegro-core.c226 allegro_set_state(struct allegro_channel *channel, enum allegro_state state) in allegro_set_state() argument
228 channel->state = state; in allegro_set_state()
234 allegro_get_state(struct allegro_channel *channel) in allegro_get_state() argument
236 return channel->state; in allegro_get_state()
546 struct allegro_channel *channel; in allegro_find_channel_by_user_id() local
548 list_for_each_entry(channel, &dev->channels, list) { in allegro_find_channel_by_user_id()
549 if (channel->user_id == user_id) in allegro_find_channel_by_user_id()
550 return channel; in allegro_find_channel_by_user_id()
560 struct allegro_channel *channel; in allegro_find_channel_by_channel_id() local
562 list_for_each_entry(channel, &dev->channels, list) { in allegro_find_channel_by_channel_id()
[all …]
/Linux-v5.4/drivers/net/wireless/broadcom/b43/
Dradio_2055.c292 { .channel = 184,
300 { .channel = 186,
308 { .channel = 188,
316 { .channel = 190,
324 { .channel = 192,
332 { .channel = 194,
340 { .channel = 196,
348 { .channel = 198,
356 { .channel = 200,
364 { .channel = 202,
[all …]
/Linux-v5.4/Documentation/devicetree/bindings/powerpc/fsl/
Ddma.txt4 This is a little-endian 4-channel DMA controller, used in Freescale mpc83xx
17 - DMA channel nodes:
18 - compatible : must include "fsl,elo-dma-channel"
20 - reg : DMA channel specific registers
21 - cell-index : DMA channel index starts at 0.
24 - interrupts : interrupt specifier for DMA channel IRQ
38 dma-channel@0 {
39 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
45 dma-channel@80 {
46 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
[all …]
/Linux-v5.4/drivers/net/ethernet/microchip/
Dlan743x_main.h88 #define FCT_RX_CTL_EN_(channel) BIT(28 + (channel)) argument
89 #define FCT_RX_CTL_DIS_(channel) BIT(24 + (channel)) argument
90 #define FCT_RX_CTL_RESET_(channel) BIT(20 + (channel)) argument
93 #define FCT_TX_CTL_EN_(channel) BIT(28 + (channel)) argument
94 #define FCT_TX_CTL_DIS_(channel) BIT(24 + (channel)) argument
95 #define FCT_TX_CTL_RESET_(channel) BIT(20 + (channel)) argument
213 #define INT_BIT_DMA_RX_(channel) BIT(24 + (channel)) argument
215 #define INT_BIT_DMA_TX_(channel) BIT(16 + (channel)) argument
236 #define INT_VEC_MAP0_RX_VEC_(channel, vector) \ argument
237 (((u32)(vector)) << ((channel) << 2))
[all …]
/Linux-v5.4/drivers/tty/serial/jsm/
Djsm_tty.c66 struct jsm_channel *channel = in jsm_tty_get_mctrl() local
69 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_get_mctrl()
71 result = jsm_get_mstat(channel); in jsm_tty_get_mctrl()
76 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_get_mctrl()
88 struct jsm_channel *channel = in jsm_tty_set_mctrl() local
91 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_set_mctrl()
94 channel->ch_mostat |= UART_MCR_RTS; in jsm_tty_set_mctrl()
96 channel->ch_mostat &= ~UART_MCR_RTS; in jsm_tty_set_mctrl()
99 channel->ch_mostat |= UART_MCR_DTR; in jsm_tty_set_mctrl()
101 channel->ch_mostat &= ~UART_MCR_DTR; in jsm_tty_set_mctrl()
[all …]
/Linux-v5.4/arch/sh/drivers/dma/
Ddma-api.c76 struct dma_channel *channel; in get_dma_channel() local
83 channel = &info->channels[i]; in get_dma_channel()
84 if (channel->vchan == chan) in get_dma_channel()
85 return channel; in get_dma_channel()
95 struct dma_channel *channel = get_dma_channel(chan); in get_dma_residue() local
98 return info->ops->get_residue(channel); in get_dma_residue()
147 struct dma_channel *channel = &info->channels[i]; in request_dma_bycap() local
149 if (unlikely(!channel->caps)) in request_dma_bycap()
153 if (!search_cap(channel->caps, *p)) in request_dma_bycap()
155 if (request_dma(channel->chan, dev_id) == 0) in request_dma_bycap()
[all …]
/Linux-v5.4/drivers/net/ethernet/sfc/falcon/
Defx.c196 static void ef4_remove_channel(struct ef4_channel *channel);
200 static void ef4_init_napi_channel(struct ef4_channel *channel);
202 static void ef4_fini_napi_channel(struct ef4_channel *channel);
238 static int ef4_process_channel(struct ef4_channel *channel, int budget) in ef4_process_channel() argument
243 if (unlikely(!channel->enabled)) in ef4_process_channel()
246 ef4_for_each_channel_tx_queue(tx_queue, channel) { in ef4_process_channel()
251 spent = ef4_nic_process_eventq(channel, budget); in ef4_process_channel()
252 if (spent && ef4_channel_has_rx_queue(channel)) { in ef4_process_channel()
254 ef4_channel_get_rx_queue(channel); in ef4_process_channel()
256 ef4_rx_flush_packet(channel); in ef4_process_channel()
[all …]
/Linux-v5.4/drivers/firmware/tegra/
Dbpmp.c34 channel_to_ops(struct tegra_bpmp_channel *channel) in channel_to_ops() argument
36 struct tegra_bpmp *bpmp = channel->bpmp; in channel_to_ops()
78 tegra_bpmp_channel_get_thread_index(struct tegra_bpmp_channel *channel) in tegra_bpmp_channel_get_thread_index() argument
80 struct tegra_bpmp *bpmp = channel->bpmp; in tegra_bpmp_channel_get_thread_index()
86 index = channel - channel->bpmp->threaded_channels; in tegra_bpmp_channel_get_thread_index()
101 static bool tegra_bpmp_is_response_ready(struct tegra_bpmp_channel *channel) in tegra_bpmp_is_response_ready() argument
103 const struct tegra_bpmp_ops *ops = channel_to_ops(channel); in tegra_bpmp_is_response_ready()
105 return ops->is_response_ready(channel); in tegra_bpmp_is_response_ready()
108 static bool tegra_bpmp_is_request_ready(struct tegra_bpmp_channel *channel) in tegra_bpmp_is_request_ready() argument
110 const struct tegra_bpmp_ops *ops = channel_to_ops(channel); in tegra_bpmp_is_request_ready()
[all …]
/Linux-v5.4/drivers/media/platform/rcar-vin/
Drcar-core.c36 #define rvin_group_csi_channel_to_pad(channel) ((channel) + 1) argument
69 unsigned char channel) in rvin_group_get_mask() argument
77 route->channel == channel) { in rvin_group_get_mask()
80 route->vin, route->csi, route->channel); in rvin_group_get_mask()
117 unsigned int master_id, channel, mask_new, i; in rvin_group_link_notify() local
167 channel = rvin_group_csi_pad_to_channel(csi_pad->index); in rvin_group_link_notify()
169 mask &= rvin_group_get_mask(group->vin[i], csi_id, channel); in rvin_group_link_notify()
202 channel = rvin_group_csi_pad_to_channel(link->source->index); in rvin_group_link_notify()
203 mask_new = mask & rvin_group_get_mask(vin, csi_id, channel); in rvin_group_link_notify()
721 source_idx = rvin_group_csi_channel_to_pad(route->channel); in rvin_group_notify_complete()
[all …]
/Linux-v5.4/drivers/gpu/drm/vmwgfx/
Dvmwgfx_msg.c87 static int vmw_open_channel(struct rpc_channel *channel, unsigned int protocol) in vmw_open_channel() argument
100 channel->channel_id = HIGH_WORD(edx); in vmw_open_channel()
101 channel->cookie_high = si; in vmw_open_channel()
102 channel->cookie_low = di; in vmw_open_channel()
116 static int vmw_close_channel(struct rpc_channel *channel) in vmw_close_channel() argument
121 si = channel->cookie_high; in vmw_close_channel()
122 di = channel->cookie_low; in vmw_close_channel()
126 channel->channel_id << 16, in vmw_close_channel()
145 static unsigned long vmw_port_hb_out(struct rpc_channel *channel, in vmw_port_hb_out() argument
152 unsigned long bp = channel->cookie_high; in vmw_port_hb_out()
[all …]
/Linux-v5.4/drivers/pwm/
Dpwm-meson.c123 struct meson_pwm_channel *channel; in meson_pwm_request() local
127 channel = pwm_get_chip_data(pwm); in meson_pwm_request()
128 if (channel) in meson_pwm_request()
131 channel = &meson->channels[pwm->hwpwm]; in meson_pwm_request()
133 if (channel->clk_parent) { in meson_pwm_request()
134 err = clk_set_parent(channel->clk, channel->clk_parent); in meson_pwm_request()
137 __clk_get_name(channel->clk_parent), in meson_pwm_request()
138 __clk_get_name(channel->clk), err); in meson_pwm_request()
143 err = clk_prepare_enable(channel->clk); in meson_pwm_request()
146 __clk_get_name(channel->clk), err); in meson_pwm_request()
[all …]
/Linux-v5.4/drivers/usb/musb/
Dmusbhsdma.c59 struct dma_channel channel; member
71 struct musb_dma_channel channel[MUSB_HSDMA_CHANNELS]; member
79 static void dma_channel_release(struct dma_channel *channel);
84 struct dma_channel *channel; in dma_controller_stop() local
93 channel = &controller->channel[bit].channel; in dma_controller_stop()
94 dma_channel_release(channel); in dma_controller_stop()
109 struct dma_channel *channel = NULL; in dma_channel_allocate() local
115 musb_channel = &(controller->channel[bit]); in dma_channel_allocate()
120 channel = &(musb_channel->channel); in dma_channel_allocate()
121 channel->private_data = musb_channel; in dma_channel_allocate()
[all …]
/Linux-v5.4/drivers/tty/serial/
Dip22zilog.c55 #define ZS_WSYNC(channel) do { } while (0) argument
113 static unsigned char read_zsreg(struct zilog_channel *channel, in read_zsreg() argument
118 writeb(reg, &channel->control); in read_zsreg()
120 retval = readb(&channel->control); in read_zsreg()
126 static void write_zsreg(struct zilog_channel *channel, in write_zsreg() argument
129 writeb(reg, &channel->control); in write_zsreg()
131 writeb(value, &channel->control); in write_zsreg()
135 static void ip22zilog_clear_fifo(struct zilog_channel *channel) in ip22zilog_clear_fifo() argument
142 regval = readb(&channel->control); in ip22zilog_clear_fifo()
147 regval = read_zsreg(channel, R1); in ip22zilog_clear_fifo()
[all …]
/Linux-v5.4/drivers/media/pci/tw5864/
Dtw5864-reg.h340 #define TW5864_RT_CNTR_CH_FRM(channel, frame) \ argument
341 (0x0c00 | (channel << 4) | (frame << 2))
986 #define TW5864_H264EN_RATE_CNTL_LO_WORD(bus, channel) \ argument
987 (0x9100 + bus * 0x20 + channel * 0x08)
988 #define TW5864_H264EN_RATE_CNTL_HI_WORD(bus, channel) \ argument
989 (0x9104 + bus * 0x20 + channel * 0x08)
1455 #define TW5864_INDIR_VIN_0(channel) (0x000 + channel * 0x010) argument
1496 #define TW5864_INDIR_VIN_1(channel) (0x001 + channel * 0x010) argument
1524 #define TW5864_INDIR_VIN_2_HDELAY_XY_LO(channel) (0x002 + channel * 0x010) argument
1526 #define TW5864_INDIR_VIN_3_HACTIVE_XY_LO(channel) (0x003 + channel * 0x010) argument
[all …]
/Linux-v5.4/drivers/staging/uwb/
Dradio.c31 static void uwb_radio_channel_changed(struct uwb_rc *rc, int channel) in uwb_radio_channel_changed() argument
36 if (pal->channel && channel != pal->channel) { in uwb_radio_channel_changed()
37 pal->channel = channel; in uwb_radio_channel_changed()
39 pal->channel_changed(pal, pal->channel); in uwb_radio_channel_changed()
51 static int uwb_radio_change_channel(struct uwb_rc *rc, int channel) in uwb_radio_change_channel() argument
57 channel, rc->beaconing); in uwb_radio_change_channel()
59 if (channel == -1) in uwb_radio_change_channel()
60 uwb_radio_channel_changed(rc, channel); in uwb_radio_change_channel()
62 if (channel != rc->beaconing) { in uwb_radio_change_channel()
63 if (rc->beaconing != -1 && channel != -1) { in uwb_radio_change_channel()
[all …]

12345678910>>...89