Lines Matching refs:target
17 struct target {
42 static inline struct target target_decode(unsigned target)
44 if (target >= TARGET_GROUP_START)
45 return (struct target) {
47 .group = target - TARGET_GROUP_START
50 if (target >= TARGET_DEV_START)
51 return (struct target) {
53 .group = target - TARGET_DEV_START
56 return (struct target) { .type = TARGET_NULL };
63 u16 target)
66 const struct bch_devs_mask *t = bch2_target_to_mask(c, target);
75 u16 target)
77 struct bch_devs_mask rw_devs = target_rw_devs(c, data_type, target);