Lines Matching refs:max_packet_size
592 size_t max_packet_size; member
681 s->max_packet_size = (ECRYPTFS_TAG_70_MAX_METADATA_SIZE in ecryptfs_write_tag_70_packet()
684 (*packet_size) = s->max_packet_size; in ecryptfs_write_tag_70_packet()
687 if (s->max_packet_size > (*remaining_bytes)) { in ecryptfs_write_tag_70_packet()
689 "[%zd] available\n", __func__, s->max_packet_size, in ecryptfs_write_tag_70_packet()
880 size_t max_packet_size; member
916 char *data, size_t max_packet_size) in ecryptfs_parse_tag_70_packet() argument
933 if (max_packet_size < ECRYPTFS_TAG_70_MIN_METADATA_SIZE) { in ecryptfs_parse_tag_70_packet()
935 "at least [%d]\n", __func__, max_packet_size, in ecryptfs_parse_tag_70_packet()
966 > max_packet_size) { in ecryptfs_parse_tag_70_packet()
968 "size is [%zd]\n", __func__, max_packet_size, in ecryptfs_parse_tag_70_packet()
1245 size_t *packet_size, size_t max_packet_size) in parse_tag_1_packet() argument
1267 if (unlikely(max_packet_size < 12)) { in parse_tag_1_packet()
1302 if (unlikely((*packet_size) + body_size > max_packet_size)) { in parse_tag_1_packet()
1377 size_t *packet_size, size_t max_packet_size) in parse_tag_3_packet() argument
1402 if (max_packet_size < (ECRYPTFS_SALT_SIZE + 7)) { in parse_tag_3_packet()
1436 if (unlikely((*packet_size) + body_size > max_packet_size)) { in parse_tag_3_packet()
1550 size_t *packet_size, size_t max_packet_size) in parse_tag_11_packet() argument
1572 if (max_packet_size < 16) { in parse_tag_11_packet()
1595 if (unlikely((*packet_size) + body_size + 1 > max_packet_size)) { in parse_tag_11_packet()
1782 size_t max_packet_size = ((PAGE_CACHE_SIZE - 8) - i); in ecryptfs_parse_packet_set() local
1789 &packet_size, max_packet_size); in ecryptfs_parse_packet_set()
1802 max_packet_size); in ecryptfs_parse_packet_set()
1833 &packet_size, max_packet_size); in ecryptfs_parse_packet_set()
2031 size_t max_packet_size; in write_tag_1_packet() local
2066 max_packet_size = (1 /* Tag 1 identifier */ in write_tag_1_packet()
2072 if (max_packet_size > (*remaining_bytes)) { in write_tag_1_packet()
2075 "available\n", max_packet_size, (*remaining_bytes)); in write_tag_1_packet()
2081 (max_packet_size - 4), in write_tag_1_packet()
2119 size_t max_packet_size; in write_tag_11_packet() local
2125 max_packet_size = (1 /* Tag 11 identifier */ in write_tag_11_packet()
2132 if (max_packet_size > (*remaining_bytes)) { in write_tag_11_packet()
2135 "available\n", max_packet_size, (*remaining_bytes)); in write_tag_11_packet()
2141 (max_packet_size - 4), in write_tag_11_packet()
2191 size_t max_packet_size; in write_tag_3_packet() local
2315 max_packet_size = (1 /* Tag 3 identifier */ in write_tag_3_packet()
2324 if (max_packet_size > (*remaining_bytes)) { in write_tag_3_packet()
2326 "there are only [%td] available\n", max_packet_size, in write_tag_3_packet()
2335 (max_packet_size - 4), in write_tag_3_packet()