Lines Matching refs:le16toh

96 		    (uint64_t)le16toh(ex->ei_leaf_hi) << 32 |
134 ep, le32toh(ep->e_blk), le16toh(ep->e_len),
151 eh, le16toh(eh->eh_ecount),
152 le16toh(eh->eh_max), le16toh(eh->eh_depth),
155 for (i = 0; i < le16toh(eh->eh_ecount) && error == 0; i++)
226 return (le16toh(ehp->eh_depth));
235 blk |= (e4fs_daddr_t)le16toh(index->ei_leaf_hi) << 32;
254 blk |= (e4fs_daddr_t)le16toh(extent->e_start_hi) << 32;
360 return (le16toh(ext->e_len) <= EXT_INIT_MAX_LEN ?
361 le16toh(ext->e_len) : (le16toh(ext->e_len) - EXT_INIT_MAX_LEN));
408 count = le16toh(eh->eh_ecount);
456 if (le16toh(eh->eh_magic) != EXT4_EXT_MAGIC) {
460 if (le16toh(eh->eh_depth) != depth ||
461 le16toh(eh->eh_depth) > EXT4_EXT_DEPTH_MAX)
470 if (le16toh(eh->eh_max) > ext4_ext_max_entries(ip, depth)) {
474 if (le16toh(eh->eh_ecount) > le16toh(eh->eh_max)) {
478 if (le16toh(eh->eh_depth) > EXT4_EXT_DEPTH_MAX) {
502 KASSERT(le16toh(eh->eh_ecount) <= le16toh(eh->eh_max) &&
503 le16toh(eh->eh_ecount) > 0,
507 r = EXT_FIRST_INDEX(eh) + le16toh(eh->eh_ecount) - 1;
527 KASSERT(le16toh(eh->eh_ecount) <= le16toh(eh->eh_max),
534 r = EXT_FIRST_EXTENT(eh) + le16toh(eh->eh_ecount) - 1;
777 if (le32toh(ex1->e_blk) + le16toh(ex1->e_len) != le32toh(ex2->e_blk))
780 if (le16toh(ex1->e_len) + le16toh(ex2->e_len) > EXT4_MAX_LEN)
783 if (ext4_ext_extent_pblock(ex1) + le16toh(ex1->e_len) ==
856 if (le16toh(path->ep_header->eh_ecount) >=
857 le16toh(path->ep_header->eh_max)) {
884 htole16(le16toh(path->ep_header->eh_ecount) + 1);
975 neh->eh_max = le16toh(ext4_ext_space_block(ip));
976 neh->eh_magic = le16toh(EXT4_EXT_MAGIC);
980 if (le16toh(path[depth].ep_header->eh_ecount) !=
981 le16toh(path[depth].ep_header->eh_max)) {
998 neh->eh_ecount = htole16(le16toh(neh->eh_ecount) + m);
1008 htole16(le16toh(path[depth].ep_header->eh_ecount) - m);
1045 neh->eh_ecount = htole16(le16toh(neh->eh_ecount) + m);
1055 htole16(le16toh(path[i].ep_header->eh_ecount) - m);
1187 if (le16toh(path[depth].ep_header->eh_ecount) ==
1188 le16toh(path[depth].ep_header->eh_max))
1252 ex->e_len = htole16(le16toh(ex->e_len) + le16toh(newext->e_len));
1261 if (le16toh(eh->eh_ecount) < le16toh(eh->eh_max))
1282 if (le16toh(eh->eh_ecount) < le16toh(eh->eh_max)) {
1319 eh->eh_ecount = htole16(le16toh(eh->eh_ecount) + 1);
1333 nearex->e_len = htole16(le16toh(nearex->e_len) +
1334 le16toh(nearex[1].e_len));
1341 eh->eh_ecount = htole16(le16toh(eh->eh_ecount) - 1);
1342 KASSERT(le16toh(eh->eh_ecount) != 0,
1417 allocated = le16toh(newex.e_len) - (iblk - le32toh(newex.e_blk));
1438 uint16_t e_len = le16toh(ex->e_len);
1541 htole16(le16toh(path->ep_header->eh_ecount) - 1);
1610 eh->eh_ecount = htole16(le16toh(eh->eh_ecount) - 1);
1623 if (correct_index && le16toh(eh->eh_ecount))
1655 if (le16toh(eh->eh_depth) != depth) {
1683 if (le16toh(path->ep_header->eh_ecount) == path->index_count)
1732 le16toh(path[i].ep_header->eh_ecount) + 1;
1752 le16toh(path[i].ep_header->eh_ecount);