Home
last modified time | relevance | path

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

12345

/dflybsd-src/sys/dev/raid/mpr/
H A Dmpr_sas_lsi.c148 sz = le16toh(event->EventDataLength) * 4; in mprsas_evt_handler()
221 le16toh(phy->AttachedDevHandle), in mprsas_fw_work()
226 le16toh(phy->AttachedDevHandle)); in mprsas_fw_work()
227 mprsas_prepare_remove(sassc, le16toh( in mprsas_fw_work()
232 mprsas_prepare_remove(sassc, le16toh( in mprsas_fw_work()
296 elementType = le16toh(element->ElementFlags) & in mprsas_fw_work()
357 if (reply && (le16toh(reply->IOCStatus) & in mprsas_fw_work()
363 le16toh(reply->IOCStatus)); in mprsas_fw_work()
378 le16toh(element->VolDevHandle))) { in mprsas_fw_work()
381 __func__, le16toh(element-> in mprsas_fw_work()
[all …]
H A Dmpr_mapping.c147 dpm_entry->MappingInformation = le16toh(dpm_entry-> in _mapping_commit_enc_entry()
149 dpm_entry->DeviceIndex = le16toh(dpm_entry->DeviceIndex); in _mapping_commit_enc_entry()
154 dpm_entry->MappingInformation = le16toh(dpm_entry-> in _mapping_commit_enc_entry()
156 dpm_entry->DeviceIndex = le16toh(dpm_entry->DeviceIndex); in _mapping_commit_enc_entry()
217 dpm_entry->MappingInformation = le16toh(dpm_entry-> in _mapping_commit_map_entry()
219 dpm_entry->DeviceIndex = le16toh(dpm_entry->DeviceIndex); in _mapping_commit_map_entry()
223 dpm_entry->MappingInformation = le16toh(dpm_entry->MappingInformation); in _mapping_commit_map_entry()
224 dpm_entry->DeviceIndex = le16toh(dpm_entry->DeviceIndex); in _mapping_commit_map_entry()
244 u16 ioc_pg8_flags = le16toh(sc->ioc_pg8.Flags); in _mapping_get_ir_maprange()
246 volume_mapping_flags = le16toh(sc->ioc_pg8.IRVolumeMappingFlags) & in _mapping_get_ir_maprange()
[all …]
H A Dmpr_config.c108 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mpr_config_get_ioc_pg8()
140 cm->cm_length = le16toh(mpi_reply->Header.PageLength) * 4; in mpr_config_get_ioc_pg8()
167 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mpr_config_get_ioc_pg8()
240 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mpr_config_get_iounit_pg8()
272 cm->cm_length = le16toh(mpi_reply->Header.PageLength) * 4; in mpr_config_get_iounit_pg8()
299 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mpr_config_get_iounit_pg8()
410 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mpr_config_get_dpm_pg0()
445 cm->cm_length = le16toh(request->ExtPageLength) * 4; in mpr_config_get_dpm_pg0()
471 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mpr_config_get_dpm_pg0()
548 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mpr_config_set_dpm_pg0()
[all …]
H A Dmpr_sas.c391 if ((le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK) != in mprsas_remove_volume()
394 "device 0x%x\n", le16toh(reply->IOCStatus), handle); in mprsas_remove_volume()
411 if ((le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK) == in mprsas_remove_volume()
590 if ((le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK) != in mprsas_remove_device()
593 "device 0x%x\n", le16toh(reply->IOCStatus), handle); in mprsas_remove_device()
666 __func__, handle, le16toh(reply->IOCStatus)); in mprsas_remove_complete()
674 if ((le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK) == in mprsas_remove_complete()
1321 le16toh(reply->IOCStatus), le32toh(reply->ResponseCode), in mprsas_logical_unit_reset_complete()
1398 tm, le16toh(req->TaskMID)); in mprsas_target_reset_complete()
1417 le16toh(reply->IOCStatus), le32toh(reply->ResponseCode), in mprsas_target_reset_complete()
[all …]
/dflybsd-src/sys/vfs/ext2fs/
H A Dext2_csum.c122 tp->e2dt_rec_len = le16toh(sizeof(struct ext2fs_direct_tail)); in ext2_init_dirent_tail()
139 le16toh(tp->e2dt_rec_len) == sizeof(struct ext2fs_direct_tail) && in ext2_is_dirent_tail()
156 rec_len = le16toh(dep->e2d_reclen); in ext2_dirent_get_tail()
162 rec_len = le16toh(dep->e2d_reclen); in ext2_dirent_get_tail()
218 if (le16toh(ep->e2d_reclen) == EXT2_BLOCK_SIZE(ip->i_e2fs)) in ext2_get_dx_count()
220 else if (le16toh(ep->e2d_reclen) == 12) { in ext2_get_dx_count()
222 if (le16toh(dp->e2d_reclen) != EXT2_BLOCK_SIZE(ip->i_e2fs) - 12) in ext2_get_dx_count()
280 limit = le16toh(cp->h_entries_max); in ext2_dx_csum_verify()
281 count = le16toh(cp->h_entries_num); in ext2_dx_csum_verify()
356 limit = le16toh(cp->h_entries_max); in ext2_dx_csum_set()
[all …]
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()
129 ip->i_nlink = le16toh(ei->e2di_nlink); in ext2_ei2i()
130 ip->i_mode = ip->i_nlink ? le16toh(ei->e2di_mode) : 0; in ext2_ei2i()
138 ei_extra_isize_le = le16toh(ei->e2di_extra_isize); in ext2_ei2i()
175 ip->i_blocks |= (uint64_t)le16toh(ei->e2di_nblock_high) << 32; in ext2_ei2i()
176 ip->i_facl |= (uint64_t)le16toh(ei->e2di_facl_high) << 32; in ext2_ei2i()
181 ip->i_uid = le16toh(ei->e2di_uid); in ext2_ei2i()
[all …]
H A Dext2_extents.h111 #define EXT_LAST_EXTENT(hdr) (EXT_FIRST_EXTENT((hdr)) + le16toh((hdr)->eh_ecount) - 1)
112 #define EXT_LAST_INDEX(hdr) (EXT_FIRST_INDEX((hdr)) + le16toh((hdr)->eh_ecount) - 1)
114 (sizeof(struct ext4_extent) * le16toh((hdr)->eh_max)))
116 (le16toh((path)->ep_header->eh_ecount) < le16toh((path)->ep_header->eh_max))
117 #define EXT_MAX_EXTENT(hdr) (EXT_FIRST_EXTENT(hdr) + le16toh((hdr)->eh_max) - 1)
118 #define EXT_MAX_INDEX(hdr) (EXT_FIRST_INDEX((hdr)) + le16toh((hdr)->eh_max) - 1)
H A Dext2_lookup.c198 if (le16toh(dp->e2d_reclen) <= offsetof(struct ext2fs_direct_2, in ext2_readdir()
199 e2d_namlen) || (caddr_t)dp + le16toh(dp->e2d_reclen) > in ext2_readdir()
223 dstdp.d_namlen > le16toh(dp->e2d_reclen)) { in ext2_readdir()
244 *cookies = offset + le16toh(dp->e2d_reclen); in ext2_readdir()
249 offset += le16toh(dp->e2d_reclen); in ext2_readdir()
251 le16toh(dp->e2d_reclen)); in ext2_readdir()
716 int size = le16toh(ep->e2d_reclen); in ext2_search_dirblock()
726 ssp->slotsize = le16toh(ep->e2d_reclen); in ext2_search_dirblock()
734 le16toh(ep->e2d_reclen) - in ext2_search_dirblock()
757 *offp += le16toh(ep->e2d_reclen); in ext2_search_dirblock()
[all …]
H A Dext2_vfsops.c168 htole16((le16toh(fs->e2fs->e2fs_state) | in ext2_mount()
201 if ((le16toh(fs->e2fs->e2fs_state) & E2FS_ISCLEAN) == 0 || in ext2_mount()
202 (le16toh(fs->e2fs->e2fs_state) & E2FS_ERRORS)) { in ext2_mount()
214 htole16(le16toh(fs->e2fs->e2fs_state) & ~E2FS_ISCLEAN); in ext2_mount()
301 if (le16toh(es->e2fs_magic) != E2FS_MAGIC) { in ext2_check_sb_compat()
303 devtoname(dev), le16toh(es->e2fs_magic), E2FS_MAGIC); in ext2_check_sb_compat()
391 !(le16toh(gd->ext4bgd_flags) & EXT2_BG_INODE_ZEROED)) in ext2_cg_validate()
516 if (le16toh(es->e2fs_reserved_ngdb) > (fs->e2fs_bsize / 4)) { in ext2_compute_sb_data()
525 fs->e2fs_isize = le16toh(es->e2fs_inode_size); in ext2_compute_sb_data()
550 le16toh(es->e3fs_desc_size) != E2FS_64BIT_GD_SIZE) { in ext2_compute_sb_data()
[all …]
H A Dext2_alloc.c505 return (((uint32_t)(le16toh(gd->ext4bgd_nbfree_hi)) << 16) | in e2fs_gd_get_nbfree()
506 le16toh(gd->ext2bgd_nbfree)); in e2fs_gd_get_nbfree()
521 return (((uint32_t)(le16toh(gd->ext4bgd_nifree_hi)) << 16) | in e2fs_gd_get_nifree()
522 le16toh(gd->ext2bgd_nifree)); in e2fs_gd_get_nifree()
537 return (((uint32_t)(le16toh(gd->ext4bgd_ndirs_hi)) << 16) | in e2fs_gd_get_ndirs()
538 le16toh(gd->ext2bgd_ndirs)); in e2fs_gd_get_ndirs()
552 return ((uint32_t)(le16toh(gd->ext4bgd_i_unused_hi) << 16) | in e2fs_gd_get_i_unused()
553 le16toh(gd->ext4bgd_i_unused)); in e2fs_gd_get_i_unused()
832 number += le16toh(fs->e2fs->e2fs_reserved_ngdb); in ext2_number_base_meta_blocks()
876 if (!(le16toh(fs->e2fs_gd[cg].ext4bgd_flags) & EXT2_BG_BLOCK_UNINIT)) in ext2_cg_block_bitmap_init()
[all …]
H A Dext2_htree.c172 return (le16toh(((struct ext2fs_htree_count *)(ep))->h_entries_num)); in ext2_htree_get_count()
190 return (le16toh(((struct ext2fs_htree_count *)(ep))->h_entries_max)); in ext2_htree_get_limit()
581 ((char *)ep + le16toh(ep->e2d_reclen)); in ext2_htree_split_dirblock()
594 if (le16toh(sort_info[i].h_size) + size > blksize / 2) in ext2_htree_split_dirblock()
596 size += le16toh(sort_info[i].h_size); in ext2_htree_split_dirblock()
612 le16toh(sort_info[k].h_offset)); in ext2_htree_split_dirblock()
628 offset += le16toh(ep->e2d_reclen); in ext2_htree_split_dirblock()
698 le16toh(dotdot->e2d_reclen)); in ext2_htree_create_index()
704 ((char *)ep + le16toh(ep->e2d_reclen)); in ext2_htree_create_index()
/dflybsd-src/sys/netgraph7/bluetooth/l2cap/
H A Dng_l2cap_evnt.c108 hdr->length = le16toh(hdr->length); in ng_l2cap_receive()
109 hdr->dcid = le16toh(hdr->dcid); in ng_l2cap_receive()
177 hdr->length = le16toh(hdr->length); in ng_l2cap_process_signal_cmd()
285 cp->reason = le16toh(cp->reason); in ng_l2cap_process_cmd_rej()
362 psm = le16toh(cp->psm); in ng_l2cap_process_con_req()
363 dcid = le16toh(cp->scid); in ng_l2cap_process_con_req()
416 dcid = le16toh(cp->dcid); in ng_l2cap_process_con_rsp()
417 scid = le16toh(cp->scid); in ng_l2cap_process_con_rsp()
418 result = le16toh(cp->result); in ng_l2cap_process_con_rsp()
419 status = le16toh(cp->status); in ng_l2cap_process_con_rsp()
[all …]
/dflybsd-src/sys/dev/raid/mps/
H A Dmps_mapping.c143 dpm_entry->MappingInformation = le16toh(dpm_entry-> in _mapping_commit_enc_entry()
145 dpm_entry->DeviceIndex = le16toh(dpm_entry->DeviceIndex); in _mapping_commit_enc_entry()
150 dpm_entry->MappingInformation = le16toh(dpm_entry-> in _mapping_commit_enc_entry()
152 dpm_entry->DeviceIndex = le16toh(dpm_entry->DeviceIndex); in _mapping_commit_enc_entry()
197 dpm_entry->MappingInformation = le16toh(dpm_entry-> in _mapping_commit_map_entry()
199 dpm_entry->DeviceIndex = le16toh(dpm_entry->DeviceIndex); in _mapping_commit_map_entry()
203 dpm_entry->MappingInformation = le16toh(dpm_entry->MappingInformation); in _mapping_commit_map_entry()
204 dpm_entry->DeviceIndex = le16toh(dpm_entry->DeviceIndex); in _mapping_commit_map_entry()
224 u16 ioc_pg8_flags = le16toh(sc->ioc_pg8.Flags); in _mapping_get_ir_maprange()
226 volume_mapping_flags = le16toh(sc->ioc_pg8.IRVolumeMappingFlags) & in _mapping_get_ir_maprange()
[all …]
H A Dmps_config.c102 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mps_config_get_ioc_pg8()
131 cm->cm_length = le16toh(mpi_reply->Header.PageLength) * 4; in mps_config_get_ioc_pg8()
153 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mps_config_get_ioc_pg8()
220 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mps_config_get_man_pg10()
249 cm->cm_length = le16toh(mpi_reply->Header.PageLength) * 4; in mps_config_get_man_pg10()
271 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mps_config_get_man_pg10()
570 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mps_config_get_dpm_pg0()
602 cm->cm_length = le16toh(request->ExtPageLength) * 4; in mps_config_get_dpm_pg0()
624 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mps_config_get_dpm_pg0()
693 ioc_status = le16toh(reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mps_config_set_dpm_pg0()
[all …]
H A Dmps_sas_lsi.c140 sz = le16toh(event->EventDataLength) * 4; in mpssas_evt_handler()
288 if (mpssas_volume_add(sc, le16toh(element->VolDevHandle))) { in mpssas_fw_work()
291 __func__, le16toh(element-> in mpssas_fw_work()
406 if (mpssas_volume_add(sc, le16toh(event_data->VolDevHandle))) { in mpssas_fw_work()
409 __func__, le16toh(event_data-> in mpssas_fw_work()
588 u16 ioc_pg8_flags = le16toh(sc->ioc_pg8.Flags); in mpssas_add_device()
612 le16toh(config_page.ParentDevHandle)))) { in mpssas_add_device()
614 __func__, le16toh(config_page.ParentDevHandle)); in mpssas_add_device()
658 targ->encl_handle = le16toh(config_page.EnclosureHandle); in mpssas_add_device()
659 targ->encl_slot = le16toh(config_page.Slot); in mpssas_add_device()
[all …]
/dflybsd-src/sys/netproto/802_11/wlan/
H A Dieee80211_radiotap.c131 le16toh(th->it_len), in ieee80211_radiotap_vattach()
136 sizeof(struct ieee80211_frame) + le16toh(th->it_len), in ieee80211_radiotap_vattach()
231 len = le16toh(th->it_len); in ieee80211_radiotap_tx()
253 len = le16toh(rh->it_len); in ieee80211_radiotap_rx()
275 int len = le16toh(rh->it_len); in ieee80211_radiotap_rx_all()
379 if (off + items[i].width > le16toh(rh->it_len)) { in radiotap_offset()
383 off, items[i].width, le16toh(rh->it_len)); in radiotap_offset()
/dflybsd-src/sys/netgraph7/bluetooth/hci/
H A Dng_hci_cmds.c191 ep->opcode = le16toh(ep->opcode); in ng_hci_process_command_complete()
287 ep->opcode = le16toh(ep->opcode); in ng_hci_process_command_status()
406 opcode = le16toh(mtod(m, ng_hci_cmd_pkt_t *)->opcode); in ng_hci_process_command_timeout()
497 h = NG_HCI_CON_HANDLE(le16toh(rp->con_handle)); in process_link_policy_params()
691 le16toh(rp->num_acl_pkt), /* number */ in process_info_params()
692 le16toh(rp->max_acl_size), /* size */ in process_info_params()
693 le16toh(rp->num_acl_pkt) /* free */ in process_info_params()
698 le16toh(rp->num_sco_pkt), /* number */ in process_info_params()
700 le16toh(rp->num_sco_pkt) /* free */ in process_info_params()
H A Dng_hci_evnt.c423 n->clock_offset = le16toh(n->clock_offset); in inquiry_result()
494 con->con_handle = NG_HCI_CON_HANDLE(le16toh(ep->con_handle)); in con_compl()
665 h = NG_HCI_CON_HANDLE(le16toh(ep->con_handle)); in discon_compl()
703 u_int16_t h = NG_HCI_CON_HANDLE(le16toh(ep->con_handle)); in encryption_change()
750 h = NG_HCI_CON_HANDLE(le16toh(ep->con_handle)); in read_remote_features_compl()
800 h = NG_HCI_CON_HANDLE(le16toh(ep->con_handle)); in qos_setup_compl()
895 h = NG_HCI_CON_HANDLE(le16toh(h)); in num_compl_pkts()
900 p = le16toh(p); in num_compl_pkts()
949 u_int16_t h = NG_HCI_CON_HANDLE(le16toh(ep->con_handle)); in mode_change()
1005 u_int16_t h = NG_HCI_CON_HANDLE(le16toh(ep->con_handle)); in read_clock_offset_compl()
[all …]
/dflybsd-src/sys/dev/netif/wi/
H A Dif_wi.c437 nrates = le16toh(*(u_int16_t *)ratebuf); in wi_attach()
451 sc->sc_dbm_offset = le16toh(val); in wi_attach()
1226 val = le16toh(val); in wi_media_status()
1307 status = le16toh(frmhdr.wi_status); in wi_rx_intr()
1319 len = le16toh(frmhdr.wi_dat_len); in wi_rx_intr()
1368 rstamp = (le16toh(frmhdr.wi_rx_tstamp0) << 16) | in wi_rx_intr()
1369 le16toh(frmhdr.wi_rx_tstamp1); in wi_rx_intr()
1409 u_int16_t status = le16toh(frmhdr.wi_status); in wi_tx_ex_intr()
1427 le16toh(frmhdr.wi_dat_len), in wi_tx_ex_intr()
1431 le16toh(frmhdr.wi_dat_len), in wi_tx_ex_intr()
[all …]
/dflybsd-src/sbin/gpt/
H A Dmigrate.c86 for (i = 0; i < le16toh(dl->d_npartitions); i++) { in migrate_disklabel()
96 for (i = 0; i < le16toh(dl->d_npartitions); i++) { in migrate_disklabel()
244 start = le16toh(mbr->mbr_part[i].part_start_hi); in migrate()
245 start = (start << 16) + le16toh(mbr->mbr_part[i].part_start_lo); in migrate()
246 size = le16toh(mbr->mbr_part[i].part_size_hi); in migrate()
247 size = (size << 16) + le16toh(mbr->mbr_part[i].part_size_lo); in migrate()
H A Dgpt.c139 utfchar = le16toh(s16[s16idx++]); in utf16_to_utf8()
141 c = le16toh(s16[s16idx]); in utf16_to_utf8()
431 start = le16toh(mbr->mbr_part[i].part_start_hi); in gpt_mbr()
432 start = (start << 16) + le16toh(mbr->mbr_part[i].part_start_lo); in gpt_mbr()
433 size = le16toh(mbr->mbr_part[i].part_size_hi); in gpt_mbr()
434 size = (size << 16) + le16toh(mbr->mbr_part[i].part_size_lo); in gpt_mbr()
/dflybsd-src/sys/dev/netif/iwm/
H A Dif_iwm_phy_db.c270 enum iwm_phy_db_section_type type = le16toh(phy_db_notif->type); in iwm_phy_db_set_section()
271 uint16_t size = le16toh(phy_db_notif->length); in iwm_phy_db_set_section()
279 chg_id = le16toh(*(uint16_t *)phy_db_notif->data); in iwm_phy_db_set_section()
293 chg_id = le16toh(*(uint16_t *)phy_db_notif->data); in iwm_phy_db_set_section()
389 if (le16toh(txp_chg->max_channel_idx) >= ch_index) in channel_id_to_txp()
/dflybsd-src/contrib/smbfs/lib/smb/
H A Drap.c292 *value = le16toh(*(u_int16_t*)rap->r_npbuf); in smb_rap_getNparam()
322 rap->r_result = le16toh(*rp++); in smb_rap_request()
323 conv = le16toh(*rp++); in smb_rap_request()
331 rap->r_entries = entries = le16toh(*(u_int16_t*)rap->r_npbuf); in smb_rap_request()
/dflybsd-src/sys/bus/u4b/input/
H A Dwsp.c897 if (le16toh(0x1234) != 0x1234) { in wsp_intr_callback()
898 f->origin = le16toh((uint16_t)f->origin); in wsp_intr_callback()
899 f->abs_x = le16toh((uint16_t)f->abs_x); in wsp_intr_callback()
900 f->abs_y = le16toh((uint16_t)f->abs_y); in wsp_intr_callback()
901 f->rel_x = le16toh((uint16_t)f->rel_x); in wsp_intr_callback()
902 f->rel_y = le16toh((uint16_t)f->rel_y); in wsp_intr_callback()
903 f->tool_major = le16toh((uint16_t)f->tool_major); in wsp_intr_callback()
904 f->tool_minor = le16toh((uint16_t)f->tool_minor); in wsp_intr_callback()
905 f->orientation = le16toh((uint16_t)f->orientation); in wsp_intr_callback()
906 f->touch_major = le16toh((uint16_t)f->touch_major); in wsp_intr_callback()
[all …]
/dflybsd-src/tools/tools/net80211/w00t/assoc/
H A Dassoc.c516 if (le16toh(*data) != 0) { in get_auth()
517 printf("Not open-system %d!\n", le16toh(*data)); in get_auth()
523 if (le16toh(*data) != 2) { in get_auth()
524 printf("Got transaction %d!\n", le16toh(*data)); in get_auth()
530 rc = le16toh(*data); in get_auth()
573 rc = le16toh(*data++); in get_assoc()
580 p->aid = le16toh(*data & ~( (1 << 15) | (1 << 14))); in get_assoc()

12345