Lines Matching refs:tccb
55 struct tccb *tcw_get_tccb(struct tcw *tcw) in tcw_get_tccb()
57 return (struct tccb *) ((addr_t) tcw->tccb); in tcw_get_tccb()
94 static inline size_t tca_size(struct tccb *tccb) in tca_size() argument
96 return tccb->tcah.tcal - 12; in tca_size()
99 static u32 calc_dcw_count(struct tccb *tccb) in calc_dcw_count() argument
106 size = tca_size(tccb); in calc_dcw_count()
108 dcw = (struct dcw *) &tccb->tca[offset]; in calc_dcw_count()
156 struct tccb *tccb; in tcw_finalize() local
165 tccb = tcw_get_tccb(tcw); in tcw_finalize()
166 tcat = (struct tccb_tcat *) &tccb->tca[tca_size(tccb)]; in tcw_finalize()
169 count = calc_dcw_count(tccb); in tcw_finalize()
178 tcw->tccbl = (sizeof(struct tccb) + tca_size(tccb) + in tcw_finalize()
228 void tcw_set_tccb(struct tcw *tcw, struct tccb *tccb) in tcw_set_tccb() argument
230 tcw->tccb = (u64) ((addr_t) tccb); in tcw_set_tccb()
256 void tccb_init(struct tccb *tccb, size_t size, u32 sac) in tccb_init() argument
258 memset(tccb, 0, size); in tccb_init()
259 tccb->tcah.format = TCCB_FORMAT_DEFAULT; in tccb_init()
260 tccb->tcah.sac = sac; in tccb_init()
261 tccb->tcah.tcal = 12; in tccb_init()
295 struct dcw *tccb_add_dcw(struct tccb *tccb, size_t tccb_size, u8 cmd, u8 flags, in tccb_add_dcw() argument
303 tca_offset = tca_size(tccb); in tccb_add_dcw()
309 dcw = (struct dcw *) &tccb->tca[tca_offset]; in tccb_add_dcw()
317 tccb->tcah.tcal += size; in tccb_add_dcw()