Lines Matching refs:type
55 enum mlx4_db_type type) in __add_page() argument
62 pp = ps / db_size[type]; in __add_page()
79 page->next = context->db_list[type]; in __add_page()
80 context->db_list[type] = page; in __add_page()
87 uint32_t *mlx4_alloc_db(struct mlx4_context *context, enum mlx4_db_type type) in mlx4_alloc_db() argument
95 for (page = context->db_list[type]; page; page = page->next) in mlx4_alloc_db()
99 page = __add_page(context, type); in mlx4_alloc_db()
111 db = page->buf.buf + (i * 8 * sizeof (long) + (j - 1)) * db_size[type]; in mlx4_alloc_db()
119 void mlx4_free_db(struct mlx4_context *context, enum mlx4_db_type type, uint32_t *db) in mlx4_free_db() argument
127 for (page = context->db_list[type]; page; page = page->next) in mlx4_free_db()
134 i = ((void *) db - page->buf.buf) / db_size[type]; in mlx4_free_db()
141 context->db_list[type] = page->next; in mlx4_free_db()