linux/drivers/infiniband/hw/mthca
Artemy Kovalyov 3e7e1193e2 IB: Replace ib_umem page_size by page_shift
Size of pages are held by struct ib_umem in page_size field.

It is better to store it as an exponent, because page size by nature
is always power-of-two and used as a factor, divisor or ilog2's argument.

The conversion of page_size to be page_shift allows to have portable
code and avoid following error while compiling on ARM:

  ERROR: "__aeabi_uldivmod" [drivers/infiniband/core/ib_core.ko] undefined!

CC: Selvin Xavier <selvin.xavier@broadcom.com>
CC: Steve Wise <swise@chelsio.com>
CC: Lijun Ou <oulijun@huawei.com>
CC: Shiraz Saleem <shiraz.saleem@intel.com>
CC: Adit Ranadive <aditr@vmware.com>
CC: Dennis Dalessandro <dennis.dalessandro@intel.com>
CC: Ram Amrani <Ram.Amrani@Cavium.com>
Signed-off-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Acked-by: Ram Amrani <Ram.Amrani@cavium.com>
Acked-by: Shiraz Saleem <shiraz.saleem@intel.com>
Acked-by: Selvin Xavier <selvin.xavier@broadcom.com>
Acked-by: Selvin Xavier <selvin.xavier@broadcom.com>
Acked-by: Adit Ranadive <aditr@vmware.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-04-25 15:40:28 -04:00
..
Kconfig kconfig: rename CONFIG_EMBEDDED to CONFIG_EXPERT 2011-01-20 17:02:05 -08:00
Makefile
mthca_allocator.c IB/mthca: Use the dma state API instead of pci equivalents 2010-04-21 15:25:34 -07:00
mthca_av.c IB/mthca: Replace pci_pool_alloc by pci_pool_zalloc 2016-12-14 13:58:39 -05:00
mthca_catas.c IB/mthca: Remove deprecated create_singlethread_workqueue 2016-10-07 16:54:27 -04:00
mthca_cmd.c IB/mthca: Check validity of output parameter pointer 2017-04-21 12:29:31 -04:00
mthca_cmd.h IB/core cleanup: Add const on args - device->process_mad 2015-06-02 09:33:13 -04:00
mthca_config_reg.h
mthca_cq.c IB: remove in-kernel support for memory windows 2015-12-23 14:29:04 -05:00
mthca_dev.h IB/mad: Add support for additional MAD info to/from drivers 2015-06-12 14:49:17 -04:00
mthca_doorbell.h
mthca_eq.c IB: Remove unnecessary semicolons 2013-10-14 10:10:00 -07:00
mthca_mad.c IB/{core,hw}: Add constant for node_desc 2016-10-07 16:54:34 -04:00
mthca_main.c IB/mthca: switch to pci_alloc_irq_vectors 2017-02-19 09:18:45 -05:00
mthca_mcg.c IB/mthca: Stop returning separate error and status from FW commands 2011-07-15 13:33:20 -07:00
mthca_memfree.c mm: replace get_user_pages() write/force parameters with gup_flags 2016-10-19 08:11:43 -07:00
mthca_memfree.h
mthca_mr.c IB/mthca: Fix buddy->num_free allocation size 2011-11-03 17:48:25 -07:00
mthca_pd.c
mthca_profile.c IB/mthca: use swap() in mthca_make_profile() 2015-06-11 01:10:59 -04:00
mthca_profile.h
mthca_provider.c IB: Replace ib_umem page_size by page_shift 2017-04-25 15:40:28 -04:00
mthca_provider.h IB/mthca: Use the dma state API instead of pci equivalents 2010-04-21 15:25:34 -07:00
mthca_qp.c IB/core: Initialize UD header structure with IP and UDP headers 2015-12-23 10:39:53 -05:00
mthca_reset.c IB/mthca: Remove debug prints after allocation failure 2016-12-03 13:12:52 -05:00
mthca_srq.c IB/mthca: Stop returning separate error and status from FW commands 2011-07-15 13:33:20 -07:00
mthca_uar.c
mthca_user.h
mthca_wqe.h