Home
last modified time | relevance | path

Searched refs:le16toh (Results 1 – 23 of 23) sorted by relevance

/openbsd/src/sys/dev/i2c/
Diatp.c514 le16toh(object->start_pos), object->num_report_ids, min_id, in iatp_init()
535 sc->t5_address = le16toh(object->start_pos); in iatp_init()
543 sc->t6_address = le16toh(object->start_pos); in iatp_init()
552 sc->t7_address = le16toh(object->start_pos); in iatp_init()
597 sc->t44_address = le16toh(object->start_pos); in iatp_init()
628 sc->max_x = le16toh(range_y); in iatp_init()
629 sc->max_y = le16toh(range_x); in iatp_init()
631 sc->max_x = le16toh(range_x); in iatp_init()
632 sc->max_y = le16toh(range_y); in iatp_init()
Dietp.c184 sc->product_id = le16toh(buf); in ietp_attach()
215 sc->max_x = le16toh(buf); in ietp_attach()
221 sc->max_y = le16toh(buf); in ietp_attach()
/openbsd/src/sys/dev/pci/
Dif_bnxt.c1507 uint16_t type = le16toh(ae->event_id); in bnxt_handle_async_event()
1570 type = le16toh(cmpl->type) & CMPL_BASE_TYPE_MASK; in bnxt_admin_intr()
1610 type = le16toh(cmpl->type) & CMPL_BASE_TYPE_MASK; in bnxt_intr()
2506 le16toh(req->seq_id)); in _hwrm_send_message()
2520 softc->sc_cmd_timeo, le16toh(req->req_type), in _hwrm_send_message()
2521 le16toh(req->seq_id), msg_len, in _hwrm_send_message()
2526 err = le16toh(resp->error_code); in _hwrm_send_message()
2663 softc->ver_info->chip_num = le16toh(resp->chip_num); in bnxt_hwrm_ver_get()
2671 softc->sc_max_req_len = le16toh(resp->max_req_win_len); in bnxt_hwrm_ver_get()
2673 softc->sc_cmd_timeo = le16toh(resp->def_req_timeout); in bnxt_hwrm_ver_get()
[all …]
Dif_icevar.h1186 le16toh((x)->info.cir_bw.bw_profile_idx)
1188 le16toh((x)->info.eir_bw.bw_profile_idx)
1189 #define ICE_TXSCHED_GET_SRL_ID(x) le16toh((x)->info.srl_id)
1191 le16toh((x)->info.cir_bw.bw_alloc)
1193 le16toh((x)->info.eir_bw.bw_alloc)
1578 #define ICE_TXSCHED_GET_RL_PROF_ID(p) le16toh((p)->info.profile_id)
1579 #define ICE_TXSCHED_GET_RL_MBS(p) le16toh((p)->info.max_burst_size)
1580 #define ICE_TXSCHED_GET_RL_MULTIPLIER(p) le16toh((p)->info.rl_multiply)
1581 #define ICE_TXSCHED_GET_RL_WAKEUP_MV(p) le16toh((p)->info.wake_up_calc)
1582 #define ICE_TXSCHED_GET_RL_ENCODE(p) le16toh((p)->info.rl_encode)
Dif_ice.c1845 datalen = le16toh(cq_desc->datalen); in ice_debug_cq()
1846 flags = le16toh(cq_desc->flags); in ice_debug_cq()
1850 response ? "Response" : "Command", le16toh(cq_desc->opcode), in ice_debug_cq()
1851 flags, datalen, le16toh(cq_desc->retval)); in ice_debug_cq()
2017 uint16_t copy_size = le16toh(desc->datalen); in ice_sq_send_cmd_nolock()
2028 retval = le16toh(desc->retval); in ice_sq_send_cmd_nolock()
2032 le16toh(desc->opcode), retval); in ice_sq_send_cmd_nolock()
2125 opcode = le16toh(desc->opcode); in ice_sq_send_cmd_retry()
2547 if (le16toh(cmd_resp->status) == ICE_AQ_RES_GLBL_SUCCESS) { in ice_aq_req_res()
2550 } else if (le16toh(cmd_resp->status) == in ice_aq_req_res()
[all …]
Dif_iwm.c150 #define le16_to_cpup(_a_) (le16toh(*(const uint16_t *)(_a_)))
2592 uint16_t type = le16toh(phy_db_notif->type); in iwm_phy_db_set_section()
2593 uint16_t size = le16toh(phy_db_notif->length); in iwm_phy_db_set_section()
2599 chg_id = le16toh(*(uint16_t *)phy_db_notif->data); in iwm_phy_db_set_section()
2679 if (le16toh(txp_chg->max_channel_idx) >= ch_index) in iwm_channel_id_to_txp()
2717 phy_db_cmd.type = le16toh(type); in iwm_send_phy_db_cmd()
2718 phy_db_cmd.length = le16toh(length); in iwm_send_phy_db_cmd()
2961 err = le16toh(nvm_resp->status); in iwm_nvm_read_chunk()
2962 bytes_read = le16toh(nvm_resp->length); in iwm_nvm_read_chunk()
2963 offset_read = le16toh(nvm_resp->offset); in iwm_nvm_read_chunk()
[all …]
Dif_iwx.c134 #define le16_to_cpup(_a_) (le16toh(*(const uint16_t *)(_a_)))
2883 fwqid = le16toh(resp->queue_number); in iwx_enable_txq()
2884 wr_idx = le16toh(resp->write_pointer); in iwx_enable_txq()
3937 nvm->nvm_version = le16toh(rsp->general.nvm_version); in iwx_nvm_get()
5248 len = le16toh(desc->mpdu_len); in iwx_rx_mpdu_mq()
5291 if ((le16toh(desc->status) & in iwx_rx_mpdu_mq()
5341 if (iwx_rx_hwdecrypt(sc, m, le16toh(desc->status), &rxi)) { in iwx_rx_mpdu_mq()
5361 phy_info = le16toh(desc->phy_info); in iwx_rx_mpdu_mq()
5376 iwx_rx_frame(sc, m, chanidx, le16toh(desc->status), in iwx_rx_mpdu_mq()
5385 uint8_t num_tbs = le16toh(desc->num_tbs) & 0x1f; in iwx_clear_tx_desc()
[all …]
Dif_bwfm_pci.c602 sc->sc_max_submissionrings = le16toh(ringinfo.max_submissionrings); in bwfm_pci_preinit()
603 sc->sc_max_flowrings = le16toh(ringinfo.max_flowrings); in bwfm_pci_preinit()
604 sc->sc_max_completionrings = le16toh(ringinfo.max_completionrings); in bwfm_pci_preinit()
606 sc->sc_max_submissionrings = le16toh(ringinfo.max_flowrings); in bwfm_pci_preinit()
Dif_mwx.c2387 len = sizeof(*rxd) - sizeof(rxd->rxd) + le16toh(rxd->len); in mwx_mcu_rx_event()
3233 count = le16toh(hdr->n_elements); in mt7921_mcu_get_nic_capability()
4803 len = sizeof(*rxd) - sizeof(rxd->rxd) + le16toh(rxd->len); in mt7921_mac_tx_free()
5160 wtbl->len = htole16(le16toh(wtbl->len) + wlen); in mt7921_mac_sta_update()
Dif_iwn.c2349 qid = le16toh(cba->qid); in iwn_rx_compressed_ba()
2371 seq = le16toh(cba->seq) >> IEEE80211_SEQ_SEQ_SHIFT; in iwn_rx_compressed_ba()
2379 ssn = le16toh(cba->ssn); in iwn_rx_compressed_ba()
2582 uint16_t txstatus = (le16toh(agg_status[i].status) & in iwn_ampdu_tx_done()
Dif_rtwn.c797 return le16toh(val); in rtwn_pci_read_2()
Dif_igc.c1350 hashtype = le16toh(rxdesc->wb.lower.lo_dword.hs_rss.pkt_info) & in igc_rxeof()
Dif_ngbe.c4317 hashtype = le16toh(rxdesc->wb.lower.lo_dword.hs_rss.pkt_info) & in ngbe_rxeof()
/openbsd/src/sys/sys/
Dendian.h64 #define le16toh(x) __htole16(x) macro
/openbsd/src/usr.bin/file/
Dmagic-test.c357 value = le16toh(value); in magic_test_type_short()
497 value = le16toh(value); in magic_test_type_ushort()
1299 wanted = le16toh(s); in magic_test_line()
1309 wanted = le16toh(l); in magic_test_line()
/openbsd/src/sys/dev/ic/
Dqwz.c1186 return le16toh(desc->u.wcn7850.mpdu_start.sw_peer_id); in qwz_hw_wcn7850_rx_desc_get_mpdu_peer_id()
1207 return le16toh(desc->u.wcn7850.mpdu_start.phy_ppdu_id); in qwz_hw_wcn7850_rx_desc_get_mpdu_ppdu_id()
4668 __func__, le16toh(resp.resp.result)); in qwz_qmi_recv_wlanfw_phy_cap_req_v1()
4670 __func__, le16toh(resp.resp.error)); in qwz_qmi_recv_wlanfw_phy_cap_req_v1()
4684 sc->qmi_resp.result = le16toh(resp.resp.result); in qwz_qmi_recv_wlanfw_phy_cap_req_v1()
4685 sc->qmi_resp.error = le16toh(resp.resp.error); in qwz_qmi_recv_wlanfw_phy_cap_req_v1()
4704 __func__, le16toh(resp.resp.result)); in qwz_qmi_recv_wlanfw_ind_register_req_v1()
4706 __func__, le16toh(resp.resp.error)); in qwz_qmi_recv_wlanfw_ind_register_req_v1()
4710 sc->qmi_resp.result = le16toh(resp.resp.result); in qwz_qmi_recv_wlanfw_ind_register_req_v1()
4711 sc->qmi_resp.error = le16toh(resp.resp.error); in qwz_qmi_recv_wlanfw_ind_register_req_v1()
[all …]
Dqwx.c1360 return le16toh(desc->u.ipq8074.mpdu_start.sw_peer_id); in qwx_hw_ipq8074_rx_desc_get_mpdu_peer_id()
1385 return le16toh(desc->u.ipq8074.mpdu_start.phy_ppdu_id); in qwx_hw_ipq8074_rx_desc_get_mpdu_ppdu_id()
1434 le16toh(desc->u.qcn9074.msdu_end.info4)); in qwx_hw_qcn9074_rx_desc_get_first_msdu()
1441 le16toh(desc->u.qcn9074.msdu_end.info4)); in qwx_hw_qcn9074_rx_desc_get_last_msdu()
1448 le16toh(desc->u.qcn9074.msdu_end.info4)); in qwx_hw_qcn9074_rx_desc_get_l3_pad_bytes()
1571 return le16toh(desc->u.qcn9074.mpdu_start.sw_peer_id); in qwx_hw_qcn9074_rx_desc_get_mpdu_peer_id()
1596 return le16toh(desc->u.qcn9074.mpdu_start.phy_ppdu_id); in qwx_hw_qcn9074_rx_desc_get_mpdu_ppdu_id()
1769 return le16toh(desc->u.wcn6855.mpdu_start.sw_peer_id); in qwx_hw_wcn6855_rx_desc_get_mpdu_peer_id()
1794 return le16toh(desc->u.wcn6855.mpdu_start.phy_ppdu_id); in qwx_hw_wcn6855_rx_desc_get_mpdu_ppdu_id()
6887 __func__, le16toh(resp.resp.result)); in qwx_qmi_recv_wlanfw_ind_register_req_v1()
[all …]
Ddwqe.c785 m->m_pkthdr.ether_vtag = le16toh(tag); in dwqe_vlan_strip()
Dbwfm.c723 if (le16toh(sta.ver) < 3) in bwfm_update_node()
730 if (le16toh(sta.ver) >= 4) { in bwfm_update_node()
/openbsd/src/lib/libagentx/
Dax.c1214 return le16toh(value); in ax_pdutoh16()
/openbsd/src/usr.sbin/snmpd/
Dax.c1336 return le16toh(value); in ax_pdutoh16()
/openbsd/src/sys/dev/usb/
Dif_mtw.c809 le16toh(hdr->build_ver), le16toh(hdr->fw_ver))); in mtw_load_microcode()
/openbsd/src/regress/usr.sbin/snmpd/
Dagentx.c78 be16toh(value) : le16toh(value))