Lines Matching refs:b
36 uint32_t tee_b2hs(uint8_t *b, uint8_t *hs, uint32_t blen, uint32_t hslen) in tee_b2hs() argument
44 hs[i * 2 + 1] = tee_b2hs_add_base(b[i] & 0xf); in tee_b2hs()
45 hs[i * 2] = tee_b2hs_add_base(b[i] >> 4); in tee_b2hs()
52 uint32_t tee_hs2b(uint8_t *hs, uint8_t *b, uint32_t hslen, uint32_t blen) in tee_hs2b() argument
67 b[i] = (hi << 4) + lo; in tee_hs2b()
73 static bool is_valid_conf_and_notnull_size(paddr_t b, paddr_size_t bl, in is_valid_conf_and_notnull_size() argument
77 if ((b - 1 + bl < b) || (a - 1 + al < a)) in is_valid_conf_and_notnull_size()
86 bool core_is_buffer_inside(paddr_t b, paddr_size_t bl, in core_is_buffer_inside() argument
90 if (!is_valid_conf_and_notnull_size(b, bl, a, al)) in core_is_buffer_inside()
93 if ((b >= a) && (b - 1 + bl <= a - 1 + al)) in core_is_buffer_inside()
99 bool core_is_buffer_outside(paddr_t b, paddr_size_t bl, in core_is_buffer_outside() argument
103 if (!is_valid_conf_and_notnull_size(b, bl, a, al)) in core_is_buffer_outside()
106 if ((b + bl - 1 < a) || (b > a + al - 1)) in core_is_buffer_outside()
112 bool core_is_buffer_intersect(paddr_t b, paddr_size_t bl, in core_is_buffer_intersect() argument
116 if (!is_valid_conf_and_notnull_size(b, bl, a, al)) in core_is_buffer_intersect()
119 if ((b + bl - 1 < a) || (b > a + al - 1)) in core_is_buffer_intersect()