Lines Matching refs:n
98 int n; in get_entry() local
100 n = devtab[c->index]->read(c, entry, sizeof(struct fip_entry)); in get_entry()
101 if (n <= 0) { in get_entry()
102 return n; in get_entry()
105 if (n != sizeof(struct fip_entry)) { in get_entry()
119 static int fipgen(chan_t *c, const dirtab_t *tab, int ntab, int n, dir_t *dir) in fipgen() argument
139 for (i = 0; i <= n; i++) { in fipgen()
165 entry.size, n, O_READ); in fipgen()
168 make_dir_entry(c, dir, unk, entry.size, n, O_READ); in fipgen()
188 static int fipread(chan_t *c, void *buf, int n) in fipread() argument
217 if (n < 0) { in fipread()
221 if (n > (size - c->offset)) { in fipread()
222 n = size - c->offset; in fipread()
230 n = devtab[cs.index]->read(&cs, buf, n); in fipread()
231 if (n > 0) { in fipread()
232 c->offset += n; in fipread()
235 return n; in fipread()
246 int r, n, t; in fipmount() local
259 for (n = 0; n < NR_FILES; n++) { in fipmount()
260 fip->offset[n] = -1; in fipmount()
288 for (n = 0; n < NR_FILES; n++) { in fipmount()
299 fip->offset[n] = entry.offset_address; in fipmount()
300 fip->size[n] = entry.size; in fipmount()