Lines Matching refs:addr
59 int block_debug_setup(void *addr, int len, __u64 off, __u64 id)
61 LASSERT(addr);
65 memcpy(addr, (char *)&off, LPDS);
66 memcpy(addr + LPDS, (char *)&id, LPDS);
68 addr += len - LPDS - LPDS;
69 memcpy(addr, (char *)&off, LPDS);
70 memcpy(addr + LPDS, (char *)&id, LPDS);
76 int block_debug_check(char *who, void *addr, int end, __u64 off, __u64 id)
81 LASSERT(addr);
85 if (memcmp(addr, (char *)&ne_off, LPDS)) {
87 who, id, off, *(__u64 *)addr, ne_off);
90 if (memcmp(addr + LPDS, (char *)&id, LPDS)) {
92 who, id, off, *(__u64 *)(addr + LPDS), id);
96 addr += end - LPDS - LPDS;
97 if (memcmp(addr, (char *)&ne_off, LPDS)) {
99 who, id, off, *(__u64 *)addr, ne_off);
102 if (memcmp(addr + LPDS, (char *)&id, LPDS)) {
104 who, id, off, *(__u64 *)(addr + LPDS), id);