Lines Matching refs:ptr
81 static void erofs_inode_init_once(void *ptr) in erofs_inode_init_once() argument
83 struct erofs_inode *vi = ptr; in erofs_inode_init_once()
135 u8 *buffer, *ptr; in erofs_read_metadata() local
139 ptr = erofs_read_metabuf(buf, sb, erofs_blknr(sb, *offset), EROFS_KMAP); in erofs_read_metadata()
140 if (IS_ERR(ptr)) in erofs_read_metadata()
141 return ptr; in erofs_read_metadata()
143 len = le16_to_cpu(*(__le16 *)&ptr[erofs_blkoff(sb, *offset)]); in erofs_read_metadata()
155 ptr = erofs_read_metabuf(buf, sb, erofs_blknr(sb, *offset), in erofs_read_metadata()
157 if (IS_ERR(ptr)) { in erofs_read_metadata()
159 return ptr; in erofs_read_metadata()
161 memcpy(buffer + i, ptr + erofs_blkoff(sb, *offset), cnt); in erofs_read_metadata()
185 void *ptr; in erofs_init_device() local
187 ptr = erofs_read_metabuf(buf, sb, erofs_blknr(sb, *pos), EROFS_KMAP); in erofs_init_device()
188 if (IS_ERR(ptr)) in erofs_init_device()
189 return PTR_ERR(ptr); in erofs_init_device()
190 dis = ptr + erofs_blkoff(sb, *pos); in erofs_init_device()
756 static int erofs_release_device_info(int id, void *ptr, void *data) in erofs_release_device_info() argument
758 struct erofs_device_info *dif = ptr; in erofs_release_device_info()