Searched refs:aic (Results 1 - 14 of 14) sorted by relevance

/linux-4.4.14/drivers/irqchip/
H A Dirq-atmel-aic-common.c3 * irq-atmel-aic and irq-atmel-aic5 drivers
25 #include "irq-atmel-aic-common.h"
51 struct aic_chip_data *aic = gc->private; aic_common_set_type() local
62 if (!(d->mask & aic->ext_irqs)) aic_common_set_type()
68 if (!(d->mask & aic->ext_irqs)) aic_common_set_type()
119 struct aic_chip_data *aic; aic_common_ext_irq_of_init() local
126 aic = gc->private; aic_common_ext_irq_of_init()
127 aic->ext_irqs |= 1; aic_common_ext_irq_of_init()
137 aic = gc->private; aic_common_ext_irq_of_init()
138 aic->ext_irqs |= (1 << (hwirq % 32)); aic_common_ext_irq_of_init()
221 struct aic_chip_data *aic; aic_common_of_init() local
233 aic = kcalloc(nchips, sizeof(*aic), GFP_KERNEL); aic_common_of_init()
234 if (!aic) { aic_common_of_init()
239 domain = irq_domain_add_linear(node, nchips * 32, ops, aic); aic_common_of_init()
263 gc->private = &aic[i]; aic_common_of_init()
274 kfree(aic); aic_common_of_init()
H A Dirq-atmel-aic5.c34 #include "irq-atmel-aic-common.h"
349 IRQCHIP_DECLARE(sama5d2_aic5, "atmel,sama5d2-aic", sama5d2_aic5_of_init);
358 IRQCHIP_DECLARE(sama5d3_aic5, "atmel,sama5d3-aic", sama5d3_aic5_of_init);
367 IRQCHIP_DECLARE(sama5d4_aic5, "atmel,sama5d4-aic", sama5d4_aic5_of_init);
H A Dirq-atmel-aic.c34 #include "irq-atmel-aic-common.h"
250 domain = aic_common_of_init(node, &aic_irq_ops, "atmel-aic", aic_of_init()
276 IRQCHIP_DECLARE(at91rm9200_aic, "atmel,at91rm9200-aic", aic_of_init);
/linux-4.4.14/drivers/net/wireless/ath/ath9k/
H A Dar9003_aic.c167 struct ath9k_hw_aic *aic = &ah->btcoex_hw.aic; ar9003_aic_cal_start() local
177 aic->aic_sram[i] = 0; ar9003_aic_cal_start()
251 aic->aic_cal_start_time = REG_READ(ah, AR_TSF_L32); ar9003_aic_cal_start()
258 aic->aic_caled_chan = 0; ar9003_aic_cal_start()
259 aic->aic_cal_state = AIC_CAL_STATE_STARTED; ar9003_aic_cal_start()
261 return aic->aic_cal_state; ar9003_aic_cal_start()
266 struct ath9k_hw_aic *aic = &ah->btcoex_hw.aic; ar9003_aic_cal_post_process() local
279 value = aic->aic_sram[i]; ar9003_aic_cal_post_process()
419 aic->aic_sram[i] = (SM(aic_sram[i].sram.vga_dir_sign, ar9003_aic_cal_post_process()
438 struct ath9k_hw_aic *aic = &ah->btcoex_hw.aic; ar9003_aic_cal_done() local
446 aic->aic_cal_state = AIC_CAL_STATE_DONE; ar9003_aic_cal_done()
448 aic->aic_cal_state = AIC_CAL_STATE_ERROR; ar9003_aic_cal_done()
455 struct ath9k_hw_aic *aic = &ah->btcoex_hw.aic; ar9003_aic_cal_continue() local
461 aic->aic_cal_state = AIC_CAL_STATE_ERROR; ar9003_aic_cal_continue()
462 return aic->aic_cal_state; ar9003_aic_cal_continue()
494 if (aic->aic_sram[i] == 0) ar9003_aic_cal_continue()
495 aic->aic_caled_chan++; ar9003_aic_cal_continue()
497 aic->aic_sram[i] = value; ar9003_aic_cal_continue()
504 if ((aic->aic_caled_chan >= num_chan) || cal_once) { ar9003_aic_cal_continue()
514 return aic->aic_cal_state; ar9003_aic_cal_continue()
520 struct ath9k_hw_aic *aic = &ah->btcoex_hw.aic; ar9003_aic_calibration() local
523 switch (aic->aic_cal_state) { ar9003_aic_calibration()
542 struct ath9k_hw_aic *aic = &ah->btcoex_hw.aic; ar9003_aic_start_normal() local
545 if (aic->aic_cal_state != AIC_CAL_STATE_DONE) ar9003_aic_start_normal()
553 REG_WRITE(ah, AR_PHY_AIC_SRAM_DATA_B1, aic->aic_sram[i]); ar9003_aic_start_normal()
567 aic->aic_enabled = true; ar9003_aic_start_normal()
574 struct ath9k_hw_aic *aic = &ah->btcoex_hw.aic; ar9003_aic_cal_reset() local
576 aic->aic_cal_state = AIC_CAL_STATE_IDLE; ar9003_aic_cal_reset()
577 return aic->aic_cal_state; ar9003_aic_cal_reset()
H A Dbtcoex.h110 struct ath9k_hw_aic aic; member in struct:ath_btcoex_hw
/linux-4.4.14/drivers/net/ethernet/emulex/benet/
H A Dbe_ethtool.c333 struct be_aic_obj *aic = &adapter->aic_obj[0]; be_get_coalesce() local
335 et->rx_coalesce_usecs = aic->prev_eqd; be_get_coalesce()
336 et->rx_coalesce_usecs_high = aic->max_eqd; be_get_coalesce()
337 et->rx_coalesce_usecs_low = aic->min_eqd; be_get_coalesce()
339 et->tx_coalesce_usecs = aic->prev_eqd; be_get_coalesce()
340 et->tx_coalesce_usecs_high = aic->max_eqd; be_get_coalesce()
341 et->tx_coalesce_usecs_low = aic->min_eqd; be_get_coalesce()
343 et->use_adaptive_rx_coalesce = aic->enable; be_get_coalesce()
344 et->use_adaptive_tx_coalesce = aic->enable; be_get_coalesce()
356 struct be_aic_obj *aic = &adapter->aic_obj[0]; be_set_coalesce() local
361 aic->enable = et->use_adaptive_rx_coalesce; for_all_evt_queues()
362 aic->max_eqd = min(et->rx_coalesce_usecs_high, BE_MAX_EQD); for_all_evt_queues()
363 aic->min_eqd = min(et->rx_coalesce_usecs_low, aic->max_eqd); for_all_evt_queues()
364 aic->et_eqd = min(et->rx_coalesce_usecs, aic->max_eqd); for_all_evt_queues()
365 aic->et_eqd = max(aic->et_eqd, aic->min_eqd); for_all_evt_queues()
366 aic++; for_all_evt_queues()
H A Dbe_main.c1836 static void be_aic_update(struct be_aic_obj *aic, u64 rx_pkts, u64 tx_pkts, be_aic_update() argument
1839 aic->rx_pkts_prev = rx_pkts; be_aic_update()
1840 aic->tx_reqs_prev = tx_pkts; be_aic_update()
1841 aic->jiffies = now; be_aic_update()
1848 struct be_aic_obj *aic; be_get_new_eqd() local
1856 aic = &adapter->aic_obj[eqo->idx]; be_get_new_eqd()
1857 if (!aic->enable) { be_get_new_eqd()
1858 if (aic->jiffies) be_get_new_eqd()
1859 aic->jiffies = 0; be_get_new_eqd()
1860 eqd = aic->et_eqd; be_get_new_eqd()
1880 if (!aic->jiffies || time_before(now, aic->jiffies) ||
1881 rx_pkts < aic->rx_pkts_prev ||
1882 tx_pkts < aic->tx_reqs_prev) {
1883 be_aic_update(aic, rx_pkts, tx_pkts, now);
1884 return aic->prev_eqd;
1887 delta = jiffies_to_msecs(now - aic->jiffies);
1889 return aic->prev_eqd;
1891 pps = (((u32)(rx_pkts - aic->rx_pkts_prev) * 1000) / delta) +
1892 (((u32)(tx_pkts - aic->tx_reqs_prev) * 1000) / delta);
1897 eqd = min_t(u32, eqd, aic->max_eqd);
1898 eqd = max_t(u32, eqd, aic->min_eqd);
1900 be_aic_update(aic, rx_pkts, tx_pkts, now);
1909 struct be_aic_obj *aic = &adapter->aic_obj[eqo->idx]; be_get_eq_delay_mult_enc() local
1914 if (!aic->enable) be_get_eq_delay_mult_enc()
1917 if (time_before_eq(now, aic->jiffies) || be_get_eq_delay_mult_enc()
1918 jiffies_to_msecs(now - aic->jiffies) < 1) be_get_eq_delay_mult_enc()
1919 eqd = aic->prev_eqd; be_get_eq_delay_mult_enc()
1932 aic->prev_eqd = eqd; be_get_eq_delay_mult_enc()
1940 struct be_aic_obj *aic; be_eqd_update() local
1945 aic = &adapter->aic_obj[eqo->idx]; for_all_evt_queues()
1947 if (force_update || eqd != aic->prev_eqd) { for_all_evt_queues()
1950 aic->prev_eqd = eqd; for_all_evt_queues()
2603 struct be_aic_obj *aic; be_evt_queues_create() local
2612 aic = &adapter->aic_obj[i]; for_all_evt_queues()
2615 aic->max_eqd = BE_MAX_EQD; for_all_evt_queues()
2616 aic->enable = true; for_all_evt_queues()
H A Dbe.h184 u32 eqd; /* configured val when aic is off */
213 u32 et_eqd; /* configured val when aic is off */
/linux-4.4.14/drivers/scsi/be2iscsi/
H A Dbe.h91 u32 et_eqd; /* configured val when aic is off */
H A Dbe_main.c5375 struct be_aic_obj *aic; be_eqd_update() local
5388 aic = &phba->aic_obj[i]; be_eqd_update()
5391 if (!aic->jiffs || time_before(now, aic->jiffs) || be_eqd_update()
5392 pbe_eq->cq_count < aic->eq_prev) { be_eqd_update()
5393 aic->jiffs = now; be_eqd_update()
5394 aic->eq_prev = pbe_eq->cq_count; be_eqd_update()
5397 delta = jiffies_to_msecs(now - aic->jiffs); be_eqd_update()
5398 pps = (((u32)(pbe_eq->cq_count - aic->eq_prev) * 1000) / delta); be_eqd_update()
5406 aic->jiffs = now; be_eqd_update()
5407 aic->eq_prev = pbe_eq->cq_count; be_eqd_update()
5409 if (eqd != aic->prev_eqd) { be_eqd_update()
5412 aic->prev_eqd = eqd; be_eqd_update()
/linux-4.4.14/drivers/clk/ingenic/
H A Djz4740-cgu.c210 "aic", CGU_CLK_GATE,
H A Djz4780-cgu.c517 "aic", CGU_CLK_GATE,
/linux-4.4.14/sound/soc/jz4740/
H A Djz4740-i2s.c513 i2s->clk_aic = devm_clk_get(&pdev->dev, "aic"); jz4740_i2s_dev_probe()
/linux-4.4.14/arch/mips/include/asm/octeon/
H A Dcvmx-pciercx-defs.h1144 uint32_t aic:2; member in struct:cvmx_pciercx_cfg034::cvmx_pciercx_cfg034_s
1158 uint32_t aic:2;

Completed in 797 milliseconds