Home
last modified time | relevance | path

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

12345678910

/freebsd/usr.sbin/bluetooth/iwmbtfw/
H A Diwmbt_fw.c125 le16toh(ver->hw_platform), in iwmbt_get_fwname()
126 le16toh(ver->hw_variant), in iwmbt_get_fwname()
127 le16toh(ver->hw_revision), in iwmbt_get_fwname()
128 le16toh(ver->fw_variant), in iwmbt_get_fwname()
129 le16toh(ver->fw_revision), in iwmbt_get_fwname()
130 le16toh(ver->fw_build_num), in iwmbt_get_fwname()
131 le16toh(ver->fw_build_ww), in iwmbt_get_fwname()
132 le16toh(ver->fw_build_yy), in iwmbt_get_fwname()
142 le16toh(ver->hw_platform), in iwmbt_get_fwname()
143 le16toh(ve in iwmbt_get_fwname()
[all...]
/freebsd/sys/fs/ext2fs/
H A Dext2_extents.c96 (uint64_t)le16toh(ex->ei_leaf_hi) << 32 | in ext4_ext_walk_index()
134 ep, le32toh(ep->e_blk), le16toh(ep->e_len), in ext4_ext_walk_extent()
151 eh, le16toh(eh->eh_ecount), in ext4_ext_walk_header()
152 le16toh(eh->eh_max), le16toh(eh->eh_depth), in ext4_ext_walk_header()
155 for (i = 0; i < le16toh(eh->eh_ecount) && error == 0; i++) in ext4_ext_walk_header()
226 return (le16toh(ehp->eh_depth)); in ext4_ext_inode_depth()
235 blk |= (e4fs_daddr_t)le16toh(index->ei_leaf_hi) << 32; in ext4_ext_index_pblock()
254 blk |= (e4fs_daddr_t)le16toh(extent->e_start_hi) << 32; in ext4_ext_extent_pblock()
360 return (le16toh(ex in ext4_ext_get_actual_len()
[all...]
H A Dext2_csum.c175 tp->e2dt_rec_len = le16toh(sizeof(struct ext2fs_direct_tail)); in ext2_init_dirent_tail()
192 le16toh(tp->e2dt_rec_len) == sizeof(struct ext2fs_direct_tail) && in ext2_is_dirent_tail()
209 rec_len = le16toh(dep->e2d_reclen); in ext2_dirent_get_tail()
215 rec_len = le16toh(dep->e2d_reclen); in ext2_dirent_get_tail()
271 if (le16toh(ep->e2d_reclen) == EXT2_BLOCK_SIZE(ip->i_e2fs)) in ext2_get_dx_count()
273 else if (le16toh(ep->e2d_reclen) == 12) { in ext2_get_dx_count()
275 if (le16toh(dp->e2d_reclen) != EXT2_BLOCK_SIZE(ip->i_e2fs) - 12) in ext2_get_dx_count()
333 limit = le16toh(cp->h_entries_max); in ext2_dx_csum_verify()
334 count = le16toh(cp->h_entries_num); in ext2_dx_csum_verify()
409 limit = le16toh(cp->h_entries_max); in ext2_dx_csum_set()
[all …]
H A Dext2_extents.h109 #define EXT_LAST_EXTENT(hdr) (EXT_FIRST_EXTENT((hdr)) + le16toh((hdr)->eh_ecount) - 1)
110 #define EXT_LAST_INDEX(hdr) (EXT_FIRST_INDEX((hdr)) + le16toh((hdr)->eh_ecount) - 1)
112 (sizeof(struct ext4_extent) * le16toh((hdr)->eh_max)))
114 (le16toh((path)->ep_header->eh_ecount) < le16toh((path)->ep_header->eh_max))
115 #define EXT_MAX_EXTENT(hdr) (EXT_FIRST_EXTENT(hdr) + le16toh((hdr)->eh_max) - 1)
116 #define EXT_MAX_INDEX(hdr) (EXT_FIRST_INDEX((hdr)) + le16toh((hdr)->eh_max) - 1)
H A Dext2_inode_cnv.c78 le16toh(ehp->eh_magic), le16toh(ehp->eh_ecount), in ext2_print_inode()
79 le16toh(ehp->eh_max), le16toh(ehp->eh_depth), in ext2_print_inode()
84 le16toh(ep->e_len), le32toh(ep->e_start_lo), in ext2_print_inode()
85 le16toh(ep->e_start_hi)); in ext2_print_inode()
165 ip->i_nlink = le16toh(ei->e2di_nlink); in ext2_ei2i()
166 ip->i_mode = ip->i_nlink ? le16toh(ei->e2di_mode) : 0; in ext2_ei2i()
174 ei_extra_isize_le = le16toh(ei->e2di_extra_isize); in ext2_ei2i()
211 ip->i_blocks |= (uint64_t)le16toh(ei->e2di_nblock_high) << 32; in ext2_ei2i()
212 ip->i_facl |= (uint64_t)le16toh(ei->e2di_facl_high) << 32; in ext2_ei2i()
217 ip->i_uid = le16toh(ei->e2di_uid); in ext2_ei2i()
[all …]
H A Dext2_lookup.c196 if (le16toh(dp->e2d_reclen) <= offsetof(struct ext2fs_direct_2, in ext2_readdir()
197 e2d_namlen) || (caddr_t)dp + le16toh(dp->e2d_reclen) > in ext2_readdir()
221 dstdp.d_namlen > le16toh(dp->e2d_reclen)) { in ext2_readdir()
231 dstdp.d_off = offset + le16toh(dp->e2d_reclen); in ext2_readdir()
247 *cookies = offset + le16toh(dp->e2d_reclen); in ext2_readdir()
252 offset += le16toh(dp->e2d_reclen); in ext2_readdir()
254 le16toh(dp->e2d_reclen)); in ext2_readdir()
741 int size = le16toh(ep->e2d_reclen); in ext2_search_dirblock()
751 ssp->slotsize = le16toh(ep->e2d_reclen); in ext2_search_dirblock()
759 le16toh(ep->e2d_reclen) - in ext2_search_dirblock()
[all …]
H A Dext2_extattr.c217 E2FS_REV0_INODE_SIZE + le16toh(dinode->e2di_extra_isize)); in ext2_extattr_inode_list()
358 E2FS_REV0_INODE_SIZE + le16toh(dinode->e2di_extra_isize)); in ext2_extattr_inode_get()
393 le16toh(entry->e_value_offs), in ext2_extattr_inode_get()
461 le16toh(entry->e_value_offs), in ext2_extattr_block_get()
485 if (min_offs > le16toh(next->e_value_offs) && in ext2_extattr_delete_value()
486 le16toh(next->e_value_offs) > 0) in ext2_extattr_delete_value()
487 min_offs = le16toh(next->e_value_offs); in ext2_extattr_delete_value()
496 off + min_offs, le16toh(entry->e_value_offs) - min_offs); in ext2_extattr_delete_value()
502 if (le16toh(next->e_value_offs) > 0 && in ext2_extattr_delete_value()
503 le16toh(next->e_value_offs) < le16toh(entry->e_value_offs)) in ext2_extattr_delete_value()
[all …]
/freebsd/sys/dev/nvme/
H A Dnvme.h2070 s->sqhd = le16toh(s->sqhd); in nvme_completion_swapbytes()
2071 s->sqid = le16toh(s->sqid); in nvme_completion_swapbytes()
2073 s->status = le16toh(s->status); in nvme_completion_swapbytes()
2082 s->mp = le16toh(s->mp); in nvme_power_state_swapbytes()
2085 s->idlp = le16toh(s->idlp); in nvme_power_state_swapbytes()
2086 s->actp = le16toh(s->actp); in nvme_power_state_swapbytes()
2096 s->vid = le16toh(s->vid); in nvme_controller_data_swapbytes()
2097 s->ssvid = le16toh(s->ssvid); in nvme_controller_data_swapbytes()
2098 s->ctrlr_id = le16toh(s->ctrlr_id); in nvme_controller_data_swapbytes()
2104 s->rrls = le16toh(s->rrls); in nvme_controller_data_swapbytes()
[all …]
/freebsd/sys/dev/mpr/
H A Dmpr_sas_lsi.c153 sz = le16toh(event->EventDataLength) * 4; in mprsas_evt_handler()
162 fw_event->event = le16toh(event->Event); in mprsas_evt_handler()
226 le16toh(phy->AttachedDevHandle), in mprsas_fw_work()
231 le16toh(phy->AttachedDevHandle)); in mprsas_fw_work()
232 mprsas_prepare_remove(sassc, le16toh( in mprsas_fw_work()
237 mprsas_prepare_remove(sassc, le16toh( in mprsas_fw_work()
298 elementType = le16toh(element->ElementFlags) & in mprsas_fw_work()
359 if (reply && (le16toh(reply->IOCStatus) & in mprsas_fw_work()
365 le16toh(reply->IOCStatus)); in mprsas_fw_work()
380 le16toh(element->VolDevHandle))) { in mprsas_fw_work()
[all …]
H A Dmpr_mapping.c150 dpm_entry->MappingInformation = le16toh(dpm_entry-> in _mapping_commit_enc_entry()
152 dpm_entry->DeviceIndex = le16toh(dpm_entry->DeviceIndex); in _mapping_commit_enc_entry()
157 dpm_entry->MappingInformation = le16toh(dpm_entry-> in _mapping_commit_enc_entry()
159 dpm_entry->DeviceIndex = le16toh(dpm_entry->DeviceIndex); in _mapping_commit_enc_entry()
220 dpm_entry->MappingInformation = le16toh(dpm_entry-> in _mapping_commit_map_entry()
222 dpm_entry->DeviceIndex = le16toh(dpm_entry->DeviceIndex); in _mapping_commit_map_entry()
226 dpm_entry->MappingInformation = le16toh(dpm_entry->MappingInformation); in _mapping_commit_map_entry()
227 dpm_entry->DeviceIndex = le16toh(dpm_entry->DeviceIndex); in _mapping_commit_map_entry()
247 u16 ioc_pg8_flags = le16toh(sc->ioc_pg8.Flags); in _mapping_get_ir_maprange()
249 volume_mapping_flags = le16toh(sc->ioc_pg8.IRVolumeMappingFlags) & in _mapping_get_ir_maprange()
[all …]
H A Dmpr_config.c111 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mpr_config_get_ioc_pg8()
170 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mpr_config_get_ioc_pg8()
243 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mpr_config_get_iounit_pg8()
302 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mpr_config_get_iounit_pg8()
375 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mpr_config_get_man_pg11()
433 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mpr_config_get_man_pg11()
498 sc->custom_nvme_tm_handling = (le16toh(man_pg11.AddlFlags2) & in mpr_base_static_config_pages()
568 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mpr_config_get_dpm_pg0()
603 cm->cm_length = le16toh(request->ExtPageLength) * 4; in mpr_config_get_dpm_pg0()
629 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mpr_config_get_dpm_pg0()
[all …]
/freebsd/usr.sbin/mpsutil/
H A Dmps_cmd.c299 if (!IOC_STATUS_SUCCESS(le16toh(reply.IOCStatus))) in mps_set_slot_status()
322 if (!IOC_STATUS_SUCCESS(le16toh(reply.IOCStatus))) { in mps_read_config_page_header()
351 if (!IOC_STATUS_SUCCESS(le16toh(reply.IOCStatus))) { in mps_read_ext_config_page_header()
353 *IOCStatus = le16toh(reply.IOCStatus); in mps_read_ext_config_page_header()
398 reply.IOCStatus = le16toh(reply.IOCStatus); in mps_read_config_page()
443 len = le16toh(pagelen) * 4; in mps_read_extended_config_page()
452 reply.IOCStatus = le16toh(reply.IOCStatus); in mps_read_extended_config_page()
576 req.ioc_status = le16toh(req.ioc_status); in mps_read_config_page()
607 req.ioc_status = le16toh(req.ioc_status); in mps_read_extended_config_page()
627 req.ioc_status = le16toh(req.ioc_status); in mps_read_extended_config_page()
[all …]
H A Dmps_show.c208 if (le16toh(phy0->AttachedDevHandle) != 0) { in show_adapter()
210 le16toh(phy0->AttachedDevHandle)); in show_adapter()
212 le16toh(phy0->ControllerDevHandle)); in show_adapter()
555 handle = le16toh(device->DevHandle); in show_devices()
589 le16toh(device->ParentDevHandle), &IOCStatus); in show_devices()
608 snprintf(enchandle, sizeof(enchandle), "%04x", le16toh(device->EnclosureHandle)); in show_devices()
609 snprintf(slot, sizeof(slot), "%02d", le16toh(device->Slot)); in show_devices()
618 snprintf(buf, sizeof(buf), "%04x", le16toh(device->DevHandle)); in show_devices()
620 snprintf(buf, sizeof(buf), "%04x", le16toh(device->ParentDevHandle)); in show_devices()
664 type = get_enc_type(le16toh(enc->Flags), &issep); in show_enclosures()
[all …]
/freebsd/sys/dev/mps/
H A Dmps_sas_lsi.c151 sz = le16toh(event->EventDataLength) * 4; in mpssas_evt_handler()
223 le16toh(phy->AttachedDevHandle), in mpssas_fw_work()
228 le16toh(phy->AttachedDevHandle)); in mpssas_fw_work()
229 mpssas_prepare_remove(sassc, le16toh( in mpssas_fw_work()
234 mpssas_prepare_remove(sassc,le16toh( in mpssas_fw_work()
299 le16toh(element->VolDevHandle))){ in mpssas_fw_work()
302 __func__, le16toh(element-> in mpssas_fw_work()
317 le16toh(element->VolDevHandle)); in mpssas_fw_work()
366 le16toh(element->PhysDiskDevHandle), 0)){ in mpssas_fw_work()
369 le16toh(element->PhysDiskDevHandle)); in mpssas_fw_work()
[all …]
H A Dmps_mapping.c151 dpm_entry->MappingInformation = le16toh(dpm_entry-> in _mapping_commit_enc_entry()
153 dpm_entry->DeviceIndex = le16toh(dpm_entry->DeviceIndex); in _mapping_commit_enc_entry()
158 dpm_entry->MappingInformation = le16toh(dpm_entry-> in _mapping_commit_enc_entry()
160 dpm_entry->DeviceIndex = le16toh(dpm_entry->DeviceIndex); in _mapping_commit_enc_entry()
221 dpm_entry->MappingInformation = le16toh(dpm_entry-> in _mapping_commit_map_entry()
223 dpm_entry->DeviceIndex = le16toh(dpm_entry->DeviceIndex); in _mapping_commit_map_entry()
227 dpm_entry->MappingInformation = le16toh(dpm_entry->MappingInformation); in _mapping_commit_map_entry()
228 dpm_entry->DeviceIndex = le16toh(dpm_entry->DeviceIndex); in _mapping_commit_map_entry()
248 u16 ioc_pg8_flags = le16toh(sc->ioc_pg8.Flags); in _mapping_get_ir_maprange()
250 volume_mapping_flags = le16toh(sc->ioc_pg8.IRVolumeMappingFlags) & in _mapping_get_ir_maprange()
[all …]
H A Dmps_config.c111 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mps_config_get_ioc_pg8()
143 cm->cm_length = le16toh(mpi_reply->Header.PageLength) * 4; in mps_config_get_ioc_pg8()
170 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mps_config_get_ioc_pg8()
246 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mps_config_get_man_pg10()
275 cm->cm_length = le16toh(mpi_reply->Header.PageLength) * 4; in mps_config_get_man_pg10()
303 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mps_config_get_man_pg10()
506 if ((le16toh(mpi_reply.IOCStatus) & in mps_wd_config_pages()
607 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mps_config_get_dpm_pg0()
642 cm->cm_length = le16toh(request->ExtPageLength) * 4; in mps_config_get_dpm_pg0()
668 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mps_config_get_dpm_pg0()
[all …]
/freebsd/sys/dev/rtwn/rtl8192c/usb/
H A Dr92cu_tx.c56 __func__, le16toh(txd->pktlen), txd->offset, txd->flags0, in r92cu_dump_tx_desc()
57 le32toh(txd->txdw1), le32toh(txd->txdw2), le16toh(txd->txdw3), in r92cu_dump_tx_desc()
58 le16toh(txd->txdseq), le32toh(txd->txdw4), le32toh(txd->txdw5), in r92cu_dump_tx_desc()
59 le32toh(txd->txdw6), le16toh(txd->txdsum), le16toh(txd->pad)); in r92cu_dump_tx_desc()
/freebsd/sys/dev/rtwn/rtl8192c/pci/
H A Dr92ce_tx.c103 __func__, le16toh(txd->pktlen), txd->offset, txd->flags0, in r92ce_dump_tx_desc()
104 le32toh(txd->txdw1), le32toh(txd->txdw2), le16toh(txd->txdw3), in r92ce_dump_tx_desc()
105 le16toh(txd->txdseq), le32toh(txd->txdw4), le32toh(txd->txdw5), in r92ce_dump_tx_desc()
106 le32toh(txd->txdw6), le16toh(txd->txbufsize), le16toh(txd->pad), in r92ce_dump_tx_desc()
/freebsd/sys/netgraph/bluetooth/l2cap/
H A Dng_l2cap_evnt.c115 hdr->length = le16toh(hdr->length); in ng_l2cap_receive()
116 hdr->dcid = le16toh(hdr->dcid); in ng_l2cap_receive()
187 hdr->length = le16toh(hdr->length); in ng_l2cap_process_signal_cmd()
302 hdr->length = le16toh(hdr->length); in ng_l2cap_process_lesignal_cmd()
394 cp->reason = le16toh(cp->reason); in ng_l2cap_process_cmd_rej()
472 psm = le16toh(cp->psm); in ng_l2cap_process_con_req()
473 dcid = le16toh(cp->scid); in ng_l2cap_process_con_req()
535 dcid = le16toh(cp->dcid); in ng_l2cap_process_con_rsp()
536 scid = le16toh(cp->scid); in ng_l2cap_process_con_rsp()
537 result = le16toh(cp->result); in ng_l2cap_process_con_rsp()
[all …]
/freebsd/usr.sbin/bluetooth/hccontrol/
H A Dinfo.c58 rp.manufacturer = le16toh(rp.manufacturer); in hci_read_local_version_information()
63 le16toh(rp.hci_revision)); in hci_read_local_version_information()
67 le16toh(rp.lmp_subversion)); in hci_read_local_version_information()
155 le16toh(rp.max_acl_size)); in hci_read_buffer_size()
157 le16toh(rp.num_acl_pkt)); in hci_read_buffer_size()
161 le16toh(rp.num_sco_pkt)); in hci_read_buffer_size()
H A Dstatus.c76 fprintf(stdout, "Connection handle: %d\n", le16toh(rp.con_handle)); in hci_read_failed_contact_counter()
77 fprintf(stdout, "Failed contact counter: %d\n", le16toh(rp.counter)); in hci_read_failed_contact_counter()
157 fprintf(stdout, "Connection handle: %d\n", le16toh(rp.con_handle)); in hci_get_link_quality()
158 fprintf(stdout, "Link quality: %d\n", le16toh(rp.quality)); in hci_get_link_quality()
199 fprintf(stdout, "Connection handle: %d\n", le16toh(rp.con_handle)); in hci_read_rssi()
H A Dlink_control.c164 le16toh(ir->clock_offset)); in hci_inquiry_response()
280 le16toh(ep->con_handle)); in hci_create_connection()
355 le16toh(ep->con_handle)); in hci_disconnect()
435 le16toh(ep->con_handle)); in hci_add_sco_connection()
506 le16toh(ep->con_handle)); in hci_change_connection_packet_type()
508 le16toh(ep->pkt_type)); in hci_change_connection_packet_type()
663 le16toh(ep->con_handle)); in hci_read_remote_supported_features()
730 ep->manufacturer = le16toh(ep->manufacturer); in hci_read_remote_version_information()
733 le16toh(ep->con_handle)); in hci_read_remote_version_information()
737 le16toh(ep->lmp_subversion)); in hci_read_remote_version_information()
[all …]
/freebsd/sys/dev/bnxt/bnxt_en/
H A Dbnxt_hwrm.c224 le16toh(req->seq_id)); in _hwrm_send_message()
238 softc->hwrm_cmd_timeo, le16toh(req->req_type), in _hwrm_send_message()
239 le16toh(req->seq_id), msg_len, in _hwrm_send_message()
244 err = le16toh(resp->error_code); in _hwrm_send_message()
673 hw_resc->max_tx_sch_inputs = le16toh(resp->max_tx_scheduler_inputs); in bnxt_hwrm_func_resc_qcaps()
677 hw_resc->min_rsscos_ctxs = le16toh(resp->min_rsscos_ctx); in bnxt_hwrm_func_resc_qcaps()
678 hw_resc->max_rsscos_ctxs = le16toh(resp->max_rsscos_ctx); in bnxt_hwrm_func_resc_qcaps()
679 hw_resc->min_cp_rings = le16toh(resp->min_cmpl_rings); in bnxt_hwrm_func_resc_qcaps()
680 hw_resc->max_cp_rings = le16toh(resp->max_cmpl_rings); in bnxt_hwrm_func_resc_qcaps()
681 hw_resc->min_tx_rings = le16toh(resp->min_tx_rings); in bnxt_hwrm_func_resc_qcaps()
[all …]
H A Dbnxt_txrx.c210 err = (le16toh(cmpl[cons].errors_v) & in bnxt_isc_txd_credits_update()
337 type = le16toh(cmp[cons].type) & CMPL_BASE_TYPE_MASK; in bnxt_isc_rxd_available()
468 ri->iri_frags[0].irf_len = le16toh(rcp->len); in bnxt_pkt_get_l2()
469 ri->iri_len = le16toh(rcp->len); in bnxt_pkt_get_l2()
477 errors = le16toh(rcph->errors_v2); in bnxt_pkt_get_l2()
510 ri->iri_frags[i].irf_len = le16toh(acp->len); in bnxt_pkt_get_l2()
511 ri->iri_len += le16toh(acp->len); in bnxt_pkt_get_l2()
536 if (le16toh(tpas->low.flags_type) & RX_TPA_START_CMPL_FLAGS_RSS_VALID) { in bnxt_pkt_get_tpa()
549 ri->iri_frags[0].irf_len = le16toh(tpas->low.len); in bnxt_pkt_get_tpa()
550 ri->iri_len = le16toh(tpas->low.len); in bnxt_pkt_get_tpa()
[all …]
/freebsd/sys/dev/rtwn/rtl8812a/usb/
H A Dr12au_tx.c66 __func__, le16toh(txd->pktlen), txd->offset, txd->flags0, in r12au_dump_tx_desc()
69 le16toh(txd->txdsum), le16toh(txd->flags7), le32toh(txd->txdw8), in r12au_dump_tx_desc()

12345678910