Lines Matching refs:a
372 static inline void lfs_gstate_xor(lfs_gstate_t *a, const lfs_gstate_t *b) { in lfs_gstate_xor() argument
374 ((uint32_t*)a)[i] ^= ((const uint32_t*)b)[i]; in lfs_gstate_xor()
378 static inline bool lfs_gstate_iszero(const lfs_gstate_t *a) { in lfs_gstate_iszero() argument
380 if (((uint32_t*)a)[i] != 0) { in lfs_gstate_iszero()
388 static inline bool lfs_gstate_hasorphans(const lfs_gstate_t *a) { in lfs_gstate_hasorphans() argument
389 return lfs_tag_size(a->tag); in lfs_gstate_hasorphans()
392 static inline uint8_t lfs_gstate_getorphans(const lfs_gstate_t *a) { in lfs_gstate_getorphans() argument
393 return lfs_tag_size(a->tag); in lfs_gstate_getorphans()
396 static inline bool lfs_gstate_hasmove(const lfs_gstate_t *a) { in lfs_gstate_hasmove() argument
397 return lfs_tag_type1(a->tag); in lfs_gstate_hasmove()
401 static inline bool lfs_gstate_hasmovehere(const lfs_gstate_t *a, in lfs_gstate_hasmovehere() argument
403 return lfs_tag_type1(a->tag) && lfs_pair_cmp(a->pair, pair) == 0; in lfs_gstate_hasmovehere()
406 static inline void lfs_gstate_fromle32(lfs_gstate_t *a) { in lfs_gstate_fromle32() argument
407 a->tag = lfs_fromle32(a->tag); in lfs_gstate_fromle32()
408 a->pair[0] = lfs_fromle32(a->pair[0]); in lfs_gstate_fromle32()
409 a->pair[1] = lfs_fromle32(a->pair[1]); in lfs_gstate_fromle32()
413 static inline void lfs_gstate_tole32(lfs_gstate_t *a) { in lfs_gstate_tole32() argument
414 a->tag = lfs_tole32(a->tag); in lfs_gstate_tole32()
415 a->pair[0] = lfs_tole32(a->pair[0]); in lfs_gstate_tole32()
416 a->pair[1] = lfs_tole32(a->pair[1]); in lfs_gstate_tole32()
953 const struct lfs_attr *a = buffer; in lfs_dir_traverse() local
954 res = cb(data, LFS_MKTAG(LFS_TYPE_USERATTR + a[i].type, in lfs_dir_traverse()
955 lfs_tag_id(tag) + diff, a[i].size), a[i].buffer); in lfs_dir_traverse()