• Home
  • Raw
  • Download

Lines Matching refs:p

36 	void *p, *end;  in ceph_cls_lock()  local
56 p = page_address(lock_op_page); in ceph_cls_lock()
57 end = p + lock_op_buf_size; in ceph_cls_lock()
60 ceph_start_encoding(&p, 1, 1, in ceph_cls_lock()
62 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_lock()
63 ceph_encode_8(&p, type); in ceph_cls_lock()
64 ceph_encode_string(&p, end, cookie, cookie_len); in ceph_cls_lock()
65 ceph_encode_string(&p, end, tag, tag_len); in ceph_cls_lock()
66 ceph_encode_string(&p, end, desc, desc_len); in ceph_cls_lock()
69 ceph_encode_timespec64(p, &mtime); in ceph_cls_lock()
70 p += sizeof(struct ceph_timespec); in ceph_cls_lock()
71 ceph_encode_8(&p, flags); in ceph_cls_lock()
101 void *p, *end; in ceph_cls_unlock() local
115 p = page_address(unlock_op_page); in ceph_cls_unlock()
116 end = p + unlock_op_buf_size; in ceph_cls_unlock()
119 ceph_start_encoding(&p, 1, 1, in ceph_cls_unlock()
121 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_unlock()
122 ceph_encode_string(&p, end, cookie, cookie_len); in ceph_cls_unlock()
154 void *p, *end; in ceph_cls_break_lock() local
168 p = page_address(break_op_page); in ceph_cls_break_lock()
169 end = p + break_op_buf_size; in ceph_cls_break_lock()
172 ceph_start_encoding(&p, 1, 1, in ceph_cls_break_lock()
174 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_break_lock()
175 ceph_encode_copy(&p, locker, sizeof(*locker)); in ceph_cls_break_lock()
176 ceph_encode_string(&p, end, cookie, cookie_len); in ceph_cls_break_lock()
201 void *p, *end; in ceph_cls_set_cookie() local
217 p = page_address(cookie_op_page); in ceph_cls_set_cookie()
218 end = p + cookie_op_buf_size; in ceph_cls_set_cookie()
221 ceph_start_encoding(&p, 1, 1, in ceph_cls_set_cookie()
223 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_set_cookie()
224 ceph_encode_8(&p, type); in ceph_cls_set_cookie()
225 ceph_encode_string(&p, end, old_cookie, old_cookie_len); in ceph_cls_set_cookie()
226 ceph_encode_string(&p, end, tag, tag_len); in ceph_cls_set_cookie()
227 ceph_encode_string(&p, end, new_cookie, new_cookie_len); in ceph_cls_set_cookie()
251 static int decode_locker(void **p, void *end, struct ceph_locker *locker) in decode_locker() argument
258 ret = ceph_start_decoding(p, end, 1, "locker_id_t", &struct_v, &len); in decode_locker()
262 ceph_decode_copy(p, &locker->id.name, sizeof(locker->id.name)); in decode_locker()
263 s = ceph_extract_encoded_string(p, end, NULL, GFP_NOIO); in decode_locker()
269 ret = ceph_start_decoding(p, end, 1, "locker_info_t", &struct_v, &len); in decode_locker()
273 *p += sizeof(struct ceph_timespec); /* skip expiration */ in decode_locker()
275 ret = ceph_decode_entity_addr(p, end, &locker->info.addr); in decode_locker()
279 len = ceph_decode_32(p); in decode_locker()
280 *p += len; /* skip description */ in decode_locker()
288 static int decode_lockers(void **p, void *end, u8 *type, char **tag, in decode_lockers() argument
297 ret = ceph_start_decoding(p, end, 1, "cls_lock_get_info_reply", in decode_lockers()
302 *num_lockers = ceph_decode_32(p); in decode_lockers()
308 ret = decode_locker(p, end, *lockers + i); in decode_lockers()
313 *type = ceph_decode_8(p); in decode_lockers()
314 s = ceph_extract_encoded_string(p, end, NULL, GFP_NOIO); in decode_lockers()
344 void *p, *end; in ceph_cls_lock_info() local
362 p = page_address(get_info_op_page); in ceph_cls_lock_info()
363 end = p + get_info_op_buf_size; in ceph_cls_lock_info()
366 ceph_start_encoding(&p, 1, 1, in ceph_cls_lock_info()
368 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_lock_info()
377 p = page_address(reply_page); in ceph_cls_lock_info()
378 end = p + reply_len; in ceph_cls_lock_info()
380 ret = decode_lockers(&p, end, type, tag, lockers, num_lockers); in ceph_cls_lock_info()
397 void *p, *end; in ceph_cls_assert_locked() local
415 p = page_address(pages[0]); in ceph_cls_assert_locked()
416 end = p + assert_op_buf_size; in ceph_cls_assert_locked()
419 ceph_start_encoding(&p, 1, 1, in ceph_cls_assert_locked()
421 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_assert_locked()
422 ceph_encode_8(&p, type); in ceph_cls_assert_locked()
423 ceph_encode_string(&p, end, cookie, cookie_len); in ceph_cls_assert_locked()
424 ceph_encode_string(&p, end, tag, tag_len); in ceph_cls_assert_locked()
425 WARN_ON(p != end); in ceph_cls_assert_locked()