Searched refs:MTHCA_TABLE_CHUNK_SIZE (Results 1 – 1 of 1) sorted by relevance
52 MTHCA_TABLE_CHUNK_SIZE = 1 << 18 enumerator224 int i = (obj & (table->num_obj - 1)) * table->obj_size / MTHCA_TABLE_CHUNK_SIZE; in mthca_table_get()234 table->icm[i] = mthca_alloc_icm(dev, MTHCA_TABLE_CHUNK_SIZE >> PAGE_SHIFT, in mthca_table_get()243 table->virt + i * MTHCA_TABLE_CHUNK_SIZE)) { in mthca_table_get()264 i = (obj & (table->num_obj - 1)) * table->obj_size / MTHCA_TABLE_CHUNK_SIZE; in mthca_table_put()269 mthca_UNMAP_ICM(dev, table->virt + i * MTHCA_TABLE_CHUNK_SIZE, in mthca_table_put()270 MTHCA_TABLE_CHUNK_SIZE / MTHCA_ICM_PAGE_SIZE); in mthca_table_put()291 icm = table->icm[idx / MTHCA_TABLE_CHUNK_SIZE]; in mthca_table_find()292 dma_offset = offset = idx % MTHCA_TABLE_CHUNK_SIZE; in mthca_table_find()324 int inc = MTHCA_TABLE_CHUNK_SIZE / table->obj_size; in mthca_table_get_range()[all …]