@@ -1475,12 +1475,6 @@ enum ib_mr_rereg_flags {
14751475 IB_MR_REREG_SUPPORTED = ((IB_MR_REREG_ACCESS << 1 ) - 1 )
14761476};
14771477
1478- struct ib_fmr_attr {
1479- int max_pages ;
1480- int max_maps ;
1481- u8 page_shift ;
1482- };
1483-
14841478struct ib_umem ;
14851479
14861480enum rdma_remove_reason {
@@ -1855,14 +1849,6 @@ struct ib_mw {
18551849 enum ib_mw_type type ;
18561850};
18571851
1858- struct ib_fmr {
1859- struct ib_device * device ;
1860- struct ib_pd * pd ;
1861- struct list_head list ;
1862- u32 lkey ;
1863- u32 rkey ;
1864- };
1865-
18661852/* Supported steering options */
18671853enum ib_flow_attr_type {
18681854 /* steering according to rule specifications */
@@ -2505,12 +2491,6 @@ struct ib_device_ops {
25052491 struct ib_mw * (* alloc_mw )(struct ib_pd * pd , enum ib_mw_type type ,
25062492 struct ib_udata * udata );
25072493 int (* dealloc_mw )(struct ib_mw * mw );
2508- struct ib_fmr * (* alloc_fmr )(struct ib_pd * pd , int mr_access_flags ,
2509- struct ib_fmr_attr * fmr_attr );
2510- int (* map_phys_fmr )(struct ib_fmr * fmr , u64 * page_list , int list_len ,
2511- u64 iova );
2512- int (* unmap_fmr )(struct list_head * fmr_list );
2513- int (* dealloc_fmr )(struct ib_fmr * fmr );
25142494 int (* attach_mcast )(struct ib_qp * qp , union ib_gid * gid , u16 lid );
25152495 int (* detach_mcast )(struct ib_qp * qp , union ib_gid * gid , u16 lid );
25162496 struct ib_xrcd * (* alloc_xrcd )(struct ib_device * device ,
@@ -4319,45 +4299,6 @@ static inline u32 ib_inc_rkey(u32 rkey)
43194299 return ((rkey + 1 ) & mask ) | (rkey & ~mask );
43204300}
43214301
4322- /**
4323- * ib_alloc_fmr - Allocates a unmapped fast memory region.
4324- * @pd: The protection domain associated with the unmapped region.
4325- * @mr_access_flags: Specifies the memory access rights.
4326- * @fmr_attr: Attributes of the unmapped region.
4327- *
4328- * A fast memory region must be mapped before it can be used as part of
4329- * a work request.
4330- */
4331- struct ib_fmr * ib_alloc_fmr (struct ib_pd * pd ,
4332- int mr_access_flags ,
4333- struct ib_fmr_attr * fmr_attr );
4334-
4335- /**
4336- * ib_map_phys_fmr - Maps a list of physical pages to a fast memory region.
4337- * @fmr: The fast memory region to associate with the pages.
4338- * @page_list: An array of physical pages to map to the fast memory region.
4339- * @list_len: The number of pages in page_list.
4340- * @iova: The I/O virtual address to use with the mapped region.
4341- */
4342- static inline int ib_map_phys_fmr (struct ib_fmr * fmr ,
4343- u64 * page_list , int list_len ,
4344- u64 iova )
4345- {
4346- return fmr -> device -> ops .map_phys_fmr (fmr , page_list , list_len , iova );
4347- }
4348-
4349- /**
4350- * ib_unmap_fmr - Removes the mapping from a list of fast memory regions.
4351- * @fmr_list: A linked list of fast memory regions to unmap.
4352- */
4353- int ib_unmap_fmr (struct list_head * fmr_list );
4354-
4355- /**
4356- * ib_dealloc_fmr - Deallocates a fast memory region.
4357- * @fmr: The fast memory region to deallocate.
4358- */
4359- int ib_dealloc_fmr (struct ib_fmr * fmr );
4360-
43614302/**
43624303 * ib_attach_mcast - Attaches the specified QP to a multicast group.
43634304 * @qp: QP to attach to the multicast group. The QP must be type
0 commit comments