• Home
  • Raw
  • Download

Lines Matching refs:p

33 	void *p, *end;  in ceph_cls_lock()  local
53 p = page_address(lock_op_page); in ceph_cls_lock()
54 end = p + lock_op_buf_size; in ceph_cls_lock()
57 ceph_start_encoding(&p, 1, 1, in ceph_cls_lock()
59 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_lock()
60 ceph_encode_8(&p, type); in ceph_cls_lock()
61 ceph_encode_string(&p, end, cookie, cookie_len); in ceph_cls_lock()
62 ceph_encode_string(&p, end, tag, tag_len); in ceph_cls_lock()
63 ceph_encode_string(&p, end, desc, desc_len); in ceph_cls_lock()
66 ceph_encode_timespec(p, &mtime); in ceph_cls_lock()
67 p += sizeof(struct ceph_timespec); in ceph_cls_lock()
68 ceph_encode_8(&p, flags); in ceph_cls_lock()
96 void *p, *end; in ceph_cls_unlock() local
110 p = page_address(unlock_op_page); in ceph_cls_unlock()
111 end = p + unlock_op_buf_size; in ceph_cls_unlock()
114 ceph_start_encoding(&p, 1, 1, in ceph_cls_unlock()
116 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_unlock()
117 ceph_encode_string(&p, end, cookie, cookie_len); in ceph_cls_unlock()
147 void *p, *end; in ceph_cls_break_lock() local
161 p = page_address(break_op_page); in ceph_cls_break_lock()
162 end = p + break_op_buf_size; in ceph_cls_break_lock()
165 ceph_start_encoding(&p, 1, 1, in ceph_cls_break_lock()
167 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_break_lock()
168 ceph_encode_copy(&p, locker, sizeof(*locker)); in ceph_cls_break_lock()
169 ceph_encode_string(&p, end, cookie, cookie_len); in ceph_cls_break_lock()
194 void *p, *end; in ceph_cls_set_cookie() local
210 p = page_address(cookie_op_page); in ceph_cls_set_cookie()
211 end = p + cookie_op_buf_size; in ceph_cls_set_cookie()
214 ceph_start_encoding(&p, 1, 1, in ceph_cls_set_cookie()
216 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_set_cookie()
217 ceph_encode_8(&p, type); in ceph_cls_set_cookie()
218 ceph_encode_string(&p, end, old_cookie, old_cookie_len); in ceph_cls_set_cookie()
219 ceph_encode_string(&p, end, tag, tag_len); in ceph_cls_set_cookie()
220 ceph_encode_string(&p, end, new_cookie, new_cookie_len); in ceph_cls_set_cookie()
244 static int decode_locker(void **p, void *end, struct ceph_locker *locker) in decode_locker() argument
251 ret = ceph_start_decoding(p, end, 1, "locker_id_t", &struct_v, &len); in decode_locker()
255 ceph_decode_copy(p, &locker->id.name, sizeof(locker->id.name)); in decode_locker()
256 s = ceph_extract_encoded_string(p, end, NULL, GFP_NOIO); in decode_locker()
262 ret = ceph_start_decoding(p, end, 1, "locker_info_t", &struct_v, &len); in decode_locker()
266 *p += sizeof(struct ceph_timespec); /* skip expiration */ in decode_locker()
267 ceph_decode_copy(p, &locker->info.addr, sizeof(locker->info.addr)); in decode_locker()
269 len = ceph_decode_32(p); in decode_locker()
270 *p += len; /* skip description */ in decode_locker()
278 static int decode_lockers(void **p, void *end, u8 *type, char **tag, in decode_lockers() argument
287 ret = ceph_start_decoding(p, end, 1, "cls_lock_get_info_reply", in decode_lockers()
292 *num_lockers = ceph_decode_32(p); in decode_lockers()
298 ret = decode_locker(p, end, *lockers + i); in decode_lockers()
303 *type = ceph_decode_8(p); in decode_lockers()
304 s = ceph_extract_encoded_string(p, end, NULL, GFP_NOIO); in decode_lockers()
334 void *p, *end; in ceph_cls_lock_info() local
352 p = page_address(get_info_op_page); in ceph_cls_lock_info()
353 end = p + get_info_op_buf_size; in ceph_cls_lock_info()
356 ceph_start_encoding(&p, 1, 1, in ceph_cls_lock_info()
358 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_lock_info()
367 p = page_address(reply_page); in ceph_cls_lock_info()
368 end = p + reply_len; in ceph_cls_lock_info()
370 ret = decode_lockers(&p, end, type, tag, lockers, num_lockers); in ceph_cls_lock_info()