Lines Matching defs:cid

368 	/* cid from DMA descriptor is limited to 3 bits.
369 * In case of cid>=8, the value would be cid modulo 8 and we need to
370 * find real cid by locating the transmitter (ta) inside sta array
372 int cid = wil_rxdesc_cid(d);
381 return cid;
403 return cid;
407 * cid from the rx descriptor
411 return cid;
413 /* For Rx packets cid from rx descriptor is limited to 3 bits (0..7),
414 * to find the real cid, compare transmitter address with the stored
417 for (i = cid; i < wil->max_assoc_sta; i += WIL6210_RX_DESC_MAX_CID) {
420 cid = i;
425 wil_err_ratelimited(wil, "Could not find cid for frame with transmit addr = %pM, iftype = %d, frametype = %d, len = %d\n",
427 cid = -ENOENT;
430 return cid;
453 int cid, mid;
512 cid = wil_rx_get_cid_by_skb(wil, skb);
513 if (cid == -ENOENT) {
517 wil_skb_set_cid(skb, (u8)cid);
518 stats = &wil->sta[cid].stats;
543 fc1, mid, cid, tid, seq);
548 mid, cid, tid, seq);
549 wil_rx_bar(wil, vif, cid, tid, seq);
556 fc1, mid, cid, tid, seq);
661 int cid = wil_skb_get_cid(skb);
665 struct wil_sta_info *s = &wil->sta[cid];
674 cid, tid, mc, key_id);
681 cid, tid, mc, key_id, pn, cc->pn);
704 static void wil_get_netif_rx_params(struct sk_buff *skb, int *cid,
709 *cid = wil_skb_get_cid(skb);
806 int rc, cid;
816 cid = wil_find_cid_by_idx(wil, vif->mid, 0);
817 if (!wil_cid_valid(wil, cid)) {
818 wil_err(wil, "Invalid cid = %d\n", cid);
824 rc = wmi_add_cipher_key(vif, 0, wil->sta[cid].addr, 0, NULL,
893 void wil_netif_rx(struct sk_buff *skb, struct net_device *ndev, int cid,
973 int cid, security;
977 wil->txrx_ops.get_netif_rx_params(skb, &cid, &security);
979 stats = &wil->sta[cid].stats;
998 wil_netif_rx(skb, ndev, cid, stats, true);
1135 int cid, int tid)
1167 if (cid >= WIL6210_RX_DESC_MAX_CID) {
1169 cmd.vring_cfg.cid = cid;
1172 cmd.vring_cfg.cidxtid = mk_cidxtid(cid, tid);
1192 wil->ring2cid_tid[id][0] = cid;
1236 static int wil_tx_vring_modify(struct wil6210_vif *vif, int ring_id, int cid,
1250 .cidxtid = mk_cidxtid(cid, tid),
1270 wil_dbg_misc(wil, "vring_modify: ring %d cid %d tid %d\n", ring_id,
1271 cid, tid);
1279 if (wil->ring2cid_tid[ring_id][0] != cid ||
1281 wil_err(wil, "ring info does not match cid=%u tid=%u\n",
1404 int i, cid;
1408 cid = wil_find_cid(wil, vif->mid, da);
1410 if (cid < 0 || cid >= wil->max_assoc_sta)
1418 if (wil->ring2cid_tid[i][0] == cid) {
1447 u8 cid;
1461 cid = wil->ring2cid_tid[i][0];
1462 if (cid >= wil->max_assoc_sta) /* skip BCAST */
1544 int cid = wil->ring2cid_tid[vring_index][0];
1546 ether_addr_copy(da, wil->sta[cid].addr);
1556 u8 cid;
1568 cid = wil->ring2cid_tid[i][0];
1569 if (cid >= wil->max_assoc_sta) /* skip BCAST */
1576 if (0 == memcmp(wil->sta[cid].addr, src, ETH_ALEN))
1596 cid = wil->ring2cid_tid[i][0];
1597 if (cid >= wil->max_assoc_sta) /* skip BCAST */
1603 if (0 == memcmp(wil->sta[cid].addr, src, ETH_ALEN))
2426 int cid = wil->ring2cid_tid[ringid][0];
2446 if (cid < wil->max_assoc_sta)
2447 stats = &wil->sta[cid].stats;
2498 &wil->sta[cid]);
2552 struct sk_buff *skb, int *tid, int *cid,
2558 *cid = wil_skb_get_cid(skb);