/Linux-v6.1/drivers/char/xillybus/ |
D | xillybus_core.c | 120 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-v6.1/drivers/net/ethernet/sfc/siena/ |
D | efx_channels.c | 365 struct efx_channel *channel; in efx_siena_set_interrupt_affinity() local 373 efx_for_each_channel(channel, efx) { in efx_siena_set_interrupt_affinity() 377 irq_set_affinity_hint(channel->irq, cpumask_of(cpu)); in efx_siena_set_interrupt_affinity() 383 struct efx_channel *channel; in efx_siena_clear_interrupt_affinity() local 385 efx_for_each_channel(channel, efx) in efx_siena_clear_interrupt_affinity() 386 irq_set_affinity_hint(channel->irq, NULL); in efx_siena_clear_interrupt_affinity() 402 struct efx_channel *channel; in efx_siena_remove_interrupts() local 405 efx_for_each_channel(channel, efx) in efx_siena_remove_interrupts() 406 channel->irq = 0; in efx_siena_remove_interrupts() 423 static int efx_probe_eventq(struct efx_channel *channel) in efx_probe_eventq() argument [all …]
|
/Linux-v6.1/drivers/net/ethernet/sfc/ |
D | efx_channels.c | 364 struct efx_channel *channel; in efx_set_interrupt_affinity() local 372 efx_for_each_channel(channel, efx) { in efx_set_interrupt_affinity() 376 irq_set_affinity_hint(channel->irq, cpumask_of(cpu)); in efx_set_interrupt_affinity() 382 struct efx_channel *channel; in efx_clear_interrupt_affinity() local 384 efx_for_each_channel(channel, efx) in efx_clear_interrupt_affinity() 385 irq_set_affinity_hint(channel->irq, NULL); in efx_clear_interrupt_affinity() 401 struct efx_channel *channel; in efx_remove_interrupts() local 404 efx_for_each_channel(channel, efx) in efx_remove_interrupts() 405 channel->irq = 0; in efx_remove_interrupts() 422 int efx_probe_eventq(struct efx_channel *channel) in efx_probe_eventq() argument [all …]
|
/Linux-v6.1/drivers/rpmsg/ |
D | qcom_smd.c | 275 #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 …]
|
D | qcom_glink_native.c | 214 struct glink_channel *channel; in qcom_glink_alloc_channel() local 216 channel = kzalloc(sizeof(*channel), GFP_KERNEL); in qcom_glink_alloc_channel() 217 if (!channel) in qcom_glink_alloc_channel() 221 spin_lock_init(&channel->recv_lock); in qcom_glink_alloc_channel() 222 spin_lock_init(&channel->intent_lock); in qcom_glink_alloc_channel() 223 mutex_init(&channel->intent_req_lock); in qcom_glink_alloc_channel() 225 channel->glink = glink; in qcom_glink_alloc_channel() 226 channel->name = kstrdup(name, GFP_KERNEL); in qcom_glink_alloc_channel() 228 init_completion(&channel->open_req); in qcom_glink_alloc_channel() 229 init_completion(&channel->open_ack); in qcom_glink_alloc_channel() [all …]
|
/Linux-v6.1/drivers/ipack/devices/ |
D | ipoctal.c | 48 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-v6.1/drivers/hsi/controllers/ |
D | omap_ssi_regs.h | 33 # 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-v6.1/drivers/dma/sh/ |
D | rz-dmac.c | 191 static void rz_dmac_ch_writel(struct rz_dmac_chan *channel, unsigned int val, in rz_dmac_ch_writel() argument 195 writel(val, channel->ch_base + offset); in rz_dmac_ch_writel() 197 writel(val, channel->ch_cmn_base + offset); in rz_dmac_ch_writel() 200 static u32 rz_dmac_ch_readl(struct rz_dmac_chan *channel, in rz_dmac_ch_readl() argument 204 return readl(channel->ch_base + offset); in rz_dmac_ch_readl() 206 return readl(channel->ch_cmn_base + offset); in rz_dmac_ch_readl() 214 static void rz_lmdesc_setup(struct rz_dmac_chan *channel, in rz_lmdesc_setup() argument 219 channel->lmdesc.base = lmdesc; in rz_lmdesc_setup() 220 channel->lmdesc.head = lmdesc; in rz_lmdesc_setup() 221 channel->lmdesc.tail = lmdesc; in rz_lmdesc_setup() [all …]
|
/Linux-v6.1/drivers/staging/greybus/ |
D | light.c | 69 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-v6.1/drivers/most/ |
D | most_snd.c | 42 struct channel { struct 159 static struct channel *get_channel(struct most_interface *iface, in get_channel() 163 struct channel *channel; in get_channel() local 165 list_for_each_entry(channel, &adpt->dev_list, list) { in get_channel() 166 if ((channel->iface == iface) && (channel->id == channel_id)) in get_channel() 167 return channel; in get_channel() 179 static bool copy_data(struct channel *channel, struct mbo *mbo) in copy_data() argument 181 struct snd_pcm_runtime *const runtime = channel->substream->runtime; in copy_data() 182 unsigned int const frame_bytes = channel->cfg->subbuffer_size; in copy_data() 187 if (channel->cfg->direction & MOST_CH_RX) in copy_data() [all …]
|
/Linux-v6.1/drivers/ptp/ |
D | ptp_clockmatrix.c | 41 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 …]
|
D | ptp_idt82p33.c | 95 static int idt82p33_dpll_set_mode(struct idt82p33_channel *channel, in idt82p33_dpll_set_mode() argument 98 struct idt82p33 *idt82p33 = channel->idt82p33; in idt82p33_dpll_set_mode() 102 if (channel->pll_mode == mode) in idt82p33_dpll_set_mode() 105 err = idt82p33_read(idt82p33, channel->dpll_mode_cnfg, in idt82p33_dpll_set_mode() 114 err = idt82p33_write(idt82p33, channel->dpll_mode_cnfg, in idt82p33_dpll_set_mode() 119 channel->pll_mode = mode; in idt82p33_dpll_set_mode() 124 static int _idt82p33_gettime(struct idt82p33_channel *channel, in _idt82p33_gettime() argument 127 struct idt82p33 *idt82p33 = channel->idt82p33; in _idt82p33_gettime() 136 err = idt82p33_write(idt82p33, channel->dpll_tod_trigger, in _idt82p33_gettime() 145 err = idt82p33_read(idt82p33, channel->dpll_tod_sts, buf, sizeof(buf)); in _idt82p33_gettime() [all …]
|
/Linux-v6.1/drivers/media/platform/allegro-dvt/ |
D | allegro-core.c | 307 allegro_channel_get_i_frame_qp(struct allegro_channel *channel) in allegro_channel_get_i_frame_qp() argument 309 if (channel->codec == V4L2_PIX_FMT_HEVC) in allegro_channel_get_i_frame_qp() 310 return v4l2_ctrl_g_ctrl(channel->mpeg_video_hevc_i_frame_qp); in allegro_channel_get_i_frame_qp() 312 return v4l2_ctrl_g_ctrl(channel->mpeg_video_h264_i_frame_qp); in allegro_channel_get_i_frame_qp() 316 allegro_channel_get_p_frame_qp(struct allegro_channel *channel) in allegro_channel_get_p_frame_qp() argument 318 if (channel->codec == V4L2_PIX_FMT_HEVC) in allegro_channel_get_p_frame_qp() 319 return v4l2_ctrl_g_ctrl(channel->mpeg_video_hevc_p_frame_qp); in allegro_channel_get_p_frame_qp() 321 return v4l2_ctrl_g_ctrl(channel->mpeg_video_h264_p_frame_qp); in allegro_channel_get_p_frame_qp() 325 allegro_channel_get_b_frame_qp(struct allegro_channel *channel) in allegro_channel_get_b_frame_qp() argument 327 if (channel->codec == V4L2_PIX_FMT_HEVC) in allegro_channel_get_b_frame_qp() [all …]
|
/Linux-v6.1/drivers/hsi/clients/ |
D | hsi_char.c | 116 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-v6.1/drivers/net/wireless/broadcom/b43/ |
D | radio_2055.c | 292 { .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-v6.1/drivers/net/ethernet/microchip/ |
D | lan743x_main.h | 149 #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-v6.1/Documentation/devicetree/bindings/powerpc/fsl/ |
D | dma.txt | 4 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-v6.1/drivers/firmware/arm_scmi/ |
D | optee.c | 221 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-v6.1/sound/xen/ |
D | xen_snd_front_evtchnl.c | 23 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-v6.1/drivers/tty/serial/jsm/ |
D | jsm_tty.c | 66 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-v6.1/arch/sh/drivers/dma/ |
D | dma-api.c | 76 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-v6.1/drivers/net/ethernet/sfc/falcon/ |
D | efx.c | 191 static void ef4_remove_channel(struct ef4_channel *channel); 195 static void ef4_init_napi_channel(struct ef4_channel *channel); 197 static void ef4_fini_napi_channel(struct ef4_channel *channel); 233 static int ef4_process_channel(struct ef4_channel *channel, int budget) in ef4_process_channel() argument 238 if (unlikely(!channel->enabled)) in ef4_process_channel() 241 ef4_for_each_channel_tx_queue(tx_queue, channel) { in ef4_process_channel() 246 spent = ef4_nic_process_eventq(channel, budget); in ef4_process_channel() 247 if (spent && ef4_channel_has_rx_queue(channel)) { in ef4_process_channel() 249 ef4_channel_get_rx_queue(channel); in ef4_process_channel() 251 ef4_rx_flush_packet(channel); in ef4_process_channel() [all …]
|
/Linux-v6.1/drivers/net/ipa/ |
D | gsi.c | 174 static u32 gsi_channel_id(struct gsi_channel *channel) in gsi_channel_id() argument 176 return channel - &channel->gsi->channel[0]; in gsi_channel_id() 180 static bool gsi_channel_initialized(struct gsi_channel *channel) in gsi_channel_initialized() argument 182 return !!channel->gsi; in gsi_channel_initialized() 465 static enum gsi_channel_state gsi_channel_state(struct gsi_channel *channel) in gsi_channel_state() argument 467 u32 channel_id = gsi_channel_id(channel); in gsi_channel_state() 468 void __iomem *virt = channel->gsi->virt; in gsi_channel_state() 478 gsi_channel_command(struct gsi_channel *channel, enum gsi_ch_cmd_opcode opcode) in gsi_channel_command() argument 480 u32 channel_id = gsi_channel_id(channel); in gsi_channel_command() 481 struct gsi *gsi = channel->gsi; in gsi_channel_command() [all …]
|
/Linux-v6.1/drivers/net/wwan/iosm/ |
D | iosm_ipc_imem_ops.c | 140 struct ipc_mem_channel *channel) in ipc_imem_is_channel_active() argument 158 if (channel->state != IMEM_CHANNEL_RESERVED) { in ipc_imem_is_channel_active() 161 channel->channel_id, channel->state, in ipc_imem_is_channel_active() 170 channel->channel_id, phase); in ipc_imem_is_channel_active() 174 if (channel->state != IMEM_CHANNEL_ACTIVE) { in ipc_imem_is_channel_active() 176 channel->channel_id, channel->state); in ipc_imem_is_channel_active() 193 struct ipc_mem_channel *channel) in ipc_imem_sys_port_close() argument 211 if (channel->state == IMEM_CHANNEL_FREE) { in ipc_imem_sys_port_close() 213 channel->channel_id, channel->state); in ipc_imem_sys_port_close() 220 if (channel->ul_pipe.old_tail != channel->ul_pipe.old_head) { in ipc_imem_sys_port_close() [all …]
|
/Linux-v6.1/drivers/firmware/tegra/ |
D | bpmp.c | 35 channel_to_ops(struct tegra_bpmp_channel *channel) in channel_to_ops() argument 37 struct tegra_bpmp *bpmp = channel->bpmp; in channel_to_ops() 79 tegra_bpmp_channel_get_thread_index(struct tegra_bpmp_channel *channel) in tegra_bpmp_channel_get_thread_index() argument 81 struct tegra_bpmp *bpmp = channel->bpmp; in tegra_bpmp_channel_get_thread_index() 87 index = channel - channel->bpmp->threaded_channels; in tegra_bpmp_channel_get_thread_index() 102 static bool tegra_bpmp_is_response_ready(struct tegra_bpmp_channel *channel) in tegra_bpmp_is_response_ready() argument 104 const struct tegra_bpmp_ops *ops = channel_to_ops(channel); in tegra_bpmp_is_response_ready() 106 return ops->is_response_ready(channel); in tegra_bpmp_is_response_ready() 109 static bool tegra_bpmp_is_request_ready(struct tegra_bpmp_channel *channel) in tegra_bpmp_is_request_ready() argument 111 const struct tegra_bpmp_ops *ops = channel_to_ops(channel); in tegra_bpmp_is_request_ready() [all …]
|