• Home
  • Raw
  • Download

Lines Matching refs:tformat

134 	struct cxgbi_tag_format tformat;  member
199 return !(tag & ppm->tformat.no_ddp_mask); in cxgbi_ppm_is_ddp_tag()
213 struct cxgbi_tag_format *tformat = &ppm->tformat; in cxgbi_ppm_make_non_ddp_tag() local
221 *final_tag = tformat->no_ddp_mask; in cxgbi_ppm_make_non_ddp_tag()
223 unsigned int shift = tformat->idx_bits + tformat->color_bits; in cxgbi_ppm_make_non_ddp_tag()
224 u32 lower = sw_tag & tformat->idx_clr_mask; in cxgbi_ppm_make_non_ddp_tag()
227 *final_tag = upper | tformat->no_ddp_mask | lower; in cxgbi_ppm_make_non_ddp_tag()
235 struct cxgbi_tag_format *tformat = &ppm->tformat; in cxgbi_ppm_decode_non_ddp_tag() local
236 unsigned int shift = tformat->idx_bits + tformat->color_bits; in cxgbi_ppm_decode_non_ddp_tag()
237 u32 lower = tag & tformat->idx_clr_mask; in cxgbi_ppm_decode_non_ddp_tag()
238 u32 upper = (tag >> tformat->rsvd_bits) << shift; in cxgbi_ppm_decode_non_ddp_tag()
247 ppm->tformat.idx_mask; in cxgbi_ppm_ddp_tag_get_idx()
272 struct cxgbi_tag_format *tformat = &ppm->tformat; in cxgbi_ppm_ddp_tag_update_sw_bits() local
273 u32 v = val >> tformat->free_bits; in cxgbi_ppm_ddp_tag_update_sw_bits()
277 val, tformat->free_bits); in cxgbi_ppm_ddp_tag_update_sw_bits()
283 *final_tag = (val << tformat->rsvd_bits) | in cxgbi_ppm_ddp_tag_update_sw_bits()
284 (orig_tag & ppm->tformat.rsvd_mask); in cxgbi_ppm_ddp_tag_update_sw_bits()
294 struct cxgbi_tag_format *tformat) in cxgbi_tagmask_check() argument
299 tformat->free_bits = 32 - 2 - bits; in cxgbi_tagmask_check()
300 tformat->rsvd_bits = bits; in cxgbi_tagmask_check()
301 tformat->color_bits = PPOD_IDX_SHIFT; in cxgbi_tagmask_check()
302 tformat->idx_bits = bits - 1 - PPOD_IDX_SHIFT; in cxgbi_tagmask_check()
303 tformat->no_ddp_mask = 1 << (bits - 1); in cxgbi_tagmask_check()
304 tformat->idx_mask = (1 << tformat->idx_bits) - 1; in cxgbi_tagmask_check()
305 tformat->color_mask = (1 << PPOD_IDX_SHIFT) - 1; in cxgbi_tagmask_check()
306 tformat->idx_clr_mask = (1 << (bits - 1)) - 1; in cxgbi_tagmask_check()
307 tformat->rsvd_mask = (1 << bits) - 1; in cxgbi_tagmask_check()
311 tagmask, tformat->rsvd_bits, tformat->idx_bits, in cxgbi_tagmask_check()
312 tformat->color_bits, tformat->no_ddp_mask, tformat->rsvd_mask, in cxgbi_tagmask_check()
313 tformat->pgsz_order[0], tformat->pgsz_order[1], in cxgbi_tagmask_check()
314 tformat->pgsz_order[2], tformat->pgsz_order[3]); in cxgbi_tagmask_check()