Home
last modified time | relevance | path

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

/drivers/usb/musb/
Dux500_dma.c49 u8 ch_num; member
147 u8 ch_num = hw_ep->epnum - 1; in ux500_dma_channel_allocate() local
153 if (ch_num > 7) in ux500_dma_channel_allocate()
154 ch_num -= 8; in ux500_dma_channel_allocate()
156 if (ch_num >= UX500_MUSB_DMA_NUM_RX_TX_CHANNELS) in ux500_dma_channel_allocate()
159 ux500_channel = is_tx ? &(controller->tx_channel[ch_num]) : in ux500_dma_channel_allocate()
160 &(controller->rx_channel[ch_num]) ; in ux500_dma_channel_allocate()
170 hw_ep->epnum, is_tx, ch_num); in ux500_dma_channel_allocate()
180 dev_dbg(musb->controller, "channel=%d\n", ux500_channel->ch_num); in ux500_dma_channel_release()
228 ux500_channel->ch_num, ux500_channel->is_tx); in ux500_dma_channel_abort()
[all …]
Dmusb_cppi41.c442 u8 ch_num = hw_ep->epnum - 1; in cppi41_dma_channel_allocate() local
444 if (ch_num >= MUSB_DMA_NUM_CHANNELS) in cppi41_dma_channel_allocate()
448 cppi41_channel = &controller->tx_channel[ch_num]; in cppi41_dma_channel_allocate()
450 cppi41_channel = &controller->rx_channel[ch_num]; in cppi41_dma_channel_allocate()
/drivers/dma/
Dmic_x100_dma.h113 int ch_num; member
160 (ch - ch->ch_num), struct mic_dma_device, mic_ch); in to_mic_dma_dev()
186 ch->ch_num * MIC_DMA_SBOX_CHAN_OFF + reg); in mic_dma_read_reg()
192 ch->ch_num * MIC_DMA_SBOX_CHAN_OFF + reg); in mic_dma_write_reg()
215 u32 chan_num = ch->ch_num; in mic_dma_chan_set_owner()
225 dcr |= 2 << (ch->ch_num << 1); in mic_dma_enable_chan()
233 dcr &= ~(2 << (ch->ch_num << 1)); in mic_dma_disable_chan()
284 to_mbus_hw_ops(ch)->ack_interrupt(to_mbus_device(ch), ch->ch_num); in mic_dma_ack_interrupt()
Dedma.c218 int ch_num; member
432 int channel = EDMA_CHAN_SLOT(echan->ch_num); in edma_set_chmap()
443 int channel = EDMA_CHAN_SLOT(echan->ch_num); in edma_setup_interrupt()
589 int channel = EDMA_CHAN_SLOT(echan->ch_num); in edma_start()
616 int channel = EDMA_CHAN_SLOT(echan->ch_num); in edma_stop()
642 int channel = EDMA_CHAN_SLOT(echan->ch_num); in edma_pause()
651 int channel = EDMA_CHAN_SLOT(echan->ch_num); in edma_resume()
660 int channel = EDMA_CHAN_SLOT(echan->ch_num); in edma_trigger_channel()
672 int channel = EDMA_CHAN_SLOT(echan->ch_num); in edma_clean_channel()
690 int channel = EDMA_CHAN_SLOT(echan->ch_num); in edma_assign_channel_eventq()
[all …]
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()
Dmic_x100_dma.c444 __func__, __LINE__, ch->ch_num); in mic_dma_check_chan()
482 "mic dma_channel", ch, ch->ch_num); in mic_dma_setup_irq()
533 __func__, __LINE__, ch->ch_num); in mic_dma_drain_chan()
560 ch->ch_num = i; in mic_dma_init()
705 chan_num = ch->ch_num; in mic_dma_reg_seq_show()
/drivers/hwmon/
Dpowr1220.c113 static int powr1220_read_adc(struct device *dev, int ch_num) in powr1220_read_adc() argument
122 if (time_after(jiffies, data->adc_last_updated[ch_num] + HZ) || in powr1220_read_adc()
123 !data->adc_valid[ch_num]) { in powr1220_read_adc()
130 if (data->adc_maxes[ch_num] > ADC_MAX_LOW_MEASUREMENT_MV || in powr1220_read_adc()
131 data->adc_maxes[ch_num] == 0) in powr1220_read_adc()
136 adc_range | ch_num); in powr1220_read_adc()
162 data->adc_values[ch_num] = reading; in powr1220_read_adc()
163 data->adc_valid[ch_num] = true; in powr1220_read_adc()
164 data->adc_last_updated[ch_num] = jiffies; in powr1220_read_adc()
167 if (reading > data->adc_maxes[ch_num]) in powr1220_read_adc()
[all …]
/drivers/rapidio/
Drio_cm.c233 static struct rio_channel *riocm_ch_alloc(u16 ch_num);
1288 static struct rio_channel *riocm_ch_alloc(u16 ch_num) in riocm_ch_alloc() argument
1298 if (ch_num) { in riocm_ch_alloc()
1300 start = ch_num; in riocm_ch_alloc()
1301 end = ch_num + 1; in riocm_ch_alloc()
1351 static struct rio_channel *riocm_ch_create(u16 *ch_num) in riocm_ch_create() argument
1355 ch = riocm_ch_alloc(*ch_num); in riocm_ch_create()
1359 *ch_num, PTR_ERR(ch)); in riocm_ch_create()
1361 *ch_num = ch->id; in riocm_ch_create()
1666 u16 ch_num; in cm_chan_create() local
[all …]
/drivers/i2c/busses/
Di2c-eg20t.c170 int ch_num; member
637 for (i = 0, flag = 0; i < adap_info->ch_num; i++) { in pch_i2c_handler()
774 adap_info->ch_num = id->driver_data; in pch_i2c_probe()
776 for (i = 0; i < adap_info->ch_num; i++) { in pch_i2c_probe()
802 for (i = 0; i < adap_info->ch_num; i++) { in pch_i2c_probe()
841 for (i = 0; i < adap_info->ch_num; i++) { in pch_i2c_remove()
849 for (i = 0; i < adap_info->ch_num; i++) in pch_i2c_remove()
868 for (i = 0; i < adap_info->ch_num; i++) { in pch_i2c_suspend()
876 for (i = 0; i < adap_info->ch_num; i++) in pch_i2c_suspend()
913 for (i = 0; i < adap_info->ch_num; i++) in pch_i2c_resume()
/drivers/staging/rtl8188eu/include/
Drtw_cmd.h130 u8 ch_num; member
306 int ch_num);
Drtw_mlme_ext.h257 u8 ch_num; member
/drivers/net/wireless/intel/iwlwifi/
Diwl-nvm-parse.c216 static u32 iwl_get_channel_flags(u8 ch_num, int ch_idx, bool is_5ghz, in iwl_get_channel_flags() argument
226 if (ch_num <= LAST_2GHZ_HT_PLUS) in iwl_get_channel_flags()
228 if (ch_num >= FIRST_2GHZ_HT_MINUS) in iwl_get_channel_flags()
230 } else if (ch_num <= last_5ghz_ht && (nvm_flags & NVM_CHANNEL_40MHZ)) { in iwl_get_channel_flags()
/drivers/tty/serial/
Drp2.c256 static void rp2_mask_ch_irq(struct rp2_uart_port *up, int ch_num, in rp2_mask_ch_irq() argument
265 irq_mask &= ~BIT(ch_num); in rp2_mask_ch_irq()
267 irq_mask |= BIT(ch_num); in rp2_mask_ch_irq()
/drivers/staging/rtl8188eu/core/
Drtw_cmd.c249 struct rtw_ieee80211_channel *ch, int ch_num) in rtw_sitesurvey_cmd() argument
295 for (i = 0; i < ch_num && i < RTW_CHANNEL_SCAN_AMOUNT; i++) { in rtw_sitesurvey_cmd()
298 psurveyPara->ch_num++; in rtw_sitesurvey_cmd()
Drtw_mlme_ext.c1945 if (pmlmeext->sitesurvey_res.channel_idx < pmlmeext->sitesurvey_res.ch_num) { in site_survey()
4835 pmlmeext->sitesurvey_res.channel_idx = pmlmeext->sitesurvey_res.ch_num; in survey_timer_hdl()
5226 pmlmeext->sitesurvey_res.ch_num = rtw_scan_ch_decision(padapter in sitesurvey_cmd_hdl()
5228 , pparm->ch, pparm->ch_num in sitesurvey_cmd_hdl()
/drivers/net/wireless/intel/iwlegacy/
D4965.c700 ch_i1 = il->calib_info->band_info[s].ch1.ch_num; in il4965_interpolate_chan()
701 ch_i2 = il->calib_info->band_info[s].ch2.ch_num; in il4965_interpolate_chan()
702 chan_info->ch_num = (u8) channel; in il4965_interpolate_chan()
Dcommon.h285 u8 ch_num; member
/drivers/net/ethernet/ti/
Dcpsw.c1032 static void cpsw_add_ch_strings(u8 **p, int ch_num, int rx_dir) in cpsw_add_ch_strings() argument
1038 ch_stats_len = CPSW_STATS_CH_LEN * ch_num; in cpsw_add_ch_strings()
2117 static int cpsw_update_channels_res(struct cpsw_priv *priv, int ch_num, int rx) in cpsw_update_channels_res() argument
2137 while (*ch < ch_num) { in cpsw_update_channels_res()
2151 while (*ch > ch_num) { in cpsw_update_channels_res()