Lines Matching full:end

34 	void *p, *end;  in ceph_cls_lock()  local
55 end = p + lock_op_buf_size; in ceph_cls_lock()
60 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_lock()
62 ceph_encode_string(&p, end, cookie, cookie_len); in ceph_cls_lock()
63 ceph_encode_string(&p, end, tag, tag_len); in ceph_cls_lock()
64 ceph_encode_string(&p, end, desc, desc_len); in ceph_cls_lock()
97 void *p, *end; in ceph_cls_unlock() local
112 end = p + unlock_op_buf_size; in ceph_cls_unlock()
117 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_unlock()
118 ceph_encode_string(&p, end, cookie, cookie_len); in ceph_cls_unlock()
148 void *p, *end; in ceph_cls_break_lock() local
163 end = p + break_op_buf_size; in ceph_cls_break_lock()
168 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_break_lock()
170 ceph_encode_string(&p, end, cookie, cookie_len); in ceph_cls_break_lock()
195 void *p, *end; in ceph_cls_set_cookie() local
212 end = p + cookie_op_buf_size; in ceph_cls_set_cookie()
217 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_set_cookie()
219 ceph_encode_string(&p, end, old_cookie, old_cookie_len); in ceph_cls_set_cookie()
220 ceph_encode_string(&p, end, tag, tag_len); in ceph_cls_set_cookie()
221 ceph_encode_string(&p, end, new_cookie, new_cookie_len); in ceph_cls_set_cookie()
245 static int decode_locker(void **p, void *end, struct ceph_locker *locker) in decode_locker() argument
252 ret = ceph_start_decoding(p, end, 1, "locker_id_t", &struct_v, &len); in decode_locker()
257 s = ceph_extract_encoded_string(p, end, NULL, GFP_NOIO); in decode_locker()
263 ret = ceph_start_decoding(p, end, 1, "locker_info_t", &struct_v, &len); in decode_locker()
269 ret = ceph_decode_entity_addr(p, end, &locker->info.addr); in decode_locker()
282 static int decode_lockers(void **p, void *end, u8 *type, char **tag, in decode_lockers() argument
291 ret = ceph_start_decoding(p, end, 1, "cls_lock_get_info_reply", in decode_lockers()
302 ret = decode_locker(p, end, *lockers + i); in decode_lockers()
308 s = ceph_extract_encoded_string(p, end, NULL, GFP_NOIO); in decode_lockers()
338 void *p, *end; in ceph_cls_lock_info() local
357 end = p + get_info_op_buf_size; in ceph_cls_lock_info()
362 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_lock_info()
372 end = p + reply_len; in ceph_cls_lock_info()
374 ret = decode_lockers(&p, end, type, tag, lockers, num_lockers); in ceph_cls_lock_info()
391 void *p, *end; in ceph_cls_assert_locked() local
410 end = p + assert_op_buf_size; in ceph_cls_assert_locked()
415 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_assert_locked()
417 ceph_encode_string(&p, end, cookie, cookie_len); in ceph_cls_assert_locked()
418 ceph_encode_string(&p, end, tag, tag_len); in ceph_cls_assert_locked()
419 WARN_ON(p != end); in ceph_cls_assert_locked()