Lines Matching refs:max_packet_size

600 	size_t max_packet_size;  member
686 s->max_packet_size = (ECRYPTFS_TAG_70_MAX_METADATA_SIZE in ecryptfs_write_tag_70_packet()
689 (*packet_size) = s->max_packet_size; in ecryptfs_write_tag_70_packet()
692 if (s->max_packet_size > (*remaining_bytes)) { in ecryptfs_write_tag_70_packet()
694 "[%zd] available\n", __func__, s->max_packet_size, in ecryptfs_write_tag_70_packet()
872 size_t max_packet_size; member
909 char *data, size_t max_packet_size) in ecryptfs_parse_tag_70_packet() argument
922 if (max_packet_size < ECRYPTFS_TAG_70_MIN_METADATA_SIZE) { in ecryptfs_parse_tag_70_packet()
924 "at least [%d]\n", __func__, max_packet_size, in ecryptfs_parse_tag_70_packet()
955 > max_packet_size) { in ecryptfs_parse_tag_70_packet()
957 "size is [%zd]\n", __func__, max_packet_size, in ecryptfs_parse_tag_70_packet()
1240 size_t *packet_size, size_t max_packet_size) in parse_tag_1_packet() argument
1262 if (unlikely(max_packet_size < 12)) { in parse_tag_1_packet()
1297 if (unlikely((*packet_size) + body_size > max_packet_size)) { in parse_tag_1_packet()
1372 size_t *packet_size, size_t max_packet_size) in parse_tag_3_packet() argument
1397 if (max_packet_size < (ECRYPTFS_SALT_SIZE + 7)) { in parse_tag_3_packet()
1431 if (unlikely((*packet_size) + body_size > max_packet_size)) { in parse_tag_3_packet()
1545 size_t *packet_size, size_t max_packet_size) in parse_tag_11_packet() argument
1567 if (max_packet_size < 16) { in parse_tag_11_packet()
1590 if (unlikely((*packet_size) + body_size + 1 > max_packet_size)) { in parse_tag_11_packet()
1791 size_t max_packet_size = ((PAGE_SIZE - 8) - i); in ecryptfs_parse_packet_set() local
1798 &packet_size, max_packet_size); in ecryptfs_parse_packet_set()
1811 max_packet_size); in ecryptfs_parse_packet_set()
1842 &packet_size, max_packet_size); in ecryptfs_parse_packet_set()
2040 size_t max_packet_size; in write_tag_1_packet() local
2075 max_packet_size = (1 /* Tag 1 identifier */ in write_tag_1_packet()
2081 if (max_packet_size > (*remaining_bytes)) { in write_tag_1_packet()
2084 "available\n", max_packet_size, (*remaining_bytes)); in write_tag_1_packet()
2090 (max_packet_size - 4), in write_tag_1_packet()
2128 size_t max_packet_size; in write_tag_11_packet() local
2134 max_packet_size = (1 /* Tag 11 identifier */ in write_tag_11_packet()
2141 if (max_packet_size > (*remaining_bytes)) { in write_tag_11_packet()
2144 "available\n", max_packet_size, (*remaining_bytes)); in write_tag_11_packet()
2150 (max_packet_size - 4), in write_tag_11_packet()
2200 size_t max_packet_size; in write_tag_3_packet() local
2337 max_packet_size = (1 /* Tag 3 identifier */ in write_tag_3_packet()
2346 if (max_packet_size > (*remaining_bytes)) { in write_tag_3_packet()
2348 "there are only [%td] available\n", max_packet_size, in write_tag_3_packet()
2357 (max_packet_size - 4), in write_tag_3_packet()