Lines Matching refs:offset

14 	return n->data + n->offset;  in ndr_get_field()
21 data = krealloc(n->data, n->offset + sz + 1024, KSMBD_DEFAULT_GFP); in try_to_realloc_ndr_blob()
27 memset(n->data + n->offset, 0, 1024); in try_to_realloc_ndr_blob()
33 if (n->length <= n->offset + sizeof(value)) { in ndr_write_int16()
42 n->offset += sizeof(value); in ndr_write_int16()
48 if (n->length <= n->offset + sizeof(value)) { in ndr_write_int32()
57 n->offset += sizeof(value); in ndr_write_int32()
63 if (n->length <= n->offset + sizeof(value)) { in ndr_write_int64()
72 n->offset += sizeof(value); in ndr_write_int64()
78 if (n->length <= n->offset + sz) { in ndr_write_bytes()
87 n->offset += sz; in ndr_write_bytes()
96 if (n->length <= n->offset + sz) { in ndr_write_string()
105 n->offset += sz; in ndr_write_string()
106 n->offset = ALIGN(n->offset, 2); in ndr_write_string()
114 if (n->offset + sz > n->length) in ndr_read_string()
121 n->offset += len; in ndr_read_string()
122 n->offset = ALIGN(n->offset, 2); in ndr_read_string()
128 if (n->offset + sz > n->length) in ndr_read_bytes()
133 n->offset += sz; in ndr_read_bytes()
139 if (n->offset + sizeof(__u16) > n->length) in ndr_read_int16()
144 n->offset += sizeof(__u16); in ndr_read_int16()
150 if (n->offset + sizeof(__u32) > n->length) in ndr_read_int32()
155 n->offset += sizeof(__u32); in ndr_read_int32()
161 if (n->offset + sizeof(__u64) > n->length) in ndr_read_int64()
166 n->offset += sizeof(__u64); in ndr_read_int64()
175 n->offset = 0; in ndr_encode_dos_attr()
235 n->offset = 0; in ndr_decode_dos_attr()
304 n->offset = ALIGN(n->offset, 8); in ndr_encode_posix_acl_entry()
314 n->offset = ALIGN(n->offset, 8); in ndr_encode_posix_acl_entry()
324 n->offset = ALIGN(n->offset, 8); in ndr_encode_posix_acl_entry()
327 n->offset = ALIGN(n->offset, 8); in ndr_encode_posix_acl_entry()
351 n->offset = 0; in ndr_encode_posix_acl()
402 n->offset = 0; in ndr_encode_v4_ntacl()
455 n->offset = 0; in ndr_decode_v4_ntacl()
507 acl->sd_size = n->length - n->offset; in ndr_decode_v4_ntacl()