diff options
Diffstat (limited to 'drivers/infiniband/ulp/srp/ib_srp.h')
-rw-r--r-- | drivers/infiniband/ulp/srp/ib_srp.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.h b/drivers/infiniband/ulp/srp/ib_srp.h index 2d99e52f2f5c..eb130486b1c8 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.h +++ b/drivers/infiniband/ulp/srp/ib_srp.h | |||
@@ -66,7 +66,7 @@ enum { | |||
66 | SRP_TAG_NO_REQ = ~0U, | 66 | SRP_TAG_NO_REQ = ~0U, |
67 | SRP_TAG_TSK_MGMT = 1U << 31, | 67 | SRP_TAG_TSK_MGMT = 1U << 31, |
68 | 68 | ||
69 | SRP_FMR_SIZE = 512, | 69 | SRP_MAX_PAGES_PER_MR = 512, |
70 | 70 | ||
71 | SRP_MAP_ALLOW_FMR = 0, | 71 | SRP_MAP_ALLOW_FMR = 0, |
72 | SRP_MAP_NO_FMR = 1, | 72 | SRP_MAP_NO_FMR = 1, |
@@ -88,10 +88,10 @@ struct srp_device { | |||
88 | struct ib_device *dev; | 88 | struct ib_device *dev; |
89 | struct ib_pd *pd; | 89 | struct ib_pd *pd; |
90 | struct ib_mr *mr; | 90 | struct ib_mr *mr; |
91 | u64 fmr_page_mask; | 91 | u64 mr_page_mask; |
92 | int fmr_page_size; | 92 | int mr_page_size; |
93 | int fmr_max_size; | 93 | int mr_max_size; |
94 | int max_pages_per_fmr; | 94 | int max_pages_per_mr; |
95 | bool has_fmr; | 95 | bool has_fmr; |
96 | }; | 96 | }; |
97 | 97 | ||
@@ -114,7 +114,7 @@ struct srp_request { | |||
114 | u64 *map_page; | 114 | u64 *map_page; |
115 | struct srp_direct_buf *indirect_desc; | 115 | struct srp_direct_buf *indirect_desc; |
116 | dma_addr_t indirect_dma_addr; | 116 | dma_addr_t indirect_dma_addr; |
117 | short nfmr; | 117 | short nmdesc; |
118 | short index; | 118 | short index; |
119 | }; | 119 | }; |
120 | 120 | ||
@@ -201,10 +201,10 @@ struct srp_map_state { | |||
201 | struct srp_direct_buf *desc; | 201 | struct srp_direct_buf *desc; |
202 | u64 *pages; | 202 | u64 *pages; |
203 | dma_addr_t base_dma_addr; | 203 | dma_addr_t base_dma_addr; |
204 | u32 fmr_len; | 204 | u32 dma_len; |
205 | u32 total_len; | 205 | u32 total_len; |
206 | unsigned int npages; | 206 | unsigned int npages; |
207 | unsigned int nfmr; | 207 | unsigned int nmdesc; |
208 | unsigned int ndesc; | 208 | unsigned int ndesc; |
209 | struct scatterlist *unmapped_sg; | 209 | struct scatterlist *unmapped_sg; |
210 | int unmapped_index; | 210 | int unmapped_index; |