Lines Matching defs:ppm
120 /* per cpu ppm pool */
124 spinlock_t lock; /* ppm pool lock */
143 spinlock_t map_lock; /* ppm map lock */
197 static inline int cxgbi_ppm_is_ddp_tag(struct cxgbi_ppm *ppm, u32 tag)
199 return !(tag & ppm->tformat.no_ddp_mask);
202 static inline int cxgbi_ppm_sw_tag_is_usable(struct cxgbi_ppm *ppm,
209 static inline int cxgbi_ppm_make_non_ddp_tag(struct cxgbi_ppm *ppm,
213 struct cxgbi_tag_format *tformat = &ppm->tformat;
215 if (!cxgbi_ppm_sw_tag_is_usable(ppm, sw_tag)) {
232 static inline u32 cxgbi_ppm_decode_non_ddp_tag(struct cxgbi_ppm *ppm,
235 struct cxgbi_tag_format *tformat = &ppm->tformat;
243 static inline u32 cxgbi_ppm_ddp_tag_get_idx(struct cxgbi_ppm *ppm,
247 ppm->tformat.idx_mask;
249 return hw_idx - ppm->base_idx;
259 cxgbi_ppm_get_tag_caller_data(struct cxgbi_ppm *ppm,
262 u32 idx = cxgbi_ppm_ddp_tag_get_idx(ppm, ddp_tag);
264 return ppm->ppod_data[idx].caller_data;
268 static inline int cxgbi_ppm_ddp_tag_update_sw_bits(struct cxgbi_ppm *ppm,
272 struct cxgbi_tag_format *tformat = &ppm->tformat;
280 if (!cxgbi_ppm_is_ddp_tag(ppm, orig_tag))
284 (orig_tag & ppm->tformat.rsvd_mask);
317 int cxgbi_ppm_find_page_index(struct cxgbi_ppm *ppm, unsigned long pgsz);
318 void cxgbi_ppm_make_ppod_hdr(struct cxgbi_ppm *ppm, u32 tag,
331 int cxgbi_ppm_release(struct cxgbi_ppm *ppm);