Lines Matching refs:off
18 int off, int len) in hfs_bnode_read() argument
22 off += node->page_offset; in hfs_bnode_read()
25 memcpy(buf, kmap(page) + off, len); in hfs_bnode_read()
29 u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off) in hfs_bnode_read_u16() argument
33 hfs_bnode_read(node, &data, off, 2); in hfs_bnode_read_u16()
37 u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off) in hfs_bnode_read_u8() argument
41 hfs_bnode_read(node, &data, off, 1); in hfs_bnode_read_u8()
45 void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off) in hfs_bnode_read_key() argument
53 key_len = hfs_bnode_read_u8(node, off) + 1; in hfs_bnode_read_key()
57 hfs_bnode_read(node, key, off, key_len); in hfs_bnode_read_key()
60 void hfs_bnode_write(struct hfs_bnode *node, void *buf, int off, int len) in hfs_bnode_write() argument
64 off += node->page_offset; in hfs_bnode_write()
67 memcpy(kmap(page) + off, buf, len); in hfs_bnode_write()
72 void hfs_bnode_write_u16(struct hfs_bnode *node, int off, u16 data) in hfs_bnode_write_u16() argument
76 hfs_bnode_write(node, &v, off, 2); in hfs_bnode_write_u16()
79 void hfs_bnode_write_u8(struct hfs_bnode *node, int off, u8 data) in hfs_bnode_write_u8() argument
82 hfs_bnode_write(node, &data, off, 1); in hfs_bnode_write_u8()
85 void hfs_bnode_clear(struct hfs_bnode *node, int off, int len) in hfs_bnode_clear() argument
89 off += node->page_offset; in hfs_bnode_clear()
92 memset(kmap(page) + off, 0, len); in hfs_bnode_clear()
139 int i, off, key_off; in hfs_bnode_dump() local
147 off = node->tree->node_size - 2; in hfs_bnode_dump()
148 for (i = be16_to_cpu(desc.num_recs); i >= 0; off -= 2, i--) { in hfs_bnode_dump()
149 key_off = hfs_bnode_read_u16(node, off); in hfs_bnode_dump()
244 loff_t off; in __hfs_bnode_create() local
280 off = (loff_t)cnid * tree->node_size; in __hfs_bnode_create()
281 block = off >> PAGE_CACHE_SHIFT; in __hfs_bnode_create()
282 node->page_offset = off & ~PAGE_CACHE_MASK; in __hfs_bnode_create()
319 int i, rec_off, off, next_off; in hfs_bnode_find() local
368 off = hfs_bnode_read_u16(node, rec_off); in hfs_bnode_find()
369 if (off != sizeof(struct hfs_bnode_desc)) in hfs_bnode_find()
371 for (i = 1; i <= node->num_recs; off = next_off, i++) { in hfs_bnode_find()
374 if (next_off <= off || in hfs_bnode_find()
378 entry_size = next_off - off; in hfs_bnode_find()
382 key_size = hfs_bnode_read_u8(node, off) + 1; in hfs_bnode_find()