Lines Matching +defs:a +defs:code
616 * it's not a 3-stream device.
1338 if (!TAILQ_EMPTY(&ic->ic_vaps)) /* only one at a time */
1787 /* TX scheduler rings must be aligned on a 1KB boundary. */
1801 /* "Keep Warm" page must be aligned on a 4KB boundary. */
1814 /* ICT table must be aligned on a 4KB boundary. */
1828 /* Must be aligned on a 16-byte boundary. */
2755 * The '2 stream' setup is a bit .. odd.
2777 * If the NIC is a two-stream TX NIC, configure the TX mask to
2847 /* XXX It would be nice to have a method
2913 /* Wait until we hear a beacon before we transmit */
2932 /* Wait until we hear a beacon before we transmit */
2938 * which is done with a firmware cmd. We also defer
2951 * during a new association attempt.
3059 /* Discard frames with a bad FCS early. */
3121 /* Grab a reference to the source node. */
3150 * If it's a beacon and we're waiting, then do the
3276 * Yes, the rate control code doesn't know these are A-MPDU
3319 * Process a CALIBRATION_RESULT notification sent by the initialization
3320 * firmware on response to a CMD_CALIB_CONFIG command (5000 only).
3330 /* Runtime firmware should not send such a notification. */
3338 switch (calib->code) {
3370 calib->code);
3374 "saving calibration result idx=%d, code=%d len=%d\n", idx, calib->code, len);
3457 /* Ignore statistics received during a scan. */
3479 * And now, let's take a reference of it to use!
3497 return; /* Reply to a statistics request. */
3544 * Process a TX_DONE firmware notification. Unfortunately, the 4965AGN
3699 * this we ignore a failure of this sort in AUTH state so the
3700 * 802.11 layer will fall back to using a timeout to wait for
3702 * traffic so a subsequent retry of AUTH succeeds. It's
3705 * use of the channel after a scan (where we see traffic).
3718 * Process a "command done" firmware notification. This is where we wakeup
3719 * processes waiting for a synchronous command completion.
3734 return; /* Not a command ack. */
3909 * Mark the entry so the above code will check it
3996 if (!(desc->qid & IWN_UNSOLICITED_RX_NOTIF)) /* Reply to a command. */
4195 * Dump the error log of the firmware when a firmware panic occurs. Although
4207 /* Force a complete recalibration on next init. */
4280 else if (tmp & 0xc0000) /* Workaround a HW bug. */
4362 * 5000 adapters use a slightly different format).
4422 * The original driver code only enabled protection for OFDM rates.
4423 * It didn't check to see whether it was operating in 11a or 11bg mode.
4447 * We'll do it via a specific 11n check.
4454 * Do a rate table lookup. If the PHY is CCK,
4467 * return a value between 0 and IWN_MAX_TX_RETRIES-1 as an index into
4561 /* Choose a TX rate index. */
4578 * go to the normal non-aggregation queue, and have a NONQOS TID
4762 /* Choose a TX rate. */
4862 cmd->code = IWN_CMD_TX_DATA;
4874 /* First segment length must be a multiple of 4. */
4960 /* Mark TX ring as full if we reach a certain threshold. */
5216 * Send a command to the firmware.
5219 iwn_cmd(struct iwn_softc *sc, int code, const void *buf, int size, int async)
5246 /* Command is too large to fit in a descriptor. */
5265 cmd->code = code;
5276 __func__, iwn_intr_str(cmd->code), cmd->code,
5308 * a superset of the one for 4965AGN). We thus copy the common
5410 * _are_ doing a dual-stream rate, set mimo to idx+1 (ie,
5411 * the next entry.) That way if the next entry is a non-MIMO
5666 /* Fixed-point arithmetic division using a n-bit fractional part. */
5667 #define fdivround(a, b, n) \
5668 ((((1 << n) * (a)) / (b) + (1 << n) / 2) / (1 << n))
5792 /* Make sure idx stays in a valid range. */
6074 cmd.code = IWN4965_PHY_CALIB_DIFF_GAIN;
6089 cmd.code = sc->reset_noise_gain;
6113 cmd.code = IWN4965_PHY_CALIB_DIFF_GAIN;
6141 /* We collected 20 beacons and !=6050 need a 1.5 factor. */
6145 cmd.code = sc->noise_gain;
6371 * a programmed threshold then trigger an RF retune.
6431 * If we need a retune, then schedule a single channel scan
6432 * to a channel that isn't the currently active one!
7021 * We are absolutely not allowed to send a scan command when another
7107 * Only do active scanning if we're announcing a probe request
7108 * for a given SSID (or more, if we ever add it to the driver.)
7113 * If we're scanning for a specific SSID, add it to the command.
7136 * Build a probe request frame. Most of the following code is a
7161 * If active scanning is requested but a certain channel is
7166 * a sysassert on a "good CRC threshold" of zero (== disabled),
7167 * on a radar channel even though this means that we should NOT
7171 * need to receive during our dwell time on a channel before
7172 * sending out probes -- setting this to a huge value will
7178 * scan changes, and the threshold behaves as a flag in those
7184 * to a suitable value. This is different to active veruss
7382 /* Fake a join to initialize the TX rate. */
7480 * Block Ack agreement (eg. uppon receipt of a DELBA frame).
7546 int code, int baparamset, int batimeout)
7555 if (code == IEEE80211_STATUS_SUCCESS) {
7565 return sc->sc_addba_response(ni, tap, code, baparamset, batimeout);
7764 * only once at first boot. Called from a process context.
7860 cmd.code = IWN5000_PHY_CALIB_CRYSTAL;
7876 cmd.code = IWN5000_PHY_CALIB_TEMP_OFFSET;
7894 cmd.code = IWN5000_PHY_CALIB_TEMP_OFFSET;
7917 * readiness (called in a process context).
7972 * notifies us of its readiness (called in a process context).
8084 * The firmware boot code is small and is intended to be copied directly into
8153 /* Load firmware boot code. */
8270 * Extract text and data sections from a legacy firmware image.
8324 * Extract text and data sections from a TLV firmware image.
8668 * solve a stability issue related to noisy DC2DC line
8919 * which has a very specific requirement of
9064 * Callback from net80211 to start a scan.
9078 * Callback from net80211 to terminate a scan.
9095 * Callback from net80211 to force a channel change.
9151 * Translate CSR code to string