Lines Matching full:mid
60 const int mid = head + (back - head) / 2; in find_target_dirent() local
61 const int nameoff = nameoff_from_disk(de[mid].nameoff, in find_target_dirent()
66 .end = mid >= ndirents - 1 ? in find_target_dirent()
68 data + nameoff_from_disk(de[mid + 1].nameoff, in find_target_dirent()
76 return de + mid; in find_target_dirent()
78 head = mid + 1; in find_target_dirent()
81 back = mid - 1; in find_target_dirent()
98 const int mid = head + (back - head) / 2; in erofs_find_target_block() local
103 de = erofs_bread(&buf, erofs_pos(dir->i_sb, mid), EROFS_KMAP); in erofs_find_target_block()
115 mid, EROFS_I(dir)->nid); in erofs_find_target_block()
135 back = mid - 1; in erofs_find_target_block()
147 head = mid + 1; in erofs_find_target_block()