il                424 arch/mips/include/asm/octeon/cvmx-pci-defs.h 		uint32_t il:8;
il                426 arch/mips/include/asm/octeon/cvmx-pci-defs.h 		uint32_t il:8;
il                 87 arch/mips/include/asm/txx9/tx3927.h 	endian_def_b4(ml, mg, ip, il);
il                187 arch/mips/pci/ops-tx3927.c 	tx3927_pcicptr->il = TX3927_IR_PCI;
il                344 crypto/camellia_generic.c #define CAMELLIA_F(xl, xr, kl, kr, yl, yr, il, ir, t0, t1) ({	\
il                345 crypto/camellia_generic.c 	il = xl ^ kl;						\
il                347 crypto/camellia_generic.c 	t0 = il >> 16;						\
il                355 crypto/camellia_generic.c 	   ^ camellia_sp3033[(u8)(il >> 8)]			\
il                356 crypto/camellia_generic.c 	   ^ camellia_sp4404[(u8)(il)];				\
il                548 crypto/camellia_generic.c 	u32 il, ir, t0, t1, w0, w1;
il                605 crypto/camellia_generic.c 		   w0, w1, il, ir, t0, t1);
il                609 crypto/camellia_generic.c 		   kll, klr, il, ir, t0, t1);
il                613 crypto/camellia_generic.c 		   krl, krr, il, ir, t0, t1);
il                617 crypto/camellia_generic.c 		   w0, w1, il, ir, t0, t1);
il                655 crypto/camellia_generic.c 	u32 il, ir, t0, t1, w0, w1;    /* temporary variables */
il                726 crypto/camellia_generic.c 		   w0, w1, il, ir, t0, t1);
il                730 crypto/camellia_generic.c 		   kll, klr, il, ir, t0, t1);
il                734 crypto/camellia_generic.c 		   krl, krr, il, ir, t0, t1);
il                738 crypto/camellia_generic.c 		   w0, w1, il, ir, t0, t1);
il                746 crypto/camellia_generic.c 		   w0, w1, il, ir, t0, t1);
il                750 crypto/camellia_generic.c 		   w0, w1, il, ir, t0, t1);
il                834 crypto/camellia_generic.c #define CAMELLIA_ROUNDSM(xl, xr, kl, kr, yl, yr, il, ir) ({		\
il                838 crypto/camellia_generic.c 	il =  camellia_sp1110[(u8)(xl >> 24)];				\
il                840 crypto/camellia_generic.c 	il ^= camellia_sp0222[(u8)(xl >> 16)];				\
il                842 crypto/camellia_generic.c 	il ^= camellia_sp3033[(u8)(xl >> 8)];				\
il                844 crypto/camellia_generic.c 	il ^= camellia_sp4404[(u8)xl];					\
il                845 crypto/camellia_generic.c 	ir ^= il;							\
il                847 crypto/camellia_generic.c 	yr ^= ror32(il, 8) ^ ir;					\
il                853 crypto/camellia_generic.c 	u32 il, ir, t0, t1;            /* temporary variables */
il                863 crypto/camellia_generic.c 			 io[2], io[3], il, ir); \
il                866 crypto/camellia_generic.c 			 io[0], io[1], il, ir); \
il                869 crypto/camellia_generic.c 			 io[2], io[3], il, ir); \
il                872 crypto/camellia_generic.c 			 io[0], io[1], il, ir); \
il                875 crypto/camellia_generic.c 			 io[2], io[3], il, ir); \
il                878 crypto/camellia_generic.c 			 io[0], io[1], il, ir); \
il                884 crypto/camellia_generic.c 		     t0, t1, il, ir); \
il                908 crypto/camellia_generic.c 	u32 il, ir, t0, t1;            /* temporary variables */
il                918 crypto/camellia_generic.c 			 io[2], io[3], il, ir); \
il                921 crypto/camellia_generic.c 			 io[0], io[1], il, ir); \
il                924 crypto/camellia_generic.c 			 io[2], io[3], il, ir); \
il                927 crypto/camellia_generic.c 			 io[0], io[1], il, ir); \
il                930 crypto/camellia_generic.c 			 io[2], io[3], il, ir); \
il                933 crypto/camellia_generic.c 			 io[0], io[1], il, ir); \
il                939 crypto/camellia_generic.c 		     t0, t1, il, ir); \
il                103 crypto/vmac.c  #define ADD128(rh, rl, ih, il)						\
il                105 crypto/vmac.c  		u64 _il = (il);						\
il               2101 drivers/block/floppy.c 	int il;
il               2140 drivers/block/floppy.c 	il = 1;
il               2142 drivers/block/floppy.c 		il++;
il               2154 drivers/block/floppy.c 		n = (n + il) % F_SECT_PER_TRACK;
il                484 drivers/cpufreq/pmac64-cpufreq.c 	u64 max_freq, min_freq, ih, il;
il                581 drivers/cpufreq/pmac64-cpufreq.c 	il = *((u32 *)(eeprom + 0x20));
il                584 drivers/cpufreq/pmac64-cpufreq.c 	if (il == ih) {
il                591 drivers/cpufreq/pmac64-cpufreq.c 	if (ih != 0 && il != 0)
il                592 drivers/cpufreq/pmac64-cpufreq.c 		min_freq = (max_freq * il) / ih;
il                511 drivers/dma/ste_dma40.c 	struct d40_interrupt_lookup	*il;
il               1649 drivers/dma/ste_dma40.c 	struct d40_interrupt_lookup *il = base->gen_dmac.il;
il               1656 drivers/dma/ste_dma40.c 		regs[i] = readl(base->virtbase + il[i].src);
il               1670 drivers/dma/ste_dma40.c 		if (il[row].offset == D40_PHY_CHAN)
il               1673 drivers/dma/ste_dma40.c 			d40c = base->lookup_log_chans[il[row].offset + idx];
il               1684 drivers/dma/ste_dma40.c 		writel(BIT(idx), base->virtbase + il[row].clr);
il               1688 drivers/dma/ste_dma40.c 		if (!il[row].is_error)
il               1692 drivers/dma/ste_dma40.c 				chan, il[row].offset, idx);
il               3226 drivers/dma/ste_dma40.c 		base->gen_dmac.il = il_v4b;
il               3241 drivers/dma/ste_dma40.c 		base->gen_dmac.il = il_v4a;
il               1797 drivers/net/ethernet/dec/tulip/de2104x.c 	struct de_srom_info_leaf *il;
il               1827 drivers/net/ethernet/dec/tulip/de2104x.c 	il = (struct de_srom_info_leaf *) &ee_data[ofs];
il               1830 drivers/net/ethernet/dec/tulip/de2104x.c 	if (il->n_blocks == 0)
il               1833 drivers/net/ethernet/dec/tulip/de2104x.c 	    (sizeof(struct de_srom_info_leaf) + (sizeof(struct de_srom_media_block) * il->n_blocks)))
il               1837 drivers/net/ethernet/dec/tulip/de2104x.c 	switch (get_unaligned(&il->default_media)) {
il               1859 drivers/net/ethernet/dec/tulip/de2104x.c 	bufp = ((void *)il) + sizeof(*il);
il               1860 drivers/net/ethernet/dec/tulip/de2104x.c 	for (i = 0; i < il->n_blocks; i++) {
il                 15 drivers/net/wireless/intel/iwlegacy/3945-debug.c il3945_stats_flag(struct il_priv *il, char *buf, int bufsz)
il                 20 drivers/net/wireless/intel/iwlegacy/3945-debug.c 		       le32_to_cpu(il->_3945.stats.flag));
il                 21 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	if (le32_to_cpu(il->_3945.stats.flag) & UCODE_STATS_CLEAR_MSK)
il                 25 drivers/net/wireless/intel/iwlegacy/3945-debug.c 		       (le32_to_cpu(il->_3945.stats.flag) &
il                 28 drivers/net/wireless/intel/iwlegacy/3945-debug.c 		       (le32_to_cpu(il->_3945.stats.flag) &
il                 37 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	struct il_priv *il = file->private_data;
il                 49 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	if (!il_is_alive(il))
il                 63 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	ofdm = &il->_3945.stats.rx.ofdm;
il                 64 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	cck = &il->_3945.stats.rx.cck;
il                 65 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	general = &il->_3945.stats.rx.general;
il                 66 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	accum_ofdm = &il->_3945.accum_stats.rx.ofdm;
il                 67 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	accum_cck = &il->_3945.accum_stats.rx.cck;
il                 68 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	accum_general = &il->_3945.accum_stats.rx.general;
il                 69 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	delta_ofdm = &il->_3945.delta_stats.rx.ofdm;
il                 70 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	delta_cck = &il->_3945.delta_stats.rx.cck;
il                 71 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	delta_general = &il->_3945.delta_stats.rx.general;
il                 72 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	max_ofdm = &il->_3945.max_delta.rx.ofdm;
il                 73 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	max_cck = &il->_3945.max_delta.rx.cck;
il                 74 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	max_general = &il->_3945.max_delta.rx.general;
il                 76 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	pos += il3945_stats_flag(il, buf, bufsz);
il                302 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	struct il_priv *il = file->private_data;
il                309 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	if (!il_is_alive(il))
il                323 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	tx = &il->_3945.stats.tx;
il                324 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	accum_tx = &il->_3945.accum_stats.tx;
il                325 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	delta_tx = &il->_3945.delta_stats.tx;
il                326 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	max_tx = &il->_3945.max_delta.tx;
il                327 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	pos += il3945_stats_flag(il, buf, bufsz);
il                392 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	struct il_priv *il = file->private_data;
il                402 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	if (!il_is_alive(il))
il                416 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	general = &il->_3945.stats.general;
il                417 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	dbg = &il->_3945.stats.general.dbg;
il                418 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	div = &il->_3945.stats.general.div;
il                419 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	accum_general = &il->_3945.accum_stats.general;
il                420 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	delta_general = &il->_3945.delta_stats.general;
il                421 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	max_general = &il->_3945.max_delta.general;
il                422 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	accum_dbg = &il->_3945.accum_stats.general.dbg;
il                423 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	delta_dbg = &il->_3945.delta_stats.general.dbg;
il                424 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	max_dbg = &il->_3945.max_delta.general.dbg;
il                425 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	accum_div = &il->_3945.accum_stats.general.div;
il                426 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	delta_div = &il->_3945.delta_stats.general.div;
il                427 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	max_div = &il->_3945.max_delta.general.div;
il                428 drivers/net/wireless/intel/iwlegacy/3945-debug.c 	pos += il3945_stats_flag(il, buf, bufsz);
il                 90 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_get_antenna_flags(const struct il_priv *il)
il                 92 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il3945_eeprom *eeprom = (struct il3945_eeprom *)il->eeprom;
il                117 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_set_ccmp_dynamic_key_info(struct il_priv *il,
il                127 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (sta_id == il->hw_params.bcast_id)
il                134 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_lock_irqsave(&il->sta_lock, flags);
il                135 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->stations[sta_id].keyinfo.cipher = keyconf->cipher;
il                136 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->stations[sta_id].keyinfo.keylen = keyconf->keylen;
il                137 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	memcpy(il->stations[sta_id].keyinfo.key, keyconf->key, keyconf->keylen);
il                139 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	memcpy(il->stations[sta_id].sta.key.key, keyconf->key, keyconf->keylen);
il                141 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if ((il->stations[sta_id].sta.key.
il                143 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->stations[sta_id].sta.key.key_offset =
il                144 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		    il_get_free_ucode_key_idx(il);
il                148 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	WARN(il->stations[sta_id].sta.key.key_offset == WEP_INVALID_OFFSET,
il                151 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->stations[sta_id].sta.key.key_flags = key_flags;
il                152 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->stations[sta_id].sta.sta.modify_mask = STA_MODIFY_KEY_MASK;
il                153 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK;
il                157 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	ret = il_send_add_sta(il, &il->stations[sta_id].sta, CMD_ASYNC);
il                159 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il                165 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_set_tkip_dynamic_key_info(struct il_priv *il,
il                172 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_set_wep_dynamic_key_info(struct il_priv *il,
il                179 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_clear_sta_key_info(struct il_priv *il, u8 sta_id)
il                184 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_lock_irqsave(&il->sta_lock, flags);
il                185 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	memset(&il->stations[sta_id].keyinfo, 0, sizeof(struct il_hw_key));
il                186 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	memset(&il->stations[sta_id].sta.key, 0, sizeof(struct il4965_keyinfo));
il                187 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->stations[sta_id].sta.key.key_flags = STA_KEY_FLG_NO_ENC;
il                188 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->stations[sta_id].sta.sta.modify_mask = STA_MODIFY_KEY_MASK;
il                189 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK;
il                190 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	memcpy(&sta_cmd, &il->stations[sta_id].sta,
il                192 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il                195 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	return il_send_add_sta(il, &sta_cmd, CMD_SYNC);
il                199 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_set_dynamic_key(struct il_priv *il, struct ieee80211_key_conf *keyconf,
il                208 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		ret = il3945_set_ccmp_dynamic_key_info(il, keyconf, sta_id);
il                211 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		ret = il3945_set_tkip_dynamic_key_info(il, keyconf, sta_id);
il                215 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		ret = il3945_set_wep_dynamic_key_info(il, keyconf, sta_id);
il                229 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_remove_static_key(struct il_priv *il)
il                237 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_set_static_key(struct il_priv *il, struct ieee80211_key_conf *key)
il                248 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_clear_free_frames(struct il_priv *il)
il                252 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	D_INFO("%d frames on pre-allocated heap on clear.\n", il->frames_count);
il                254 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	while (!list_empty(&il->free_frames)) {
il                255 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		element = il->free_frames.next;
il                258 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->frames_count--;
il                261 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il->frames_count) {
il                263 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			il->frames_count);
il                264 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->frames_count = 0;
il                269 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_get_free_frame(struct il_priv *il)
il                273 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (list_empty(&il->free_frames)) {
il                280 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->frames_count++;
il                284 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	element = il->free_frames.next;
il                290 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_free_frame(struct il_priv *il, struct il3945_frame *frame)
il                293 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	list_add(&frame->list, &il->free_frames);
il                297 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_fill_beacon_frame(struct il_priv *il, struct ieee80211_hdr *hdr,
il                301 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (!il_is_associated(il) || !il->beacon_skb)
il                304 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il->beacon_skb->len > left)
il                307 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	memcpy(hdr, il->beacon_skb->data, il->beacon_skb->len);
il                309 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	return il->beacon_skb->len;
il                313 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_send_beacon_cmd(struct il_priv *il)
il                320 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	frame = il3945_get_free_frame(il);
il                328 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	rate = il_get_lowest_plcp(il);
il                330 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	frame_size = il3945_hw_get_beacon_cmd(il, frame, rate);
il                332 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	rc = il_send_cmd_pdu(il, C_TX_BEACON, frame_size, &frame->u.cmd[0]);
il                334 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_free_frame(il, frame);
il                340 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_unset_hw_params(struct il_priv *il)
il                342 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il->_3945.shared_virt)
il                343 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		dma_free_coherent(&il->pci_dev->dev,
il                345 drivers/net/wireless/intel/iwlegacy/3945-mac.c 				  il->_3945.shared_virt, il->_3945.shared_phys);
il                349 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_build_tx_cmd_hwcrypto(struct il_priv *il, struct ieee80211_tx_info *info,
il                354 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_hw_key *keyinfo = &il->stations[sta_id].keyinfo;
il                393 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_build_tx_cmd_basic(struct il_priv *il, struct il_device_cmd *cmd,
il                426 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_tx_cmd_protection(il, info, fc, &tx_flags);
il                447 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_tx_skb(struct il_priv *il,
il                469 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_lock_irqsave(&il->lock, flags);
il                470 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il_is_rfkill(il)) {
il                475 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if ((ieee80211_get_tx_rate(il->hw, info)->hw_value & 0xFF) ==
il                492 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_unlock_irqrestore(&il->lock, flags);
il                497 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	sta_id = il_sta_id_or_broadcast(il, sta);
il                513 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	txq = &il->txq[txq_id];
il                519 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_lock_irqsave(&il->lock, flags);
il                547 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il3945_build_tx_cmd_hwcrypto(il, info, out_cmd, skb, sta_id);
il                550 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_build_tx_cmd_basic(il, out_cmd, info, hdr, sta_id);
il                552 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_hw_build_tx_cmd_rate(il, out_cmd, info, hdr, sta_id);
il                577 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	    pci_map_single(il->pci_dev, &out_cmd->hdr, firstlen,
il                579 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (unlikely(pci_dma_mapping_error(il->pci_dev, txcmd_phys)))
il                587 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		    pci_map_single(il->pci_dev, skb->data + hdr_len, secondlen,
il                589 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		if (unlikely(pci_dma_mapping_error(il->pci_dev, phys_addr)))
il                595 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->ops->txq_attach_buf_to_tfd(il, txq, txcmd_phys, firstlen, 1, 0);
il                599 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->ops->txq_attach_buf_to_tfd(il, txq, phys_addr, secondlen, 0,
il                609 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_update_stats(il, true, fc, skb->len);
il                613 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_print_hex_dump(il, IL_DL_TX, tx_cmd, sizeof(*tx_cmd));
il                614 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_print_hex_dump(il, IL_DL_TX, (u8 *) tx_cmd->hdr,
il                619 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_txq_update_write_ptr(il, txq);
il                620 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_unlock_irqrestore(&il->lock, flags);
il                622 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il_queue_space(q) < q->high_mark && il->mac80211_registered) {
il                624 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			spin_lock_irqsave(&il->lock, flags);
il                626 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			il_txq_update_write_ptr(il, txq);
il                627 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			spin_unlock_irqrestore(&il->lock, flags);
il                630 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il_stop_queue(il, txq);
il                636 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_unlock_irqrestore(&il->lock, flags);
il                642 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_get_measurement(struct il_priv *il,
il                657 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il_is_associated(il))
il                659 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		    il_usecs_to_beacons(il,
il                661 drivers/net/wireless/intel/iwlegacy/3945-mac.c 					il->_3945.last_tsf,
il                662 drivers/net/wireless/intel/iwlegacy/3945-mac.c 					le16_to_cpu(il->timing.beacon_interval));
il                673 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il_is_associated(il))
il                675 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		    il_add_beacon_time(il, il->_3945.last_beacon_time, add_time,
il                676 drivers/net/wireless/intel/iwlegacy/3945-mac.c 				       le16_to_cpu(il->timing.beacon_interval));
il                683 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il->active.flags & RXON_FLG_BAND_24G_MSK)
il                688 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	rc = il_send_cmd_sync(il, &cmd);
il                704 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			il->measurement_status &= ~MEASUREMENT_READY;
il                706 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->measurement_status |= MEASUREMENT_ACTIVE;
il                715 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_free_pages(il, cmd.reply_page);
il                721 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_hdl_alive(struct il_priv *il, struct il_rx_buf *rxb)
il                734 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		memcpy(&il->card_alive_init, &pkt->u.alive_frame,
il                736 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		pwork = &il->init_alive_start;
il                739 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		memcpy(&il->card_alive, &pkt->u.alive_frame,
il                741 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		pwork = &il->alive_start;
il                742 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il3945_disable_events(il);
il                748 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		queue_delayed_work(il->workqueue, pwork, msecs_to_jiffies(5));
il                754 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_hdl_add_sta(struct il_priv *il, struct il_rx_buf *rxb)
il                764 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_hdl_beacon(struct il_priv *il, struct il_rx_buf *rxb)
il                778 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->ibss_manager = le32_to_cpu(beacon->ibss_mgr_status);
il                785 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_hdl_card_state(struct il_priv *il, struct il_rx_buf *rxb)
il                789 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	unsigned long status = il->status;
il                795 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	_il_wr(il, CSR_UCODE_DRV_GP1_SET, CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED);
il                798 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		set_bit(S_RFKILL, &il->status);
il                800 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		clear_bit(S_RFKILL, &il->status);
il                802 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_scan_cancel(il);
il                805 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	     test_bit(S_RFKILL, &il->status)))
il                806 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		wiphy_rfkill_set_hw_state(il->hw->wiphy,
il                807 drivers/net/wireless/intel/iwlegacy/3945-mac.c 					  test_bit(S_RFKILL, &il->status));
il                809 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		wake_up(&il->wait_command_queue);
il                822 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_setup_handlers(struct il_priv *il)
il                824 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->handlers[N_ALIVE] = il3945_hdl_alive;
il                825 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->handlers[C_ADD_STA] = il3945_hdl_add_sta;
il                826 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->handlers[N_ERROR] = il_hdl_error;
il                827 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->handlers[N_CHANNEL_SWITCH] = il_hdl_csa;
il                828 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->handlers[N_SPECTRUM_MEASUREMENT] = il_hdl_spectrum_measurement;
il                829 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->handlers[N_PM_SLEEP] = il_hdl_pm_sleep;
il                830 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->handlers[N_PM_DEBUG_STATS] = il_hdl_pm_debug_stats;
il                831 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->handlers[N_BEACON] = il3945_hdl_beacon;
il                838 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->handlers[C_STATS] = il3945_hdl_c_stats;
il                839 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->handlers[N_STATS] = il3945_hdl_stats;
il                841 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_setup_rx_scan_handlers(il);
il                842 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->handlers[N_CARD_STATE] = il3945_hdl_card_state;
il                845 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_hw_handler_setup(il);
il                916 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_dma_addr2rbd_ptr(struct il_priv *il, dma_addr_t dma_addr)
il                933 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_rx_queue_restock(struct il_priv *il)
il                935 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_rx_queue *rxq = &il->rxq;
il                949 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		    il3945_dma_addr2rbd_ptr(il, rxb->page_dma);
il                958 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		queue_work(il->workqueue, &il->rx_replenish);
il                967 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il_rx_queue_update_write_ptr(il, rxq);
il                980 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_rx_allocate(struct il_priv *il, gfp_t priority)
il                982 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_rx_queue *rxq = &il->rxq;
il               1001 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		if (il->hw_params.rx_page_order > 0)
il               1005 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		page = alloc_pages(gfp_mask, il->hw_params.rx_page_order);
il               1022 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		    pci_map_page(il->pci_dev, page, 0,
il               1023 drivers/net/wireless/intel/iwlegacy/3945-mac.c 				 PAGE_SIZE << il->hw_params.rx_page_order,
il               1026 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		if (unlikely(pci_dma_mapping_error(il->pci_dev, page_dma))) {
il               1027 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			__free_pages(page, il->hw_params.rx_page_order);
il               1035 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			pci_unmap_page(il->pci_dev, page_dma,
il               1036 drivers/net/wireless/intel/iwlegacy/3945-mac.c 				       PAGE_SIZE << il->hw_params.rx_page_order,
il               1038 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			__free_pages(page, il->hw_params.rx_page_order);
il               1050 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->alloc_rxb_page++;
il               1057 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_rx_queue_reset(struct il_priv *il, struct il_rx_queue *rxq)
il               1069 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			pci_unmap_page(il->pci_dev, rxq->pool[i].page_dma,
il               1070 drivers/net/wireless/intel/iwlegacy/3945-mac.c 				       PAGE_SIZE << il->hw_params.rx_page_order,
il               1072 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			__il_free_pages(il, rxq->pool[i].page);
il               1089 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = data;
il               1092 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_rx_allocate(il, GFP_KERNEL);
il               1094 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_lock_irqsave(&il->lock, flags);
il               1095 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_rx_queue_restock(il);
il               1096 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_unlock_irqrestore(&il->lock, flags);
il               1100 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_rx_replenish_now(struct il_priv *il)
il               1102 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_rx_allocate(il, GFP_ATOMIC);
il               1104 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_rx_queue_restock(il);
il               1113 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_rx_queue_free(struct il_priv *il, struct il_rx_queue *rxq)
il               1118 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			pci_unmap_page(il->pci_dev, rxq->pool[i].page_dma,
il               1119 drivers/net/wireless/intel/iwlegacy/3945-mac.c 				       PAGE_SIZE << il->hw_params.rx_page_order,
il               1121 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			__il_free_pages(il, rxq->pool[i].page);
il               1126 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	dma_free_coherent(&il->pci_dev->dev, 4 * RX_QUEUE_SIZE, rxq->bd,
il               1128 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	dma_free_coherent(&il->pci_dev->dev, sizeof(struct il_rb_status),
il               1180 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_rx_handle(struct il_priv *il)
il               1184 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_rx_queue *rxq = &il->rxq;
il               1220 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		pci_unmap_page(il->pci_dev, rxb->page_dma,
il               1221 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			       PAGE_SIZE << il->hw_params.rx_page_order,
il               1228 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		reclaim = il_need_reclaim(il, pkt);
il               1233 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		if (il->handlers[pkt->hdr.cmd]) {
il               1236 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			il->isr_stats.handlers[pkt->hdr.cmd]++;
il               1237 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			il->handlers[pkt->hdr.cmd] (il, rxb);
il               1256 drivers/net/wireless/intel/iwlegacy/3945-mac.c 				il_tx_cmd_complete(il, rxb);
il               1267 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			    pci_map_page(il->pci_dev, rxb->page, 0,
il               1268 drivers/net/wireless/intel/iwlegacy/3945-mac.c 					 PAGE_SIZE << il->hw_params.
il               1270 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			if (unlikely(pci_dma_mapping_error(il->pci_dev,
il               1272 drivers/net/wireless/intel/iwlegacy/3945-mac.c 				__il_free_pages(il, rxb->page);
il               1291 drivers/net/wireless/intel/iwlegacy/3945-mac.c 				il3945_rx_replenish_now(il);
il               1300 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il3945_rx_replenish_now(il);
il               1302 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il3945_rx_queue_restock(il);
il               1307 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_synchronize_irq(struct il_priv *il)
il               1310 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	synchronize_irq(il->pci_dev->irq);
il               1311 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	tasklet_kill(&il->irq_tasklet);
il               1339 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_dump_nic_error_log(struct il_priv *il)
il               1345 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	base = le32_to_cpu(il->card_alive.error_event_table_ptr);
il               1352 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	count = il_read_targ_mem(il, base);
il               1356 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		IL_ERR("Status: 0x%08lX, count: %d\n", il->status, count);
il               1364 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		desc = il_read_targ_mem(il, base + i);
il               1365 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		time = il_read_targ_mem(il, base + i + 1 * sizeof(u32));
il               1366 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		blink1 = il_read_targ_mem(il, base + i + 2 * sizeof(u32));
il               1367 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		blink2 = il_read_targ_mem(il, base + i + 3 * sizeof(u32));
il               1368 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		ilink1 = il_read_targ_mem(il, base + i + 4 * sizeof(u32));
il               1369 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		ilink2 = il_read_targ_mem(il, base + i + 5 * sizeof(u32));
il               1370 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		data1 = il_read_targ_mem(il, base + i + 6 * sizeof(u32));
il               1381 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = (struct il_priv *)data;
il               1389 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_lock_irqsave(&il->lock, flags);
il               1394 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	inta = _il_rd(il, CSR_INT);
il               1395 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	_il_wr(il, CSR_INT, inta);
il               1400 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	inta_fh = _il_rd(il, CSR_FH_INT_STATUS);
il               1401 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	_il_wr(il, CSR_FH_INT_STATUS, inta_fh);
il               1404 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il_get_debug_level(il) & IL_DL_ISR) {
il               1406 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		inta_mask = _il_rd(il, CSR_INT_MASK);
il               1412 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_unlock_irqrestore(&il->lock, flags);
il               1428 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il_disable_interrupts(il);
il               1430 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->isr_stats.hw++;
il               1431 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il_irq_handle_error(il);
il               1438 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il_get_debug_level(il) & (IL_DL_ISR)) {
il               1443 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			il->isr_stats.sch++;
il               1449 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			il->isr_stats.alive++;
il               1460 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->isr_stats.sw++;
il               1461 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il_irq_handle_error(il);
il               1468 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il_rx_queue_update_write_ptr(il, &il->rxq);
il               1470 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		spin_lock_irqsave(&il->lock, flags);
il               1471 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il_txq_update_write_ptr(il, &il->txq[0]);
il               1472 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il_txq_update_write_ptr(il, &il->txq[1]);
il               1473 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il_txq_update_write_ptr(il, &il->txq[2]);
il               1474 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il_txq_update_write_ptr(il, &il->txq[3]);
il               1475 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il_txq_update_write_ptr(il, &il->txq[4]);
il               1476 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		spin_unlock_irqrestore(&il->lock, flags);
il               1478 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->isr_stats.wakeup++;
il               1486 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il3945_rx_handle(il);
il               1487 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->isr_stats.rx++;
il               1493 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->isr_stats.tx++;
il               1495 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		_il_wr(il, CSR_FH_INT_STATUS, (1 << 6));
il               1496 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il_wr(il, FH39_TCSR_CREDIT(FH39_SRVC_CHNL), 0x0);
il               1502 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->isr_stats.unhandled++;
il               1505 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (inta & ~il->inta_mask) {
il               1507 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			inta & ~il->inta_mask);
il               1513 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (test_bit(S_INT_ENABLED, &il->status))
il               1514 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il_enable_interrupts(il);
il               1517 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il_get_debug_level(il) & (IL_DL_ISR)) {
il               1518 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		inta = _il_rd(il, CSR_INT);
il               1519 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		inta_mask = _il_rd(il, CSR_INT_MASK);
il               1520 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		inta_fh = _il_rd(il, CSR_FH_INT_STATUS);
il               1528 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_get_channels_for_scan(struct il_priv *il, enum nl80211_band band,
il               1540 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	sband = il_get_hw_mode(il, band);
il               1544 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	active_dwell = il_get_active_dwell_time(il, band, n_probes);
il               1545 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	passive_dwell = il_get_passive_dwell_time(il, band, vif);
il               1550 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	for (i = 0, added = 0; i < il->scan_request->n_channels; i++) {
il               1551 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		chan = il->scan_request->channels[i];
il               1558 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		ch_info = il_get_channel_info(il, band, scan_ch->channel);
il               1573 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			if (IL_UCODE_API(il->ucode_ver) == 1)
il               1584 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		if (IL_UCODE_API(il->ucode_ver) >= 2) {
il               1622 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_init_hw_rates(struct il_priv *il, struct ieee80211_rate *rates)
il               1649 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_dealloc_ucode_pci(struct il_priv *il)
il               1651 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_free_fw_desc(il->pci_dev, &il->ucode_code);
il               1652 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_free_fw_desc(il->pci_dev, &il->ucode_data);
il               1653 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_free_fw_desc(il->pci_dev, &il->ucode_data_backup);
il               1654 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_free_fw_desc(il->pci_dev, &il->ucode_init);
il               1655 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_free_fw_desc(il->pci_dev, &il->ucode_init_data);
il               1656 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_free_fw_desc(il->pci_dev, &il->ucode_boot);
il               1664 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_verify_inst_full(struct il_priv *il, __le32 * image, u32 len)
il               1673 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_wr(il, HBUS_TARG_MEM_RADDR, IL39_RTC_INST_LOWER_BOUND);
il               1680 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		val = _il_rd(il, HBUS_TARG_MEM_RDAT);
il               1704 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_verify_inst_sparse(struct il_priv *il, __le32 * image, u32 len)
il               1717 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il_wr(il, HBUS_TARG_MEM_RADDR, i + IL39_RTC_INST_LOWER_BOUND);
il               1718 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		val = _il_rd(il, HBUS_TARG_MEM_RDAT);
il               1740 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_verify_ucode(struct il_priv *il)
il               1747 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	image = (__le32 *) il->ucode_boot.v_addr;
il               1748 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	len = il->ucode_boot.len;
il               1749 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	rc = il3945_verify_inst_sparse(il, image, len);
il               1756 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	image = (__le32 *) il->ucode_init.v_addr;
il               1757 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	len = il->ucode_init.len;
il               1758 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	rc = il3945_verify_inst_sparse(il, image, len);
il               1765 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	image = (__le32 *) il->ucode_code.v_addr;
il               1766 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	len = il->ucode_code.len;
il               1767 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	rc = il3945_verify_inst_sparse(il, image, len);
il               1778 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	image = (__le32 *) il->ucode_boot.v_addr;
il               1779 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	len = il->ucode_boot.len;
il               1780 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	rc = il3945_verify_inst_full(il, image, len);
il               1786 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_nic_start(struct il_priv *il)
il               1789 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	_il_wr(il, CSR_RESET, 0);
il               1822 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_read_ucode(struct il_priv *il)
il               1828 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	const char *name_pre = il->cfg->fw_name_pre;
il               1829 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	const unsigned int api_max = il->cfg->ucode_api_max;
il               1830 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	const unsigned int api_min = il->cfg->ucode_api_min;
il               1840 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		ret = request_firmware(&ucode_raw, buf, &il->pci_dev->dev);
il               1872 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->ucode_ver = le32_to_cpu(ucode->ver);
il               1873 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	api_ver = IL_UCODE_API(il->ucode_ver);
il               1889 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->ucode_ver = 0;
il               1900 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		IL_UCODE_MAJOR(il->ucode_ver), IL_UCODE_MINOR(il->ucode_ver),
il               1901 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		IL_UCODE_API(il->ucode_ver), IL_UCODE_SERIAL(il->ucode_ver));
il               1903 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	snprintf(il->hw->wiphy->fw_version, sizeof(il->hw->wiphy->fw_version),
il               1904 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		 "%u.%u.%u.%u", IL_UCODE_MAJOR(il->ucode_ver),
il               1905 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		 IL_UCODE_MINOR(il->ucode_ver), IL_UCODE_API(il->ucode_ver),
il               1906 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		 IL_UCODE_SERIAL(il->ucode_ver));
il               1908 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	D_INFO("f/w package hdr ucode version raw = 0x%x\n", il->ucode_ver);
il               1962 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->ucode_code.len = inst_size;
il               1963 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_alloc_fw_desc(il->pci_dev, &il->ucode_code);
il               1965 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->ucode_data.len = data_size;
il               1966 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_alloc_fw_desc(il->pci_dev, &il->ucode_data);
il               1968 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->ucode_data_backup.len = data_size;
il               1969 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_alloc_fw_desc(il->pci_dev, &il->ucode_data_backup);
il               1971 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (!il->ucode_code.v_addr || !il->ucode_data.v_addr ||
il               1972 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	    !il->ucode_data_backup.v_addr)
il               1977 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->ucode_init.len = init_size;
il               1978 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il_alloc_fw_desc(il->pci_dev, &il->ucode_init);
il               1980 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->ucode_init_data.len = init_data_size;
il               1981 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il_alloc_fw_desc(il->pci_dev, &il->ucode_init_data);
il               1983 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		if (!il->ucode_init.v_addr || !il->ucode_init_data.v_addr)
il               1989 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->ucode_boot.len = boot_size;
il               1990 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il_alloc_fw_desc(il->pci_dev, &il->ucode_boot);
il               1992 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		if (!il->ucode_boot.v_addr)
il               2001 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	memcpy(il->ucode_code.v_addr, src, len);
il               2005 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	       il->ucode_code.v_addr, (u32) il->ucode_code.p_addr);
il               2011 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	memcpy(il->ucode_data.v_addr, src, len);
il               2012 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	memcpy(il->ucode_data_backup.v_addr, src, len);
il               2019 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		memcpy(il->ucode_init.v_addr, src, len);
il               2027 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		memcpy(il->ucode_init_data.v_addr, src, len);
il               2034 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	memcpy(il->ucode_boot.v_addr, src, len);
il               2043 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_dealloc_ucode_pci(il);
il               2062 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_set_ucode_ptrs(struct il_priv *il)
il               2068 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	pinst = il->ucode_code.p_addr;
il               2069 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	pdata = il->ucode_data_backup.p_addr;
il               2072 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_wr_prph(il, BSM_DRAM_INST_PTR_REG, pinst);
il               2073 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_wr_prph(il, BSM_DRAM_DATA_PTR_REG, pdata);
il               2074 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_wr_prph(il, BSM_DRAM_DATA_BYTECOUNT_REG, il->ucode_data.len);
il               2078 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_wr_prph(il, BSM_DRAM_INST_BYTECOUNT_REG,
il               2079 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		   il->ucode_code.len | BSM_DRAM_INST_LOAD);
il               2094 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_init_alive_start(struct il_priv *il)
il               2097 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il->card_alive_init.is_valid != UCODE_VALID_OK) {
il               2107 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il3945_verify_ucode(il)) {
il               2118 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il3945_set_ucode_ptrs(il)) {
il               2127 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	queue_work(il->workqueue, &il->restart);
il               2136 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_alive_start(struct il_priv *il)
il               2143 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il->card_alive.is_valid != UCODE_VALID_OK) {
il               2153 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il3945_verify_ucode(il)) {
il               2160 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	rfkill = il_rd_prph(il, APMG_RFKILL_REG);
il               2164 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		clear_bit(S_RFKILL, &il->status);
il               2167 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		while (il3945_hw_get_temperature(il) == 0) {
il               2176 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		set_bit(S_RFKILL, &il->status);
il               2179 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	set_bit(S_ALIVE, &il->status);
il               2182 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_setup_watchdog(il);
il               2184 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il_is_rfkill(il))
il               2187 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	ieee80211_wake_queues(il->hw);
il               2189 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->active_rate = RATES_MASK_3945;
il               2191 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_power_update_mode(il, true);
il               2193 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il_is_associated(il)) {
il               2195 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		    (struct il3945_rxon_cmd *)(&il->active);
il               2197 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->staging.filter_flags |= RXON_FILTER_ASSOC_MSK;
il               2201 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il_connection_init_rx_config(il);
il               2205 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_send_bt_config(il);
il               2207 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	set_bit(S_READY, &il->status);
il               2210 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_commit_rxon(il);
il               2212 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_reg_txpower_periodic(il);
il               2215 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	wake_up(&il->wait_command_queue);
il               2220 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	queue_work(il->workqueue, &il->restart);
il               2223 drivers/net/wireless/intel/iwlegacy/3945-mac.c static void il3945_cancel_deferred_work(struct il_priv *il);
il               2226 drivers/net/wireless/intel/iwlegacy/3945-mac.c __il3945_down(struct il_priv *il)
il               2233 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_scan_cancel_timeout(il, 200);
il               2235 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	exit_pending = test_and_set_bit(S_EXIT_PENDING, &il->status);
il               2239 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	del_timer_sync(&il->watchdog);
il               2242 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_clear_ucode_stations(il);
il               2243 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_dealloc_bcast_stations(il);
il               2244 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_clear_driver_stations(il);
il               2247 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	wake_up_all(&il->wait_command_queue);
il               2252 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		clear_bit(S_EXIT_PENDING, &il->status);
il               2255 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	_il_wr(il, CSR_RESET, CSR_RESET_REG_FLAG_NEVO_RESET);
il               2258 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_lock_irqsave(&il->lock, flags);
il               2259 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_disable_interrupts(il);
il               2260 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_unlock_irqrestore(&il->lock, flags);
il               2261 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_synchronize_irq(il);
il               2263 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il->mac80211_registered)
il               2264 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		ieee80211_stop_queues(il->hw);
il               2268 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (!il_is_init(il)) {
il               2269 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->status =
il               2270 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		    test_bit(S_RFKILL, &il->status) << S_RFKILL |
il               2271 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		    test_bit(S_GEO_CONFIGURED, &il->status) << S_GEO_CONFIGURED |
il               2272 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		    test_bit(S_EXIT_PENDING, &il->status) << S_EXIT_PENDING;
il               2278 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->status &=
il               2279 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	    test_bit(S_RFKILL, &il->status) << S_RFKILL |
il               2280 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	    test_bit(S_GEO_CONFIGURED, &il->status) << S_GEO_CONFIGURED |
il               2281 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	    test_bit(S_FW_ERROR, &il->status) << S_FW_ERROR |
il               2282 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	    test_bit(S_EXIT_PENDING, &il->status) << S_EXIT_PENDING;
il               2289 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_lock_irq(&il->reg_lock);
il               2292 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_hw_txq_ctx_stop(il);
il               2293 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_hw_rxq_stop(il);
il               2295 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	_il_wr_prph(il, APMG_CLK_DIS_REG, APMG_CLK_VAL_DMA_CLK_RQT);
il               2298 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	_il_apm_stop(il);
il               2300 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_unlock_irq(&il->reg_lock);
il               2302 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_hw_txq_ctx_free(il);
il               2304 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	memset(&il->card_alive, 0, sizeof(struct il_alive_resp));
il               2306 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il->beacon_skb)
il               2307 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		dev_kfree_skb(il->beacon_skb);
il               2308 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->beacon_skb = NULL;
il               2311 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_clear_free_frames(il);
il               2315 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_down(struct il_priv *il)
il               2317 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	mutex_lock(&il->mutex);
il               2318 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	__il3945_down(il);
il               2319 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	mutex_unlock(&il->mutex);
il               2321 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_cancel_deferred_work(il);
il               2327 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_alloc_bcast_station(struct il_priv *il)
il               2332 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_lock_irqsave(&il->sta_lock, flags);
il               2333 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	sta_id = il_prep_station(il, il_bcast_addr, false, NULL);
il               2336 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		spin_unlock_irqrestore(&il->sta_lock, flags);
il               2341 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->stations[sta_id].used |= IL_STA_DRIVER_ACTIVE;
il               2342 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->stations[sta_id].used |= IL_STA_BCAST;
il               2343 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               2349 drivers/net/wireless/intel/iwlegacy/3945-mac.c __il3945_up(struct il_priv *il)
il               2353 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	rc = il3945_alloc_bcast_station(il);
il               2357 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (test_bit(S_EXIT_PENDING, &il->status)) {
il               2362 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (!il->ucode_data_backup.v_addr || !il->ucode_data.v_addr) {
il               2368 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (_il_rd(il, CSR_GP_CNTRL) & CSR_GP_CNTRL_REG_FLAG_HW_RF_KILL_SW)
il               2369 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		clear_bit(S_RFKILL, &il->status);
il               2371 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		set_bit(S_RFKILL, &il->status);
il               2375 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	_il_wr(il, CSR_INT, 0xFFFFFFFF);
il               2377 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	rc = il3945_hw_nic_init(il);
il               2384 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	_il_wr(il, CSR_UCODE_DRV_GP1_CLR, CSR_UCODE_SW_BIT_RFKILL);
il               2385 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	_il_wr(il, CSR_UCODE_DRV_GP1_CLR, CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED);
il               2388 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	_il_wr(il, CSR_INT, 0xFFFFFFFF);
il               2389 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_enable_interrupts(il);
il               2392 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	_il_wr(il, CSR_UCODE_DRV_GP1_CLR, CSR_UCODE_SW_BIT_RFKILL);
il               2393 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	_il_wr(il, CSR_UCODE_DRV_GP1_CLR, CSR_UCODE_SW_BIT_RFKILL);
il               2398 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	memcpy(il->ucode_data_backup.v_addr, il->ucode_data.v_addr,
il               2399 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	       il->ucode_data.len);
il               2402 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (test_bit(S_RFKILL, &il->status))
il               2410 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		rc = il->ops->load_ucode(il);
il               2418 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il3945_nic_start(il);
il               2425 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	set_bit(S_EXIT_PENDING, &il->status);
il               2426 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	__il3945_down(il);
il               2427 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	clear_bit(S_EXIT_PENDING, &il->status);
il               2444 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il =
il               2447 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	mutex_lock(&il->mutex);
il               2448 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (test_bit(S_EXIT_PENDING, &il->status))
il               2451 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_init_alive_start(il);
il               2453 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	mutex_unlock(&il->mutex);
il               2459 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il =
il               2462 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	mutex_lock(&il->mutex);
il               2463 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (test_bit(S_EXIT_PENDING, &il->status) || il->txq == NULL)
il               2466 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_alive_start(il);
il               2468 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	mutex_unlock(&il->mutex);
il               2480 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il =
il               2482 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	bool old_rfkill = test_bit(S_RFKILL, &il->status);
il               2484 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	    !(_il_rd(il, CSR_GP_CNTRL) & CSR_GP_CNTRL_REG_FLAG_HW_RF_KILL_SW);
il               2488 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			set_bit(S_RFKILL, &il->status);
il               2490 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			clear_bit(S_RFKILL, &il->status);
il               2492 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		wiphy_rfkill_set_hw_state(il->hw->wiphy, new_rfkill);
il               2500 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	queue_delayed_work(il->workqueue, &il->_3945.rfkill_poll,
il               2506 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_request_scan(struct il_priv *il, struct ieee80211_vif *vif)
il               2520 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	lockdep_assert_held(&il->mutex);
il               2522 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (!il->scan_cmd) {
il               2523 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->scan_cmd =
il               2526 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		if (!il->scan_cmd) {
il               2531 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	scan = il->scan_cmd;
il               2537 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il_is_associated(il)) {
il               2567 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il->scan_request->n_ssids) {
il               2570 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		for (i = 0; i < il->scan_request->n_ssids; i++) {
il               2572 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			if (!il->scan_request->ssids[i].ssid_len)
il               2576 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			    il->scan_request->ssids[i].ssid_len;
il               2578 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			       il->scan_request->ssids[i].ssid,
il               2579 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			       il->scan_request->ssids[i].ssid_len);
il               2590 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	scan->tx_cmd.sta_id = il->hw_params.bcast_id;
il               2595 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	switch (il->scan_band) {
il               2619 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	    il_fill_probe_req(il, (struct ieee80211_mgmt *)scan->data,
il               2620 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			      vif->addr, il->scan_request->ie,
il               2621 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			      il->scan_request->ie_len,
il               2626 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	scan->flags |= il3945_get_antenna_flags(il);
il               2629 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	    il3945_get_channels_for_scan(il, band, is_active, n_probes,
il               2642 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	set_bit(S_SCAN_HW, &il->status);
il               2643 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	ret = il_send_cmd_sync(il, &cmd);
il               2645 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		clear_bit(S_SCAN_HW, &il->status);
il               2650 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_post_scan(struct il_priv *il)
il               2656 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (memcmp(&il->staging, &il->active, sizeof(il->staging)))
il               2657 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il3945_commit_rxon(il);
il               2663 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = container_of(data, struct il_priv, restart);
il               2665 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (test_bit(S_EXIT_PENDING, &il->status))
il               2668 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (test_and_clear_bit(S_FW_ERROR, &il->status)) {
il               2669 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		mutex_lock(&il->mutex);
il               2670 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->is_open = 0;
il               2671 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		mutex_unlock(&il->mutex);
il               2672 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il3945_down(il);
il               2673 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		ieee80211_restart_hw(il->hw);
il               2675 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il3945_down(il);
il               2677 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		mutex_lock(&il->mutex);
il               2678 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		if (test_bit(S_EXIT_PENDING, &il->status)) {
il               2679 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			mutex_unlock(&il->mutex);
il               2683 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		__il3945_up(il);
il               2684 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		mutex_unlock(&il->mutex);
il               2691 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = container_of(data, struct il_priv, rx_replenish);
il               2693 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	mutex_lock(&il->mutex);
il               2694 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (test_bit(S_EXIT_PENDING, &il->status))
il               2697 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_rx_replenish(il);
il               2699 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	mutex_unlock(&il->mutex);
il               2703 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_post_associate(struct il_priv *il)
il               2707 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (!il->vif || !il->is_open)
il               2710 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	D_ASSOC("Associated as %d to: %pM\n", il->vif->bss_conf.aid,
il               2711 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->active.bssid_addr);
il               2713 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (test_bit(S_EXIT_PENDING, &il->status))
il               2716 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_scan_cancel_timeout(il, 200);
il               2718 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->staging.filter_flags &= ~RXON_FILTER_ASSOC_MSK;
il               2719 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_commit_rxon(il);
il               2721 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	rc = il_send_rxon_timing(il);
il               2725 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->staging.filter_flags |= RXON_FILTER_ASSOC_MSK;
il               2727 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->staging.assoc_id = cpu_to_le16(il->vif->bss_conf.aid);
il               2729 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	D_ASSOC("assoc id %d beacon interval %d\n", il->vif->bss_conf.aid,
il               2730 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->vif->bss_conf.beacon_int);
il               2732 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il->vif->bss_conf.use_short_preamble)
il               2733 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->staging.flags |= RXON_FLG_SHORT_PREAMBLE_MSK;
il               2735 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->staging.flags &= ~RXON_FLG_SHORT_PREAMBLE_MSK;
il               2737 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il->staging.flags & RXON_FLG_BAND_24G_MSK) {
il               2738 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		if (il->vif->bss_conf.use_short_slot)
il               2739 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			il->staging.flags |= RXON_FLG_SHORT_SLOT_MSK;
il               2741 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			il->staging.flags &= ~RXON_FLG_SHORT_SLOT_MSK;
il               2744 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_commit_rxon(il);
il               2746 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	switch (il->vif->type) {
il               2748 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il3945_rate_scale_init(il->hw, IL_AP_ID);
il               2751 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il3945_send_beacon_cmd(il);
il               2755 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		      il->vif->type);
il               2771 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = hw->priv;
il               2775 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	mutex_lock(&il->mutex);
il               2781 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (!il->ucode_code.len) {
il               2782 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		ret = il3945_read_ucode(il);
il               2785 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			mutex_unlock(&il->mutex);
il               2790 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	ret = __il3945_up(il);
il               2792 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	mutex_unlock(&il->mutex);
il               2801 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	ret = wait_event_timeout(il->wait_command_queue,
il               2802 drivers/net/wireless/intel/iwlegacy/3945-mac.c 				 test_bit(S_READY, &il->status),
il               2805 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		if (!test_bit(S_READY, &il->status)) {
il               2815 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	cancel_delayed_work(&il->_3945.rfkill_poll);
il               2817 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->is_open = 1;
il               2822 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->is_open = 0;
il               2830 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = hw->priv;
il               2834 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (!il->is_open) {
il               2839 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->is_open = 0;
il               2841 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_down(il);
il               2843 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	flush_workqueue(il->workqueue);
il               2846 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	queue_delayed_work(il->workqueue, &il->_3945.rfkill_poll,
il               2857 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = hw->priv;
il               2864 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il3945_tx_skb(il, control->sta, skb))
il               2871 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_config_ap(struct il_priv *il)
il               2873 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct ieee80211_vif *vif = il->vif;
il               2876 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (test_bit(S_EXIT_PENDING, &il->status))
il               2880 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (!(il_is_associated(il))) {
il               2883 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->staging.filter_flags &= ~RXON_FILTER_ASSOC_MSK;
il               2884 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il3945_commit_rxon(il);
il               2887 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		rc = il_send_rxon_timing(il);
il               2892 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->staging.assoc_id = 0;
il               2895 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			il->staging.flags |= RXON_FLG_SHORT_PREAMBLE_MSK;
il               2897 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			il->staging.flags &= ~RXON_FLG_SHORT_PREAMBLE_MSK;
il               2899 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		if (il->staging.flags & RXON_FLG_BAND_24G_MSK) {
il               2901 drivers/net/wireless/intel/iwlegacy/3945-mac.c 				il->staging.flags |= RXON_FLG_SHORT_SLOT_MSK;
il               2903 drivers/net/wireless/intel/iwlegacy/3945-mac.c 				il->staging.flags &= ~RXON_FLG_SHORT_SLOT_MSK;
il               2906 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->staging.filter_flags |= RXON_FILTER_ASSOC_MSK;
il               2907 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il3945_commit_rxon(il);
il               2909 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_send_beacon_cmd(il);
il               2917 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = hw->priv;
il               2939 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	static_key = !il_is_associated(il);
il               2942 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		sta_id = il_sta_id_or_broadcast(il, sta);
il               2949 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	mutex_lock(&il->mutex);
il               2950 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_scan_cancel_timeout(il, 100);
il               2955 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			ret = il3945_set_static_key(il, key);
il               2957 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			ret = il3945_set_dynamic_key(il, key, sta_id);
il               2962 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			ret = il3945_remove_static_key(il);
il               2964 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			ret = il3945_clear_sta_key_info(il, sta_id);
il               2972 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	mutex_unlock(&il->mutex);
il               2981 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = hw->priv;
il               2987 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	mutex_lock(&il->mutex);
il               2991 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	ret = il_add_station_common(il, sta->addr, is_ap, sta, &sta_id);
il               2995 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		mutex_unlock(&il->mutex);
il               3003 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_rs_rate_init(il, sta, sta_id);
il               3004 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	mutex_unlock(&il->mutex);
il               3013 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = hw->priv;
il               3032 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	mutex_lock(&il->mutex);
il               3034 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->staging.filter_flags &= ~filter_nand;
il               3035 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->staging.filter_flags |= filter_or;
il               3043 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	mutex_unlock(&il->mutex);
il               3079 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = dev_get_drvdata(d);
il               3080 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	return sprintf(buf, "0x%08X\n", il_get_debug_level(il));
il               3087 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = dev_get_drvdata(d);
il               3095 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->debug_level = val;
il               3109 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = dev_get_drvdata(d);
il               3111 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (!il_is_alive(il))
il               3114 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	return sprintf(buf, "%d\n", il3945_hw_get_temperature(il));
il               3122 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = dev_get_drvdata(d);
il               3123 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	return sprintf(buf, "%d\n", il->tx_power_user_lmt);
il               3130 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = dev_get_drvdata(d);
il               3138 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il3945_hw_reg_set_txpower(il, val);
il               3148 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = dev_get_drvdata(d);
il               3150 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	return sprintf(buf, "0x%04X\n", il->active.flags);
il               3157 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = dev_get_drvdata(d);
il               3160 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	mutex_lock(&il->mutex);
il               3161 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (le32_to_cpu(il->staging.flags) != flags) {
il               3163 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		if (il_scan_cancel_timeout(il, 100))
il               3167 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			il->staging.flags = cpu_to_le32(flags);
il               3168 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			il3945_commit_rxon(il);
il               3171 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	mutex_unlock(&il->mutex);
il               3182 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = dev_get_drvdata(d);
il               3184 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	return sprintf(buf, "0x%04X\n", le32_to_cpu(il->active.filter_flags));
il               3191 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = dev_get_drvdata(d);
il               3194 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	mutex_lock(&il->mutex);
il               3195 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (le32_to_cpu(il->staging.filter_flags) != filter_flags) {
il               3197 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		if (il_scan_cancel_timeout(il, 100))
il               3202 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			il->staging.filter_flags = cpu_to_le32(filter_flags);
il               3203 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			il3945_commit_rxon(il);
il               3206 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	mutex_unlock(&il->mutex);
il               3218 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = dev_get_drvdata(d);
il               3224 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_lock_irqsave(&il->lock, flags);
il               3225 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (!(il->measurement_status & MEASUREMENT_READY)) {
il               3226 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		spin_unlock_irqrestore(&il->lock, flags);
il               3229 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	memcpy(&measure_report, &il->measure_report, size);
il               3230 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->measurement_status = 0;
il               3231 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_unlock_irqrestore(&il->lock, flags);
il               3251 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = dev_get_drvdata(d);
il               3253 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		.channel = le16_to_cpu(il->active.channel),
il               3254 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		.start_time = cpu_to_le64(il->_3945.last_tsf),
il               3277 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_get_measurement(il, &params, type);
il               3289 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = dev_get_drvdata(d);
il               3291 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->retry_rate = simple_strtoul(buf, NULL, 0);
il               3292 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il->retry_rate <= 0)
il               3293 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->retry_rate = 1;
il               3302 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = dev_get_drvdata(d);
il               3303 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	return sprintf(buf, "%d", il->retry_rate);
il               3321 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = dev_get_drvdata(d);
il               3323 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (!il_is_alive(il))
il               3333 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il __maybe_unused = dev_get_drvdata(d);
il               3358 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = dev_get_drvdata(d);
il               3359 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (!il_is_alive(il))
il               3361 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	return sprintf(buf, "0x%08x\n", (int)il->status);
il               3370 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = dev_get_drvdata(d);
il               3374 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il3945_dump_nic_error_log(il);
il               3388 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_setup_deferred_work(struct il_priv *il)
il               3390 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->workqueue = create_singlethread_workqueue(DRV_NAME);
il               3392 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	init_waitqueue_head(&il->wait_command_queue);
il               3394 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	INIT_WORK(&il->restart, il3945_bg_restart);
il               3395 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	INIT_WORK(&il->rx_replenish, il3945_bg_rx_replenish);
il               3396 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	INIT_DELAYED_WORK(&il->init_alive_start, il3945_bg_init_alive_start);
il               3397 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	INIT_DELAYED_WORK(&il->alive_start, il3945_bg_alive_start);
il               3398 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	INIT_DELAYED_WORK(&il->_3945.rfkill_poll, il3945_rfkill_poll);
il               3400 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_setup_scan_deferred_work(il);
il               3402 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_hw_setup_deferred_work(il);
il               3404 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	timer_setup(&il->watchdog, il_bg_watchdog, 0);
il               3406 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	tasklet_init(&il->irq_tasklet,
il               3408 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		     (unsigned long)il);
il               3412 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_cancel_deferred_work(struct il_priv *il)
il               3414 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_hw_cancel_deferred_work(il);
il               3416 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	cancel_delayed_work_sync(&il->init_alive_start);
il               3417 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	cancel_delayed_work(&il->alive_start);
il               3419 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_cancel_scan_deferred_work(il);
il               3465 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_init_drv(struct il_priv *il)
il               3468 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il3945_eeprom *eeprom = (struct il3945_eeprom *)il->eeprom;
il               3470 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->retry_rate = 1;
il               3471 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->beacon_skb = NULL;
il               3473 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_lock_init(&il->sta_lock);
il               3474 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_lock_init(&il->hcmd_lock);
il               3476 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	INIT_LIST_HEAD(&il->free_frames);
il               3478 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	mutex_init(&il->mutex);
il               3480 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->ieee_channels = NULL;
il               3481 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->ieee_rates = NULL;
il               3482 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->band = NL80211_BAND_2GHZ;
il               3484 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->iw_mode = NL80211_IFTYPE_STATION;
il               3485 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->missed_beacon_threshold = IL_MISSED_BEACON_THRESHOLD_DEF;
il               3488 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->force_reset.reset_duration = IL_DELAY_NEXT_FORCE_FW_RELOAD;
il               3496 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	ret = il_init_channel_map(il);
il               3503 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il3945_txpower_set_from_eeprom(il)) {
il               3508 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	ret = il_init_geos(il);
il               3513 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_init_hw_rates(il, il->ieee_rates);
il               3518 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_free_channel_map(il);
il               3526 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_setup_mac(struct il_priv *il)
il               3529 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct ieee80211_hw *hw = il->hw;
il               3557 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il->bands[NL80211_BAND_2GHZ].n_channels)
il               3558 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->hw->wiphy->bands[NL80211_BAND_2GHZ] =
il               3559 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		    &il->bands[NL80211_BAND_2GHZ];
il               3561 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il->bands[NL80211_BAND_5GHZ].n_channels)
il               3562 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->hw->wiphy->bands[NL80211_BAND_5GHZ] =
il               3563 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		    &il->bands[NL80211_BAND_5GHZ];
il               3565 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_leds_init(il);
il               3567 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	wiphy_ext_feature_set(il->hw->wiphy, NL80211_EXT_FEATURE_CQM_RSSI_LIST);
il               3569 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	ret = ieee80211_register_hw(il->hw);
il               3574 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->mac80211_registered = 1;
il               3583 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il;
il               3598 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il = hw->priv;
il               3599 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->hw = hw;
il               3602 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->cmd_queue = IL39_CMD_QUEUE_NUM;
il               3605 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->cfg = cfg;
il               3606 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->ops = &il3945_ops;
il               3608 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->debugfs_ops = &il3945_debugfs_ops;
il               3610 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->pci_dev = pdev;
il               3611 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->inta_mask = CSR_INI_SET_MASK;
il               3635 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	pci_set_drvdata(pdev, il);
il               3643 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->hw_base = pci_ioremap_bar(pdev, 0);
il               3644 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (!il->hw_base) {
il               3651 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	D_INFO("pci_resource_base = %p\n", il->hw_base);
il               3660 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_lock_init(&il->reg_lock);
il               3661 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_lock_init(&il->lock);
il               3668 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	_il_wr(il, CSR_RESET, CSR_RESET_REG_FLAG_NEVO_RESET);
il               3675 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	err = il_eeprom_init(il);
il               3681 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	eeprom = (struct il3945_eeprom *)il->eeprom;
il               3683 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	SET_IEEE80211_PERM_ADDR(il->hw, eeprom->mac_address);
il               3689 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	err = il3945_hw_set_hw_params(il);
il               3699 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	err = il3945_init_drv(il);
il               3705 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	IL_INFO("Detected Intel Wireless WiFi Link %s\n", il->cfg->name);
il               3711 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_lock_irqsave(&il->lock, flags);
il               3712 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_disable_interrupts(il);
il               3713 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_unlock_irqrestore(&il->lock, flags);
il               3715 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	pci_enable_msi(il->pci_dev);
il               3717 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	err = request_irq(il->pci_dev->irq, il_isr, IRQF_SHARED, DRV_NAME, il);
il               3719 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		IL_ERR("Error allocating IRQ %d\n", il->pci_dev->irq);
il               3729 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_set_rxon_channel(il, &il->bands[NL80211_BAND_2GHZ].channels[5]);
il               3730 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_setup_deferred_work(il);
il               3731 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_setup_handlers(il);
il               3732 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_power_initialize(il);
il               3738 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_enable_interrupts(il);
il               3740 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	err = il3945_setup_mac(il);
il               3744 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_dbgfs_register(il, DRV_NAME);
il               3747 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	queue_delayed_work(il->workqueue, &il->_3945.rfkill_poll, 2 * HZ);
il               3752 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	destroy_workqueue(il->workqueue);
il               3753 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->workqueue = NULL;
il               3756 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	free_irq(il->pci_dev->irq, il);
il               3758 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	pci_disable_msi(il->pci_dev);
il               3759 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_free_geos(il);
il               3760 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_free_channel_map(il);
il               3762 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_unset_hw_params(il);
il               3764 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_eeprom_free(il);
il               3766 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	iounmap(il->hw_base);
il               3772 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	ieee80211_free_hw(il->hw);
il               3780 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	struct il_priv *il = pci_get_drvdata(pdev);
il               3783 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (!il)
il               3788 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_dbgfs_unregister(il);
il               3790 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	set_bit(S_EXIT_PENDING, &il->status);
il               3792 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_leds_exit(il);
il               3794 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il->mac80211_registered) {
il               3795 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		ieee80211_unregister_hw(il->hw);
il               3796 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il->mac80211_registered = 0;
il               3798 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il3945_down(il);
il               3808 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_apm_stop(il);
il               3813 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_lock_irqsave(&il->lock, flags);
il               3814 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_disable_interrupts(il);
il               3815 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	spin_unlock_irqrestore(&il->lock, flags);
il               3817 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_synchronize_irq(il);
il               3821 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	cancel_delayed_work_sync(&il->_3945.rfkill_poll);
il               3823 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_dealloc_ucode_pci(il);
il               3825 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il->rxq.bd)
il               3826 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		il3945_rx_queue_free(il, &il->rxq);
il               3827 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_hw_txq_ctx_free(il);
il               3829 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il3945_unset_hw_params(il);
il               3832 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	flush_workqueue(il->workqueue);
il               3837 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	destroy_workqueue(il->workqueue);
il               3838 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il->workqueue = NULL;
il               3840 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	free_irq(pdev->irq, il);
il               3843 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	iounmap(il->hw_base);
il               3847 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_free_channel_map(il);
il               3848 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	il_free_geos(il);
il               3849 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	kfree(il->scan_cmd);
il               3850 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (il->beacon_skb)
il               3851 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		dev_kfree_skb(il->beacon_skb);
il               3853 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	ieee80211_free_hw(il->hw);
il                140 drivers/net/wireless/intel/iwlegacy/3945-rs.c 	struct il_priv *il __maybe_unused = rs_sta->il;
il                172 drivers/net/wireless/intel/iwlegacy/3945-rs.c 	struct il_priv *il __maybe_unused = rs_sta->il;
il                246 drivers/net/wireless/intel/iwlegacy/3945-rs.c 	struct il_priv *il __maybe_unused = rs_sta->il;
il                319 drivers/net/wireless/intel/iwlegacy/3945-rs.c il3945_rs_rate_init(struct il_priv *il, struct ieee80211_sta *sta, u8 sta_id)
il                321 drivers/net/wireless/intel/iwlegacy/3945-rs.c 	struct ieee80211_hw *hw = il->hw;
il                322 drivers/net/wireless/intel/iwlegacy/3945-rs.c 	struct ieee80211_conf *conf = &il->hw->conf;
il                329 drivers/net/wireless/intel/iwlegacy/3945-rs.c 	if (sta_id == il->hw_params.bcast_id)
il                336 drivers/net/wireless/intel/iwlegacy/3945-rs.c 	rs_sta->il = il;
il                363 drivers/net/wireless/intel/iwlegacy/3945-rs.c 	il->_3945.sta_supp_rates = sta->supp_rates[sband->band];
il                367 drivers/net/wireless/intel/iwlegacy/3945-rs.c 		il->_3945.sta_supp_rates <<= IL_FIRST_OFDM_RATE;
il                371 drivers/net/wireless/intel/iwlegacy/3945-rs.c 	il->stations[sta_id].used &= ~IL_STA_UCODE_INPROGRESS;
il                384 drivers/net/wireless/intel/iwlegacy/3945-rs.c il3945_rs_free(void *il)
il                393 drivers/net/wireless/intel/iwlegacy/3945-rs.c 	struct il_priv *il __maybe_unused = il_priv;
il                433 drivers/net/wireless/intel/iwlegacy/3945-rs.c 	struct il_priv *il = (struct il_priv *)il_rate;
il                456 drivers/net/wireless/intel/iwlegacy/3945-rs.c 	if (!rs_sta->il) {
il                477 drivers/net/wireless/intel/iwlegacy/3945-rs.c 		if ((retries - 1) < il->retry_rate) {
il                481 drivers/net/wireless/intel/iwlegacy/3945-rs.c 			current_count = il->retry_rate;
il                482 drivers/net/wireless/intel/iwlegacy/3945-rs.c 			last_idx = il3945_rs_next_rate(il, scale_rate_idx);
il                529 drivers/net/wireless/intel/iwlegacy/3945-rs.c 	struct il_priv *il __maybe_unused = rs_sta->il;
il                623 drivers/net/wireless/intel/iwlegacy/3945-rs.c 	struct il_priv *il __maybe_unused = (struct il_priv *)il_r;
il                629 drivers/net/wireless/intel/iwlegacy/3945-rs.c 	if (rs_sta && !rs_sta->il) {
il                842 drivers/net/wireless/intel/iwlegacy/3945-rs.c il3945_add_debugfs(void *il, void *il_sta, struct dentry *dir)
il                881 drivers/net/wireless/intel/iwlegacy/3945-rs.c 	struct il_priv *il = hw->priv;
il                892 drivers/net/wireless/intel/iwlegacy/3945-rs.c 	sta = ieee80211_find_sta(il->vif, il->stations[sta_id].sta.sta.addr);
il                905 drivers/net/wireless/intel/iwlegacy/3945-rs.c 	switch (il->band) {
il                908 drivers/net/wireless/intel/iwlegacy/3945-rs.c 		if (il->active.flags & RXON_FLG_TGG_PROTECT_MSK) {
il                924 drivers/net/wireless/intel/iwlegacy/3945-rs.c 	rssi = il->_3945.last_rx_rssi;
il                930 drivers/net/wireless/intel/iwlegacy/3945-rs.c 	rs_sta->start_rate = il3945_get_rate_idx_by_rssi(rssi, il->band);
il                 31 drivers/net/wireless/intel/iwlegacy/3945.c il3945_send_led_cmd(struct il_priv *il, struct il_led_cmd *led_cmd)
il                 41 drivers/net/wireless/intel/iwlegacy/3945.c 	return il_send_cmd(il, &cmd);
il                103 drivers/net/wireless/intel/iwlegacy/3945.c il3945_disable_events(struct il_priv *il)
il                159 drivers/net/wireless/intel/iwlegacy/3945.c 	base = le32_to_cpu(il->card_alive.log_event_table_ptr);
il                165 drivers/net/wireless/intel/iwlegacy/3945.c 	disable_ptr = il_read_targ_mem(il, base + (4 * sizeof(u32)));
il                166 drivers/net/wireless/intel/iwlegacy/3945.c 	array_size = il_read_targ_mem(il, base + (5 * sizeof(u32)));
il                172 drivers/net/wireless/intel/iwlegacy/3945.c 			il_write_targ_mem(il, disable_ptr + (i * sizeof(u32)),
il                238 drivers/net/wireless/intel/iwlegacy/3945.c il3945_rs_next_rate(struct il_priv *il, int rate)
il                242 drivers/net/wireless/intel/iwlegacy/3945.c 	switch (il->band) {
il                250 drivers/net/wireless/intel/iwlegacy/3945.c 		if (!(il->_3945.sta_supp_rates & IL_OFDM_RATES_MASK) &&
il                251 drivers/net/wireless/intel/iwlegacy/3945.c 		    il_is_associated(il)) {
il                272 drivers/net/wireless/intel/iwlegacy/3945.c il3945_tx_queue_reclaim(struct il_priv *il, int txq_id, int idx)
il                274 drivers/net/wireless/intel/iwlegacy/3945.c 	struct il_tx_queue *txq = &il->txq[txq_id];
il                284 drivers/net/wireless/intel/iwlegacy/3945.c 		ieee80211_tx_status_irqsafe(il->hw, skb);
il                286 drivers/net/wireless/intel/iwlegacy/3945.c 		il->ops->txq_free_tfd(il, txq);
il                290 drivers/net/wireless/intel/iwlegacy/3945.c 	    txq_id != IL39_CMD_QUEUE_NUM && il->mac80211_registered)
il                291 drivers/net/wireless/intel/iwlegacy/3945.c 		il_wake_queue(il, txq);
il                298 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hdl_tx(struct il_priv *il, struct il_rx_buf *rxb)
il                304 drivers/net/wireless/intel/iwlegacy/3945.c 	struct il_tx_queue *txq = &il->txq[txq_id];
il                326 drivers/net/wireless/intel/iwlegacy/3945.c 	    il->iw_mode == NL80211_IFTYPE_STATION) {
il                327 drivers/net/wireless/intel/iwlegacy/3945.c 		il_stop_queues_by_reason(il, IL_STOP_REASON_PASSIVE);
il                355 drivers/net/wireless/intel/iwlegacy/3945.c 	il3945_tx_queue_reclaim(il, txq_id, idx);
il                370 drivers/net/wireless/intel/iwlegacy/3945.c il3945_accumulative_stats(struct il_priv *il, __le32 * stats)
il                377 drivers/net/wireless/intel/iwlegacy/3945.c 	prev_stats = (__le32 *) &il->_3945.stats;
il                378 drivers/net/wireless/intel/iwlegacy/3945.c 	accum_stats = (u32 *) &il->_3945.accum_stats;
il                379 drivers/net/wireless/intel/iwlegacy/3945.c 	delta = (u32 *) &il->_3945.delta_stats;
il                380 drivers/net/wireless/intel/iwlegacy/3945.c 	max_delta = (u32 *) &il->_3945.max_delta;
il                396 drivers/net/wireless/intel/iwlegacy/3945.c 	il->_3945.accum_stats.general.temperature =
il                397 drivers/net/wireless/intel/iwlegacy/3945.c 	    il->_3945.stats.general.temperature;
il                398 drivers/net/wireless/intel/iwlegacy/3945.c 	il->_3945.accum_stats.general.ttl_timestamp =
il                399 drivers/net/wireless/intel/iwlegacy/3945.c 	    il->_3945.stats.general.ttl_timestamp;
il                404 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hdl_stats(struct il_priv *il, struct il_rx_buf *rxb)
il                412 drivers/net/wireless/intel/iwlegacy/3945.c 	il3945_accumulative_stats(il, (__le32 *) &pkt->u.raw);
il                415 drivers/net/wireless/intel/iwlegacy/3945.c 	memcpy(&il->_3945.stats, pkt->u.raw, sizeof(il->_3945.stats));
il                419 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hdl_c_stats(struct il_priv *il, struct il_rx_buf *rxb)
il                426 drivers/net/wireless/intel/iwlegacy/3945.c 		memset(&il->_3945.accum_stats, 0,
il                428 drivers/net/wireless/intel/iwlegacy/3945.c 		memset(&il->_3945.delta_stats, 0,
il                430 drivers/net/wireless/intel/iwlegacy/3945.c 		memset(&il->_3945.max_delta, 0,
il                435 drivers/net/wireless/intel/iwlegacy/3945.c 	il3945_hdl_stats(il, rxb);
il                446 drivers/net/wireless/intel/iwlegacy/3945.c il3945_is_network_packet(struct il_priv *il, struct ieee80211_hdr *header)
il                450 drivers/net/wireless/intel/iwlegacy/3945.c 	switch (il->iw_mode) {
il                453 drivers/net/wireless/intel/iwlegacy/3945.c 		return ether_addr_equal_64bits(header->addr3, il->bssid);
il                456 drivers/net/wireless/intel/iwlegacy/3945.c 		return ether_addr_equal_64bits(header->addr2, il->bssid);
il                465 drivers/net/wireless/intel/iwlegacy/3945.c il3945_pass_packet_to_mac80211(struct il_priv *il, struct il_rx_buf *rxb,
il                475 drivers/net/wireless/intel/iwlegacy/3945.c 	u32 fraglen = PAGE_SIZE << il->hw_params.rx_page_order;
il                484 drivers/net/wireless/intel/iwlegacy/3945.c 	if (unlikely(!il->is_open)) {
il                489 drivers/net/wireless/intel/iwlegacy/3945.c 	if (unlikely(test_bit(IL_STOP_REASON_PASSIVE, &il->stop_reason))) {
il                490 drivers/net/wireless/intel/iwlegacy/3945.c 		il_wake_queues_by_reason(il, IL_STOP_REASON_PASSIVE);
il                501 drivers/net/wireless/intel/iwlegacy/3945.c 		il_set_decrypted_flag(il, (struct ieee80211_hdr *)pkt,
il                513 drivers/net/wireless/intel/iwlegacy/3945.c 		il->alloc_rxb_page--;
il                516 drivers/net/wireless/intel/iwlegacy/3945.c 	il_update_stats(il, false, fc, len);
il                519 drivers/net/wireless/intel/iwlegacy/3945.c 	ieee80211_rx(il->hw, skb);
il                525 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hdl_rx(struct il_priv *il, struct il_rx_buf *rxb)
il                580 drivers/net/wireless/intel/iwlegacy/3945.c 	network_packet = il3945_is_network_packet(il, header);
il                587 drivers/net/wireless/intel/iwlegacy/3945.c 		il->_3945.last_beacon_time =
il                589 drivers/net/wireless/intel/iwlegacy/3945.c 		il->_3945.last_tsf = le64_to_cpu(rx_end->timestamp);
il                590 drivers/net/wireless/intel/iwlegacy/3945.c 		il->_3945.last_rx_rssi = rx_status.signal;
il                593 drivers/net/wireless/intel/iwlegacy/3945.c 	il3945_pass_packet_to_mac80211(il, rxb, &rx_status);
il                597 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hw_txq_attach_buf_to_tfd(struct il_priv *il, struct il_tx_queue *txq,
il                636 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hw_txq_free_tfd(struct il_priv *il, struct il_tx_queue *txq)
il                641 drivers/net/wireless/intel/iwlegacy/3945.c 	struct pci_dev *dev = il->pci_dev;
il                683 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hw_build_tx_cmd_rate(struct il_priv *il, struct il_device_cmd *cmd,
il                687 drivers/net/wireless/intel/iwlegacy/3945.c 	u16 hw_value = ieee80211_get_tx_rate(il->hw, info)->hw_value;
il                730 drivers/net/wireless/intel/iwlegacy/3945.c il3945_sync_sta(struct il_priv *il, int sta_id, u16 tx_rate)
il                738 drivers/net/wireless/intel/iwlegacy/3945.c 	spin_lock_irqsave(&il->sta_lock, flags_spin);
il                739 drivers/net/wireless/intel/iwlegacy/3945.c 	station = &il->stations[sta_id];
il                744 drivers/net/wireless/intel/iwlegacy/3945.c 	il_send_add_sta(il, &station->sta, CMD_ASYNC);
il                745 drivers/net/wireless/intel/iwlegacy/3945.c 	spin_unlock_irqrestore(&il->sta_lock, flags_spin);
il                752 drivers/net/wireless/intel/iwlegacy/3945.c il3945_set_pwr_vmain(struct il_priv *il)
il                769 drivers/net/wireless/intel/iwlegacy/3945.c 	il_set_bits_mask_prph(il, APMG_PS_CTRL_REG,
il                773 drivers/net/wireless/intel/iwlegacy/3945.c 	_il_poll_bit(il, CSR_GPIO_IN, CSR_GPIO_IN_VAL_VMAIN_PWR_SRC,
il                778 drivers/net/wireless/intel/iwlegacy/3945.c il3945_rx_init(struct il_priv *il, struct il_rx_queue *rxq)
il                780 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr(il, FH39_RCSR_RBD_BASE(0), rxq->bd_dma);
il                781 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr(il, FH39_RCSR_RPTR_ADDR(0), rxq->rb_stts_dma);
il                782 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr(il, FH39_RCSR_WPTR(0), 0);
il                783 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr(il, FH39_RCSR_CONFIG(0),
il                795 drivers/net/wireless/intel/iwlegacy/3945.c 	il_rd(il, FH39_RSSR_CTRL);
il                801 drivers/net/wireless/intel/iwlegacy/3945.c il3945_tx_reset(struct il_priv *il)
il                804 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr_prph(il, ALM_SCD_MODE_REG, 0x2);
il                807 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr_prph(il, ALM_SCD_ARASTAT_REG, 0x01);
il                810 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr_prph(il, ALM_SCD_TXFACT_REG, 0x3f);
il                812 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr_prph(il, ALM_SCD_SBYP_MODE_1_REG, 0x010000);
il                813 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr_prph(il, ALM_SCD_SBYP_MODE_2_REG, 0x030002);
il                814 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr_prph(il, ALM_SCD_TXF4MF_REG, 0x000004);
il                815 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr_prph(il, ALM_SCD_TXF5MF_REG, 0x000005);
il                817 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr(il, FH39_TSSR_CBB_BASE, il->_3945.shared_phys);
il                819 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr(il, FH39_TSSR_MSG_CONFIG,
il                837 drivers/net/wireless/intel/iwlegacy/3945.c il3945_txq_ctx_reset(struct il_priv *il)
il                841 drivers/net/wireless/intel/iwlegacy/3945.c 	il3945_hw_txq_ctx_free(il);
il                844 drivers/net/wireless/intel/iwlegacy/3945.c 	rc = il_alloc_txq_mem(il);
il                849 drivers/net/wireless/intel/iwlegacy/3945.c 	rc = il3945_tx_reset(il);
il                854 drivers/net/wireless/intel/iwlegacy/3945.c 	for (txq_id = 0; txq_id < il->hw_params.max_txq_num; txq_id++) {
il                855 drivers/net/wireless/intel/iwlegacy/3945.c 		rc = il_tx_queue_init(il, txq_id);
il                865 drivers/net/wireless/intel/iwlegacy/3945.c 	il3945_hw_txq_ctx_free(il);
il                875 drivers/net/wireless/intel/iwlegacy/3945.c il3945_apm_init(struct il_priv *il)
il                877 drivers/net/wireless/intel/iwlegacy/3945.c 	int ret = il_apm_init(il);
il                880 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr_prph(il, APMG_RTC_INT_MSK_REG, 0x0);
il                881 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr_prph(il, APMG_RTC_INT_STT_REG, 0xFFFFFFFF);
il                884 drivers/net/wireless/intel/iwlegacy/3945.c 	il_set_bits_prph(il, APMG_PS_CTRL_REG, APMG_PS_CTRL_VAL_RESET_REQ);
il                886 drivers/net/wireless/intel/iwlegacy/3945.c 	il_clear_bits_prph(il, APMG_PS_CTRL_REG, APMG_PS_CTRL_VAL_RESET_REQ);
il                892 drivers/net/wireless/intel/iwlegacy/3945.c il3945_nic_config(struct il_priv *il)
il                894 drivers/net/wireless/intel/iwlegacy/3945.c 	struct il3945_eeprom *eeprom = (struct il3945_eeprom *)il->eeprom;
il                896 drivers/net/wireless/intel/iwlegacy/3945.c 	u8 rev_id = il->pci_dev->revision;
il                898 drivers/net/wireless/intel/iwlegacy/3945.c 	spin_lock_irqsave(&il->lock, flags);
il                907 drivers/net/wireless/intel/iwlegacy/3945.c 		il_set_bit(il, CSR_HW_IF_CONFIG_REG,
il                911 drivers/net/wireless/intel/iwlegacy/3945.c 		il_set_bit(il, CSR_HW_IF_CONFIG_REG,
il                917 drivers/net/wireless/intel/iwlegacy/3945.c 		il_set_bit(il, CSR_HW_IF_CONFIG_REG,
il                924 drivers/net/wireless/intel/iwlegacy/3945.c 		il_set_bit(il, CSR_HW_IF_CONFIG_REG,
il                928 drivers/net/wireless/intel/iwlegacy/3945.c 		il_clear_bit(il, CSR_HW_IF_CONFIG_REG,
il                933 drivers/net/wireless/intel/iwlegacy/3945.c 		il_set_bit(il, CSR_HW_IF_CONFIG_REG,
il                940 drivers/net/wireless/intel/iwlegacy/3945.c 		il_set_bit(il, CSR_HW_IF_CONFIG_REG,
il                943 drivers/net/wireless/intel/iwlegacy/3945.c 	spin_unlock_irqrestore(&il->lock, flags);
il                953 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hw_nic_init(struct il_priv *il)
il                957 drivers/net/wireless/intel/iwlegacy/3945.c 	struct il_rx_queue *rxq = &il->rxq;
il                959 drivers/net/wireless/intel/iwlegacy/3945.c 	spin_lock_irqsave(&il->lock, flags);
il                960 drivers/net/wireless/intel/iwlegacy/3945.c 	il3945_apm_init(il);
il                961 drivers/net/wireless/intel/iwlegacy/3945.c 	spin_unlock_irqrestore(&il->lock, flags);
il                963 drivers/net/wireless/intel/iwlegacy/3945.c 	il3945_set_pwr_vmain(il);
il                964 drivers/net/wireless/intel/iwlegacy/3945.c 	il3945_nic_config(il);
il                968 drivers/net/wireless/intel/iwlegacy/3945.c 		rc = il_rx_queue_alloc(il);
il                974 drivers/net/wireless/intel/iwlegacy/3945.c 		il3945_rx_queue_reset(il, rxq);
il                976 drivers/net/wireless/intel/iwlegacy/3945.c 	il3945_rx_replenish(il);
il                978 drivers/net/wireless/intel/iwlegacy/3945.c 	il3945_rx_init(il, rxq);
il                985 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr(il, FH39_RCSR_WPTR(0), rxq->write & ~7);
il                987 drivers/net/wireless/intel/iwlegacy/3945.c 	rc = il3945_txq_ctx_reset(il);
il                991 drivers/net/wireless/intel/iwlegacy/3945.c 	set_bit(S_INIT, &il->status);
il               1002 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hw_txq_ctx_free(struct il_priv *il)
il               1007 drivers/net/wireless/intel/iwlegacy/3945.c 	if (il->txq) {
il               1008 drivers/net/wireless/intel/iwlegacy/3945.c 		for (txq_id = 0; txq_id < il->hw_params.max_txq_num; txq_id++)
il               1010 drivers/net/wireless/intel/iwlegacy/3945.c 				il_cmd_queue_free(il);
il               1012 drivers/net/wireless/intel/iwlegacy/3945.c 				il_tx_queue_free(il, txq_id);
il               1016 drivers/net/wireless/intel/iwlegacy/3945.c 	il_free_txq_mem(il);
il               1020 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hw_txq_ctx_stop(struct il_priv *il)
il               1025 drivers/net/wireless/intel/iwlegacy/3945.c 	_il_wr_prph(il, ALM_SCD_MODE_REG, 0);
il               1026 drivers/net/wireless/intel/iwlegacy/3945.c 	_il_wr_prph(il, ALM_SCD_TXFACT_REG, 0);
il               1029 drivers/net/wireless/intel/iwlegacy/3945.c 	for (txq_id = 0; txq_id < il->hw_params.max_txq_num; txq_id++) {
il               1030 drivers/net/wireless/intel/iwlegacy/3945.c 		_il_wr(il, FH39_TCSR_CONFIG(txq_id), 0x0);
il               1031 drivers/net/wireless/intel/iwlegacy/3945.c 		_il_poll_bit(il, FH39_TSSR_TX_STATUS,
il               1058 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hw_get_temperature(struct il_priv *il)
il               1060 drivers/net/wireless/intel/iwlegacy/3945.c 	return _il_rd(il, CSR_UCODE_DRV_GP2);
il               1068 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hw_reg_txpower_get_temperature(struct il_priv *il)
il               1070 drivers/net/wireless/intel/iwlegacy/3945.c 	struct il3945_eeprom *eeprom = (struct il3945_eeprom *)il->eeprom;
il               1073 drivers/net/wireless/intel/iwlegacy/3945.c 	temperature = il3945_hw_get_temperature(il);
il               1085 drivers/net/wireless/intel/iwlegacy/3945.c 		if (il->last_temperature > 100)
il               1088 drivers/net/wireless/intel/iwlegacy/3945.c 			temperature = il->last_temperature;
il               1106 drivers/net/wireless/intel/iwlegacy/3945.c il3945_is_temp_calib_needed(struct il_priv *il)
il               1110 drivers/net/wireless/intel/iwlegacy/3945.c 	il->temperature = il3945_hw_reg_txpower_get_temperature(il);
il               1111 drivers/net/wireless/intel/iwlegacy/3945.c 	temp_diff = il->temperature - il->last_temperature;
il               1132 drivers/net/wireless/intel/iwlegacy/3945.c 	il->last_temperature = il->temperature;
il               1325 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hw_reg_set_scan_power(struct il_priv *il, u32 scan_tbl_idx, s32 rate_idx,
il               1340 drivers/net/wireless/intel/iwlegacy/3945.c 	power = min(power, il->tx_power_user_lmt);
il               1382 drivers/net/wireless/intel/iwlegacy/3945.c il3945_send_tx_power(struct il_priv *il)
il               1387 drivers/net/wireless/intel/iwlegacy/3945.c 		.channel = il->active.channel,
il               1392 drivers/net/wireless/intel/iwlegacy/3945.c 	    (test_bit(S_SCAN_HW, &il->status),
il               1396 drivers/net/wireless/intel/iwlegacy/3945.c 	chan = le16_to_cpu(il->active.channel);
il               1398 drivers/net/wireless/intel/iwlegacy/3945.c 	txpower.band = (il->band == NL80211_BAND_5GHZ) ? 0 : 1;
il               1399 drivers/net/wireless/intel/iwlegacy/3945.c 	ch_info = il_get_channel_info(il, il->band, chan);
il               1402 drivers/net/wireless/intel/iwlegacy/3945.c 		       il->band);
il               1436 drivers/net/wireless/intel/iwlegacy/3945.c 	return il_send_cmd_pdu(il, C_TX_PWR_TBL,
il               1459 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hw_reg_set_new_power(struct il_priv *il, struct il_channel_info *ch_info)
il               1468 drivers/net/wireless/intel/iwlegacy/3945.c 	clip_pwrs = il->_3945.clip_groups[ch_info->group_idx].clip_powers;
il               1551 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hw_reg_comp_txpower_temp(struct il_priv *il)
il               1554 drivers/net/wireless/intel/iwlegacy/3945.c 	struct il3945_eeprom *eeprom = (struct il3945_eeprom *)il->eeprom;
il               1562 drivers/net/wireless/intel/iwlegacy/3945.c 	int temperature = il->temperature;
il               1564 drivers/net/wireless/intel/iwlegacy/3945.c 	if (il->disable_tx_power_cal || test_bit(S_SCANNING, &il->status)) {
il               1569 drivers/net/wireless/intel/iwlegacy/3945.c 	for (i = 0; i < il->channel_count; i++) {
il               1570 drivers/net/wireless/intel/iwlegacy/3945.c 		ch_info = &il->channel_info[i];
il               1599 drivers/net/wireless/intel/iwlegacy/3945.c 		    il->_3945.clip_groups[ch_info->group_idx].clip_powers;
il               1607 drivers/net/wireless/intel/iwlegacy/3945.c 			il3945_hw_reg_set_scan_power(il, scan_tbl_idx,
il               1614 drivers/net/wireless/intel/iwlegacy/3945.c 	return il->ops->send_tx_power(il);
il               1618 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hw_reg_set_txpower(struct il_priv *il, s8 power)
il               1624 drivers/net/wireless/intel/iwlegacy/3945.c 	if (il->tx_power_user_lmt == power) {
il               1631 drivers/net/wireless/intel/iwlegacy/3945.c 	il->tx_power_user_lmt = power;
il               1635 drivers/net/wireless/intel/iwlegacy/3945.c 	for (i = 0; i < il->channel_count; i++) {
il               1636 drivers/net/wireless/intel/iwlegacy/3945.c 		ch_info = &il->channel_info[i];
il               1646 drivers/net/wireless/intel/iwlegacy/3945.c 			il3945_hw_reg_set_new_power(il, ch_info);
il               1652 drivers/net/wireless/intel/iwlegacy/3945.c 	il3945_is_temp_calib_needed(il);
il               1653 drivers/net/wireless/intel/iwlegacy/3945.c 	il3945_hw_reg_comp_txpower_temp(il);
il               1659 drivers/net/wireless/intel/iwlegacy/3945.c il3945_send_rxon_assoc(struct il_priv *il)
il               1670 drivers/net/wireless/intel/iwlegacy/3945.c 	const struct il_rxon_cmd *rxon1 = &il->staging;
il               1671 drivers/net/wireless/intel/iwlegacy/3945.c 	const struct il_rxon_cmd *rxon2 = &il->active;
il               1681 drivers/net/wireless/intel/iwlegacy/3945.c 	rxon_assoc.flags = il->staging.flags;
il               1682 drivers/net/wireless/intel/iwlegacy/3945.c 	rxon_assoc.filter_flags = il->staging.filter_flags;
il               1683 drivers/net/wireless/intel/iwlegacy/3945.c 	rxon_assoc.ofdm_basic_rates = il->staging.ofdm_basic_rates;
il               1684 drivers/net/wireless/intel/iwlegacy/3945.c 	rxon_assoc.cck_basic_rates = il->staging.cck_basic_rates;
il               1687 drivers/net/wireless/intel/iwlegacy/3945.c 	rc = il_send_cmd_sync(il, &cmd);
il               1697 drivers/net/wireless/intel/iwlegacy/3945.c 	il_free_pages(il, cmd.reply_page);
il               1711 drivers/net/wireless/intel/iwlegacy/3945.c il3945_commit_rxon(struct il_priv *il)
il               1714 drivers/net/wireless/intel/iwlegacy/3945.c 	struct il3945_rxon_cmd *active_rxon = (void *)&il->active;
il               1715 drivers/net/wireless/intel/iwlegacy/3945.c 	struct il3945_rxon_cmd *staging_rxon = (void *)&il->staging;
il               1719 drivers/net/wireless/intel/iwlegacy/3945.c 	if (test_bit(S_EXIT_PENDING, &il->status))
il               1722 drivers/net/wireless/intel/iwlegacy/3945.c 	if (!il_is_alive(il))
il               1730 drivers/net/wireless/intel/iwlegacy/3945.c 	staging_rxon->flags |= il3945_get_antenna_flags(il);
il               1732 drivers/net/wireless/intel/iwlegacy/3945.c 	rc = il_check_rxon_cmd(il);
il               1741 drivers/net/wireless/intel/iwlegacy/3945.c 	if (!il_full_rxon_required(il)) {
il               1742 drivers/net/wireless/intel/iwlegacy/3945.c 		rc = il_send_rxon_assoc(il);
il               1754 drivers/net/wireless/intel/iwlegacy/3945.c 		il_set_tx_power(il, il->tx_power_next, false);
il               1762 drivers/net/wireless/intel/iwlegacy/3945.c 	if (il_is_associated(il) && new_assoc) {
il               1772 drivers/net/wireless/intel/iwlegacy/3945.c 		rc = il_send_cmd_pdu(il, C_RXON, sizeof(struct il3945_rxon_cmd),
il               1773 drivers/net/wireless/intel/iwlegacy/3945.c 				     &il->active);
il               1783 drivers/net/wireless/intel/iwlegacy/3945.c 		il_clear_ucode_stations(il);
il               1784 drivers/net/wireless/intel/iwlegacy/3945.c 		il_restore_stations(il);
il               1798 drivers/net/wireless/intel/iwlegacy/3945.c 	il_set_rxon_hwcrypto(il, !il3945_mod_params.sw_crypto);
il               1801 drivers/net/wireless/intel/iwlegacy/3945.c 	rc = il_send_cmd_pdu(il, C_RXON, sizeof(struct il3945_rxon_cmd),
il               1811 drivers/net/wireless/intel/iwlegacy/3945.c 		il_clear_ucode_stations(il);
il               1812 drivers/net/wireless/intel/iwlegacy/3945.c 		il_restore_stations(il);
il               1817 drivers/net/wireless/intel/iwlegacy/3945.c 	rc = il_set_tx_power(il, il->tx_power_next, true);
il               1824 drivers/net/wireless/intel/iwlegacy/3945.c 	rc = il3945_init_hw_rate_table(il);
il               1844 drivers/net/wireless/intel/iwlegacy/3945.c il3945_reg_txpower_periodic(struct il_priv *il)
il               1848 drivers/net/wireless/intel/iwlegacy/3945.c 	if (!il3945_is_temp_calib_needed(il))
il               1854 drivers/net/wireless/intel/iwlegacy/3945.c 	il3945_hw_reg_comp_txpower_temp(il);
il               1857 drivers/net/wireless/intel/iwlegacy/3945.c 	queue_delayed_work(il->workqueue, &il->_3945.thermal_periodic,
il               1864 drivers/net/wireless/intel/iwlegacy/3945.c 	struct il_priv *il = container_of(work, struct il_priv,
il               1867 drivers/net/wireless/intel/iwlegacy/3945.c 	mutex_lock(&il->mutex);
il               1868 drivers/net/wireless/intel/iwlegacy/3945.c 	if (test_bit(S_EXIT_PENDING, &il->status) || il->txq == NULL)
il               1871 drivers/net/wireless/intel/iwlegacy/3945.c 	il3945_reg_txpower_periodic(il);
il               1873 drivers/net/wireless/intel/iwlegacy/3945.c 	mutex_unlock(&il->mutex);
il               1887 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hw_reg_get_ch_grp_idx(struct il_priv *il,
il               1890 drivers/net/wireless/intel/iwlegacy/3945.c 	struct il3945_eeprom *eeprom = (struct il3945_eeprom *)il->eeprom;
il               1922 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hw_reg_get_matched_power_idx(struct il_priv *il, s8 requested_power,
il               1926 drivers/net/wireless/intel/iwlegacy/3945.c 	struct il3945_eeprom *eeprom = (struct il3945_eeprom *)il->eeprom;
il               1972 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hw_reg_init_channel_groups(struct il_priv *il)
il               1976 drivers/net/wireless/intel/iwlegacy/3945.c 	struct il3945_eeprom *eeprom = (struct il3945_eeprom *)il->eeprom;
il               2003 drivers/net/wireless/intel/iwlegacy/3945.c 		clip_pwrs = (s8 *) il->_3945.clip_groups[i].clip_powers;
il               2054 drivers/net/wireless/intel/iwlegacy/3945.c il3945_txpower_set_from_eeprom(struct il_priv *il)
il               2058 drivers/net/wireless/intel/iwlegacy/3945.c 	struct il3945_eeprom *eeprom = (struct il3945_eeprom *)il->eeprom;
il               2071 drivers/net/wireless/intel/iwlegacy/3945.c 	temperature = il3945_hw_reg_txpower_get_temperature(il);
il               2072 drivers/net/wireless/intel/iwlegacy/3945.c 	il->last_temperature = temperature;
il               2074 drivers/net/wireless/intel/iwlegacy/3945.c 	il3945_hw_reg_init_channel_groups(il);
il               2077 drivers/net/wireless/intel/iwlegacy/3945.c 	for (i = 0, ch_info = il->channel_info; i < il->channel_count;
il               2084 drivers/net/wireless/intel/iwlegacy/3945.c 		ch_info->group_idx = il3945_hw_reg_get_ch_grp_idx(il, ch_info);
il               2088 drivers/net/wireless/intel/iwlegacy/3945.c 		    il->_3945.clip_groups[ch_info->group_idx].clip_powers;
il               2115 drivers/net/wireless/intel/iwlegacy/3945.c 			rc = il3945_hw_reg_get_matched_power_idx(il, pwr,
il               2171 drivers/net/wireless/intel/iwlegacy/3945.c 			il3945_hw_reg_set_scan_power(il, scan_tbl_idx,
il               2181 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hw_rxq_stop(struct il_priv *il)
il               2185 drivers/net/wireless/intel/iwlegacy/3945.c 	_il_wr(il, FH39_RCSR_CONFIG(0), 0);
il               2186 drivers/net/wireless/intel/iwlegacy/3945.c 	ret = _il_poll_bit(il, FH39_RSSR_STATUS,
il               2197 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hw_tx_queue_init(struct il_priv *il, struct il_tx_queue *txq)
il               2201 drivers/net/wireless/intel/iwlegacy/3945.c 	struct il3945_shared *shared_data = il->_3945.shared_virt;
il               2205 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr(il, FH39_CBCC_CTRL(txq_id), 0);
il               2206 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr(il, FH39_CBCC_BASE(txq_id), 0);
il               2208 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr(il, FH39_TCSR_CONFIG(txq_id),
il               2216 drivers/net/wireless/intel/iwlegacy/3945.c 	_il_rd(il, FH39_TSSR_CBB_BASE);
il               2256 drivers/net/wireless/intel/iwlegacy/3945.c il3945_add_bssid_station(struct il_priv *il, const u8 * addr, u8 * sta_id_r)
il               2265 drivers/net/wireless/intel/iwlegacy/3945.c 	ret = il_add_station_common(il, addr, 0, NULL, &sta_id);
il               2274 drivers/net/wireless/intel/iwlegacy/3945.c 	spin_lock_irqsave(&il->sta_lock, flags);
il               2275 drivers/net/wireless/intel/iwlegacy/3945.c 	il->stations[sta_id].used |= IL_STA_LOCAL;
il               2276 drivers/net/wireless/intel/iwlegacy/3945.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               2282 drivers/net/wireless/intel/iwlegacy/3945.c il3945_manage_ibss_station(struct il_priv *il, struct ieee80211_vif *vif,
il               2290 drivers/net/wireless/intel/iwlegacy/3945.c 		    il3945_add_bssid_station(il, vif->bss_conf.bssid,
il               2295 drivers/net/wireless/intel/iwlegacy/3945.c 		il3945_sync_sta(il, vif_priv->ibss_bssid_sta_id,
il               2296 drivers/net/wireless/intel/iwlegacy/3945.c 				(il->band ==
il               2299 drivers/net/wireless/intel/iwlegacy/3945.c 		il3945_rate_scale_init(il->hw, vif_priv->ibss_bssid_sta_id);
il               2304 drivers/net/wireless/intel/iwlegacy/3945.c 	return il_remove_station(il, vif_priv->ibss_bssid_sta_id,
il               2312 drivers/net/wireless/intel/iwlegacy/3945.c il3945_init_hw_rate_table(struct il_priv *il)
il               2324 drivers/net/wireless/intel/iwlegacy/3945.c 		table[idx].try_cnt = il->retry_rate;
il               2329 drivers/net/wireless/intel/iwlegacy/3945.c 	switch (il->band) {
il               2351 drivers/net/wireless/intel/iwlegacy/3945.c 		if (!(il->_3945.sta_supp_rates & IL_OFDM_RATES_MASK) &&
il               2352 drivers/net/wireless/intel/iwlegacy/3945.c 		    il_is_associated(il)) {
il               2372 drivers/net/wireless/intel/iwlegacy/3945.c 	rc = il_send_cmd_pdu(il, C_RATE_SCALE, sizeof(rate_cmd), &rate_cmd);
il               2378 drivers/net/wireless/intel/iwlegacy/3945.c 	return il_send_cmd_pdu(il, C_RATE_SCALE, sizeof(rate_cmd), &rate_cmd);
il               2383 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hw_set_hw_params(struct il_priv *il)
il               2385 drivers/net/wireless/intel/iwlegacy/3945.c 	memset((void *)&il->hw_params, 0, sizeof(struct il_hw_params));
il               2387 drivers/net/wireless/intel/iwlegacy/3945.c 	il->_3945.shared_virt =
il               2388 drivers/net/wireless/intel/iwlegacy/3945.c 	    dma_alloc_coherent(&il->pci_dev->dev, sizeof(struct il3945_shared),
il               2389 drivers/net/wireless/intel/iwlegacy/3945.c 			       &il->_3945.shared_phys, GFP_KERNEL);
il               2390 drivers/net/wireless/intel/iwlegacy/3945.c 	if (!il->_3945.shared_virt)
il               2393 drivers/net/wireless/intel/iwlegacy/3945.c 	il->hw_params.bcast_id = IL3945_BROADCAST_ID;
il               2396 drivers/net/wireless/intel/iwlegacy/3945.c 	il->hw_params.max_txq_num = il->cfg->num_of_queues;
il               2398 drivers/net/wireless/intel/iwlegacy/3945.c 	il->hw_params.tfd_size = sizeof(struct il3945_tfd);
il               2399 drivers/net/wireless/intel/iwlegacy/3945.c 	il->hw_params.rx_page_order = get_order(IL_RX_BUF_SIZE_3K);
il               2400 drivers/net/wireless/intel/iwlegacy/3945.c 	il->hw_params.max_rxq_size = RX_QUEUE_SIZE;
il               2401 drivers/net/wireless/intel/iwlegacy/3945.c 	il->hw_params.max_rxq_log = RX_QUEUE_SIZE_LOG;
il               2402 drivers/net/wireless/intel/iwlegacy/3945.c 	il->hw_params.max_stations = IL3945_STATION_COUNT;
il               2404 drivers/net/wireless/intel/iwlegacy/3945.c 	il->sta_key_max_num = STA_KEY_MAX_NUM;
il               2406 drivers/net/wireless/intel/iwlegacy/3945.c 	il->hw_params.rx_wrt_ptr_reg = FH39_RSCSR_CHNL0_WPTR;
il               2407 drivers/net/wireless/intel/iwlegacy/3945.c 	il->hw_params.max_beacon_itrvl = IL39_MAX_UCODE_BEACON_INTERVAL;
il               2408 drivers/net/wireless/intel/iwlegacy/3945.c 	il->hw_params.beacon_time_tsf_bits = IL3945_EXT_BEACON_TIME_POS;
il               2414 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hw_get_beacon_cmd(struct il_priv *il, struct il3945_frame *frame,
il               2423 drivers/net/wireless/intel/iwlegacy/3945.c 	tx_beacon_cmd->tx.sta_id = il->hw_params.bcast_id;
il               2427 drivers/net/wireless/intel/iwlegacy/3945.c 	    il3945_fill_beacon_frame(il, tx_beacon_cmd->frame,
il               2447 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hw_handler_setup(struct il_priv *il)
il               2449 drivers/net/wireless/intel/iwlegacy/3945.c 	il->handlers[C_TX] = il3945_hdl_tx;
il               2450 drivers/net/wireless/intel/iwlegacy/3945.c 	il->handlers[N_3945_RX] = il3945_hdl_rx;
il               2454 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hw_setup_deferred_work(struct il_priv *il)
il               2456 drivers/net/wireless/intel/iwlegacy/3945.c 	INIT_DELAYED_WORK(&il->_3945.thermal_periodic,
il               2461 drivers/net/wireless/intel/iwlegacy/3945.c il3945_hw_cancel_deferred_work(struct il_priv *il)
il               2463 drivers/net/wireless/intel/iwlegacy/3945.c 	cancel_delayed_work(&il->_3945.thermal_periodic);
il               2468 drivers/net/wireless/intel/iwlegacy/3945.c il3945_verify_bsm(struct il_priv *il)
il               2470 drivers/net/wireless/intel/iwlegacy/3945.c 	__le32 *image = il->ucode_boot.v_addr;
il               2471 drivers/net/wireless/intel/iwlegacy/3945.c 	u32 len = il->ucode_boot.len;
il               2478 drivers/net/wireless/intel/iwlegacy/3945.c 	val = il_rd_prph(il, BSM_WR_DWCOUNT_REG);
il               2481 drivers/net/wireless/intel/iwlegacy/3945.c 		val = il_rd_prph(il, reg);
il               2511 drivers/net/wireless/intel/iwlegacy/3945.c il3945_eeprom_acquire_semaphore(struct il_priv *il)
il               2513 drivers/net/wireless/intel/iwlegacy/3945.c 	_il_clear_bit(il, CSR_EEPROM_GP, CSR_EEPROM_GP_IF_OWNER_MSK);
il               2518 drivers/net/wireless/intel/iwlegacy/3945.c il3945_eeprom_release_semaphore(struct il_priv *il)
il               2556 drivers/net/wireless/intel/iwlegacy/3945.c il3945_load_bsm(struct il_priv *il)
il               2558 drivers/net/wireless/intel/iwlegacy/3945.c 	__le32 *image = il->ucode_boot.v_addr;
il               2559 drivers/net/wireless/intel/iwlegacy/3945.c 	u32 len = il->ucode_boot.len;
il               2580 drivers/net/wireless/intel/iwlegacy/3945.c 	pinst = il->ucode_init.p_addr;
il               2581 drivers/net/wireless/intel/iwlegacy/3945.c 	pdata = il->ucode_init_data.p_addr;
il               2582 drivers/net/wireless/intel/iwlegacy/3945.c 	inst_len = il->ucode_init.len;
il               2583 drivers/net/wireless/intel/iwlegacy/3945.c 	data_len = il->ucode_init_data.len;
il               2585 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr_prph(il, BSM_DRAM_INST_PTR_REG, pinst);
il               2586 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr_prph(il, BSM_DRAM_DATA_PTR_REG, pdata);
il               2587 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr_prph(il, BSM_DRAM_INST_BYTECOUNT_REG, inst_len);
il               2588 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr_prph(il, BSM_DRAM_DATA_BYTECOUNT_REG, data_len);
il               2594 drivers/net/wireless/intel/iwlegacy/3945.c 		_il_wr_prph(il, reg_offset, le32_to_cpu(*image));
il               2596 drivers/net/wireless/intel/iwlegacy/3945.c 	rc = il3945_verify_bsm(il);
il               2601 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr_prph(il, BSM_WR_MEM_SRC_REG, 0x0);
il               2602 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr_prph(il, BSM_WR_MEM_DST_REG, IL39_RTC_INST_LOWER_BOUND);
il               2603 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr_prph(il, BSM_WR_DWCOUNT_REG, len / sizeof(u32));
il               2607 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr_prph(il, BSM_WR_CTRL_REG, BSM_WR_CTRL_REG_BIT_START);
il               2611 drivers/net/wireless/intel/iwlegacy/3945.c 		done = il_rd_prph(il, BSM_WR_CTRL_REG);
il               2625 drivers/net/wireless/intel/iwlegacy/3945.c 	il_wr_prph(il, BSM_WR_CTRL_REG, BSM_WR_CTRL_REG_BIT_START_EN);
il                 63 drivers/net/wireless/intel/iwlegacy/3945.h 	struct il_priv *il;
il                176 drivers/net/wireless/intel/iwlegacy/3945.h void il3945_rx_queue_reset(struct il_priv *il, struct il_rx_queue *rxq);
il                177 drivers/net/wireless/intel/iwlegacy/3945.h unsigned int il3945_fill_beacon_frame(struct il_priv *il,
il                179 drivers/net/wireless/intel/iwlegacy/3945.h int il3945_dump_nic_event_log(struct il_priv *il, bool full_log, char **buf,
il                181 drivers/net/wireless/intel/iwlegacy/3945.h void il3945_dump_nic_error_log(struct il_priv *il);
il                199 drivers/net/wireless/intel/iwlegacy/3945.h void il3945_hw_handler_setup(struct il_priv *il);
il                200 drivers/net/wireless/intel/iwlegacy/3945.h void il3945_hw_setup_deferred_work(struct il_priv *il);
il                201 drivers/net/wireless/intel/iwlegacy/3945.h void il3945_hw_cancel_deferred_work(struct il_priv *il);
il                202 drivers/net/wireless/intel/iwlegacy/3945.h int il3945_hw_rxq_stop(struct il_priv *il);
il                203 drivers/net/wireless/intel/iwlegacy/3945.h int il3945_hw_set_hw_params(struct il_priv *il);
il                204 drivers/net/wireless/intel/iwlegacy/3945.h int il3945_hw_nic_init(struct il_priv *il);
il                205 drivers/net/wireless/intel/iwlegacy/3945.h int il3945_hw_nic_stop_master(struct il_priv *il);
il                206 drivers/net/wireless/intel/iwlegacy/3945.h void il3945_hw_txq_ctx_free(struct il_priv *il);
il                207 drivers/net/wireless/intel/iwlegacy/3945.h void il3945_hw_txq_ctx_stop(struct il_priv *il);
il                208 drivers/net/wireless/intel/iwlegacy/3945.h int il3945_hw_nic_reset(struct il_priv *il);
il                209 drivers/net/wireless/intel/iwlegacy/3945.h int il3945_hw_txq_attach_buf_to_tfd(struct il_priv *il, struct il_tx_queue *txq,
il                211 drivers/net/wireless/intel/iwlegacy/3945.h void il3945_hw_txq_free_tfd(struct il_priv *il, struct il_tx_queue *txq);
il                212 drivers/net/wireless/intel/iwlegacy/3945.h int il3945_hw_get_temperature(struct il_priv *il);
il                213 drivers/net/wireless/intel/iwlegacy/3945.h int il3945_hw_tx_queue_init(struct il_priv *il, struct il_tx_queue *txq);
il                214 drivers/net/wireless/intel/iwlegacy/3945.h unsigned int il3945_hw_get_beacon_cmd(struct il_priv *il,
il                216 drivers/net/wireless/intel/iwlegacy/3945.h void il3945_hw_build_tx_cmd_rate(struct il_priv *il, struct il_device_cmd *cmd,
il                219 drivers/net/wireless/intel/iwlegacy/3945.h int il3945_hw_reg_send_txpower(struct il_priv *il);
il                220 drivers/net/wireless/intel/iwlegacy/3945.h int il3945_hw_reg_set_txpower(struct il_priv *il, s8 power);
il                221 drivers/net/wireless/intel/iwlegacy/3945.h void il3945_hdl_stats(struct il_priv *il, struct il_rx_buf *rxb);
il                222 drivers/net/wireless/intel/iwlegacy/3945.h void il3945_hdl_c_stats(struct il_priv *il, struct il_rx_buf *rxb);
il                223 drivers/net/wireless/intel/iwlegacy/3945.h void il3945_disable_events(struct il_priv *il);
il                224 drivers/net/wireless/intel/iwlegacy/3945.h int il4965_get_temperature(const struct il_priv *il);
il                225 drivers/net/wireless/intel/iwlegacy/3945.h void il3945_post_associate(struct il_priv *il);
il                226 drivers/net/wireless/intel/iwlegacy/3945.h void il3945_config_ap(struct il_priv *il);
il                228 drivers/net/wireless/intel/iwlegacy/3945.h int il3945_commit_rxon(struct il_priv *il);
il                238 drivers/net/wireless/intel/iwlegacy/3945.h u8 il3945_hw_find_station(struct il_priv *il, const u8 *bssid);
il                240 drivers/net/wireless/intel/iwlegacy/3945.h __le32 il3945_get_antenna_flags(const struct il_priv *il);
il                241 drivers/net/wireless/intel/iwlegacy/3945.h int il3945_init_hw_rate_table(struct il_priv *il);
il                242 drivers/net/wireless/intel/iwlegacy/3945.h void il3945_reg_txpower_periodic(struct il_priv *il);
il                243 drivers/net/wireless/intel/iwlegacy/3945.h int il3945_txpower_set_from_eeprom(struct il_priv *il);
il                245 drivers/net/wireless/intel/iwlegacy/3945.h int il3945_rs_next_rate(struct il_priv *il, int rate);
il                248 drivers/net/wireless/intel/iwlegacy/3945.h int il3945_request_scan(struct il_priv *il, struct ieee80211_vif *vif);
il                249 drivers/net/wireless/intel/iwlegacy/3945.h void il3945_post_scan(struct il_priv *il);
il                 95 drivers/net/wireless/intel/iwlegacy/4965-calib.c il4965_sens_energy_cck(struct il_priv *il, u32 norm_fa, u32 rx_enable_time,
il                120 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	const struct il_sensitivity_ranges *ranges = il->hw_params.sens;
il                122 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	data = &(il->sensitivity_data);
il                292 drivers/net/wireless/intel/iwlegacy/4965-calib.c il4965_sens_auto_corr_ofdm(struct il_priv *il, u32 norm_fa, u32 rx_enable_time)
il                299 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	const struct il_sensitivity_ranges *ranges = il->hw_params.sens;
il                301 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	data = &(il->sensitivity_data);
il                355 drivers/net/wireless/intel/iwlegacy/4965-calib.c il4965_prepare_legacy_sensitivity_tbl(struct il_priv *il,
il                393 drivers/net/wireless/intel/iwlegacy/4965-calib.c il4965_sensitivity_write(struct il_priv *il)
il                404 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	data = &(il->sensitivity_data);
il                408 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	il4965_prepare_legacy_sensitivity_tbl(il, data, &cmd.table[0]);
il                415 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	    (&cmd.table[0], &(il->sensitivity_tbl[0]),
il                422 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	memcpy(&(il->sensitivity_tbl[0]), &(cmd.table[0]),
il                425 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	return il_send_cmd(il, &cmd_out);
il                429 drivers/net/wireless/intel/iwlegacy/4965-calib.c il4965_init_sensitivity(struct il_priv *il)
il                434 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	const struct il_sensitivity_ranges *ranges = il->hw_params.sens;
il                436 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	if (il->disable_sens_cal)
il                442 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	data = &(il->sensitivity_data);
il                479 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	ret |= il4965_sensitivity_write(il);
il                484 drivers/net/wireless/intel/iwlegacy/4965-calib.c il4965_sensitivity_calibration(struct il_priv *il, void *resp)
il                499 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	if (il->disable_sens_cal)
il                502 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	data = &(il->sensitivity_data);
il                504 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	if (!il_is_any_associated(il)) {
il                509 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	spin_lock_irqsave(&il->lock, flags);
il                517 drivers/net/wireless/intel/iwlegacy/4965-calib.c 		spin_unlock_irqrestore(&il->lock, flags);
il                538 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	spin_unlock_irqrestore(&il->lock, flags);
il                585 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	il4965_sens_auto_corr_ofdm(il, norm_fa_ofdm, rx_enable_time);
il                586 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	il4965_sens_energy_cck(il, norm_fa_cck, rx_enable_time, &statis);
il                588 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	il4965_sensitivity_write(il);
il                606 drivers/net/wireless/intel/iwlegacy/4965-calib.c il4965_find_disconn_antenna(struct il_priv *il, u32 * average_sig,
il                618 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	    il->cfg->chain_noise_num_beacons;
il                621 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	    il->cfg->chain_noise_num_beacons;
il                624 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	    il->cfg->chain_noise_num_beacons;
il                674 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	active_chains &= il->hw_params.valid_rx_ant;
il                681 drivers/net/wireless/intel/iwlegacy/4965-calib.c 		if (!(il->hw_params.valid_tx_ant & ant_msk))
il                688 drivers/net/wireless/intel/iwlegacy/4965-calib.c 		if (num_tx_chains == il->hw_params.tx_chains_num &&
il                695 drivers/net/wireless/intel/iwlegacy/4965-calib.c 			    il4965_find_first_chain(il->cfg->valid_tx_ant);
il                704 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	if (active_chains != il->hw_params.valid_rx_ant &&
il                705 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	    active_chains != il->chain_noise_data.active_chains)
il                708 drivers/net/wireless/intel/iwlegacy/4965-calib.c 			il->hw_params.valid_rx_ant);
il                716 drivers/net/wireless/intel/iwlegacy/4965-calib.c il4965_gain_computation(struct il_priv *il, u32 * average_noise,
il                721 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	struct il_chain_noise_data *data = &il->chain_noise_data;
il                756 drivers/net/wireless/intel/iwlegacy/4965-calib.c 		ret = il_send_cmd_pdu(il, C_PHY_CALIBRATION, sizeof(cmd), &cmd);
il                775 drivers/net/wireless/intel/iwlegacy/4965-calib.c il4965_chain_noise_calibration(struct il_priv *il, void *stat_resp)
il                797 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	if (il->disable_chain_noise_cal)
il                800 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	data = &(il->chain_noise_data);
il                812 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	spin_lock_irqsave(&il->lock, flags);
il                818 drivers/net/wireless/intel/iwlegacy/4965-calib.c 		spin_unlock_irqrestore(&il->lock, flags);
il                822 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	rxon_band24 = !!(il->staging.flags & RXON_FLG_BAND_24G_MSK);
il                823 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	rxon_chnum = le16_to_cpu(il->staging.channel);
il                836 drivers/net/wireless/intel/iwlegacy/4965-calib.c 		spin_unlock_irqrestore(&il->lock, flags);
il                855 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	spin_unlock_irqrestore(&il->lock, flags);
il                877 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	if (data->beacon_count != il->cfg->chain_noise_num_beacons)
il                881 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	il4965_find_disconn_antenna(il, average_sig, data);
il                885 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	    data->chain_noise_a / il->cfg->chain_noise_num_beacons;
il                887 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	    data->chain_noise_b / il->cfg->chain_noise_num_beacons;
il                889 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	    data->chain_noise_c / il->cfg->chain_noise_num_beacons;
il                907 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	il4965_gain_computation(il, average_noise, min_average_noise_antenna_i,
il                909 drivers/net/wireless/intel/iwlegacy/4965-calib.c 				il4965_find_first_chain(il->cfg->valid_rx_ant));
il                914 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	if (il->ops->update_chain_flags)
il                915 drivers/net/wireless/intel/iwlegacy/4965-calib.c 		il->ops->update_chain_flags(il);
il                918 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	il_power_update_mode(il, false);
il                922 drivers/net/wireless/intel/iwlegacy/4965-calib.c il4965_reset_run_time_calib(struct il_priv *il)
il                925 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	memset(&(il->sensitivity_data), 0, sizeof(struct il_sensitivity_data));
il                926 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	memset(&(il->chain_noise_data), 0, sizeof(struct il_chain_noise_data));
il                928 drivers/net/wireless/intel/iwlegacy/4965-calib.c 		il->chain_noise_data.delta_gain_code[i] =
il                933 drivers/net/wireless/intel/iwlegacy/4965-calib.c 	il_send_stats_request(il, CMD_ASYNC, true);
il                 19 drivers/net/wireless/intel/iwlegacy/4965-debug.c il4965_stats_flag(struct il_priv *il, char *buf, int bufsz)
il                 24 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	flag = le32_to_cpu(il->_4965.stats.flag);
il                 44 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	struct il_priv *il = file->private_data;
il                 58 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	if (!il_is_alive(il))
il                 72 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	ofdm = &il->_4965.stats.rx.ofdm;
il                 73 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	cck = &il->_4965.stats.rx.cck;
il                 74 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	general = &il->_4965.stats.rx.general;
il                 75 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	ht = &il->_4965.stats.rx.ofdm_ht;
il                 76 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	accum_ofdm = &il->_4965.accum_stats.rx.ofdm;
il                 77 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	accum_cck = &il->_4965.accum_stats.rx.cck;
il                 78 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	accum_general = &il->_4965.accum_stats.rx.general;
il                 79 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	accum_ht = &il->_4965.accum_stats.rx.ofdm_ht;
il                 80 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	delta_ofdm = &il->_4965.delta_stats.rx.ofdm;
il                 81 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	delta_cck = &il->_4965.delta_stats.rx.cck;
il                 82 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	delta_general = &il->_4965.delta_stats.rx.general;
il                 83 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	delta_ht = &il->_4965.delta_stats.rx.ofdm_ht;
il                 84 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	max_ofdm = &il->_4965.max_delta.rx.ofdm;
il                 85 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	max_cck = &il->_4965.max_delta.rx.cck;
il                 86 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	max_general = &il->_4965.max_delta.rx.general;
il                 87 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	max_ht = &il->_4965.max_delta.rx.ofdm_ht;
il                 89 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	pos += il4965_stats_flag(il, buf, bufsz);
il                456 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	struct il_priv *il = file->private_data;
il                463 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	if (!il_is_alive(il))
il                476 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	tx = &il->_4965.stats.tx;
il                477 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	accum_tx = &il->_4965.accum_stats.tx;
il                478 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	delta_tx = &il->_4965.delta_stats.tx;
il                479 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	max_tx = &il->_4965.max_delta.tx;
il                481 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	pos += il4965_stats_flag(il, buf, bufsz);
il                622 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	struct il_priv *il = file->private_data;
il                632 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	if (!il_is_alive(il))
il                645 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	general = &il->_4965.stats.general.common;
il                646 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	dbg = &il->_4965.stats.general.common.dbg;
il                647 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	div = &il->_4965.stats.general.common.div;
il                648 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	accum_general = &il->_4965.accum_stats.general.common;
il                649 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	accum_dbg = &il->_4965.accum_stats.general.common.dbg;
il                650 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	accum_div = &il->_4965.accum_stats.general.common.div;
il                651 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	delta_general = &il->_4965.delta_stats.general.common;
il                652 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	max_general = &il->_4965.max_delta.general.common;
il                653 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	delta_dbg = &il->_4965.delta_stats.general.common.dbg;
il                654 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	max_dbg = &il->_4965.max_delta.general.common.dbg;
il                655 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	delta_div = &il->_4965.delta_stats.general.common.div;
il                656 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	max_div = &il->_4965.max_delta.general.common.div;
il                658 drivers/net/wireless/intel/iwlegacy/4965-debug.c 	pos += il4965_stats_flag(il, buf, bufsz);
il                 66 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_check_abort_status(struct il_priv *il, u8 frame_count, u32 status)
il                 70 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		if (!test_bit(S_EXIT_PENDING, &il->status))
il                 71 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			queue_work(il->workqueue, &il->tx_flush);
il                 84 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_rx_queue_reset(struct il_priv *il, struct il_rx_queue *rxq)
il                 96 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			pci_unmap_page(il->pci_dev, rxq->pool[i].page_dma,
il                 97 drivers/net/wireless/intel/iwlegacy/4965-mac.c 				       PAGE_SIZE << il->hw_params.rx_page_order,
il                 99 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			__il_free_pages(il, rxq->pool[i].page);
il                117 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_rx_init(struct il_priv *il, struct il_rx_queue *rxq)
il                123 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->cfg->mod_params->amsdu_size_8K)
il                129 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_wr(il, FH49_MEM_RCSR_CHNL0_CONFIG_REG, 0);
il                132 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_wr(il, FH49_RSCSR_CHNL0_RBDCB_WPTR_REG, 0);
il                135 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_wr(il, FH49_RSCSR_CHNL0_RBDCB_BASE_REG, (u32) (rxq->bd_dma >> 8));
il                138 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_wr(il, FH49_RSCSR_CHNL0_STTS_WPTR_REG, rxq->rb_stts_dma >> 4);
il                146 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_wr(il, FH49_MEM_RCSR_CHNL0_CONFIG_REG,
il                155 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_write8(il, CSR_INT_COALESCING, IL_HOST_INT_TIMEOUT_DEF);
il                161 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_set_pwr_vmain(struct il_priv *il)
il                173 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_set_bits_mask_prph(il, APMG_PS_CTRL_REG,
il                179 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_hw_nic_init(struct il_priv *il)
il                182 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_rx_queue *rxq = &il->rxq;
il                185 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->lock, flags);
il                186 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_apm_init(il);
il                188 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_write8(il, CSR_INT_COALESCING, IL_HOST_INT_CALIB_TIMEOUT_DEF);
il                189 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->lock, flags);
il                191 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_set_pwr_vmain(il);
il                192 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_nic_config(il);
il                196 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		ret = il_rx_queue_alloc(il);
il                202 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_rx_queue_reset(il, rxq);
il                204 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_rx_replenish(il);
il                206 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_rx_init(il, rxq);
il                208 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->lock, flags);
il                211 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_rx_queue_update_write_ptr(il, rxq);
il                213 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->lock, flags);
il                216 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (!il->txq) {
il                217 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		ret = il4965_txq_ctx_alloc(il);
il                221 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_txq_ctx_reset(il);
il                223 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	set_bit(S_INIT, &il->status);
il                232 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_dma_addr2rbd_ptr(struct il_priv *il, dma_addr_t dma_addr)
il                249 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_rx_queue_restock(struct il_priv *il)
il                251 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_rx_queue *rxq = &il->rxq;
il                269 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		    il4965_dma_addr2rbd_ptr(il, rxb->page_dma);
il                278 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		queue_work(il->workqueue, &il->rx_replenish);
il                286 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_rx_queue_update_write_ptr(il, rxq);
il                299 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_rx_allocate(struct il_priv *il, gfp_t priority)
il                301 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_rx_queue *rxq = &il->rxq;
il                320 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		if (il->hw_params.rx_page_order > 0)
il                324 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		page = alloc_pages(gfp_mask, il->hw_params.rx_page_order);
il                328 drivers/net/wireless/intel/iwlegacy/4965-mac.c 				       il->hw_params.rx_page_order);
il                345 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		    pci_map_page(il->pci_dev, page, 0,
il                346 drivers/net/wireless/intel/iwlegacy/4965-mac.c 				 PAGE_SIZE << il->hw_params.rx_page_order,
il                348 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		if (unlikely(pci_dma_mapping_error(il->pci_dev, page_dma))) {
il                349 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			__free_pages(page, il->hw_params.rx_page_order);
il                357 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			pci_unmap_page(il->pci_dev, page_dma,
il                358 drivers/net/wireless/intel/iwlegacy/4965-mac.c 				       PAGE_SIZE << il->hw_params.rx_page_order,
il                360 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			__free_pages(page, il->hw_params.rx_page_order);
il                374 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->alloc_rxb_page++;
il                381 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_rx_replenish(struct il_priv *il)
il                385 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_rx_allocate(il, GFP_KERNEL);
il                387 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->lock, flags);
il                388 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_rx_queue_restock(il);
il                389 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->lock, flags);
il                393 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_rx_replenish_now(struct il_priv *il)
il                395 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_rx_allocate(il, GFP_ATOMIC);
il                397 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_rx_queue_restock(il);
il                406 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_rx_queue_free(struct il_priv *il, struct il_rx_queue *rxq)
il                411 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			pci_unmap_page(il->pci_dev, rxq->pool[i].page_dma,
il                412 drivers/net/wireless/intel/iwlegacy/4965-mac.c 				       PAGE_SIZE << il->hw_params.rx_page_order,
il                414 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			__il_free_pages(il, rxq->pool[i].page);
il                419 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	dma_free_coherent(&il->pci_dev->dev, 4 * RX_QUEUE_SIZE, rxq->bd,
il                421 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	dma_free_coherent(&il->pci_dev->dev, sizeof(struct il_rb_status),
il                428 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_rxq_stop(struct il_priv *il)
il                432 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	_il_wr(il, FH49_MEM_RCSR_CHNL0_CONFIG_REG, 0);
il                433 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ret = _il_poll_bit(il, FH49_MEM_RSSR_RX_STATUS_REG,
il                466 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_calc_rssi(struct il_priv *il, struct il_rx_phy_res *rx_resp)
il                501 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_translate_rx_status(struct il_priv *il, u32 decrypt_in)
il                563 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_pass_packet_to_mac80211(struct il_priv *il, struct ieee80211_hdr *hdr,
il                571 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (unlikely(!il->is_open)) {
il                576 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (unlikely(test_bit(IL_STOP_REASON_PASSIVE, &il->stop_reason))) {
il                577 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_wake_queues_by_reason(il, IL_STOP_REASON_PASSIVE);
il                582 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (!il->cfg->mod_params->sw_crypto &&
il                583 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    il_set_decrypted_flag(il, hdr, ampdu_status, stats))
il                596 drivers/net/wireless/intel/iwlegacy/4965-mac.c 				len, PAGE_SIZE << il->hw_params.rx_page_order);
il                597 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->alloc_rxb_page--;
il                601 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_update_stats(il, false, fc, len);
il                604 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ieee80211_rx(il->hw, skb);
il                610 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_hdl_rx(struct il_priv *il, struct il_rx_buf *rxb)
il                643 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		if (!il->_4965.last_phy_res_valid) {
il                647 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		phy_res = &il->_4965.last_phy_res;
il                653 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		    il4965_translate_rx_status(il, le32_to_cpu(rx_pkt_status));
il                688 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->ucode_beacon_time = le32_to_cpu(phy_res->beacon_time_stamp);
il                691 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	rx_status.signal = il4965_calc_rssi(il, phy_res);
il                734 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		rx_status.ampdu_reference = il->_4965.ampdu_ref;
il                737 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_pass_packet_to_mac80211(il, header, len, ampdu_status, rxb,
il                744 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_hdl_rx_phy(struct il_priv *il, struct il_rx_buf *rxb)
il                747 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->_4965.last_phy_res_valid = true;
il                748 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->_4965.ampdu_ref++;
il                749 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memcpy(&il->_4965.last_phy_res, pkt->u.raw,
il                754 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_get_channels_for_scan(struct il_priv *il, struct ieee80211_vif *vif,
il                766 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	sband = il_get_hw_mode(il, band);
il                770 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	active_dwell = il_get_active_dwell_time(il, band, n_probes);
il                771 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	passive_dwell = il_get_passive_dwell_time(il, band, vif);
il                776 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	for (i = 0, added = 0; i < il->scan_request->n_channels; i++) {
il                777 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		chan = il->scan_request->channels[i];
il                785 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		ch_info = il_get_channel_info(il, band, channel);
il                833 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_toggle_tx_ant(struct il_priv *il, u8 *ant, u8 valid)
il                848 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_request_scan(struct il_priv *il, struct ieee80211_vif *vif)
il                861 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	u8 rx_ant = il->hw_params.valid_rx_ant;
il                866 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	u8 scan_tx_antennas = il->hw_params.valid_tx_ant;
il                869 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	lockdep_assert_held(&il->mutex);
il                871 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (!il->scan_cmd) {
il                872 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->scan_cmd =
il                875 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		if (!il->scan_cmd) {
il                880 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	scan = il->scan_cmd;
il                886 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il_is_any_associated(il)) {
il                908 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->scan_request->n_ssids) {
il                911 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		for (i = 0; i < il->scan_request->n_ssids; i++) {
il                913 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			if (!il->scan_request->ssids[i].ssid_len)
il                917 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			    il->scan_request->ssids[i].ssid_len;
il                919 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			       il->scan_request->ssids[i].ssid,
il                920 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			       il->scan_request->ssids[i].ssid_len);
il                929 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	scan->tx_cmd.sta_id = il->hw_params.bcast_id;
il                932 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	switch (il->scan_band) {
il                936 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		    le32_to_cpu(il->active.flags & RXON_FLG_CHANNEL_MODE_MSK) >>
il                973 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	band = il->scan_band;
il                975 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->cfg->scan_rx_antennas[band])
il                976 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		rx_ant = il->cfg->scan_rx_antennas[band];
il                978 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_toggle_tx_ant(il, &il->scan_tx_ant[band], scan_tx_antennas);
il                979 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	rate_flags |= BIT(il->scan_tx_ant[band]) << RATE_MCS_ANT_POS;
il                983 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (test_bit(S_POWER_PMI, &il->status)) {
il                986 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		    rx_ant & ((u8) (il->chain_noise_data.active_chains));
il                991 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		       il->chain_noise_data.active_chains);
il                997 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	rx_chain |= il->hw_params.valid_rx_ant << RXON_RX_CHAIN_VALID_POS;
il               1004 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    il_fill_probe_req(il, (struct ieee80211_mgmt *)scan->data,
il               1005 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			      vif->addr, il->scan_request->ie,
il               1006 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			      il->scan_request->ie_len,
il               1014 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    il4965_get_channels_for_scan(il, vif, band, is_active, n_probes,
il               1027 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	set_bit(S_SCAN_HW, &il->status);
il               1029 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ret = il_send_cmd_sync(il, &cmd);
il               1031 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		clear_bit(S_SCAN_HW, &il->status);
il               1037 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_manage_ibss_station(struct il_priv *il, struct ieee80211_vif *vif,
il               1043 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		return il4965_add_bssid_station(il, vif->bss_conf.bssid,
il               1045 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	return il_remove_station(il, vif_priv->ibss_bssid_sta_id,
il               1050 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_free_tfds_in_queue(struct il_priv *il, int sta_id, int tid, int freed)
il               1052 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	lockdep_assert_held(&il->sta_lock);
il               1054 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->stations[sta_id].tid[tid].tfds_in_queue >= freed)
il               1055 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->stations[sta_id].tid[tid].tfds_in_queue -= freed;
il               1058 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		     il->stations[sta_id].tid[tid].tfds_in_queue, freed);
il               1059 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->stations[sta_id].tid[tid].tfds_in_queue = 0;
il               1066 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_is_single_rx_stream(struct il_priv *il)
il               1068 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	return il->current_ht_config.smps == IEEE80211_SMPS_STATIC ||
il               1069 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    il->current_ht_config.single_chain_sufficient;
il               1088 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_get_active_rx_chain_count(struct il_priv *il)
il               1091 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il4965_is_single_rx_stream(il))
il               1102 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_get_idle_rx_chain_count(struct il_priv *il, int active_cnt)
il               1105 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	switch (il->current_ht_config.smps) {
il               1112 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		WARN(1, "invalid SMPS mode %d", il->current_ht_config.smps);
il               1136 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_set_rxon_chain(struct il_priv *il)
il               1138 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	bool is_single = il4965_is_single_rx_stream(il);
il               1139 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	bool is_cam = !test_bit(S_POWER_PMI, &il->status);
il               1148 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->chain_noise_data.active_chains)
il               1149 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		active_chains = il->chain_noise_data.active_chains;
il               1151 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		active_chains = il->hw_params.valid_rx_ant;
il               1156 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	active_rx_cnt = il4965_get_active_rx_chain_count(il);
il               1157 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	idle_rx_cnt = il4965_get_idle_rx_chain_count(il, active_rx_cnt);
il               1172 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->staging.rx_chain = cpu_to_le16(rx_chain);
il               1175 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->staging.rx_chain |= RXON_RX_CHAIN_MIMO_FORCE_MSK;
il               1177 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->staging.rx_chain &= ~RXON_RX_CHAIN_MIMO_FORCE_MSK;
il               1179 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	D_ASSOC("rx_chain=0x%X active=%d idle=%d\n", il->staging.rx_chain,
il               1205 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_dump_fh(struct il_priv *il, char **buf, bool display)
il               1236 drivers/net/wireless/intel/iwlegacy/4965-mac.c 				      il_rd(il, fh_tbl[i]));
il               1244 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		       il_rd(il, fh_tbl[i]));
il               1250 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_hdl_missed_beacon(struct il_priv *il, struct il_rx_buf *rxb)
il               1257 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    il->missed_beacon_threshold) {
il               1263 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		if (!test_bit(S_SCANNING, &il->status))
il               1264 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			il4965_init_sensitivity(il);
il               1272 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_rx_calc_noise(struct il_priv *il)
il               1280 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	rx_info = &(il->_4965.stats.rx.general);
il               1318 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_accumulative_stats(struct il_priv *il, __le32 * stats)
il               1326 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	prev_stats = (__le32 *) &il->_4965.stats;
il               1327 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	accum_stats = (u32 *) &il->_4965.accum_stats;
il               1329 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	general = &il->_4965.stats.general.common;
il               1330 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	accum_general = &il->_4965.accum_stats.general.common;
il               1331 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	delta = (u32 *) &il->_4965.delta_stats;
il               1332 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	max_delta = (u32 *) &il->_4965.max_delta;
il               1354 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_hdl_stats(struct il_priv *il, struct il_rx_buf *rxb)
il               1365 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    ((il->_4965.stats.general.common.temperature !=
il               1367 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	     ((il->_4965.stats.flag & STATS_REPLY_FLG_HT40_MODE_MSK) !=
il               1370 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_accumulative_stats(il, (__le32 *) &pkt->u.stats);
il               1374 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memcpy(&il->_4965.stats, &pkt->u.stats, sizeof(il->_4965.stats));
il               1376 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	set_bit(S_STATS, &il->status);
il               1382 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mod_timer(&il->stats_periodic,
il               1385 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (unlikely(!test_bit(S_SCANNING, &il->status)) &&
il               1387 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_rx_calc_noise(il);
il               1388 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		queue_work(il->workqueue, &il->run_time_calib_work);
il               1392 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_temperature_calib(il);
il               1396 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_hdl_c_stats(struct il_priv *il, struct il_rx_buf *rxb)
il               1402 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		memset(&il->_4965.accum_stats, 0,
il               1404 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		memset(&il->_4965.delta_stats, 0,
il               1406 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		memset(&il->_4965.max_delta, 0, sizeof(struct il_notif_stats));
il               1410 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_hdl_stats(il, rxb);
il               1482 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_tx_cmd_build_basic(struct il_priv *il, struct sk_buff *skb,
il               1518 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_tx_cmd_protection(il, info, fc, &tx_flags);
il               1536 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_tx_cmd_build_rate(struct il_priv *il,
il               1574 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		rate_idx = rate_lowest_index(&il->bands[info->band], sta);
il               1588 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_toggle_tx_ant(il, &il->mgmt_tx_ant, il->hw_params.valid_tx_ant);
il               1589 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	rate_flags |= BIT(il->mgmt_tx_ant) << RATE_MCS_ANT_POS;
il               1596 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_tx_cmd_build_hwcrypto(struct il_priv *il, struct ieee80211_tx_info *info,
il               1641 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_tx_skb(struct il_priv *il,
il               1668 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->lock, flags);
il               1669 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il_is_rfkill(il)) {
il               1689 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		sta_id = il->hw_params.bcast_id;
il               1692 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		sta_id = il_sta_id_or_broadcast(il, sta);
il               1716 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_sta_modify_sleep_tx_count(il, sta_id, 1);
il               1726 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock(&il->sta_lock);
il               1732 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			spin_unlock(&il->sta_lock);
il               1735 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		seq_number = il->stations[sta_id].tid[tid].seq_number;
il               1743 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		    il->stations[sta_id].tid[tid].agg.state == IL_AGG_ON) {
il               1744 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			txq_id = il->stations[sta_id].tid[tid].agg.txq_id;
il               1749 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	txq = &il->txq[txq_id];
il               1753 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		spin_unlock(&il->sta_lock);
il               1758 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->stations[sta_id].tid[tid].tfds_in_queue++;
il               1760 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			il->stations[sta_id].tid[tid].seq_number = seq_number;
il               1763 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock(&il->sta_lock);
il               1792 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_tx_cmd_build_hwcrypto(il, info, tx_cmd, skb, sta_id);
il               1795 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_tx_cmd_build_basic(il, skb, tx_cmd, info, hdr, sta_id);
il               1797 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_tx_cmd_build_rate(il, tx_cmd, info, sta, fc);
il               1818 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    pci_map_single(il->pci_dev, &out_cmd->hdr, firstlen,
il               1820 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (unlikely(pci_dma_mapping_error(il->pci_dev, txcmd_phys)))
il               1828 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		    pci_map_single(il->pci_dev, skb->data + hdr_len, secondlen,
il               1830 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		if (unlikely(pci_dma_mapping_error(il->pci_dev, phys_addr)))
il               1836 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->ops->txq_attach_buf_to_tfd(il, txq, txcmd_phys, firstlen, 1, 0);
il               1840 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->ops->txq_attach_buf_to_tfd(il, txq, phys_addr, secondlen,
il               1855 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	pci_dma_sync_single_for_cpu(il->pci_dev, txcmd_phys, firstlen,
il               1860 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_update_stats(il, true, fc, skb->len);
il               1864 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_print_hex_dump(il, IL_DL_TX, (u8 *) tx_cmd, sizeof(*tx_cmd));
il               1865 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_print_hex_dump(il, IL_DL_TX, (u8 *) tx_cmd->hdr, hdr_len);
il               1869 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->ops->txq_update_byte_cnt_tbl(il, txq, le16_to_cpu(tx_cmd->len));
il               1871 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	pci_dma_sync_single_for_device(il->pci_dev, txcmd_phys, firstlen,
il               1876 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_txq_update_write_ptr(il, txq);
il               1877 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->lock, flags);
il               1896 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il_queue_space(q) < q->high_mark && il->mac80211_registered) {
il               1898 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			spin_lock_irqsave(&il->lock, flags);
il               1900 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			il_txq_update_write_ptr(il, txq);
il               1901 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			spin_unlock_irqrestore(&il->lock, flags);
il               1903 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			il_stop_queue(il, txq);
il               1910 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->lock, flags);
il               1915 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_alloc_dma_ptr(struct il_priv *il, struct il_dma_ptr *ptr, size_t size)
il               1917 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ptr->addr = dma_alloc_coherent(&il->pci_dev->dev, size, &ptr->dma,
il               1926 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_free_dma_ptr(struct il_priv *il, struct il_dma_ptr *ptr)
il               1931 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	dma_free_coherent(&il->pci_dev->dev, ptr->size, ptr->addr, ptr->dma);
il               1941 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_hw_txq_ctx_free(struct il_priv *il)
il               1946 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->txq) {
il               1947 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		for (txq_id = 0; txq_id < il->hw_params.max_txq_num; txq_id++)
il               1948 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			if (txq_id == il->cmd_queue)
il               1949 drivers/net/wireless/intel/iwlegacy/4965-mac.c 				il_cmd_queue_free(il);
il               1951 drivers/net/wireless/intel/iwlegacy/4965-mac.c 				il_tx_queue_free(il, txq_id);
il               1953 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_free_dma_ptr(il, &il->kw);
il               1955 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_free_dma_ptr(il, &il->scd_bc_tbls);
il               1958 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_free_txq_mem(il);
il               1969 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_txq_ctx_alloc(struct il_priv *il)
il               1975 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_hw_txq_ctx_free(il);
il               1978 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    il4965_alloc_dma_ptr(il, &il->scd_bc_tbls,
il               1979 drivers/net/wireless/intel/iwlegacy/4965-mac.c 				 il->hw_params.scd_bc_tbls_size);
il               1985 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ret = il4965_alloc_dma_ptr(il, &il->kw, IL_KW_SIZE);
il               1992 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ret = il_alloc_txq_mem(il);
il               1996 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->lock, flags);
il               1999 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_txq_set_sched(il, 0);
il               2002 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_wr(il, FH49_KW_MEM_ADDR_REG, il->kw.dma >> 4);
il               2004 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->lock, flags);
il               2007 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	for (txq_id = 0; txq_id < il->hw_params.max_txq_num; txq_id++) {
il               2008 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		ret = il_tx_queue_init(il, txq_id);
il               2018 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_hw_txq_ctx_free(il);
il               2019 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_free_dma_ptr(il, &il->kw);
il               2021 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_free_dma_ptr(il, &il->scd_bc_tbls);
il               2027 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_txq_ctx_reset(struct il_priv *il)
il               2032 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->lock, flags);
il               2035 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_txq_set_sched(il, 0);
il               2037 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_wr(il, FH49_KW_MEM_ADDR_REG, il->kw.dma >> 4);
il               2039 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->lock, flags);
il               2042 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	for (txq_id = 0; txq_id < il->hw_params.max_txq_num; txq_id++)
il               2043 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_tx_queue_reset(il, txq_id);
il               2047 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_txq_ctx_unmap(struct il_priv *il)
il               2051 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (!il->txq)
il               2055 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	for (txq_id = 0; txq_id < il->hw_params.max_txq_num; txq_id++)
il               2056 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		if (txq_id == il->cmd_queue)
il               2057 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			il_cmd_queue_unmap(il);
il               2059 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			il_tx_queue_unmap(il, txq_id);
il               2066 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_txq_ctx_stop(struct il_priv *il)
il               2070 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	_il_wr_prph(il, IL49_SCD_TXFACT, 0);
il               2073 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	for (ch = 0; ch < il->hw_params.dma_chnl_num; ch++) {
il               2074 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		_il_wr(il, FH49_TCSR_CHNL_TX_CONFIG_REG(ch), 0x0);
il               2076 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		    _il_poll_bit(il, FH49_TSSR_TX_STATUS_REG,
il               2082 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			       ch, _il_rd(il, FH49_TSSR_TX_STATUS_REG));
il               2093 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_txq_ctx_activate_free(struct il_priv *il)
il               2097 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	for (txq_id = 0; txq_id < il->hw_params.max_txq_num; txq_id++)
il               2098 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		if (!test_and_set_bit(txq_id, &il->txq_ctx_active_msk))
il               2107 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_tx_queue_stop_scheduler(struct il_priv *il, u16 txq_id)
il               2111 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_wr_prph(il, IL49_SCD_QUEUE_STATUS_BITS(txq_id),
il               2120 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_tx_queue_set_q2ratid(struct il_priv *il, u16 ra_tid, u16 txq_id)
il               2129 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    il->scd_base_addr + IL49_SCD_TRANSLATE_TBL_OFFSET_QUEUE(txq_id);
il               2131 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	tbl_dw = il_read_targ_mem(il, tbl_dw_addr);
il               2138 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_write_targ_mem(il, tbl_dw_addr, tbl_dw);
il               2150 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_txq_agg_enable(struct il_priv *il, int txq_id, int tx_fifo, int sta_id,
il               2159 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	     il->cfg->num_of_ampdu_queues <= txq_id)) {
il               2163 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			il->cfg->num_of_ampdu_queues - 1);
il               2170 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ret = il4965_sta_tx_modify_enable_tid(il, sta_id, tid);
il               2174 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->lock, flags);
il               2177 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_tx_queue_stop_scheduler(il, txq_id);
il               2180 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_tx_queue_set_q2ratid(il, ra_tid, txq_id);
il               2183 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_set_bits_prph(il, IL49_SCD_QUEUECHAIN_SEL, (1 << txq_id));
il               2187 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->txq[txq_id].q.read_ptr = (ssn_idx & 0xff);
il               2188 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->txq[txq_id].q.write_ptr = (ssn_idx & 0xff);
il               2189 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_set_wr_ptrs(il, txq_id, ssn_idx);
il               2192 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_write_targ_mem(il,
il               2193 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			  il->scd_base_addr +
il               2198 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_write_targ_mem(il,
il               2199 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			  il->scd_base_addr +
il               2205 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_set_bits_prph(il, IL49_SCD_INTERRUPT_MASK, (1 << txq_id));
il               2208 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_tx_queue_set_status(il, &il->txq[txq_id], tx_fifo, 1);
il               2210 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->lock, flags);
il               2216 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_tx_agg_start(struct il_priv *il, struct ieee80211_vif *vif,
il               2241 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->stations[sta_id].tid[tid].agg.state != IL_AGG_OFF) {
il               2246 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	txq_id = il4965_txq_ctx_activate_free(il);
il               2252 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->sta_lock, flags);
il               2253 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	tid_data = &il->stations[sta_id].tid[tid];
il               2256 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_set_swq_id(&il->txq[txq_id], il4965_get_ac_from_tid(tid), txq_id);
il               2257 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               2259 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ret = il4965_txq_agg_enable(il, txq_id, tx_fifo, sta_id, tid, *ssn);
il               2263 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->sta_lock, flags);
il               2264 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	tid_data = &il->stations[sta_id].tid[tid];
il               2274 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               2283 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_txq_agg_disable(struct il_priv *il, u16 txq_id, u16 ssn_idx, u8 tx_fifo)
il               2287 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	     il->cfg->num_of_ampdu_queues <= txq_id)) {
il               2291 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			il->cfg->num_of_ampdu_queues - 1);
il               2295 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_tx_queue_stop_scheduler(il, txq_id);
il               2297 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_clear_bits_prph(il, IL49_SCD_QUEUECHAIN_SEL, (1 << txq_id));
il               2299 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->txq[txq_id].q.read_ptr = (ssn_idx & 0xff);
il               2300 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->txq[txq_id].q.write_ptr = (ssn_idx & 0xff);
il               2302 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_set_wr_ptrs(il, txq_id, ssn_idx);
il               2304 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_clear_bits_prph(il, IL49_SCD_INTERRUPT_MASK, (1 << txq_id));
il               2305 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_txq_ctx_deactivate(il, txq_id);
il               2306 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_tx_queue_set_status(il, &il->txq[txq_id], tx_fifo, 0);
il               2312 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_tx_agg_stop(struct il_priv *il, struct ieee80211_vif *vif,
il               2332 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->sta_lock, flags);
il               2334 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	tid_data = &il->stations[sta_id].tid[tid];
il               2338 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	switch (il->stations[sta_id].tid[tid].agg.state) {
il               2354 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	write_ptr = il->txq[txq_id].q.write_ptr;
il               2355 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	read_ptr = il->txq[txq_id].q.read_ptr;
il               2360 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->stations[sta_id].tid[tid].agg.state =
il               2362 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		spin_unlock_irqrestore(&il->sta_lock, flags);
il               2368 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].tid[tid].agg.state = IL_AGG_OFF;
il               2371 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock(&il->sta_lock);
il               2372 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock(&il->lock);
il               2381 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_txq_agg_disable(il, txq_id, ssn, tx_fifo_id);
il               2382 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->lock, flags);
il               2390 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_txq_check_empty(struct il_priv *il, int sta_id, u8 tid, int txq_id)
il               2392 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_queue *q = &il->txq[txq_id].q;
il               2393 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	u8 *addr = il->stations[sta_id].sta.sta.addr;
il               2394 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_tid_data *tid_data = &il->stations[sta_id].tid[tid];
il               2396 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	lockdep_assert_held(&il->sta_lock);
il               2398 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	switch (il->stations[sta_id].tid[tid].agg.state) {
il               2407 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			il4965_txq_agg_disable(il, txq_id, ssn, tx_fifo);
il               2409 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			ieee80211_stop_tx_ba_cb_irqsafe(il->vif, addr, tid);
il               2417 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			ieee80211_start_tx_ba_cb_irqsafe(il->vif, addr, tid);
il               2426 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_non_agg_tx_status(struct il_priv *il, const u8 *addr1)
il               2432 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	sta = ieee80211_find_sta(il->vif, addr1);
il               2438 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			ieee80211_sta_block_awake(il->hw, sta, false);
il               2444 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_tx_status(struct il_priv *il, struct sk_buff *skb, bool is_agg)
il               2449 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_non_agg_tx_status(il, hdr->addr1);
il               2451 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ieee80211_tx_status_irqsafe(il->hw, skb);
il               2455 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_tx_queue_reclaim(struct il_priv *il, int txq_id, int idx)
il               2457 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_tx_queue *txq = &il->txq[txq_id];
il               2482 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_tx_status(il, skb, txq_id >= IL4965_FIRST_AMPDU_QUEUE);
il               2485 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->ops->txq_free_tfd(il, txq);
il               2497 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_tx_status_reply_compressed_ba(struct il_priv *il, struct il_ht_agg *agg,
il               2548 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	info = IEEE80211_SKB_CB(il->txq[scd_flow].skbs[agg->start_idx]);
il               2554 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_hwrate_to_tx_control(il, agg->rate_n_flags, info);
il               2567 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_find_station(struct il_priv *il, const u8 *addr)
il               2574 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->iw_mode == NL80211_IFTYPE_ADHOC)
il               2578 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		return il->hw_params.bcast_id;
il               2580 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->sta_lock, flags);
il               2581 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	for (i = start; i < il->hw_params.max_stations; i++)
il               2582 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		if (il->stations[i].used &&
il               2583 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		    ether_addr_equal(il->stations[i].sta.sta.addr, addr)) {
il               2588 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	D_ASSOC("can not find STA %pM total %d\n", addr, il->num_stations);
il               2597 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    (!(il->stations[ret].used & IL_STA_UCODE_ACTIVE) ||
il               2598 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	     ((il->stations[ret].used & IL_STA_UCODE_ACTIVE) &&
il               2599 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	      (il->stations[ret].used & IL_STA_UCODE_INPROGRESS)))) {
il               2604 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               2609 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_get_ra_sta_id(struct il_priv *il, struct ieee80211_hdr *hdr)
il               2611 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->iw_mode == NL80211_IFTYPE_STATION)
il               2616 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		return il4965_find_station(il, da);
il               2647 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_tx_status_reply_tx(struct il_priv *il, struct il_ht_agg *agg,
il               2675 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		info = IEEE80211_SKB_CB(il->txq[txq_id].skbs[idx]);
il               2679 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_hwrate_to_tx_control(il, rate_n_flags, info);
il               2708 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			skb = il->txq[txq_id].skbs[idx];
il               2759 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_hdl_tx(struct il_priv *il, struct il_rx_buf *rxb)
il               2765 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_tx_queue *txq = &il->txq[txq_id];
il               2796 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	sta_id = il4965_get_ra_sta_id(il, hdr);
il               2810 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    il->iw_mode == NL80211_IFTYPE_STATION) {
il               2811 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_stop_queues_by_reason(il, IL_STOP_REASON_PASSIVE);
il               2815 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->sta_lock, flags);
il               2821 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		agg = &il->stations[sta_id].tid[tid].agg;
il               2823 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_tx_status_reply_tx(il, agg, tx_resp, txq_id, idx);
il               2834 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			freed = il4965_tx_queue_reclaim(il, txq_id, idx);
il               2836 drivers/net/wireless/intel/iwlegacy/4965-mac.c 				il4965_free_tfds_in_queue(il, sta_id, tid,
il               2839 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			if (il->mac80211_registered &&
il               2842 drivers/net/wireless/intel/iwlegacy/4965-mac.c 				il_wake_queue(il, txq);
il               2847 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_hwrate_to_tx_control(il,
il               2857 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		freed = il4965_tx_queue_reclaim(il, txq_id, idx);
il               2859 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			il4965_free_tfds_in_queue(il, sta_id, tid, freed);
il               2863 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		if (il->mac80211_registered &&
il               2865 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			il_wake_queue(il, txq);
il               2868 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_txq_check_empty(il, sta_id, tid, txq_id);
il               2870 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_check_abort_status(il, tx_resp->frame_count, status);
il               2872 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               2879 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_hwrate_to_tx_control(struct il_priv *il, u32 rate_n_flags,
il               2906 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_hdl_compressed_ba(struct il_priv *il, struct il_rx_buf *rxb)
il               2924 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (scd_flow >= il->hw_params.max_txq_num) {
il               2929 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	txq = &il->txq[scd_flow];
il               2932 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	agg = &il->stations[sta_id].tid[tid].agg;
il               2948 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->sta_lock, flags);
il               2961 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_tx_status_reply_compressed_ba(il, agg, ba_resp);
il               2968 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		int freed = il4965_tx_queue_reclaim(il, scd_flow, idx);
il               2969 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_free_tfds_in_queue(il, sta_id, tid, freed);
il               2972 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		    il->mac80211_registered &&
il               2974 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			il_wake_queue(il, txq);
il               2976 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_txq_check_empty(il, sta_id, tid, scd_flow);
il               2979 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               3023 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_sta_alloc_lq(struct il_priv *il, u8 sta_id)
il               3037 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->band == NL80211_BAND_5GHZ)
il               3046 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    il4965_first_antenna(il->hw_params.
il               3053 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    il4965_first_antenna(il->hw_params.valid_tx_ant);
il               3056 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    il->hw_params.valid_tx_ant & ~il4965_first_antenna(il->hw_params.
il               3060 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	} else if (il4965_num_of_ant(il->hw_params.valid_tx_ant) == 2) {
il               3062 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		    il->hw_params.valid_tx_ant;
il               3080 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_add_bssid_station(struct il_priv *il, const u8 *addr, u8 *sta_id_r)
il               3090 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ret = il_add_station_common(il, addr, 0, NULL, &sta_id);
il               3099 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->sta_lock, flags);
il               3100 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].used |= IL_STA_LOCAL;
il               3101 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               3104 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	link_cmd = il4965_sta_alloc_lq(il, sta_id);
il               3111 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ret = il_send_lq_cmd(il, link_cmd, CMD_SYNC, true);
il               3115 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->sta_lock, flags);
il               3116 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].lq = link_cmd;
il               3117 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               3123 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_static_wepkey_cmd(struct il_priv *il, bool send_if_empty)
il               3143 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		u8 key_size = il->_4965.wep_keys[i].key_size;
il               3153 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		memcpy(&wep_cmd->key[i].key[3], il->_4965.wep_keys[i].key, key_size);
il               3163 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		return il_send_cmd(il, &cmd);
il               3169 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_restore_default_wep_keys(struct il_priv *il)
il               3171 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	lockdep_assert_held(&il->mutex);
il               3173 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	return il4965_static_wepkey_cmd(il, false);
il               3177 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_remove_default_wep_key(struct il_priv *il,
il               3183 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	lockdep_assert_held(&il->mutex);
il               3187 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memset(&il->_4965.wep_keys[idx], 0, sizeof(struct il_wep_key));
il               3188 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il_is_rfkill(il)) {
il               3193 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ret = il4965_static_wepkey_cmd(il, 1);
il               3200 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_set_default_wep_key(struct il_priv *il,
il               3207 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	lockdep_assert_held(&il->mutex);
il               3216 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[IL_AP_ID].keyinfo.cipher = keyconf->cipher;
il               3218 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->_4965.wep_keys[idx].key_size = len;
il               3219 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memcpy(&il->_4965.wep_keys[idx].key, &keyconf->key, len);
il               3221 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ret = il4965_static_wepkey_cmd(il, false);
il               3228 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_set_wep_dynamic_key_info(struct il_priv *il,
il               3235 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	lockdep_assert_held(&il->mutex);
il               3246 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (sta_id == il->hw_params.bcast_id)
il               3249 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->sta_lock, flags);
il               3251 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].keyinfo.cipher = keyconf->cipher;
il               3252 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].keyinfo.keylen = keyconf->keylen;
il               3253 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].keyinfo.keyidx = keyconf->keyidx;
il               3255 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memcpy(il->stations[sta_id].keyinfo.key, keyconf->key, keyconf->keylen);
il               3257 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memcpy(&il->stations[sta_id].sta.key.key[3], keyconf->key,
il               3260 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if ((il->stations[sta_id].sta.key.
il               3262 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->stations[sta_id].sta.key.key_offset =
il               3263 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		    il_get_free_ucode_key_idx(il);
il               3267 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	WARN(il->stations[sta_id].sta.key.key_offset == WEP_INVALID_OFFSET,
il               3270 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.key.key_flags = key_flags;
il               3271 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.sta.modify_mask = STA_MODIFY_KEY_MASK;
il               3272 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK;
il               3274 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memcpy(&sta_cmd, &il->stations[sta_id].sta,
il               3276 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               3278 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	return il_send_add_sta(il, &sta_cmd, CMD_SYNC);
il               3282 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_set_ccmp_dynamic_key_info(struct il_priv *il,
il               3289 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	lockdep_assert_held(&il->mutex);
il               3295 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (sta_id == il->hw_params.bcast_id)
il               3300 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->sta_lock, flags);
il               3301 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].keyinfo.cipher = keyconf->cipher;
il               3302 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].keyinfo.keylen = keyconf->keylen;
il               3304 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memcpy(il->stations[sta_id].keyinfo.key, keyconf->key, keyconf->keylen);
il               3306 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memcpy(il->stations[sta_id].sta.key.key, keyconf->key, keyconf->keylen);
il               3308 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if ((il->stations[sta_id].sta.key.
il               3310 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->stations[sta_id].sta.key.key_offset =
il               3311 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		    il_get_free_ucode_key_idx(il);
il               3315 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	WARN(il->stations[sta_id].sta.key.key_offset == WEP_INVALID_OFFSET,
il               3318 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.key.key_flags = key_flags;
il               3319 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.sta.modify_mask = STA_MODIFY_KEY_MASK;
il               3320 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK;
il               3322 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memcpy(&sta_cmd, &il->stations[sta_id].sta,
il               3324 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               3326 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	return il_send_add_sta(il, &sta_cmd, CMD_SYNC);
il               3330 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_set_tkip_dynamic_key_info(struct il_priv *il,
il               3341 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (sta_id == il->hw_params.bcast_id)
il               3347 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->sta_lock, flags);
il               3349 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].keyinfo.cipher = keyconf->cipher;
il               3350 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].keyinfo.keylen = 16;
il               3352 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if ((il->stations[sta_id].sta.key.
il               3354 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->stations[sta_id].sta.key.key_offset =
il               3355 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		    il_get_free_ucode_key_idx(il);
il               3359 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	WARN(il->stations[sta_id].sta.key.key_offset == WEP_INVALID_OFFSET,
il               3362 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.key.key_flags = key_flags;
il               3365 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memcpy(il->stations[sta_id].keyinfo.key, keyconf->key, 16);
il               3367 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memcpy(il->stations[sta_id].sta.key.key, keyconf->key, 16);
il               3369 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               3375 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_update_tkip_key(struct il_priv *il, struct ieee80211_key_conf *keyconf,
il               3382 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il_scan_cancel(il)) {
il               3388 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	sta_id = il_sta_id_or_broadcast(il, sta);
il               3392 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->sta_lock, flags);
il               3394 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.key.tkip_rx_tsc_byte2 = (u8) iv32;
il               3397 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->stations[sta_id].sta.key.tkip_rx_ttak[i] =
il               3400 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.sta.modify_mask = STA_MODIFY_KEY_MASK;
il               3401 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK;
il               3403 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_send_add_sta(il, &il->stations[sta_id].sta, CMD_ASYNC);
il               3405 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               3409 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_remove_dynamic_key(struct il_priv *il,
il               3417 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	lockdep_assert_held(&il->mutex);
il               3419 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->_4965.key_mapping_keys--;
il               3421 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->sta_lock, flags);
il               3422 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	key_flags = le16_to_cpu(il->stations[sta_id].sta.key.key_flags);
il               3433 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		spin_unlock_irqrestore(&il->sta_lock, flags);
il               3437 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->stations[sta_id].sta.key.key_flags & STA_KEY_FLG_INVALID) {
il               3440 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		spin_unlock_irqrestore(&il->sta_lock, flags);
il               3445 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    (il->stations[sta_id].sta.key.key_offset, &il->ucode_key_table))
il               3447 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		       il->stations[sta_id].sta.key.key_offset);
il               3448 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memset(&il->stations[sta_id].keyinfo, 0, sizeof(struct il_hw_key));
il               3449 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memset(&il->stations[sta_id].sta.key, 0, sizeof(struct il4965_keyinfo));
il               3450 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.key.key_flags =
il               3452 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.key.key_offset = keyconf->hw_key_idx;
il               3453 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.sta.modify_mask = STA_MODIFY_KEY_MASK;
il               3454 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK;
il               3456 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il_is_rfkill(il)) {
il               3459 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		spin_unlock_irqrestore(&il->sta_lock, flags);
il               3462 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memcpy(&sta_cmd, &il->stations[sta_id].sta,
il               3464 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               3466 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	return il_send_add_sta(il, &sta_cmd, CMD_SYNC);
il               3470 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_set_dynamic_key(struct il_priv *il, struct ieee80211_key_conf *keyconf,
il               3475 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	lockdep_assert_held(&il->mutex);
il               3477 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->_4965.key_mapping_keys++;
il               3483 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		    il4965_set_ccmp_dynamic_key_info(il, keyconf, sta_id);
il               3487 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		    il4965_set_tkip_dynamic_key_info(il, keyconf, sta_id);
il               3491 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		ret = il4965_set_wep_dynamic_key_info(il, keyconf, sta_id);
il               3513 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_alloc_bcast_station(struct il_priv *il)
il               3519 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->sta_lock, flags);
il               3520 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	sta_id = il_prep_station(il, il_bcast_addr, false, NULL);
il               3523 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		spin_unlock_irqrestore(&il->sta_lock, flags);
il               3528 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].used |= IL_STA_DRIVER_ACTIVE;
il               3529 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].used |= IL_STA_BCAST;
il               3530 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               3532 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	link_cmd = il4965_sta_alloc_lq(il, sta_id);
il               3539 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->sta_lock, flags);
il               3540 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].lq = link_cmd;
il               3541 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               3553 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_update_bcast_station(struct il_priv *il)
il               3557 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	u8 sta_id = il->hw_params.bcast_id;
il               3559 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	link_cmd = il4965_sta_alloc_lq(il, sta_id);
il               3565 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->sta_lock, flags);
il               3566 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->stations[sta_id].lq)
il               3567 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		kfree(il->stations[sta_id].lq);
il               3570 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].lq = link_cmd;
il               3571 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               3577 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_update_bcast_stations(struct il_priv *il)
il               3579 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	return il4965_update_bcast_station(il);
il               3586 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_sta_tx_modify_enable_tid(struct il_priv *il, int sta_id, int tid)
il               3591 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	lockdep_assert_held(&il->mutex);
il               3594 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->sta_lock, flags);
il               3595 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.sta.modify_mask = STA_MODIFY_TID_DISABLE_TX;
il               3596 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.tid_disable_tx &= cpu_to_le16(~(1 << tid));
il               3597 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK;
il               3598 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memcpy(&sta_cmd, &il->stations[sta_id].sta,
il               3600 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               3602 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	return il_send_add_sta(il, &sta_cmd, CMD_SYNC);
il               3606 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_sta_rx_agg_start(struct il_priv *il, struct ieee80211_sta *sta, int tid,
il               3613 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	lockdep_assert_held(&il->mutex);
il               3619 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->sta_lock, flags);
il               3620 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.station_flags_msk = 0;
il               3621 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.sta.modify_mask = STA_MODIFY_ADDBA_TID_MSK;
il               3622 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.add_immediate_ba_tid = (u8) tid;
il               3623 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.add_immediate_ba_ssn = cpu_to_le16(ssn);
il               3624 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK;
il               3625 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memcpy(&sta_cmd, &il->stations[sta_id].sta,
il               3627 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               3629 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	return il_send_add_sta(il, &sta_cmd, CMD_SYNC);
il               3633 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_sta_rx_agg_stop(struct il_priv *il, struct ieee80211_sta *sta, int tid)
il               3639 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	lockdep_assert_held(&il->mutex);
il               3647 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->sta_lock, flags);
il               3648 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.station_flags_msk = 0;
il               3649 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.sta.modify_mask = STA_MODIFY_DELBA_TID_MSK;
il               3650 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.remove_immediate_ba_tid = (u8) tid;
il               3651 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK;
il               3652 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memcpy(&sta_cmd, &il->stations[sta_id].sta,
il               3654 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               3656 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	return il_send_add_sta(il, &sta_cmd, CMD_SYNC);
il               3660 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_sta_modify_sleep_tx_count(struct il_priv *il, int sta_id, int cnt)
il               3664 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->sta_lock, flags);
il               3665 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.station_flags |= STA_FLG_PWR_SAVE_MSK;
il               3666 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.station_flags_msk = STA_FLG_PWR_SAVE_MSK;
il               3667 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.sta.modify_mask =
il               3669 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.sleep_tx_count = cpu_to_le16(cnt);
il               3670 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK;
il               3671 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_send_add_sta(il, &il->stations[sta_id].sta, CMD_ASYNC);
il               3672 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               3677 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_update_chain_flags(struct il_priv *il)
il               3679 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->ops->set_rxon_chain) {
il               3680 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->ops->set_rxon_chain(il);
il               3681 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		if (il->active.rx_chain != il->staging.rx_chain)
il               3682 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			il_commit_rxon(il);
il               3687 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_clear_free_frames(struct il_priv *il)
il               3691 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	D_INFO("%d frames on pre-allocated heap on clear.\n", il->frames_count);
il               3693 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	while (!list_empty(&il->free_frames)) {
il               3694 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		element = il->free_frames.next;
il               3697 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->frames_count--;
il               3700 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->frames_count) {
il               3702 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			il->frames_count);
il               3703 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->frames_count = 0;
il               3708 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_get_free_frame(struct il_priv *il)
il               3712 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (list_empty(&il->free_frames)) {
il               3719 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->frames_count++;
il               3723 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	element = il->free_frames.next;
il               3729 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_free_frame(struct il_priv *il, struct il_frame *frame)
il               3732 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	list_add(&frame->list, &il->free_frames);
il               3736 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_fill_beacon_frame(struct il_priv *il, struct ieee80211_hdr *hdr,
il               3739 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	lockdep_assert_held(&il->mutex);
il               3741 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (!il->beacon_skb)
il               3744 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->beacon_skb->len > left)
il               3747 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memcpy(hdr, il->beacon_skb->data, il->beacon_skb->len);
il               3749 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	return il->beacon_skb->len;
il               3754 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_set_beacon_tim(struct il_priv *il,
il               3781 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_hw_get_beacon_cmd(struct il_priv *il, struct il_frame *frame)
il               3792 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	lockdep_assert_held(&il->mutex);
il               3794 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (!il->beacon_enabled) {
il               3805 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    il4965_fill_beacon_frame(il, tx_beacon_cmd->frame,
il               3814 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	tx_beacon_cmd->tx.sta_id = il->hw_params.bcast_id;
il               3821 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_set_beacon_tim(il, tx_beacon_cmd, (u8 *) tx_beacon_cmd->frame,
il               3825 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	rate = il_get_lowest_plcp(il);
il               3826 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_toggle_tx_ant(il, &il->mgmt_tx_ant, il->hw_params.valid_tx_ant);
il               3827 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	rate_flags = BIT(il->mgmt_tx_ant) << RATE_MCS_ANT_POS;
il               3836 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_send_beacon_cmd(struct il_priv *il)
il               3842 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	frame = il4965_get_free_frame(il);
il               3849 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	frame_size = il4965_hw_get_beacon_cmd(il, frame);
il               3852 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_free_frame(il, frame);
il               3856 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	rc = il_send_cmd_pdu(il, C_TX_BEACON, frame_size, &frame->u.cmd[0]);
il               3858 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_free_frame(il, frame);
il               3915 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_hw_txq_free_tfd(struct il_priv *il, struct il_tx_queue *txq)
il               3919 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct pci_dev *dev = il->pci_dev;
il               3960 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_hw_txq_attach_buf_to_tfd(struct il_priv *il, struct il_tx_queue *txq,
il               4000 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_hw_tx_queue_init(struct il_priv *il, struct il_tx_queue *txq)
il               4005 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_wr(il, FH49_MEM_CBBC_QUEUE(txq_id), txq->q.dma_addr >> 8);
il               4016 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_hdl_alive(struct il_priv *il, struct il_rx_buf *rxb)
il               4029 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		memcpy(&il->card_alive_init, &pkt->u.alive_frame,
il               4031 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		pwork = &il->init_alive_start;
il               4034 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		memcpy(&il->card_alive, &pkt->u.alive_frame,
il               4036 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		pwork = &il->alive_start;
il               4042 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		queue_delayed_work(il->workqueue, pwork, msecs_to_jiffies(5));
il               4060 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_priv *il = from_timer(il, t, stats_periodic);
il               4062 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (test_bit(S_EXIT_PENDING, &il->status))
il               4066 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (!il_is_ready_rf(il))
il               4069 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_send_stats_request(il, CMD_ASYNC, false);
il               4073 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_hdl_beacon(struct il_priv *il, struct il_rx_buf *rxb)
il               4087 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->ibss_manager = le32_to_cpu(beacon->ibss_mgr_status);
il               4091 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_perform_ct_kill_task(struct il_priv *il)
il               4097 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->mac80211_registered)
il               4098 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		ieee80211_stop_queues(il->hw);
il               4100 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	_il_wr(il, CSR_UCODE_DRV_GP1_SET,
il               4102 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	_il_rd(il, CSR_UCODE_DRV_GP1);
il               4104 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->reg_lock, flags);
il               4105 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (likely(_il_grab_nic_access(il)))
il               4106 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		_il_release_nic_access(il);
il               4107 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->reg_lock, flags);
il               4113 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_hdl_card_state(struct il_priv *il, struct il_rx_buf *rxb)
il               4117 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	unsigned long status = il->status;
il               4126 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		_il_wr(il, CSR_UCODE_DRV_GP1_SET,
il               4129 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_wr(il, HBUS_TARG_MBX_C, HBUS_TARG_MBX_C_REG_BIT_CMD_BLOCKED);
il               4132 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			_il_wr(il, CSR_UCODE_DRV_GP1_CLR,
il               4134 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			il_wr(il, HBUS_TARG_MBX_C,
il               4140 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_perform_ct_kill_task(il);
il               4143 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		set_bit(S_RFKILL, &il->status);
il               4145 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		clear_bit(S_RFKILL, &il->status);
il               4148 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_scan_cancel(il);
il               4151 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	     test_bit(S_RFKILL, &il->status)))
il               4152 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		wiphy_rfkill_set_hw_state(il->hw->wiphy,
il               4153 drivers/net/wireless/intel/iwlegacy/4965-mac.c 					  test_bit(S_RFKILL, &il->status));
il               4155 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		wake_up(&il->wait_command_queue);
il               4168 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_setup_handlers(struct il_priv *il)
il               4170 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->handlers[N_ALIVE] = il4965_hdl_alive;
il               4171 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->handlers[N_ERROR] = il_hdl_error;
il               4172 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->handlers[N_CHANNEL_SWITCH] = il_hdl_csa;
il               4173 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->handlers[N_SPECTRUM_MEASUREMENT] = il_hdl_spectrum_measurement;
il               4174 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->handlers[N_PM_SLEEP] = il_hdl_pm_sleep;
il               4175 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->handlers[N_PM_DEBUG_STATS] = il_hdl_pm_debug_stats;
il               4176 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->handlers[N_BEACON] = il4965_hdl_beacon;
il               4183 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->handlers[C_STATS] = il4965_hdl_c_stats;
il               4184 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->handlers[N_STATS] = il4965_hdl_stats;
il               4186 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_setup_rx_scan_handlers(il);
il               4189 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->handlers[N_CARD_STATE] = il4965_hdl_card_state;
il               4191 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->handlers[N_MISSED_BEACONS] = il4965_hdl_missed_beacon;
il               4193 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->handlers[N_RX_PHY] = il4965_hdl_rx_phy;
il               4194 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->handlers[N_RX_MPDU] = il4965_hdl_rx;
il               4195 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->handlers[N_RX] = il4965_hdl_rx;
il               4197 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->handlers[N_COMPRESSED_BA] = il4965_hdl_compressed_ba;
il               4199 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->handlers[C_TX] = il4965_hdl_tx;
il               4210 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_rx_handle(struct il_priv *il)
il               4214 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_rx_queue *rxq = &il->rxq;
il               4251 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		pci_unmap_page(il->pci_dev, rxb->page_dma,
il               4252 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			       PAGE_SIZE << il->hw_params.rx_page_order,
il               4259 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		reclaim = il_need_reclaim(il, pkt);
il               4264 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		if (il->handlers[pkt->hdr.cmd]) {
il               4267 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			il->isr_stats.handlers[pkt->hdr.cmd]++;
il               4268 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			il->handlers[pkt->hdr.cmd] (il, rxb);
il               4287 drivers/net/wireless/intel/iwlegacy/4965-mac.c 				il_tx_cmd_complete(il, rxb);
il               4298 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			    pci_map_page(il->pci_dev, rxb->page, 0,
il               4299 drivers/net/wireless/intel/iwlegacy/4965-mac.c 					 PAGE_SIZE << il->hw_params.
il               4302 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			if (unlikely(pci_dma_mapping_error(il->pci_dev,
il               4304 drivers/net/wireless/intel/iwlegacy/4965-mac.c 				__il_free_pages(il, rxb->page);
il               4323 drivers/net/wireless/intel/iwlegacy/4965-mac.c 				il4965_rx_replenish_now(il);
il               4332 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_rx_replenish_now(il);
il               4334 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_rx_queue_restock(il);
il               4339 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_synchronize_irq(struct il_priv *il)
il               4342 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	synchronize_irq(il->pci_dev->irq);
il               4343 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	tasklet_kill(&il->irq_tasklet);
il               4349 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_priv *il = (struct il_priv *)data;
il               4358 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->lock, flags);
il               4363 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	inta = _il_rd(il, CSR_INT);
il               4364 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	_il_wr(il, CSR_INT, inta);
il               4369 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	inta_fh = _il_rd(il, CSR_FH_INT_STATUS);
il               4370 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	_il_wr(il, CSR_FH_INT_STATUS, inta_fh);
il               4373 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il_get_debug_level(il) & IL_DL_ISR) {
il               4375 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		inta_mask = _il_rd(il, CSR_INT_MASK);
il               4381 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->lock, flags);
il               4397 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_disable_interrupts(il);
il               4399 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->isr_stats.hw++;
il               4400 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_irq_handle_error(il);
il               4407 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il_get_debug_level(il) & (IL_DL_ISR)) {
il               4412 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			il->isr_stats.sch++;
il               4418 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			il->isr_stats.alive++;
il               4429 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		if (!(_il_rd(il, CSR_GP_CNTRL) & CSR_GP_CNTRL_REG_FLAG_HW_RF_KILL_SW))
il               4435 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->isr_stats.rfkill++;
il               4443 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			set_bit(S_RFKILL, &il->status);
il               4445 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			clear_bit(S_RFKILL, &il->status);
il               4446 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			il_force_reset(il, true);
il               4448 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		wiphy_rfkill_set_hw_state(il->hw->wiphy, hw_rf_kill);
il               4456 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->isr_stats.ctkill++;
il               4464 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->isr_stats.sw++;
il               4465 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_irq_handle_error(il);
il               4476 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_rx_queue_update_write_ptr(il, &il->rxq);
il               4477 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		for (i = 0; i < il->hw_params.max_txq_num; i++)
il               4478 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			il_txq_update_write_ptr(il, &il->txq[i]);
il               4479 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->isr_stats.wakeup++;
il               4487 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_rx_handle(il);
il               4488 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->isr_stats.rx++;
il               4495 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->isr_stats.tx++;
il               4498 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->ucode_write_complete = 1;
il               4499 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		wake_up(&il->wait_command_queue);
il               4504 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->isr_stats.unhandled++;
il               4507 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (inta & ~(il->inta_mask)) {
il               4509 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			inta & ~il->inta_mask);
il               4515 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (test_bit(S_INT_ENABLED, &il->status))
il               4516 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_enable_interrupts(il);
il               4519 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_enable_rfkill_int(il);
il               4522 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il_get_debug_level(il) & (IL_DL_ISR)) {
il               4523 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		inta = _il_rd(il, CSR_INT);
il               4524 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		inta_mask = _il_rd(il, CSR_INT_MASK);
il               4525 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		inta_fh = _il_rd(il, CSR_FH_INT_STATUS);
il               4555 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_priv *il = dev_get_drvdata(d);
il               4556 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	return sprintf(buf, "0x%08X\n", il_get_debug_level(il));
il               4563 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_priv *il = dev_get_drvdata(d);
il               4571 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->debug_level = val;
il               4585 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_priv *il = dev_get_drvdata(d);
il               4587 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (!il_is_alive(il))
il               4590 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	return sprintf(buf, "%d\n", il->temperature);
il               4598 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_priv *il = dev_get_drvdata(d);
il               4600 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (!il_is_ready_rf(il))
il               4603 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		return sprintf(buf, "%d\n", il->tx_power_user_lmt);
il               4610 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_priv *il = dev_get_drvdata(d);
il               4618 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		ret = il_set_tx_power(il, val, false);
il               4651 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_dealloc_ucode_pci(struct il_priv *il)
il               4653 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_free_fw_desc(il->pci_dev, &il->ucode_code);
il               4654 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_free_fw_desc(il->pci_dev, &il->ucode_data);
il               4655 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_free_fw_desc(il->pci_dev, &il->ucode_data_backup);
il               4656 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_free_fw_desc(il->pci_dev, &il->ucode_init);
il               4657 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_free_fw_desc(il->pci_dev, &il->ucode_init_data);
il               4658 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_free_fw_desc(il->pci_dev, &il->ucode_boot);
il               4662 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_nic_start(struct il_priv *il)
il               4665 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	_il_wr(il, CSR_RESET, 0);
il               4670 drivers/net/wireless/intel/iwlegacy/4965-mac.c static int il4965_mac_setup_register(struct il_priv *il, u32 max_probe_length);
il               4673 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_request_firmware(struct il_priv *il, bool first)
il               4675 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	const char *name_pre = il->cfg->fw_name_pre;
il               4679 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->fw_idx = il->cfg->ucode_api_max;
il               4680 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		sprintf(tag, "%d", il->fw_idx);
il               4682 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->fw_idx--;
il               4683 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		sprintf(tag, "%d", il->fw_idx);
il               4686 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->fw_idx < il->cfg->ucode_api_min) {
il               4691 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	sprintf(il->firmware_name, "%s%s%s", name_pre, tag, ".ucode");
il               4693 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	D_INFO("attempting to load firmware '%s'\n", il->firmware_name);
il               4695 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	return request_firmware_nowait(THIS_MODULE, 1, il->firmware_name,
il               4696 drivers/net/wireless/intel/iwlegacy/4965-mac.c 				       &il->pci_dev->dev, GFP_KERNEL, il,
il               4706 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_load_firmware(struct il_priv *il, const struct firmware *ucode_raw,
il               4713 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->ucode_ver = le32_to_cpu(ucode->ver);
il               4714 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	api_ver = IL_UCODE_API(il->ucode_ver);
il               4768 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_priv *il = context;
il               4771 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	const unsigned int api_max = il->cfg->ucode_api_max;
il               4772 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	const unsigned int api_min = il->cfg->ucode_api_min;
il               4782 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		if (il->fw_idx <= il->cfg->ucode_api_max)
il               4784 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			       il->firmware_name);
il               4788 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	D_INFO("Loaded firmware file '%s' (%zd bytes).\n", il->firmware_name,
il               4798 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	err = il4965_load_firmware(il, ucode_raw, &pieces);
il               4803 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	api_ver = IL_UCODE_API(il->ucode_ver);
il               4824 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		IL_UCODE_MAJOR(il->ucode_ver), IL_UCODE_MINOR(il->ucode_ver),
il               4825 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		IL_UCODE_API(il->ucode_ver), IL_UCODE_SERIAL(il->ucode_ver));
il               4827 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	snprintf(il->hw->wiphy->fw_version, sizeof(il->hw->wiphy->fw_version),
il               4828 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		 "%u.%u.%u.%u", IL_UCODE_MAJOR(il->ucode_ver),
il               4829 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		 IL_UCODE_MINOR(il->ucode_ver), IL_UCODE_API(il->ucode_ver),
il               4830 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		 IL_UCODE_SERIAL(il->ucode_ver));
il               4838 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	D_INFO("f/w package hdr ucode version raw = 0x%x\n", il->ucode_ver);
il               4846 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (pieces.inst_size > il->hw_params.max_inst_size) {
il               4852 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (pieces.data_size > il->hw_params.max_data_size) {
il               4858 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (pieces.init_size > il->hw_params.max_inst_size) {
il               4864 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (pieces.init_data_size > il->hw_params.max_data_size) {
il               4870 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (pieces.boot_size > il->hw_params.max_bsm_size) {
il               4881 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->ucode_code.len = pieces.inst_size;
il               4882 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_alloc_fw_desc(il->pci_dev, &il->ucode_code);
il               4884 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->ucode_data.len = pieces.data_size;
il               4885 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_alloc_fw_desc(il->pci_dev, &il->ucode_data);
il               4887 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->ucode_data_backup.len = pieces.data_size;
il               4888 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_alloc_fw_desc(il->pci_dev, &il->ucode_data_backup);
il               4890 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (!il->ucode_code.v_addr || !il->ucode_data.v_addr ||
il               4891 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    !il->ucode_data_backup.v_addr)
il               4896 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->ucode_init.len = pieces.init_size;
il               4897 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_alloc_fw_desc(il->pci_dev, &il->ucode_init);
il               4899 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->ucode_init_data.len = pieces.init_data_size;
il               4900 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_alloc_fw_desc(il->pci_dev, &il->ucode_init_data);
il               4902 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		if (!il->ucode_init.v_addr || !il->ucode_init_data.v_addr)
il               4908 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->ucode_boot.len = pieces.boot_size;
il               4909 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_alloc_fw_desc(il->pci_dev, &il->ucode_boot);
il               4911 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		if (!il->ucode_boot.v_addr)
il               4917 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->sta_key_max_num = STA_KEY_MAX_NUM;
il               4924 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memcpy(il->ucode_code.v_addr, pieces.inst, pieces.inst_size);
il               4927 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	       il->ucode_code.v_addr, (u32) il->ucode_code.p_addr);
il               4935 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memcpy(il->ucode_data.v_addr, pieces.data, pieces.data_size);
il               4936 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memcpy(il->ucode_data_backup.v_addr, pieces.data, pieces.data_size);
il               4942 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		memcpy(il->ucode_init.v_addr, pieces.init, pieces.init_size);
il               4949 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		memcpy(il->ucode_init_data.v_addr, pieces.init_data,
il               4956 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memcpy(il->ucode_boot.v_addr, pieces.boot, pieces.boot_size);
il               4962 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->_4965.phy_calib_chain_noise_reset_cmd =
il               4964 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->_4965.phy_calib_chain_noise_gain_cmd =
il               4972 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	err = il4965_mac_setup_register(il, max_probe_length);
il               4976 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_dbgfs_register(il, DRV_NAME);
il               4978 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	err = sysfs_create_group(&il->pci_dev->dev.kobj, &il_attribute_group);
il               4986 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	complete(&il->_4965.firmware_loading_complete);
il               4991 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il4965_request_firmware(il, false))
il               4998 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_dealloc_ucode_pci(il);
il               5000 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	complete(&il->_4965.firmware_loading_complete);
il               5001 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	device_release_driver(&il->pci_dev->dev);
il               5079 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_dump_nic_error_log(struct il_priv *il)
il               5086 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->ucode_type == UCODE_INIT)
il               5087 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		base = le32_to_cpu(il->card_alive_init.error_event_table_ptr);
il               5089 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		base = le32_to_cpu(il->card_alive.error_event_table_ptr);
il               5091 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (!il->ops->is_valid_rtc_data_addr(base)) {
il               5093 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		       base, (il->ucode_type == UCODE_INIT) ? "Init" : "RT");
il               5097 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	count = il_read_targ_mem(il, base);
il               5101 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		IL_ERR("Status: 0x%08lX, count: %d\n", il->status, count);
il               5104 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	desc = il_read_targ_mem(il, base + 1 * sizeof(u32));
il               5105 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->isr_stats.err_code = desc;
il               5106 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	pc = il_read_targ_mem(il, base + 2 * sizeof(u32));
il               5107 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	blink1 = il_read_targ_mem(il, base + 3 * sizeof(u32));
il               5108 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	blink2 = il_read_targ_mem(il, base + 4 * sizeof(u32));
il               5109 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ilink1 = il_read_targ_mem(il, base + 5 * sizeof(u32));
il               5110 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ilink2 = il_read_targ_mem(il, base + 6 * sizeof(u32));
il               5111 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	data1 = il_read_targ_mem(il, base + 7 * sizeof(u32));
il               5112 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	data2 = il_read_targ_mem(il, base + 8 * sizeof(u32));
il               5113 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	line = il_read_targ_mem(il, base + 9 * sizeof(u32));
il               5114 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	time = il_read_targ_mem(il, base + 11 * sizeof(u32));
il               5115 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	hcmd = il_read_targ_mem(il, base + 22 * sizeof(u32));
il               5127 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_rf_kill_ct_config(struct il_priv *il)
il               5133 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->lock, flags);
il               5134 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	_il_wr(il, CSR_UCODE_DRV_GP1_CLR,
il               5136 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->lock, flags);
il               5139 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    cpu_to_le32(il->hw_params.ct_kill_threshold);
il               5141 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ret = il_send_cmd_pdu(il, C_CT_KILL_CONFIG, sizeof(cmd), &cmd);
il               5147 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		       il->hw_params.ct_kill_threshold);
il               5163 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_alive_notify(struct il_priv *il)
il               5170 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->lock, flags);
il               5173 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->scd_base_addr = il_rd_prph(il, IL49_SCD_SRAM_BASE_ADDR);
il               5174 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	a = il->scd_base_addr + IL49_SCD_CONTEXT_DATA_OFFSET;
il               5175 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	for (; a < il->scd_base_addr + IL49_SCD_TX_STTS_BITMAP_OFFSET; a += 4)
il               5176 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_write_targ_mem(il, a, 0);
il               5177 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	for (; a < il->scd_base_addr + IL49_SCD_TRANSLATE_TBL_OFFSET; a += 4)
il               5178 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_write_targ_mem(il, a, 0);
il               5181 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	     il->scd_base_addr +
il               5182 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	     IL49_SCD_TRANSLATE_TBL_OFFSET_QUEUE(il->hw_params.max_txq_num);
il               5184 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_write_targ_mem(il, a, 0);
il               5187 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_wr_prph(il, IL49_SCD_DRAM_BASE_ADDR, il->scd_bc_tbls.dma >> 10);
il               5191 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_wr(il, FH49_TCSR_CHNL_TX_CONFIG_REG(chan),
il               5196 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	reg_val = il_rd(il, FH49_TX_CHICKEN_BITS_REG);
il               5197 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_wr(il, FH49_TX_CHICKEN_BITS_REG,
il               5201 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_wr_prph(il, IL49_SCD_QUEUECHAIN_SEL, 0);
il               5204 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	for (i = 0; i < il->hw_params.max_txq_num; i++) {
il               5207 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_wr_prph(il, IL49_SCD_QUEUE_RDPTR(i), 0);
il               5208 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_wr(il, HBUS_TARG_WRPTR, 0 | (i << 8));
il               5211 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_write_targ_mem(il,
il               5212 drivers/net/wireless/intel/iwlegacy/4965-mac.c 				  il->scd_base_addr +
il               5219 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_write_targ_mem(il,
il               5220 drivers/net/wireless/intel/iwlegacy/4965-mac.c 				  il->scd_base_addr +
il               5228 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_wr_prph(il, IL49_SCD_INTERRUPT_MASK,
il               5229 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		   (1 << il->hw_params.max_txq_num) - 1);
il               5232 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_txq_set_sched(il, IL_MASK(0, 6));
il               5234 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_set_wr_ptrs(il, IL_DEFAULT_CMD_QUEUE_NUM, 0);
il               5237 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memset(&il->queue_stopped[0], 0, sizeof(il->queue_stopped));
il               5239 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		atomic_set(&il->queue_stop_count[i], 0);
il               5242 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->txq_ctx_active_msk = 0;
il               5249 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_txq_ctx_activate(il, i);
il               5254 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_tx_queue_set_status(il, &il->txq[i], ac, 0);
il               5257 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->lock, flags);
il               5268 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_alive_start(struct il_priv *il)
il               5274 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->card_alive.is_valid != UCODE_VALID_OK) {
il               5284 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il4965_verify_ucode(il)) {
il               5291 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ret = il4965_alive_notify(il);
il               5298 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	set_bit(S_ALIVE, &il->status);
il               5301 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_setup_watchdog(il);
il               5303 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il_is_rfkill(il))
il               5306 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ieee80211_wake_queues(il->hw);
il               5308 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->active_rate = RATES_MASK;
il               5310 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_power_update_mode(il, true);
il               5313 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il_is_associated(il)) {
il               5315 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		    (struct il_rxon_cmd *)&il->active;
il               5317 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->staging.filter_flags |= RXON_FILTER_ASSOC_MSK;
il               5321 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_connection_init_rx_config(il);
il               5323 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		if (il->ops->set_rxon_chain)
il               5324 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			il->ops->set_rxon_chain(il);
il               5328 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_send_bt_config(il);
il               5330 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_reset_run_time_calib(il);
il               5332 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	set_bit(S_READY, &il->status);
il               5335 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_commit_rxon(il);
il               5338 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_rf_kill_ct_config(il);
il               5341 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	wake_up(&il->wait_command_queue);
il               5346 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	queue_work(il->workqueue, &il->restart);
il               5349 drivers/net/wireless/intel/iwlegacy/4965-mac.c static void il4965_cancel_deferred_work(struct il_priv *il);
il               5352 drivers/net/wireless/intel/iwlegacy/4965-mac.c __il4965_down(struct il_priv *il)
il               5359 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_scan_cancel_timeout(il, 200);
il               5361 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	exit_pending = test_and_set_bit(S_EXIT_PENDING, &il->status);
il               5365 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	del_timer_sync(&il->watchdog);
il               5367 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_clear_ucode_stations(il);
il               5370 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irq(&il->sta_lock);
il               5378 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memset(il->_4965.wep_keys, 0, sizeof(il->_4965.wep_keys));
il               5379 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->_4965.key_mapping_keys = 0;
il               5380 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irq(&il->sta_lock);
il               5382 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_dealloc_bcast_stations(il);
il               5383 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_clear_driver_stations(il);
il               5386 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	wake_up_all(&il->wait_command_queue);
il               5391 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		clear_bit(S_EXIT_PENDING, &il->status);
il               5394 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	_il_wr(il, CSR_RESET, CSR_RESET_REG_FLAG_NEVO_RESET);
il               5397 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->lock, flags);
il               5398 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_disable_interrupts(il);
il               5399 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->lock, flags);
il               5400 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_synchronize_irq(il);
il               5402 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->mac80211_registered)
il               5403 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		ieee80211_stop_queues(il->hw);
il               5407 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (!il_is_init(il)) {
il               5408 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->status =
il               5409 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		    test_bit(S_RFKILL, &il->status) << S_RFKILL |
il               5410 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		    test_bit(S_GEO_CONFIGURED, &il->status) << S_GEO_CONFIGURED |
il               5411 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		    test_bit(S_EXIT_PENDING, &il->status) << S_EXIT_PENDING;
il               5417 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->status &=
il               5418 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    test_bit(S_RFKILL, &il->status) << S_RFKILL |
il               5419 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    test_bit(S_GEO_CONFIGURED, &il->status) << S_GEO_CONFIGURED |
il               5420 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    test_bit(S_FW_ERROR, &il->status) << S_FW_ERROR |
il               5421 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    test_bit(S_EXIT_PENDING, &il->status) << S_EXIT_PENDING;
il               5428 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irq(&il->reg_lock);
il               5431 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_txq_ctx_stop(il);
il               5432 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_rxq_stop(il);
il               5434 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	_il_wr_prph(il, APMG_CLK_DIS_REG, APMG_CLK_VAL_DMA_CLK_RQT);
il               5437 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	_il_clear_bit(il, CSR_GP_CNTRL, CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ);
il               5439 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	_il_apm_stop(il);
il               5441 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irq(&il->reg_lock);
il               5443 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_txq_ctx_unmap(il);
il               5445 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memset(&il->card_alive, 0, sizeof(struct il_alive_resp));
il               5447 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	dev_kfree_skb(il->beacon_skb);
il               5448 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->beacon_skb = NULL;
il               5451 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_clear_free_frames(il);
il               5455 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_down(struct il_priv *il)
il               5457 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mutex_lock(&il->mutex);
il               5458 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	__il4965_down(il);
il               5459 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mutex_unlock(&il->mutex);
il               5461 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_cancel_deferred_work(il);
il               5466 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_set_hw_ready(struct il_priv *il)
il               5470 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_set_bit(il, CSR_HW_IF_CONFIG_REG,
il               5474 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ret = _il_poll_bit(il, CSR_HW_IF_CONFIG_REG,
il               5479 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->hw_ready = true;
il               5481 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	D_INFO("hardware %s ready\n", (il->hw_ready) ? "" : "not");
il               5485 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_prepare_card_hw(struct il_priv *il)
il               5489 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw_ready = false;
il               5491 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_set_hw_ready(il);
il               5492 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->hw_ready)
il               5496 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_set_bit(il, CSR_HW_IF_CONFIG_REG, CSR_HW_IF_CONFIG_REG_PREPARE);
il               5499 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    _il_poll_bit(il, CSR_HW_IF_CONFIG_REG,
il               5505 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_set_hw_ready(il);
il               5511 drivers/net/wireless/intel/iwlegacy/4965-mac.c __il4965_up(struct il_priv *il)
il               5516 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (test_bit(S_EXIT_PENDING, &il->status)) {
il               5521 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (!il->ucode_data_backup.v_addr || !il->ucode_data.v_addr) {
il               5526 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ret = il4965_alloc_bcast_station(il);
il               5528 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_dealloc_bcast_stations(il);
il               5532 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_prepare_card_hw(il);
il               5533 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (!il->hw_ready) {
il               5534 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_dealloc_bcast_stations(il);
il               5540 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (_il_rd(il, CSR_GP_CNTRL) & CSR_GP_CNTRL_REG_FLAG_HW_RF_KILL_SW)
il               5541 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		clear_bit(S_RFKILL, &il->status);
il               5543 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		set_bit(S_RFKILL, &il->status);
il               5544 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		wiphy_rfkill_set_hw_state(il->hw->wiphy, true);
il               5546 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_dealloc_bcast_stations(il);
il               5547 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_enable_rfkill_int(il);
il               5552 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	_il_wr(il, CSR_INT, 0xFFFFFFFF);
il               5555 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->cmd_queue = IL_DEFAULT_CMD_QUEUE_NUM;
il               5557 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ret = il4965_hw_nic_init(il);
il               5560 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il_dealloc_bcast_stations(il);
il               5565 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	_il_wr(il, CSR_UCODE_DRV_GP1_CLR, CSR_UCODE_SW_BIT_RFKILL);
il               5566 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	_il_wr(il, CSR_UCODE_DRV_GP1_CLR, CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED);
il               5569 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	_il_wr(il, CSR_INT, 0xFFFFFFFF);
il               5570 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_enable_interrupts(il);
il               5573 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	_il_wr(il, CSR_UCODE_DRV_GP1_CLR, CSR_UCODE_SW_BIT_RFKILL);
il               5574 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	_il_wr(il, CSR_UCODE_DRV_GP1_CLR, CSR_UCODE_SW_BIT_RFKILL);
il               5579 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	memcpy(il->ucode_data_backup.v_addr, il->ucode_data.v_addr,
il               5580 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	       il->ucode_data.len);
il               5587 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		ret = il->ops->load_ucode(il);
il               5595 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_nic_start(il);
il               5602 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	set_bit(S_EXIT_PENDING, &il->status);
il               5603 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	__il4965_down(il);
il               5604 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	clear_bit(S_EXIT_PENDING, &il->status);
il               5621 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_priv *il =
il               5624 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mutex_lock(&il->mutex);
il               5625 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (test_bit(S_EXIT_PENDING, &il->status))
il               5628 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->ops->init_alive_start(il);
il               5630 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mutex_unlock(&il->mutex);
il               5636 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_priv *il =
il               5639 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mutex_lock(&il->mutex);
il               5640 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (test_bit(S_EXIT_PENDING, &il->status))
il               5643 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_alive_start(il);
il               5645 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mutex_unlock(&il->mutex);
il               5651 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_priv *il = container_of(work, struct il_priv,
il               5654 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mutex_lock(&il->mutex);
il               5656 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (test_bit(S_EXIT_PENDING, &il->status) ||
il               5657 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    test_bit(S_SCANNING, &il->status)) {
il               5658 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		mutex_unlock(&il->mutex);
il               5662 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->start_calib) {
il               5663 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_chain_noise_calibration(il, (void *)&il->_4965.stats);
il               5664 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_sensitivity_calibration(il, (void *)&il->_4965.stats);
il               5667 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mutex_unlock(&il->mutex);
il               5673 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_priv *il = container_of(data, struct il_priv, restart);
il               5675 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (test_bit(S_EXIT_PENDING, &il->status))
il               5678 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (test_and_clear_bit(S_FW_ERROR, &il->status)) {
il               5679 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		mutex_lock(&il->mutex);
il               5680 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->is_open = 0;
il               5682 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		__il4965_down(il);
il               5684 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		mutex_unlock(&il->mutex);
il               5685 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_cancel_deferred_work(il);
il               5686 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		ieee80211_restart_hw(il->hw);
il               5688 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_down(il);
il               5690 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		mutex_lock(&il->mutex);
il               5691 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		if (test_bit(S_EXIT_PENDING, &il->status)) {
il               5692 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			mutex_unlock(&il->mutex);
il               5696 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		__il4965_up(il);
il               5697 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		mutex_unlock(&il->mutex);
il               5704 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_priv *il = container_of(data, struct il_priv, rx_replenish);
il               5706 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (test_bit(S_EXIT_PENDING, &il->status))
il               5709 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mutex_lock(&il->mutex);
il               5710 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_rx_replenish(il);
il               5711 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mutex_unlock(&il->mutex);
il               5727 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_mac_setup_register(struct il_priv *il, u32 max_probe_length)
il               5730 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct ieee80211_hw *hw = il->hw;
il               5742 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->cfg->sku & IL_SKU_N)
il               5771 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->bands[NL80211_BAND_2GHZ].n_channels)
il               5772 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->hw->wiphy->bands[NL80211_BAND_2GHZ] =
il               5773 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		    &il->bands[NL80211_BAND_2GHZ];
il               5774 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->bands[NL80211_BAND_5GHZ].n_channels)
il               5775 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->hw->wiphy->bands[NL80211_BAND_5GHZ] =
il               5776 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		    &il->bands[NL80211_BAND_5GHZ];
il               5778 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_leds_init(il);
il               5780 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	wiphy_ext_feature_set(il->hw->wiphy, NL80211_EXT_FEATURE_CQM_RSSI_LIST);
il               5782 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ret = ieee80211_register_hw(il->hw);
il               5787 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->mac80211_registered = 1;
il               5795 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_priv *il = hw->priv;
il               5801 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mutex_lock(&il->mutex);
il               5802 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ret = __il4965_up(il);
il               5803 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mutex_unlock(&il->mutex);
il               5808 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il_is_rfkill(il))
il               5815 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ret = wait_event_timeout(il->wait_command_queue,
il               5816 drivers/net/wireless/intel/iwlegacy/4965-mac.c 				 test_bit(S_READY, &il->status),
il               5819 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		if (!test_bit(S_READY, &il->status)) {
il               5826 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_led_enable(il);
il               5829 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->is_open = 1;
il               5837 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_priv *il = hw->priv;
il               5841 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (!il->is_open)
il               5844 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->is_open = 0;
il               5846 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_down(il);
il               5848 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	flush_workqueue(il->workqueue);
il               5852 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	_il_wr(il, CSR_INT, 0xFFFFFFFF);
il               5853 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_enable_rfkill_int(il);
il               5863 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_priv *il = hw->priv;
il               5870 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il4965_tx_skb(il, control->sta, skb))
il               5881 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_priv *il = hw->priv;
il               5885 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_update_tkip_key(il, keyconf, sta, iv32, phase1key);
il               5895 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_priv *il = hw->priv;
il               5902 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->cfg->mod_params->sw_crypto) {
il               5917 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	sta_id = il_sta_id_or_broadcast(il, sta);
il               5921 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mutex_lock(&il->mutex);
il               5922 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_scan_cancel_timeout(il, 100);
il               5933 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			is_default_wep_key = !il->_4965.key_mapping_keys;
il               5942 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			ret = il4965_set_default_wep_key(il, key);
il               5944 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			ret = il4965_set_dynamic_key(il, key, sta_id);
il               5950 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			ret = il4965_remove_default_wep_key(il, key);
il               5952 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			ret = il4965_remove_dynamic_key(il, key, sta_id);
il               5960 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mutex_unlock(&il->mutex);
il               5970 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_priv *il = hw->priv;
il               5979 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (!(il->cfg->sku & IL_SKU_N))
il               5982 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mutex_lock(&il->mutex);
il               5987 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		ret = il4965_sta_rx_agg_start(il, sta, tid, *ssn);
il               5991 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		ret = il4965_sta_rx_agg_stop(il, sta, tid);
il               5992 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		if (test_bit(S_EXIT_PENDING, &il->status))
il               5997 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		ret = il4965_tx_agg_start(il, vif, sta, tid, ssn);
il               6003 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		ret = il4965_tx_agg_stop(il, vif, sta, tid);
il               6004 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		if (test_bit(S_EXIT_PENDING, &il->status))
il               6011 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mutex_unlock(&il->mutex);
il               6020 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_priv *il = hw->priv;
il               6027 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mutex_lock(&il->mutex);
il               6034 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    il_add_station_common(il, sta->addr, is_ap, sta, &sta_id);
il               6038 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		mutex_unlock(&il->mutex);
il               6046 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_rs_rate_init(il, sta, sta_id);
il               6047 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mutex_unlock(&il->mutex);
il               6056 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_priv *il = hw->priv;
il               6060 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_ht_config *ht_conf = &il->current_ht_config;
il               6065 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mutex_lock(&il->mutex);
il               6067 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il_is_rfkill(il))
il               6070 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (test_bit(S_EXIT_PENDING, &il->status) ||
il               6071 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    test_bit(S_SCANNING, &il->status) ||
il               6072 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    test_bit(S_CHANNEL_SWITCH_PENDING, &il->status))
il               6075 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (!il_is_associated(il))
il               6078 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (!il->ops->set_channel_switch)
il               6082 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (le16_to_cpu(il->active.channel) == ch)
il               6085 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ch_info = il_get_channel_info(il, channel->band, ch);
il               6091 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irq(&il->lock);
il               6093 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->current_ht_config.smps = conf->smps_mode;
il               6099 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->ht.is_40mhz = false;
il               6100 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->ht.extension_chan_offset = IEEE80211_HT_PARAM_CHA_SEC_NONE;
il               6103 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->ht.extension_chan_offset = IEEE80211_HT_PARAM_CHA_SEC_BELOW;
il               6104 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->ht.is_40mhz = true;
il               6107 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->ht.extension_chan_offset = IEEE80211_HT_PARAM_CHA_SEC_ABOVE;
il               6108 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->ht.is_40mhz = true;
il               6112 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if ((le16_to_cpu(il->staging.channel) != ch))
il               6113 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->staging.flags = 0;
il               6115 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_set_rxon_channel(il, channel);
il               6116 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_set_rxon_ht(il, ht_conf);
il               6117 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_set_flags_for_band(il, channel->band, il->vif);
il               6119 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irq(&il->lock);
il               6121 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_set_rate(il);
il               6126 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	set_bit(S_CHANNEL_SWITCH_PENDING, &il->status);
il               6127 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->switch_channel = cpu_to_le16(ch);
il               6128 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->ops->set_channel_switch(il, ch_switch)) {
il               6129 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		clear_bit(S_CHANNEL_SWITCH_PENDING, &il->status);
il               6130 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->switch_channel = 0;
il               6131 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		ieee80211_chswitch_done(il->vif, false);
il               6135 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mutex_unlock(&il->mutex);
il               6143 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_priv *il = hw->priv;
il               6163 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mutex_lock(&il->mutex);
il               6165 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->staging.filter_flags &= ~filter_nand;
il               6166 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->staging.filter_flags |= filter_or;
il               6173 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mutex_unlock(&il->mutex);
il               6195 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_priv *il = container_of(work, struct il_priv,
il               6198 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mutex_lock(&il->mutex);
il               6204 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (test_bit(S_EXIT_PENDING, &il->status) ||
il               6205 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    test_bit(S_SCANNING, &il->status))
il               6211 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->ops->send_tx_power(il);
il               6215 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->last_temperature = il->temperature;
il               6217 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mutex_unlock(&il->mutex);
il               6221 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_setup_deferred_work(struct il_priv *il)
il               6223 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->workqueue = create_singlethread_workqueue(DRV_NAME);
il               6225 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	init_waitqueue_head(&il->wait_command_queue);
il               6227 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	INIT_WORK(&il->restart, il4965_bg_restart);
il               6228 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	INIT_WORK(&il->rx_replenish, il4965_bg_rx_replenish);
il               6229 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	INIT_WORK(&il->run_time_calib_work, il4965_bg_run_time_calib_work);
il               6230 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	INIT_DELAYED_WORK(&il->init_alive_start, il4965_bg_init_alive_start);
il               6231 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	INIT_DELAYED_WORK(&il->alive_start, il4965_bg_alive_start);
il               6233 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_setup_scan_deferred_work(il);
il               6235 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	INIT_WORK(&il->txpower_work, il4965_bg_txpower_work);
il               6237 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	timer_setup(&il->stats_periodic, il4965_bg_stats_periodic, 0);
il               6239 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	timer_setup(&il->watchdog, il_bg_watchdog, 0);
il               6241 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	tasklet_init(&il->irq_tasklet,
il               6243 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		     (unsigned long)il);
il               6247 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_cancel_deferred_work(struct il_priv *il)
il               6249 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	cancel_work_sync(&il->txpower_work);
il               6250 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	cancel_delayed_work_sync(&il->init_alive_start);
il               6251 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	cancel_delayed_work(&il->alive_start);
il               6252 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	cancel_work_sync(&il->run_time_calib_work);
il               6254 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_cancel_scan_deferred_work(il);
il               6256 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	del_timer_sync(&il->stats_periodic);
il               6260 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_init_hw_rates(struct il_priv *il, struct ieee80211_rate *rates)
il               6284 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_set_wr_ptrs(struct il_priv *il, int txq_id, u32 idx)
il               6286 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_wr(il, HBUS_TARG_WRPTR, (idx & 0xff) | (txq_id << 8));
il               6287 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_wr_prph(il, IL49_SCD_QUEUE_RDPTR(txq_id), idx);
il               6291 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_tx_queue_set_status(struct il_priv *il, struct il_tx_queue *txq,
il               6297 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	int active = test_bit(txq_id, &il->txq_ctx_active_msk) ? 1 : 0;
il               6300 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_wr_prph(il, IL49_SCD_QUEUE_STATUS_BITS(txq_id),
il               6337 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_init_drv(struct il_priv *il)
il               6341 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_init(&il->sta_lock);
il               6342 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_init(&il->hcmd_lock);
il               6344 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	INIT_LIST_HEAD(&il->free_frames);
il               6346 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	mutex_init(&il->mutex);
il               6348 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->ieee_channels = NULL;
il               6349 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->ieee_rates = NULL;
il               6350 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->band = NL80211_BAND_2GHZ;
il               6352 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->iw_mode = NL80211_IFTYPE_STATION;
il               6353 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->current_ht_config.smps = IEEE80211_SMPS_STATIC;
il               6354 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->missed_beacon_threshold = IL_MISSED_BEACON_THRESHOLD_DEF;
il               6357 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->force_reset.reset_duration = IL_DELAY_NEXT_FORCE_FW_RELOAD;
il               6360 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->ops->set_rxon_chain)
il               6361 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->ops->set_rxon_chain(il);
il               6363 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_init_scan_params(il);
il               6365 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ret = il_init_channel_map(il);
il               6371 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ret = il_init_geos(il);
il               6376 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_init_hw_rates(il, il->ieee_rates);
il               6381 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_free_channel_map(il);
il               6387 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_uninit_drv(struct il_priv *il)
il               6389 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_free_geos(il);
il               6390 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_free_channel_map(il);
il               6391 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	kfree(il->scan_cmd);
il               6395 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_hw_detect(struct il_priv *il)
il               6397 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw_rev = _il_rd(il, CSR_HW_REV);
il               6398 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw_wa_rev = _il_rd(il, CSR_HW_REV_WA_REG);
il               6399 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->rev_id = il->pci_dev->revision;
il               6400 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	D_INFO("HW Revision ID = 0x%X\n", il->rev_id);
il               6431 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_set_hw_params(struct il_priv *il)
il               6433 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw_params.bcast_id = IL4965_BROADCAST_ID;
il               6434 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw_params.max_rxq_size = RX_QUEUE_SIZE;
il               6435 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw_params.max_rxq_log = RX_QUEUE_SIZE_LOG;
il               6436 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->cfg->mod_params->amsdu_size_8K)
il               6437 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->hw_params.rx_page_order = get_order(IL_RX_BUF_SIZE_8K);
il               6439 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->hw_params.rx_page_order = get_order(IL_RX_BUF_SIZE_4K);
il               6441 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw_params.max_beacon_itrvl = IL_MAX_UCODE_BEACON_INTERVAL;
il               6443 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->cfg->mod_params->disable_11n)
il               6444 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->cfg->sku &= ~IL_SKU_N;
il               6446 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->cfg->mod_params->num_of_queues >= IL_MIN_NUM_QUEUES &&
il               6447 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    il->cfg->mod_params->num_of_queues <= IL49_NUM_QUEUES)
il               6448 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->cfg->num_of_queues =
il               6449 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		    il->cfg->mod_params->num_of_queues;
il               6451 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw_params.max_txq_num = il->cfg->num_of_queues;
il               6452 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw_params.dma_chnl_num = FH49_TCSR_CHNL_NUM;
il               6453 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw_params.scd_bc_tbls_size =
il               6454 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	    il->cfg->num_of_queues *
il               6457 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw_params.tfd_size = sizeof(struct il_tfd);
il               6458 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw_params.max_stations = IL4965_STATION_COUNT;
il               6459 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw_params.max_data_size = IL49_RTC_DATA_SIZE;
il               6460 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw_params.max_inst_size = IL49_RTC_INST_SIZE;
il               6461 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw_params.max_bsm_size = BSM_SRAM_SIZE;
il               6462 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw_params.ht40_channel = BIT(NL80211_BAND_5GHZ);
il               6464 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw_params.rx_wrt_ptr_reg = FH49_RSCSR_CHNL0_WPTR;
il               6466 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw_params.tx_chains_num = il4965_num_of_ant(il->cfg->valid_tx_ant);
il               6467 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw_params.rx_chains_num = il4965_num_of_ant(il->cfg->valid_rx_ant);
il               6468 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw_params.valid_tx_ant = il->cfg->valid_tx_ant;
il               6469 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw_params.valid_rx_ant = il->cfg->valid_rx_ant;
il               6471 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw_params.ct_kill_threshold =
il               6474 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw_params.sens = &il4965_sensitivity;
il               6475 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw_params.beacon_time_tsf_bits = IL4965_EXT_BEACON_TIME_POS;
il               6482 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_priv *il;
il               6497 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il = hw->priv;
il               6498 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw = hw;
il               6502 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->cfg = cfg;
il               6503 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->ops = &il4965_ops;
il               6505 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->debugfs_ops = &il4965_debugfs_ops;
il               6507 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->pci_dev = pdev;
il               6508 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->inta_mask = CSR_INI_SET_MASK;
il               6543 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	pci_set_drvdata(pdev, il);
il               6548 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw_base = pci_ioremap_bar(pdev, 0);
il               6549 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (!il->hw_base) {
il               6556 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	D_INFO("pci_resource_base = %p\n", il->hw_base);
il               6561 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_init(&il->reg_lock);
il               6562 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_init(&il->lock);
il               6569 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	_il_wr(il, CSR_RESET, CSR_RESET_REG_FLAG_NEVO_RESET);
il               6571 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_hw_detect(il);
il               6572 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	IL_INFO("Detected %s, REV=0x%X\n", il->cfg->name, il->hw_rev);
il               6578 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_prepare_card_hw(il);
il               6579 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (!il->hw_ready) {
il               6589 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	err = il_eeprom_init(il);
il               6594 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	err = il4965_eeprom_check_version(il);
il               6599 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_eeprom_get_mac(il, il->addresses[0].addr);
il               6600 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	D_INFO("MAC address: %pM\n", il->addresses[0].addr);
il               6601 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw->wiphy->addresses = il->addresses;
il               6602 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->hw->wiphy->n_addresses = 1;
il               6607 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_set_hw_params(il);
il               6613 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	err = il4965_init_drv(il);
il               6621 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->lock, flags);
il               6622 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_disable_interrupts(il);
il               6623 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->lock, flags);
il               6625 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	pci_enable_msi(il->pci_dev);
il               6627 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	err = request_irq(il->pci_dev->irq, il_isr, IRQF_SHARED, DRV_NAME, il);
il               6629 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		IL_ERR("Error allocating IRQ %d\n", il->pci_dev->irq);
il               6633 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_setup_deferred_work(il);
il               6634 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_setup_handlers(il);
il               6641 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	pci_read_config_word(il->pci_dev, PCI_COMMAND, &pci_cmd);
il               6644 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		pci_write_config_word(il->pci_dev, PCI_COMMAND, pci_cmd);
il               6647 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_enable_rfkill_int(il);
il               6650 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (_il_rd(il, CSR_GP_CNTRL) & CSR_GP_CNTRL_REG_FLAG_HW_RF_KILL_SW)
il               6651 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		clear_bit(S_RFKILL, &il->status);
il               6653 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		set_bit(S_RFKILL, &il->status);
il               6655 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	wiphy_rfkill_set_hw_state(il->hw->wiphy,
il               6656 drivers/net/wireless/intel/iwlegacy/4965-mac.c 				  test_bit(S_RFKILL, &il->status));
il               6658 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_power_initialize(il);
il               6660 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	init_completion(&il->_4965.firmware_loading_complete);
il               6662 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	err = il4965_request_firmware(il, true);
il               6669 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	destroy_workqueue(il->workqueue);
il               6670 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->workqueue = NULL;
il               6671 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	free_irq(il->pci_dev->irq, il);
il               6673 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	pci_disable_msi(il->pci_dev);
il               6674 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_uninit_drv(il);
il               6676 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_eeprom_free(il);
il               6678 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	iounmap(il->hw_base);
il               6684 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ieee80211_free_hw(il->hw);
il               6692 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct il_priv *il = pci_get_drvdata(pdev);
il               6695 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (!il)
il               6698 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	wait_for_completion(&il->_4965.firmware_loading_complete);
il               6702 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_dbgfs_unregister(il);
il               6709 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	set_bit(S_EXIT_PENDING, &il->status);
il               6711 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_leds_exit(il);
il               6713 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->mac80211_registered) {
il               6714 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		ieee80211_unregister_hw(il->hw);
il               6715 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il->mac80211_registered = 0;
il               6717 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_down(il);
il               6727 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_apm_stop(il);
il               6732 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_lock_irqsave(&il->lock, flags);
il               6733 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_disable_interrupts(il);
il               6734 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	spin_unlock_irqrestore(&il->lock, flags);
il               6736 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_synchronize_irq(il);
il               6738 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_dealloc_ucode_pci(il);
il               6740 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (il->rxq.bd)
il               6741 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		il4965_rx_queue_free(il, &il->rxq);
il               6742 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_hw_txq_ctx_free(il);
il               6744 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_eeprom_free(il);
il               6747 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	flush_workqueue(il->workqueue);
il               6752 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	destroy_workqueue(il->workqueue);
il               6753 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il->workqueue = NULL;
il               6755 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	free_irq(il->pci_dev->irq, il);
il               6756 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	pci_disable_msi(il->pci_dev);
il               6757 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	iounmap(il->hw_base);
il               6761 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il4965_uninit_drv(il);
il               6763 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	dev_kfree_skb(il->beacon_skb);
il               6765 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	ieee80211_free_hw(il->hw);
il               6773 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_txq_set_sched(struct il_priv *il, u32 mask)
il               6775 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	il_wr_prph(il, IL49_SCD_TXFACT, mask);
il                126 drivers/net/wireless/intel/iwlegacy/4965-rs.c static void il4965_rs_rate_scale_perform(struct il_priv *il,
il                130 drivers/net/wireless/intel/iwlegacy/4965-rs.c static void il4965_rs_fill_link_cmd(struct il_priv *il,
il                338 drivers/net/wireless/intel/iwlegacy/4965-rs.c il4965_rs_tl_turn_on_agg_for_tid(struct il_priv *il, struct il_lq_sta *lq_data,
il                366 drivers/net/wireless/intel/iwlegacy/4965-rs.c il4965_rs_tl_turn_on_agg(struct il_priv *il, u8 tid, struct il_lq_sta *lq_data,
il                370 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		il4965_rs_tl_turn_on_agg_for_tid(il, lq_data, tid, sta);
il                482 drivers/net/wireless/intel/iwlegacy/4965-rs.c il4965_rate_n_flags_from_tbl(struct il_priv *il, struct il_scale_tbl_info *tbl,
il                628 drivers/net/wireless/intel/iwlegacy/4965-rs.c il4965_rs_use_green(struct il_priv *il, struct ieee80211_sta *sta)
il                631 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	       !il->ht.non_gf_sta_present;
il                657 drivers/net/wireless/intel/iwlegacy/4965-rs.c il4965_rs_get_adjacent_rate(struct il_priv *il, u8 idx, u16 rate_mask,
il                723 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	struct il_priv *il = lq_sta->drv;
il                738 drivers/net/wireless/intel/iwlegacy/4965-rs.c 			    il4965_first_antenna(il->hw_params.valid_tx_ant);
il                801 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	struct il_priv *il = (struct il_priv *)il_r;
il                838 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	il4965_rs_get_tbl_info_from_mcs(tx_rate, il->band, &tbl_type, &rs_idx);
il                839 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	if (il->band == NL80211_BAND_5GHZ)
il                852 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		if (il->band == NL80211_BAND_2GHZ)
il                874 drivers/net/wireless/intel/iwlegacy/4965-rs.c 			il_send_lq_cmd(il, &lq_sta->lq, CMD_ASYNC, false);
il                919 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		il4965_rs_get_tbl_info_from_mcs(tx_rate, il->band, &tbl_type,
il                945 drivers/net/wireless/intel/iwlegacy/4965-rs.c 			il4965_rs_get_tbl_info_from_mcs(tx_rate, il->band,
il                974 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		il4965_rs_rate_scale_perform(il, skb, sta, lq_sta);
il                986 drivers/net/wireless/intel/iwlegacy/4965-rs.c il4965_rs_set_stay_in_table(struct il_priv *il, u8 is_legacy,
il               1064 drivers/net/wireless/intel/iwlegacy/4965-rs.c il4965_rs_get_best_rate(struct il_priv *il, struct il_lq_sta *lq_sta,
il               1085 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		    il4965_rs_get_adjacent_rate(il, rate, rate_mask,
il               1158 drivers/net/wireless/intel/iwlegacy/4965-rs.c il4965_rs_switch_to_mimo2(struct il_priv *il, struct il_lq_sta *lq_sta,
il               1174 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	if (il->hw_params.tx_chains_num < 2)
il               1185 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	if (il_is_ht40_tx_allowed(il, &sta->ht_cap))
il               1192 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	rate = il4965_rs_get_best_rate(il, lq_sta, tbl, rate_mask, idx);
il               1201 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	    il4965_rate_n_flags_from_tbl(il, tbl, rate, is_green);
il               1212 drivers/net/wireless/intel/iwlegacy/4965-rs.c il4965_rs_switch_to_siso(struct il_priv *il, struct il_lq_sta *lq_sta,
il               1231 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	if (il_is_ht40_tx_allowed(il, &sta->ht_cap))
il               1240 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	rate = il4965_rs_get_best_rate(il, lq_sta, tbl, rate_mask, idx);
il               1249 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	    il4965_rate_n_flags_from_tbl(il, tbl, rate, is_green);
il               1259 drivers/net/wireless/intel/iwlegacy/4965-rs.c il4965_rs_move_legacy_other(struct il_priv *il, struct il_lq_sta *lq_sta,
il               1271 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	u8 valid_tx_ant = il->hw_params.valid_tx_ant;
il               1272 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	u8 tx_chains_num = il->hw_params.tx_chains_num;
il               1315 drivers/net/wireless/intel/iwlegacy/4965-rs.c 			    il4965_rs_switch_to_siso(il, lq_sta, conf, sta,
il               1344 drivers/net/wireless/intel/iwlegacy/4965-rs.c 			    il4965_rs_switch_to_mimo2(il, lq_sta, conf, sta,
il               1378 drivers/net/wireless/intel/iwlegacy/4965-rs.c il4965_rs_move_siso_to_other(struct il_priv *il, struct il_lq_sta *lq_sta,
il               1392 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	u8 valid_tx_ant = il->hw_params.valid_tx_ant;
il               1393 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	u8 tx_chains_num = il->hw_params.tx_chains_num;
il               1441 drivers/net/wireless/intel/iwlegacy/4965-rs.c 			    il4965_rs_switch_to_mimo2(il, lq_sta, conf, sta,
il               1471 drivers/net/wireless/intel/iwlegacy/4965-rs.c 			    il4965_rate_n_flags_from_tbl(il, search_tbl, idx,
il               1501 drivers/net/wireless/intel/iwlegacy/4965-rs.c il4965_rs_move_mimo2_to_other(struct il_priv *il, struct il_lq_sta *lq_sta,
il               1515 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	u8 valid_tx_ant = il->hw_params.valid_tx_ant;
il               1516 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	u8 tx_chains_num = il->hw_params.tx_chains_num;
il               1562 drivers/net/wireless/intel/iwlegacy/4965-rs.c 			    il4965_rs_switch_to_siso(il, lq_sta, conf, sta,
il               1595 drivers/net/wireless/intel/iwlegacy/4965-rs.c 			    il4965_rate_n_flags_from_tbl(il, search_tbl, idx,
il               1636 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	struct il_priv *il;
il               1638 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	il = lq_sta->drv;
il               1710 drivers/net/wireless/intel/iwlegacy/4965-rs.c il4965_rs_update_rate_tbl(struct il_priv *il, struct il_lq_sta *lq_sta,
il               1716 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	rate = il4965_rate_n_flags_from_tbl(il, tbl, idx, is_green);
il               1717 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	il4965_rs_fill_link_cmd(il, lq_sta, rate);
il               1718 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	il_send_lq_cmd(il, &lq_sta->lq, CMD_ASYNC, false);
il               1725 drivers/net/wireless/intel/iwlegacy/4965-rs.c il4965_rs_rate_scale_perform(struct il_priv *il, struct sk_buff *skb,
il               1729 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	struct ieee80211_hw *hw = il->hw;
il               1767 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		tid_data = &il->stations[lq_sta->lq.sta_id].tid[tid];
il               1789 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		lq_sta->is_green = il4965_rs_use_green(il, sta);
il               1828 drivers/net/wireless/intel/iwlegacy/4965-rs.c 			il4965_rs_update_rate_tbl(il, lq_sta, tbl, idx,
il               1933 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	    il4965_rs_get_adjacent_rate(il, idx, rate_scale_idx_msk,
il               2031 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		il4965_rs_update_rate_tbl(il, lq_sta, tbl, idx, is_green);
il               2050 drivers/net/wireless/intel/iwlegacy/4965-rs.c 			il4965_rs_move_legacy_other(il, lq_sta, conf, sta, idx);
il               2052 drivers/net/wireless/intel/iwlegacy/4965-rs.c 			il4965_rs_move_siso_to_other(il, lq_sta, conf, sta,
il               2055 drivers/net/wireless/intel/iwlegacy/4965-rs.c 			il4965_rs_move_mimo2_to_other(il, lq_sta, conf, sta,
il               2070 drivers/net/wireless/intel/iwlegacy/4965-rs.c 			il4965_rs_fill_link_cmd(il, lq_sta, tbl->current_rate);
il               2071 drivers/net/wireless/intel/iwlegacy/4965-rs.c 			il_send_lq_cmd(il, &lq_sta->lq, CMD_ASYNC, false);
il               2086 drivers/net/wireless/intel/iwlegacy/4965-rs.c 			il4965_rs_set_stay_in_table(il, 1, lq_sta);
il               2098 drivers/net/wireless/intel/iwlegacy/4965-rs.c 				    &il->stations[lq_sta->lq.sta_id].tid[tid];
il               2102 drivers/net/wireless/intel/iwlegacy/4965-rs.c 					il4965_rs_tl_turn_on_agg(il, tid,
il               2106 drivers/net/wireless/intel/iwlegacy/4965-rs.c 			il4965_rs_set_stay_in_table(il, 0, lq_sta);
il               2112 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	    il4965_rate_n_flags_from_tbl(il, tbl, idx, is_green);
il               2132 drivers/net/wireless/intel/iwlegacy/4965-rs.c il4965_rs_initialize_lq(struct il_priv *il, struct ieee80211_conf *conf,
il               2146 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	use_green = il4965_rs_use_green(il, sta);
il               2150 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	valid_tx_ant = il->hw_params.valid_tx_ant;
il               2169 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	il4965_rs_get_tbl_info_from_mcs(rate, il->band, tbl, &rate_idx);
il               2173 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	rate = il4965_rate_n_flags_from_tbl(il, tbl, rate_idx, use_green);
il               2177 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	il->stations[lq_sta->lq.sta_id].lq = &lq_sta->lq;
il               2178 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	il_send_lq_cmd(il, &lq_sta->lq, CMD_SYNC, true);
il               2188 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	struct il_priv *il __maybe_unused = (struct il_priv *)il_r;
il               2257 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	struct il_priv *il;
il               2259 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	il = (struct il_priv *)il_rate;
il               2269 drivers/net/wireless/intel/iwlegacy/4965-rs.c il4965_rs_rate_init(struct il_priv *il, struct ieee80211_sta *sta, u8 sta_id)
il               2272 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	struct ieee80211_hw *hw = il->hw;
il               2273 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	struct ieee80211_conf *conf = &il->hw->conf;
il               2307 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	lq_sta->is_green = il4965_rs_use_green(il, sta);
il               2308 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	lq_sta->active_legacy_rate = il->active_rate & ~(0x1000);
il               2309 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	lq_sta->band = il->band;
il               2327 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	    il4965_first_antenna(il->hw_params.valid_tx_ant);
il               2329 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	    il->hw_params.valid_tx_ant & ~il4965_first_antenna(il->hw_params.
il               2333 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	} else if (il4965_num_of_ant(il->hw_params.valid_tx_ant) == 2) {
il               2335 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		    il->hw_params.valid_tx_ant;
il               2340 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	lq_sta->drv = il;
il               2352 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	il4965_rs_initialize_lq(il, conf, sta, lq_sta);
il               2356 drivers/net/wireless/intel/iwlegacy/4965-rs.c il4965_rs_fill_link_cmd(struct il_priv *il, struct il_lq_sta *lq_sta,
il               2398 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	if (il)
il               2399 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		valid_tx_ant = il->hw_params.valid_tx_ant;
il               2410 drivers/net/wireless/intel/iwlegacy/4965-rs.c 				else if (il &&
il               2445 drivers/net/wireless/intel/iwlegacy/4965-rs.c 			else if (il &&
il               2492 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	struct il_priv *il __maybe_unused = il_r;
il               2503 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	struct il_priv *il;
il               2507 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	il = lq_sta->drv;
il               2508 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	valid_tx_ant = il->hw_params.valid_tx_ant;
il               2535 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	struct il_priv *il;
il               2540 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	il = lq_sta->drv;
il               2577 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	struct il_priv *il;
il               2580 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	il = lq_sta->drv;
il               2594 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		    (il->hw_params.valid_tx_ant & ANT_A) ? "ANT_A," : "",
il               2595 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		    (il->hw_params.valid_tx_ant & ANT_B) ? "ANT_B," : "",
il               2596 drivers/net/wireless/intel/iwlegacy/4965-rs.c 		    (il->hw_params.valid_tx_ant & ANT_C) ? "ANT_C" : "");
il               2748 drivers/net/wireless/intel/iwlegacy/4965-rs.c il4965_rs_add_debugfs(void *il, void *il_sta, struct dentry *dir)
il                 33 drivers/net/wireless/intel/iwlegacy/4965.c il4965_verify_inst_sparse(struct il_priv *il, __le32 * image, u32 len)
il                 46 drivers/net/wireless/intel/iwlegacy/4965.c 		il_wr(il, HBUS_TARG_MEM_RADDR, i + IL4965_RTC_INST_LOWER_BOUND);
il                 47 drivers/net/wireless/intel/iwlegacy/4965.c 		val = _il_rd(il, HBUS_TARG_MEM_RDAT);
il                 64 drivers/net/wireless/intel/iwlegacy/4965.c il4965_verify_inst_full(struct il_priv *il, __le32 * image, u32 len)
il                 73 drivers/net/wireless/intel/iwlegacy/4965.c 	il_wr(il, HBUS_TARG_MEM_RADDR, IL4965_RTC_INST_LOWER_BOUND);
il                 80 drivers/net/wireless/intel/iwlegacy/4965.c 		val = _il_rd(il, HBUS_TARG_MEM_RDAT);
il                103 drivers/net/wireless/intel/iwlegacy/4965.c il4965_verify_ucode(struct il_priv *il)
il                110 drivers/net/wireless/intel/iwlegacy/4965.c 	image = (__le32 *) il->ucode_boot.v_addr;
il                111 drivers/net/wireless/intel/iwlegacy/4965.c 	len = il->ucode_boot.len;
il                112 drivers/net/wireless/intel/iwlegacy/4965.c 	ret = il4965_verify_inst_sparse(il, image, len);
il                119 drivers/net/wireless/intel/iwlegacy/4965.c 	image = (__le32 *) il->ucode_init.v_addr;
il                120 drivers/net/wireless/intel/iwlegacy/4965.c 	len = il->ucode_init.len;
il                121 drivers/net/wireless/intel/iwlegacy/4965.c 	ret = il4965_verify_inst_sparse(il, image, len);
il                128 drivers/net/wireless/intel/iwlegacy/4965.c 	image = (__le32 *) il->ucode_code.v_addr;
il                129 drivers/net/wireless/intel/iwlegacy/4965.c 	len = il->ucode_code.len;
il                130 drivers/net/wireless/intel/iwlegacy/4965.c 	ret = il4965_verify_inst_sparse(il, image, len);
il                141 drivers/net/wireless/intel/iwlegacy/4965.c 	image = (__le32 *) il->ucode_boot.v_addr;
il                142 drivers/net/wireless/intel/iwlegacy/4965.c 	len = il->ucode_boot.len;
il                143 drivers/net/wireless/intel/iwlegacy/4965.c 	ret = il4965_verify_inst_full(il, image, len);
il                161 drivers/net/wireless/intel/iwlegacy/4965.c il4965_eeprom_acquire_semaphore(struct il_priv *il)
il                168 drivers/net/wireless/intel/iwlegacy/4965.c 		il_set_bit(il, CSR_HW_IF_CONFIG_REG,
il                173 drivers/net/wireless/intel/iwlegacy/4965.c 		    _il_poll_bit(il, CSR_HW_IF_CONFIG_REG,
il                185 drivers/net/wireless/intel/iwlegacy/4965.c il4965_eeprom_release_semaphore(struct il_priv *il)
il                187 drivers/net/wireless/intel/iwlegacy/4965.c 	il_clear_bit(il, CSR_HW_IF_CONFIG_REG,
il                193 drivers/net/wireless/intel/iwlegacy/4965.c il4965_eeprom_check_version(struct il_priv *il)
il                198 drivers/net/wireless/intel/iwlegacy/4965.c 	eeprom_ver = il_eeprom_query16(il, EEPROM_VERSION);
il                199 drivers/net/wireless/intel/iwlegacy/4965.c 	calib_ver = il_eeprom_query16(il, EEPROM_4965_CALIB_VERSION_OFFSET);
il                201 drivers/net/wireless/intel/iwlegacy/4965.c 	if (eeprom_ver < il->cfg->eeprom_ver ||
il                202 drivers/net/wireless/intel/iwlegacy/4965.c 	    calib_ver < il->cfg->eeprom_calib_ver)
il                210 drivers/net/wireless/intel/iwlegacy/4965.c 	       "CALIB=0x%x < 0x%x\n", eeprom_ver, il->cfg->eeprom_ver,
il                211 drivers/net/wireless/intel/iwlegacy/4965.c 	       calib_ver, il->cfg->eeprom_calib_ver);
il                217 drivers/net/wireless/intel/iwlegacy/4965.c il4965_eeprom_get_mac(const struct il_priv *il, u8 * mac)
il                219 drivers/net/wireless/intel/iwlegacy/4965.c 	const u8 *addr = il_eeprom_query_addr(il,
il                226 drivers/net/wireless/intel/iwlegacy/4965.c il4965_send_led_cmd(struct il_priv *il, struct il_led_cmd *led_cmd)
il                237 drivers/net/wireless/intel/iwlegacy/4965.c 	reg = _il_rd(il, CSR_LED_REG);
il                239 drivers/net/wireless/intel/iwlegacy/4965.c 		_il_wr(il, CSR_LED_REG, reg & CSR_LED_BSM_CTRL_MSK);
il                241 drivers/net/wireless/intel/iwlegacy/4965.c 	return il_send_cmd(il, &cmd);
il                246 drivers/net/wireless/intel/iwlegacy/4965.c il4965_led_enable(struct il_priv *il)
il                248 drivers/net/wireless/intel/iwlegacy/4965.c 	_il_wr(il, CSR_LED_REG, CSR_LED_REG_TRUN_ON);
il                251 drivers/net/wireless/intel/iwlegacy/4965.c static int il4965_send_tx_power(struct il_priv *il);
il                252 drivers/net/wireless/intel/iwlegacy/4965.c static int il4965_hw_get_temperature(struct il_priv *il);
il                266 drivers/net/wireless/intel/iwlegacy/4965.c il4965_verify_bsm(struct il_priv *il)
il                268 drivers/net/wireless/intel/iwlegacy/4965.c 	__le32 *image = il->ucode_boot.v_addr;
il                269 drivers/net/wireless/intel/iwlegacy/4965.c 	u32 len = il->ucode_boot.len;
il                276 drivers/net/wireless/intel/iwlegacy/4965.c 	val = il_rd_prph(il, BSM_WR_DWCOUNT_REG);
il                279 drivers/net/wireless/intel/iwlegacy/4965.c 		val = il_rd_prph(il, reg);
il                327 drivers/net/wireless/intel/iwlegacy/4965.c il4965_load_bsm(struct il_priv *il)
il                329 drivers/net/wireless/intel/iwlegacy/4965.c 	__le32 *image = il->ucode_boot.v_addr;
il                330 drivers/net/wireless/intel/iwlegacy/4965.c 	u32 len = il->ucode_boot.len;
il                342 drivers/net/wireless/intel/iwlegacy/4965.c 	il->ucode_type = UCODE_RT;
il                354 drivers/net/wireless/intel/iwlegacy/4965.c 	pinst = il->ucode_init.p_addr >> 4;
il                355 drivers/net/wireless/intel/iwlegacy/4965.c 	pdata = il->ucode_init_data.p_addr >> 4;
il                356 drivers/net/wireless/intel/iwlegacy/4965.c 	inst_len = il->ucode_init.len;
il                357 drivers/net/wireless/intel/iwlegacy/4965.c 	data_len = il->ucode_init_data.len;
il                359 drivers/net/wireless/intel/iwlegacy/4965.c 	il_wr_prph(il, BSM_DRAM_INST_PTR_REG, pinst);
il                360 drivers/net/wireless/intel/iwlegacy/4965.c 	il_wr_prph(il, BSM_DRAM_DATA_PTR_REG, pdata);
il                361 drivers/net/wireless/intel/iwlegacy/4965.c 	il_wr_prph(il, BSM_DRAM_INST_BYTECOUNT_REG, inst_len);
il                362 drivers/net/wireless/intel/iwlegacy/4965.c 	il_wr_prph(il, BSM_DRAM_DATA_BYTECOUNT_REG, data_len);
il                368 drivers/net/wireless/intel/iwlegacy/4965.c 		_il_wr_prph(il, reg_offset, le32_to_cpu(*image));
il                370 drivers/net/wireless/intel/iwlegacy/4965.c 	ret = il4965_verify_bsm(il);
il                375 drivers/net/wireless/intel/iwlegacy/4965.c 	il_wr_prph(il, BSM_WR_MEM_SRC_REG, 0x0);
il                376 drivers/net/wireless/intel/iwlegacy/4965.c 	il_wr_prph(il, BSM_WR_MEM_DST_REG, IL49_RTC_INST_LOWER_BOUND);
il                377 drivers/net/wireless/intel/iwlegacy/4965.c 	il_wr_prph(il, BSM_WR_DWCOUNT_REG, len / sizeof(u32));
il                381 drivers/net/wireless/intel/iwlegacy/4965.c 	il_wr_prph(il, BSM_WR_CTRL_REG, BSM_WR_CTRL_REG_BIT_START);
il                385 drivers/net/wireless/intel/iwlegacy/4965.c 		done = il_rd_prph(il, BSM_WR_CTRL_REG);
il                399 drivers/net/wireless/intel/iwlegacy/4965.c 	il_wr_prph(il, BSM_WR_CTRL_REG, BSM_WR_CTRL_REG_BIT_START_EN);
il                414 drivers/net/wireless/intel/iwlegacy/4965.c il4965_set_ucode_ptrs(struct il_priv *il)
il                421 drivers/net/wireless/intel/iwlegacy/4965.c 	pinst = il->ucode_code.p_addr >> 4;
il                422 drivers/net/wireless/intel/iwlegacy/4965.c 	pdata = il->ucode_data_backup.p_addr >> 4;
il                425 drivers/net/wireless/intel/iwlegacy/4965.c 	il_wr_prph(il, BSM_DRAM_INST_PTR_REG, pinst);
il                426 drivers/net/wireless/intel/iwlegacy/4965.c 	il_wr_prph(il, BSM_DRAM_DATA_PTR_REG, pdata);
il                427 drivers/net/wireless/intel/iwlegacy/4965.c 	il_wr_prph(il, BSM_DRAM_DATA_BYTECOUNT_REG, il->ucode_data.len);
il                431 drivers/net/wireless/intel/iwlegacy/4965.c 	il_wr_prph(il, BSM_DRAM_INST_BYTECOUNT_REG,
il                432 drivers/net/wireless/intel/iwlegacy/4965.c 		   il->ucode_code.len | BSM_DRAM_INST_LOAD);
il                450 drivers/net/wireless/intel/iwlegacy/4965.c il4965_init_alive_start(struct il_priv *il)
il                455 drivers/net/wireless/intel/iwlegacy/4965.c 	if (il4965_verify_ucode(il)) {
il                463 drivers/net/wireless/intel/iwlegacy/4965.c 	il->temperature = il4965_hw_get_temperature(il);
il                469 drivers/net/wireless/intel/iwlegacy/4965.c 	if (il4965_set_ucode_ptrs(il)) {
il                478 drivers/net/wireless/intel/iwlegacy/4965.c 	queue_work(il->workqueue, &il->restart);
il                492 drivers/net/wireless/intel/iwlegacy/4965.c il4965_nic_config(struct il_priv *il)
il                497 drivers/net/wireless/intel/iwlegacy/4965.c 	spin_lock_irqsave(&il->lock, flags);
il                499 drivers/net/wireless/intel/iwlegacy/4965.c 	radio_cfg = il_eeprom_query16(il, EEPROM_RADIO_CONFIG);
il                503 drivers/net/wireless/intel/iwlegacy/4965.c 		il_set_bit(il, CSR_HW_IF_CONFIG_REG,
il                509 drivers/net/wireless/intel/iwlegacy/4965.c 	il_set_bit(il, CSR_HW_IF_CONFIG_REG,
il                513 drivers/net/wireless/intel/iwlegacy/4965.c 	il->calib_info =
il                515 drivers/net/wireless/intel/iwlegacy/4965.c 	    il_eeprom_query_addr(il, EEPROM_4965_CALIB_TXPOWER_OFFSET);
il                517 drivers/net/wireless/intel/iwlegacy/4965.c 	spin_unlock_irqrestore(&il->lock, flags);
il                524 drivers/net/wireless/intel/iwlegacy/4965.c il4965_chain_noise_reset(struct il_priv *il)
il                526 drivers/net/wireless/intel/iwlegacy/4965.c 	struct il_chain_noise_data *data = &(il->chain_noise_data);
il                528 drivers/net/wireless/intel/iwlegacy/4965.c 	if (data->state == IL_CHAIN_NOISE_ALIVE && il_is_any_associated(il)) {
il                545 drivers/net/wireless/intel/iwlegacy/4965.c 		if (il_send_cmd_pdu(il, C_PHY_CALIBRATION, sizeof(cmd), &cmd))
il                628 drivers/net/wireless/intel/iwlegacy/4965.c il4965_get_sub_band(const struct il_priv *il, u32 channel)
il                633 drivers/net/wireless/intel/iwlegacy/4965.c 		if (il->calib_info->band_info[b].ch_from == 0)
il                636 drivers/net/wireless/intel/iwlegacy/4965.c 		if (channel >= il->calib_info->band_info[b].ch_from &&
il                637 drivers/net/wireless/intel/iwlegacy/4965.c 		    channel <= il->calib_info->band_info[b].ch_to)
il                666 drivers/net/wireless/intel/iwlegacy/4965.c il4965_interpolate_chan(struct il_priv *il, u32 channel,
il                678 drivers/net/wireless/intel/iwlegacy/4965.c 	s = il4965_get_sub_band(il, channel);
il                684 drivers/net/wireless/intel/iwlegacy/4965.c 	ch_i1 = il->calib_info->band_info[s].ch1.ch_num;
il                685 drivers/net/wireless/intel/iwlegacy/4965.c 	ch_i2 = il->calib_info->band_info[s].ch2.ch_num;
il                693 drivers/net/wireless/intel/iwlegacy/4965.c 			m1 = &(il->calib_info->band_info[s].ch1.
il                695 drivers/net/wireless/intel/iwlegacy/4965.c 			m2 = &(il->calib_info->band_info[s].ch2.
il               1003 drivers/net/wireless/intel/iwlegacy/4965.c il4965_fill_txpower_tbl(struct il_priv *il, u8 band, u16 channel, u8 is_ht40,
il               1033 drivers/net/wireless/intel/iwlegacy/4965.c 	user_target_power = 2 * il->tx_power_user_lmt;
il               1038 drivers/net/wireless/intel/iwlegacy/4965.c 	ch_info = il_get_channel_info(il, il->band, channel);
il               1064 drivers/net/wireless/intel/iwlegacy/4965.c 		saturation_power = il->calib_info->saturation_power24;
il               1066 drivers/net/wireless/intel/iwlegacy/4965.c 		saturation_power = il->calib_info->saturation_power52;
il               1093 drivers/net/wireless/intel/iwlegacy/4965.c 	il4965_interpolate_chan(il, channel, &ch_eeprom_info);
il               1096 drivers/net/wireless/intel/iwlegacy/4965.c 	voltage = le16_to_cpu(il->calib_info->voltage);
il               1097 drivers/net/wireless/intel/iwlegacy/4965.c 	init_voltage = (s32) le32_to_cpu(il->card_alive_init.voltage);
il               1105 drivers/net/wireless/intel/iwlegacy/4965.c 	current_temp = max(il->temperature, IL_TX_POWER_TEMPERATURE_MIN);
il               1106 drivers/net/wireless/intel/iwlegacy/4965.c 	current_temp = min(il->temperature, IL_TX_POWER_TEMPERATURE_MAX);
il               1178 drivers/net/wireless/intel/iwlegacy/4965.c 				    (s32) le32_to_cpu(il->card_alive_init.
il               1241 drivers/net/wireless/intel/iwlegacy/4965.c il4965_send_tx_power(struct il_priv *il)
il               1250 drivers/net/wireless/intel/iwlegacy/4965.c 	    (test_bit(S_SCAN_HW, &il->status),
il               1254 drivers/net/wireless/intel/iwlegacy/4965.c 	band = il->band == NL80211_BAND_2GHZ;
il               1256 drivers/net/wireless/intel/iwlegacy/4965.c 	is_ht40 = iw4965_is_ht40_channel(il->active.flags);
il               1258 drivers/net/wireless/intel/iwlegacy/4965.c 	if (is_ht40 && (il->active.flags & RXON_FLG_CTRL_CHANNEL_LOC_HI_MSK))
il               1262 drivers/net/wireless/intel/iwlegacy/4965.c 	cmd.channel = il->active.channel;
il               1265 drivers/net/wireless/intel/iwlegacy/4965.c 	    il4965_fill_txpower_tbl(il, band, le16_to_cpu(il->active.channel),
il               1270 drivers/net/wireless/intel/iwlegacy/4965.c 	ret = il_send_cmd_pdu(il, C_TX_PWR_TBL, sizeof(cmd), &cmd);
il               1277 drivers/net/wireless/intel/iwlegacy/4965.c il4965_send_rxon_assoc(struct il_priv *il)
il               1281 drivers/net/wireless/intel/iwlegacy/4965.c 	const struct il_rxon_cmd *rxon1 = &il->staging;
il               1282 drivers/net/wireless/intel/iwlegacy/4965.c 	const struct il_rxon_cmd *rxon2 = &il->active;
il               1284 drivers/net/wireless/intel/iwlegacy/4965.c 	lockdep_assert_held(&il->mutex);
il               1299 drivers/net/wireless/intel/iwlegacy/4965.c 	rxon_assoc.flags = il->staging.flags;
il               1300 drivers/net/wireless/intel/iwlegacy/4965.c 	rxon_assoc.filter_flags = il->staging.filter_flags;
il               1301 drivers/net/wireless/intel/iwlegacy/4965.c 	rxon_assoc.ofdm_basic_rates = il->staging.ofdm_basic_rates;
il               1302 drivers/net/wireless/intel/iwlegacy/4965.c 	rxon_assoc.cck_basic_rates = il->staging.cck_basic_rates;
il               1305 drivers/net/wireless/intel/iwlegacy/4965.c 	    il->staging.ofdm_ht_single_stream_basic_rates;
il               1307 drivers/net/wireless/intel/iwlegacy/4965.c 	    il->staging.ofdm_ht_dual_stream_basic_rates;
il               1308 drivers/net/wireless/intel/iwlegacy/4965.c 	rxon_assoc.rx_chain_select_flags = il->staging.rx_chain;
il               1311 drivers/net/wireless/intel/iwlegacy/4965.c 	    il_send_cmd_pdu_async(il, C_RXON_ASSOC, sizeof(rxon_assoc),
il               1318 drivers/net/wireless/intel/iwlegacy/4965.c il4965_commit_rxon(struct il_priv *il)
il               1321 drivers/net/wireless/intel/iwlegacy/4965.c 	struct il_rxon_cmd *active_rxon = (void *)&il->active;
il               1323 drivers/net/wireless/intel/iwlegacy/4965.c 	bool new_assoc = !!(il->staging.filter_flags & RXON_FILTER_ASSOC_MSK);
il               1325 drivers/net/wireless/intel/iwlegacy/4965.c 	if (!il_is_alive(il))
il               1329 drivers/net/wireless/intel/iwlegacy/4965.c 	il->staging.flags |= RXON_FLG_TSF2HOST_MSK;
il               1331 drivers/net/wireless/intel/iwlegacy/4965.c 	ret = il_check_rxon_cmd(il);
il               1341 drivers/net/wireless/intel/iwlegacy/4965.c 	if (test_bit(S_CHANNEL_SWITCH_PENDING, &il->status) &&
il               1342 drivers/net/wireless/intel/iwlegacy/4965.c 	    il->switch_channel != il->staging.channel) {
il               1344 drivers/net/wireless/intel/iwlegacy/4965.c 		      le16_to_cpu(il->switch_channel));
il               1345 drivers/net/wireless/intel/iwlegacy/4965.c 		il_chswitch_done(il, false);
il               1351 drivers/net/wireless/intel/iwlegacy/4965.c 	if (!il_full_rxon_required(il)) {
il               1352 drivers/net/wireless/intel/iwlegacy/4965.c 		ret = il_send_rxon_assoc(il);
il               1358 drivers/net/wireless/intel/iwlegacy/4965.c 		memcpy(active_rxon, &il->staging, sizeof(*active_rxon));
il               1359 drivers/net/wireless/intel/iwlegacy/4965.c 		il_print_rx_config_cmd(il);
il               1364 drivers/net/wireless/intel/iwlegacy/4965.c 		il_set_tx_power(il, il->tx_power_next, false);
il               1372 drivers/net/wireless/intel/iwlegacy/4965.c 	if (il_is_associated(il) && new_assoc) {
il               1377 drivers/net/wireless/intel/iwlegacy/4965.c 		    il_send_cmd_pdu(il, C_RXON,
il               1387 drivers/net/wireless/intel/iwlegacy/4965.c 		il_clear_ucode_stations(il);
il               1388 drivers/net/wireless/intel/iwlegacy/4965.c 		il_restore_stations(il);
il               1389 drivers/net/wireless/intel/iwlegacy/4965.c 		ret = il4965_restore_default_wep_keys(il);
il               1398 drivers/net/wireless/intel/iwlegacy/4965.c 	       le16_to_cpu(il->staging.channel), il->staging.bssid_addr);
il               1400 drivers/net/wireless/intel/iwlegacy/4965.c 	il_set_rxon_hwcrypto(il, !il->cfg->mod_params->sw_crypto);
il               1408 drivers/net/wireless/intel/iwlegacy/4965.c 		    il_send_cmd_pdu(il, C_RXON,
il               1409 drivers/net/wireless/intel/iwlegacy/4965.c 				    sizeof(struct il_rxon_cmd), &il->staging);
il               1415 drivers/net/wireless/intel/iwlegacy/4965.c 		memcpy(active_rxon, &il->staging, sizeof(*active_rxon));
il               1416 drivers/net/wireless/intel/iwlegacy/4965.c 		il_clear_ucode_stations(il);
il               1417 drivers/net/wireless/intel/iwlegacy/4965.c 		il_restore_stations(il);
il               1418 drivers/net/wireless/intel/iwlegacy/4965.c 		ret = il4965_restore_default_wep_keys(il);
il               1425 drivers/net/wireless/intel/iwlegacy/4965.c 		il->start_calib = 0;
il               1430 drivers/net/wireless/intel/iwlegacy/4965.c 		    il_send_cmd_pdu(il, C_RXON,
il               1431 drivers/net/wireless/intel/iwlegacy/4965.c 				    sizeof(struct il_rxon_cmd), &il->staging);
il               1436 drivers/net/wireless/intel/iwlegacy/4965.c 		memcpy(active_rxon, &il->staging, sizeof(*active_rxon));
il               1438 drivers/net/wireless/intel/iwlegacy/4965.c 	il_print_rx_config_cmd(il);
il               1440 drivers/net/wireless/intel/iwlegacy/4965.c 	il4965_init_sensitivity(il);
il               1444 drivers/net/wireless/intel/iwlegacy/4965.c 	ret = il_set_tx_power(il, il->tx_power_next, true);
il               1454 drivers/net/wireless/intel/iwlegacy/4965.c il4965_hw_channel_switch(struct il_priv *il,
il               1467 drivers/net/wireless/intel/iwlegacy/4965.c 	u16 beacon_interval = le16_to_cpu(il->timing.beacon_interval);
il               1468 drivers/net/wireless/intel/iwlegacy/4965.c 	struct ieee80211_vif *vif = il->vif;
il               1469 drivers/net/wireless/intel/iwlegacy/4965.c 	band = (il->band == NL80211_BAND_2GHZ);
il               1474 drivers/net/wireless/intel/iwlegacy/4965.c 	is_ht40 = iw4965_is_ht40_channel(il->staging.flags);
il               1476 drivers/net/wireless/intel/iwlegacy/4965.c 	if (is_ht40 && (il->staging.flags & RXON_FLG_CTRL_CHANNEL_LOC_HI_MSK))
il               1483 drivers/net/wireless/intel/iwlegacy/4965.c 	cmd.rxon_flags = il->staging.flags;
il               1484 drivers/net/wireless/intel/iwlegacy/4965.c 	cmd.rxon_filter_flags = il->staging.filter_flags;
il               1491 drivers/net/wireless/intel/iwlegacy/4965.c 	if (il->ucode_beacon_time > tsf_low && beacon_interval) {
il               1493 drivers/net/wireless/intel/iwlegacy/4965.c 		    ((il->ucode_beacon_time - tsf_low) / beacon_interval)) {
il               1495 drivers/net/wireless/intel/iwlegacy/4965.c 			    (il->ucode_beacon_time - tsf_low) / beacon_interval;
il               1500 drivers/net/wireless/intel/iwlegacy/4965.c 		cmd.switch_time = cpu_to_le32(il->ucode_beacon_time);
il               1505 drivers/net/wireless/intel/iwlegacy/4965.c 		    il_usecs_to_beacons(il, switch_time_in_usec,
il               1508 drivers/net/wireless/intel/iwlegacy/4965.c 		    il_add_beacon_time(il, il->ucode_beacon_time,
il               1512 drivers/net/wireless/intel/iwlegacy/4965.c 	ch_info = il_get_channel_info(il, il->band, ch);
il               1517 drivers/net/wireless/intel/iwlegacy/4965.c 		       il->active.channel, ch);
il               1521 drivers/net/wireless/intel/iwlegacy/4965.c 	rc = il4965_fill_txpower_tbl(il, band, ch, is_ht40, ctrl_chan_high,
il               1528 drivers/net/wireless/intel/iwlegacy/4965.c 	return il_send_cmd_pdu(il, C_CHANNEL_SWITCH, sizeof(cmd), &cmd);
il               1535 drivers/net/wireless/intel/iwlegacy/4965.c il4965_txq_update_byte_cnt_tbl(struct il_priv *il, struct il_tx_queue *txq,
il               1538 drivers/net/wireless/intel/iwlegacy/4965.c 	struct il4965_scd_bc_tbl *scd_bc_tbl = il->scd_bc_tbls.addr;
il               1563 drivers/net/wireless/intel/iwlegacy/4965.c il4965_hw_get_temperature(struct il_priv *il)
il               1570 drivers/net/wireless/intel/iwlegacy/4965.c 	if (test_bit(S_TEMPERATURE, &il->status) &&
il               1571 drivers/net/wireless/intel/iwlegacy/4965.c 	    (il->_4965.stats.flag & STATS_REPLY_FLG_HT40_MODE_MSK)) {
il               1573 drivers/net/wireless/intel/iwlegacy/4965.c 		R1 = (s32) le32_to_cpu(il->card_alive_init.therm_r1[1]);
il               1574 drivers/net/wireless/intel/iwlegacy/4965.c 		R2 = (s32) le32_to_cpu(il->card_alive_init.therm_r2[1]);
il               1575 drivers/net/wireless/intel/iwlegacy/4965.c 		R3 = (s32) le32_to_cpu(il->card_alive_init.therm_r3[1]);
il               1576 drivers/net/wireless/intel/iwlegacy/4965.c 		R4 = le32_to_cpu(il->card_alive_init.therm_r4[1]);
il               1579 drivers/net/wireless/intel/iwlegacy/4965.c 		R1 = (s32) le32_to_cpu(il->card_alive_init.therm_r1[0]);
il               1580 drivers/net/wireless/intel/iwlegacy/4965.c 		R2 = (s32) le32_to_cpu(il->card_alive_init.therm_r2[0]);
il               1581 drivers/net/wireless/intel/iwlegacy/4965.c 		R3 = (s32) le32_to_cpu(il->card_alive_init.therm_r3[0]);
il               1582 drivers/net/wireless/intel/iwlegacy/4965.c 		R4 = le32_to_cpu(il->card_alive_init.therm_r4[0]);
il               1592 drivers/net/wireless/intel/iwlegacy/4965.c 	if (!test_bit(S_TEMPERATURE, &il->status))
il               1596 drivers/net/wireless/intel/iwlegacy/4965.c 				   (il->_4965.stats.general.common.temperature),
il               1632 drivers/net/wireless/intel/iwlegacy/4965.c il4965_is_temp_calib_needed(struct il_priv *il)
il               1636 drivers/net/wireless/intel/iwlegacy/4965.c 	if (!test_bit(S_STATS, &il->status)) {
il               1641 drivers/net/wireless/intel/iwlegacy/4965.c 	temp_diff = il->temperature - il->last_temperature;
il               1663 drivers/net/wireless/intel/iwlegacy/4965.c il4965_temperature_calib(struct il_priv *il)
il               1667 drivers/net/wireless/intel/iwlegacy/4965.c 	temp = il4965_hw_get_temperature(il);
il               1671 drivers/net/wireless/intel/iwlegacy/4965.c 	if (il->temperature != temp) {
il               1672 drivers/net/wireless/intel/iwlegacy/4965.c 		if (il->temperature)
il               1674 drivers/net/wireless/intel/iwlegacy/4965.c 			       KELVIN_TO_CELSIUS(il->temperature),
il               1681 drivers/net/wireless/intel/iwlegacy/4965.c 	il->temperature = temp;
il               1682 drivers/net/wireless/intel/iwlegacy/4965.c 	set_bit(S_TEMPERATURE, &il->status);
il               1684 drivers/net/wireless/intel/iwlegacy/4965.c 	if (!il->disable_tx_power_cal &&
il               1685 drivers/net/wireless/intel/iwlegacy/4965.c 	    unlikely(!test_bit(S_SCANNING, &il->status)) &&
il               1686 drivers/net/wireless/intel/iwlegacy/4965.c 	    il4965_is_temp_calib_needed(il))
il               1687 drivers/net/wireless/intel/iwlegacy/4965.c 		queue_work(il->workqueue, &il->txpower_work);
il               1722 drivers/net/wireless/intel/iwlegacy/4965.c il4965_post_scan(struct il_priv *il)
il               1728 drivers/net/wireless/intel/iwlegacy/4965.c 	if (memcmp(&il->staging, &il->active, sizeof(il->staging)))
il               1729 drivers/net/wireless/intel/iwlegacy/4965.c 		il_commit_rxon(il);
il               1733 drivers/net/wireless/intel/iwlegacy/4965.c il4965_post_associate(struct il_priv *il)
il               1735 drivers/net/wireless/intel/iwlegacy/4965.c 	struct ieee80211_vif *vif = il->vif;
il               1738 drivers/net/wireless/intel/iwlegacy/4965.c 	if (!vif || !il->is_open)
il               1741 drivers/net/wireless/intel/iwlegacy/4965.c 	if (test_bit(S_EXIT_PENDING, &il->status))
il               1744 drivers/net/wireless/intel/iwlegacy/4965.c 	il_scan_cancel_timeout(il, 200);
il               1746 drivers/net/wireless/intel/iwlegacy/4965.c 	il->staging.filter_flags &= ~RXON_FILTER_ASSOC_MSK;
il               1747 drivers/net/wireless/intel/iwlegacy/4965.c 	il_commit_rxon(il);
il               1749 drivers/net/wireless/intel/iwlegacy/4965.c 	ret = il_send_rxon_timing(il);
il               1753 drivers/net/wireless/intel/iwlegacy/4965.c 	il->staging.filter_flags |= RXON_FILTER_ASSOC_MSK;
il               1755 drivers/net/wireless/intel/iwlegacy/4965.c 	il_set_rxon_ht(il, &il->current_ht_config);
il               1757 drivers/net/wireless/intel/iwlegacy/4965.c 	if (il->ops->set_rxon_chain)
il               1758 drivers/net/wireless/intel/iwlegacy/4965.c 		il->ops->set_rxon_chain(il);
il               1760 drivers/net/wireless/intel/iwlegacy/4965.c 	il->staging.assoc_id = cpu_to_le16(vif->bss_conf.aid);
il               1766 drivers/net/wireless/intel/iwlegacy/4965.c 		il->staging.flags |= RXON_FLG_SHORT_PREAMBLE_MSK;
il               1768 drivers/net/wireless/intel/iwlegacy/4965.c 		il->staging.flags &= ~RXON_FLG_SHORT_PREAMBLE_MSK;
il               1770 drivers/net/wireless/intel/iwlegacy/4965.c 	if (il->staging.flags & RXON_FLG_BAND_24G_MSK) {
il               1772 drivers/net/wireless/intel/iwlegacy/4965.c 			il->staging.flags |= RXON_FLG_SHORT_SLOT_MSK;
il               1774 drivers/net/wireless/intel/iwlegacy/4965.c 			il->staging.flags &= ~RXON_FLG_SHORT_SLOT_MSK;
il               1777 drivers/net/wireless/intel/iwlegacy/4965.c 	il_commit_rxon(il);
il               1780 drivers/net/wireless/intel/iwlegacy/4965.c 		il->active.bssid_addr);
il               1786 drivers/net/wireless/intel/iwlegacy/4965.c 		il4965_send_beacon_cmd(il);
il               1797 drivers/net/wireless/intel/iwlegacy/4965.c 	if (il->chain_noise_data.state == IL_CHAIN_NOISE_DONE)
il               1798 drivers/net/wireless/intel/iwlegacy/4965.c 		il_power_update_mode(il, false);
il               1801 drivers/net/wireless/intel/iwlegacy/4965.c 	il4965_chain_noise_reset(il);
il               1802 drivers/net/wireless/intel/iwlegacy/4965.c 	il->start_calib = 1;
il               1806 drivers/net/wireless/intel/iwlegacy/4965.c il4965_config_ap(struct il_priv *il)
il               1808 drivers/net/wireless/intel/iwlegacy/4965.c 	struct ieee80211_vif *vif = il->vif;
il               1811 drivers/net/wireless/intel/iwlegacy/4965.c 	lockdep_assert_held(&il->mutex);
il               1813 drivers/net/wireless/intel/iwlegacy/4965.c 	if (test_bit(S_EXIT_PENDING, &il->status))
il               1817 drivers/net/wireless/intel/iwlegacy/4965.c 	if (!il_is_associated(il)) {
il               1820 drivers/net/wireless/intel/iwlegacy/4965.c 		il->staging.filter_flags &= ~RXON_FILTER_ASSOC_MSK;
il               1821 drivers/net/wireless/intel/iwlegacy/4965.c 		il_commit_rxon(il);
il               1824 drivers/net/wireless/intel/iwlegacy/4965.c 		ret = il_send_rxon_timing(il);
il               1830 drivers/net/wireless/intel/iwlegacy/4965.c 		il->chain_noise_data.active_chains = il->hw_params.valid_rx_ant;
il               1831 drivers/net/wireless/intel/iwlegacy/4965.c 		il_set_rxon_ht(il, &il->current_ht_config);
il               1832 drivers/net/wireless/intel/iwlegacy/4965.c 		if (il->ops->set_rxon_chain)
il               1833 drivers/net/wireless/intel/iwlegacy/4965.c 			il->ops->set_rxon_chain(il);
il               1835 drivers/net/wireless/intel/iwlegacy/4965.c 		il->staging.assoc_id = 0;
il               1838 drivers/net/wireless/intel/iwlegacy/4965.c 			il->staging.flags |= RXON_FLG_SHORT_PREAMBLE_MSK;
il               1840 drivers/net/wireless/intel/iwlegacy/4965.c 			il->staging.flags &= ~RXON_FLG_SHORT_PREAMBLE_MSK;
il               1842 drivers/net/wireless/intel/iwlegacy/4965.c 		if (il->staging.flags & RXON_FLG_BAND_24G_MSK) {
il               1844 drivers/net/wireless/intel/iwlegacy/4965.c 				il->staging.flags |= RXON_FLG_SHORT_SLOT_MSK;
il               1846 drivers/net/wireless/intel/iwlegacy/4965.c 				il->staging.flags &= ~RXON_FLG_SHORT_SLOT_MSK;
il               1849 drivers/net/wireless/intel/iwlegacy/4965.c 		il4965_send_beacon_cmd(il);
il               1851 drivers/net/wireless/intel/iwlegacy/4965.c 		il->staging.filter_flags |= RXON_FILTER_ASSOC_MSK;
il               1852 drivers/net/wireless/intel/iwlegacy/4965.c 		il_commit_rxon(il);
il               1854 drivers/net/wireless/intel/iwlegacy/4965.c 	il4965_send_beacon_cmd(il);
il                 28 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_free_tfds_in_queue(struct il_priv *il, int sta_id, int tid,
il                 32 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_set_rxon_chain(struct il_priv *il);
il                 35 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_verify_ucode(struct il_priv *il);
il                 38 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_check_abort_status(struct il_priv *il, u8 frame_count, u32 status);
il                 40 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_rx_queue_reset(struct il_priv *il, struct il_rx_queue *rxq);
il                 41 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_rx_init(struct il_priv *il, struct il_rx_queue *rxq);
il                 42 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_hw_nic_init(struct il_priv *il);
il                 43 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_dump_fh(struct il_priv *il, char **buf, bool display);
il                 45 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_nic_config(struct il_priv *il);
il                 48 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_rx_queue_restock(struct il_priv *il);
il                 49 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_rx_replenish(struct il_priv *il);
il                 50 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_rx_replenish_now(struct il_priv *il);
il                 51 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_rx_queue_free(struct il_priv *il, struct il_rx_queue *rxq);
il                 52 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_rxq_stop(struct il_priv *il);
il                 54 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_rx_handle(struct il_priv *il);
il                 57 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_hw_txq_free_tfd(struct il_priv *il, struct il_tx_queue *txq);
il                 58 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_hw_txq_attach_buf_to_tfd(struct il_priv *il, struct il_tx_queue *txq,
il                 60 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_hw_tx_queue_init(struct il_priv *il, struct il_tx_queue *txq);
il                 61 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_hwrate_to_tx_control(struct il_priv *il, u32 rate_n_flags,
il                 63 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_tx_skb(struct il_priv *il,
il                 66 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_tx_agg_start(struct il_priv *il, struct ieee80211_vif *vif,
il                 68 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_tx_agg_stop(struct il_priv *il, struct ieee80211_vif *vif,
il                 70 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_txq_check_empty(struct il_priv *il, int sta_id, u8 tid, int txq_id);
il                 71 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_tx_queue_reclaim(struct il_priv *il, int txq_id, int idx);
il                 72 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_hw_txq_ctx_free(struct il_priv *il);
il                 73 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_txq_ctx_alloc(struct il_priv *il);
il                 74 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_txq_ctx_reset(struct il_priv *il);
il                 75 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_txq_ctx_stop(struct il_priv *il);
il                 76 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_txq_set_sched(struct il_priv *il, u32 mask);
il                 81 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_set_wr_ptrs(struct il_priv *il, int txq_id, u32 idx);
il                 89 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_tx_queue_set_status(struct il_priv *il, struct il_tx_queue *txq,
il                 93 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_request_scan(struct il_priv *il, struct ieee80211_vif *vif);
il                 96 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_manage_ibss_station(struct il_priv *il, struct ieee80211_vif *vif,
il                100 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_send_beacon_cmd(struct il_priv *il);
il                113 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_alloc_bcast_station(struct il_priv *il);
il                114 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_add_bssid_station(struct il_priv *il, const u8 *addr, u8 *sta_id_r);
il                115 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_remove_default_wep_key(struct il_priv *il,
il                117 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_set_default_wep_key(struct il_priv *il,
il                119 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_restore_default_wep_keys(struct il_priv *il);
il                120 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_set_dynamic_key(struct il_priv *il,
il                122 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_remove_dynamic_key(struct il_priv *il,
il                124 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_update_tkip_key(struct il_priv *il,
il                128 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_sta_tx_modify_enable_tid(struct il_priv *il, int sta_id, int tid);
il                129 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_sta_rx_agg_start(struct il_priv *il, struct ieee80211_sta *sta,
il                131 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_sta_rx_agg_stop(struct il_priv *il, struct ieee80211_sta *sta,
il                133 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_sta_modify_sleep_tx_count(struct il_priv *il, int sta_id, int cnt);
il                134 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_update_bcast_stations(struct il_priv *il);
il                144 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_eeprom_get_mac(const struct il_priv *il, u8 * mac);
il                145 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_eeprom_acquire_semaphore(struct il_priv *il);
il                146 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_eeprom_release_semaphore(struct il_priv *il);
il                147 drivers/net/wireless/intel/iwlegacy/4965.h int il4965_eeprom_check_version(struct il_priv *il);
il                174 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_led_enable(struct il_priv *il);
il                256 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_temperature_calib(struct il_priv *il);
il                907 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_chain_noise_calibration(struct il_priv *il, void *stat_resp);
il                908 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_sensitivity_calibration(struct il_priv *il, void *resp);
il                909 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_init_sensitivity(struct il_priv *il);
il                910 drivers/net/wireless/intel/iwlegacy/4965.h void il4965_reset_run_time_calib(struct il_priv *il);
il                 27 drivers/net/wireless/intel/iwlegacy/common.c _il_poll_bit(struct il_priv *il, u32 addr, u32 bits, u32 mask, int timeout)
il                 33 drivers/net/wireless/intel/iwlegacy/common.c 		if ((_il_rd(il, addr) & mask) == (bits & mask))
il                 66 drivers/net/wireless/intel/iwlegacy/common.c _il_grab_nic_access(struct il_priv *il)
il                 72 drivers/net/wireless/intel/iwlegacy/common.c 	_il_set_bit(il, CSR_GP_CNTRL, CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ);
il                 92 drivers/net/wireless/intel/iwlegacy/common.c 	    _il_poll_bit(il, CSR_GP_CNTRL, CSR_GP_CNTRL_REG_VAL_MAC_ACCESS_EN,
il                 96 drivers/net/wireless/intel/iwlegacy/common.c 		val = _il_rd(il, CSR_GP_CNTRL);
il                 99 drivers/net/wireless/intel/iwlegacy/common.c 		_il_wr(il, CSR_RESET, CSR_RESET_REG_FLAG_FORCE_NMI);
il                108 drivers/net/wireless/intel/iwlegacy/common.c il_poll_bit(struct il_priv *il, u32 addr, u32 mask, int timeout)
il                114 drivers/net/wireless/intel/iwlegacy/common.c 		if ((il_rd(il, addr) & mask) == mask)
il                125 drivers/net/wireless/intel/iwlegacy/common.c il_rd_prph(struct il_priv *il, u32 reg)
il                130 drivers/net/wireless/intel/iwlegacy/common.c 	spin_lock_irqsave(&il->reg_lock, reg_flags);
il                131 drivers/net/wireless/intel/iwlegacy/common.c 	_il_grab_nic_access(il);
il                132 drivers/net/wireless/intel/iwlegacy/common.c 	val = _il_rd_prph(il, reg);
il                133 drivers/net/wireless/intel/iwlegacy/common.c 	_il_release_nic_access(il);
il                134 drivers/net/wireless/intel/iwlegacy/common.c 	spin_unlock_irqrestore(&il->reg_lock, reg_flags);
il                140 drivers/net/wireless/intel/iwlegacy/common.c il_wr_prph(struct il_priv *il, u32 addr, u32 val)
il                144 drivers/net/wireless/intel/iwlegacy/common.c 	spin_lock_irqsave(&il->reg_lock, reg_flags);
il                145 drivers/net/wireless/intel/iwlegacy/common.c 	if (likely(_il_grab_nic_access(il))) {
il                146 drivers/net/wireless/intel/iwlegacy/common.c 		_il_wr_prph(il, addr, val);
il                147 drivers/net/wireless/intel/iwlegacy/common.c 		_il_release_nic_access(il);
il                149 drivers/net/wireless/intel/iwlegacy/common.c 	spin_unlock_irqrestore(&il->reg_lock, reg_flags);
il                154 drivers/net/wireless/intel/iwlegacy/common.c il_read_targ_mem(struct il_priv *il, u32 addr)
il                159 drivers/net/wireless/intel/iwlegacy/common.c 	spin_lock_irqsave(&il->reg_lock, reg_flags);
il                160 drivers/net/wireless/intel/iwlegacy/common.c 	_il_grab_nic_access(il);
il                162 drivers/net/wireless/intel/iwlegacy/common.c 	_il_wr(il, HBUS_TARG_MEM_RADDR, addr);
il                163 drivers/net/wireless/intel/iwlegacy/common.c 	value = _il_rd(il, HBUS_TARG_MEM_RDAT);
il                165 drivers/net/wireless/intel/iwlegacy/common.c 	_il_release_nic_access(il);
il                166 drivers/net/wireless/intel/iwlegacy/common.c 	spin_unlock_irqrestore(&il->reg_lock, reg_flags);
il                172 drivers/net/wireless/intel/iwlegacy/common.c il_write_targ_mem(struct il_priv *il, u32 addr, u32 val)
il                176 drivers/net/wireless/intel/iwlegacy/common.c 	spin_lock_irqsave(&il->reg_lock, reg_flags);
il                177 drivers/net/wireless/intel/iwlegacy/common.c 	if (likely(_il_grab_nic_access(il))) {
il                178 drivers/net/wireless/intel/iwlegacy/common.c 		_il_wr(il, HBUS_TARG_MEM_WADDR, addr);
il                179 drivers/net/wireless/intel/iwlegacy/common.c 		_il_wr(il, HBUS_TARG_MEM_WDAT, val);
il                180 drivers/net/wireless/intel/iwlegacy/common.c 		_il_release_nic_access(il);
il                182 drivers/net/wireless/intel/iwlegacy/common.c 	spin_unlock_irqrestore(&il->reg_lock, reg_flags);
il                241 drivers/net/wireless/intel/iwlegacy/common.c il_generic_cmd_callback(struct il_priv *il, struct il_device_cmd *cmd,
il                264 drivers/net/wireless/intel/iwlegacy/common.c il_send_cmd_async(struct il_priv *il, struct il_host_cmd *cmd)
il                277 drivers/net/wireless/intel/iwlegacy/common.c 	if (test_bit(S_EXIT_PENDING, &il->status))
il                280 drivers/net/wireless/intel/iwlegacy/common.c 	ret = il_enqueue_hcmd(il, cmd);
il                290 drivers/net/wireless/intel/iwlegacy/common.c il_send_cmd_sync(struct il_priv *il, struct il_host_cmd *cmd)
il                295 drivers/net/wireless/intel/iwlegacy/common.c 	lockdep_assert_held(&il->mutex);
il                305 drivers/net/wireless/intel/iwlegacy/common.c 	set_bit(S_HCMD_ACTIVE, &il->status);
il                309 drivers/net/wireless/intel/iwlegacy/common.c 	cmd_idx = il_enqueue_hcmd(il, cmd);
il                317 drivers/net/wireless/intel/iwlegacy/common.c 	ret = wait_event_timeout(il->wait_command_queue,
il                318 drivers/net/wireless/intel/iwlegacy/common.c 				 !test_bit(S_HCMD_ACTIVE, &il->status),
il                321 drivers/net/wireless/intel/iwlegacy/common.c 		if (test_bit(S_HCMD_ACTIVE, &il->status)) {
il                326 drivers/net/wireless/intel/iwlegacy/common.c 			clear_bit(S_HCMD_ACTIVE, &il->status);
il                334 drivers/net/wireless/intel/iwlegacy/common.c 	if (test_bit(S_RFKILL, &il->status)) {
il                340 drivers/net/wireless/intel/iwlegacy/common.c 	if (test_bit(S_FW_ERROR, &il->status)) {
il                364 drivers/net/wireless/intel/iwlegacy/common.c 		il->txq[il->cmd_queue].meta[cmd_idx].flags &= ~CMD_WANT_SKB;
il                368 drivers/net/wireless/intel/iwlegacy/common.c 		il_free_pages(il, cmd->reply_page);
il                377 drivers/net/wireless/intel/iwlegacy/common.c il_send_cmd(struct il_priv *il, struct il_host_cmd *cmd)
il                380 drivers/net/wireless/intel/iwlegacy/common.c 		return il_send_cmd_async(il, cmd);
il                382 drivers/net/wireless/intel/iwlegacy/common.c 	return il_send_cmd_sync(il, cmd);
il                387 drivers/net/wireless/intel/iwlegacy/common.c il_send_cmd_pdu(struct il_priv *il, u8 id, u16 len, const void *data)
il                395 drivers/net/wireless/intel/iwlegacy/common.c 	return il_send_cmd_sync(il, &cmd);
il                400 drivers/net/wireless/intel/iwlegacy/common.c il_send_cmd_pdu_async(struct il_priv *il, u8 id, u16 len, const void *data,
il                401 drivers/net/wireless/intel/iwlegacy/common.c 		      void (*callback) (struct il_priv *il,
il                414 drivers/net/wireless/intel/iwlegacy/common.c 	return il_send_cmd_async(il, &cmd);
il                462 drivers/net/wireless/intel/iwlegacy/common.c il_blink_compensation(struct il_priv *il, u8 time, u16 compensation)
il                475 drivers/net/wireless/intel/iwlegacy/common.c il_led_cmd(struct il_priv *il, unsigned long on, unsigned long off)
il                483 drivers/net/wireless/intel/iwlegacy/common.c 	if (!test_bit(S_READY, &il->status))
il                486 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->blink_on == on && il->blink_off == off)
il                495 drivers/net/wireless/intel/iwlegacy/common.c 	      il->cfg->led_compensation);
il                497 drivers/net/wireless/intel/iwlegacy/common.c 	    il_blink_compensation(il, on,
il                498 drivers/net/wireless/intel/iwlegacy/common.c 				  il->cfg->led_compensation);
il                500 drivers/net/wireless/intel/iwlegacy/common.c 	    il_blink_compensation(il, off,
il                501 drivers/net/wireless/intel/iwlegacy/common.c 				  il->cfg->led_compensation);
il                503 drivers/net/wireless/intel/iwlegacy/common.c 	ret = il->ops->send_led_cmd(il, &led_cmd);
il                505 drivers/net/wireless/intel/iwlegacy/common.c 		il->blink_on = on;
il                506 drivers/net/wireless/intel/iwlegacy/common.c 		il->blink_off = off;
il                515 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_priv *il = container_of(led_cdev, struct il_priv, led);
il                521 drivers/net/wireless/intel/iwlegacy/common.c 	il_led_cmd(il, on, 0);
il                528 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_priv *il = container_of(led_cdev, struct il_priv, led);
il                530 drivers/net/wireless/intel/iwlegacy/common.c 	return il_led_cmd(il, *delay_on, *delay_off);
il                534 drivers/net/wireless/intel/iwlegacy/common.c il_leds_init(struct il_priv *il)
il                540 drivers/net/wireless/intel/iwlegacy/common.c 		mode = il->cfg->led_mode;
il                542 drivers/net/wireless/intel/iwlegacy/common.c 	il->led.name =
il                543 drivers/net/wireless/intel/iwlegacy/common.c 	    kasprintf(GFP_KERNEL, "%s-led", wiphy_name(il->hw->wiphy));
il                544 drivers/net/wireless/intel/iwlegacy/common.c 	il->led.brightness_set = il_led_brightness_set;
il                545 drivers/net/wireless/intel/iwlegacy/common.c 	il->led.blink_set = il_led_blink_set;
il                546 drivers/net/wireless/intel/iwlegacy/common.c 	il->led.max_brightness = 1;
il                553 drivers/net/wireless/intel/iwlegacy/common.c 		il->led.default_trigger =
il                554 drivers/net/wireless/intel/iwlegacy/common.c 		    ieee80211_create_tpt_led_trigger(il->hw,
il                560 drivers/net/wireless/intel/iwlegacy/common.c 		il->led.default_trigger = ieee80211_get_radio_led_name(il->hw);
il                564 drivers/net/wireless/intel/iwlegacy/common.c 	ret = led_classdev_register(&il->pci_dev->dev, &il->led);
il                566 drivers/net/wireless/intel/iwlegacy/common.c 		kfree(il->led.name);
il                570 drivers/net/wireless/intel/iwlegacy/common.c 	il->led_registered = true;
il                575 drivers/net/wireless/intel/iwlegacy/common.c il_leds_exit(struct il_priv *il)
il                577 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il->led_registered)
il                580 drivers/net/wireless/intel/iwlegacy/common.c 	led_classdev_unregister(&il->led);
il                581 drivers/net/wireless/intel/iwlegacy/common.c 	kfree(il->led.name);
il                653 drivers/net/wireless/intel/iwlegacy/common.c il_eeprom_verify_signature(struct il_priv *il)
il                655 drivers/net/wireless/intel/iwlegacy/common.c 	u32 gp = _il_rd(il, CSR_EEPROM_GP) & CSR_EEPROM_GP_VALID_MSK;
il                672 drivers/net/wireless/intel/iwlegacy/common.c il_eeprom_query_addr(const struct il_priv *il, size_t offset)
il                674 drivers/net/wireless/intel/iwlegacy/common.c 	BUG_ON(offset >= il->cfg->eeprom_size);
il                675 drivers/net/wireless/intel/iwlegacy/common.c 	return &il->eeprom[offset];
il                680 drivers/net/wireless/intel/iwlegacy/common.c il_eeprom_query16(const struct il_priv *il, size_t offset)
il                682 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il->eeprom)
il                684 drivers/net/wireless/intel/iwlegacy/common.c 	return (u16) il->eeprom[offset] | ((u16) il->eeprom[offset + 1] << 8);
il                696 drivers/net/wireless/intel/iwlegacy/common.c il_eeprom_init(struct il_priv *il)
il                699 drivers/net/wireless/intel/iwlegacy/common.c 	u32 gp = _il_rd(il, CSR_EEPROM_GP);
il                705 drivers/net/wireless/intel/iwlegacy/common.c 	sz = il->cfg->eeprom_size;
il                707 drivers/net/wireless/intel/iwlegacy/common.c 	il->eeprom = kzalloc(sz, GFP_KERNEL);
il                708 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il->eeprom)
il                711 drivers/net/wireless/intel/iwlegacy/common.c 	e = (__le16 *) il->eeprom;
il                713 drivers/net/wireless/intel/iwlegacy/common.c 	il->ops->apm_init(il);
il                715 drivers/net/wireless/intel/iwlegacy/common.c 	ret = il_eeprom_verify_signature(il);
il                723 drivers/net/wireless/intel/iwlegacy/common.c 	ret = il->ops->eeprom_acquire_semaphore(il);
il                734 drivers/net/wireless/intel/iwlegacy/common.c 		_il_wr(il, CSR_EEPROM_REG,
il                738 drivers/net/wireless/intel/iwlegacy/common.c 		    _il_poll_bit(il, CSR_EEPROM_REG,
il                746 drivers/net/wireless/intel/iwlegacy/common.c 		r = _il_rd(il, CSR_EEPROM_REG);
il                751 drivers/net/wireless/intel/iwlegacy/common.c 		 il_eeprom_query16(il, EEPROM_VERSION));
il                755 drivers/net/wireless/intel/iwlegacy/common.c 	il->ops->eeprom_release_semaphore(il);
il                759 drivers/net/wireless/intel/iwlegacy/common.c 		il_eeprom_free(il);
il                761 drivers/net/wireless/intel/iwlegacy/common.c 	il_apm_stop(il);
il                767 drivers/net/wireless/intel/iwlegacy/common.c il_eeprom_free(struct il_priv *il)
il                769 drivers/net/wireless/intel/iwlegacy/common.c 	kfree(il->eeprom);
il                770 drivers/net/wireless/intel/iwlegacy/common.c 	il->eeprom = NULL;
il                775 drivers/net/wireless/intel/iwlegacy/common.c il_init_band_reference(const struct il_priv *il, int eep_band,
il                780 drivers/net/wireless/intel/iwlegacy/common.c 	u32 offset = il->cfg->regulatory_bands[eep_band - 1];
il                786 drivers/net/wireless/intel/iwlegacy/common.c 		    (struct il_eeprom_channel *)il_eeprom_query_addr(il,
il                793 drivers/net/wireless/intel/iwlegacy/common.c 		    (struct il_eeprom_channel *)il_eeprom_query_addr(il,
il                800 drivers/net/wireless/intel/iwlegacy/common.c 		    (struct il_eeprom_channel *)il_eeprom_query_addr(il,
il                807 drivers/net/wireless/intel/iwlegacy/common.c 		    (struct il_eeprom_channel *)il_eeprom_query_addr(il,
il                814 drivers/net/wireless/intel/iwlegacy/common.c 		    (struct il_eeprom_channel *)il_eeprom_query_addr(il,
il                821 drivers/net/wireless/intel/iwlegacy/common.c 		    (struct il_eeprom_channel *)il_eeprom_query_addr(il,
il                828 drivers/net/wireless/intel/iwlegacy/common.c 		    (struct il_eeprom_channel *)il_eeprom_query_addr(il,
il                845 drivers/net/wireless/intel/iwlegacy/common.c il_mod_ht40_chan_info(struct il_priv *il, enum nl80211_band band, u16 channel,
il                852 drivers/net/wireless/intel/iwlegacy/common.c 	    (struct il_channel_info *)il_get_channel_info(il, band, channel);
il                884 drivers/net/wireless/intel/iwlegacy/common.c il_init_channel_map(struct il_priv *il)
il                892 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->channel_count) {
il                899 drivers/net/wireless/intel/iwlegacy/common.c 	il->channel_count =
il                904 drivers/net/wireless/intel/iwlegacy/common.c 	D_EEPROM("Parsing data for %d channels.\n", il->channel_count);
il                906 drivers/net/wireless/intel/iwlegacy/common.c 	il->channel_info =
il                907 drivers/net/wireless/intel/iwlegacy/common.c 	    kcalloc(il->channel_count, sizeof(struct il_channel_info),
il                909 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il->channel_info) {
il                911 drivers/net/wireless/intel/iwlegacy/common.c 		il->channel_count = 0;
il                915 drivers/net/wireless/intel/iwlegacy/common.c 	ch_info = il->channel_info;
il                922 drivers/net/wireless/intel/iwlegacy/common.c 		il_init_band_reference(il, band, &eeprom_ch_count,
il                982 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->cfg->regulatory_bands[5] == EEPROM_REGULATORY_BAND_NO_HT40 &&
il                983 drivers/net/wireless/intel/iwlegacy/common.c 	    il->cfg->regulatory_bands[6] == EEPROM_REGULATORY_BAND_NO_HT40)
il                990 drivers/net/wireless/intel/iwlegacy/common.c 		il_init_band_reference(il, band, &eeprom_ch_count,
il               1000 drivers/net/wireless/intel/iwlegacy/common.c 			il_mod_ht40_chan_info(il, ieeeband, eeprom_ch_idx[ch],
il               1005 drivers/net/wireless/intel/iwlegacy/common.c 			il_mod_ht40_chan_info(il, ieeeband,
il               1020 drivers/net/wireless/intel/iwlegacy/common.c il_free_channel_map(struct il_priv *il)
il               1022 drivers/net/wireless/intel/iwlegacy/common.c 	kfree(il->channel_info);
il               1023 drivers/net/wireless/intel/iwlegacy/common.c 	il->channel_count = 0;
il               1033 drivers/net/wireless/intel/iwlegacy/common.c il_get_channel_info(const struct il_priv *il, enum nl80211_band band,
il               1040 drivers/net/wireless/intel/iwlegacy/common.c 		for (i = 14; i < il->channel_count; i++) {
il               1041 drivers/net/wireless/intel/iwlegacy/common.c 			if (il->channel_info[i].channel == channel)
il               1042 drivers/net/wireless/intel/iwlegacy/common.c 				return &il->channel_info[i];
il               1047 drivers/net/wireless/intel/iwlegacy/common.c 			return &il->channel_info[channel - 1];
il               1073 drivers/net/wireless/intel/iwlegacy/common.c il_build_powertable_cmd(struct il_priv *il, struct il_powertable_cmd *cmd)
il               1086 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->power_data.pci_pm)
il               1090 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->power_data.ps_disabled)
il               1100 drivers/net/wireless/intel/iwlegacy/common.c 	dtim_period = il->vif ? il->vif->bss_conf.dtim_period : 0;
il               1140 drivers/net/wireless/intel/iwlegacy/common.c il_set_power(struct il_priv *il, struct il_powertable_cmd *cmd)
il               1153 drivers/net/wireless/intel/iwlegacy/common.c 	return il_send_cmd_pdu(il, C_POWER_TBL,
il               1158 drivers/net/wireless/intel/iwlegacy/common.c il_power_set_mode(struct il_priv *il, struct il_powertable_cmd *cmd, bool force)
il               1163 drivers/net/wireless/intel/iwlegacy/common.c 	lockdep_assert_held(&il->mutex);
il               1166 drivers/net/wireless/intel/iwlegacy/common.c 	update_chains = il->chain_noise_data.state == IL_CHAIN_NOISE_DONE ||
il               1167 drivers/net/wireless/intel/iwlegacy/common.c 	    il->chain_noise_data.state == IL_CHAIN_NOISE_ALIVE;
il               1169 drivers/net/wireless/intel/iwlegacy/common.c 	if (!memcmp(&il->power_data.sleep_cmd, cmd, sizeof(*cmd)) && !force)
il               1172 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il_is_ready_rf(il))
il               1176 drivers/net/wireless/intel/iwlegacy/common.c 	memcpy(&il->power_data.sleep_cmd_next, cmd, sizeof(*cmd));
il               1177 drivers/net/wireless/intel/iwlegacy/common.c 	if (test_bit(S_SCANNING, &il->status) && !force) {
il               1183 drivers/net/wireless/intel/iwlegacy/common.c 		set_bit(S_POWER_PMI, &il->status);
il               1185 drivers/net/wireless/intel/iwlegacy/common.c 	ret = il_set_power(il, cmd);
il               1188 drivers/net/wireless/intel/iwlegacy/common.c 			clear_bit(S_POWER_PMI, &il->status);
il               1190 drivers/net/wireless/intel/iwlegacy/common.c 		if (il->ops->update_chain_flags && update_chains)
il               1191 drivers/net/wireless/intel/iwlegacy/common.c 			il->ops->update_chain_flags(il);
il               1192 drivers/net/wireless/intel/iwlegacy/common.c 		else if (il->ops->update_chain_flags)
il               1195 drivers/net/wireless/intel/iwlegacy/common.c 				il->chain_noise_data.state);
il               1197 drivers/net/wireless/intel/iwlegacy/common.c 		memcpy(&il->power_data.sleep_cmd, cmd, sizeof(*cmd));
il               1205 drivers/net/wireless/intel/iwlegacy/common.c il_power_update_mode(struct il_priv *il, bool force)
il               1209 drivers/net/wireless/intel/iwlegacy/common.c 	il_build_powertable_cmd(il, &cmd);
il               1211 drivers/net/wireless/intel/iwlegacy/common.c 	return il_power_set_mode(il, &cmd, force);
il               1217 drivers/net/wireless/intel/iwlegacy/common.c il_power_initialize(struct il_priv *il)
il               1221 drivers/net/wireless/intel/iwlegacy/common.c 	pcie_capability_read_word(il->pci_dev, PCI_EXP_LNKCTL, &lctl);
il               1222 drivers/net/wireless/intel/iwlegacy/common.c 	il->power_data.pci_pm = !(lctl & PCI_EXP_LNKCTL_ASPM_L0S);
il               1224 drivers/net/wireless/intel/iwlegacy/common.c 	il->power_data.debug_sleep_level_override = -1;
il               1226 drivers/net/wireless/intel/iwlegacy/common.c 	memset(&il->power_data.sleep_cmd, 0, sizeof(il->power_data.sleep_cmd));
il               1248 drivers/net/wireless/intel/iwlegacy/common.c il_send_scan_abort(struct il_priv *il)
il               1260 drivers/net/wireless/intel/iwlegacy/common.c 	if (!test_bit(S_READY, &il->status) ||
il               1261 drivers/net/wireless/intel/iwlegacy/common.c 	    !test_bit(S_GEO_CONFIGURED, &il->status) ||
il               1262 drivers/net/wireless/intel/iwlegacy/common.c 	    !test_bit(S_SCAN_HW, &il->status) ||
il               1263 drivers/net/wireless/intel/iwlegacy/common.c 	    test_bit(S_FW_ERROR, &il->status) ||
il               1264 drivers/net/wireless/intel/iwlegacy/common.c 	    test_bit(S_EXIT_PENDING, &il->status))
il               1267 drivers/net/wireless/intel/iwlegacy/common.c 	ret = il_send_cmd_sync(il, &cmd);
il               1283 drivers/net/wireless/intel/iwlegacy/common.c 	il_free_pages(il, cmd.reply_page);
il               1288 drivers/net/wireless/intel/iwlegacy/common.c il_complete_scan(struct il_priv *il, bool aborted)
il               1295 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->scan_request) {
il               1297 drivers/net/wireless/intel/iwlegacy/common.c 		ieee80211_scan_completed(il->hw, &info);
il               1300 drivers/net/wireless/intel/iwlegacy/common.c 	il->scan_vif = NULL;
il               1301 drivers/net/wireless/intel/iwlegacy/common.c 	il->scan_request = NULL;
il               1305 drivers/net/wireless/intel/iwlegacy/common.c il_force_scan_end(struct il_priv *il)
il               1307 drivers/net/wireless/intel/iwlegacy/common.c 	lockdep_assert_held(&il->mutex);
il               1309 drivers/net/wireless/intel/iwlegacy/common.c 	if (!test_bit(S_SCANNING, &il->status)) {
il               1315 drivers/net/wireless/intel/iwlegacy/common.c 	clear_bit(S_SCANNING, &il->status);
il               1316 drivers/net/wireless/intel/iwlegacy/common.c 	clear_bit(S_SCAN_HW, &il->status);
il               1317 drivers/net/wireless/intel/iwlegacy/common.c 	clear_bit(S_SCAN_ABORTING, &il->status);
il               1318 drivers/net/wireless/intel/iwlegacy/common.c 	il_complete_scan(il, true);
il               1322 drivers/net/wireless/intel/iwlegacy/common.c il_do_scan_abort(struct il_priv *il)
il               1326 drivers/net/wireless/intel/iwlegacy/common.c 	lockdep_assert_held(&il->mutex);
il               1328 drivers/net/wireless/intel/iwlegacy/common.c 	if (!test_bit(S_SCANNING, &il->status)) {
il               1333 drivers/net/wireless/intel/iwlegacy/common.c 	if (test_and_set_bit(S_SCAN_ABORTING, &il->status)) {
il               1338 drivers/net/wireless/intel/iwlegacy/common.c 	ret = il_send_scan_abort(il);
il               1341 drivers/net/wireless/intel/iwlegacy/common.c 		il_force_scan_end(il);
il               1350 drivers/net/wireless/intel/iwlegacy/common.c il_scan_cancel(struct il_priv *il)
il               1353 drivers/net/wireless/intel/iwlegacy/common.c 	queue_work(il->workqueue, &il->abort_scan);
il               1364 drivers/net/wireless/intel/iwlegacy/common.c il_scan_cancel_timeout(struct il_priv *il, unsigned long ms)
il               1368 drivers/net/wireless/intel/iwlegacy/common.c 	lockdep_assert_held(&il->mutex);
il               1372 drivers/net/wireless/intel/iwlegacy/common.c 	il_do_scan_abort(il);
il               1375 drivers/net/wireless/intel/iwlegacy/common.c 		if (!test_bit(S_SCAN_HW, &il->status))
il               1380 drivers/net/wireless/intel/iwlegacy/common.c 	return test_bit(S_SCAN_HW, &il->status);
il               1386 drivers/net/wireless/intel/iwlegacy/common.c il_hdl_scan(struct il_priv *il, struct il_rx_buf *rxb)
il               1399 drivers/net/wireless/intel/iwlegacy/common.c il_hdl_scan_start(struct il_priv *il, struct il_rx_buf *rxb)
il               1404 drivers/net/wireless/intel/iwlegacy/common.c 	il->scan_start_tsf = le32_to_cpu(notif->tsf_low);
il               1413 drivers/net/wireless/intel/iwlegacy/common.c il_hdl_scan_results(struct il_priv *il, struct il_rx_buf *rxb)
il               1424 drivers/net/wireless/intel/iwlegacy/common.c 	       le32_to_cpu(notif->tsf_low) - il->scan_start_tsf);
il               1430 drivers/net/wireless/intel/iwlegacy/common.c il_hdl_scan_complete(struct il_priv *il, struct il_rx_buf *rxb)
il               1443 drivers/net/wireless/intel/iwlegacy/common.c 	clear_bit(S_SCAN_HW, &il->status);
il               1446 drivers/net/wireless/intel/iwlegacy/common.c 	       (il->scan_band == NL80211_BAND_2GHZ) ? "2.4" : "5.2",
il               1447 drivers/net/wireless/intel/iwlegacy/common.c 	       jiffies_to_msecs(jiffies - il->scan_start));
il               1449 drivers/net/wireless/intel/iwlegacy/common.c 	queue_work(il->workqueue, &il->scan_completed);
il               1453 drivers/net/wireless/intel/iwlegacy/common.c il_setup_rx_scan_handlers(struct il_priv *il)
il               1456 drivers/net/wireless/intel/iwlegacy/common.c 	il->handlers[C_SCAN] = il_hdl_scan;
il               1457 drivers/net/wireless/intel/iwlegacy/common.c 	il->handlers[N_SCAN_START] = il_hdl_scan_start;
il               1458 drivers/net/wireless/intel/iwlegacy/common.c 	il->handlers[N_SCAN_RESULTS] = il_hdl_scan_results;
il               1459 drivers/net/wireless/intel/iwlegacy/common.c 	il->handlers[N_SCAN_COMPLETE] = il_hdl_scan_complete;
il               1464 drivers/net/wireless/intel/iwlegacy/common.c il_get_active_dwell_time(struct il_priv *il, enum nl80211_band band,
il               1477 drivers/net/wireless/intel/iwlegacy/common.c il_get_passive_dwell_time(struct il_priv *il, enum nl80211_band band,
il               1488 drivers/net/wireless/intel/iwlegacy/common.c 	if (il_is_any_associated(il)) {
il               1494 drivers/net/wireless/intel/iwlegacy/common.c 		value = il->vif ? il->vif->bss_conf.beacon_int : 0;
il               1506 drivers/net/wireless/intel/iwlegacy/common.c il_init_scan_params(struct il_priv *il)
il               1508 drivers/net/wireless/intel/iwlegacy/common.c 	u8 ant_idx = fls(il->hw_params.valid_tx_ant) - 1;
il               1509 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il->scan_tx_ant[NL80211_BAND_5GHZ])
il               1510 drivers/net/wireless/intel/iwlegacy/common.c 		il->scan_tx_ant[NL80211_BAND_5GHZ] = ant_idx;
il               1511 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il->scan_tx_ant[NL80211_BAND_2GHZ])
il               1512 drivers/net/wireless/intel/iwlegacy/common.c 		il->scan_tx_ant[NL80211_BAND_2GHZ] = ant_idx;
il               1517 drivers/net/wireless/intel/iwlegacy/common.c il_scan_initiate(struct il_priv *il, struct ieee80211_vif *vif)
il               1521 drivers/net/wireless/intel/iwlegacy/common.c 	lockdep_assert_held(&il->mutex);
il               1523 drivers/net/wireless/intel/iwlegacy/common.c 	cancel_delayed_work(&il->scan_check);
il               1525 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il_is_ready_rf(il)) {
il               1530 drivers/net/wireless/intel/iwlegacy/common.c 	if (test_bit(S_SCAN_HW, &il->status)) {
il               1535 drivers/net/wireless/intel/iwlegacy/common.c 	if (test_bit(S_SCAN_ABORTING, &il->status)) {
il               1542 drivers/net/wireless/intel/iwlegacy/common.c 	set_bit(S_SCANNING, &il->status);
il               1543 drivers/net/wireless/intel/iwlegacy/common.c 	il->scan_start = jiffies;
il               1545 drivers/net/wireless/intel/iwlegacy/common.c 	ret = il->ops->request_scan(il, vif);
il               1547 drivers/net/wireless/intel/iwlegacy/common.c 		clear_bit(S_SCANNING, &il->status);
il               1551 drivers/net/wireless/intel/iwlegacy/common.c 	queue_delayed_work(il->workqueue, &il->scan_check,
il               1562 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_priv *il = hw->priv;
il               1570 drivers/net/wireless/intel/iwlegacy/common.c 	mutex_lock(&il->mutex);
il               1573 drivers/net/wireless/intel/iwlegacy/common.c 	if (test_bit(S_SCANNING, &il->status)) {
il               1580 drivers/net/wireless/intel/iwlegacy/common.c 	il->scan_request = req;
il               1581 drivers/net/wireless/intel/iwlegacy/common.c 	il->scan_vif = vif;
il               1582 drivers/net/wireless/intel/iwlegacy/common.c 	il->scan_band = req->channels[0]->band;
il               1584 drivers/net/wireless/intel/iwlegacy/common.c 	ret = il_scan_initiate(il, vif);
il               1588 drivers/net/wireless/intel/iwlegacy/common.c 	mutex_unlock(&il->mutex);
il               1597 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_priv *il =
il               1605 drivers/net/wireless/intel/iwlegacy/common.c 	mutex_lock(&il->mutex);
il               1606 drivers/net/wireless/intel/iwlegacy/common.c 	il_force_scan_end(il);
il               1607 drivers/net/wireless/intel/iwlegacy/common.c 	mutex_unlock(&il->mutex);
il               1615 drivers/net/wireless/intel/iwlegacy/common.c il_fill_probe_req(struct il_priv *il, struct ieee80211_mgmt *frame,
il               1662 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_priv *il = container_of(work, struct il_priv, abort_scan);
il               1668 drivers/net/wireless/intel/iwlegacy/common.c 	mutex_lock(&il->mutex);
il               1669 drivers/net/wireless/intel/iwlegacy/common.c 	il_scan_cancel_timeout(il, 200);
il               1670 drivers/net/wireless/intel/iwlegacy/common.c 	mutex_unlock(&il->mutex);
il               1676 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_priv *il = container_of(work, struct il_priv, scan_completed);
il               1681 drivers/net/wireless/intel/iwlegacy/common.c 	cancel_delayed_work(&il->scan_check);
il               1683 drivers/net/wireless/intel/iwlegacy/common.c 	mutex_lock(&il->mutex);
il               1685 drivers/net/wireless/intel/iwlegacy/common.c 	aborted = test_and_clear_bit(S_SCAN_ABORTING, &il->status);
il               1689 drivers/net/wireless/intel/iwlegacy/common.c 	if (!test_and_clear_bit(S_SCANNING, &il->status)) {
il               1694 drivers/net/wireless/intel/iwlegacy/common.c 	il_complete_scan(il, aborted);
il               1698 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il_is_ready_rf(il))
il               1705 drivers/net/wireless/intel/iwlegacy/common.c 	il_power_set_mode(il, &il->power_data.sleep_cmd_next, false);
il               1706 drivers/net/wireless/intel/iwlegacy/common.c 	il_set_tx_power(il, il->tx_power_next, false);
il               1708 drivers/net/wireless/intel/iwlegacy/common.c 	il->ops->post_scan(il);
il               1711 drivers/net/wireless/intel/iwlegacy/common.c 	mutex_unlock(&il->mutex);
il               1715 drivers/net/wireless/intel/iwlegacy/common.c il_setup_scan_deferred_work(struct il_priv *il)
il               1717 drivers/net/wireless/intel/iwlegacy/common.c 	INIT_WORK(&il->scan_completed, il_bg_scan_completed);
il               1718 drivers/net/wireless/intel/iwlegacy/common.c 	INIT_WORK(&il->abort_scan, il_bg_abort_scan);
il               1719 drivers/net/wireless/intel/iwlegacy/common.c 	INIT_DELAYED_WORK(&il->scan_check, il_bg_scan_check);
il               1724 drivers/net/wireless/intel/iwlegacy/common.c il_cancel_scan_deferred_work(struct il_priv *il)
il               1726 drivers/net/wireless/intel/iwlegacy/common.c 	cancel_work_sync(&il->abort_scan);
il               1727 drivers/net/wireless/intel/iwlegacy/common.c 	cancel_work_sync(&il->scan_completed);
il               1729 drivers/net/wireless/intel/iwlegacy/common.c 	if (cancel_delayed_work_sync(&il->scan_check)) {
il               1730 drivers/net/wireless/intel/iwlegacy/common.c 		mutex_lock(&il->mutex);
il               1731 drivers/net/wireless/intel/iwlegacy/common.c 		il_force_scan_end(il);
il               1732 drivers/net/wireless/intel/iwlegacy/common.c 		mutex_unlock(&il->mutex);
il               1739 drivers/net/wireless/intel/iwlegacy/common.c il_sta_ucode_activate(struct il_priv *il, u8 sta_id)
il               1742 drivers/net/wireless/intel/iwlegacy/common.c 	if (!(il->stations[sta_id].used & IL_STA_DRIVER_ACTIVE))
il               1744 drivers/net/wireless/intel/iwlegacy/common.c 		       sta_id, il->stations[sta_id].sta.sta.addr);
il               1746 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->stations[sta_id].used & IL_STA_UCODE_ACTIVE) {
il               1749 drivers/net/wireless/intel/iwlegacy/common.c 			il->stations[sta_id].sta.sta.addr);
il               1751 drivers/net/wireless/intel/iwlegacy/common.c 		il->stations[sta_id].used |= IL_STA_UCODE_ACTIVE;
il               1753 drivers/net/wireless/intel/iwlegacy/common.c 			il->stations[sta_id].sta.sta.addr);
il               1758 drivers/net/wireless/intel/iwlegacy/common.c il_process_add_sta_resp(struct il_priv *il, struct il_addsta_cmd *addsta,
il               1772 drivers/net/wireless/intel/iwlegacy/common.c 	spin_lock_irqsave(&il->sta_lock, flags);
il               1777 drivers/net/wireless/intel/iwlegacy/common.c 		il_sta_ucode_activate(il, sta_id);
il               1797 drivers/net/wireless/intel/iwlegacy/common.c 	       il->stations[sta_id].sta.mode ==
il               1799 drivers/net/wireless/intel/iwlegacy/common.c 	       il->stations[sta_id].sta.sta.addr);
il               1810 drivers/net/wireless/intel/iwlegacy/common.c 	       il->stations[sta_id].sta.mode ==
il               1812 drivers/net/wireless/intel/iwlegacy/common.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               1818 drivers/net/wireless/intel/iwlegacy/common.c il_add_sta_callback(struct il_priv *il, struct il_device_cmd *cmd,
il               1823 drivers/net/wireless/intel/iwlegacy/common.c 	il_process_add_sta_resp(il, addsta, pkt, false);
il               1828 drivers/net/wireless/intel/iwlegacy/common.c il_send_add_sta(struct il_priv *il, struct il_addsta_cmd *sta, u8 flags)
il               1850 drivers/net/wireless/intel/iwlegacy/common.c 	cmd.len = il->ops->build_addsta_hcmd(sta, data);
il               1851 drivers/net/wireless/intel/iwlegacy/common.c 	ret = il_send_cmd(il, &cmd);
il               1858 drivers/net/wireless/intel/iwlegacy/common.c 	ret = il_process_add_sta_resp(il, sta, pkt, true);
il               1860 drivers/net/wireless/intel/iwlegacy/common.c 	il_free_pages(il, cmd.reply_page);
il               1867 drivers/net/wireless/intel/iwlegacy/common.c il_set_ht_add_station(struct il_priv *il, u8 idx, struct ieee80211_sta *sta)
il               1880 drivers/net/wireless/intel/iwlegacy/common.c 	sta_flags = il->stations[idx].sta.station_flags;
il               1906 drivers/net/wireless/intel/iwlegacy/common.c 	if (il_is_ht40_tx_allowed(il, &sta->ht_cap))
il               1911 drivers/net/wireless/intel/iwlegacy/common.c 	il->stations[idx].sta.station_flags = sta_flags;
il               1922 drivers/net/wireless/intel/iwlegacy/common.c il_prep_station(struct il_priv *il, const u8 *addr, bool is_ap,
il               1933 drivers/net/wireless/intel/iwlegacy/common.c 		sta_id = il->hw_params.bcast_id;
il               1935 drivers/net/wireless/intel/iwlegacy/common.c 		for (i = IL_STA_ID; i < il->hw_params.max_stations; i++) {
il               1936 drivers/net/wireless/intel/iwlegacy/common.c 			if (ether_addr_equal(il->stations[i].sta.sta.addr,
il               1942 drivers/net/wireless/intel/iwlegacy/common.c 			if (!il->stations[i].used &&
il               1959 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->stations[sta_id].used & IL_STA_UCODE_INPROGRESS) {
il               1964 drivers/net/wireless/intel/iwlegacy/common.c 	if ((il->stations[sta_id].used & IL_STA_DRIVER_ACTIVE) &&
il               1965 drivers/net/wireless/intel/iwlegacy/common.c 	    (il->stations[sta_id].used & IL_STA_UCODE_ACTIVE) &&
il               1966 drivers/net/wireless/intel/iwlegacy/common.c 	    ether_addr_equal(il->stations[sta_id].sta.sta.addr, addr)) {
il               1972 drivers/net/wireless/intel/iwlegacy/common.c 	station = &il->stations[sta_id];
il               1975 drivers/net/wireless/intel/iwlegacy/common.c 	il->num_stations++;
il               1989 drivers/net/wireless/intel/iwlegacy/common.c 	il_set_ht_add_station(il, sta_id, sta);
il               1992 drivers/net/wireless/intel/iwlegacy/common.c 	rate = (il->band == NL80211_BAND_5GHZ) ? RATE_6M_PLCP : RATE_1M_PLCP;
il               2007 drivers/net/wireless/intel/iwlegacy/common.c il_add_station_common(struct il_priv *il, const u8 *addr, bool is_ap,
il               2016 drivers/net/wireless/intel/iwlegacy/common.c 	spin_lock_irqsave(&il->sta_lock, flags_spin);
il               2017 drivers/net/wireless/intel/iwlegacy/common.c 	sta_id = il_prep_station(il, addr, is_ap, sta);
il               2020 drivers/net/wireless/intel/iwlegacy/common.c 		spin_unlock_irqrestore(&il->sta_lock, flags_spin);
il               2029 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->stations[sta_id].used & IL_STA_UCODE_INPROGRESS) {
il               2031 drivers/net/wireless/intel/iwlegacy/common.c 		spin_unlock_irqrestore(&il->sta_lock, flags_spin);
il               2035 drivers/net/wireless/intel/iwlegacy/common.c 	if ((il->stations[sta_id].used & IL_STA_DRIVER_ACTIVE) &&
il               2036 drivers/net/wireless/intel/iwlegacy/common.c 	    (il->stations[sta_id].used & IL_STA_UCODE_ACTIVE)) {
il               2039 drivers/net/wireless/intel/iwlegacy/common.c 		spin_unlock_irqrestore(&il->sta_lock, flags_spin);
il               2043 drivers/net/wireless/intel/iwlegacy/common.c 	il->stations[sta_id].used |= IL_STA_UCODE_INPROGRESS;
il               2044 drivers/net/wireless/intel/iwlegacy/common.c 	memcpy(&sta_cmd, &il->stations[sta_id].sta,
il               2046 drivers/net/wireless/intel/iwlegacy/common.c 	spin_unlock_irqrestore(&il->sta_lock, flags_spin);
il               2049 drivers/net/wireless/intel/iwlegacy/common.c 	ret = il_send_add_sta(il, &sta_cmd, CMD_SYNC);
il               2051 drivers/net/wireless/intel/iwlegacy/common.c 		spin_lock_irqsave(&il->sta_lock, flags_spin);
il               2053 drivers/net/wireless/intel/iwlegacy/common.c 		       il->stations[sta_id].sta.sta.addr);
il               2054 drivers/net/wireless/intel/iwlegacy/common.c 		il->stations[sta_id].used &= ~IL_STA_DRIVER_ACTIVE;
il               2055 drivers/net/wireless/intel/iwlegacy/common.c 		il->stations[sta_id].used &= ~IL_STA_UCODE_INPROGRESS;
il               2056 drivers/net/wireless/intel/iwlegacy/common.c 		spin_unlock_irqrestore(&il->sta_lock, flags_spin);
il               2069 drivers/net/wireless/intel/iwlegacy/common.c il_sta_ucode_deactivate(struct il_priv *il, u8 sta_id)
il               2072 drivers/net/wireless/intel/iwlegacy/common.c 	if ((il->stations[sta_id].
il               2077 drivers/net/wireless/intel/iwlegacy/common.c 	il->stations[sta_id].used &= ~IL_STA_UCODE_ACTIVE;
il               2079 drivers/net/wireless/intel/iwlegacy/common.c 	memset(&il->stations[sta_id], 0, sizeof(struct il_station_entry));
il               2084 drivers/net/wireless/intel/iwlegacy/common.c il_send_remove_station(struct il_priv *il, const u8 * addr, int sta_id,
il               2106 drivers/net/wireless/intel/iwlegacy/common.c 	ret = il_send_cmd(il, &cmd);
il               2121 drivers/net/wireless/intel/iwlegacy/common.c 				spin_lock_irqsave(&il->sta_lock, flags_spin);
il               2122 drivers/net/wireless/intel/iwlegacy/common.c 				il_sta_ucode_deactivate(il, sta_id);
il               2123 drivers/net/wireless/intel/iwlegacy/common.c 				spin_unlock_irqrestore(&il->sta_lock,
il               2134 drivers/net/wireless/intel/iwlegacy/common.c 	il_free_pages(il, cmd.reply_page);
il               2143 drivers/net/wireless/intel/iwlegacy/common.c il_remove_station(struct il_priv *il, const u8 sta_id, const u8 * addr)
il               2147 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il_is_ready(il)) {
il               2163 drivers/net/wireless/intel/iwlegacy/common.c 	spin_lock_irqsave(&il->sta_lock, flags);
il               2165 drivers/net/wireless/intel/iwlegacy/common.c 	if (!(il->stations[sta_id].used & IL_STA_DRIVER_ACTIVE)) {
il               2170 drivers/net/wireless/intel/iwlegacy/common.c 	if (!(il->stations[sta_id].used & IL_STA_UCODE_ACTIVE)) {
il               2175 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->stations[sta_id].used & IL_STA_LOCAL) {
il               2176 drivers/net/wireless/intel/iwlegacy/common.c 		kfree(il->stations[sta_id].lq);
il               2177 drivers/net/wireless/intel/iwlegacy/common.c 		il->stations[sta_id].lq = NULL;
il               2180 drivers/net/wireless/intel/iwlegacy/common.c 	il->stations[sta_id].used &= ~IL_STA_DRIVER_ACTIVE;
il               2182 drivers/net/wireless/intel/iwlegacy/common.c 	il->num_stations--;
il               2184 drivers/net/wireless/intel/iwlegacy/common.c 	BUG_ON(il->num_stations < 0);
il               2186 drivers/net/wireless/intel/iwlegacy/common.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               2188 drivers/net/wireless/intel/iwlegacy/common.c 	return il_send_remove_station(il, addr, sta_id, false);
il               2190 drivers/net/wireless/intel/iwlegacy/common.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               2204 drivers/net/wireless/intel/iwlegacy/common.c il_clear_ucode_stations(struct il_priv *il)
il               2212 drivers/net/wireless/intel/iwlegacy/common.c 	spin_lock_irqsave(&il->sta_lock, flags_spin);
il               2213 drivers/net/wireless/intel/iwlegacy/common.c 	for (i = 0; i < il->hw_params.max_stations; i++) {
il               2214 drivers/net/wireless/intel/iwlegacy/common.c 		if (il->stations[i].used & IL_STA_UCODE_ACTIVE) {
il               2216 drivers/net/wireless/intel/iwlegacy/common.c 			il->stations[i].used &= ~IL_STA_UCODE_ACTIVE;
il               2220 drivers/net/wireless/intel/iwlegacy/common.c 	spin_unlock_irqrestore(&il->sta_lock, flags_spin);
il               2236 drivers/net/wireless/intel/iwlegacy/common.c il_restore_stations(struct il_priv *il)
il               2246 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il_is_ready(il)) {
il               2252 drivers/net/wireless/intel/iwlegacy/common.c 	spin_lock_irqsave(&il->sta_lock, flags_spin);
il               2253 drivers/net/wireless/intel/iwlegacy/common.c 	for (i = 0; i < il->hw_params.max_stations; i++) {
il               2254 drivers/net/wireless/intel/iwlegacy/common.c 		if ((il->stations[i].used & IL_STA_DRIVER_ACTIVE) &&
il               2255 drivers/net/wireless/intel/iwlegacy/common.c 		    !(il->stations[i].used & IL_STA_UCODE_ACTIVE)) {
il               2257 drivers/net/wireless/intel/iwlegacy/common.c 				il->stations[i].sta.sta.addr);
il               2258 drivers/net/wireless/intel/iwlegacy/common.c 			il->stations[i].sta.mode = 0;
il               2259 drivers/net/wireless/intel/iwlegacy/common.c 			il->stations[i].used |= IL_STA_UCODE_INPROGRESS;
il               2264 drivers/net/wireless/intel/iwlegacy/common.c 	for (i = 0; i < il->hw_params.max_stations; i++) {
il               2265 drivers/net/wireless/intel/iwlegacy/common.c 		if ((il->stations[i].used & IL_STA_UCODE_INPROGRESS)) {
il               2266 drivers/net/wireless/intel/iwlegacy/common.c 			memcpy(&sta_cmd, &il->stations[i].sta,
il               2269 drivers/net/wireless/intel/iwlegacy/common.c 			if (il->stations[i].lq) {
il               2270 drivers/net/wireless/intel/iwlegacy/common.c 				memcpy(&lq, il->stations[i].lq,
il               2274 drivers/net/wireless/intel/iwlegacy/common.c 			spin_unlock_irqrestore(&il->sta_lock, flags_spin);
il               2275 drivers/net/wireless/intel/iwlegacy/common.c 			ret = il_send_add_sta(il, &sta_cmd, CMD_SYNC);
il               2277 drivers/net/wireless/intel/iwlegacy/common.c 				spin_lock_irqsave(&il->sta_lock, flags_spin);
il               2279 drivers/net/wireless/intel/iwlegacy/common.c 				       il->stations[i].sta.sta.addr);
il               2280 drivers/net/wireless/intel/iwlegacy/common.c 				il->stations[i].used &= ~IL_STA_DRIVER_ACTIVE;
il               2281 drivers/net/wireless/intel/iwlegacy/common.c 				il->stations[i].used &=
il               2283 drivers/net/wireless/intel/iwlegacy/common.c 				spin_unlock_irqrestore(&il->sta_lock,
il               2291 drivers/net/wireless/intel/iwlegacy/common.c 				il_send_lq_cmd(il, &lq, CMD_SYNC, true);
il               2292 drivers/net/wireless/intel/iwlegacy/common.c 			spin_lock_irqsave(&il->sta_lock, flags_spin);
il               2293 drivers/net/wireless/intel/iwlegacy/common.c 			il->stations[i].used &= ~IL_STA_UCODE_INPROGRESS;
il               2297 drivers/net/wireless/intel/iwlegacy/common.c 	spin_unlock_irqrestore(&il->sta_lock, flags_spin);
il               2307 drivers/net/wireless/intel/iwlegacy/common.c il_get_free_ucode_key_idx(struct il_priv *il)
il               2311 drivers/net/wireless/intel/iwlegacy/common.c 	for (i = 0; i < il->sta_key_max_num; i++)
il               2312 drivers/net/wireless/intel/iwlegacy/common.c 		if (!test_and_set_bit(i, &il->ucode_key_table))
il               2320 drivers/net/wireless/intel/iwlegacy/common.c il_dealloc_bcast_stations(struct il_priv *il)
il               2325 drivers/net/wireless/intel/iwlegacy/common.c 	spin_lock_irqsave(&il->sta_lock, flags);
il               2326 drivers/net/wireless/intel/iwlegacy/common.c 	for (i = 0; i < il->hw_params.max_stations; i++) {
il               2327 drivers/net/wireless/intel/iwlegacy/common.c 		if (!(il->stations[i].used & IL_STA_BCAST))
il               2330 drivers/net/wireless/intel/iwlegacy/common.c 		il->stations[i].used &= ~IL_STA_UCODE_ACTIVE;
il               2331 drivers/net/wireless/intel/iwlegacy/common.c 		il->num_stations--;
il               2332 drivers/net/wireless/intel/iwlegacy/common.c 		BUG_ON(il->num_stations < 0);
il               2333 drivers/net/wireless/intel/iwlegacy/common.c 		kfree(il->stations[i].lq);
il               2334 drivers/net/wireless/intel/iwlegacy/common.c 		il->stations[i].lq = NULL;
il               2336 drivers/net/wireless/intel/iwlegacy/common.c 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               2342 drivers/net/wireless/intel/iwlegacy/common.c il_dump_lq_cmd(struct il_priv *il, struct il_link_quality_cmd *lq)
il               2354 drivers/net/wireless/intel/iwlegacy/common.c il_dump_lq_cmd(struct il_priv *il, struct il_link_quality_cmd *lq)
il               2371 drivers/net/wireless/intel/iwlegacy/common.c il_is_lq_table_valid(struct il_priv *il, struct il_link_quality_cmd *lq)
il               2375 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->ht.enabled)
il               2378 drivers/net/wireless/intel/iwlegacy/common.c 	D_INFO("Channel %u is not an HT channel\n", il->active.channel);
il               2399 drivers/net/wireless/intel/iwlegacy/common.c il_send_lq_cmd(struct il_priv *il, struct il_link_quality_cmd *lq,
il               2415 drivers/net/wireless/intel/iwlegacy/common.c 	spin_lock_irqsave(&il->sta_lock, flags_spin);
il               2416 drivers/net/wireless/intel/iwlegacy/common.c 	if (!(il->stations[lq->sta_id].used & IL_STA_DRIVER_ACTIVE)) {
il               2417 drivers/net/wireless/intel/iwlegacy/common.c 		spin_unlock_irqrestore(&il->sta_lock, flags_spin);
il               2420 drivers/net/wireless/intel/iwlegacy/common.c 	spin_unlock_irqrestore(&il->sta_lock, flags_spin);
il               2422 drivers/net/wireless/intel/iwlegacy/common.c 	il_dump_lq_cmd(il, lq);
il               2425 drivers/net/wireless/intel/iwlegacy/common.c 	if (il_is_lq_table_valid(il, lq))
il               2426 drivers/net/wireless/intel/iwlegacy/common.c 		ret = il_send_cmd(il, &cmd);
il               2437 drivers/net/wireless/intel/iwlegacy/common.c 		spin_lock_irqsave(&il->sta_lock, flags_spin);
il               2438 drivers/net/wireless/intel/iwlegacy/common.c 		il->stations[lq->sta_id].used &= ~IL_STA_UCODE_INPROGRESS;
il               2439 drivers/net/wireless/intel/iwlegacy/common.c 		spin_unlock_irqrestore(&il->sta_lock, flags_spin);
il               2449 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_priv *il = hw->priv;
il               2453 drivers/net/wireless/intel/iwlegacy/common.c 	mutex_lock(&il->mutex);
il               2456 drivers/net/wireless/intel/iwlegacy/common.c 	ret = il_remove_station(il, sta_common->sta_id, sta->addr);
il               2461 drivers/net/wireless/intel/iwlegacy/common.c 	mutex_unlock(&il->mutex);
il               2555 drivers/net/wireless/intel/iwlegacy/common.c il_rx_queue_update_write_ptr(struct il_priv *il, struct il_rx_queue *q)
il               2558 drivers/net/wireless/intel/iwlegacy/common.c 	u32 rx_wrt_ptr_reg = il->hw_params.rx_wrt_ptr_reg;
il               2567 drivers/net/wireless/intel/iwlegacy/common.c 	if (test_bit(S_POWER_PMI, &il->status)) {
il               2568 drivers/net/wireless/intel/iwlegacy/common.c 		reg = _il_rd(il, CSR_UCODE_DRV_GP1);
il               2573 drivers/net/wireless/intel/iwlegacy/common.c 			il_set_bit(il, CSR_GP_CNTRL,
il               2579 drivers/net/wireless/intel/iwlegacy/common.c 		il_wr(il, rx_wrt_ptr_reg, q->write_actual);
il               2585 drivers/net/wireless/intel/iwlegacy/common.c 		il_wr(il, rx_wrt_ptr_reg, q->write_actual);
il               2596 drivers/net/wireless/intel/iwlegacy/common.c il_rx_queue_alloc(struct il_priv *il)
il               2598 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_rx_queue *rxq = &il->rxq;
il               2599 drivers/net/wireless/intel/iwlegacy/common.c 	struct device *dev = &il->pci_dev->dev;
il               2630 drivers/net/wireless/intel/iwlegacy/common.c 	dma_free_coherent(&il->pci_dev->dev, 4 * RX_QUEUE_SIZE, rxq->bd,
il               2638 drivers/net/wireless/intel/iwlegacy/common.c il_hdl_spectrum_measurement(struct il_priv *il, struct il_rx_buf *rxb)
il               2648 drivers/net/wireless/intel/iwlegacy/common.c 	memcpy(&il->measure_report, report, sizeof(*report));
il               2649 drivers/net/wireless/intel/iwlegacy/common.c 	il->measurement_status |= MEASUREMENT_READY;
il               2657 drivers/net/wireless/intel/iwlegacy/common.c il_set_decrypted_flag(struct il_priv *il, struct ieee80211_hdr *hdr,
il               2666 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->active.filter_flags & RXON_FILTER_DIS_DECRYPT_MSK)
il               2710 drivers/net/wireless/intel/iwlegacy/common.c il_txq_update_write_ptr(struct il_priv *il, struct il_tx_queue *txq)
il               2719 drivers/net/wireless/intel/iwlegacy/common.c 	if (test_bit(S_POWER_PMI, &il->status)) {
il               2723 drivers/net/wireless/intel/iwlegacy/common.c 		reg = _il_rd(il, CSR_UCODE_DRV_GP1);
il               2728 drivers/net/wireless/intel/iwlegacy/common.c 			il_set_bit(il, CSR_GP_CNTRL,
il               2733 drivers/net/wireless/intel/iwlegacy/common.c 		il_wr(il, HBUS_TARG_WRPTR, txq->q.write_ptr | (txq_id << 8));
il               2741 drivers/net/wireless/intel/iwlegacy/common.c 		_il_wr(il, HBUS_TARG_WRPTR, txq->q.write_ptr | (txq_id << 8));
il               2750 drivers/net/wireless/intel/iwlegacy/common.c il_tx_queue_unmap(struct il_priv *il, int txq_id)
il               2752 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_tx_queue *txq = &il->txq[txq_id];
il               2759 drivers/net/wireless/intel/iwlegacy/common.c 		il->ops->txq_free_tfd(il, txq);
il               2774 drivers/net/wireless/intel/iwlegacy/common.c il_tx_queue_free(struct il_priv *il, int txq_id)
il               2776 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_tx_queue *txq = &il->txq[txq_id];
il               2777 drivers/net/wireless/intel/iwlegacy/common.c 	struct device *dev = &il->pci_dev->dev;
il               2780 drivers/net/wireless/intel/iwlegacy/common.c 	il_tx_queue_unmap(il, txq_id);
il               2790 drivers/net/wireless/intel/iwlegacy/common.c 		dma_free_coherent(dev, il->hw_params.tfd_size * txq->q.n_bd,
il               2812 drivers/net/wireless/intel/iwlegacy/common.c il_cmd_queue_unmap(struct il_priv *il)
il               2814 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_tx_queue *txq = &il->txq[il->cmd_queue];
il               2825 drivers/net/wireless/intel/iwlegacy/common.c 			pci_unmap_single(il->pci_dev,
il               2837 drivers/net/wireless/intel/iwlegacy/common.c 		pci_unmap_single(il->pci_dev,
il               2855 drivers/net/wireless/intel/iwlegacy/common.c il_cmd_queue_free(struct il_priv *il)
il               2857 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_tx_queue *txq = &il->txq[il->cmd_queue];
il               2858 drivers/net/wireless/intel/iwlegacy/common.c 	struct device *dev = &il->pci_dev->dev;
il               2861 drivers/net/wireless/intel/iwlegacy/common.c 	il_cmd_queue_unmap(il);
il               2871 drivers/net/wireless/intel/iwlegacy/common.c 		dma_free_coherent(dev, il->hw_params.tfd_size * txq->q.n_bd,
il               2931 drivers/net/wireless/intel/iwlegacy/common.c il_queue_init(struct il_priv *il, struct il_queue *q, int slots, u32 id)
il               2965 drivers/net/wireless/intel/iwlegacy/common.c il_tx_queue_alloc(struct il_priv *il, struct il_tx_queue *txq, u32 id)
il               2967 drivers/net/wireless/intel/iwlegacy/common.c 	struct device *dev = &il->pci_dev->dev;
il               2968 drivers/net/wireless/intel/iwlegacy/common.c 	size_t tfd_sz = il->hw_params.tfd_size * TFD_QUEUE_SIZE_MAX;
il               2972 drivers/net/wireless/intel/iwlegacy/common.c 	if (id != il->cmd_queue) {
il               3005 drivers/net/wireless/intel/iwlegacy/common.c il_tx_queue_init(struct il_priv *il, u32 txq_id)
il               3009 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_tx_queue *txq = &il->txq[txq_id];
il               3019 drivers/net/wireless/intel/iwlegacy/common.c 	if (txq_id == il->cmd_queue) {
il               3047 drivers/net/wireless/intel/iwlegacy/common.c 	ret = il_tx_queue_alloc(il, txq, txq_id);
il               3062 drivers/net/wireless/intel/iwlegacy/common.c 	il_queue_init(il, &txq->q, slots, txq_id);
il               3065 drivers/net/wireless/intel/iwlegacy/common.c 	il->ops->txq_init(il, txq);
il               3082 drivers/net/wireless/intel/iwlegacy/common.c il_tx_queue_reset(struct il_priv *il, u32 txq_id)
il               3085 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_tx_queue *txq = &il->txq[txq_id];
il               3087 drivers/net/wireless/intel/iwlegacy/common.c 	if (txq_id == il->cmd_queue) {
il               3099 drivers/net/wireless/intel/iwlegacy/common.c 	il_queue_init(il, &txq->q, slots, txq_id);
il               3102 drivers/net/wireless/intel/iwlegacy/common.c 	il->ops->txq_init(il, txq);
il               3118 drivers/net/wireless/intel/iwlegacy/common.c il_enqueue_hcmd(struct il_priv *il, struct il_host_cmd *cmd)
il               3120 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_tx_queue *txq = &il->txq[il->cmd_queue];
il               3130 drivers/net/wireless/intel/iwlegacy/common.c 	cmd->len = il->ops->get_hcmd_size(cmd->id, cmd->len);
il               3142 drivers/net/wireless/intel/iwlegacy/common.c 	if (il_is_rfkill(il) || il_is_ctkill(il)) {
il               3144 drivers/net/wireless/intel/iwlegacy/common.c 			il_is_rfkill(il) ? "RF" : "CT");
il               3148 drivers/net/wireless/intel/iwlegacy/common.c 	spin_lock_irqsave(&il->hcmd_lock, flags);
il               3151 drivers/net/wireless/intel/iwlegacy/common.c 		spin_unlock_irqrestore(&il->hcmd_lock, flags);
il               3154 drivers/net/wireless/intel/iwlegacy/common.c 		queue_work(il->workqueue, &il->restart);
il               3163 drivers/net/wireless/intel/iwlegacy/common.c 		spin_unlock_irqrestore(&il->hcmd_lock, flags);
il               3182 drivers/net/wireless/intel/iwlegacy/common.c 	    cpu_to_le16(QUEUE_TO_SEQ(il->cmd_queue) | IDX_TO_SEQ(q->write_ptr));
il               3197 drivers/net/wireless/intel/iwlegacy/common.c 			  q->write_ptr, idx, il->cmd_queue);
il               3204 drivers/net/wireless/intel/iwlegacy/common.c 		     idx, il->cmd_queue);
il               3209 drivers/net/wireless/intel/iwlegacy/common.c 	    pci_map_single(il->pci_dev, &out_cmd->hdr, fix_size,
il               3211 drivers/net/wireless/intel/iwlegacy/common.c 	if (unlikely(pci_dma_mapping_error(il->pci_dev, phys_addr))) {
il               3220 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->ops->txq_update_byte_cnt_tbl)
il               3222 drivers/net/wireless/intel/iwlegacy/common.c 		il->ops->txq_update_byte_cnt_tbl(il, txq, 0);
il               3224 drivers/net/wireless/intel/iwlegacy/common.c 	il->ops->txq_attach_buf_to_tfd(il, txq, phys_addr, fix_size, 1,
il               3229 drivers/net/wireless/intel/iwlegacy/common.c 	il_txq_update_write_ptr(il, txq);
il               3232 drivers/net/wireless/intel/iwlegacy/common.c 	spin_unlock_irqrestore(&il->hcmd_lock, flags);
il               3244 drivers/net/wireless/intel/iwlegacy/common.c il_hcmd_queue_reclaim(struct il_priv *il, int txq_id, int idx, int cmd_idx)
il               3246 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_tx_queue *txq = &il->txq[txq_id];
il               3263 drivers/net/wireless/intel/iwlegacy/common.c 			queue_work(il->workqueue, &il->restart);
il               3278 drivers/net/wireless/intel/iwlegacy/common.c il_tx_cmd_complete(struct il_priv *il, struct il_rx_buf *rxb)
il               3288 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_tx_queue *txq = &il->txq[il->cmd_queue];
il               3295 drivers/net/wireless/intel/iwlegacy/common.c 	    (txq_id != il->cmd_queue,
il               3297 drivers/net/wireless/intel/iwlegacy/common.c 	     txq_id, il->cmd_queue, sequence, il->txq[il->cmd_queue].q.read_ptr,
il               3298 drivers/net/wireless/intel/iwlegacy/common.c 	     il->txq[il->cmd_queue].q.write_ptr)) {
il               3299 drivers/net/wireless/intel/iwlegacy/common.c 		il_print_hex_error(il, pkt, 32);
il               3309 drivers/net/wireless/intel/iwlegacy/common.c 	pci_unmap_single(il->pci_dev, dma_unmap_addr(meta, mapping),
il               3317 drivers/net/wireless/intel/iwlegacy/common.c 		meta->callback(il, cmd, pkt);
il               3319 drivers/net/wireless/intel/iwlegacy/common.c 	spin_lock_irqsave(&il->hcmd_lock, flags);
il               3321 drivers/net/wireless/intel/iwlegacy/common.c 	il_hcmd_queue_reclaim(il, txq_id, idx, cmd_idx);
il               3324 drivers/net/wireless/intel/iwlegacy/common.c 		clear_bit(S_HCMD_ACTIVE, &il->status);
il               3327 drivers/net/wireless/intel/iwlegacy/common.c 		wake_up(&il->wait_command_queue);
il               3333 drivers/net/wireless/intel/iwlegacy/common.c 	spin_unlock_irqrestore(&il->hcmd_lock, flags);
il               3371 drivers/net/wireless/intel/iwlegacy/common.c il_init_ht_hw_capab(const struct il_priv *il,
il               3376 drivers/net/wireless/intel/iwlegacy/common.c 	u8 rx_chains_num = il->hw_params.rx_chains_num;
il               3377 drivers/net/wireless/intel/iwlegacy/common.c 	u8 tx_chains_num = il->hw_params.tx_chains_num;
il               3386 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->hw_params.ht40_channel & BIT(band)) {
il               3393 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->cfg->mod_params->amsdu_size_8K)
il               3424 drivers/net/wireless/intel/iwlegacy/common.c il_init_geos(struct il_priv *il)
il               3434 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->bands[NL80211_BAND_2GHZ].n_bitrates ||
il               3435 drivers/net/wireless/intel/iwlegacy/common.c 	    il->bands[NL80211_BAND_5GHZ].n_bitrates) {
il               3437 drivers/net/wireless/intel/iwlegacy/common.c 		set_bit(S_GEO_CONFIGURED, &il->status);
il               3442 drivers/net/wireless/intel/iwlegacy/common.c 	    kcalloc(il->channel_count, sizeof(struct ieee80211_channel),
il               3456 drivers/net/wireless/intel/iwlegacy/common.c 	sband = &il->bands[NL80211_BAND_5GHZ];
il               3462 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->cfg->sku & IL_SKU_N)
il               3463 drivers/net/wireless/intel/iwlegacy/common.c 		il_init_ht_hw_capab(il, &sband->ht_cap, NL80211_BAND_5GHZ);
il               3465 drivers/net/wireless/intel/iwlegacy/common.c 	sband = &il->bands[NL80211_BAND_2GHZ];
il               3471 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->cfg->sku & IL_SKU_N)
il               3472 drivers/net/wireless/intel/iwlegacy/common.c 		il_init_ht_hw_capab(il, &sband->ht_cap, NL80211_BAND_2GHZ);
il               3474 drivers/net/wireless/intel/iwlegacy/common.c 	il->ieee_channels = channels;
il               3475 drivers/net/wireless/intel/iwlegacy/common.c 	il->ieee_rates = rates;
il               3477 drivers/net/wireless/intel/iwlegacy/common.c 	for (i = 0; i < il->channel_count; i++) {
il               3478 drivers/net/wireless/intel/iwlegacy/common.c 		ch = &il->channel_info[i];
il               3483 drivers/net/wireless/intel/iwlegacy/common.c 		sband = &il->bands[ch->band];
il               3519 drivers/net/wireless/intel/iwlegacy/common.c 	il->tx_power_device_lmt = max_tx_power;
il               3520 drivers/net/wireless/intel/iwlegacy/common.c 	il->tx_power_user_lmt = max_tx_power;
il               3521 drivers/net/wireless/intel/iwlegacy/common.c 	il->tx_power_next = max_tx_power;
il               3523 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->bands[NL80211_BAND_5GHZ].n_channels == 0 &&
il               3524 drivers/net/wireless/intel/iwlegacy/common.c 	    (il->cfg->sku & IL_SKU_A)) {
il               3527 drivers/net/wireless/intel/iwlegacy/common.c 			il->pci_dev->device, il->pci_dev->subsystem_device);
il               3528 drivers/net/wireless/intel/iwlegacy/common.c 		il->cfg->sku &= ~IL_SKU_A;
il               3532 drivers/net/wireless/intel/iwlegacy/common.c 		il->bands[NL80211_BAND_2GHZ].n_channels,
il               3533 drivers/net/wireless/intel/iwlegacy/common.c 		il->bands[NL80211_BAND_5GHZ].n_channels);
il               3535 drivers/net/wireless/intel/iwlegacy/common.c 	set_bit(S_GEO_CONFIGURED, &il->status);
il               3545 drivers/net/wireless/intel/iwlegacy/common.c il_free_geos(struct il_priv *il)
il               3547 drivers/net/wireless/intel/iwlegacy/common.c 	kfree(il->ieee_channels);
il               3548 drivers/net/wireless/intel/iwlegacy/common.c 	kfree(il->ieee_rates);
il               3549 drivers/net/wireless/intel/iwlegacy/common.c 	clear_bit(S_GEO_CONFIGURED, &il->status);
il               3554 drivers/net/wireless/intel/iwlegacy/common.c il_is_channel_extension(struct il_priv *il, enum nl80211_band band,
il               3559 drivers/net/wireless/intel/iwlegacy/common.c 	ch_info = il_get_channel_info(il, band, channel);
il               3574 drivers/net/wireless/intel/iwlegacy/common.c il_is_ht40_tx_allowed(struct il_priv *il, struct ieee80211_sta_ht_cap *ht_cap)
il               3576 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il->ht.enabled || !il->ht.is_40mhz)
il               3587 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->disable_ht40)
il               3591 drivers/net/wireless/intel/iwlegacy/common.c 	return il_is_channel_extension(il, il->band,
il               3592 drivers/net/wireless/intel/iwlegacy/common.c 				       le16_to_cpu(il->staging.channel),
il               3593 drivers/net/wireless/intel/iwlegacy/common.c 				       il->ht.extension_chan_offset);
il               3632 drivers/net/wireless/intel/iwlegacy/common.c il_send_rxon_timing(struct il_priv *il)
il               3638 drivers/net/wireless/intel/iwlegacy/common.c 	struct ieee80211_vif *vif = il->vif;
il               3640 drivers/net/wireless/intel/iwlegacy/common.c 	conf = &il->hw->conf;
il               3642 drivers/net/wireless/intel/iwlegacy/common.c 	lockdep_assert_held(&il->mutex);
il               3644 drivers/net/wireless/intel/iwlegacy/common.c 	memset(&il->timing, 0, sizeof(struct il_rxon_time_cmd));
il               3646 drivers/net/wireless/intel/iwlegacy/common.c 	il->timing.timestamp = cpu_to_le64(il->timestamp);
il               3647 drivers/net/wireless/intel/iwlegacy/common.c 	il->timing.listen_interval = cpu_to_le16(conf->listen_interval);
il               3655 drivers/net/wireless/intel/iwlegacy/common.c 	il->timing.atim_win = 0;
il               3659 drivers/net/wireless/intel/iwlegacy/common.c 				      il->hw_params.max_beacon_itrvl *
il               3661 drivers/net/wireless/intel/iwlegacy/common.c 	il->timing.beacon_interval = cpu_to_le16(beacon_int);
il               3663 drivers/net/wireless/intel/iwlegacy/common.c 	tsf = il->timestamp;	/* tsf is modifed by do_div: copy it */
il               3666 drivers/net/wireless/intel/iwlegacy/common.c 	il->timing.beacon_init_val = cpu_to_le32(interval_tm - rem);
il               3668 drivers/net/wireless/intel/iwlegacy/common.c 	il->timing.dtim_period = vif ? (vif->bss_conf.dtim_period ? : 1) : 1;
il               3671 drivers/net/wireless/intel/iwlegacy/common.c 		le16_to_cpu(il->timing.beacon_interval),
il               3672 drivers/net/wireless/intel/iwlegacy/common.c 		le32_to_cpu(il->timing.beacon_init_val),
il               3673 drivers/net/wireless/intel/iwlegacy/common.c 		le16_to_cpu(il->timing.atim_win));
il               3675 drivers/net/wireless/intel/iwlegacy/common.c 	return il_send_cmd_pdu(il, C_RXON_TIMING, sizeof(il->timing),
il               3676 drivers/net/wireless/intel/iwlegacy/common.c 			       &il->timing);
il               3681 drivers/net/wireless/intel/iwlegacy/common.c il_set_rxon_hwcrypto(struct il_priv *il, int hw_decrypt)
il               3683 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_rxon_cmd *rxon = &il->staging;
il               3695 drivers/net/wireless/intel/iwlegacy/common.c il_check_rxon_cmd(struct il_priv *il)
il               3697 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_rxon_cmd *rxon = &il->staging;
il               3775 drivers/net/wireless/intel/iwlegacy/common.c il_full_rxon_required(struct il_priv *il)
il               3777 drivers/net/wireless/intel/iwlegacy/common.c 	const struct il_rxon_cmd *staging = &il->staging;
il               3778 drivers/net/wireless/intel/iwlegacy/common.c 	const struct il_rxon_cmd *active = &il->active;
il               3795 drivers/net/wireless/intel/iwlegacy/common.c 	CHK(!il_is_associated(il));
il               3829 drivers/net/wireless/intel/iwlegacy/common.c il_get_lowest_plcp(struct il_priv *il)
il               3835 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->staging.flags & RXON_FLG_BAND_24G_MSK)
il               3843 drivers/net/wireless/intel/iwlegacy/common.c _il_set_rxon_ht(struct il_priv *il, struct il_ht_config *ht_conf)
il               3845 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_rxon_cmd *rxon = &il->staging;
il               3847 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il->ht.enabled) {
il               3856 drivers/net/wireless/intel/iwlegacy/common.c 	    cpu_to_le32(il->ht.protection << RXON_FLG_HT_OPERATING_MODE_POS);
il               3863 drivers/net/wireless/intel/iwlegacy/common.c 	if (il_is_ht40_tx_allowed(il, NULL)) {
il               3865 drivers/net/wireless/intel/iwlegacy/common.c 		if (il->ht.protection == IEEE80211_HT_OP_MODE_PROTECTION_20MHZ) {
il               3868 drivers/net/wireless/intel/iwlegacy/common.c 			switch (il->ht.extension_chan_offset) {
il               3879 drivers/net/wireless/intel/iwlegacy/common.c 			switch (il->ht.extension_chan_offset) {
il               3900 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->ops->set_rxon_chain)
il               3901 drivers/net/wireless/intel/iwlegacy/common.c 		il->ops->set_rxon_chain(il);
il               3905 drivers/net/wireless/intel/iwlegacy/common.c 		il->ht.protection, il->ht.extension_chan_offset);
il               3909 drivers/net/wireless/intel/iwlegacy/common.c il_set_rxon_ht(struct il_priv *il, struct il_ht_config *ht_conf)
il               3911 drivers/net/wireless/intel/iwlegacy/common.c 	_il_set_rxon_ht(il, ht_conf);
il               3917 drivers/net/wireless/intel/iwlegacy/common.c il_get_single_channel_number(struct il_priv *il, enum nl80211_band band)
il               3926 drivers/net/wireless/intel/iwlegacy/common.c 		max = il->channel_count;
il               3933 drivers/net/wireless/intel/iwlegacy/common.c 		channel = il->channel_info[i].channel;
il               3934 drivers/net/wireless/intel/iwlegacy/common.c 		if (channel == le16_to_cpu(il->staging.channel))
il               3937 drivers/net/wireless/intel/iwlegacy/common.c 		ch_info = il_get_channel_info(il, band, channel);
il               3954 drivers/net/wireless/intel/iwlegacy/common.c il_set_rxon_channel(struct il_priv *il, struct ieee80211_channel *ch)
il               3959 drivers/net/wireless/intel/iwlegacy/common.c 	if (le16_to_cpu(il->staging.channel) == channel && il->band == band)
il               3962 drivers/net/wireless/intel/iwlegacy/common.c 	il->staging.channel = cpu_to_le16(channel);
il               3964 drivers/net/wireless/intel/iwlegacy/common.c 		il->staging.flags &= ~RXON_FLG_BAND_24G_MSK;
il               3966 drivers/net/wireless/intel/iwlegacy/common.c 		il->staging.flags |= RXON_FLG_BAND_24G_MSK;
il               3968 drivers/net/wireless/intel/iwlegacy/common.c 	il->band = band;
il               3977 drivers/net/wireless/intel/iwlegacy/common.c il_set_flags_for_band(struct il_priv *il, enum nl80211_band band,
il               3981 drivers/net/wireless/intel/iwlegacy/common.c 		il->staging.flags &=
il               3984 drivers/net/wireless/intel/iwlegacy/common.c 		il->staging.flags |= RXON_FLG_SHORT_SLOT_MSK;
il               3988 drivers/net/wireless/intel/iwlegacy/common.c 			il->staging.flags |= RXON_FLG_SHORT_SLOT_MSK;
il               3990 drivers/net/wireless/intel/iwlegacy/common.c 			il->staging.flags &= ~RXON_FLG_SHORT_SLOT_MSK;
il               3992 drivers/net/wireless/intel/iwlegacy/common.c 		il->staging.flags |= RXON_FLG_BAND_24G_MSK;
il               3993 drivers/net/wireless/intel/iwlegacy/common.c 		il->staging.flags |= RXON_FLG_AUTO_DETECT_MSK;
il               3994 drivers/net/wireless/intel/iwlegacy/common.c 		il->staging.flags &= ~RXON_FLG_CCK_MSK;
il               4003 drivers/net/wireless/intel/iwlegacy/common.c il_connection_init_rx_config(struct il_priv *il)
il               4007 drivers/net/wireless/intel/iwlegacy/common.c 	memset(&il->staging, 0, sizeof(il->staging));
il               4009 drivers/net/wireless/intel/iwlegacy/common.c 	switch (il->iw_mode) {
il               4011 drivers/net/wireless/intel/iwlegacy/common.c 		il->staging.dev_type = RXON_DEV_TYPE_ESS;
il               4014 drivers/net/wireless/intel/iwlegacy/common.c 		il->staging.dev_type = RXON_DEV_TYPE_ESS;
il               4015 drivers/net/wireless/intel/iwlegacy/common.c 		il->staging.filter_flags = RXON_FILTER_ACCEPT_GRP_MSK;
il               4018 drivers/net/wireless/intel/iwlegacy/common.c 		il->staging.dev_type = RXON_DEV_TYPE_IBSS;
il               4019 drivers/net/wireless/intel/iwlegacy/common.c 		il->staging.flags = RXON_FLG_SHORT_PREAMBLE_MSK;
il               4020 drivers/net/wireless/intel/iwlegacy/common.c 		il->staging.filter_flags =
il               4024 drivers/net/wireless/intel/iwlegacy/common.c 		IL_ERR("Unsupported interface type %d\n", il->vif->type);
il               4031 drivers/net/wireless/intel/iwlegacy/common.c 	if (!hw_to_local(il->hw)->short_preamble)
il               4032 drivers/net/wireless/intel/iwlegacy/common.c 		il->staging.flags &= ~RXON_FLG_SHORT_PREAMBLE_MSK;
il               4034 drivers/net/wireless/intel/iwlegacy/common.c 		il->staging.flags |= RXON_FLG_SHORT_PREAMBLE_MSK;
il               4038 drivers/net/wireless/intel/iwlegacy/common.c 	    il_get_channel_info(il, il->band, le16_to_cpu(il->active.channel));
il               4041 drivers/net/wireless/intel/iwlegacy/common.c 		ch_info = &il->channel_info[0];
il               4043 drivers/net/wireless/intel/iwlegacy/common.c 	il->staging.channel = cpu_to_le16(ch_info->channel);
il               4044 drivers/net/wireless/intel/iwlegacy/common.c 	il->band = ch_info->band;
il               4046 drivers/net/wireless/intel/iwlegacy/common.c 	il_set_flags_for_band(il, il->band, il->vif);
il               4048 drivers/net/wireless/intel/iwlegacy/common.c 	il->staging.ofdm_basic_rates =
il               4050 drivers/net/wireless/intel/iwlegacy/common.c 	il->staging.cck_basic_rates =
il               4054 drivers/net/wireless/intel/iwlegacy/common.c 	il->staging.flags &=
il               4056 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->vif)
il               4057 drivers/net/wireless/intel/iwlegacy/common.c 		memcpy(il->staging.node_addr, il->vif->addr, ETH_ALEN);
il               4059 drivers/net/wireless/intel/iwlegacy/common.c 	il->staging.ofdm_ht_single_stream_basic_rates = 0xff;
il               4060 drivers/net/wireless/intel/iwlegacy/common.c 	il->staging.ofdm_ht_dual_stream_basic_rates = 0xff;
il               4065 drivers/net/wireless/intel/iwlegacy/common.c il_set_rate(struct il_priv *il)
il               4071 drivers/net/wireless/intel/iwlegacy/common.c 	hw = il_get_hw_mode(il, il->band);
il               4077 drivers/net/wireless/intel/iwlegacy/common.c 	il->active_rate = 0;
il               4082 drivers/net/wireless/intel/iwlegacy/common.c 			il->active_rate |= (1 << rate->hw_value);
il               4085 drivers/net/wireless/intel/iwlegacy/common.c 	D_RATE("Set active_rate = %0x\n", il->active_rate);
il               4087 drivers/net/wireless/intel/iwlegacy/common.c 	il->staging.cck_basic_rates =
il               4090 drivers/net/wireless/intel/iwlegacy/common.c 	il->staging.ofdm_basic_rates =
il               4096 drivers/net/wireless/intel/iwlegacy/common.c il_chswitch_done(struct il_priv *il, bool is_success)
il               4098 drivers/net/wireless/intel/iwlegacy/common.c 	if (test_bit(S_EXIT_PENDING, &il->status))
il               4101 drivers/net/wireless/intel/iwlegacy/common.c 	if (test_and_clear_bit(S_CHANNEL_SWITCH_PENDING, &il->status))
il               4102 drivers/net/wireless/intel/iwlegacy/common.c 		ieee80211_chswitch_done(il->vif, is_success);
il               4107 drivers/net/wireless/intel/iwlegacy/common.c il_hdl_csa(struct il_priv *il, struct il_rx_buf *rxb)
il               4111 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_rxon_cmd *rxon = (void *)&il->active;
il               4113 drivers/net/wireless/intel/iwlegacy/common.c 	if (!test_bit(S_CHANNEL_SWITCH_PENDING, &il->status))
il               4116 drivers/net/wireless/intel/iwlegacy/common.c 	if (!le32_to_cpu(csa->status) && csa->channel == il->switch_channel) {
il               4118 drivers/net/wireless/intel/iwlegacy/common.c 		il->staging.channel = csa->channel;
il               4120 drivers/net/wireless/intel/iwlegacy/common.c 		il_chswitch_done(il, true);
il               4124 drivers/net/wireless/intel/iwlegacy/common.c 		il_chswitch_done(il, false);
il               4131 drivers/net/wireless/intel/iwlegacy/common.c il_print_rx_config_cmd(struct il_priv *il)
il               4133 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_rxon_cmd *rxon = &il->staging;
il               4136 drivers/net/wireless/intel/iwlegacy/common.c 	il_print_hex_dump(il, IL_DL_RADIO, (u8 *) rxon, sizeof(*rxon));
il               4153 drivers/net/wireless/intel/iwlegacy/common.c il_irq_handle_error(struct il_priv *il)
il               4156 drivers/net/wireless/intel/iwlegacy/common.c 	set_bit(S_FW_ERROR, &il->status);
il               4159 drivers/net/wireless/intel/iwlegacy/common.c 	clear_bit(S_HCMD_ACTIVE, &il->status);
il               4161 drivers/net/wireless/intel/iwlegacy/common.c 	IL_ERR("Loaded firmware version: %s\n", il->hw->wiphy->fw_version);
il               4163 drivers/net/wireless/intel/iwlegacy/common.c 	il->ops->dump_nic_error_log(il);
il               4164 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->ops->dump_fh)
il               4165 drivers/net/wireless/intel/iwlegacy/common.c 		il->ops->dump_fh(il, NULL, false);
il               4167 drivers/net/wireless/intel/iwlegacy/common.c 	if (il_get_debug_level(il) & IL_DL_FW_ERRORS)
il               4168 drivers/net/wireless/intel/iwlegacy/common.c 		il_print_rx_config_cmd(il);
il               4171 drivers/net/wireless/intel/iwlegacy/common.c 	wake_up(&il->wait_command_queue);
il               4175 drivers/net/wireless/intel/iwlegacy/common.c 	clear_bit(S_READY, &il->status);
il               4177 drivers/net/wireless/intel/iwlegacy/common.c 	if (!test_bit(S_EXIT_PENDING, &il->status)) {
il               4181 drivers/net/wireless/intel/iwlegacy/common.c 		if (il->cfg->mod_params->restart_fw)
il               4182 drivers/net/wireless/intel/iwlegacy/common.c 			queue_work(il->workqueue, &il->restart);
il               4188 drivers/net/wireless/intel/iwlegacy/common.c _il_apm_stop_master(struct il_priv *il)
il               4193 drivers/net/wireless/intel/iwlegacy/common.c 	_il_set_bit(il, CSR_RESET, CSR_RESET_REG_FLAG_STOP_MASTER);
il               4196 drivers/net/wireless/intel/iwlegacy/common.c 	    _il_poll_bit(il, CSR_RESET, CSR_RESET_REG_FLAG_MASTER_DISABLED,
il               4207 drivers/net/wireless/intel/iwlegacy/common.c _il_apm_stop(struct il_priv *il)
il               4209 drivers/net/wireless/intel/iwlegacy/common.c 	lockdep_assert_held(&il->reg_lock);
il               4214 drivers/net/wireless/intel/iwlegacy/common.c 	_il_apm_stop_master(il);
il               4217 drivers/net/wireless/intel/iwlegacy/common.c 	_il_set_bit(il, CSR_RESET, CSR_RESET_REG_FLAG_SW_RESET);
il               4225 drivers/net/wireless/intel/iwlegacy/common.c 	_il_clear_bit(il, CSR_GP_CNTRL, CSR_GP_CNTRL_REG_FLAG_INIT_DONE);
il               4230 drivers/net/wireless/intel/iwlegacy/common.c il_apm_stop(struct il_priv *il)
il               4234 drivers/net/wireless/intel/iwlegacy/common.c 	spin_lock_irqsave(&il->reg_lock, flags);
il               4235 drivers/net/wireless/intel/iwlegacy/common.c 	_il_apm_stop(il);
il               4236 drivers/net/wireless/intel/iwlegacy/common.c 	spin_unlock_irqrestore(&il->reg_lock, flags);
il               4246 drivers/net/wireless/intel/iwlegacy/common.c il_apm_init(struct il_priv *il)
il               4259 drivers/net/wireless/intel/iwlegacy/common.c 	il_set_bit(il, CSR_GIO_CHICKEN_BITS,
il               4266 drivers/net/wireless/intel/iwlegacy/common.c 	il_set_bit(il, CSR_GIO_CHICKEN_BITS,
il               4270 drivers/net/wireless/intel/iwlegacy/common.c 	il_set_bit(il, CSR_DBG_HPET_MEM_REG, CSR_DBG_HPET_MEM_REG_VAL);
il               4277 drivers/net/wireless/intel/iwlegacy/common.c 	il_set_bit(il, CSR_HW_IF_CONFIG_REG,
il               4288 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->cfg->set_l0s) {
il               4289 drivers/net/wireless/intel/iwlegacy/common.c 		pcie_capability_read_word(il->pci_dev, PCI_EXP_LNKCTL, &lctl);
il               4292 drivers/net/wireless/intel/iwlegacy/common.c 			il_set_bit(il, CSR_GIO_REG,
il               4297 drivers/net/wireless/intel/iwlegacy/common.c 			il_clear_bit(il, CSR_GIO_REG,
il               4304 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->cfg->pll_cfg_val)
il               4305 drivers/net/wireless/intel/iwlegacy/common.c 		il_set_bit(il, CSR_ANA_PLL_CFG,
il               4306 drivers/net/wireless/intel/iwlegacy/common.c 			   il->cfg->pll_cfg_val);
il               4312 drivers/net/wireless/intel/iwlegacy/common.c 	il_set_bit(il, CSR_GP_CNTRL, CSR_GP_CNTRL_REG_FLAG_INIT_DONE);
il               4320 drivers/net/wireless/intel/iwlegacy/common.c 	    _il_poll_bit(il, CSR_GP_CNTRL,
il               4336 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->cfg->use_bsm)
il               4337 drivers/net/wireless/intel/iwlegacy/common.c 		il_wr_prph(il, APMG_CLK_EN_REG,
il               4340 drivers/net/wireless/intel/iwlegacy/common.c 		il_wr_prph(il, APMG_CLK_EN_REG, APMG_CLK_VAL_DMA_CLK_RQT);
il               4344 drivers/net/wireless/intel/iwlegacy/common.c 	il_set_bits_prph(il, APMG_PCIDEV_STT_REG,
il               4353 drivers/net/wireless/intel/iwlegacy/common.c il_set_tx_power(struct il_priv *il, s8 tx_power, bool force)
il               4359 drivers/net/wireless/intel/iwlegacy/common.c 	lockdep_assert_held(&il->mutex);
il               4361 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->tx_power_user_lmt == tx_power && !force)
il               4364 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il->ops->send_tx_power)
il               4373 drivers/net/wireless/intel/iwlegacy/common.c 	if (tx_power > il->tx_power_device_lmt) {
il               4375 drivers/net/wireless/intel/iwlegacy/common.c 			tx_power, il->tx_power_device_lmt);
il               4379 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il_is_ready_rf(il))
il               4384 drivers/net/wireless/intel/iwlegacy/common.c 	il->tx_power_next = tx_power;
il               4387 drivers/net/wireless/intel/iwlegacy/common.c 	defer = test_bit(S_SCANNING, &il->status) ||
il               4388 drivers/net/wireless/intel/iwlegacy/common.c 	    memcmp(&il->active, &il->staging, sizeof(il->staging));
il               4394 drivers/net/wireless/intel/iwlegacy/common.c 	prev_tx_power = il->tx_power_user_lmt;
il               4395 drivers/net/wireless/intel/iwlegacy/common.c 	il->tx_power_user_lmt = tx_power;
il               4397 drivers/net/wireless/intel/iwlegacy/common.c 	ret = il->ops->send_tx_power(il);
il               4401 drivers/net/wireless/intel/iwlegacy/common.c 		il->tx_power_user_lmt = prev_tx_power;
il               4402 drivers/net/wireless/intel/iwlegacy/common.c 		il->tx_power_next = prev_tx_power;
il               4409 drivers/net/wireless/intel/iwlegacy/common.c il_send_bt_config(struct il_priv *il)
il               4426 drivers/net/wireless/intel/iwlegacy/common.c 	if (il_send_cmd_pdu(il, C_BT_CONFIG, sizeof(struct il_bt_cmd), &bt_cmd))
il               4432 drivers/net/wireless/intel/iwlegacy/common.c il_send_stats_request(struct il_priv *il, u8 flags, bool clear)
il               4439 drivers/net/wireless/intel/iwlegacy/common.c 		return il_send_cmd_pdu_async(il, C_STATS, sizeof(struct il_stats_cmd),
il               4442 drivers/net/wireless/intel/iwlegacy/common.c 		return il_send_cmd_pdu(il, C_STATS, sizeof(struct il_stats_cmd),
il               4448 drivers/net/wireless/intel/iwlegacy/common.c il_hdl_pm_sleep(struct il_priv *il, struct il_rx_buf *rxb)
il               4460 drivers/net/wireless/intel/iwlegacy/common.c il_hdl_pm_debug_stats(struct il_priv *il, struct il_rx_buf *rxb)
il               4466 drivers/net/wireless/intel/iwlegacy/common.c 	il_print_hex_dump(il, IL_DL_RADIO, pkt->u.raw, len);
il               4471 drivers/net/wireless/intel/iwlegacy/common.c il_hdl_error(struct il_priv *il, struct il_rx_buf *rxb)
il               4486 drivers/net/wireless/intel/iwlegacy/common.c il_clear_isr_stats(struct il_priv *il)
il               4488 drivers/net/wireless/intel/iwlegacy/common.c 	memset(&il->isr_stats, 0, sizeof(il->isr_stats));
il               4495 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_priv *il = hw->priv;
il               4501 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il_is_ready_rf(il)) {
il               4513 drivers/net/wireless/intel/iwlegacy/common.c 	spin_lock_irqsave(&il->lock, flags);
il               4515 drivers/net/wireless/intel/iwlegacy/common.c 	il->qos_data.def_qos_parm.ac[q].cw_min =
il               4517 drivers/net/wireless/intel/iwlegacy/common.c 	il->qos_data.def_qos_parm.ac[q].cw_max =
il               4519 drivers/net/wireless/intel/iwlegacy/common.c 	il->qos_data.def_qos_parm.ac[q].aifsn = params->aifs;
il               4520 drivers/net/wireless/intel/iwlegacy/common.c 	il->qos_data.def_qos_parm.ac[q].edca_txop =
il               4523 drivers/net/wireless/intel/iwlegacy/common.c 	il->qos_data.def_qos_parm.ac[q].reserved1 = 0;
il               4525 drivers/net/wireless/intel/iwlegacy/common.c 	spin_unlock_irqrestore(&il->lock, flags);
il               4535 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_priv *il = hw->priv;
il               4540 drivers/net/wireless/intel/iwlegacy/common.c 	ret = (il->ibss_manager == IL_IBSS_MANAGER);
il               4548 drivers/net/wireless/intel/iwlegacy/common.c il_set_mode(struct il_priv *il)
il               4550 drivers/net/wireless/intel/iwlegacy/common.c 	il_connection_init_rx_config(il);
il               4552 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->ops->set_rxon_chain)
il               4553 drivers/net/wireless/intel/iwlegacy/common.c 		il->ops->set_rxon_chain(il);
il               4555 drivers/net/wireless/intel/iwlegacy/common.c 	return il_commit_rxon(il);
il               4561 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_priv *il = hw->priv;
il               4565 drivers/net/wireless/intel/iwlegacy/common.c 	mutex_lock(&il->mutex);
il               4568 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il_is_ready_rf(il)) {
il               4578 drivers/net/wireless/intel/iwlegacy/common.c 	reset = (il->vif == vif);
il               4579 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->vif && !reset) {
il               4584 drivers/net/wireless/intel/iwlegacy/common.c 	il->vif = vif;
il               4585 drivers/net/wireless/intel/iwlegacy/common.c 	il->iw_mode = vif->type;
il               4587 drivers/net/wireless/intel/iwlegacy/common.c 	err = il_set_mode(il);
il               4591 drivers/net/wireless/intel/iwlegacy/common.c 			il->vif = NULL;
il               4592 drivers/net/wireless/intel/iwlegacy/common.c 			il->iw_mode = NL80211_IFTYPE_STATION;
il               4598 drivers/net/wireless/intel/iwlegacy/common.c 	mutex_unlock(&il->mutex);
il               4605 drivers/net/wireless/intel/iwlegacy/common.c il_teardown_interface(struct il_priv *il, struct ieee80211_vif *vif)
il               4607 drivers/net/wireless/intel/iwlegacy/common.c 	lockdep_assert_held(&il->mutex);
il               4609 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->scan_vif == vif) {
il               4610 drivers/net/wireless/intel/iwlegacy/common.c 		il_scan_cancel_timeout(il, 200);
il               4611 drivers/net/wireless/intel/iwlegacy/common.c 		il_force_scan_end(il);
il               4614 drivers/net/wireless/intel/iwlegacy/common.c 	il_set_mode(il);
il               4620 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_priv *il = hw->priv;
il               4622 drivers/net/wireless/intel/iwlegacy/common.c 	mutex_lock(&il->mutex);
il               4625 drivers/net/wireless/intel/iwlegacy/common.c 	WARN_ON(il->vif != vif);
il               4626 drivers/net/wireless/intel/iwlegacy/common.c 	il->vif = NULL;
il               4627 drivers/net/wireless/intel/iwlegacy/common.c 	il->iw_mode = NL80211_IFTYPE_UNSPECIFIED;
il               4628 drivers/net/wireless/intel/iwlegacy/common.c 	il_teardown_interface(il, vif);
il               4629 drivers/net/wireless/intel/iwlegacy/common.c 	eth_zero_addr(il->bssid);
il               4632 drivers/net/wireless/intel/iwlegacy/common.c 	mutex_unlock(&il->mutex);
il               4637 drivers/net/wireless/intel/iwlegacy/common.c il_alloc_txq_mem(struct il_priv *il)
il               4639 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il->txq)
il               4640 drivers/net/wireless/intel/iwlegacy/common.c 		il->txq =
il               4641 drivers/net/wireless/intel/iwlegacy/common.c 		    kcalloc(il->cfg->num_of_queues,
il               4644 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il->txq) {
il               4653 drivers/net/wireless/intel/iwlegacy/common.c il_free_txq_mem(struct il_priv *il)
il               4655 drivers/net/wireless/intel/iwlegacy/common.c 	kfree(il->txq);
il               4656 drivers/net/wireless/intel/iwlegacy/common.c 	il->txq = NULL;
il               4661 drivers/net/wireless/intel/iwlegacy/common.c il_force_reset(struct il_priv *il, bool external)
il               4665 drivers/net/wireless/intel/iwlegacy/common.c 	if (test_bit(S_EXIT_PENDING, &il->status))
il               4668 drivers/net/wireless/intel/iwlegacy/common.c 	force_reset = &il->force_reset;
il               4691 drivers/net/wireless/intel/iwlegacy/common.c 	if (!external && !il->cfg->mod_params->restart_fw) {
il               4700 drivers/net/wireless/intel/iwlegacy/common.c 	set_bit(S_FW_ERROR, &il->status);
il               4701 drivers/net/wireless/intel/iwlegacy/common.c 	wake_up(&il->wait_command_queue);
il               4706 drivers/net/wireless/intel/iwlegacy/common.c 	clear_bit(S_READY, &il->status);
il               4707 drivers/net/wireless/intel/iwlegacy/common.c 	queue_work(il->workqueue, &il->restart);
il               4717 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_priv *il = hw->priv;
il               4720 drivers/net/wireless/intel/iwlegacy/common.c 	mutex_lock(&il->mutex);
il               4729 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il->vif || !il_is_ready_rf(il)) {
il               4741 drivers/net/wireless/intel/iwlegacy/common.c 	il->iw_mode = newtype;
il               4742 drivers/net/wireless/intel/iwlegacy/common.c 	il_teardown_interface(il, vif);
il               4747 drivers/net/wireless/intel/iwlegacy/common.c 	mutex_unlock(&il->mutex);
il               4756 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_priv *il = hw->priv;
il               4760 drivers/net/wireless/intel/iwlegacy/common.c 	mutex_lock(&il->mutex);
il               4763 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->txq == NULL)
il               4766 drivers/net/wireless/intel/iwlegacy/common.c 	for (i = 0; i < il->hw_params.max_txq_num; i++) {
il               4769 drivers/net/wireless/intel/iwlegacy/common.c 		if (i == il->cmd_queue)
il               4772 drivers/net/wireless/intel/iwlegacy/common.c 		q = &il->txq[i].q;
il               4785 drivers/net/wireless/intel/iwlegacy/common.c 	mutex_unlock(&il->mutex);
il               4794 drivers/net/wireless/intel/iwlegacy/common.c il_check_stuck_queue(struct il_priv *il, int cnt)
il               4796 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_tx_queue *txq = &il->txq[cnt];
il               4809 drivers/net/wireless/intel/iwlegacy/common.c 	    msecs_to_jiffies(il->cfg->wd_timeout);
il               4814 drivers/net/wireless/intel/iwlegacy/common.c 		ret = il_force_reset(il, false);
il               4834 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_priv *il = from_timer(il, t, watchdog);
il               4838 drivers/net/wireless/intel/iwlegacy/common.c 	if (test_bit(S_EXIT_PENDING, &il->status))
il               4841 drivers/net/wireless/intel/iwlegacy/common.c 	timeout = il->cfg->wd_timeout;
il               4846 drivers/net/wireless/intel/iwlegacy/common.c 	if (il_check_stuck_queue(il, il->cmd_queue))
il               4850 drivers/net/wireless/intel/iwlegacy/common.c 	for (cnt = 0; cnt < il->hw_params.max_txq_num; cnt++) {
il               4852 drivers/net/wireless/intel/iwlegacy/common.c 		if (cnt == il->cmd_queue)
il               4854 drivers/net/wireless/intel/iwlegacy/common.c 		if (il_check_stuck_queue(il, cnt))
il               4858 drivers/net/wireless/intel/iwlegacy/common.c 	mod_timer(&il->watchdog,
il               4864 drivers/net/wireless/intel/iwlegacy/common.c il_setup_watchdog(struct il_priv *il)
il               4866 drivers/net/wireless/intel/iwlegacy/common.c 	unsigned int timeout = il->cfg->wd_timeout;
il               4869 drivers/net/wireless/intel/iwlegacy/common.c 		mod_timer(&il->watchdog,
il               4872 drivers/net/wireless/intel/iwlegacy/common.c 		del_timer(&il->watchdog);
il               4883 drivers/net/wireless/intel/iwlegacy/common.c il_usecs_to_beacons(struct il_priv *il, u32 usec, u32 beacon_interval)
il               4894 drivers/net/wireless/intel/iwlegacy/common.c 	     interval) & (il_beacon_time_mask_high(il,
il               4895 drivers/net/wireless/intel/iwlegacy/common.c 						   il->hw_params.
il               4896 drivers/net/wireless/intel/iwlegacy/common.c 						   beacon_time_tsf_bits) >> il->
il               4899 drivers/net/wireless/intel/iwlegacy/common.c 	    (usec % interval) & il_beacon_time_mask_low(il,
il               4900 drivers/net/wireless/intel/iwlegacy/common.c 							il->hw_params.
il               4903 drivers/net/wireless/intel/iwlegacy/common.c 	return (quot << il->hw_params.beacon_time_tsf_bits) + rem;
il               4911 drivers/net/wireless/intel/iwlegacy/common.c il_add_beacon_time(struct il_priv *il, u32 base, u32 addon,
il               4914 drivers/net/wireless/intel/iwlegacy/common.c 	u32 base_low = base & il_beacon_time_mask_low(il,
il               4915 drivers/net/wireless/intel/iwlegacy/common.c 						      il->hw_params.
il               4917 drivers/net/wireless/intel/iwlegacy/common.c 	u32 addon_low = addon & il_beacon_time_mask_low(il,
il               4918 drivers/net/wireless/intel/iwlegacy/common.c 							il->hw_params.
il               4921 drivers/net/wireless/intel/iwlegacy/common.c 	u32 res = (base & il_beacon_time_mask_high(il,
il               4922 drivers/net/wireless/intel/iwlegacy/common.c 						   il->hw_params.
il               4924 drivers/net/wireless/intel/iwlegacy/common.c 	    (addon & il_beacon_time_mask_high(il,
il               4925 drivers/net/wireless/intel/iwlegacy/common.c 					      il->hw_params.
il               4932 drivers/net/wireless/intel/iwlegacy/common.c 		res += (1 << il->hw_params.beacon_time_tsf_bits);
il               4934 drivers/net/wireless/intel/iwlegacy/common.c 		res += (1 << il->hw_params.beacon_time_tsf_bits);
il               4945 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_priv *il = dev_get_drvdata(device);
il               4954 drivers/net/wireless/intel/iwlegacy/common.c 	il_apm_stop(il);
il               4963 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_priv *il = pci_get_drvdata(pdev);
il               4972 drivers/net/wireless/intel/iwlegacy/common.c 	il_enable_interrupts(il);
il               4974 drivers/net/wireless/intel/iwlegacy/common.c 	if (!(_il_rd(il, CSR_GP_CNTRL) & CSR_GP_CNTRL_REG_FLAG_HW_RF_KILL_SW))
il               4978 drivers/net/wireless/intel/iwlegacy/common.c 		set_bit(S_RFKILL, &il->status);
il               4980 drivers/net/wireless/intel/iwlegacy/common.c 		clear_bit(S_RFKILL, &il->status);
il               4982 drivers/net/wireless/intel/iwlegacy/common.c 	wiphy_rfkill_set_hw_state(il->hw->wiphy, hw_rfkill);
il               4993 drivers/net/wireless/intel/iwlegacy/common.c il_update_qos(struct il_priv *il)
il               4995 drivers/net/wireless/intel/iwlegacy/common.c 	if (test_bit(S_EXIT_PENDING, &il->status))
il               4998 drivers/net/wireless/intel/iwlegacy/common.c 	il->qos_data.def_qos_parm.qos_flags = 0;
il               5000 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->qos_data.qos_active)
il               5001 drivers/net/wireless/intel/iwlegacy/common.c 		il->qos_data.def_qos_parm.qos_flags |=
il               5004 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->ht.enabled)
il               5005 drivers/net/wireless/intel/iwlegacy/common.c 		il->qos_data.def_qos_parm.qos_flags |= QOS_PARAM_FLG_TGN_MSK;
il               5008 drivers/net/wireless/intel/iwlegacy/common.c 	      il->qos_data.qos_active, il->qos_data.def_qos_parm.qos_flags);
il               5010 drivers/net/wireless/intel/iwlegacy/common.c 	il_send_cmd_pdu_async(il, C_QOS_PARAM, sizeof(struct il_qosparam_cmd),
il               5011 drivers/net/wireless/intel/iwlegacy/common.c 			      &il->qos_data.def_qos_parm, NULL);
il               5020 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_priv *il = hw->priv;
il               5024 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_ht_config *ht_conf = &il->current_ht_config;
il               5031 drivers/net/wireless/intel/iwlegacy/common.c 	mutex_lock(&il->mutex);
il               5035 drivers/net/wireless/intel/iwlegacy/common.c 	if (unlikely(test_bit(S_SCANNING, &il->status))) {
il               5043 drivers/net/wireless/intel/iwlegacy/common.c 		il->current_ht_config.smps = conf->smps_mode;
il               5052 drivers/net/wireless/intel/iwlegacy/common.c 		if (il->ops->set_rxon_chain)
il               5053 drivers/net/wireless/intel/iwlegacy/common.c 			il->ops->set_rxon_chain(il);
il               5065 drivers/net/wireless/intel/iwlegacy/common.c 		ch_info = il_get_channel_info(il, channel->band, ch);
il               5072 drivers/net/wireless/intel/iwlegacy/common.c 		if (il->iw_mode == NL80211_IFTYPE_ADHOC &&
il               5079 drivers/net/wireless/intel/iwlegacy/common.c 		spin_lock_irqsave(&il->lock, flags);
il               5082 drivers/net/wireless/intel/iwlegacy/common.c 		if (il->ht.enabled != conf_is_ht(conf)) {
il               5083 drivers/net/wireless/intel/iwlegacy/common.c 			il->ht.enabled = conf_is_ht(conf);
il               5086 drivers/net/wireless/intel/iwlegacy/common.c 		if (il->ht.enabled) {
il               5088 drivers/net/wireless/intel/iwlegacy/common.c 				il->ht.extension_chan_offset =
il               5090 drivers/net/wireless/intel/iwlegacy/common.c 				il->ht.is_40mhz = true;
il               5092 drivers/net/wireless/intel/iwlegacy/common.c 				il->ht.extension_chan_offset =
il               5094 drivers/net/wireless/intel/iwlegacy/common.c 				il->ht.is_40mhz = true;
il               5096 drivers/net/wireless/intel/iwlegacy/common.c 				il->ht.extension_chan_offset =
il               5098 drivers/net/wireless/intel/iwlegacy/common.c 				il->ht.is_40mhz = false;
il               5101 drivers/net/wireless/intel/iwlegacy/common.c 			il->ht.is_40mhz = false;
il               5107 drivers/net/wireless/intel/iwlegacy/common.c 		il->ht.protection = IEEE80211_HT_OP_MODE_PROTECTION_NONE;
il               5112 drivers/net/wireless/intel/iwlegacy/common.c 		if ((le16_to_cpu(il->staging.channel) != ch))
il               5113 drivers/net/wireless/intel/iwlegacy/common.c 			il->staging.flags = 0;
il               5115 drivers/net/wireless/intel/iwlegacy/common.c 		il_set_rxon_channel(il, channel);
il               5116 drivers/net/wireless/intel/iwlegacy/common.c 		il_set_rxon_ht(il, ht_conf);
il               5118 drivers/net/wireless/intel/iwlegacy/common.c 		il_set_flags_for_band(il, channel->band, il->vif);
il               5120 drivers/net/wireless/intel/iwlegacy/common.c 		spin_unlock_irqrestore(&il->lock, flags);
il               5122 drivers/net/wireless/intel/iwlegacy/common.c 		if (il->ops->update_bcast_stations)
il               5123 drivers/net/wireless/intel/iwlegacy/common.c 			ret = il->ops->update_bcast_stations(il);
il               5129 drivers/net/wireless/intel/iwlegacy/common.c 		il_set_rate(il);
il               5133 drivers/net/wireless/intel/iwlegacy/common.c 		il->power_data.ps_disabled = !(conf->flags & IEEE80211_CONF_PS);
il               5134 drivers/net/wireless/intel/iwlegacy/common.c 		if (!il->power_data.ps_disabled)
il               5136 drivers/net/wireless/intel/iwlegacy/common.c 		ret = il_power_update_mode(il, false);
il               5142 drivers/net/wireless/intel/iwlegacy/common.c 		D_MAC80211("TX Power old=%d new=%d\n", il->tx_power_user_lmt,
il               5145 drivers/net/wireless/intel/iwlegacy/common.c 		il_set_tx_power(il, conf->power_level, false);
il               5148 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il_is_ready(il)) {
il               5156 drivers/net/wireless/intel/iwlegacy/common.c 	if (memcmp(&il->active, &il->staging, sizeof(il->staging)))
il               5157 drivers/net/wireless/intel/iwlegacy/common.c 		il_commit_rxon(il);
il               5161 drivers/net/wireless/intel/iwlegacy/common.c 		il_update_qos(il);
il               5165 drivers/net/wireless/intel/iwlegacy/common.c 	mutex_unlock(&il->mutex);
il               5174 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_priv *il = hw->priv;
il               5177 drivers/net/wireless/intel/iwlegacy/common.c 	mutex_lock(&il->mutex);
il               5180 drivers/net/wireless/intel/iwlegacy/common.c 	spin_lock_irqsave(&il->lock, flags);
il               5182 drivers/net/wireless/intel/iwlegacy/common.c 	memset(&il->current_ht_config, 0, sizeof(struct il_ht_config));
il               5185 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->beacon_skb)
il               5186 drivers/net/wireless/intel/iwlegacy/common.c 		dev_kfree_skb(il->beacon_skb);
il               5187 drivers/net/wireless/intel/iwlegacy/common.c 	il->beacon_skb = NULL;
il               5188 drivers/net/wireless/intel/iwlegacy/common.c 	il->timestamp = 0;
il               5190 drivers/net/wireless/intel/iwlegacy/common.c 	spin_unlock_irqrestore(&il->lock, flags);
il               5192 drivers/net/wireless/intel/iwlegacy/common.c 	il_scan_cancel_timeout(il, 100);
il               5193 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il_is_ready_rf(il)) {
il               5195 drivers/net/wireless/intel/iwlegacy/common.c 		mutex_unlock(&il->mutex);
il               5200 drivers/net/wireless/intel/iwlegacy/common.c 	il->staging.filter_flags &= ~RXON_FILTER_ASSOC_MSK;
il               5201 drivers/net/wireless/intel/iwlegacy/common.c 	il_commit_rxon(il);
il               5203 drivers/net/wireless/intel/iwlegacy/common.c 	il_set_rate(il);
il               5206 drivers/net/wireless/intel/iwlegacy/common.c 	mutex_unlock(&il->mutex);
il               5211 drivers/net/wireless/intel/iwlegacy/common.c il_ht_conf(struct il_priv *il, struct ieee80211_vif *vif)
il               5213 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_ht_config *ht_conf = &il->current_ht_config;
il               5219 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il->ht.enabled)
il               5222 drivers/net/wireless/intel/iwlegacy/common.c 	il->ht.protection =
il               5224 drivers/net/wireless/intel/iwlegacy/common.c 	il->ht.non_gf_sta_present =
il               5271 drivers/net/wireless/intel/iwlegacy/common.c il_set_no_assoc(struct il_priv *il, struct ieee80211_vif *vif)
il               5278 drivers/net/wireless/intel/iwlegacy/common.c 	il->staging.filter_flags &= ~RXON_FILTER_ASSOC_MSK;
il               5279 drivers/net/wireless/intel/iwlegacy/common.c 	il->staging.assoc_id = 0;
il               5280 drivers/net/wireless/intel/iwlegacy/common.c 	il_commit_rxon(il);
il               5286 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_priv *il = hw->priv;
il               5296 drivers/net/wireless/intel/iwlegacy/common.c 	lockdep_assert_held(&il->mutex);
il               5298 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il->beacon_enabled) {
il               5304 drivers/net/wireless/intel/iwlegacy/common.c 	spin_lock_irqsave(&il->lock, flags);
il               5306 drivers/net/wireless/intel/iwlegacy/common.c 	if (il->beacon_skb)
il               5307 drivers/net/wireless/intel/iwlegacy/common.c 		dev_kfree_skb(il->beacon_skb);
il               5309 drivers/net/wireless/intel/iwlegacy/common.c 	il->beacon_skb = skb;
il               5312 drivers/net/wireless/intel/iwlegacy/common.c 	il->timestamp = le64_to_cpu(timestamp);
il               5315 drivers/net/wireless/intel/iwlegacy/common.c 	spin_unlock_irqrestore(&il->lock, flags);
il               5317 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il_is_ready_rf(il)) {
il               5322 drivers/net/wireless/intel/iwlegacy/common.c 	il->ops->post_associate(il);
il               5329 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_priv *il = hw->priv;
il               5332 drivers/net/wireless/intel/iwlegacy/common.c 	mutex_lock(&il->mutex);
il               5335 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il_is_alive(il)) {
il               5337 drivers/net/wireless/intel/iwlegacy/common.c 		mutex_unlock(&il->mutex);
il               5344 drivers/net/wireless/intel/iwlegacy/common.c 		spin_lock_irqsave(&il->lock, flags);
il               5345 drivers/net/wireless/intel/iwlegacy/common.c 		il->qos_data.qos_active = bss_conf->qos;
il               5346 drivers/net/wireless/intel/iwlegacy/common.c 		il_update_qos(il);
il               5347 drivers/net/wireless/intel/iwlegacy/common.c 		spin_unlock_irqrestore(&il->lock, flags);
il               5353 drivers/net/wireless/intel/iwlegacy/common.c 			il->beacon_enabled = true;
il               5355 drivers/net/wireless/intel/iwlegacy/common.c 			il->beacon_enabled = false;
il               5370 drivers/net/wireless/intel/iwlegacy/common.c 			il_wake_queues_by_reason(il, IL_STOP_REASON_PASSIVE);
il               5377 drivers/net/wireless/intel/iwlegacy/common.c 		if (il_scan_cancel_timeout(il, 100)) {
il               5379 drivers/net/wireless/intel/iwlegacy/common.c 			mutex_unlock(&il->mutex);
il               5384 drivers/net/wireless/intel/iwlegacy/common.c 		memcpy(il->staging.bssid_addr, bss_conf->bssid, ETH_ALEN);
il               5387 drivers/net/wireless/intel/iwlegacy/common.c 		memcpy(il->bssid, bss_conf->bssid, ETH_ALEN);
il               5401 drivers/net/wireless/intel/iwlegacy/common.c 			il->staging.flags |= RXON_FLG_SHORT_PREAMBLE_MSK;
il               5403 drivers/net/wireless/intel/iwlegacy/common.c 			il->staging.flags &= ~RXON_FLG_SHORT_PREAMBLE_MSK;
il               5408 drivers/net/wireless/intel/iwlegacy/common.c 		if (bss_conf->use_cts_prot && il->band != NL80211_BAND_5GHZ)
il               5409 drivers/net/wireless/intel/iwlegacy/common.c 			il->staging.flags |= RXON_FLG_TGG_PROTECT_MSK;
il               5411 drivers/net/wireless/intel/iwlegacy/common.c 			il->staging.flags &= ~RXON_FLG_TGG_PROTECT_MSK;
il               5413 drivers/net/wireless/intel/iwlegacy/common.c 			il->staging.flags |= RXON_FLG_SELF_CTS_EN;
il               5415 drivers/net/wireless/intel/iwlegacy/common.c 			il->staging.flags &= ~RXON_FLG_SELF_CTS_EN;
il               5436 drivers/net/wireless/intel/iwlegacy/common.c 		il_ht_conf(il, vif);
il               5438 drivers/net/wireless/intel/iwlegacy/common.c 		if (il->ops->set_rxon_chain)
il               5439 drivers/net/wireless/intel/iwlegacy/common.c 			il->ops->set_rxon_chain(il);
il               5445 drivers/net/wireless/intel/iwlegacy/common.c 			il->timestamp = bss_conf->sync_tsf;
il               5447 drivers/net/wireless/intel/iwlegacy/common.c 			if (!il_is_rfkill(il))
il               5448 drivers/net/wireless/intel/iwlegacy/common.c 				il->ops->post_associate(il);
il               5450 drivers/net/wireless/intel/iwlegacy/common.c 			il_set_no_assoc(il, vif);
il               5453 drivers/net/wireless/intel/iwlegacy/common.c 	if (changes && il_is_associated(il) && bss_conf->aid) {
il               5455 drivers/net/wireless/intel/iwlegacy/common.c 		ret = il_send_rxon_assoc(il);
il               5458 drivers/net/wireless/intel/iwlegacy/common.c 			memcpy((void *)&il->active, &il->staging,
il               5465 drivers/net/wireless/intel/iwlegacy/common.c 			memcpy(il->staging.bssid_addr, bss_conf->bssid,
il               5467 drivers/net/wireless/intel/iwlegacy/common.c 			memcpy(il->bssid, bss_conf->bssid, ETH_ALEN);
il               5468 drivers/net/wireless/intel/iwlegacy/common.c 			il->ops->config_ap(il);
il               5470 drivers/net/wireless/intel/iwlegacy/common.c 			il_set_no_assoc(il, vif);
il               5474 drivers/net/wireless/intel/iwlegacy/common.c 		ret = il->ops->manage_ibss_station(il, vif,
il               5483 drivers/net/wireless/intel/iwlegacy/common.c 	mutex_unlock(&il->mutex);
il               5490 drivers/net/wireless/intel/iwlegacy/common.c 	struct il_priv *il = data;
il               5494 drivers/net/wireless/intel/iwlegacy/common.c 	if (!il)
il               5497 drivers/net/wireless/intel/iwlegacy/common.c 	spin_lock_irqsave(&il->lock, flags);
il               5503 drivers/net/wireless/intel/iwlegacy/common.c 	inta_mask = _il_rd(il, CSR_INT_MASK);	/* just for debug */
il               5504 drivers/net/wireless/intel/iwlegacy/common.c 	_il_wr(il, CSR_INT_MASK, 0x00000000);
il               5507 drivers/net/wireless/intel/iwlegacy/common.c 	inta = _il_rd(il, CSR_INT);
il               5508 drivers/net/wireless/intel/iwlegacy/common.c 	inta_fh = _il_rd(il, CSR_FH_INT_STATUS);
il               5532 drivers/net/wireless/intel/iwlegacy/common.c 		tasklet_schedule(&il->irq_tasklet);
il               5535 drivers/net/wireless/intel/iwlegacy/common.c 	spin_unlock_irqrestore(&il->lock, flags);
il               5541 drivers/net/wireless/intel/iwlegacy/common.c 	if (test_bit(S_INT_ENABLED, &il->status))
il               5542 drivers/net/wireless/intel/iwlegacy/common.c 		il_enable_interrupts(il);
il               5543 drivers/net/wireless/intel/iwlegacy/common.c 	spin_unlock_irqrestore(&il->lock, flags);
il               5553 drivers/net/wireless/intel/iwlegacy/common.c il_tx_cmd_protection(struct il_priv *il, struct ieee80211_tx_info *info,
il                 31 drivers/net/wireless/intel/iwlegacy/common.h #define IL_ERR(f, a...) dev_err(&il->pci_dev->dev, f, ## a)
il                 32 drivers/net/wireless/intel/iwlegacy/common.h #define IL_WARN(f, a...) dev_warn(&il->pci_dev->dev, f, ## a)
il                 33 drivers/net/wireless/intel/iwlegacy/common.h #define IL_WARN_ONCE(f, a...) dev_warn_once(&il->pci_dev->dev, f, ## a)
il                 34 drivers/net/wireless/intel/iwlegacy/common.h #define IL_INFO(f, a...) dev_info(&il->pci_dev->dev, f, ## a)
il                102 drivers/net/wireless/intel/iwlegacy/common.h 	void (*callback) (struct il_priv *il, struct il_device_cmd *cmd,
il                414 drivers/net/wireless/intel/iwlegacy/common.h int il_eeprom_init(struct il_priv *il);
il                415 drivers/net/wireless/intel/iwlegacy/common.h void il_eeprom_free(struct il_priv *il);
il                416 drivers/net/wireless/intel/iwlegacy/common.h const u8 *il_eeprom_query_addr(const struct il_priv *il, size_t offset);
il                417 drivers/net/wireless/intel/iwlegacy/common.h u16 il_eeprom_query16(const struct il_priv *il, size_t offset);
il                418 drivers/net/wireless/intel/iwlegacy/common.h int il_init_channel_map(struct il_priv *il);
il                419 drivers/net/wireless/intel/iwlegacy/common.h void il_free_channel_map(struct il_priv *il);
il                420 drivers/net/wireless/intel/iwlegacy/common.h const struct il_channel_info *il_get_channel_info(const struct il_priv *il,
il                566 drivers/net/wireless/intel/iwlegacy/common.h 	void (*callback) (struct il_priv *il, struct il_device_cmd *cmd,
il                847 drivers/net/wireless/intel/iwlegacy/common.h void il4965_update_chain_flags(struct il_priv *il);
il               1133 drivers/net/wireless/intel/iwlegacy/common.h 	void (*handlers[IL_CN_MAX]) (struct il_priv *il,
il               1428 drivers/net/wireless/intel/iwlegacy/common.h il_txq_ctx_activate(struct il_priv *il, int txq_id)
il               1430 drivers/net/wireless/intel/iwlegacy/common.h 	set_bit(txq_id, &il->txq_ctx_active_msk);
il               1434 drivers/net/wireless/intel/iwlegacy/common.h il_txq_ctx_deactivate(struct il_priv *il, int txq_id)
il               1436 drivers/net/wireless/intel/iwlegacy/common.h 	clear_bit(txq_id, &il->txq_ctx_active_msk);
il               1440 drivers/net/wireless/intel/iwlegacy/common.h il_is_associated(struct il_priv *il)
il               1442 drivers/net/wireless/intel/iwlegacy/common.h 	return (il->active.filter_flags & RXON_FILTER_ASSOC_MSK) ? 1 : 0;
il               1446 drivers/net/wireless/intel/iwlegacy/common.h il_is_any_associated(struct il_priv *il)
il               1448 drivers/net/wireless/intel/iwlegacy/common.h 	return il_is_associated(il);
il               1484 drivers/net/wireless/intel/iwlegacy/common.h __il_free_pages(struct il_priv *il, struct page *page)
il               1486 drivers/net/wireless/intel/iwlegacy/common.h 	__free_pages(page, il->hw_params.rx_page_order);
il               1487 drivers/net/wireless/intel/iwlegacy/common.h 	il->alloc_rxb_page--;
il               1491 drivers/net/wireless/intel/iwlegacy/common.h il_free_pages(struct il_priv *il, unsigned long page)
il               1493 drivers/net/wireless/intel/iwlegacy/common.h 	free_pages(page, il->hw_params.rx_page_order);
il               1494 drivers/net/wireless/intel/iwlegacy/common.h 	il->alloc_rxb_page--;
il               1533 drivers/net/wireless/intel/iwlegacy/common.h 	void (*txq_update_byte_cnt_tbl) (struct il_priv *il,
il               1536 drivers/net/wireless/intel/iwlegacy/common.h 	int (*txq_attach_buf_to_tfd) (struct il_priv *il,
il               1539 drivers/net/wireless/intel/iwlegacy/common.h 	void (*txq_free_tfd) (struct il_priv *il, struct il_tx_queue *txq);
il               1540 drivers/net/wireless/intel/iwlegacy/common.h 	int (*txq_init) (struct il_priv *il, struct il_tx_queue *txq);
il               1542 drivers/net/wireless/intel/iwlegacy/common.h 	void (*init_alive_start) (struct il_priv *il);
il               1546 drivers/net/wireless/intel/iwlegacy/common.h 	int (*load_ucode) (struct il_priv *il);
il               1548 drivers/net/wireless/intel/iwlegacy/common.h 	void (*dump_nic_error_log) (struct il_priv *il);
il               1549 drivers/net/wireless/intel/iwlegacy/common.h 	int (*dump_fh) (struct il_priv *il, char **buf, bool display);
il               1550 drivers/net/wireless/intel/iwlegacy/common.h 	int (*set_channel_switch) (struct il_priv *il,
il               1553 drivers/net/wireless/intel/iwlegacy/common.h 	int (*apm_init) (struct il_priv *il);
il               1556 drivers/net/wireless/intel/iwlegacy/common.h 	int (*send_tx_power) (struct il_priv *il);
il               1557 drivers/net/wireless/intel/iwlegacy/common.h 	void (*update_chain_flags) (struct il_priv *il);
il               1560 drivers/net/wireless/intel/iwlegacy/common.h 	int (*eeprom_acquire_semaphore) (struct il_priv *il);
il               1561 drivers/net/wireless/intel/iwlegacy/common.h 	void (*eeprom_release_semaphore) (struct il_priv *il);
il               1563 drivers/net/wireless/intel/iwlegacy/common.h 	int (*rxon_assoc) (struct il_priv *il);
il               1564 drivers/net/wireless/intel/iwlegacy/common.h 	int (*commit_rxon) (struct il_priv *il);
il               1565 drivers/net/wireless/intel/iwlegacy/common.h 	void (*set_rxon_chain) (struct il_priv *il);
il               1570 drivers/net/wireless/intel/iwlegacy/common.h 	int (*request_scan) (struct il_priv *il, struct ieee80211_vif *vif);
il               1571 drivers/net/wireless/intel/iwlegacy/common.h 	void (*post_scan) (struct il_priv *il);
il               1572 drivers/net/wireless/intel/iwlegacy/common.h 	void (*post_associate) (struct il_priv *il);
il               1573 drivers/net/wireless/intel/iwlegacy/common.h 	void (*config_ap) (struct il_priv *il);
il               1575 drivers/net/wireless/intel/iwlegacy/common.h 	int (*update_bcast_stations) (struct il_priv *il);
il               1576 drivers/net/wireless/intel/iwlegacy/common.h 	int (*manage_ibss_station) (struct il_priv *il,
il               1579 drivers/net/wireless/intel/iwlegacy/common.h 	int (*send_led_cmd) (struct il_priv *il, struct il_led_cmd *led_cmd);
il               1612 drivers/net/wireless/intel/iwlegacy/common.h void il_leds_init(struct il_priv *il);
il               1613 drivers/net/wireless/intel/iwlegacy/common.h void il_leds_exit(struct il_priv *il);
il               1692 drivers/net/wireless/intel/iwlegacy/common.h void il_set_rxon_hwcrypto(struct il_priv *il, int hw_decrypt);
il               1693 drivers/net/wireless/intel/iwlegacy/common.h int il_check_rxon_cmd(struct il_priv *il);
il               1694 drivers/net/wireless/intel/iwlegacy/common.h int il_full_rxon_required(struct il_priv *il);
il               1695 drivers/net/wireless/intel/iwlegacy/common.h int il_set_rxon_channel(struct il_priv *il, struct ieee80211_channel *ch);
il               1696 drivers/net/wireless/intel/iwlegacy/common.h void il_set_flags_for_band(struct il_priv *il, enum nl80211_band band,
il               1698 drivers/net/wireless/intel/iwlegacy/common.h u8 il_get_single_channel_number(struct il_priv *il, enum nl80211_band band);
il               1699 drivers/net/wireless/intel/iwlegacy/common.h void il_set_rxon_ht(struct il_priv *il, struct il_ht_config *ht_conf);
il               1700 drivers/net/wireless/intel/iwlegacy/common.h bool il_is_ht40_tx_allowed(struct il_priv *il,
il               1702 drivers/net/wireless/intel/iwlegacy/common.h void il_connection_init_rx_config(struct il_priv *il);
il               1703 drivers/net/wireless/intel/iwlegacy/common.h void il_set_rate(struct il_priv *il);
il               1704 drivers/net/wireless/intel/iwlegacy/common.h int il_set_decrypted_flag(struct il_priv *il, struct ieee80211_hdr *hdr,
il               1706 drivers/net/wireless/intel/iwlegacy/common.h void il_irq_handle_error(struct il_priv *il);
il               1714 drivers/net/wireless/intel/iwlegacy/common.h int il_alloc_txq_mem(struct il_priv *il);
il               1715 drivers/net/wireless/intel/iwlegacy/common.h void il_free_txq_mem(struct il_priv *il);
il               1718 drivers/net/wireless/intel/iwlegacy/common.h void il_update_stats(struct il_priv *il, bool is_tx, __le16 fc, u16 len);
il               1721 drivers/net/wireless/intel/iwlegacy/common.h il_update_stats(struct il_priv *il, bool is_tx, __le16 fc, u16 len)
il               1729 drivers/net/wireless/intel/iwlegacy/common.h void il_hdl_pm_sleep(struct il_priv *il, struct il_rx_buf *rxb);
il               1730 drivers/net/wireless/intel/iwlegacy/common.h void il_hdl_pm_debug_stats(struct il_priv *il, struct il_rx_buf *rxb);
il               1731 drivers/net/wireless/intel/iwlegacy/common.h void il_hdl_error(struct il_priv *il, struct il_rx_buf *rxb);
il               1732 drivers/net/wireless/intel/iwlegacy/common.h void il_hdl_csa(struct il_priv *il, struct il_rx_buf *rxb);
il               1737 drivers/net/wireless/intel/iwlegacy/common.h void il_cmd_queue_unmap(struct il_priv *il);
il               1738 drivers/net/wireless/intel/iwlegacy/common.h void il_cmd_queue_free(struct il_priv *il);
il               1739 drivers/net/wireless/intel/iwlegacy/common.h int il_rx_queue_alloc(struct il_priv *il);
il               1740 drivers/net/wireless/intel/iwlegacy/common.h void il_rx_queue_update_write_ptr(struct il_priv *il, struct il_rx_queue *q);
il               1742 drivers/net/wireless/intel/iwlegacy/common.h void il_tx_cmd_complete(struct il_priv *il, struct il_rx_buf *rxb);
il               1744 drivers/net/wireless/intel/iwlegacy/common.h void il_hdl_spectrum_measurement(struct il_priv *il, struct il_rx_buf *rxb);
il               1745 drivers/net/wireless/intel/iwlegacy/common.h void il_recover_from_stats(struct il_priv *il, struct il_rx_pkt *pkt);
il               1746 drivers/net/wireless/intel/iwlegacy/common.h void il_chswitch_done(struct il_priv *il, bool is_success);
il               1751 drivers/net/wireless/intel/iwlegacy/common.h void il_txq_update_write_ptr(struct il_priv *il, struct il_tx_queue *txq);
il               1752 drivers/net/wireless/intel/iwlegacy/common.h int il_tx_queue_init(struct il_priv *il, u32 txq_id);
il               1753 drivers/net/wireless/intel/iwlegacy/common.h void il_tx_queue_reset(struct il_priv *il, u32 txq_id);
il               1754 drivers/net/wireless/intel/iwlegacy/common.h void il_tx_queue_unmap(struct il_priv *il, int txq_id);
il               1755 drivers/net/wireless/intel/iwlegacy/common.h void il_tx_queue_free(struct il_priv *il, int txq_id);
il               1756 drivers/net/wireless/intel/iwlegacy/common.h void il_setup_watchdog(struct il_priv *il);
il               1760 drivers/net/wireless/intel/iwlegacy/common.h int il_set_tx_power(struct il_priv *il, s8 tx_power, bool force);
il               1766 drivers/net/wireless/intel/iwlegacy/common.h u8 il_get_lowest_plcp(struct il_priv *il);
il               1771 drivers/net/wireless/intel/iwlegacy/common.h void il_init_scan_params(struct il_priv *il);
il               1772 drivers/net/wireless/intel/iwlegacy/common.h int il_scan_cancel(struct il_priv *il);
il               1773 drivers/net/wireless/intel/iwlegacy/common.h int il_scan_cancel_timeout(struct il_priv *il, unsigned long ms);
il               1774 drivers/net/wireless/intel/iwlegacy/common.h void il_force_scan_end(struct il_priv *il);
il               1777 drivers/net/wireless/intel/iwlegacy/common.h void il_internal_short_hw_scan(struct il_priv *il);
il               1778 drivers/net/wireless/intel/iwlegacy/common.h int il_force_reset(struct il_priv *il, bool external);
il               1779 drivers/net/wireless/intel/iwlegacy/common.h u16 il_fill_probe_req(struct il_priv *il, struct ieee80211_mgmt *frame,
il               1781 drivers/net/wireless/intel/iwlegacy/common.h void il_setup_rx_scan_handlers(struct il_priv *il);
il               1782 drivers/net/wireless/intel/iwlegacy/common.h u16 il_get_active_dwell_time(struct il_priv *il, enum nl80211_band band,
il               1784 drivers/net/wireless/intel/iwlegacy/common.h u16 il_get_passive_dwell_time(struct il_priv *il, enum nl80211_band band,
il               1786 drivers/net/wireless/intel/iwlegacy/common.h void il_setup_scan_deferred_work(struct il_priv *il);
il               1787 drivers/net/wireless/intel/iwlegacy/common.h void il_cancel_scan_deferred_work(struct il_priv *il);
il               1805 drivers/net/wireless/intel/iwlegacy/common.h int __must_check il_send_cmd_sync(struct il_priv *il, struct il_host_cmd *cmd);
il               1806 drivers/net/wireless/intel/iwlegacy/common.h int il_send_cmd(struct il_priv *il, struct il_host_cmd *cmd);
il               1807 drivers/net/wireless/intel/iwlegacy/common.h int __must_check il_send_cmd_pdu(struct il_priv *il, u8 id, u16 len,
il               1809 drivers/net/wireless/intel/iwlegacy/common.h int il_send_cmd_pdu_async(struct il_priv *il, u8 id, u16 len, const void *data,
il               1810 drivers/net/wireless/intel/iwlegacy/common.h 			  void (*callback) (struct il_priv *il,
il               1814 drivers/net/wireless/intel/iwlegacy/common.h int il_enqueue_hcmd(struct il_priv *il, struct il_host_cmd *cmd);
il               1821 drivers/net/wireless/intel/iwlegacy/common.h u32 il_usecs_to_beacons(struct il_priv *il, u32 usec, u32 beacon_interval);
il               1822 drivers/net/wireless/intel/iwlegacy/common.h __le32 il_add_beacon_time(struct il_priv *il, u32 base, u32 addon,
il               1839 drivers/net/wireless/intel/iwlegacy/common.h void il4965_dump_nic_error_log(struct il_priv *il);
il               1841 drivers/net/wireless/intel/iwlegacy/common.h void il_print_rx_config_cmd(struct il_priv *il);
il               1844 drivers/net/wireless/intel/iwlegacy/common.h il_print_rx_config_cmd(struct il_priv *il)
il               1849 drivers/net/wireless/intel/iwlegacy/common.h void il_clear_isr_stats(struct il_priv *il);
il               1854 drivers/net/wireless/intel/iwlegacy/common.h int il_init_geos(struct il_priv *il);
il               1855 drivers/net/wireless/intel/iwlegacy/common.h void il_free_geos(struct il_priv *il);
il               1879 drivers/net/wireless/intel/iwlegacy/common.h il_is_ready(struct il_priv *il)
il               1883 drivers/net/wireless/intel/iwlegacy/common.h 	return test_bit(S_READY, &il->status) &&
il               1884 drivers/net/wireless/intel/iwlegacy/common.h 	    test_bit(S_GEO_CONFIGURED, &il->status) &&
il               1885 drivers/net/wireless/intel/iwlegacy/common.h 	    !test_bit(S_EXIT_PENDING, &il->status);
il               1889 drivers/net/wireless/intel/iwlegacy/common.h il_is_alive(struct il_priv *il)
il               1891 drivers/net/wireless/intel/iwlegacy/common.h 	return test_bit(S_ALIVE, &il->status);
il               1895 drivers/net/wireless/intel/iwlegacy/common.h il_is_init(struct il_priv *il)
il               1897 drivers/net/wireless/intel/iwlegacy/common.h 	return test_bit(S_INIT, &il->status);
il               1901 drivers/net/wireless/intel/iwlegacy/common.h il_is_rfkill(struct il_priv *il)
il               1903 drivers/net/wireless/intel/iwlegacy/common.h 	return test_bit(S_RFKILL, &il->status);
il               1907 drivers/net/wireless/intel/iwlegacy/common.h il_is_ctkill(struct il_priv *il)
il               1909 drivers/net/wireless/intel/iwlegacy/common.h 	return test_bit(S_CT_KILL, &il->status);
il               1913 drivers/net/wireless/intel/iwlegacy/common.h il_is_ready_rf(struct il_priv *il)
il               1916 drivers/net/wireless/intel/iwlegacy/common.h 	if (il_is_rfkill(il))
il               1919 drivers/net/wireless/intel/iwlegacy/common.h 	return il_is_ready(il);
il               1922 drivers/net/wireless/intel/iwlegacy/common.h void il_send_bt_config(struct il_priv *il);
il               1923 drivers/net/wireless/intel/iwlegacy/common.h int il_send_stats_request(struct il_priv *il, u8 flags, bool clear);
il               1924 drivers/net/wireless/intel/iwlegacy/common.h void il_apm_stop(struct il_priv *il);
il               1925 drivers/net/wireless/intel/iwlegacy/common.h void _il_apm_stop(struct il_priv *il);
il               1927 drivers/net/wireless/intel/iwlegacy/common.h int il_apm_init(struct il_priv *il);
il               1929 drivers/net/wireless/intel/iwlegacy/common.h int il_send_rxon_timing(struct il_priv *il);
il               1932 drivers/net/wireless/intel/iwlegacy/common.h il_send_rxon_assoc(struct il_priv *il)
il               1934 drivers/net/wireless/intel/iwlegacy/common.h 	return il->ops->rxon_assoc(il);
il               1938 drivers/net/wireless/intel/iwlegacy/common.h il_commit_rxon(struct il_priv *il)
il               1940 drivers/net/wireless/intel/iwlegacy/common.h 	return il->ops->commit_rxon(il);
il               1944 drivers/net/wireless/intel/iwlegacy/common.h il_get_hw_mode(struct il_priv *il, enum nl80211_band band)
il               1946 drivers/net/wireless/intel/iwlegacy/common.h 	return il->hw->wiphy->bands[band];
il               1954 drivers/net/wireless/intel/iwlegacy/common.h void il_tx_cmd_protection(struct il_priv *il, struct ieee80211_tx_info *info,
il               1961 drivers/net/wireless/intel/iwlegacy/common.h bool _il_grab_nic_access(struct il_priv *il);
il               1962 drivers/net/wireless/intel/iwlegacy/common.h int _il_poll_bit(struct il_priv *il, u32 addr, u32 bits, u32 mask, int timeout);
il               1963 drivers/net/wireless/intel/iwlegacy/common.h int il_poll_bit(struct il_priv *il, u32 addr, u32 mask, int timeout);
il               1964 drivers/net/wireless/intel/iwlegacy/common.h u32 il_rd_prph(struct il_priv *il, u32 reg);
il               1965 drivers/net/wireless/intel/iwlegacy/common.h void il_wr_prph(struct il_priv *il, u32 addr, u32 val);
il               1966 drivers/net/wireless/intel/iwlegacy/common.h u32 il_read_targ_mem(struct il_priv *il, u32 addr);
il               1967 drivers/net/wireless/intel/iwlegacy/common.h void il_write_targ_mem(struct il_priv *il, u32 addr, u32 val);
il               1969 drivers/net/wireless/intel/iwlegacy/common.h static inline bool il_need_reclaim(struct il_priv *il, struct il_rx_pkt *pkt)
il               1984 drivers/net/wireless/intel/iwlegacy/common.h _il_write8(struct il_priv *il, u32 ofs, u8 val)
il               1986 drivers/net/wireless/intel/iwlegacy/common.h 	writeb(val, il->hw_base + ofs);
il               1988 drivers/net/wireless/intel/iwlegacy/common.h #define il_write8(il, ofs, val) _il_write8(il, ofs, val)
il               1991 drivers/net/wireless/intel/iwlegacy/common.h _il_wr(struct il_priv *il, u32 ofs, u32 val)
il               1993 drivers/net/wireless/intel/iwlegacy/common.h 	writel(val, il->hw_base + ofs);
il               1997 drivers/net/wireless/intel/iwlegacy/common.h _il_rd(struct il_priv *il, u32 ofs)
il               1999 drivers/net/wireless/intel/iwlegacy/common.h 	return readl(il->hw_base + ofs);
il               2003 drivers/net/wireless/intel/iwlegacy/common.h _il_clear_bit(struct il_priv *il, u32 reg, u32 mask)
il               2005 drivers/net/wireless/intel/iwlegacy/common.h 	_il_wr(il, reg, _il_rd(il, reg) & ~mask);
il               2009 drivers/net/wireless/intel/iwlegacy/common.h _il_set_bit(struct il_priv *il, u32 reg, u32 mask)
il               2011 drivers/net/wireless/intel/iwlegacy/common.h 	_il_wr(il, reg, _il_rd(il, reg) | mask);
il               2015 drivers/net/wireless/intel/iwlegacy/common.h _il_release_nic_access(struct il_priv *il)
il               2017 drivers/net/wireless/intel/iwlegacy/common.h 	_il_clear_bit(il, CSR_GP_CNTRL, CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ);
il               2021 drivers/net/wireless/intel/iwlegacy/common.h il_rd(struct il_priv *il, u32 reg)
il               2026 drivers/net/wireless/intel/iwlegacy/common.h 	spin_lock_irqsave(&il->reg_lock, reg_flags);
il               2027 drivers/net/wireless/intel/iwlegacy/common.h 	_il_grab_nic_access(il);
il               2028 drivers/net/wireless/intel/iwlegacy/common.h 	value = _il_rd(il, reg);
il               2029 drivers/net/wireless/intel/iwlegacy/common.h 	_il_release_nic_access(il);
il               2030 drivers/net/wireless/intel/iwlegacy/common.h 	spin_unlock_irqrestore(&il->reg_lock, reg_flags);
il               2035 drivers/net/wireless/intel/iwlegacy/common.h il_wr(struct il_priv *il, u32 reg, u32 value)
il               2039 drivers/net/wireless/intel/iwlegacy/common.h 	spin_lock_irqsave(&il->reg_lock, reg_flags);
il               2040 drivers/net/wireless/intel/iwlegacy/common.h 	if (likely(_il_grab_nic_access(il))) {
il               2041 drivers/net/wireless/intel/iwlegacy/common.h 		_il_wr(il, reg, value);
il               2042 drivers/net/wireless/intel/iwlegacy/common.h 		_il_release_nic_access(il);
il               2044 drivers/net/wireless/intel/iwlegacy/common.h 	spin_unlock_irqrestore(&il->reg_lock, reg_flags);
il               2048 drivers/net/wireless/intel/iwlegacy/common.h _il_rd_prph(struct il_priv *il, u32 reg)
il               2050 drivers/net/wireless/intel/iwlegacy/common.h 	_il_wr(il, HBUS_TARG_PRPH_RADDR, reg | (3 << 24));
il               2051 drivers/net/wireless/intel/iwlegacy/common.h 	return _il_rd(il, HBUS_TARG_PRPH_RDAT);
il               2055 drivers/net/wireless/intel/iwlegacy/common.h _il_wr_prph(struct il_priv *il, u32 addr, u32 val)
il               2057 drivers/net/wireless/intel/iwlegacy/common.h 	_il_wr(il, HBUS_TARG_PRPH_WADDR, ((addr & 0x0000FFFF) | (3 << 24)));
il               2058 drivers/net/wireless/intel/iwlegacy/common.h 	_il_wr(il, HBUS_TARG_PRPH_WDAT, val);
il               2062 drivers/net/wireless/intel/iwlegacy/common.h il_set_bits_prph(struct il_priv *il, u32 reg, u32 mask)
il               2066 drivers/net/wireless/intel/iwlegacy/common.h 	spin_lock_irqsave(&il->reg_lock, reg_flags);
il               2067 drivers/net/wireless/intel/iwlegacy/common.h 	if (likely(_il_grab_nic_access(il))) {
il               2068 drivers/net/wireless/intel/iwlegacy/common.h 		_il_wr_prph(il, reg, (_il_rd_prph(il, reg) | mask));
il               2069 drivers/net/wireless/intel/iwlegacy/common.h 		_il_release_nic_access(il);
il               2071 drivers/net/wireless/intel/iwlegacy/common.h 	spin_unlock_irqrestore(&il->reg_lock, reg_flags);
il               2075 drivers/net/wireless/intel/iwlegacy/common.h il_set_bits_mask_prph(struct il_priv *il, u32 reg, u32 bits, u32 mask)
il               2079 drivers/net/wireless/intel/iwlegacy/common.h 	spin_lock_irqsave(&il->reg_lock, reg_flags);
il               2080 drivers/net/wireless/intel/iwlegacy/common.h 	if (likely(_il_grab_nic_access(il))) {
il               2081 drivers/net/wireless/intel/iwlegacy/common.h 		_il_wr_prph(il, reg, ((_il_rd_prph(il, reg) & mask) | bits));
il               2082 drivers/net/wireless/intel/iwlegacy/common.h 		_il_release_nic_access(il);
il               2084 drivers/net/wireless/intel/iwlegacy/common.h 	spin_unlock_irqrestore(&il->reg_lock, reg_flags);
il               2088 drivers/net/wireless/intel/iwlegacy/common.h il_clear_bits_prph(struct il_priv *il, u32 reg, u32 mask)
il               2093 drivers/net/wireless/intel/iwlegacy/common.h 	spin_lock_irqsave(&il->reg_lock, reg_flags);
il               2094 drivers/net/wireless/intel/iwlegacy/common.h 	if (likely(_il_grab_nic_access(il))) {
il               2095 drivers/net/wireless/intel/iwlegacy/common.h 		val = _il_rd_prph(il, reg);
il               2096 drivers/net/wireless/intel/iwlegacy/common.h 		_il_wr_prph(il, reg, (val & ~mask));
il               2097 drivers/net/wireless/intel/iwlegacy/common.h 		_il_release_nic_access(il);
il               2099 drivers/net/wireless/intel/iwlegacy/common.h 	spin_unlock_irqrestore(&il->reg_lock, reg_flags);
il               2113 drivers/net/wireless/intel/iwlegacy/common.h void il_restore_stations(struct il_priv *il);
il               2114 drivers/net/wireless/intel/iwlegacy/common.h void il_clear_ucode_stations(struct il_priv *il);
il               2115 drivers/net/wireless/intel/iwlegacy/common.h void il_dealloc_bcast_stations(struct il_priv *il);
il               2116 drivers/net/wireless/intel/iwlegacy/common.h int il_get_free_ucode_key_idx(struct il_priv *il);
il               2117 drivers/net/wireless/intel/iwlegacy/common.h int il_send_add_sta(struct il_priv *il, struct il_addsta_cmd *sta, u8 flags);
il               2118 drivers/net/wireless/intel/iwlegacy/common.h int il_add_station_common(struct il_priv *il, const u8 *addr, bool is_ap,
il               2120 drivers/net/wireless/intel/iwlegacy/common.h int il_remove_station(struct il_priv *il, const u8 sta_id, const u8 * addr);
il               2124 drivers/net/wireless/intel/iwlegacy/common.h u8 il_prep_station(struct il_priv *il, const u8 *addr, bool is_ap,
il               2127 drivers/net/wireless/intel/iwlegacy/common.h int il_send_lq_cmd(struct il_priv *il, struct il_link_quality_cmd *lq,
il               2140 drivers/net/wireless/intel/iwlegacy/common.h il_clear_driver_stations(struct il_priv *il)
il               2144 drivers/net/wireless/intel/iwlegacy/common.h 	spin_lock_irqsave(&il->sta_lock, flags);
il               2145 drivers/net/wireless/intel/iwlegacy/common.h 	memset(il->stations, 0, sizeof(il->stations));
il               2146 drivers/net/wireless/intel/iwlegacy/common.h 	il->num_stations = 0;
il               2147 drivers/net/wireless/intel/iwlegacy/common.h 	il->ucode_key_table = 0;
il               2148 drivers/net/wireless/intel/iwlegacy/common.h 	spin_unlock_irqrestore(&il->sta_lock, flags);
il               2172 drivers/net/wireless/intel/iwlegacy/common.h il_sta_id_or_broadcast(struct il_priv *il, struct ieee80211_sta *sta)
il               2177 drivers/net/wireless/intel/iwlegacy/common.h 		return il->hw_params.bcast_id;
il               2257 drivers/net/wireless/intel/iwlegacy/common.h _il_wake_queue(struct il_priv *il, u8 ac)
il               2259 drivers/net/wireless/intel/iwlegacy/common.h 	if (atomic_dec_return(&il->queue_stop_count[ac]) <= 0)
il               2260 drivers/net/wireless/intel/iwlegacy/common.h 		ieee80211_wake_queue(il->hw, ac);
il               2264 drivers/net/wireless/intel/iwlegacy/common.h _il_stop_queue(struct il_priv *il, u8 ac)
il               2266 drivers/net/wireless/intel/iwlegacy/common.h 	if (atomic_inc_return(&il->queue_stop_count[ac]) > 0)
il               2267 drivers/net/wireless/intel/iwlegacy/common.h 		ieee80211_stop_queue(il->hw, ac);
il               2270 drivers/net/wireless/intel/iwlegacy/common.h il_wake_queue(struct il_priv *il, struct il_tx_queue *txq)
il               2276 drivers/net/wireless/intel/iwlegacy/common.h 	if (test_and_clear_bit(hwq, il->queue_stopped))
il               2277 drivers/net/wireless/intel/iwlegacy/common.h 		_il_wake_queue(il, ac);
il               2281 drivers/net/wireless/intel/iwlegacy/common.h il_stop_queue(struct il_priv *il, struct il_tx_queue *txq)
il               2287 drivers/net/wireless/intel/iwlegacy/common.h 	if (!test_and_set_bit(hwq, il->queue_stopped))
il               2288 drivers/net/wireless/intel/iwlegacy/common.h 		_il_stop_queue(il, ac);
il               2292 drivers/net/wireless/intel/iwlegacy/common.h il_wake_queues_by_reason(struct il_priv *il, int reason)
il               2296 drivers/net/wireless/intel/iwlegacy/common.h 	if (test_and_clear_bit(reason, &il->stop_reason))
il               2298 drivers/net/wireless/intel/iwlegacy/common.h 			_il_wake_queue(il, ac);
il               2302 drivers/net/wireless/intel/iwlegacy/common.h il_stop_queues_by_reason(struct il_priv *il, int reason)
il               2306 drivers/net/wireless/intel/iwlegacy/common.h 	if (!test_and_set_bit(reason, &il->stop_reason))
il               2308 drivers/net/wireless/intel/iwlegacy/common.h 			_il_stop_queue(il, ac);
il               2324 drivers/net/wireless/intel/iwlegacy/common.h il_disable_interrupts(struct il_priv *il)
il               2326 drivers/net/wireless/intel/iwlegacy/common.h 	clear_bit(S_INT_ENABLED, &il->status);
il               2329 drivers/net/wireless/intel/iwlegacy/common.h 	_il_wr(il, CSR_INT_MASK, 0x00000000);
il               2333 drivers/net/wireless/intel/iwlegacy/common.h 	_il_wr(il, CSR_INT, 0xffffffff);
il               2334 drivers/net/wireless/intel/iwlegacy/common.h 	_il_wr(il, CSR_FH_INT_STATUS, 0xffffffff);
il               2338 drivers/net/wireless/intel/iwlegacy/common.h il_enable_rfkill_int(struct il_priv *il)
il               2340 drivers/net/wireless/intel/iwlegacy/common.h 	_il_wr(il, CSR_INT_MASK, CSR_INT_BIT_RF_KILL);
il               2344 drivers/net/wireless/intel/iwlegacy/common.h il_enable_interrupts(struct il_priv *il)
il               2346 drivers/net/wireless/intel/iwlegacy/common.h 	set_bit(S_INT_ENABLED, &il->status);
il               2347 drivers/net/wireless/intel/iwlegacy/common.h 	_il_wr(il, CSR_INT_MASK, il->inta_mask);
il               2356 drivers/net/wireless/intel/iwlegacy/common.h il_beacon_time_mask_low(struct il_priv *il, u16 tsf_bits)
il               2367 drivers/net/wireless/intel/iwlegacy/common.h il_beacon_time_mask_high(struct il_priv *il, u16 tsf_bits)
il               2865 drivers/net/wireless/intel/iwlegacy/common.h void il4965_rs_rate_init(struct il_priv *il, struct ieee80211_sta *sta,
il               2867 drivers/net/wireless/intel/iwlegacy/common.h void il3945_rs_rate_init(struct il_priv *il, struct ieee80211_sta *sta,
il               2892 drivers/net/wireless/intel/iwlegacy/common.h int il_power_update_mode(struct il_priv *il, bool force);
il               2893 drivers/net/wireless/intel/iwlegacy/common.h void il_power_initialize(struct il_priv *il);
il               2906 drivers/net/wireless/intel/iwlegacy/common.h il_get_debug_level(struct il_priv *il)
il               2908 drivers/net/wireless/intel/iwlegacy/common.h 	if (il->debug_level)
il               2909 drivers/net/wireless/intel/iwlegacy/common.h 		return il->debug_level;
il               2915 drivers/net/wireless/intel/iwlegacy/common.h il_get_debug_level(struct il_priv *il)
il               2921 drivers/net/wireless/intel/iwlegacy/common.h #define il_print_hex_error(il, p, len)					\
il               2930 drivers/net/wireless/intel/iwlegacy/common.h 	if (il_get_debug_level(il) & level)				\
il               2931 drivers/net/wireless/intel/iwlegacy/common.h 		dev_err(&il->hw->wiphy->dev, "%c %s " fmt,		\
il               2935 drivers/net/wireless/intel/iwlegacy/common.h #define il_print_hex_dump(il, level, p, len)				\
il               2937 drivers/net/wireless/intel/iwlegacy/common.h 	if (il_get_debug_level(il) & level)				\
il               2945 drivers/net/wireless/intel/iwlegacy/common.h il_print_hex_dump(struct il_priv *il, int level, const void *p, u32 len)
il               2951 drivers/net/wireless/intel/iwlegacy/common.h void il_dbgfs_register(struct il_priv *il, const char *name);
il               2952 drivers/net/wireless/intel/iwlegacy/common.h void il_dbgfs_unregister(struct il_priv *il);
il               2954 drivers/net/wireless/intel/iwlegacy/common.h static inline void il_dbgfs_register(struct il_priv *il, const char *name)
il               2959 drivers/net/wireless/intel/iwlegacy/common.h il_dbgfs_unregister(struct il_priv *il)
il                 17 drivers/net/wireless/intel/iwlegacy/debug.c il_clear_traffic_stats(struct il_priv *il)
il                 19 drivers/net/wireless/intel/iwlegacy/debug.c 	memset(&il->tx_stats, 0, sizeof(struct traffic_stats));
il                 20 drivers/net/wireless/intel/iwlegacy/debug.c 	memset(&il->rx_stats, 0, sizeof(struct traffic_stats));
il                 28 drivers/net/wireless/intel/iwlegacy/debug.c il_update_stats(struct il_priv *il, bool is_tx, __le16 fc, u16 len)
il                 33 drivers/net/wireless/intel/iwlegacy/debug.c 		stats = &il->tx_stats;
il                 35 drivers/net/wireless/intel/iwlegacy/debug.c 		stats = &il->rx_stats;
il                113 drivers/net/wireless/intel/iwlegacy/debug.c 	debugfs_create_file(#name, mode, parent, il,			\
il                204 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il                219 drivers/net/wireless/intel/iwlegacy/debug.c 			      il_get_mgmt_string(cnt), il->tx_stats.mgmt[cnt]);
il                225 drivers/net/wireless/intel/iwlegacy/debug.c 			      il_get_ctrl_string(cnt), il->tx_stats.ctrl[cnt]);
il                230 drivers/net/wireless/intel/iwlegacy/debug.c 		      il->tx_stats.data_cnt);
il                233 drivers/net/wireless/intel/iwlegacy/debug.c 		      il->tx_stats.data_bytes);
il                244 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il                255 drivers/net/wireless/intel/iwlegacy/debug.c 	il_clear_traffic_stats(il);
il                265 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il                280 drivers/net/wireless/intel/iwlegacy/debug.c 			      il_get_mgmt_string(cnt), il->rx_stats.mgmt[cnt]);
il                286 drivers/net/wireless/intel/iwlegacy/debug.c 			      il_get_ctrl_string(cnt), il->rx_stats.ctrl[cnt]);
il                291 drivers/net/wireless/intel/iwlegacy/debug.c 		      il->rx_stats.data_cnt);
il                294 drivers/net/wireless/intel/iwlegacy/debug.c 		      il->rx_stats.data_bytes);
il                313 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il                317 drivers/net/wireless/intel/iwlegacy/debug.c 	if (!il->dbgfs_sram_offset && !il->dbgfs_sram_len) {
il                318 drivers/net/wireless/intel/iwlegacy/debug.c 		il->dbgfs_sram_offset = 0x800000;
il                319 drivers/net/wireless/intel/iwlegacy/debug.c 		if (il->ucode_type == UCODE_INIT)
il                320 drivers/net/wireless/intel/iwlegacy/debug.c 			il->dbgfs_sram_len = il->ucode_init_data.len;
il                322 drivers/net/wireless/intel/iwlegacy/debug.c 			il->dbgfs_sram_len = il->ucode_data.len;
il                324 drivers/net/wireless/intel/iwlegacy/debug.c 	bufsz = 30 + il->dbgfs_sram_len * sizeof(char) * 10;
il                330 drivers/net/wireless/intel/iwlegacy/debug.c 		      il->dbgfs_sram_len);
il                333 drivers/net/wireless/intel/iwlegacy/debug.c 		      il->dbgfs_sram_offset);
il                334 drivers/net/wireless/intel/iwlegacy/debug.c 	for (i = il->dbgfs_sram_len; i > 0; i -= 4) {
il                336 drivers/net/wireless/intel/iwlegacy/debug.c 		    il_read_targ_mem(il,
il                337 drivers/net/wireless/intel/iwlegacy/debug.c 				     il->dbgfs_sram_offset +
il                338 drivers/net/wireless/intel/iwlegacy/debug.c 				     il->dbgfs_sram_len - i);
il                367 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il                378 drivers/net/wireless/intel/iwlegacy/debug.c 		il->dbgfs_sram_offset = offset;
il                379 drivers/net/wireless/intel/iwlegacy/debug.c 		il->dbgfs_sram_len = len;
il                381 drivers/net/wireless/intel/iwlegacy/debug.c 		il->dbgfs_sram_offset = 0;
il                382 drivers/net/wireless/intel/iwlegacy/debug.c 		il->dbgfs_sram_len = 0;
il                392 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il                394 drivers/net/wireless/intel/iwlegacy/debug.c 	int max_sta = il->hw_params.max_stations;
il                399 drivers/net/wireless/intel/iwlegacy/debug.c 	const size_t bufsz = 30 + sizeof(char) * 500 * (il->num_stations);
il                407 drivers/net/wireless/intel/iwlegacy/debug.c 		      il->num_stations);
il                410 drivers/net/wireless/intel/iwlegacy/debug.c 		station = &il->stations[i];
il                457 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il                462 drivers/net/wireless/intel/iwlegacy/debug.c 	size_t eeprom_len = il->cfg->eeprom_size;
il                470 drivers/net/wireless/intel/iwlegacy/debug.c 	ptr = il->eeprom;
il                482 drivers/net/wireless/intel/iwlegacy/debug.c 	eeprom_ver = il_eeprom_query16(il, EEPROM_VERSION);
il                500 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il                507 drivers/net/wireless/intel/iwlegacy/debug.c 	if (!test_bit(S_GEO_CONFIGURED, &il->status))
il                516 drivers/net/wireless/intel/iwlegacy/debug.c 	supp_band = il_get_hw_mode(il, NL80211_BAND_2GHZ);
il                543 drivers/net/wireless/intel/iwlegacy/debug.c 	supp_band = il_get_hw_mode(il, NL80211_BAND_5GHZ);
il                580 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il                587 drivers/net/wireless/intel/iwlegacy/debug.c 		      test_bit(S_HCMD_ACTIVE, &il->status));
il                590 drivers/net/wireless/intel/iwlegacy/debug.c 		      test_bit(S_INT_ENABLED, &il->status));
il                593 drivers/net/wireless/intel/iwlegacy/debug.c 		      test_bit(S_RFKILL, &il->status));
il                596 drivers/net/wireless/intel/iwlegacy/debug.c 		      test_bit(S_CT_KILL, &il->status));
il                599 drivers/net/wireless/intel/iwlegacy/debug.c 		      test_bit(S_INIT, &il->status));
il                602 drivers/net/wireless/intel/iwlegacy/debug.c 		      test_bit(S_ALIVE, &il->status));
il                605 drivers/net/wireless/intel/iwlegacy/debug.c 		      test_bit(S_READY, &il->status));
il                608 drivers/net/wireless/intel/iwlegacy/debug.c 		      test_bit(S_TEMPERATURE, &il->status));
il                611 drivers/net/wireless/intel/iwlegacy/debug.c 		      test_bit(S_GEO_CONFIGURED, &il->status));
il                614 drivers/net/wireless/intel/iwlegacy/debug.c 		      test_bit(S_EXIT_PENDING, &il->status));
il                617 drivers/net/wireless/intel/iwlegacy/debug.c 		      test_bit(S_STATS, &il->status));
il                620 drivers/net/wireless/intel/iwlegacy/debug.c 		      test_bit(S_SCANNING, &il->status));
il                623 drivers/net/wireless/intel/iwlegacy/debug.c 		      test_bit(S_SCAN_ABORTING, &il->status));
il                626 drivers/net/wireless/intel/iwlegacy/debug.c 		      test_bit(S_SCAN_HW, &il->status));
il                629 drivers/net/wireless/intel/iwlegacy/debug.c 		      test_bit(S_POWER_PMI, &il->status));
il                632 drivers/net/wireless/intel/iwlegacy/debug.c 		      test_bit(S_FW_ERROR, &il->status));
il                641 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il                659 drivers/net/wireless/intel/iwlegacy/debug.c 		      il->isr_stats.hw);
il                662 drivers/net/wireless/intel/iwlegacy/debug.c 		      il->isr_stats.sw);
il                663 drivers/net/wireless/intel/iwlegacy/debug.c 	if (il->isr_stats.sw || il->isr_stats.hw) {
il                667 drivers/net/wireless/intel/iwlegacy/debug.c 			      il->isr_stats.err_code);
il                672 drivers/net/wireless/intel/iwlegacy/debug.c 		      il->isr_stats.sch);
il                675 drivers/net/wireless/intel/iwlegacy/debug.c 		      il->isr_stats.alive);
il                680 drivers/net/wireless/intel/iwlegacy/debug.c 		      il->isr_stats.rfkill);
il                684 drivers/net/wireless/intel/iwlegacy/debug.c 		      il->isr_stats.ctkill);
il                688 drivers/net/wireless/intel/iwlegacy/debug.c 		      il->isr_stats.wakeup);
il                692 drivers/net/wireless/intel/iwlegacy/debug.c 		      il->isr_stats.rx);
il                694 drivers/net/wireless/intel/iwlegacy/debug.c 		if (il->isr_stats.handlers[cnt] > 0)
il                699 drivers/net/wireless/intel/iwlegacy/debug.c 				      il->isr_stats.handlers[cnt]);
il                704 drivers/net/wireless/intel/iwlegacy/debug.c 		      il->isr_stats.tx);
il                708 drivers/net/wireless/intel/iwlegacy/debug.c 		      il->isr_stats.unhandled);
il                719 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il                731 drivers/net/wireless/intel/iwlegacy/debug.c 		il_clear_isr_stats(il);
il                740 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il                752 drivers/net/wireless/intel/iwlegacy/debug.c 			      il->qos_data.def_qos_parm.ac[i].cw_min,
il                753 drivers/net/wireless/intel/iwlegacy/debug.c 			      il->qos_data.def_qos_parm.ac[i].cw_max,
il                754 drivers/net/wireless/intel/iwlegacy/debug.c 			      il->qos_data.def_qos_parm.ac[i].aifsn,
il                755 drivers/net/wireless/intel/iwlegacy/debug.c 			      il->qos_data.def_qos_parm.ac[i].edca_txop);
il                765 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il                776 drivers/net/wireless/intel/iwlegacy/debug.c 	if (!il_is_any_associated(il))
il                777 drivers/net/wireless/intel/iwlegacy/debug.c 		il->disable_ht40 = ht40 ? true : false;
il                791 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il                798 drivers/net/wireless/intel/iwlegacy/debug.c 		      il->disable_ht40 ? "Disabled" : "Enabled");
il                816 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il                824 drivers/net/wireless/intel/iwlegacy/debug.c 	    sizeof(char) * 64 * il->cfg->num_of_queues;
il                826 drivers/net/wireless/intel/iwlegacy/debug.c 	if (!il->txq) {
il                834 drivers/net/wireless/intel/iwlegacy/debug.c 	for (cnt = 0; cnt < il->hw_params.max_txq_num; cnt++) {
il                835 drivers/net/wireless/intel/iwlegacy/debug.c 		txq = &il->txq[cnt];
il                842 drivers/net/wireless/intel/iwlegacy/debug.c 			      !!test_bit(cnt, il->queue_stopped),
il                851 drivers/net/wireless/intel/iwlegacy/debug.c 			      atomic_read(&il->queue_stop_count[cnt]));
il                863 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il                864 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_rx_queue *rxq = &il->rxq;
il                891 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il                893 drivers/net/wireless/intel/iwlegacy/debug.c 	return il->debugfs_ops->rx_stats_read(file, user_buf, count, ppos);
il                900 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il                902 drivers/net/wireless/intel/iwlegacy/debug.c 	return il->debugfs_ops->tx_stats_read(file, user_buf, count, ppos);
il                909 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il                911 drivers/net/wireless/intel/iwlegacy/debug.c 	return il->debugfs_ops->general_stats_read(file, user_buf, count, ppos);
il                919 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il                927 drivers/net/wireless/intel/iwlegacy/debug.c 	data = &il->sensitivity_data;
il               1018 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il               1026 drivers/net/wireless/intel/iwlegacy/debug.c 	data = &il->chain_noise_data;
il               1088 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il               1095 drivers/net/wireless/intel/iwlegacy/debug.c 	    _il_rd(il, CSR_GP_CNTRL) & CSR_GP_REG_POWER_SAVE_STATUS_MSK;
il               1113 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il               1126 drivers/net/wireless/intel/iwlegacy/debug.c 	mutex_lock(&il->mutex);
il               1127 drivers/net/wireless/intel/iwlegacy/debug.c 	il_send_stats_request(il, CMD_SYNC, true);
il               1128 drivers/net/wireless/intel/iwlegacy/debug.c 	mutex_unlock(&il->mutex);
il               1138 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il               1142 drivers/net/wireless/intel/iwlegacy/debug.c 	len = sprintf(buf, "0x%04X\n", le32_to_cpu(il->active.flags));
il               1151 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il               1156 drivers/net/wireless/intel/iwlegacy/debug.c 	    sprintf(buf, "0x%04X\n", le32_to_cpu(il->active.filter_flags));
il               1164 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il               1169 drivers/net/wireless/intel/iwlegacy/debug.c 	if (il->ops->dump_fh) {
il               1170 drivers/net/wireless/intel/iwlegacy/debug.c 		ret = pos = il->ops->dump_fh(il, &buf, true);
il               1187 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il               1194 drivers/net/wireless/intel/iwlegacy/debug.c 		      il->missed_beacon_threshold);
il               1203 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il               1217 drivers/net/wireless/intel/iwlegacy/debug.c 		il->missed_beacon_threshold = IL_MISSED_BEACON_THRESHOLD_DEF;
il               1219 drivers/net/wireless/intel/iwlegacy/debug.c 		il->missed_beacon_threshold = missed;
il               1229 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il               1235 drivers/net/wireless/intel/iwlegacy/debug.c 	force_reset = &il->force_reset;
il               1261 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il               1263 drivers/net/wireless/intel/iwlegacy/debug.c 	ret = il_force_reset(il, true);
il               1273 drivers/net/wireless/intel/iwlegacy/debug.c 	struct il_priv *il = file->private_data;
il               1287 drivers/net/wireless/intel/iwlegacy/debug.c 	il->cfg->wd_timeout = timeout;
il               1288 drivers/net/wireless/intel/iwlegacy/debug.c 	il_setup_watchdog(il);
il               1316 drivers/net/wireless/intel/iwlegacy/debug.c il_dbgfs_register(struct il_priv *il, const char *name)
il               1318 drivers/net/wireless/intel/iwlegacy/debug.c 	struct dentry *phyd = il->hw->wiphy->debugfsdir;
il               1322 drivers/net/wireless/intel/iwlegacy/debug.c 	il->debugfs_dir = dir_drv;
il               1350 drivers/net/wireless/intel/iwlegacy/debug.c 	if (il->cfg->sensitivity_calib_by_driver)
il               1352 drivers/net/wireless/intel/iwlegacy/debug.c 	if (il->cfg->chain_noise_calib_by_driver)
il               1357 drivers/net/wireless/intel/iwlegacy/debug.c 	if (il->cfg->sensitivity_calib_by_driver)
il               1359 drivers/net/wireless/intel/iwlegacy/debug.c 				 &il->disable_sens_cal);
il               1360 drivers/net/wireless/intel/iwlegacy/debug.c 	if (il->cfg->chain_noise_calib_by_driver)
il               1362 drivers/net/wireless/intel/iwlegacy/debug.c 				 &il->disable_chain_noise_cal);
il               1363 drivers/net/wireless/intel/iwlegacy/debug.c 	DEBUGFS_ADD_BOOL(disable_tx_power, dir_rf, &il->disable_tx_power_cal);
il               1372 drivers/net/wireless/intel/iwlegacy/debug.c il_dbgfs_unregister(struct il_priv *il)
il               1374 drivers/net/wireless/intel/iwlegacy/debug.c 	if (!il->debugfs_dir)
il               1377 drivers/net/wireless/intel/iwlegacy/debug.c 	debugfs_remove_recursive(il->debugfs_dir);
il               1378 drivers/net/wireless/intel/iwlegacy/debug.c 	il->debugfs_dir = NULL;
il                424 net/bluetooth/bnep/core.c 	int len = 0, il = 0;
il                434 net/bluetooth/bnep/core.c 	iv[il++] = (struct kvec) { &type, 1 };
il                449 net/bluetooth/bnep/core.c 		iv[il++] = (struct kvec) { eh->h_source, ETH_ALEN };
il                454 net/bluetooth/bnep/core.c 		iv[il++] = (struct kvec) { eh->h_dest, ETH_ALEN };
il                460 net/bluetooth/bnep/core.c 	iv[il++] = (struct kvec) { skb->data, skb->len };
il                465 net/bluetooth/bnep/core.c 		len = kernel_sendmsg(sock, &s->msg, iv, il, len);
il                381 sound/usb/usx2y/usb_stream.c 	int il, ol, l, p;
il                398 sound/usb/usx2y/usb_stream.c 		il = id[p].actual_length;
il                399 sound/usb/usx2y/usb_stream.c 		if (l + il > s->period_size)
il                400 sound/usb/usx2y/usb_stream.c 			il = s->period_size - l;
il                401 sound/usb/usx2y/usb_stream.c 		if (il <= ol) {
il                402 sound/usb/usx2y/usb_stream.c 			memcpy(o, i, il);
il                403 sound/usb/usx2y/usb_stream.c 			o += il;
il                404 sound/usb/usx2y/usb_stream.c 			ol -= il;
il                409 sound/usb/usx2y/usb_stream.c 			memcpy(o, i + ol, il - ol);
il                410 sound/usb/usx2y/usb_stream.c 			o += il - ol;
il                413 sound/usb/usx2y/usb_stream.c 		l += il;