Lines Matching defs:index
118 void *mthca_array_get(struct mthca_array *array, int index)
120 int p = (index * sizeof (void *)) >> PAGE_SHIFT;
123 return array->page_list[p].page[index & MTHCA_ARRAY_MASK];
128 int mthca_array_set(struct mthca_array *array, int index, void *value)
130 int p = (index * sizeof (void *)) >> PAGE_SHIFT;
139 array->page_list[p].page[index & MTHCA_ARRAY_MASK] = value;
145 void mthca_array_clear(struct mthca_array *array, int index)
147 int p = (index * sizeof (void *)) >> PAGE_SHIFT;
153 array->page_list[p].page[index & MTHCA_ARRAY_MASK] = NULL;
156 pr_debug("Array %p index %d page %d with ref count %d < 0\n",
157 array, index, p, array->page_list[p].used);