• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/hpfs/

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;
194 unsigned pos;
213 pos = 0;
214 while (pos < len) {
217 if (pos + 4 > len) {
222 if (hpfs_ea_read(s, a, ano, pos, 4, ex)) return;
223 if (hpfs_ea_read(s, a, ano, pos + 4, ea->namelen + 1 + (ea->indirect ? 8 : 0), ex + 4))
232 hpfs_ea_write(s, a, ano, pos + 4 + ea->namelen + 1, size, data);
236 pos += ea->namelen + ea->valuelen + 5;
282 pos = fnode->ea_size_l + 5 + strlen(key) + size;
284 if (pos >= 30000) goto bail;
285 while (((pos + 511) >> 9) > len) {
315 if (!(new_sec = hpfs_alloc_sector(s, fno, 1, 1 - ((pos + 511) >> 9), 1)))
321 hpfs_free_sectors(s, new_sec, (pos + 511) >> 9);
326 hpfs_free_sectors(s, new_sec, (pos + 511) >> 9);
336 len = (pos + 511) >> 9;
355 fnode->ea_size_l = pos;