Lines Matching refs: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()
97 const int mid = head + (back - head) / 2; in erofs_find_target_block() local
101 de = erofs_bread(&buf, dir, mid, EROFS_KMAP); in erofs_find_target_block()
114 mid, EROFS_I(dir)->nid); in erofs_find_target_block()
137 head = mid + 1; in erofs_find_target_block()
148 back = mid - 1; in erofs_find_target_block()