Lines Matching refs:max_packet_size
472 size_t max_packet_size; member
549 s->max_packet_size = (1 /* Tag 70 identifier */ in ecryptfs_write_tag_70_packet()
555 (*packet_size) = s->max_packet_size; in ecryptfs_write_tag_70_packet()
558 if (s->max_packet_size > (*remaining_bytes)) { in ecryptfs_write_tag_70_packet()
560 "[%zd] available\n", __func__, s->max_packet_size, in ecryptfs_write_tag_70_packet()
754 size_t max_packet_size; member
790 char *data, size_t max_packet_size) in ecryptfs_parse_tag_70_packet() argument
805 if (max_packet_size < (1 + 1 + ECRYPTFS_SIG_SIZE + 1 + 1)) { in ecryptfs_parse_tag_70_packet()
807 "at least [%d]\n", __func__, max_packet_size, in ecryptfs_parse_tag_70_packet()
838 > max_packet_size) { in ecryptfs_parse_tag_70_packet()
840 "size is [%zd]\n", __func__, max_packet_size, in ecryptfs_parse_tag_70_packet()
1109 size_t *packet_size, size_t max_packet_size) in parse_tag_1_packet() argument
1131 if (unlikely(max_packet_size < 12)) { in parse_tag_1_packet()
1166 if (unlikely((*packet_size) + body_size > max_packet_size)) { in parse_tag_1_packet()
1241 size_t *packet_size, size_t max_packet_size) in parse_tag_3_packet() argument
1266 if (max_packet_size < (ECRYPTFS_SALT_SIZE + 7)) { in parse_tag_3_packet()
1300 if (unlikely((*packet_size) + body_size > max_packet_size)) { in parse_tag_3_packet()
1403 size_t *packet_size, size_t max_packet_size) in parse_tag_11_packet() argument
1425 if (max_packet_size < 16) { in parse_tag_11_packet()
1448 if (unlikely((*packet_size) + body_size + 1 > max_packet_size)) { in parse_tag_11_packet()
1667 size_t max_packet_size = ((PAGE_CACHE_SIZE - 8) - i); in ecryptfs_parse_packet_set() local
1674 &packet_size, max_packet_size); in ecryptfs_parse_packet_set()
1687 max_packet_size); in ecryptfs_parse_packet_set()
1718 &packet_size, max_packet_size); in ecryptfs_parse_packet_set()
1903 size_t max_packet_size; in write_tag_1_packet() local
1935 max_packet_size = (1 /* Tag 1 identifier */ in write_tag_1_packet()
1941 if (max_packet_size > (*remaining_bytes)) { in write_tag_1_packet()
1944 "available\n", max_packet_size, (*remaining_bytes)); in write_tag_1_packet()
1950 (max_packet_size - 4), in write_tag_1_packet()
1988 size_t max_packet_size; in write_tag_11_packet() local
1994 max_packet_size = (1 /* Tag 11 identifier */ in write_tag_11_packet()
2001 if (max_packet_size > (*remaining_bytes)) { in write_tag_11_packet()
2004 "available\n", max_packet_size, (*remaining_bytes)); in write_tag_11_packet()
2010 (max_packet_size - 4), in write_tag_11_packet()
2060 size_t max_packet_size; in write_tag_3_packet() local
2184 max_packet_size = (1 /* Tag 3 identifier */ in write_tag_3_packet()
2193 if (max_packet_size > (*remaining_bytes)) { in write_tag_3_packet()
2195 "there are only [%td] available\n", max_packet_size, in write_tag_3_packet()
2204 (max_packet_size - 4), in write_tag_3_packet()