Lines Matching refs:tidaw
118 static u32 calc_cbc_size(struct tidaw *tidaw, int num) in calc_cbc_size() argument
126 if (tidaw[i].flags & TIDAW_FLAGS_LAST) in calc_cbc_size()
131 data_count += tidaw[i].count; in calc_cbc_size()
132 if (tidaw[i].flags & TIDAW_FLAGS_INSERT_CBC) { in calc_cbc_size()
156 struct tidaw *tidaw; in tcw_finalize() local
162 tidaw = tcw_get_data(tcw); in tcw_finalize()
164 tidaw[num_tidaws - 1].flags |= TIDAW_FLAGS_LAST; in tcw_finalize()
172 count += calc_cbc_size(tidaw, num_tidaws); in tcw_finalize()
339 struct tidaw *tcw_add_tidaw(struct tcw *tcw, int num_tidaws, u8 flags, in tcw_add_tidaw()
342 struct tidaw *tidaw; in tcw_add_tidaw() local
345 tidaw = ((struct tidaw *) tcw_get_data(tcw)) + num_tidaws; in tcw_add_tidaw()
346 memset(tidaw, 0, sizeof(struct tidaw)); in tcw_add_tidaw()
347 tidaw->flags = flags; in tcw_add_tidaw()
348 tidaw->count = count; in tcw_add_tidaw()
349 tidaw->addr = virt_to_dma64(addr); in tcw_add_tidaw()
350 return tidaw; in tcw_add_tidaw()