Lines Matching refs:max_packet_size

587 	size_t max_packet_size;  member
673 s->max_packet_size = (ECRYPTFS_TAG_70_MAX_METADATA_SIZE in ecryptfs_write_tag_70_packet()
676 (*packet_size) = s->max_packet_size; in ecryptfs_write_tag_70_packet()
679 if (s->max_packet_size > (*remaining_bytes)) { in ecryptfs_write_tag_70_packet()
681 "[%zd] available\n", __func__, s->max_packet_size, in ecryptfs_write_tag_70_packet()
858 size_t max_packet_size; member
895 char *data, size_t max_packet_size) in ecryptfs_parse_tag_70_packet() argument
908 if (max_packet_size < ECRYPTFS_TAG_70_MIN_METADATA_SIZE) { in ecryptfs_parse_tag_70_packet()
910 "at least [%d]\n", __func__, max_packet_size, in ecryptfs_parse_tag_70_packet()
941 > max_packet_size) { in ecryptfs_parse_tag_70_packet()
943 "size is [%zd]\n", __func__, max_packet_size, in ecryptfs_parse_tag_70_packet()
1227 size_t *packet_size, size_t max_packet_size) in parse_tag_1_packet() argument
1249 if (unlikely(max_packet_size < 12)) { in parse_tag_1_packet()
1284 if (unlikely((*packet_size) + body_size > max_packet_size)) { in parse_tag_1_packet()
1359 size_t *packet_size, size_t max_packet_size) in parse_tag_3_packet() argument
1384 if (max_packet_size < (ECRYPTFS_SALT_SIZE + 7)) { in parse_tag_3_packet()
1418 if (unlikely((*packet_size) + body_size > max_packet_size)) { in parse_tag_3_packet()
1532 size_t *packet_size, size_t max_packet_size) in parse_tag_11_packet() argument
1554 if (max_packet_size < 16) { in parse_tag_11_packet()
1577 if (unlikely((*packet_size) + body_size + 1 > max_packet_size)) { in parse_tag_11_packet()
1778 size_t max_packet_size = ((PAGE_SIZE - 8) - i); in ecryptfs_parse_packet_set() local
1785 &packet_size, max_packet_size); in ecryptfs_parse_packet_set()
1798 max_packet_size); in ecryptfs_parse_packet_set()
1829 &packet_size, max_packet_size); in ecryptfs_parse_packet_set()
2027 size_t max_packet_size; in write_tag_1_packet() local
2062 max_packet_size = (1 /* Tag 1 identifier */ in write_tag_1_packet()
2068 if (max_packet_size > (*remaining_bytes)) { in write_tag_1_packet()
2071 "available\n", max_packet_size, (*remaining_bytes)); in write_tag_1_packet()
2077 (max_packet_size - 4), in write_tag_1_packet()
2115 size_t max_packet_size; in write_tag_11_packet() local
2121 max_packet_size = (1 /* Tag 11 identifier */ in write_tag_11_packet()
2128 if (max_packet_size > (*remaining_bytes)) { in write_tag_11_packet()
2131 "available\n", max_packet_size, (*remaining_bytes)); in write_tag_11_packet()
2137 (max_packet_size - 4), in write_tag_11_packet()
2187 size_t max_packet_size; in write_tag_3_packet() local
2324 max_packet_size = (1 /* Tag 3 identifier */ in write_tag_3_packet()
2333 if (max_packet_size > (*remaining_bytes)) { in write_tag_3_packet()
2335 "there are only [%td] available\n", max_packet_size, in write_tag_3_packet()
2344 (max_packet_size - 4), in write_tag_3_packet()