Home
last modified time | relevance | path

Searched refs:q_offset (Results 1 – 3 of 3) sorted by relevance

/linux-2.6.39/drivers/infiniband/hw/ehca/
Dipz_pt_fn.h93 static inline void *ipz_qeit_calc(struct ipz_queue *queue, u64 q_offset) in ipz_qeit_calc() argument
96 if (q_offset >= queue->queue_length) in ipz_qeit_calc()
98 current_page = (queue->queue_pages)[q_offset >> EHCA_PAGESHIFT]; in ipz_qeit_calc()
99 return &current_page->entries[q_offset & (EHCA_PAGESIZE - 1)]; in ipz_qeit_calc()
173 int ipz_queue_abs_to_offset(struct ipz_queue *queue, u64 addr, u64 *q_offset);
Dipz_pt_fn.c80 int ipz_queue_abs_to_offset(struct ipz_queue *queue, u64 addr, u64 *q_offset) in ipz_queue_abs_to_offset() argument
86 *q_offset = addr - page + i * queue->pagesize; in ipz_queue_abs_to_offset()
/linux-2.6.39/drivers/net/ehea/
Dehea_qmr.h209 static inline void *hw_qeit_calc(struct hw_queue *queue, u64 q_offset) in hw_qeit_calc() argument
213 if (q_offset >= queue->queue_length) in hw_qeit_calc()
214 q_offset -= queue->queue_length; in hw_qeit_calc()
215 current_page = (queue->queue_pages)[q_offset >> EHEA_PAGESHIFT]; in hw_qeit_calc()
216 return &current_page->entries[q_offset & (EHEA_PAGESIZE - 1)]; in hw_qeit_calc()