Lines Matching refs:ret
34 int ret; in ndr_write_int16() local
36 ret = try_to_realloc_ndr_blob(n, sizeof(value)); in ndr_write_int16()
37 if (ret) in ndr_write_int16()
38 return ret; in ndr_write_int16()
49 int ret; in ndr_write_int32() local
51 ret = try_to_realloc_ndr_blob(n, sizeof(value)); in ndr_write_int32()
52 if (ret) in ndr_write_int32()
53 return ret; in ndr_write_int32()
64 int ret; in ndr_write_int64() local
66 ret = try_to_realloc_ndr_blob(n, sizeof(value)); in ndr_write_int64()
67 if (ret) in ndr_write_int64()
68 return ret; in ndr_write_int64()
79 int ret; in ndr_write_bytes() local
81 ret = try_to_realloc_ndr_blob(n, sz); in ndr_write_bytes()
82 if (ret) in ndr_write_bytes()
83 return ret; in ndr_write_bytes()
97 int ret; in ndr_write_string() local
99 ret = try_to_realloc_ndr_blob(n, sz); in ndr_write_string()
100 if (ret) in ndr_write_string()
101 return ret; in ndr_write_string()
173 int ret; in ndr_encode_dos_attr() local
183 ret = ndr_write_string(n, hex_attr); in ndr_encode_dos_attr()
185 ret = ndr_write_string(n, ""); in ndr_encode_dos_attr()
187 if (ret) in ndr_encode_dos_attr()
188 return ret; in ndr_encode_dos_attr()
190 ret = ndr_write_int16(n, da->version); in ndr_encode_dos_attr()
191 if (ret) in ndr_encode_dos_attr()
192 return ret; in ndr_encode_dos_attr()
194 ret = ndr_write_int32(n, da->version); in ndr_encode_dos_attr()
195 if (ret) in ndr_encode_dos_attr()
196 return ret; in ndr_encode_dos_attr()
198 ret = ndr_write_int32(n, da->flags); in ndr_encode_dos_attr()
199 if (ret) in ndr_encode_dos_attr()
200 return ret; in ndr_encode_dos_attr()
202 ret = ndr_write_int32(n, da->attr); in ndr_encode_dos_attr()
203 if (ret) in ndr_encode_dos_attr()
204 return ret; in ndr_encode_dos_attr()
207 ret = ndr_write_int32(n, da->ea_size); in ndr_encode_dos_attr()
208 if (ret) in ndr_encode_dos_attr()
209 return ret; in ndr_encode_dos_attr()
210 ret = ndr_write_int64(n, da->size); in ndr_encode_dos_attr()
211 if (ret) in ndr_encode_dos_attr()
212 return ret; in ndr_encode_dos_attr()
213 ret = ndr_write_int64(n, da->alloc_size); in ndr_encode_dos_attr()
215 ret = ndr_write_int64(n, da->itime); in ndr_encode_dos_attr()
217 if (ret) in ndr_encode_dos_attr()
218 return ret; in ndr_encode_dos_attr()
220 ret = ndr_write_int64(n, da->create_time); in ndr_encode_dos_attr()
221 if (ret) in ndr_encode_dos_attr()
222 return ret; in ndr_encode_dos_attr()
225 ret = ndr_write_int64(n, da->change_time); in ndr_encode_dos_attr()
226 return ret; in ndr_encode_dos_attr()
233 int ret; in ndr_decode_dos_attr() local
236 ret = ndr_read_string(n, hex_attr, sizeof(hex_attr)); in ndr_decode_dos_attr()
237 if (ret) in ndr_decode_dos_attr()
238 return ret; in ndr_decode_dos_attr()
240 ret = ndr_read_int16(n, &da->version); in ndr_decode_dos_attr()
241 if (ret) in ndr_decode_dos_attr()
242 return ret; in ndr_decode_dos_attr()
249 ret = ndr_read_int32(n, &version2); in ndr_decode_dos_attr()
250 if (ret) in ndr_decode_dos_attr()
251 return ret; in ndr_decode_dos_attr()
259 ret = ndr_read_int32(n, NULL); in ndr_decode_dos_attr()
260 if (ret) in ndr_decode_dos_attr()
261 return ret; in ndr_decode_dos_attr()
263 ret = ndr_read_int32(n, &da->attr); in ndr_decode_dos_attr()
264 if (ret) in ndr_decode_dos_attr()
265 return ret; in ndr_decode_dos_attr()
268 ret = ndr_read_int64(n, &da->itime); in ndr_decode_dos_attr()
269 if (ret) in ndr_decode_dos_attr()
270 return ret; in ndr_decode_dos_attr()
272 ret = ndr_read_int64(n, &da->create_time); in ndr_decode_dos_attr()
274 ret = ndr_read_int32(n, NULL); in ndr_decode_dos_attr()
275 if (ret) in ndr_decode_dos_attr()
276 return ret; in ndr_decode_dos_attr()
278 ret = ndr_read_int64(n, NULL); in ndr_decode_dos_attr()
279 if (ret) in ndr_decode_dos_attr()
280 return ret; in ndr_decode_dos_attr()
282 ret = ndr_read_int64(n, NULL); in ndr_decode_dos_attr()
283 if (ret) in ndr_decode_dos_attr()
284 return ret; in ndr_decode_dos_attr()
286 ret = ndr_read_int64(n, &da->create_time); in ndr_decode_dos_attr()
287 if (ret) in ndr_decode_dos_attr()
288 return ret; in ndr_decode_dos_attr()
290 ret = ndr_read_int64(n, NULL); in ndr_decode_dos_attr()
293 return ret; in ndr_decode_dos_attr()
298 int i, ret; in ndr_encode_posix_acl_entry() local
300 ret = ndr_write_int32(n, acl->count); in ndr_encode_posix_acl_entry()
301 if (ret) in ndr_encode_posix_acl_entry()
302 return ret; in ndr_encode_posix_acl_entry()
305 ret = ndr_write_int32(n, acl->count); in ndr_encode_posix_acl_entry()
306 if (ret) in ndr_encode_posix_acl_entry()
307 return ret; in ndr_encode_posix_acl_entry()
309 ret = ndr_write_int32(n, 0); in ndr_encode_posix_acl_entry()
310 if (ret) in ndr_encode_posix_acl_entry()
311 return ret; in ndr_encode_posix_acl_entry()
315 ret = ndr_write_int16(n, acl->entries[i].type); in ndr_encode_posix_acl_entry()
316 if (ret) in ndr_encode_posix_acl_entry()
317 return ret; in ndr_encode_posix_acl_entry()
319 ret = ndr_write_int16(n, acl->entries[i].type); in ndr_encode_posix_acl_entry()
320 if (ret) in ndr_encode_posix_acl_entry()
321 return ret; in ndr_encode_posix_acl_entry()
325 ret = ndr_write_int64(n, acl->entries[i].uid); in ndr_encode_posix_acl_entry()
328 ret = ndr_write_int64(n, acl->entries[i].gid); in ndr_encode_posix_acl_entry()
330 if (ret) in ndr_encode_posix_acl_entry()
331 return ret; in ndr_encode_posix_acl_entry()
334 ret = ndr_write_int32(n, acl->entries[i].perm); in ndr_encode_posix_acl_entry()
337 return ret; in ndr_encode_posix_acl_entry()
347 int ret; in ndr_encode_posix_acl() local
359 ret = ndr_write_int32(n, ref_id); in ndr_encode_posix_acl()
362 ret = ndr_write_int32(n, 0); in ndr_encode_posix_acl()
364 if (ret) in ndr_encode_posix_acl()
365 return ret; in ndr_encode_posix_acl()
369 ret = ndr_write_int32(n, ref_id); in ndr_encode_posix_acl()
372 ret = ndr_write_int32(n, 0); in ndr_encode_posix_acl()
374 if (ret) in ndr_encode_posix_acl()
375 return ret; in ndr_encode_posix_acl()
378 ret = ndr_write_int64(n, from_kuid(&init_user_ns, vfsuid_into_kuid(vfsuid))); in ndr_encode_posix_acl()
379 if (ret) in ndr_encode_posix_acl()
380 return ret; in ndr_encode_posix_acl()
382 ret = ndr_write_int64(n, from_kgid(&init_user_ns, vfsgid_into_kgid(vfsgid))); in ndr_encode_posix_acl()
383 if (ret) in ndr_encode_posix_acl()
384 return ret; in ndr_encode_posix_acl()
385 ret = ndr_write_int32(n, inode->i_mode); in ndr_encode_posix_acl()
386 if (ret) in ndr_encode_posix_acl()
387 return ret; in ndr_encode_posix_acl()
390 ret = ndr_encode_posix_acl_entry(n, acl); in ndr_encode_posix_acl()
391 if (def_acl && !ret) in ndr_encode_posix_acl()
392 ret = ndr_encode_posix_acl_entry(n, def_acl); in ndr_encode_posix_acl()
394 return ret; in ndr_encode_posix_acl()
400 int ret; in ndr_encode_v4_ntacl() local
408 ret = ndr_write_int16(n, acl->version); in ndr_encode_v4_ntacl()
409 if (ret) in ndr_encode_v4_ntacl()
410 return ret; in ndr_encode_v4_ntacl()
412 ret = ndr_write_int32(n, acl->version); in ndr_encode_v4_ntacl()
413 if (ret) in ndr_encode_v4_ntacl()
414 return ret; in ndr_encode_v4_ntacl()
416 ret = ndr_write_int16(n, 2); in ndr_encode_v4_ntacl()
417 if (ret) in ndr_encode_v4_ntacl()
418 return ret; in ndr_encode_v4_ntacl()
420 ret = ndr_write_int32(n, ref_id); in ndr_encode_v4_ntacl()
421 if (ret) in ndr_encode_v4_ntacl()
422 return ret; in ndr_encode_v4_ntacl()
425 ret = ndr_write_int16(n, acl->hash_type); in ndr_encode_v4_ntacl()
426 if (ret) in ndr_encode_v4_ntacl()
427 return ret; in ndr_encode_v4_ntacl()
429 ret = ndr_write_bytes(n, acl->hash, XATTR_SD_HASH_SIZE); in ndr_encode_v4_ntacl()
430 if (ret) in ndr_encode_v4_ntacl()
431 return ret; in ndr_encode_v4_ntacl()
433 ret = ndr_write_bytes(n, acl->desc, acl->desc_len); in ndr_encode_v4_ntacl()
434 if (ret) in ndr_encode_v4_ntacl()
435 return ret; in ndr_encode_v4_ntacl()
437 ret = ndr_write_int64(n, acl->current_time); in ndr_encode_v4_ntacl()
438 if (ret) in ndr_encode_v4_ntacl()
439 return ret; in ndr_encode_v4_ntacl()
441 ret = ndr_write_bytes(n, acl->posix_acl_hash, XATTR_SD_HASH_SIZE); in ndr_encode_v4_ntacl()
442 if (ret) in ndr_encode_v4_ntacl()
443 return ret; in ndr_encode_v4_ntacl()
446 ret = ndr_write_bytes(n, acl->sd_buf, acl->sd_size); in ndr_encode_v4_ntacl()
447 return ret; in ndr_encode_v4_ntacl()
453 int ret; in ndr_decode_v4_ntacl() local
456 ret = ndr_read_int16(n, &acl->version); in ndr_decode_v4_ntacl()
457 if (ret) in ndr_decode_v4_ntacl()
458 return ret; in ndr_decode_v4_ntacl()
464 ret = ndr_read_int32(n, &version2); in ndr_decode_v4_ntacl()
465 if (ret) in ndr_decode_v4_ntacl()
466 return ret; in ndr_decode_v4_ntacl()
474 ret = ndr_read_int16(n, NULL); in ndr_decode_v4_ntacl()
475 if (ret) in ndr_decode_v4_ntacl()
476 return ret; in ndr_decode_v4_ntacl()
479 ret = ndr_read_int32(n, NULL); in ndr_decode_v4_ntacl()
480 if (ret) in ndr_decode_v4_ntacl()
481 return ret; in ndr_decode_v4_ntacl()
483 ret = ndr_read_int16(n, &acl->hash_type); in ndr_decode_v4_ntacl()
484 if (ret) in ndr_decode_v4_ntacl()
485 return ret; in ndr_decode_v4_ntacl()
487 ret = ndr_read_bytes(n, acl->hash, XATTR_SD_HASH_SIZE); in ndr_decode_v4_ntacl()
488 if (ret) in ndr_decode_v4_ntacl()
489 return ret; in ndr_decode_v4_ntacl()
498 ret = ndr_read_int64(n, NULL); in ndr_decode_v4_ntacl()
499 if (ret) in ndr_decode_v4_ntacl()
500 return ret; in ndr_decode_v4_ntacl()
503 ret = ndr_read_bytes(n, acl->posix_acl_hash, XATTR_SD_HASH_SIZE); in ndr_decode_v4_ntacl()
504 if (ret) in ndr_decode_v4_ntacl()
505 return ret; in ndr_decode_v4_ntacl()
512 ret = ndr_read_bytes(n, acl->sd_buf, acl->sd_size); in ndr_decode_v4_ntacl()
513 return ret; in ndr_decode_v4_ntacl()