Lines Matching refs:off
19 int off, int len) in hfs_bnode_read() argument
23 off += node->page_offset; in hfs_bnode_read()
26 memcpy(buf, kmap(page) + off, len); in hfs_bnode_read()
30 u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off) in hfs_bnode_read_u16() argument
34 hfs_bnode_read(node, &data, off, 2); in hfs_bnode_read_u16()
38 u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off) in hfs_bnode_read_u8() argument
42 hfs_bnode_read(node, &data, off, 1); in hfs_bnode_read_u8()
46 void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off) in hfs_bnode_read_key() argument
54 key_len = hfs_bnode_read_u8(node, off) + 1; in hfs_bnode_read_key()
58 hfs_bnode_read(node, key, off, key_len); in hfs_bnode_read_key()
61 void hfs_bnode_write(struct hfs_bnode *node, void *buf, int off, int len) in hfs_bnode_write() argument
65 off += node->page_offset; in hfs_bnode_write()
68 memcpy(kmap(page) + off, buf, len); in hfs_bnode_write()
73 void hfs_bnode_write_u16(struct hfs_bnode *node, int off, u16 data) in hfs_bnode_write_u16() argument
77 hfs_bnode_write(node, &v, off, 2); in hfs_bnode_write_u16()
80 void hfs_bnode_write_u8(struct hfs_bnode *node, int off, u8 data) in hfs_bnode_write_u8() argument
83 hfs_bnode_write(node, &data, off, 1); in hfs_bnode_write_u8()
86 void hfs_bnode_clear(struct hfs_bnode *node, int off, int len) in hfs_bnode_clear() argument
90 off += node->page_offset; in hfs_bnode_clear()
93 memset(kmap(page) + off, 0, len); in hfs_bnode_clear()
138 int i, off, key_off; in hfs_bnode_dump() local
146 off = node->tree->node_size - 2; in hfs_bnode_dump()
147 for (i = be16_to_cpu(desc.num_recs); i >= 0; off -= 2, i--) { in hfs_bnode_dump()
148 key_off = hfs_bnode_read_u16(node, off); in hfs_bnode_dump()
242 loff_t off; in __hfs_bnode_create() local
277 off = (loff_t)cnid * tree->node_size; in __hfs_bnode_create()
278 block = off >> PAGE_SHIFT; in __hfs_bnode_create()
279 node->page_offset = off & ~PAGE_MASK; in __hfs_bnode_create()
316 int i, rec_off, off, next_off; in hfs_bnode_find() local
365 off = hfs_bnode_read_u16(node, rec_off); in hfs_bnode_find()
366 if (off != sizeof(struct hfs_bnode_desc)) in hfs_bnode_find()
368 for (i = 1; i <= node->num_recs; off = next_off, i++) { in hfs_bnode_find()
371 if (next_off <= off || in hfs_bnode_find()
375 entry_size = next_off - off; in hfs_bnode_find()
379 key_size = hfs_bnode_read_u8(node, off) + 1; in hfs_bnode_find()