Lines Matching refs:cpu_to_le16

128 		channel.hw_value = cpu_to_le16(chan->hw_value);
140 channel.hw_value = cpu_to_le16(chan->hw_value);
152 channel.hw_value = cpu_to_le16(chan->hw_value);
255 .tag = cpu_to_le16(tag),
256 .len = cpu_to_le16(len),
264 ntlv_hdr->tlv_num = cpu_to_le16(ntlv + 1);
268 sta_hdr->len = cpu_to_le16(len);
383 basic->extra_info = cpu_to_le16(EXTRA_INFO_VER);
387 basic->extra_info |= cpu_to_le16(EXTRA_INFO_NEW);
399 basic->aid = cpu_to_le16(vif->cfg.aid);
414 basic->aid = cpu_to_le16(sta->aid);
422 basic->aid = cpu_to_le16(vif->cfg.aid);
426 basic->aid = cpu_to_le16(sta->aid);
566 generic->partial_aid = cpu_to_le16(vif->cfg.aid);
568 generic->partial_aid = cpu_to_le16(sta->aid);
872 ht->ht_cap = cpu_to_le16(sta->deflink.ht_cap.cap);
915 phy->basic_rate = cpu_to_le16((u16)vif->bss_conf.basic_rates);
932 ra_info->legacy = cpu_to_le16(supp_rates);
1105 ba->sn = enable ? cpu_to_le16(params->ssn) : 0;
1106 ba->ba_winsize = enable ? cpu_to_le16(params->buf_size) : 0;
1117 ba->ba_winsize = enable ? cpu_to_le16(params->buf_size) : 0;
1160 .tag = cpu_to_le16(DEV_INFO_ACTIVE),
1161 .len = cpu_to_le16(sizeof(struct req_tlv)),
1176 .tag = cpu_to_le16(UNI_BSS_INFO_BASIC),
1177 .len = cpu_to_le16(sizeof(struct mt76_connac_bss_basic_tlv)),
1182 .bmc_tx_wlan_idx = cpu_to_le16(wcid->idx),
1183 .sta_idx = cpu_to_le16(wcid->idx),
1239 ba->winsize = cpu_to_le16(params->buf_size);
1240 ba->ssn = cpu_to_le16(params->ssn);
1437 he->he_rts_thres = cpu_to_le16(vif->bss_conf.frame_time_rts_th);
1439 he->he_rts_thres = cpu_to_le16(DEFAULT_HE_DURATION_RTS_THRES);
1478 .tag = cpu_to_le16(UNI_BSS_INFO_RLM),
1479 .len = cpu_to_le16(sizeof(struct rlm_tlv)),
1550 .tag = cpu_to_le16(UNI_BSS_INFO_BASIC),
1551 .len = cpu_to_le16(sizeof(struct mt76_connac_bss_basic_tlv)),
1552 .bcn_interval = cpu_to_le16(vif->bss_conf.beacon_int),
1561 .tag = cpu_to_le16(UNI_BSS_INFO_QBSS),
1562 .len = cpu_to_le16(sizeof(struct mt76_connac_bss_qos_tlv)),
1575 basic_req.basic.nonht_basic_phy = cpu_to_le16(basic_phy);
1604 basic_req.basic.bmc_tx_wlan_idx = cpu_to_le16(wcid->idx);
1605 basic_req.basic.sta_idx = cpu_to_le16(wcid->idx);
1626 .tag = cpu_to_le16(UNI_BSS_INFO_HE_BASIC),
1627 .len = cpu_to_le16(sizeof(struct bss_info_uni_he)),
1630 .tag = cpu_to_le16(UNI_BSS_INFO_BSS_COLOR),
1631 .len = cpu_to_le16(sizeof(struct bss_info_uni_bss_color)),
1705 req->timeout_value = cpu_to_le16(sreq->n_channels * duration);
1706 req->channel_min_dwell_time = cpu_to_le16(duration);
1707 req->channel_dwell_time = cpu_to_le16(duration);
1741 req->ies_len = cpu_to_le16(sreq->ie_len);
1862 req->intervals[i] = cpu_to_le16(sreq->scan_plans[i].interval);
1865 req->ie_len = cpu_to_le16(sreq->ie_len);
2223 .tag = cpu_to_le16(UNI_OFFLOAD_OFFLOAD_ARP),
2224 .len = cpu_to_le16(sizeof(struct mt76_connac_arpns_tlv)),
2333 gtk_tlv->tag = cpu_to_le16(UNI_OFFLOAD_OFFLOAD_GTK_REKEY);
2334 gtk_tlv->len = cpu_to_le16(sizeof(*gtk_tlv));
2367 .tag = cpu_to_le16(UNI_OFFLOAD_OFFLOAD_ARP),
2368 .len = cpu_to_le16(sizeof(struct mt76_connac_arpns_tlv)),
2393 .tag = cpu_to_le16(UNI_OFFLOAD_OFFLOAD_GTK_REKEY),
2394 .len = cpu_to_le16(sizeof(struct mt76_connac_gtk_rekey_tlv)),
2422 .tag = cpu_to_le16(UNI_SUSPEND_MODE_SETTING),
2423 .len = cpu_to_le16(sizeof(struct mt76_connac_suspend_tlv)),
2457 ptlv->tag = cpu_to_le16(UNI_SUSPEND_WOW_PATTERN);
2458 ptlv->len = cpu_to_le16(sizeof(*ptlv));
2487 .tag = cpu_to_le16(UNI_SUSPEND_WOW_CTRL),
2488 .len = cpu_to_le16(sizeof(struct mt76_connac_wow_ctrl_tlv)),
2492 .tag = cpu_to_le16(UNI_SUSPEND_WOW_GPIO_PARAM),
2493 .len = cpu_to_le16(sizeof(struct mt76_connac_wow_gpio_param_tlv)),
2541 .tag = cpu_to_le16(0), /* 0: UNI_HIF_CTRL_BASIC */
2542 .len = cpu_to_le16(sizeof(struct hif_suspend_tlv)),
2672 sec->len = cpu_to_le16(len);
2787 bss->bcn_interval = cpu_to_le16(vif->bss_conf.beacon_int);
3131 uni_txd->len = cpu_to_le16(skb->len - sizeof(uni_txd->txd));
3133 uni_txd->cid = cpu_to_le16(mcu_cmd);
3142 mcu_txd->len = cpu_to_le16(skb->len - sizeof(mcu_txd->txd));
3143 mcu_txd->pq_id = cpu_to_le16(MCU_PQ_ID(MT_TX_PORT_IDX_MCU,