Lines Matching refs:b

1040     mc_resp_bundle *b = th->open_bundle;  in resp_allocate()  local
1042 if (b != NULL) { in resp_allocate()
1045 int x = (i + b->next_check) % MAX_RESP_PER_BUNDLE; in resp_allocate()
1046 if (b->r[x].free) { in resp_allocate()
1047 resp = &b->r[x]; in resp_allocate()
1048 b->next_check = x+1; in resp_allocate()
1054 b->refcount++; in resp_allocate()
1057 resp->bundle = b; in resp_allocate()
1058 if (b->refcount == MAX_RESP_PER_BUNDLE) { in resp_allocate()
1059 assert(b->prev == NULL); in resp_allocate()
1061 th->open_bundle = b->next; in resp_allocate()
1063 if (b->next) { in resp_allocate()
1064 b->next->prev = 0; in resp_allocate()
1065 b->next = 0; in resp_allocate()
1073 b = do_cache_alloc(th->rbuf_cache); in resp_allocate()
1074 if (b) { in resp_allocate()
1078 b->next_check = 1; in resp_allocate()
1079 b->refcount = 1; in resp_allocate()
1081 b->r[i].free = true; in resp_allocate()
1083 b->next = 0; in resp_allocate()
1084 b->prev = 0; in resp_allocate()
1085 b->thread = th; in resp_allocate()
1086 th->open_bundle = b; in resp_allocate()
1087 resp = &b->r[0]; in resp_allocate()
1090 resp->bundle = b; in resp_allocate()
1100 mc_resp_bundle *b = resp->bundle; in resp_free() local
1103 b->refcount--; in resp_free()
1104 if (b->refcount == 0) { in resp_free()
1105 if (b == th->open_bundle && b->next == 0) { in resp_free()
1107 assert(b->prev == 0); in resp_free()
1108 b->next_check = 0; in resp_free()
1111 assert((b->next || b->prev) || b == th->open_bundle); in resp_free()
1115 if (*head == b) *head = b->next; in resp_free()
1117 assert(b->next != b && b->prev != b); in resp_free()
1119 if (b->next) b->next->prev = b->prev; in resp_free()
1120 if (b->prev) b->prev->next = b->next; in resp_free()
1123 do_cache_free(th->rbuf_cache, b); in resp_free()
1131 if (b == th->open_bundle || (b->prev || b->next)) { in resp_free()
1135 b->prev = 0; in resp_free()
1136 b->next = *head; in resp_free()
1137 if (b->next) b->next->prev = b; in resp_free()
1138 *head = b; in resp_free()
3677 char *b; local
3687 for (char *p = strtok_r(list, ";,", &b);
3689 p = strtok_r(NULL, ";,", &b)) {
4398 char *b = NULL; local
4406 for (char *p = strtok_r(s, "-", &b);
4408 p = strtok_r(NULL, "-", &b)) {