Lines Matching refs:tidaw
117 static u32 calc_cbc_size(struct tidaw *tidaw, int num) in calc_cbc_size() argument
125 if (tidaw[i].flags & TIDAW_FLAGS_LAST) in calc_cbc_size()
130 data_count += tidaw[i].count; in calc_cbc_size()
131 if (tidaw[i].flags & TIDAW_FLAGS_INSERT_CBC) { in calc_cbc_size()
155 struct tidaw *tidaw; in tcw_finalize() local
161 tidaw = tcw_get_data(tcw); in tcw_finalize()
163 tidaw[num_tidaws - 1].flags |= TIDAW_FLAGS_LAST; in tcw_finalize()
171 count += calc_cbc_size(tidaw, num_tidaws); in tcw_finalize()
338 struct tidaw *tcw_add_tidaw(struct tcw *tcw, int num_tidaws, u8 flags, in tcw_add_tidaw()
341 struct tidaw *tidaw; in tcw_add_tidaw() local
344 tidaw = ((struct tidaw *) tcw_get_data(tcw)) + num_tidaws; in tcw_add_tidaw()
345 memset(tidaw, 0, sizeof(struct tidaw)); in tcw_add_tidaw()
346 tidaw->flags = flags; in tcw_add_tidaw()
347 tidaw->count = count; in tcw_add_tidaw()
348 tidaw->addr = (u64) ((addr_t) addr); in tcw_add_tidaw()
349 return tidaw; in tcw_add_tidaw()