Lines Matching +defs:a +defs:code
25 * many other adaptors do. Instead at run time the eeprom is set into a known
26 * state and told to load boot firmware. The boot firmware loads an init and a
37 * the firmware updates the read index (reg1) on rx of a packet and fires an
44 * of a successful transmition (tx_done) has occurred.
52 * The firmware consists of 2 parts. A bootstrap firmware and a runtime
363 * Some card's only support 802.11b/g not a, check to see if
492 device_printf(sc->sc_dev, "SKU %s support 802.11a\n",
613 bcn->code = WPI_CMD_SET_BEACON;
627 if (!TAILQ_EMPTY(&ic->ic_vaps)) /* only one at a time */
900 * Allocates a contiguous block of dma memory of the requested size and
956 * Allocate a shared page between host and NIC.
961 /* Shared buffer must be aligned on a 4KB boundary. */
978 /* Must be aligned on a 16-byte boundary. */
1720 * Called by net80211 when ever there is a change to 80211 state machine
1827 * which is done with a firmware cmd. We also defer
1902 /* Quickly determine if a given rate is CCK or OFDM. */
1940 /* Discard frames with a bad FCS early. */
1993 /* Grab a reference to the source node. */
2124 * Process a "command done" firmware notification. This is where we wakeup
2125 * processes waiting for a synchronous command completion.
2140 return; /* Not a command ack. */
2205 /* Reply to a command. */
2467 * Dump the error log of the firmware when a firmware panic occurs. Although
2658 /* First segment length must be a multiple of 4. */
2670 cmd->code = buf->code;
2779 * Construct the data packet for a transmit buffer.
2812 /* Choose a TX rate index. */
2945 tx_data.code = WPI_CMD_TX_DATA;
2970 /* Choose a TX rate index. */
3048 tx_data.code = WPI_CMD_TX_DATA;
3224 * Send a command to the firmware.
3227 wpi_cmd(struct wpi_softc *sc, uint8_t code, const void *buf, uint16_t size,
3245 if (code == WPI_CMD_SCAN)
3257 __func__, wpi_cmd_str(code), size, async);
3264 /* Command is too large to fit in a descriptor. */
3287 cmd->code = code;
3335 /* CCK rates (not used with 802.11a). */
3405 "%s: wpi_cmd() call failed with error code %d\n", __func__,
3722 * Determine Tx power index for a given channel/rate combination.
3730 /* Fixed-point arithmetic division using a n-bit fractional part. */
3731 #define fdivround(a, b, n) \
3732 ((((1 << n) * (a)) / (b) + (1 << n) / 2) / (1 << n))
3764 /* Fixed-point linear interpolation using a 19-bit fractional part. */
3779 /* Make sure idx stays in a valid range. */
3925 * Configure the card to listen to a particular channel, this transisions the
4085 * Send a scan request to the firmware.
4106 * We are absolutely not allowed to send a scan command when another
4185 * Build a probe request frame. Most of the following code is a
4850 * readiness (called in a process context).
4890 * The firmware boot code is small and is intended to be copied directly into
4969 /* Load firmware boot code. */
5550 * Callback from net80211 to start a scan.
5561 * Callback from net80211 to terminate a scan.