Lines Matching refs:dcw
102 struct dcw *dcw; in calc_dcw_count() local
108 dcw = (struct dcw *) &tccb->tca[offset]; in calc_dcw_count()
109 count += dcw->count; in calc_dcw_count()
110 if (!(dcw->flags & DCW_FLAGS_CC)) in calc_dcw_count()
112 offset += sizeof(struct dcw) + ALIGN((int) dcw->cd_count, 4); in calc_dcw_count()
295 struct dcw *tccb_add_dcw(struct tccb *tccb, size_t tccb_size, u8 cmd, u8 flags, in tccb_add_dcw()
298 struct dcw *dcw; in tccb_add_dcw() local
304 size = ALIGN(sizeof(struct dcw) + cd_count, 4); in tccb_add_dcw()
309 dcw = (struct dcw *) &tccb->tca[tca_offset]; in tccb_add_dcw()
310 memset(dcw, 0, size); in tccb_add_dcw()
311 dcw->cmd = cmd; in tccb_add_dcw()
312 dcw->flags = flags; in tccb_add_dcw()
313 dcw->count = count; in tccb_add_dcw()
314 dcw->cd_count = cd_count; in tccb_add_dcw()
316 memcpy(&dcw->cd[0], cd, cd_count); in tccb_add_dcw()
318 return dcw; in tccb_add_dcw()