Home | History | Annotate | Download | only in libiptc

Lines Matching refs:pos

213 	   unsigned int *pos)
217 (*pos)++;
224 unsigned int *pos,
227 if (*pos == number) {
231 (*pos)++;
244 unsigned int pos = 0;
247 iptcb_get_number, seek, &pos) == 0) {
252 return pos;
340 unsigned int pos, end;
354 pos = end / 2;
356 debug("bsearch Find chain:%s (pos:%d end:%d) (offset:%d)\n",
357 name, pos, end, offset);
361 if (!handle->chain_index[pos]) {
362 fprintf(stderr, "ERROR: NULL pointer chain_index[%d]\n", pos);
363 return &handle->chains; /* Be safe, return orig start pos */
367 pos, handle->chain_index[pos]->name);
372 res = strcmp(name, handle->chain_index[pos]->name);
376 handle->chain_index[pos]->head_offset,
377 handle->chain_index[pos]->foot_offset);
378 res = offset - handle->chain_index[pos]->head_offset;
389 list_pos = &handle->chain_index[pos]->list;
390 *idx = pos;
393 debug("[found] Direct hit pos:%d end:%d\n", pos, end);
396 end = pos;
397 pos = pos / 2;
404 debug("jump back to pos:%d (end:%d)\n", pos, end);
409 if (pos == handle->chain_index_sz-1) {
417 res = strcmp(name, handle->chain_index[pos+1]->name);
420 res = offset - handle->chain_index[pos+1]->head_offset;
429 pos = (pos+end)/2;
430 debug("jump forward to pos:%d (end:%d)\n", pos, end);
451 struct list_head *pos;
457 pos = handle->chains.next;
459 pos = __iptcc_bsearch_chain_index(NULL, offset, idx, handle,
461 return pos;
691 struct list_head *pos;
706 // list_for_each(pos, &handle->chains) {
707 list_for_each(pos, list_start_pos->prev) {
708 struct chain_head *c = list_entry(pos, struct chain_head, list);
723 struct list_head *pos;
732 list_for_each(pos, &handle->chains) {
733 struct chain_head *c = list_entry(pos, struct chain_head, list);
746 list_start_pos = pos;
772 list_for_each(pos, list_start_pos->prev) {
773 struct chain_head *c = list_entry(pos, struct chain_head, list);
786 if (pos == &handle->chains) {