/drivers/net/wireless/intel/iwlegacy/ |
D | 4965-mac.c | 67 il4965_check_abort_status(struct il_priv *il, u8 frame_count, u32 status) in il4965_check_abort_status() argument 71 if (!test_bit(S_EXIT_PENDING, &il->status)) in il4965_check_abort_status() 72 queue_work(il->workqueue, &il->tx_flush); in il4965_check_abort_status() 85 il4965_rx_queue_reset(struct il_priv *il, struct il_rx_queue *rxq) in il4965_rx_queue_reset() argument 97 pci_unmap_page(il->pci_dev, rxq->pool[i].page_dma, in il4965_rx_queue_reset() 98 PAGE_SIZE << il->hw_params.rx_page_order, in il4965_rx_queue_reset() 100 __il_free_pages(il, rxq->pool[i].page); in il4965_rx_queue_reset() 118 il4965_rx_init(struct il_priv *il, struct il_rx_queue *rxq) in il4965_rx_init() argument 124 if (il->cfg->mod_params->amsdu_size_8K) in il4965_rx_init() 130 il_wr(il, FH49_MEM_RCSR_CHNL0_CONFIG_REG, 0); in il4965_rx_init() [all …]
|
D | 3945-mac.c | 90 il3945_get_antenna_flags(const struct il_priv *il) in il3945_get_antenna_flags() argument 92 struct il3945_eeprom *eeprom = (struct il3945_eeprom *)il->eeprom; in il3945_get_antenna_flags() 117 il3945_set_ccmp_dynamic_key_info(struct il_priv *il, in il3945_set_ccmp_dynamic_key_info() argument 127 if (sta_id == il->hw_params.bcast_id) in il3945_set_ccmp_dynamic_key_info() 134 spin_lock_irqsave(&il->sta_lock, flags); in il3945_set_ccmp_dynamic_key_info() 135 il->stations[sta_id].keyinfo.cipher = keyconf->cipher; in il3945_set_ccmp_dynamic_key_info() 136 il->stations[sta_id].keyinfo.keylen = keyconf->keylen; in il3945_set_ccmp_dynamic_key_info() 137 memcpy(il->stations[sta_id].keyinfo.key, keyconf->key, keyconf->keylen); in il3945_set_ccmp_dynamic_key_info() 139 memcpy(il->stations[sta_id].sta.key.key, keyconf->key, keyconf->keylen); in il3945_set_ccmp_dynamic_key_info() 141 if ((il->stations[sta_id].sta.key. in il3945_set_ccmp_dynamic_key_info() [all …]
|
D | common.c | 27 _il_poll_bit(struct il_priv *il, u32 addr, u32 bits, u32 mask, int timeout) in _il_poll_bit() argument 33 if ((_il_rd(il, addr) & mask) == (bits & mask)) in _il_poll_bit() 66 _il_grab_nic_access(struct il_priv *il) in _il_grab_nic_access() argument 72 _il_set_bit(il, CSR_GP_CNTRL, CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ); in _il_grab_nic_access() 92 _il_poll_bit(il, CSR_GP_CNTRL, CSR_GP_CNTRL_REG_VAL_MAC_ACCESS_EN, in _il_grab_nic_access() 96 val = _il_rd(il, CSR_GP_CNTRL); in _il_grab_nic_access() 99 _il_wr(il, CSR_RESET, CSR_RESET_REG_FLAG_FORCE_NMI); in _il_grab_nic_access() 108 il_poll_bit(struct il_priv *il, u32 addr, u32 mask, int timeout) in il_poll_bit() argument 114 if ((il_rd(il, addr) & mask) == mask) in il_poll_bit() 125 il_rd_prph(struct il_priv *il, u32 reg) in il_rd_prph() argument [all …]
|
D | 4965.c | 34 il4965_verify_inst_sparse(struct il_priv *il, __le32 * image, u32 len) in il4965_verify_inst_sparse() argument 47 il_wr(il, HBUS_TARG_MEM_RADDR, i + IL4965_RTC_INST_LOWER_BOUND); in il4965_verify_inst_sparse() 48 val = _il_rd(il, HBUS_TARG_MEM_RDAT); in il4965_verify_inst_sparse() 65 il4965_verify_inst_full(struct il_priv *il, __le32 * image, u32 len) in il4965_verify_inst_full() argument 74 il_wr(il, HBUS_TARG_MEM_RADDR, IL4965_RTC_INST_LOWER_BOUND); in il4965_verify_inst_full() 81 val = _il_rd(il, HBUS_TARG_MEM_RDAT); in il4965_verify_inst_full() 104 il4965_verify_ucode(struct il_priv *il) in il4965_verify_ucode() argument 111 image = (__le32 *) il->ucode_boot.v_addr; in il4965_verify_ucode() 112 len = il->ucode_boot.len; in il4965_verify_ucode() 113 ret = il4965_verify_inst_sparse(il, image, len); in il4965_verify_ucode() [all …]
|
D | 3945.c | 31 il3945_send_led_cmd(struct il_priv *il, struct il_led_cmd *led_cmd) in il3945_send_led_cmd() argument 41 return il_send_cmd(il, &cmd); in il3945_send_led_cmd() 103 il3945_disable_events(struct il_priv *il) in il3945_disable_events() argument 159 base = le32_to_cpu(il->card_alive.log_event_table_ptr); in il3945_disable_events() 165 disable_ptr = il_read_targ_mem(il, base + (4 * sizeof(u32))); in il3945_disable_events() 166 array_size = il_read_targ_mem(il, base + (5 * sizeof(u32))); in il3945_disable_events() 172 il_write_targ_mem(il, disable_ptr + (i * sizeof(u32)), in il3945_disable_events() 238 il3945_rs_next_rate(struct il_priv *il, int rate) in il3945_rs_next_rate() argument 242 switch (il->band) { in il3945_rs_next_rate() 250 if (!(il->_3945.sta_supp_rates & IL_OFDM_RATES_MASK) && in il3945_rs_next_rate() [all …]
|
D | common.h | 31 #define IL_ERR(f, a...) dev_err(&il->pci_dev->dev, f, ## a) 32 #define IL_WARN(f, a...) dev_warn(&il->pci_dev->dev, f, ## a) 33 #define IL_WARN_ONCE(f, a...) dev_warn_once(&il->pci_dev->dev, f, ## a) 34 #define IL_INFO(f, a...) dev_info(&il->pci_dev->dev, f, ## a) 102 void (*callback) (struct il_priv *il, struct il_device_cmd *cmd, 414 int il_eeprom_init(struct il_priv *il); 415 void il_eeprom_free(struct il_priv *il); 416 const u8 *il_eeprom_query_addr(const struct il_priv *il, size_t offset); 417 u16 il_eeprom_query16(const struct il_priv *il, size_t offset); 418 int il_init_channel_map(struct il_priv *il); [all …]
|
D | 4965.h | 28 void il4965_free_tfds_in_queue(struct il_priv *il, int sta_id, int tid, 32 void il4965_set_rxon_chain(struct il_priv *il); 35 int il4965_verify_ucode(struct il_priv *il); 38 void il4965_check_abort_status(struct il_priv *il, u8 frame_count, u32 status); 40 void il4965_rx_queue_reset(struct il_priv *il, struct il_rx_queue *rxq); 41 int il4965_rx_init(struct il_priv *il, struct il_rx_queue *rxq); 42 int il4965_hw_nic_init(struct il_priv *il); 43 int il4965_dump_fh(struct il_priv *il, char **buf, bool display); 45 void il4965_nic_config(struct il_priv *il); 48 void il4965_rx_queue_restock(struct il_priv *il); [all …]
|
D | debug.c | 17 il_clear_traffic_stats(struct il_priv *il) in il_clear_traffic_stats() argument 19 memset(&il->tx_stats, 0, sizeof(struct traffic_stats)); in il_clear_traffic_stats() 20 memset(&il->rx_stats, 0, sizeof(struct traffic_stats)); in il_clear_traffic_stats() 28 il_update_stats(struct il_priv *il, bool is_tx, __le16 fc, u16 len) in il_update_stats() argument 33 stats = &il->tx_stats; in il_update_stats() 35 stats = &il->rx_stats; in il_update_stats() 113 debugfs_create_file(#name, mode, parent, il, \ 204 struct il_priv *il = file->private_data; in il_dbgfs_tx_stats_read() local 219 il_get_mgmt_string(cnt), il->tx_stats.mgmt[cnt]); in il_dbgfs_tx_stats_read() 225 il_get_ctrl_string(cnt), il->tx_stats.ctrl[cnt]); in il_dbgfs_tx_stats_read() [all …]
|
D | 3945.h | 63 struct il_priv *il; member 176 void il3945_rx_queue_reset(struct il_priv *il, struct il_rx_queue *rxq); 177 unsigned int il3945_fill_beacon_frame(struct il_priv *il, 179 int il3945_dump_nic_event_log(struct il_priv *il, bool full_log, char **buf, 181 void il3945_dump_nic_error_log(struct il_priv *il); 199 void il3945_hw_handler_setup(struct il_priv *il); 200 void il3945_hw_setup_deferred_work(struct il_priv *il); 201 void il3945_hw_cancel_deferred_work(struct il_priv *il); 202 int il3945_hw_rxq_stop(struct il_priv *il); 203 int il3945_hw_set_hw_params(struct il_priv *il); [all …]
|
D | 4965-calib.c | 95 il4965_sens_energy_cck(struct il_priv *il, u32 norm_fa, u32 rx_enable_time, in il4965_sens_energy_cck() argument 120 const struct il_sensitivity_ranges *ranges = il->hw_params.sens; in il4965_sens_energy_cck() 122 data = &(il->sensitivity_data); in il4965_sens_energy_cck() 292 il4965_sens_auto_corr_ofdm(struct il_priv *il, u32 norm_fa, u32 rx_enable_time) in il4965_sens_auto_corr_ofdm() argument 299 const struct il_sensitivity_ranges *ranges = il->hw_params.sens; in il4965_sens_auto_corr_ofdm() 301 data = &(il->sensitivity_data); in il4965_sens_auto_corr_ofdm() 355 il4965_prepare_legacy_sensitivity_tbl(struct il_priv *il, in il4965_prepare_legacy_sensitivity_tbl() argument 393 il4965_sensitivity_write(struct il_priv *il) in il4965_sensitivity_write() argument 404 data = &(il->sensitivity_data); in il4965_sensitivity_write() 408 il4965_prepare_legacy_sensitivity_tbl(il, data, &cmd.table[0]); in il4965_sensitivity_write() [all …]
|
D | 3945-debug.c | 15 il3945_stats_flag(struct il_priv *il, char *buf, int bufsz) in il3945_stats_flag() argument 20 le32_to_cpu(il->_3945.stats.flag)); in il3945_stats_flag() 21 if (le32_to_cpu(il->_3945.stats.flag) & UCODE_STATS_CLEAR_MSK) in il3945_stats_flag() 25 (le32_to_cpu(il->_3945.stats.flag) & in il3945_stats_flag() 28 (le32_to_cpu(il->_3945.stats.flag) & in il3945_stats_flag() 37 struct il_priv *il = file->private_data; in il3945_ucode_rx_stats_read() local 49 if (!il_is_alive(il)) in il3945_ucode_rx_stats_read() 63 ofdm = &il->_3945.stats.rx.ofdm; in il3945_ucode_rx_stats_read() 64 cck = &il->_3945.stats.rx.cck; in il3945_ucode_rx_stats_read() 65 general = &il->_3945.stats.rx.general; in il3945_ucode_rx_stats_read() [all …]
|
D | 4965-rs.c | 126 static void il4965_rs_rate_scale_perform(struct il_priv *il, 130 static void il4965_rs_fill_link_cmd(struct il_priv *il, 338 il4965_rs_tl_turn_on_agg_for_tid(struct il_priv *il, struct il_lq_sta *lq_data, in il4965_rs_tl_turn_on_agg_for_tid() argument 366 il4965_rs_tl_turn_on_agg(struct il_priv *il, u8 tid, struct il_lq_sta *lq_data, in il4965_rs_tl_turn_on_agg() argument 370 il4965_rs_tl_turn_on_agg_for_tid(il, lq_data, tid, sta); in il4965_rs_tl_turn_on_agg() 482 il4965_rate_n_flags_from_tbl(struct il_priv *il, struct il_scale_tbl_info *tbl, in il4965_rate_n_flags_from_tbl() argument 628 il4965_rs_use_green(struct il_priv *il, struct ieee80211_sta *sta) in il4965_rs_use_green() argument 631 !il->ht.non_gf_sta_present; in il4965_rs_use_green() 657 il4965_rs_get_adjacent_rate(struct il_priv *il, u8 idx, u16 rate_mask, in il4965_rs_get_adjacent_rate() argument 723 struct il_priv *il = lq_sta->drv; in il4965_rs_get_lower_rate() local [all …]
|
D | 3945-rs.c | 140 struct il_priv *il __maybe_unused = rs_sta->il; in il3945_rate_scale_flush_wins() 172 struct il_priv *il __maybe_unused = rs_sta->il; in il3945_bg_rate_scale_flush() 246 struct il_priv *il __maybe_unused = rs_sta->il; in il3945_collect_tx_data() 319 il3945_rs_rate_init(struct il_priv *il, struct ieee80211_sta *sta, u8 sta_id) in il3945_rs_rate_init() argument 321 struct ieee80211_hw *hw = il->hw; in il3945_rs_rate_init() 322 struct ieee80211_conf *conf = &il->hw->conf; in il3945_rs_rate_init() 329 if (sta_id == il->hw_params.bcast_id) in il3945_rs_rate_init() 336 rs_sta->il = il; in il3945_rs_rate_init() 363 il->_3945.sta_supp_rates = sta->supp_rates[sband->band]; in il3945_rs_rate_init() 367 il->_3945.sta_supp_rates <<= IL_FIRST_OFDM_RATE; in il3945_rs_rate_init() [all …]
|
D | 4965-debug.c | 19 il4965_stats_flag(struct il_priv *il, char *buf, int bufsz) in il4965_stats_flag() argument 24 flag = le32_to_cpu(il->_4965.stats.flag); in il4965_stats_flag() 44 struct il_priv *il = file->private_data; in il4965_ucode_rx_stats_read() local 58 if (!il_is_alive(il)) in il4965_ucode_rx_stats_read() 72 ofdm = &il->_4965.stats.rx.ofdm; in il4965_ucode_rx_stats_read() 73 cck = &il->_4965.stats.rx.cck; in il4965_ucode_rx_stats_read() 74 general = &il->_4965.stats.rx.general; in il4965_ucode_rx_stats_read() 75 ht = &il->_4965.stats.rx.ofdm_ht; in il4965_ucode_rx_stats_read() 76 accum_ofdm = &il->_4965.accum_stats.rx.ofdm; in il4965_ucode_rx_stats_read() 77 accum_cck = &il->_4965.accum_stats.rx.cck; in il4965_ucode_rx_stats_read() [all …]
|
/drivers/cpufreq/ |
D | pmac64-cpufreq.c | 484 u64 max_freq, min_freq, ih, il; in g5_pm72_cpufreq_init() local 581 il = *((u32 *)(eeprom + 0x20)); in g5_pm72_cpufreq_init() 584 if (il == ih) { in g5_pm72_cpufreq_init() 591 if (ih != 0 && il != 0) in g5_pm72_cpufreq_init() 592 min_freq = (max_freq * il) / ih; in g5_pm72_cpufreq_init()
|
/drivers/net/ethernet/dec/tulip/ |
D | de2104x.c | 1803 struct de_srom_info_leaf *il; in de21041_get_srom_info() local 1833 il = (struct de_srom_info_leaf *) &ee_data[ofs]; in de21041_get_srom_info() 1836 if (il->n_blocks == 0) in de21041_get_srom_info() 1839 (sizeof(struct de_srom_info_leaf) + (sizeof(struct de_srom_media_block) * il->n_blocks))) in de21041_get_srom_info() 1843 switch (get_unaligned(&il->default_media)) { in de21041_get_srom_info() 1865 bufp = ((void *)il) + sizeof(*il); in de21041_get_srom_info() 1866 for (i = 0; i < il->n_blocks; i++) { in de21041_get_srom_info()
|
/drivers/dma/ |
D | ste_dma40.c | 512 struct d40_interrupt_lookup *il; member 1649 struct d40_interrupt_lookup *il = base->gen_dmac.il; in d40_handle_interrupt() local 1656 regs[i] = readl(base->virtbase + il[i].src); in d40_handle_interrupt() 1670 if (il[row].offset == D40_PHY_CHAN) in d40_handle_interrupt() 1673 d40c = base->lookup_log_chans[il[row].offset + idx]; in d40_handle_interrupt() 1684 writel(BIT(idx), base->virtbase + il[row].clr); in d40_handle_interrupt() 1688 if (!il[row].is_error) in d40_handle_interrupt() 1692 chan, il[row].offset, idx); in d40_handle_interrupt() 3225 base->gen_dmac.il = il_v4b; in d40_hw_detect_init() 3240 base->gen_dmac.il = il_v4a; in d40_hw_detect_init()
|
/drivers/block/ |
D | floppy.c | 2140 int il; in setup_format_params() local 2179 il = 1; in setup_format_params() 2181 il++; in setup_format_params() 2193 n = (n + il) % raw_cmd->cmd[F_SECT_PER_TRACK]; in setup_format_params()
|