Lines Matching refs:idx
41 uintptr_t idx, length = 0;
45 ks = cache_lookup(key, key_len, &idx, &length);
48 cache_register_wait(idx, b);
51 idx = cache_allocate(key, key_len);
59 if(inwrite[idx]) {
62 w->next = waiting[idx];
63 waiting[idx] = w;
67 inwrite[idx] = true;
72 err = b->tx_vtbl.get_start_response(b, NOP_CONT, idx, haveit,
80 uint64_t idx, uint64_t length)
85 cache_update(idx, length);
89 if(inwrite[idx]) {
92 inwrite[idx] = false;
105 while ((wb = cache_get_next_waiter(idx)) != NULL) {
106 uint64_t l = cache_get_block_length(idx);
107 err = b->tx_vtbl.get_start_response(wb, NOP_CONT, idx, true, 1, l);