Lines Matching refs:tccb
54 struct tccb *tcw_get_tccb(struct tcw *tcw) in tcw_get_tccb()
56 return (struct tccb *) ((addr_t) tcw->tccb); in tcw_get_tccb()
93 static inline size_t tca_size(struct tccb *tccb) in tca_size() argument
95 return tccb->tcah.tcal - 12; in tca_size()
98 static u32 calc_dcw_count(struct tccb *tccb) in calc_dcw_count() argument
105 size = tca_size(tccb); in calc_dcw_count()
107 dcw = (struct dcw *) &tccb->tca[offset]; in calc_dcw_count()
155 struct tccb *tccb; in tcw_finalize() local
164 tccb = tcw_get_tccb(tcw); in tcw_finalize()
165 tcat = (struct tccb_tcat *) &tccb->tca[tca_size(tccb)]; in tcw_finalize()
168 count = calc_dcw_count(tccb); in tcw_finalize()
177 tcw->tccbl = (sizeof(struct tccb) + tca_size(tccb) + in tcw_finalize()
227 void tcw_set_tccb(struct tcw *tcw, struct tccb *tccb) in tcw_set_tccb() argument
229 tcw->tccb = (u64) ((addr_t) tccb); in tcw_set_tccb()
255 void tccb_init(struct tccb *tccb, size_t size, u32 sac) in tccb_init() argument
257 memset(tccb, 0, size); in tccb_init()
258 tccb->tcah.format = TCCB_FORMAT_DEFAULT; in tccb_init()
259 tccb->tcah.sac = sac; in tccb_init()
260 tccb->tcah.tcal = 12; in tccb_init()
294 struct dcw *tccb_add_dcw(struct tccb *tccb, size_t tccb_size, u8 cmd, u8 flags, in tccb_add_dcw() argument
302 tca_offset = tca_size(tccb); in tccb_add_dcw()
308 dcw = (struct dcw *) &tccb->tca[tca_offset]; in tccb_add_dcw()
316 tccb->tcah.tcal += size; in tccb_add_dcw()