Searched refs:hai (Results 1 – 3 of 3) sorted by relevance
99 struct hsm_action_item *hai; in mdc_kuc_write() local112 /* for mockup below */ 2 * cfs_size_round(sizeof(*hai)); in mdc_kuc_write()131 hai = hai_zero(hal); in mdc_kuc_write()132 hai->hai_action = HSMA_ARCHIVE; in mdc_kuc_write()133 hai->hai_fid.f_oid = 5; in mdc_kuc_write()134 hai->hai_len = sizeof(*hai); in mdc_kuc_write()135 hai = hai_next(hai); in mdc_kuc_write()136 hai->hai_action = HSMA_RESTORE; in mdc_kuc_write()137 hai->hai_fid.f_oid = 10; in mdc_kuc_write()138 hai->hai_len = sizeof(*hai); in mdc_kuc_write()
1941 struct hsm_action_item *hai; in lustre_swab_hal() local1948 hai = hai_zero(h); in lustre_swab_hal()1949 for (i = 0; i < h->hal_count; i++, hai = hai_next(hai)) in lustre_swab_hal()1950 lustre_swab_hai(hai); in lustre_swab_hal()
1065 static inline char *hai_dump_data_field(struct hsm_action_item *hai, in hai_dump_data_field() argument1072 data_len = hai->hai_len - sizeof(*hai); in hai_dump_data_field()1074 snprintf(ptr, 3, "%02X", (unsigned char)hai->hai_data[i]); in hai_dump_data_field()1118 static inline struct hsm_action_item *hai_next(struct hsm_action_item *hai) in hai_next() argument1120 return (struct hsm_action_item *)((char *)hai + in hai_next()1121 cfs_size_round(hai->hai_len)); in hai_next()1128 struct hsm_action_item *hai; in hal_size() local1131 hai = hai_zero(hal); in hal_size()1132 for (i = 0; i < hal->hal_count; i++, hai = hai_next(hai)) in hal_size()1133 sz += cfs_size_round(hai->hai_len); in hal_size()