Lines Matching refs:idx

1362 			int idx, i;
1368 idx = le32toh(api->api_index);
1369 if (idx >= howmany(IWX_NUM_UCODE_TLV_API, 32)) {
1376 setbit(sc->sc_ucode_api, i + (32 * idx));
1383 int idx, i;
1389 idx = le32toh(capa->api_index);
1390 if (idx >= howmany(IWX_NUM_UCODE_TLV_CAPA, 32)) {
1396 setbit(sc->sc_enabled_capa, i + (32 * idx));
4426 iwx_update_rx_desc(struct iwx_softc *sc, struct iwx_rx_ring *ring, int idx)
4428 struct iwx_rx_data *data = &ring->data[idx];
4432 desc[idx].rbid = htole16(idx & 0xffff);
4433 desc[idx].addr = htole64(data->map->dm_segs[0].ds_addr);
4435 idx * sizeof(*desc), sizeof(*desc),
4438 ((uint64_t *)ring->desc)[idx] =
4439 htole64(data->map->dm_segs[0].ds_addr | (idx & 0x0fff));
4441 idx * sizeof(uint64_t), sizeof(uint64_t),
4447 iwx_rx_addbuf(struct iwx_softc *sc, int size, int idx)
4450 struct iwx_rx_data *data = &ring->data[idx];
4488 iwx_update_rx_desc(sc, ring, idx);
5305 iwx_clear_tx_desc(struct iwx_softc *sc, struct iwx_tx_ring *ring, int idx)
5307 struct iwx_tfh_tfd *desc = &ring->desc[idx];
5340 iwx_txq_advance(struct iwx_softc *sc, struct iwx_tx_ring *ring, uint16_t idx)
5344 while (ring->tail_hw != idx) {
5436 uint16_t i, tfd_cnt, ra_tid_cnt, idx;
5476 idx = le16toh(ba_tfd->tfd_index);
5478 iwx_txq_advance(sc, ring, idx);
5752 int idx, code, async, group_id;
5759 idx = ring->cur;
5772 if (sc->sc_cmd_resp_pkt[idx] != NULL)
5778 sc->sc_cmd_resp_pkt[idx] = resp_buf;
5779 sc->sc_cmd_resp_len[idx] = hcmd->resp_pkt_len;
5781 sc->sc_cmd_resp_pkt[idx] = NULL;
5786 desc = &ring->desc[idx];
5787 txdata = &ring->data[idx];
5835 cmd = &ring->cmd[idx];
5843 cmd->hdr_wide.idx = idx;
5896 hcmd->resp_pkt = (void *)sc->sc_cmd_resp_pkt[idx];
5897 sc->sc_cmd_resp_pkt[idx] = NULL;
5899 free(sc->sc_cmd_resp_pkt[idx], M_DEVBUF,
5900 sc->sc_cmd_resp_len[idx]);
5901 sc->sc_cmd_resp_pkt[idx] = NULL;
5978 iwx_cmd_done(struct iwx_softc *sc, int qid, int idx, int code)
5987 data = &ring->data[idx];
5996 wakeup(&ring->desc[idx]);
6116 int idx, uint16_t byte_cnt, uint16_t num_tbs)
6138 scd_bc_tbl[idx].tfd_offset = bc_ent;
6144 scd_bc_tbl->tfd_offset[idx] = bc_ent;
6207 cmd->hdr.idx = ring->cur;
7809 int idx = iwx_rs_rval2idx(rval);
7810 if (idx == -1)
7812 cfg_cmd.non_ht_rates |= (1 << idx);
7877 int idx = iwx_rs_rval2idx(rval);
7878 if (idx == -1)
7880 cfg_cmd.non_ht_rates |= (1 << idx);
9726 int qid, idx, code;
9729 idx = pkt->hdr.idx;
9732 return (!(qid == 0 && idx == 0 && code == 0) &&
9744 int qid, idx, code, handled = 1;
9753 idx = pkt->hdr.idx;
9768 struct iwx_tx_data *txdata = &ring->data[idx];
9985 if (sc->sc_cmd_resp_pkt[idx] == NULL)
9996 pkt_len > sc->sc_cmd_resp_len[idx]) {
9997 free(sc->sc_cmd_resp_pkt[idx], M_DEVBUF,
9998 sc->sc_cmd_resp_len[idx]);
9999 sc->sc_cmd_resp_pkt[idx] = NULL;
10005 memcpy(sc->sc_cmd_resp_pkt[idx], pkt, pkt_len);
10144 (qid & ~0x80), idx);
10156 iwx_cmd_done(sc, qid, idx, code);