Lines Matching refs:max_packet_size

589 	size_t max_packet_size;  member
675 s->max_packet_size = (ECRYPTFS_TAG_70_MAX_METADATA_SIZE in ecryptfs_write_tag_70_packet()
678 (*packet_size) = s->max_packet_size; in ecryptfs_write_tag_70_packet()
681 if (s->max_packet_size > (*remaining_bytes)) { in ecryptfs_write_tag_70_packet()
683 "[%zd] available\n", __func__, s->max_packet_size, in ecryptfs_write_tag_70_packet()
860 size_t max_packet_size; member
897 char *data, size_t max_packet_size) in ecryptfs_parse_tag_70_packet() argument
910 if (max_packet_size < ECRYPTFS_TAG_70_MIN_METADATA_SIZE) { in ecryptfs_parse_tag_70_packet()
912 "at least [%d]\n", __func__, max_packet_size, in ecryptfs_parse_tag_70_packet()
943 > max_packet_size) { in ecryptfs_parse_tag_70_packet()
945 "size is [%zd]\n", __func__, max_packet_size, in ecryptfs_parse_tag_70_packet()
1229 size_t *packet_size, size_t max_packet_size) in parse_tag_1_packet() argument
1251 if (unlikely(max_packet_size < 12)) { in parse_tag_1_packet()
1286 if (unlikely((*packet_size) + body_size > max_packet_size)) { in parse_tag_1_packet()
1361 size_t *packet_size, size_t max_packet_size) in parse_tag_3_packet() argument
1386 if (max_packet_size < (ECRYPTFS_SALT_SIZE + 7)) { in parse_tag_3_packet()
1420 if (unlikely((*packet_size) + body_size > max_packet_size)) { in parse_tag_3_packet()
1534 size_t *packet_size, size_t max_packet_size) in parse_tag_11_packet() argument
1556 if (max_packet_size < 16) { in parse_tag_11_packet()
1579 if (unlikely((*packet_size) + body_size + 1 > max_packet_size)) { in parse_tag_11_packet()
1780 size_t max_packet_size = ((PAGE_SIZE - 8) - i); in ecryptfs_parse_packet_set() local
1787 &packet_size, max_packet_size); in ecryptfs_parse_packet_set()
1800 max_packet_size); in ecryptfs_parse_packet_set()
1831 &packet_size, max_packet_size); in ecryptfs_parse_packet_set()
2029 size_t max_packet_size; in write_tag_1_packet() local
2064 max_packet_size = (1 /* Tag 1 identifier */ in write_tag_1_packet()
2070 if (max_packet_size > (*remaining_bytes)) { in write_tag_1_packet()
2073 "available\n", max_packet_size, (*remaining_bytes)); in write_tag_1_packet()
2079 (max_packet_size - 4), in write_tag_1_packet()
2117 size_t max_packet_size; in write_tag_11_packet() local
2123 max_packet_size = (1 /* Tag 11 identifier */ in write_tag_11_packet()
2130 if (max_packet_size > (*remaining_bytes)) { in write_tag_11_packet()
2133 "available\n", max_packet_size, (*remaining_bytes)); in write_tag_11_packet()
2139 (max_packet_size - 4), in write_tag_11_packet()
2189 size_t max_packet_size; in write_tag_3_packet() local
2326 max_packet_size = (1 /* Tag 3 identifier */ in write_tag_3_packet()
2335 if (max_packet_size > (*remaining_bytes)) { in write_tag_3_packet()
2337 "there are only [%td] available\n", max_packet_size, in write_tag_3_packet()
2346 (max_packet_size - 4), in write_tag_3_packet()