Lines Matching defs:index
113 void *mthca_array_get(struct mthca_array *array, int index)
115 int p = (index * sizeof (void *)) >> PAGE_SHIFT;
118 return array->page_list[p].page[index & MTHCA_ARRAY_MASK];
123 int mthca_array_set(struct mthca_array *array, int index, void *value)
125 int p = (index * sizeof (void *)) >> PAGE_SHIFT;
134 array->page_list[p].page[index & MTHCA_ARRAY_MASK] = value;
140 void mthca_array_clear(struct mthca_array *array, int index)
142 int p = (index * sizeof (void *)) >> PAGE_SHIFT;
148 array->page_list[p].page[index & MTHCA_ARRAY_MASK] = NULL;
151 pr_debug("Array %p index %d page %d with ref count %d < 0\n",
152 array, index, p, array->page_list[p].used);