/freebsd/sys/dev/enic/ |
H A D | wq_enet_desc.h | 64 *length = le16_to_cpu(desc->length) & WQ_ENET_LEN_MASK; in wq_enet_desc_dec() 65 *mss = (le16_to_cpu(desc->mss_loopback) >> WQ_ENET_MSS_SHIFT) & in wq_enet_desc_dec() 67 *loopback = (u8)((le16_to_cpu(desc->mss_loopback) >> in wq_enet_desc_dec() 69 *header_length = le16_to_cpu(desc->header_length_flags) & in wq_enet_desc_dec() 71 *offload_mode = (u8)((le16_to_cpu(desc->header_length_flags) >> in wq_enet_desc_dec() 73 *eop = (u8)((le16_to_cpu(desc->header_length_flags) >> in wq_enet_desc_dec() 75 *cq_entry = (u8)((le16_to_cpu(desc->header_length_flags) >> in wq_enet_desc_dec() 77 *fcoe_encap = (u8)((le16_to_cpu(desc->header_length_flags) >> in wq_enet_desc_dec() 79 *vlan_tag_insert = (u8)((le16_to_cpu(desc->header_length_flags) >> in wq_enet_desc_dec() 81 *vlan_tag = le16_to_cpu(desc->vlan_tag); in wq_enet_desc_dec()
|
H A D | cq_enet_desc.h | 179 completed_index_flags = le16_to_cpu(desc->completed_index_flags); in cq_enet_rq_desc_dec() 181 le16_to_cpu(desc->q_number_rss_type_flags); in cq_enet_rq_desc_dec() 182 bytes_written_flags = le16_to_cpu(desc->bytes_written_flags); in cq_enet_rq_desc_dec() 210 *vlan_tci = le16_to_cpu(desc->vlan); in cq_enet_rq_desc_dec() 213 *fcoe_sof = (u8)(le16_to_cpu(desc->checksum_fcoe) & in cq_enet_rq_desc_dec() 219 *fcoe_eof = (u8)((le16_to_cpu(desc->checksum_fcoe) >> in cq_enet_rq_desc_dec() 228 *checksum = le16_to_cpu(desc->checksum_fcoe); in cq_enet_rq_desc_dec()
|
H A D | rq_enet_desc.h | 41 *length = le16_to_cpu(desc->length_type) & RQ_ENET_LEN_MASK; in rq_enet_desc_dec() 42 *type = (u8)((le16_to_cpu(desc->length_type) >> RQ_ENET_LEN_BITS) & in rq_enet_desc_dec()
|
H A D | cq_desc.h | 77 *q_number = le16_to_cpu(desc->q_number) & CQ_DESC_Q_NUM_MASK; in cq_desc_dec() 78 *completed_index = le16_to_cpu(desc->completed_index) & in cq_desc_dec()
|
H A D | enic_compat.h | 28 #define le16_to_cpu macro
|
/freebsd/sys/contrib/dev/rtw89/ |
H A D | coex.c | 904 if (le16_to_cpu(chip->mon_reg[i].type) == reg_type && in _update_bt_report() 1281 a2dp->vendor_id = le16_to_cpu(pdev->vendor_id); in _chk_btc_report() 1345 rpt_len = le16_to_cpu(btc_prpt->len); in _chk_btc_report() 1642 le16_to_cpu(prpt->v5.bt_cnt[BTC_BCNT_HI_TX]); in rtw89_btc_fw_rpt_ver() 1644 le16_to_cpu(prpt->v5.bt_cnt[BTC_BCNT_HI_RX]); in rtw89_btc_fw_rpt_ver() 1646 le16_to_cpu(prpt->v5.bt_cnt[BTC_BCNT_LO_TX]); in rtw89_btc_fw_rpt_ver() 1648 le16_to_cpu(prpt->v5.bt_cnt[BTC_BCNT_LO_RX]); in rtw89_btc_fw_rpt_ver() 1650 le16_to_cpu(prpt->v5.bt_cnt[BTC_BCNT_POLLUTED]); in rtw89_btc_fw_rpt_ver() 1669 le16_to_cpu(prpt->v105.bt_cnt[BTC_BCNT_HI_TX_V105]); in rtw89_btc_fw_rpt_ver() 1671 le16_to_cpu(prp in rtw89_btc_fw_rpt_ver() [all...] |
/freebsd/sys/dev/bnxt/bnxt_re/ |
H A D | qplib_sp.c | 128 attr->max_qp_wqes = le16_to_cpu(sb->max_qp_wr) - 1; in bnxt_qplib_get_dev_attr() 166 attr->max_srq = le16_to_cpu(sb->max_srq); in bnxt_qplib_get_dev_attr() 174 le16_to_cpu(sb->max_inline_data_var_wqe); in bnxt_qplib_get_dev_attr() 184 attr->dev_cap_flags = le16_to_cpu(sb->dev_cap_flags); in bnxt_qplib_get_dev_attr() 882 cc_ext->inact_th_hi = le16_to_cpu(sb->inactivity_th_hi); in bnxt_qplib_read_cc_gen1() 883 cc_ext->min_delta_cnp = le16_to_cpu(sb->min_time_between_cnps); in bnxt_qplib_read_cc_gen1() 884 cc_ext->init_cp = le16_to_cpu(sb->init_cp); in bnxt_qplib_read_cc_gen1() 889 cc_ext->rr_rtt_th = le16_to_cpu(sb->reduction_relax_rtts_th); in bnxt_qplib_read_cc_gen1() 890 cc_ext->ar_cr_th = le16_to_cpu(sb->additional_relax_cr_th); in bnxt_qplib_read_cc_gen1() 891 cc_ext->cr_min_th = le16_to_cpu(sb->cr_min_th); in bnxt_qplib_read_cc_gen1() [all …]
|
H A D | qplib_fp.c | 279 type = le16_to_cpu(hw_nqe->info10_type) & in clean_nq() 359 type = le16_to_cpu(nqe->info10_type) & NQ_BASE_TYPE_MASK; in bnxt_qplib_service_nq() 370 cq->toggle = (le16_to_cpu(nqe->info10_type) & NQ_CN_TOGGLE_MASK) >> NQ_CN_TOGGLE_SFT; in bnxt_qplib_service_nq() 1535 qp->pkey_index = le16_to_cpu(sb->pkey); in bnxt_qplib_query_qp() 1548 if (res->sgid_tbl.hw_id[i] == le16_to_cpu(sb->sgid_index)) { in bnxt_qplib_query_qp() 1556 qp->id, le16_to_cpu(sb->sgid_index)); in bnxt_qplib_query_qp() 1561 qp->ah.vlan_id = le16_to_cpu(sb->path_mtu_dest_vlan_id) & in bnxt_qplib_query_qp() 1564 qp->path_mtu = le16_to_cpu(sb->path_mtu_dest_vlan_id) & in bnxt_qplib_query_qp() 1577 qp->sq.max_sge = le16_to_cpu(sb->sq_sge); in bnxt_qplib_query_qp() 1578 qp->rq.max_sge = le16_to_cpu(sb->rq_sge); in bnxt_qplib_query_qp() [all …]
|
/freebsd/sys/contrib/dev/iwlwifi/mvm/ |
H A D | tx.c | 33 if (!(le16_to_cpu(ba_trig->tx_bar) & BIT(tid))) in iwl_mvm_bar_check_trigger() 180 u16 control = le16_to_cpu(bar->control); in iwl_mvm_set_tx_cmd() 181 u16 ssn = le16_to_cpu(bar->start_seq_num); in iwl_mvm_set_tx_cmd() 374 le16_to_cpu(fc), in iwl_mvm_get_tx_rate() 704 "fc=0x%02x", le16_to_cpu(fc)); in iwl_mvm_get_ctrl_vif_queue() 1701 u16 sequence = le16_to_cpu(pkt->hdr.sequence); in iwl_mvm_rx_tx_cmd_single() 1709 u32 status = le16_to_cpu(agg_status->status); in iwl_mvm_rx_tx_cmd_single() 1720 txq_id = le16_to_cpu(tx_resp->tx_queue); in iwl_mvm_rx_tx_cmd_single() 1722 seq_ctl = le16_to_cpu(tx_resp->seq_ctl); in iwl_mvm_rx_tx_cmd_single() 1756 status, le16_to_cpu(hdr->frame_control)); in iwl_mvm_rx_tx_cmd_single() [all …]
|
H A D | nvm.c | 63 if (le16_to_cpu(nvm_resp->status) != READ_NVM_CHUNK_SUCCEED) { in iwl_nvm_write_chunk() 66 section, le16_to_cpu(nvm_resp->status)); in iwl_nvm_write_chunk() 103 ret = le16_to_cpu(nvm_resp->status); in iwl_nvm_read_chunk() 104 bytes_read = le16_to_cpu(nvm_resp->length); in iwl_nvm_read_chunk() 105 offset_read = le16_to_cpu(nvm_resp->offset); in iwl_nvm_read_chunk() 498 resp_cp->cap = cpu_to_le32(le16_to_cpu(mcc_resp_v4->cap)); in iwl_mvm_update_mcc() 534 mcc = le16_to_cpu(resp_cp->mcc); in iwl_mvm_update_mcc() 627 mcc[0] = le16_to_cpu(notif->mcc) >> 8; in iwl_mvm_rx_chub_update_mcc() 628 mcc[1] = le16_to_cpu(notif->mcc) & 0xff; in iwl_mvm_rx_chub_update_mcc()
|
H A D | rx.c | 123 rx_status->chains = (le16_to_cpu(phy_info->phy_flags) & in iwl_mvm_get_signal_strength() 239 mdata->rx.airtime += le16_to_cpu(phy_info->frame_time); in iwl_mvm_rx_handle_tcm() 316 len = le16_to_cpu(rx_res->byte_count); in iwl_mvm_rx_rx_mpdu() 357 ieee80211_channel_to_frequency(le16_to_cpu(phy_info->channel), in iwl_mvm_rx_rx_mpdu() 869 if (WARN_ONCE(le16_to_cpu(hdr->size) != expected_size, in iwl_mvm_handle_rx_statistics_tlv() 871 le16_to_cpu(hdr->size), expected_size)) in iwl_mvm_handle_rx_statistics_tlv() 1335 ratid = le16_to_cpu(notif->ra_tid[i]); 1340 received_mpdu = le16_to_cpu(notif->mpdu_rx_count[i]);
|
H A D | rs-fw.c | 116 u16 rx_mcs = le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map) & in rs_fw_vht_highest_rx_mcs_index() 201 u16 mcs_160 = le16_to_cpu(he_cap->he_mcs_nss_supp.rx_mcs_160); in rs_fw_he_set_enabled_rates() 202 u16 mcs_80 = le16_to_cpu(he_cap->he_mcs_nss_supp.rx_mcs_80); in rs_fw_he_set_enabled_rates() 203 u16 tx_mcs_80 = le16_to_cpu(sband_he_cap->he_mcs_nss_supp.tx_mcs_80); in rs_fw_he_set_enabled_rates() 204 u16 tx_mcs_160 = le16_to_cpu(sband_he_cap->he_mcs_nss_supp.tx_mcs_160); in rs_fw_he_set_enabled_rates()
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt76x0/ |
H A D | pci_mcu.c | 50 val = le16_to_cpu(hdr->fw_ver); in mt76x0e_load_firmware() 54 val = le16_to_cpu(hdr->fw_ver); in mt76x0e_load_firmware() 58 le16_to_cpu(hdr->build_ver), hdr->build_time); in mt76x0e_load_firmware()
|
H A D | usb_mcu.c | 117 val = le16_to_cpu(hdr->fw_ver); in mt76x0u_load_firmware() 121 le16_to_cpu(hdr->build_ver), hdr->build_time); in mt76x0u_load_firmware()
|
/freebsd/sys/contrib/dev/iwlwifi/queue/ |
H A D | tx.h |
|
H A D | tx.c |
|
/freebsd/sys/contrib/dev/athk/ath10k/ |
H A D | usb.c | 311 payload_len = le16_to_cpu(htc_hdr->len); in ath10k_usb_rx_complete() 845 le16_to_cpu(endpoint->wMaxPacketSize)); in ath10k_usb_setup_pipe_resources() 852 le16_to_cpu(endpoint->wMaxPacketSize), in ath10k_usb_setup_pipe_resources() 861 le16_to_cpu(endpoint->wMaxPacketSize), in ath10k_usb_setup_pipe_resources() 885 pipe->max_packet_size = le16_to_cpu(endpoint->wMaxPacketSize); in ath10k_usb_setup_pipe_resources() 1020 vendor_id = le16_to_cpu(dev->descriptor.idVendor); in ath10k_usb_probe() 1021 product_id = le16_to_cpu(dev->descriptor.idProduct); in ath10k_usb_probe()
|
/freebsd/sys/contrib/dev/iwlwifi/ |
H A D | iwl-phy-db.c | 159 type = le16_to_cpu(phy_db_notif->type); in iwl_phy_db_set_section() 160 size = le16_to_cpu(phy_db_notif->length); in iwl_phy_db_set_section() 274 if (le16_to_cpu(txp_chg->max_channel_idx) >= ch_index) in channel_id_to_txp()
|
/freebsd/sys/contrib/dev/mediatek/mt76/ |
H A D | mt76x02_mcu.c | 163 u16 bld = le16_to_cpu(h->build_ver); in mt76x02_set_ethtool_fwver() 164 u16 ver = le16_to_cpu(h->fw_ver); in mt76x02_set_ethtool_fwver()
|
H A D | mt76_connac_mac.c | 210 le16_to_cpu(txp->len[i]), DMA_TO_DEVICE); in mt76_connac_txp_skb_unmap_fw() 230 len = le16_to_cpu(ptr->len0); in mt76_connac_txp_skb_unmap_hw() 238 len = le16_to_cpu(ptr->len1); in mt76_connac_txp_skb_unmap_hw() 416 u16 capab = le16_to_cpu(mgmt->u.action.u.addba_req.capab); in mt76_connac2_mac_write_txwi_80211() 422 u16 control = le16_to_cpu(bar->control); in mt76_connac2_mac_write_txwi_80211() 434 fc_type = (le16_to_cpu(fc) & IEEE80211_FCTL_FTYPE) >> 2; in mt76_connac2_mac_write_txwi_80211() 435 fc_stype = (le16_to_cpu(fc) & IEEE80211_FCTL_STYPE) >> 4; in mt76_connac2_mac_write_txwi_80211() 466 u16 seqno = le16_to_cpu(sc); in mt76_connac2_mac_write_txwi_80211() 472 seqno = le16_to_cpu(bar->start_seq_num); in mt76_connac2_mac_write_txwi_80211()
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt76x2/ |
H A D | pci_mcu.c | 105 val = le16_to_cpu(hdr->fw_ver); in mt76pci_load_firmware() 109 val = le16_to_cpu(hdr->build_ver); in mt76pci_load_firmware()
|
H A D | usb_mcu.c | 169 val = le16_to_cpu(hdr->fw_ver); in mt76x2u_mcu_load_firmware() 173 val = le16_to_cpu(hdr->build_ver); in mt76x2u_mcu_load_firmware()
|
/freebsd/sys/dev/bnxt/bnxt_en/ |
H A D | bnxt_hwrm.c | 420 type = le16_to_cpu(resp->next_valid_type); in bnxt_hwrm_func_backing_store_qcaps_v2() 424 ctxm->type = le16_to_cpu(resp->type); in bnxt_hwrm_func_backing_store_qcaps_v2() 427 ctxm->entry_size = le16_to_cpu(resp->entry_size); in bnxt_hwrm_func_backing_store_qcaps_v2() 486 init_mask = le16_to_cpu(resp->ctx_init_mask); in bnxt_hwrm_func_backing_store_qcaps() 490 ctxm->qp_qp1_entries = le16_to_cpu(resp->qp_min_qp1_entries); in bnxt_hwrm_func_backing_store_qcaps() 491 ctxm->qp_l2_entries = le16_to_cpu(resp->qp_max_l2_entries); in bnxt_hwrm_func_backing_store_qcaps() 492 ctxm->entry_size = le16_to_cpu(resp->qp_entry_size); in bnxt_hwrm_func_backing_store_qcaps() 497 ctxm->srq_l2_entries = le16_to_cpu(resp->srq_max_l2_entries); in bnxt_hwrm_func_backing_store_qcaps() 499 ctxm->entry_size = le16_to_cpu(resp->srq_entry_size); in bnxt_hwrm_func_backing_store_qcaps() 504 ctxm->cq_l2_entries = le16_to_cpu(resp->cq_max_l2_entries); in bnxt_hwrm_func_backing_store_qcaps() [all …]
|
/freebsd/sys/compat/linuxkpi/common/include/asm/ |
H A D | byteorder.h | 53 #define le16_to_cpu(x) __le16_to_cpu(x) macro 155 *var = cpu_to_le16(le16_to_cpu(*var) + val); in le16_add_cpu()
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/ |
H A D | mcu.c | 173 u16 mcs, mcs_map = le16_to_cpu(sta->deflink.vht_cap.vht_mcs.rx_mcs_map); in mt7996_mcu_set_sta_vht_mcs() 409 if (le16_to_cpu(tlv->tag) != UNI_EVENT_FW_LOG_FORMAT) in mt7996_mcu_rx_log_message() 413 len = le16_to_cpu(tlv->len) - sizeof(*tlv) - 4; in mt7996_mcu_rx_log_message() 473 while (data + sizeof(struct tlv) < tail && le16_to_cpu(tlv->len)) { in mt7996_mcu_ie_countdown() 474 switch (le16_to_cpu(tlv->tag)) { in mt7996_mcu_ie_countdown() 487 data += le16_to_cpu(tlv->len); in mt7996_mcu_ie_countdown() 543 for (i = 0; i < le16_to_cpu(res->sta_num); i++) { in mt7996_mcu_rx_all_sta_info_event() 548 switch (le16_to_cpu(res->tag)) { in mt7996_mcu_rx_all_sta_info_event() 550 wlan_idx = le16_to_cpu(res->rate[i].wlan_idx); in mt7996_mcu_rx_all_sta_info_event() 560 wlan_idx = le16_to_cpu(res->adm_stat[i].wlan_idx); in mt7996_mcu_rx_all_sta_info_event() [all …]
|