Lines Matching defs:pos
16 unsigned pos = 0;
17 while (pos < len) {
20 if (pos + 4 > len) {
25 if (hpfs_ea_read(s, a, ano, pos, 4, ex)) return;
28 hpfs_error(s, "ea->indirect set while ea->valuelen!=8, %s %08x, pos %08x",
29 ano ? "anode" : "sectors", a, pos);
32 if (hpfs_ea_read(s, a, ano, pos + 4, ea->namelen + 9, ex+4))
36 pos += ea->namelen + ea->valuelen + 5;
76 unsigned pos;
94 pos = 0;
95 while (pos < len) {
98 if (pos + 4 > len) {
103 if (hpfs_ea_read(s, a, ano, pos, 4, ex)) return -EIO;
104 if (hpfs_ea_read(s, a, ano, pos + 4, ea->namelen + 1 + (ea->indirect ? 8 : 0), ex + 4))
111 if (hpfs_ea_read(s, a, ano, pos + 4 + ea->namelen + 1, ea->valuelen, buf))
116 pos += ea->namelen + ea->valuelen + 5;
132 unsigned pos;
152 pos = 0;
153 while (pos < len) {
156 if (pos + 4 > len) {
161 if (hpfs_ea_read(s, a, ano, pos, 4, ex)) return NULL;
162 if (hpfs_ea_read(s, a, ano, pos + 4, ea->namelen + 1 + (ea->indirect ? 8 : 0), ex + 4))
171 if (hpfs_ea_read(s, a, ano, pos + 4 + ea->namelen + 1, ea->valuelen, ret)) {
178 pos += ea->namelen + ea->valuelen + 5;
193 unsigned pos;
212 pos = 0;
213 while (pos < len) {
216 if (pos + 4 > len) {
221 if (hpfs_ea_read(s, a, ano, pos, 4, ex)) return;
222 if (hpfs_ea_read(s, a, ano, pos + 4, ea->namelen + 1 + (ea->indirect ? 8 : 0), ex + 4))
231 hpfs_ea_write(s, a, ano, pos + 4 + ea->namelen + 1, size, data);
235 pos += ea->namelen + ea->valuelen + 5;
281 pos = fnode->ea_size_l + 5 + strlen(key) + size;
283 if (pos >= 30000) goto bail;
284 while (((pos + 511) >> 9) > len) {
314 if (!(new_sec = hpfs_alloc_sector(s, fno, 1, 1 - ((pos + 511) >> 9), 1)))
320 hpfs_free_sectors(s, new_sec, (pos + 511) >> 9);
325 hpfs_free_sectors(s, new_sec, (pos + 511) >> 9);
335 len = (pos + 511) >> 9;
354 fnode->ea_size_l = pos;