Home
last modified time | relevance | path

Searched refs:ch_num (Results 1 – 25 of 45) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/usb/musb/
Dux500_dma.c37 u8 ch_num; member
135 u8 ch_num = hw_ep->epnum - 1; in ux500_dma_channel_allocate() local
141 if (ch_num > 7) in ux500_dma_channel_allocate()
142 ch_num -= 8; in ux500_dma_channel_allocate()
144 if (ch_num >= UX500_MUSB_DMA_NUM_RX_TX_CHANNELS) in ux500_dma_channel_allocate()
147 ux500_channel = is_tx ? &(controller->tx_channel[ch_num]) : in ux500_dma_channel_allocate()
148 &(controller->rx_channel[ch_num]) ; in ux500_dma_channel_allocate()
158 hw_ep->epnum, is_tx, ch_num); in ux500_dma_channel_allocate()
168 dev_dbg(musb->controller, "channel=%d\n", ux500_channel->ch_num); in ux500_dma_channel_release()
216 ux500_channel->ch_num, ux500_channel->is_tx); in ux500_dma_channel_abort()
[all …]
Dmusb_cppi41.c488 u8 ch_num = hw_ep->epnum - 1; in cppi41_dma_channel_allocate() local
490 if (ch_num >= controller->num_channels) in cppi41_dma_channel_allocate()
494 cppi41_channel = &controller->tx_channel[ch_num]; in cppi41_dma_channel_allocate()
496 cppi41_channel = &controller->rx_channel[ch_num]; in cppi41_dma_channel_allocate()
/kernel/linux/linux-5.10/drivers/gpu/drm/imx/dcss/
Ddcss-dev.h129 void dcss_dpr_set_res(struct dcss_dpr *dpr, int ch_num, u32 xres, u32 yres);
130 void dcss_dpr_addr_set(struct dcss_dpr *dpr, int ch_num, u32 luma_base_addr,
132 void dcss_dpr_enable(struct dcss_dpr *dpr, int ch_num, bool en);
133 void dcss_dpr_format_set(struct dcss_dpr *dpr, int ch_num,
135 void dcss_dpr_set_rotation(struct dcss_dpr *dpr, int ch_num, u32 rotation);
149 bool dcss_dtg_global_alpha_changed(struct dcss_dtg *dtg, int ch_num, int alpha);
150 void dcss_dtg_plane_alpha_set(struct dcss_dtg *dtg, int ch_num,
152 void dcss_dtg_plane_pos_set(struct dcss_dtg *dtg, int ch_num,
154 void dcss_dtg_ch_enable(struct dcss_dtg *dtg, int ch_num, bool en);
168 void dcss_scaler_setup(struct dcss_scaler *scl, int ch_num,
[all …]
Ddcss-plane.c172 dcss_scaler_get_min_max_ratios(dcss->scaler, dcss_plane->ch_num, in dcss_plane_atomic_check()
241 dcss_dpr_addr_set(dcss->dpr, dcss_plane->ch_num, p1_ba, p2_ba, in dcss_plane_atomic_set_base()
307 dcss_dpr_format_set(dcss->dpr, dcss_plane->ch_num, state->fb->format, in dcss_plane_atomic_update()
310 dcss_dpr_set_res(dcss->dpr, dcss_plane->ch_num, src_w, src_h); in dcss_plane_atomic_update()
311 dcss_dpr_set_rotation(dcss->dpr, dcss_plane->ch_num, in dcss_plane_atomic_update()
319 dcss_scaler_setup(dcss->scaler, dcss_plane->ch_num, in dcss_plane_atomic_update()
326 dcss_dtg_plane_pos_set(dcss->dtg, dcss_plane->ch_num, in dcss_plane_atomic_update()
328 dcss_dtg_plane_alpha_set(dcss->dtg, dcss_plane->ch_num, in dcss_plane_atomic_update()
331 if (!dcss_plane->ch_num && (state->alpha >> 8) == 0) in dcss_plane_atomic_update()
334 dcss_dpr_enable(dcss->dpr, dcss_plane->ch_num, enable); in dcss_plane_atomic_update()
[all …]
Ddcss-dtg.c258 void dcss_dtg_plane_pos_set(struct dcss_dtg *dtg, int ch_num, in dcss_dtg_plane_pos_set() argument
270 dcss_dtg_write(dtg, 0, DCSS_DTG_TC_CH1_TOP + 0x8 * ch_num); in dcss_dtg_plane_pos_set()
271 dcss_dtg_write(dtg, 0, DCSS_DTG_TC_CH1_BOT + 0x8 * ch_num); in dcss_dtg_plane_pos_set()
274 DCSS_DTG_TC_CH1_TOP + 0x8 * ch_num); in dcss_dtg_plane_pos_set()
276 DCSS_DTG_TC_CH1_BOT + 0x8 * ch_num); in dcss_dtg_plane_pos_set()
280 bool dcss_dtg_global_alpha_changed(struct dcss_dtg *dtg, int ch_num, int alpha) in dcss_dtg_global_alpha_changed() argument
282 if (ch_num) in dcss_dtg_global_alpha_changed()
288 void dcss_dtg_plane_alpha_set(struct dcss_dtg *dtg, int ch_num, in dcss_dtg_plane_alpha_set() argument
292 if (ch_num) in dcss_dtg_plane_alpha_set()
340 void dcss_dtg_ch_enable(struct dcss_dtg *dtg, int ch_num, bool en) in dcss_dtg_ch_enable() argument
[all …]
Ddcss-dpr.c109 int ch_num; member
146 ch->ch_num = i; in dcss_dpr_ch_init_all()
232 void dcss_dpr_set_res(struct dcss_dpr *dpr, int ch_num, u32 xres, u32 yres) in dcss_dpr_set_res() argument
234 struct dcss_dpr_ch *ch = &dpr->ch[ch_num]; in dcss_dpr_set_res()
259 void dcss_dpr_addr_set(struct dcss_dpr *dpr, int ch_num, u32 luma_base_addr, in dcss_dpr_addr_set() argument
262 struct dcss_dpr_ch *ch = &dpr->ch[ch_num]; in dcss_dpr_addr_set()
340 void dcss_dpr_enable(struct dcss_dpr *dpr, int ch_num, bool en) in dcss_dpr_enable() argument
342 struct dcss_dpr_ch *ch = &dpr->ch[ch_num]; in dcss_dpr_enable()
477 switch (ch->ch_num) { in dcss_dpr_tile_set()
507 void dcss_dpr_format_set(struct dcss_dpr *dpr, int ch_num, in dcss_dpr_format_set() argument
[all …]
Ddcss-scaler.c345 void dcss_scaler_ch_enable(struct dcss_scaler *scl, int ch_num, bool en) in dcss_scaler_ch_enable() argument
347 struct dcss_scaler_ch *ch = &scl->ch[ch_num]; in dcss_scaler_ch_enable()
559 int dcss_scaler_get_min_max_ratios(struct dcss_scaler *scl, int ch_num, in dcss_scaler_get_min_max_ratios() argument
562 *min = upscale_fp(dcss_scaler_factors[ch_num].upscale, 16); in dcss_scaler_get_min_max_ratios()
563 *max = downscale_fp(dcss_scaler_factors[ch_num].downscale, 16); in dcss_scaler_get_min_max_ratios()
754 void dcss_scaler_setup(struct dcss_scaler *scl, int ch_num, in dcss_scaler_setup() argument
759 struct dcss_scaler_ch *ch = &scl->ch[ch_num]; in dcss_scaler_setup()
Ddcss-kms.h14 int ch_num; member
/kernel/linux/linux-5.10/drivers/hwmon/
Dpowr1220.c104 static int powr1220_read_adc(struct device *dev, int ch_num) in powr1220_read_adc() argument
113 if (time_after(jiffies, data->adc_last_updated[ch_num] + HZ) || in powr1220_read_adc()
114 !data->adc_valid[ch_num]) { in powr1220_read_adc()
121 if (data->adc_maxes[ch_num] > ADC_MAX_LOW_MEASUREMENT_MV || in powr1220_read_adc()
122 data->adc_maxes[ch_num] == 0) in powr1220_read_adc()
127 adc_range | ch_num); in powr1220_read_adc()
153 data->adc_values[ch_num] = reading; in powr1220_read_adc()
154 data->adc_valid[ch_num] = true; in powr1220_read_adc()
155 data->adc_last_updated[ch_num] = jiffies; in powr1220_read_adc()
158 if (reading > data->adc_maxes[ch_num]) in powr1220_read_adc()
[all …]
/kernel/linux/linux-5.10/drivers/input/misc/
Diqs269a.c302 unsigned int ch_num; member
308 unsigned int ch_num, unsigned int mode) in iqs269_ati_mode_set() argument
312 if (ch_num >= IQS269_NUM_CH) in iqs269_ati_mode_set()
320 engine_a = be16_to_cpu(iqs269->ch_reg[ch_num].engine_a); in iqs269_ati_mode_set()
325 iqs269->ch_reg[ch_num].engine_a = cpu_to_be16(engine_a); in iqs269_ati_mode_set()
334 unsigned int ch_num, unsigned int *mode) in iqs269_ati_mode_get() argument
338 if (ch_num >= IQS269_NUM_CH) in iqs269_ati_mode_get()
342 engine_a = be16_to_cpu(iqs269->ch_reg[ch_num].engine_a); in iqs269_ati_mode_get()
352 unsigned int ch_num, unsigned int base) in iqs269_ati_base_set() argument
356 if (ch_num >= IQS269_NUM_CH) in iqs269_ati_base_set()
[all …]
/kernel/linux/linux-5.10/sound/soc/amd/
Dacp-pcm-dma.c132 static void config_acp_dma_channel(void __iomem *acp_mmio, u8 ch_num, in config_acp_dma_channel() argument
139 dma_ctrl = acp_reg_read(acp_mmio, mmACP_DMA_CNTL_0 + ch_num); in config_acp_dma_channel()
141 acp_reg_write(dma_ctrl, acp_mmio, mmACP_DMA_CNTL_0 + ch_num); in config_acp_dma_channel()
146 acp_mmio, mmACP_DMA_DSCR_STRT_IDX_0 + ch_num); in config_acp_dma_channel()
153 acp_mmio, mmACP_DMA_DSCR_CNT_0 + ch_num); in config_acp_dma_channel()
156 acp_reg_write(priority_level, acp_mmio, mmACP_DMA_PRIO_0 + ch_num); in config_acp_dma_channel()
180 static void pre_config_reset(void __iomem *acp_mmio, u16 ch_num) in pre_config_reset() argument
186 dma_ctrl = acp_reg_read(acp_mmio, mmACP_DMA_CNTL_0 + ch_num); in pre_config_reset()
188 acp_reg_write(dma_ctrl, acp_mmio, mmACP_DMA_CNTL_0 + ch_num); in pre_config_reset()
190 ret = readl_poll_timeout(acp_mmio + ((mmACP_DMA_CNTL_0 + ch_num) * 4), in pre_config_reset()
[all …]
/kernel/linux/linux-5.10/sound/soc/zte/
Dzx-i2s.c226 unsigned int lane, ch_num, len, ret = 0; in zx_i2s_hw_params() local
255 ch_num = params_channels(params); in zx_i2s_hw_params()
256 switch (ch_num) { in zx_i2s_hw_params()
265 lane = ch_num / 2; in zx_i2s_hw_params()
269 dev_err(socdai->dev, "Not support channel num %d\n", ch_num); in zx_i2s_hw_params()
274 val |= ZX_I2S_TIMING_CHN(ch_num); in zx_i2s_hw_params()
279 params_rate(params) * ch_num * CLK_RAT); in zx_i2s_hw_params()
Dzx-spdif.c143 u32 val, ch_num, rate; in zx_spdif_hw_params() local
171 ch_num = params_channels(params); in zx_spdif_hw_params()
172 if (ch_num == 2) in zx_spdif_hw_params()
180 if (ch_num == 2) in zx_spdif_hw_params()
190 return clk_set_rate(spdif->dai_clk, rate * ch_num * ZX_SPDIF_CLK_RAT); in zx_spdif_hw_params()
Dzx-tdm.c199 unsigned int ch_num = 32; in zx_tdm_hw_params() local
205 dma_data->addr_width = ch_num >> 3; in zx_tdm_hw_params()
225 params_rate(params) * TIMING_WIDTH_FACTOR * ch_num); in zx_tdm_hw_params()
/kernel/linux/linux-5.10/drivers/staging/most/sound/
Dsound.c424 static int split_arg_list(char *buf, u16 *ch_num, char **sample_res) in split_arg_list() argument
432 ret = kstrtou16(num, 0, ch_num); in split_arg_list()
457 u16 ch_num, char *sample_res, in audio_set_hw_params() argument
470 if (!ch_num) { in audio_set_hw_params()
475 if (cfg->subbuffer_size != ch_num * sinfo[i].bytes) { in audio_set_hw_params()
489 pcm_hw->channels_min = ch_num; in audio_set_hw_params()
490 pcm_hw->channels_max = ch_num; in audio_set_hw_params()
532 u16 ch_num; in audio_probe_channel() local
541 ret = split_arg_list(arg_list_cpy, &ch_num, &sample_res); in audio_probe_channel()
597 ret = audio_set_hw_params(&channel->pcm_hardware, ch_num, sample_res, in audio_probe_channel()
/kernel/linux/linux-5.10/drivers/rapidio/
Drio_cm.c224 static struct rio_channel *riocm_ch_alloc(u16 ch_num);
1281 static struct rio_channel *riocm_ch_alloc(u16 ch_num) in riocm_ch_alloc() argument
1291 if (ch_num) { in riocm_ch_alloc()
1293 start = ch_num; in riocm_ch_alloc()
1294 end = ch_num + 1; in riocm_ch_alloc()
1344 static struct rio_channel *riocm_ch_create(u16 *ch_num) in riocm_ch_create() argument
1348 ch = riocm_ch_alloc(*ch_num); in riocm_ch_create()
1352 *ch_num, PTR_ERR(ch)); in riocm_ch_create()
1354 *ch_num = ch->id; in riocm_ch_create()
1659 u16 ch_num; in cm_chan_create() local
[all …]
/kernel/linux/linux-5.10/drivers/dma/ti/
Dedma.c230 int ch_num; member
445 int channel = EDMA_CHAN_SLOT(echan->ch_num); in edma_set_chmap()
456 int channel = EDMA_CHAN_SLOT(echan->ch_num); in edma_setup_interrupt()
601 int channel = EDMA_CHAN_SLOT(echan->ch_num); in edma_start()
628 int channel = EDMA_CHAN_SLOT(echan->ch_num); in edma_stop()
654 int channel = EDMA_CHAN_SLOT(echan->ch_num); in edma_pause()
664 int channel = EDMA_CHAN_SLOT(echan->ch_num); in edma_resume()
674 int channel = EDMA_CHAN_SLOT(echan->ch_num); in edma_trigger_channel()
687 int channel = EDMA_CHAN_SLOT(echan->ch_num); in edma_clean_channel()
706 int channel = EDMA_CHAN_SLOT(echan->ch_num); in edma_assign_channel_eventq()
[all …]
/kernel/linux/linux-5.10/include/uapi/linux/
Drio_cm_cdev.h52 __u16 ch_num; member
59 __u16 ch_num; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Drio_cm_cdev.h29 __u16 ch_num; member
35 __u16 ch_num; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Drio_cm_cdev.h16 __u16 ch_num; member
22 __u16 ch_num; member
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-eg20t.c162 int ch_num; member
628 for (i = 0, flag = 0; i < adap_info->ch_num; i++) { in pch_i2c_handler()
765 adap_info->ch_num = id->driver_data; in pch_i2c_probe()
767 for (i = 0; i < adap_info->ch_num; i++) { in pch_i2c_probe()
793 for (i = 0; i < adap_info->ch_num; i++) { in pch_i2c_probe()
832 for (i = 0; i < adap_info->ch_num; i++) { in pch_i2c_remove()
840 for (i = 0; i < adap_info->ch_num; i++) in pch_i2c_remove()
858 for (i = 0; i < adap_info->ch_num; i++) { in pch_i2c_suspend()
866 for (i = 0; i < adap_info->ch_num; i++) in pch_i2c_suspend()
882 for (i = 0; i < adap_info->ch_num; i++) in pch_i2c_resume()
/kernel/linux/linux-5.10/drivers/dma/
Dmoxart-dma.c143 int ch_num; member
354 __func__, ch->ch_num); in moxart_alloc_chan_resources()
367 __func__, ch->ch_num); in moxart_free_chan_resources()
600 ch->ch_num = i; in moxart_probe()
608 __func__, i, ch->ch_num, ch->base); in moxart_probe()
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
Dcpsw_ethtool.c234 static void cpsw_add_ch_strings(u8 **p, int ch_num, int rx_dir) in cpsw_add_ch_strings() argument
240 ch_stats_len = CPSW_STATS_CH_LEN * ch_num; in cpsw_add_ch_strings()
532 static int cpsw_update_channels_res(struct cpsw_priv *priv, int ch_num, int rx, in cpsw_update_channels_res() argument
551 while (*ch < ch_num) { in cpsw_update_channels_res()
568 while (*ch > ch_num) { in cpsw_update_channels_res()
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/include/
Drtw_cmd.h122 u8 ch_num; member
302 int ch_num);
/kernel/linux/linux-5.10/arch/sh/include/asm/
Ddma.h101 int ch_num; member

12