MTHCA_TABLE_CHUNK_SIZE 224 drivers/infiniband/hw/mthca/mthca_memfree.c int i = (obj & (table->num_obj - 1)) * table->obj_size / MTHCA_TABLE_CHUNK_SIZE; MTHCA_TABLE_CHUNK_SIZE 234 drivers/infiniband/hw/mthca/mthca_memfree.c table->icm[i] = mthca_alloc_icm(dev, MTHCA_TABLE_CHUNK_SIZE >> PAGE_SHIFT, MTHCA_TABLE_CHUNK_SIZE 243 drivers/infiniband/hw/mthca/mthca_memfree.c table->virt + i * MTHCA_TABLE_CHUNK_SIZE)) { MTHCA_TABLE_CHUNK_SIZE 264 drivers/infiniband/hw/mthca/mthca_memfree.c i = (obj & (table->num_obj - 1)) * table->obj_size / MTHCA_TABLE_CHUNK_SIZE; MTHCA_TABLE_CHUNK_SIZE 269 drivers/infiniband/hw/mthca/mthca_memfree.c mthca_UNMAP_ICM(dev, table->virt + i * MTHCA_TABLE_CHUNK_SIZE, MTHCA_TABLE_CHUNK_SIZE 270 drivers/infiniband/hw/mthca/mthca_memfree.c MTHCA_TABLE_CHUNK_SIZE / MTHCA_ICM_PAGE_SIZE); MTHCA_TABLE_CHUNK_SIZE 291 drivers/infiniband/hw/mthca/mthca_memfree.c icm = table->icm[idx / MTHCA_TABLE_CHUNK_SIZE]; MTHCA_TABLE_CHUNK_SIZE 292 drivers/infiniband/hw/mthca/mthca_memfree.c dma_offset = offset = idx % MTHCA_TABLE_CHUNK_SIZE; MTHCA_TABLE_CHUNK_SIZE 324 drivers/infiniband/hw/mthca/mthca_memfree.c int inc = MTHCA_TABLE_CHUNK_SIZE / table->obj_size; MTHCA_TABLE_CHUNK_SIZE 352 drivers/infiniband/hw/mthca/mthca_memfree.c for (i = start; i <= end; i += MTHCA_TABLE_CHUNK_SIZE / table->obj_size) MTHCA_TABLE_CHUNK_SIZE 367 drivers/infiniband/hw/mthca/mthca_memfree.c obj_per_chunk = MTHCA_TABLE_CHUNK_SIZE / obj_size; MTHCA_TABLE_CHUNK_SIZE 385 drivers/infiniband/hw/mthca/mthca_memfree.c for (i = 0; i * MTHCA_TABLE_CHUNK_SIZE < reserved * obj_size; ++i) { MTHCA_TABLE_CHUNK_SIZE 386 drivers/infiniband/hw/mthca/mthca_memfree.c chunk_size = MTHCA_TABLE_CHUNK_SIZE; MTHCA_TABLE_CHUNK_SIZE 387 drivers/infiniband/hw/mthca/mthca_memfree.c if ((i + 1) * MTHCA_TABLE_CHUNK_SIZE > nobj * obj_size) MTHCA_TABLE_CHUNK_SIZE 388 drivers/infiniband/hw/mthca/mthca_memfree.c chunk_size = nobj * obj_size - i * MTHCA_TABLE_CHUNK_SIZE; MTHCA_TABLE_CHUNK_SIZE 396 drivers/infiniband/hw/mthca/mthca_memfree.c virt + i * MTHCA_TABLE_CHUNK_SIZE)) { MTHCA_TABLE_CHUNK_SIZE 414 drivers/infiniband/hw/mthca/mthca_memfree.c mthca_UNMAP_ICM(dev, virt + i * MTHCA_TABLE_CHUNK_SIZE, MTHCA_TABLE_CHUNK_SIZE 415 drivers/infiniband/hw/mthca/mthca_memfree.c MTHCA_TABLE_CHUNK_SIZE / MTHCA_ICM_PAGE_SIZE); MTHCA_TABLE_CHUNK_SIZE 431 drivers/infiniband/hw/mthca/mthca_memfree.c table->virt + i * MTHCA_TABLE_CHUNK_SIZE, MTHCA_TABLE_CHUNK_SIZE 432 drivers/infiniband/hw/mthca/mthca_memfree.c MTHCA_TABLE_CHUNK_SIZE / MTHCA_ICM_PAGE_SIZE);