Home
last modified time | relevance | path

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

12345678910>>...94

/linux-6.6.21/drivers/char/xillybus/
Dxillybus_core.c120 struct xilly_channel *channel; in xillybus_isr() local
177 channel = ep->channels[msg_channel]; in xillybus_isr()
180 if (msg_bufno >= channel->num_wr_buffers) { in xillybus_isr()
184 spin_lock(&channel->wr_spinlock); in xillybus_isr()
185 channel->wr_buffers[msg_bufno]->end_offset = in xillybus_isr()
187 channel->wr_fpga_buf_idx = msg_bufno; in xillybus_isr()
188 channel->wr_empty = 0; in xillybus_isr()
189 channel->wr_sleepy = 0; in xillybus_isr()
190 spin_unlock(&channel->wr_spinlock); in xillybus_isr()
192 wake_up_interruptible(&channel->wr_wait); in xillybus_isr()
[all …]
/linux-6.6.21/drivers/net/ethernet/sfc/siena/
Defx_channels.c367 struct efx_channel *channel; in efx_siena_set_interrupt_affinity() local
375 efx_for_each_channel(channel, efx) { in efx_siena_set_interrupt_affinity()
379 irq_set_affinity_hint(channel->irq, cpumask_of(cpu)); in efx_siena_set_interrupt_affinity()
385 struct efx_channel *channel; in efx_siena_clear_interrupt_affinity() local
387 efx_for_each_channel(channel, efx) in efx_siena_clear_interrupt_affinity()
388 irq_set_affinity_hint(channel->irq, NULL); in efx_siena_clear_interrupt_affinity()
404 struct efx_channel *channel; in efx_siena_remove_interrupts() local
407 efx_for_each_channel(channel, efx) in efx_siena_remove_interrupts()
408 channel->irq = 0; in efx_siena_remove_interrupts()
425 static int efx_probe_eventq(struct efx_channel *channel) in efx_probe_eventq() argument
[all …]
/linux-6.6.21/drivers/net/ethernet/sfc/
Defx_channels.c366 struct efx_channel *channel; in efx_set_interrupt_affinity() local
374 efx_for_each_channel(channel, efx) { in efx_set_interrupt_affinity()
378 irq_set_affinity_hint(channel->irq, cpumask_of(cpu)); in efx_set_interrupt_affinity()
384 struct efx_channel *channel; in efx_clear_interrupt_affinity() local
386 efx_for_each_channel(channel, efx) in efx_clear_interrupt_affinity()
387 irq_set_affinity_hint(channel->irq, NULL); in efx_clear_interrupt_affinity()
403 struct efx_channel *channel; in efx_remove_interrupts() local
406 efx_for_each_channel(channel, efx) in efx_remove_interrupts()
407 channel->irq = 0; in efx_remove_interrupts()
424 int efx_probe_eventq(struct efx_channel *channel) in efx_probe_eventq() argument
[all …]
/linux-6.6.21/drivers/phy/renesas/
Dr8a779f0-ether-serdes.c37 struct r8a779f0_eth_serdes_channel channel[R8A779F0_ETH_SERDES_NUM]; member
53 r8a779f0_eth_serdes_reg_wait(struct r8a779f0_eth_serdes_channel *channel, in r8a779f0_eth_serdes_reg_wait() argument
59 iowrite32(bank, channel->addr + R8A779F0_ETH_SERDES_BANK_SELECT); in r8a779f0_eth_serdes_reg_wait()
61 ret = readl_poll_timeout_atomic(channel->addr + offs, val, in r8a779f0_eth_serdes_reg_wait()
65 dev_dbg(&channel->phy->dev, in r8a779f0_eth_serdes_reg_wait()
67 __func__, channel->index, offs, bank, mask, expected); in r8a779f0_eth_serdes_reg_wait()
75 struct r8a779f0_eth_serdes_channel *channel; in r8a779f0_eth_serdes_common_init_ram() local
79 channel = &dd->channel[i]; in r8a779f0_eth_serdes_common_init_ram()
80 ret = r8a779f0_eth_serdes_reg_wait(channel, 0x026c, 0x180, BIT(0), 0x01); in r8a779f0_eth_serdes_common_init_ram()
91 r8a779f0_eth_serdes_common_setting(struct r8a779f0_eth_serdes_channel *channel) in r8a779f0_eth_serdes_common_setting() argument
[all …]
/linux-6.6.21/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.c217 struct glink_channel *channel; in qcom_glink_alloc_channel() local
219 channel = kzalloc(sizeof(*channel), GFP_KERNEL); in qcom_glink_alloc_channel()
220 if (!channel) in qcom_glink_alloc_channel()
224 spin_lock_init(&channel->recv_lock); in qcom_glink_alloc_channel()
225 spin_lock_init(&channel->intent_lock); in qcom_glink_alloc_channel()
226 mutex_init(&channel->intent_req_lock); in qcom_glink_alloc_channel()
228 channel->glink = glink; in qcom_glink_alloc_channel()
229 channel->name = kstrdup(name, GFP_KERNEL); in qcom_glink_alloc_channel()
230 if (!channel->name) { in qcom_glink_alloc_channel()
231 kfree(channel); in qcom_glink_alloc_channel()
[all …]
/linux-6.6.21/drivers/ipack/devices/
Dipoctal.c48 struct ipoctal_channel channel[NR_CHANNELS]; member
57 return container_of(chan, struct ipoctal, channel[index]); in chan_to_ipoctal()
60 static void ipoctal_reset_channel(struct ipoctal_channel *channel) in ipoctal_reset_channel() argument
62 iowrite8(CR_DISABLE_RX | CR_DISABLE_TX, &channel->regs->w.cr); in ipoctal_reset_channel()
63 channel->rx_enable = 0; in ipoctal_reset_channel()
64 iowrite8(CR_CMD_RESET_RX, &channel->regs->w.cr); in ipoctal_reset_channel()
65 iowrite8(CR_CMD_RESET_TX, &channel->regs->w.cr); in ipoctal_reset_channel()
66 iowrite8(CR_CMD_RESET_ERR_STATUS, &channel->regs->w.cr); in ipoctal_reset_channel()
67 iowrite8(CR_CMD_RESET_MR, &channel->regs->w.cr); in ipoctal_reset_channel()
72 struct ipoctal_channel *channel; in ipoctal_port_activate() local
[all …]
/linux-6.6.21/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-6.6.21/drivers/dma/sh/
Drz-dmac.c192 static void rz_dmac_ch_writel(struct rz_dmac_chan *channel, unsigned int val, in rz_dmac_ch_writel() argument
196 writel(val, channel->ch_base + offset); in rz_dmac_ch_writel()
198 writel(val, channel->ch_cmn_base + offset); in rz_dmac_ch_writel()
201 static u32 rz_dmac_ch_readl(struct rz_dmac_chan *channel, in rz_dmac_ch_readl() argument
205 return readl(channel->ch_base + offset); in rz_dmac_ch_readl()
207 return readl(channel->ch_cmn_base + offset); in rz_dmac_ch_readl()
215 static void rz_lmdesc_setup(struct rz_dmac_chan *channel, in rz_lmdesc_setup() argument
220 channel->lmdesc.base = lmdesc; in rz_lmdesc_setup()
221 channel->lmdesc.head = lmdesc; in rz_lmdesc_setup()
222 channel->lmdesc.tail = lmdesc; in rz_lmdesc_setup()
[all …]
/linux-6.6.21/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-6.6.21/drivers/most/
Dmost_snd.c44 struct channel { struct
161 static struct channel *get_channel(struct most_interface *iface, in get_channel()
165 struct channel *channel; in get_channel() local
167 list_for_each_entry(channel, &adpt->dev_list, list) { in get_channel()
168 if ((channel->iface == iface) && (channel->id == channel_id)) in get_channel()
169 return channel; in get_channel()
181 static bool copy_data(struct channel *channel, struct mbo *mbo) in copy_data() argument
183 struct snd_pcm_runtime *const runtime = channel->substream->runtime; in copy_data()
184 unsigned int const frame_bytes = channel->cfg->subbuffer_size; in copy_data()
189 if (channel->cfg->direction & MOST_CH_RX) in copy_data()
[all …]
/linux-6.6.21/drivers/ptp/
Dptp_clockmatrix.c41 static int _idtcm_adjfine(struct idtcm_channel *channel, long scaled_ppm);
242 static int arm_tod_read_trig_sel_refclk(struct idtcm_channel *channel, u8 ref) in arm_tod_read_trig_sel_refclk() argument
244 struct idtcm *idtcm = channel->idtcm; in arm_tod_read_trig_sel_refclk()
252 err = idtcm_write(idtcm, channel->tod_read_secondary, in arm_tod_read_trig_sel_refclk()
259 err = idtcm_write(idtcm, channel->tod_read_secondary, tod_read_cmd, in arm_tod_read_trig_sel_refclk()
273 static int idtcm_extts_enable(struct idtcm_channel *channel, in idtcm_extts_enable() argument
283 idtcm = channel->idtcm; in idtcm_extts_enable()
304 ref = ptp_find_pin(channel->ptp_clock, PTP_PF_EXTTS, channel->tod); in idtcm_extts_enable()
308 __func__, channel->tod); in idtcm_extts_enable()
312 err = arm_tod_read_trig_sel_refclk(&idtcm->channel[index], ref); in idtcm_extts_enable()
[all …]
Dptp_idt82p33.c99 static int idt82p33_dpll_set_mode(struct idt82p33_channel *channel, in idt82p33_dpll_set_mode() argument
102 struct idt82p33 *idt82p33 = channel->idt82p33; in idt82p33_dpll_set_mode()
106 if (channel->pll_mode == mode) in idt82p33_dpll_set_mode()
109 err = idt82p33_read(idt82p33, channel->dpll_mode_cnfg, in idt82p33_dpll_set_mode()
118 err = idt82p33_write(idt82p33, channel->dpll_mode_cnfg, in idt82p33_dpll_set_mode()
123 channel->pll_mode = mode; in idt82p33_dpll_set_mode()
128 static int idt82p33_set_tod_trigger(struct idt82p33_channel *channel, in idt82p33_set_tod_trigger() argument
131 struct idt82p33 *idt82p33 = channel->idt82p33; in idt82p33_set_tod_trigger()
138 err = idt82p33_read(idt82p33, channel->dpll_tod_trigger, in idt82p33_set_tod_trigger()
151 return idt82p33_write(idt82p33, channel->dpll_tod_trigger, in idt82p33_set_tod_trigger()
[all …]
/linux-6.6.21/drivers/media/platform/allegro-dvt/
Dallegro-core.c306 allegro_channel_get_i_frame_qp(struct allegro_channel *channel) in allegro_channel_get_i_frame_qp() argument
308 if (channel->codec == V4L2_PIX_FMT_HEVC) in allegro_channel_get_i_frame_qp()
309 return v4l2_ctrl_g_ctrl(channel->mpeg_video_hevc_i_frame_qp); in allegro_channel_get_i_frame_qp()
311 return v4l2_ctrl_g_ctrl(channel->mpeg_video_h264_i_frame_qp); in allegro_channel_get_i_frame_qp()
315 allegro_channel_get_p_frame_qp(struct allegro_channel *channel) in allegro_channel_get_p_frame_qp() argument
317 if (channel->codec == V4L2_PIX_FMT_HEVC) in allegro_channel_get_p_frame_qp()
318 return v4l2_ctrl_g_ctrl(channel->mpeg_video_hevc_p_frame_qp); in allegro_channel_get_p_frame_qp()
320 return v4l2_ctrl_g_ctrl(channel->mpeg_video_h264_p_frame_qp); in allegro_channel_get_p_frame_qp()
324 allegro_channel_get_b_frame_qp(struct allegro_channel *channel) in allegro_channel_get_b_frame_qp() argument
326 if (channel->codec == V4L2_PIX_FMT_HEVC) in allegro_channel_get_b_frame_qp()
[all …]
/linux-6.6.21/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-6.6.21/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-6.6.21/drivers/net/ethernet/microchip/
Dlan743x_main.h149 #define FCT_RX_CTL_EN_(channel) BIT(28 + (channel)) argument
150 #define FCT_RX_CTL_DIS_(channel) BIT(24 + (channel)) argument
151 #define FCT_RX_CTL_RESET_(channel) BIT(20 + (channel)) argument
154 #define FCT_TX_CTL_EN_(channel) BIT(28 + (channel)) argument
155 #define FCT_TX_CTL_DIS_(channel) BIT(24 + (channel)) argument
156 #define FCT_TX_CTL_RESET_(channel) BIT(20 + (channel)) argument
375 #define INT_BIT_DMA_RX_(channel) BIT(24 + (channel)) argument
377 #define INT_BIT_DMA_TX_(channel) BIT(16 + (channel)) argument
398 #define INT_VEC_MAP0_RX_VEC_(channel, vector) \ argument
399 (((u32)(vector)) << ((channel) << 2))
[all …]
/linux-6.6.21/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-6.6.21/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()
53 channel->u.req.resp_status = resp->status; in evtchnl_interrupt_req()
54 complete(&channel->u.req.completion); in evtchnl_interrupt_req()
[all …]
/linux-6.6.21/drivers/firmware/arm_scmi/
Doptee.c221 static int get_channel(struct scmi_optee_channel *channel) in get_channel() argument
229 if (channel->tee_shm) in get_channel()
235 arg.session = channel->tee_session; in get_channel()
239 param[0].u.value.a = channel->channel_id; in get_channel()
250 channel->channel_id = param[0].u.value.a; in get_channel()
251 channel->caps = caps; in get_channel()
256 static int invoke_process_smt_channel(struct scmi_optee_channel *channel) in invoke_process_smt_channel() argument
260 .session = channel->tee_session, in invoke_process_smt_channel()
267 param[0].u.value.a = channel->channel_id; in invoke_process_smt_channel()
272 channel->channel_id, ret, arg.ret); in invoke_process_smt_channel()
[all …]
/linux-6.6.21/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-6.6.21/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-6.6.21/drivers/net/ethernet/sfc/falcon/
Defx.c190 static void ef4_remove_channel(struct ef4_channel *channel);
194 static void ef4_init_napi_channel(struct ef4_channel *channel);
196 static void ef4_fini_napi_channel(struct ef4_channel *channel);
232 static int ef4_process_channel(struct ef4_channel *channel, int budget) in ef4_process_channel() argument
237 if (unlikely(!channel->enabled)) in ef4_process_channel()
240 ef4_for_each_channel_tx_queue(tx_queue, channel) { in ef4_process_channel()
245 spent = ef4_nic_process_eventq(channel, budget); in ef4_process_channel()
246 if (spent && ef4_channel_has_rx_queue(channel)) { in ef4_process_channel()
248 ef4_channel_get_rx_queue(channel); in ef4_process_channel()
250 ef4_rx_flush_packet(channel); in ef4_process_channel()
[all …]
/linux-6.6.21/drivers/net/wwan/iosm/
Diosm_ipc_imem_ops.c144 struct ipc_mem_channel *channel) in ipc_imem_is_channel_active() argument
162 if (channel->state != IMEM_CHANNEL_RESERVED) { in ipc_imem_is_channel_active()
165 channel->channel_id, channel->state, in ipc_imem_is_channel_active()
174 channel->channel_id, phase); in ipc_imem_is_channel_active()
178 if (channel->state != IMEM_CHANNEL_ACTIVE) { in ipc_imem_is_channel_active()
180 channel->channel_id, channel->state); in ipc_imem_is_channel_active()
197 struct ipc_mem_channel *channel) in ipc_imem_sys_port_close() argument
215 if (channel->state == IMEM_CHANNEL_FREE) { in ipc_imem_sys_port_close()
217 channel->channel_id, channel->state); in ipc_imem_sys_port_close()
224 if (channel->ul_pipe.old_tail != channel->ul_pipe.old_head) { in ipc_imem_sys_port_close()
[all …]
/linux-6.6.21/drivers/tty/serial/
Dip22zilog.c51 #define ZS_WSYNC(channel) do { } while (0) argument
109 static unsigned char read_zsreg(struct zilog_channel *channel, in read_zsreg() argument
114 writeb(reg, &channel->control); in read_zsreg()
116 retval = readb(&channel->control); in read_zsreg()
122 static void write_zsreg(struct zilog_channel *channel, in write_zsreg() argument
125 writeb(reg, &channel->control); in write_zsreg()
127 writeb(value, &channel->control); in write_zsreg()
131 static void ip22zilog_clear_fifo(struct zilog_channel *channel) in ip22zilog_clear_fifo() argument
138 regval = readb(&channel->control); in ip22zilog_clear_fifo()
143 regval = read_zsreg(channel, R1); in ip22zilog_clear_fifo()
[all …]

12345678910>>...94