Lines Matching refs:src
5 int ceph_armor(char *dst, const char *src, const char *end);
6 int ceph_unarmor(char *dst, const char *src, const char *end);
37 int ceph_armor(char *dst, const char *src, const char *end) in ceph_armor() argument
42 while (src < end) { in ceph_armor()
45 a = *src++; in ceph_armor()
47 if (src < end) { in ceph_armor()
48 b = *src++; in ceph_armor()
50 if (src < end) { in ceph_armor()
51 c = *src++; in ceph_armor()
75 int ceph_unarmor(char *dst, const char *src, const char *end) in ceph_unarmor() argument
79 while (src < end) { in ceph_unarmor()
82 if (src[0] == '\n') { in ceph_unarmor()
83 src++; in ceph_unarmor()
86 if (src + 4 > end) in ceph_unarmor()
88 a = decode_bits(src[0]); in ceph_unarmor()
89 b = decode_bits(src[1]); in ceph_unarmor()
90 c = decode_bits(src[2]); in ceph_unarmor()
91 d = decode_bits(src[3]); in ceph_unarmor()
96 if (src[2] == '=') in ceph_unarmor()
99 if (src[3] == '=') in ceph_unarmor()
103 src += 4; in ceph_unarmor()