Home
last modified time | relevance | path

Searched refs:mid (Results 1 – 2 of 2) sorted by relevance

/net/tipc/
Dname_table.c182 int mid; in nameseq_find_subseq() local
185 mid = (low + high) / 2; in nameseq_find_subseq()
186 if (instance < sseqs[mid].lower) in nameseq_find_subseq()
187 high = mid - 1; in nameseq_find_subseq()
188 else if (instance > sseqs[mid].upper) in nameseq_find_subseq()
189 low = mid + 1; in nameseq_find_subseq()
191 return &sseqs[mid]; in nameseq_find_subseq()
210 int mid; in nameseq_locate_subseq() local
213 mid = (low + high) / 2; in nameseq_locate_subseq()
214 if (instance < sseqs[mid].lower) in nameseq_locate_subseq()
[all …]
/net/netfilter/
Dx_tables.c587 int mid, left = 0, right = xt[af].cur - 1; in xt_compat_calc_jump() local
590 mid = (left + right) >> 1; in xt_compat_calc_jump()
591 if (offset > tmp[mid].offset) in xt_compat_calc_jump()
592 left = mid + 1; in xt_compat_calc_jump()
593 else if (offset < tmp[mid].offset) in xt_compat_calc_jump()
594 right = mid - 1; in xt_compat_calc_jump()
596 return mid ? tmp[mid - 1].delta : 0; in xt_compat_calc_jump()