Home
last modified time | relevance | path

Searched refs:le16_to_cpu (Results 1 – 25 of 92) sorted by relevance

1234

/freebsd/sys/dev/enic/
H A Dwq_enet_desc.h64 *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 Dcq_enet_desc.h179 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 Drq_enet_desc.h41 *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 Dcq_desc.h85 *q_number = le16_to_cpu(desc->q_number) & CQ_DESC_Q_NUM_MASK; in cq_desc_dec()
86 *completed_index = le16_to_cpu(desc->completed_index) & in cq_desc_dec()
H A Denic_compat.h28 #define le16_to_cpu macro
/freebsd/sys/contrib/dev/rtw89/
H A Dcoex.c882 if (le16_to_cpu(chip->mon_reg[i].type) == reg_type && in _chk_btc_err()
1259 a2dp->vendor_id = le16_to_cpu(pdev->vendor_id); in _chk_btc_report()
1323 rpt_len = le16_to_cpu(btc_prpt->len); in _chk_btc_report()
1616 le16_to_cpu(prpt->v5.bt_cnt[BTC_BCNT_HI_TX]); in _append_slot()
1618 le16_to_cpu(prpt->v5.bt_cnt[BTC_BCNT_HI_RX]); in _append_slot()
1620 le16_to_cpu(prpt->v5.bt_cnt[BTC_BCNT_LO_TX]); in _append_slot()
1622 le16_to_cpu(prpt->v5.bt_cnt[BTC_BCNT_LO_RX]); in _append_slot()
1624 le16_to_cpu(prpt->v5.bt_cnt[BTC_BCNT_POLLUTED]); in _append_slot()
1643 le16_to_cpu(prpt->v105.bt_cnt[BTC_BCNT_HI_TX_V105]); in rtw89_btc_fw_rpt_ver()
1645 le16_to_cpu(prp in rtw89_btc_fw_rpt_ver()
[all...]
/freebsd/sys/contrib/dev/iwlwifi/mvm/
H A Dtx.c33 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_probe_resp_set_noa()
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(hd in iwl_mvm_rx_tx_cmd_single()
[all...]
H A Dnvm.c63 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 Drx.c123 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 Drs-fw.c116 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/dev/bnxt/bnxt_re/
H A Dqplib_sp.c128 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 Dqplib_fp.c279 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/mediatek/mt76/mt76x0/
H A Dpci_mcu.c50 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 Dusb_mcu.c117 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 Dtx.h
H A Dtx.c
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dmt76_connac_mac.c162 token = le16_to_cpu(txp->fw.token); in mt76_connac_tx_complete_skb()
164 token = le16_to_cpu(txp->hw.msdu_id[0]) & in mt76_connac_tx_complete_skb()
224 le16_to_cpu(txp->len[i]), DMA_TO_DEVICE); in mt76_connac_txp_skb_unmap_fw()
244 len = le16_to_cpu(ptr->len0); in mt76_connac_txp_skb_unmap_hw()
252 len = le16_to_cpu(ptr->len1); in mt76_connac_txp_skb_unmap_hw()
413 u16 capab = le16_to_cpu(mgmt->u.action.u.addba_req.capab); in mt76_connac2_mac_write_txwi_80211()
419 u16 control = le16_to_cpu(bar->control); in mt76_connac2_mac_write_txwi_80211()
431 fc_type = (le16_to_cpu(fc) & IEEE80211_FCTL_FTYPE) >> 2; in mt76_connac2_mac_write_txwi_80211()
432 fc_stype = (le16_to_cpu(fc) & IEEE80211_FCTL_STYPE) >> 4; in mt76_connac2_mac_write_txwi_80211()
456 u16 seqno = le16_to_cpu(hdr->seq_ctrl); in mt76_connac2_mac_write_txwi_80211()
[all …]
H A Dmt76x02_mcu.c163 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 Dagg-rx.c134 status->qos_ctl = tidno = le16_to_cpu(bar->control) >> 12; in mt76_rx_aggr_check_ctl()
135 seqno = IEEE80211_SEQ_TO_SN(le16_to_cpu(bar->start_seq_num)); in mt76_rx_aggr_check_ctl()
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dusb.c311 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 Diwl-phy-db.c159 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/mt76x2/
H A Dpci_mcu.c105 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 Dusb_mcu.c169 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/compat/linuxkpi/common/include/asm/
H A Dbyteorder.h53 #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/dev/bnxt/bnxt_en/
H A Dbnxt_hwrm.c418 init_mask = le16_to_cpu(resp->ctx_init_mask); in bnxt_hwrm_func_backing_store_qcaps()
422 ctxm->qp_qp1_entries = le16_to_cpu(resp->qp_min_qp1_entries); in bnxt_hwrm_func_backing_store_qcaps()
423 ctxm->qp_l2_entries = le16_to_cpu(resp->qp_max_l2_entries); in bnxt_hwrm_func_backing_store_qcaps()
424 ctxm->entry_size = le16_to_cpu(resp->qp_entry_size); in bnxt_hwrm_func_backing_store_qcaps()
429 ctxm->srq_l2_entries = le16_to_cpu(resp->srq_max_l2_entries); in bnxt_hwrm_func_backing_store_qcaps()
431 ctxm->entry_size = le16_to_cpu(resp->srq_entry_size); in bnxt_hwrm_func_backing_store_qcaps()
436 ctxm->cq_l2_entries = le16_to_cpu(resp->cq_max_l2_entries); in bnxt_hwrm_func_backing_store_qcaps()
438 ctxm->entry_size = le16_to_cpu(resp->cq_entry_size); in bnxt_hwrm_func_backing_store_qcaps()
445 le16_to_cpu(resp->vnic_max_ring_table_entries); in bnxt_hwrm_func_backing_store_qcaps()
446 ctxm->entry_size = le16_to_cpu(resp->vnic_entry_size); in bnxt_hwrm_func_backing_store_qcaps()
[all …]

1234