43 #ifndef __IPZ_PT_FN_H__
44 #define __IPZ_PT_FN_H__
46 #define EHCA_PAGESHIFT 12
47 #define EHCA_PAGESIZE 4096UL
48 #define EHCA_PAGEMASK (~(EHCA_PAGESIZE-1))
49 #define EHCA_PT_ENTRIES 512UL
64 #define IPZ_SPAGE_PER_KPAGE (PAGE_SIZE / 512)
128 void *
ret = ipz_qeit_get(queue);
142 static inline int ipz_qeit_is_valid(
struct ipz_queue *queue)
155 static inline void *ipz_qeit_get_inc_valid(
struct ipz_queue *queue)
157 return ipz_qeit_is_valid(queue) ? ipz_qeit_get_inc(queue) :
NULL;
164 static inline void *ipz_qeit_reset(
struct ipz_queue *queue)
167 return ipz_qeit_get(queue);
209 const u32 nr_of_pages,
const u32 pagesize,
210 const u32 qe_size,
const u32 nr_of_sg,
238 u32 * act_nr_of_QEs,
u32 * act_nr_of_pages);
258 static inline void *ipz_eqit_eq_get_inc_valid(
struct ipz_queue *queue)
260 void *ret = ipz_qeit_get(queue);
268 static inline void *ipz_eqit_eq_peek_valid(
struct ipz_queue *queue)
270 void *ret = ipz_qeit_get(queue);
278 static inline u64 ipz_qpt_get_firstpage(
struct ipz_qpt *qpt)
284 static inline void *ipz_qpt_get_qpt(
struct ipz_qpt *qpt)