Lines Matching refs:idx
68 int idx;
78 idx = fsel_path_index(path);
79 if (idx < 0)
84 stbuf->st_size = fsel_cnt[idx];
112 int idx = fsel_path_index(path);
114 if (idx < 0)
118 if (fsel_open_mask & (1 << idx))
120 fsel_open_mask |= (1 << idx);
127 fi->fh = idx;
136 int idx = fi->fh;
140 fsel_open_mask &= ~(1 << idx);
147 int idx = fi->fh;
153 if (fsel_cnt[idx] < size)
154 size = fsel_cnt[idx];
155 printf("READ %X transferred=%zu cnt=%u\n", idx, size, fsel_cnt[idx]);
156 fsel_cnt[idx] -= size;
159 memset(buf, fsel_hex_map[idx], size);
167 int idx = fi->fh;
186 struct fuse_pollhandle *oldph = fsel_poll_handle[idx];
191 fsel_poll_notify_mask |= (1 << idx);
192 fsel_poll_handle[idx] = ph;
195 if (fsel_cnt[idx]) {
198 idx, fsel_cnt[idx], polled_zero);
219 unsigned idx = 0, nr = 1;
234 for (i = 0, t = idx; i < nr;
252 idx = (idx + 1) % FSEL_FILES;
253 if (idx == 0)