Lines Matching +defs:val +defs:channel

296 static int	iwk_txpower_grp(uint16_t channel);
298 uint16_t channel,
300 static int32_t iwk_band_number(iwk_sc_t *sc, uint16_t channel);
304 static int iwk_channel_interpolate(iwk_sc_t *sc, uint16_t channel,
332 static int iwk_m_stat(void *arg, uint_t stat, uint64_t *val);
1614 /* step to next channel before actual FW scan */
1644 * channel same to the target AP...
2135 len, stat->rate.r.s.rate, LE_16(stat->channel),
2319 /* enable each channel 0-7 */
2428 "scanning channel %d status %x\n",
2440 "completed channel %d (burst of %d) status %02x\n",
2910 tfd_offset[ring->cur].val = 8 + len;
2913 tfd_offset[IWK_QUEUE_SIZE + ring->cur].val = 8 + len;
3020 txpower.channel = sc->sc_config.chan;
3148 iwk_m_stat(void *arg, uint_t stat, uint64_t *val)
3158 *val = ((ic->ic_fixed_rate == IEEE80211_FIXED_RATE_NONE) ?
3163 *val = sc->sc_tx_nobuf;
3166 *val = sc->sc_rx_nobuf;
3169 *val = sc->sc_rx_err;
3172 *val = ic->ic_stats.is_rx_bytes;
3175 *val = ic->ic_stats.is_rx_frags;
3178 *val = ic->ic_stats.is_tx_bytes;
3181 *val = ic->ic_stats.is_tx_frags;
3185 *val = sc->sc_tx_err;
3188 *val = sc->sc_tx_retries;
3201 return (ieee80211_stat(ic, stat, val));
3477 tfd_offset[ring->cur].val = 8;
3480 tfd_offset[IWK_QUEUE_SIZE + ring->cur].val = 8;
3528 "channel (%d) isn't in proper range\n",
3789 tfd_offset[ring->cur].val = 8;
3792 tfd_offset[IWK_QUEUE_SIZE + ring->cur].val = 8;
4478 /* Determine whether 4965 is using fat channel */
4487 * In MIMO mode, determine which group 4965's current channel belong to.
4488 * For more infomation about "channel group",
4491 static int iwk_txpower_grp(uint16_t channel)
4493 if (channel >= CALIB_IWK_TX_ATTEN_GR5_FCH &&
4494 channel <= CALIB_IWK_TX_ATTEN_GR5_LCH) {
4498 if (channel >= CALIB_IWK_TX_ATTEN_GR1_FCH &&
4499 channel <= CALIB_IWK_TX_ATTEN_GR1_LCH) {
4503 if (channel >= CALIB_IWK_TX_ATTEN_GR2_FCH &&
4504 channel <= CALIB_IWK_TX_ATTEN_GR2_LCH) {
4508 if (channel >= CALIB_IWK_TX_ATTEN_GR3_FCH &&
4509 channel <= CALIB_IWK_TX_ATTEN_GR3_LCH) {
4513 if (channel >= CALIB_IWK_TX_ATTEN_GR4_FCH &&
4514 channel <= CALIB_IWK_TX_ATTEN_GR4_LCH) {
4519 "can't find txpower group for channel %d.\n", channel);
4554 /* Get regulatory data from eeprom for a given channel */
4556 uint16_t channel,
4565 chan = channel - 4;
4567 chan = channel;
4582 if (iwk_eep_band_1[i] == channel) {
4588 if (iwk_eep_band_2[i] == channel) {
4593 if (iwk_eep_band_3[i] == channel) {
4598 if (iwk_eep_band_4[i] == channel) {
4603 if (iwk_eep_band_5[i] == channel) {
4613 * Determine which subband a given channel belongs
4616 static int32_t iwk_band_number(iwk_sc_t *sc, uint16_t channel)
4625 if ((channel >=
4628 (channel <=
4662 int32_t val;
4667 (void) iwk_division((x2-x)*(y1-y2), (x2-x1), &val);
4668 return (val + y2);
4672 /* Get interpolation measurement data of a given channel for all chains. */
4673 static int iwk_channel_interpolate(iwk_sc_t *sc, uint16_t channel,
4682 ban_n = iwk_band_number(sc, channel);
4692 chan_info->ch_num = (uint8_t)channel; /* given channel number */
4712 * Tx power for given channel
4714 m_p->actual_pow = iwk_interpolate_value(channel,
4719 m_p->gain_idx = iwk_interpolate_value(channel,
4724 m_p->temperature = iwk_interpolate_value(channel,
4732 m_p->pa_det = iwk_interpolate_value(channel, ch1_n,
4816 uint16_t channel;
4837 channel = LE_16(sc->sc_config.chan);
4842 /* fat channel or not */
4846 * using low half channel number or high half channel number
4847 * identify fat channel
4854 if ((channel > 0) && (channel < 200)) {
4855 /* get regulatory channel data from eeprom */
4856 eep_chan_p = iwk_get_eep_channel(sc, channel, is_24G,
4861 "can't get channel infomation\n");
4866 "channel(%d) isn't in proper range\n",
4867 channel);
4885 /* determine which group current channel belongs to */
4886 tx_grp = iwk_txpower_grp(channel);
4894 channel -= 2;
4896 channel += 2;
4930 * get measurement data for current channel
4933 (void) iwk_channel_interpolate(sc, channel, &eep_chan_calib);
5078 cmd.channel = sc->sc_config.chan;
5220 channel_n = sc->sc_config.chan; /* channel number */