Lines Matching full:off

18 void hfs_bnode_read(struct hfs_bnode *node, void *buf, int off, int len)  in hfs_bnode_read()  argument
25 off += node->page_offset; in hfs_bnode_read()
26 pagenum = off >> PAGE_SHIFT; in hfs_bnode_read()
27 off &= ~PAGE_MASK; /* compute page offset for the first page */ in hfs_bnode_read()
33 bytes_to_read = min_t(int, len - bytes_read, PAGE_SIZE - off); in hfs_bnode_read()
35 memcpy_from_page(buf + bytes_read, page, off, bytes_to_read); in hfs_bnode_read()
38 off = 0; /* page offset only applies to the first page */ in hfs_bnode_read()
42 u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off) in hfs_bnode_read_u16() argument
46 hfs_bnode_read(node, &data, off, 2); in hfs_bnode_read_u16()
50 u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off) in hfs_bnode_read_u8() argument
54 hfs_bnode_read(node, &data, off, 1); in hfs_bnode_read_u8()
58 void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off) in hfs_bnode_read_key() argument
66 key_len = hfs_bnode_read_u8(node, off) + 1; in hfs_bnode_read_key()
76 hfs_bnode_read(node, key, off, key_len); in hfs_bnode_read_key()
79 void hfs_bnode_write(struct hfs_bnode *node, void *buf, int off, int len) in hfs_bnode_write() argument
83 off += node->page_offset; in hfs_bnode_write()
86 memcpy_to_page(page, off, buf, len); in hfs_bnode_write()
90 void hfs_bnode_write_u16(struct hfs_bnode *node, int off, u16 data) in hfs_bnode_write_u16() argument
94 hfs_bnode_write(node, &v, off, 2); in hfs_bnode_write_u16()
97 void hfs_bnode_write_u8(struct hfs_bnode *node, int off, u8 data) in hfs_bnode_write_u8() argument
100 hfs_bnode_write(node, &data, off, 1); in hfs_bnode_write_u8()
103 void hfs_bnode_clear(struct hfs_bnode *node, int off, int len) in hfs_bnode_clear() argument
107 off += node->page_offset; in hfs_bnode_clear()
110 memzero_page(page, off, len); in hfs_bnode_clear()
152 int i, off, key_off; in hfs_bnode_dump() local
160 off = node->tree->node_size - 2; in hfs_bnode_dump()
161 for (i = be16_to_cpu(desc.num_recs); i >= 0; off -= 2, i--) { in hfs_bnode_dump()
162 key_off = hfs_bnode_read_u16(node, off); in hfs_bnode_dump()
256 loff_t off; in __hfs_bnode_create() local
292 off = (loff_t)cnid * tree->node_size; in __hfs_bnode_create()
293 block = off >> PAGE_SHIFT; in __hfs_bnode_create()
294 node->page_offset = off & ~PAGE_MASK; in __hfs_bnode_create()
327 int i, rec_off, off, next_off; in hfs_bnode_find() local
377 off = hfs_bnode_read_u16(node, rec_off); in hfs_bnode_find()
378 if (off != sizeof(struct hfs_bnode_desc)) in hfs_bnode_find()
380 for (i = 1; i <= node->num_recs; off = next_off, i++) { in hfs_bnode_find()
383 if (next_off <= off || in hfs_bnode_find()
387 entry_size = next_off - off; in hfs_bnode_find()
391 key_size = hfs_bnode_read_u8(node, off) + 1; in hfs_bnode_find()