Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
verbs.c File Reference
#include <linux/errno.h>
#include <linux/err.h>
#include <linux/export.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <rdma/ib_verbs.h>
#include <rdma/ib_cache.h>

Go to the source code of this file.

Functions

int ib_rate_to_mult (enum ib_rate rate)
 
 EXPORT_SYMBOL (ib_rate_to_mult)
 
enum ib_rate mult_to_ib_rate (int mult)
 
 EXPORT_SYMBOL (mult_to_ib_rate)
 
int ib_rate_to_mbps (enum ib_rate rate)
 
 EXPORT_SYMBOL (ib_rate_to_mbps)
 
enum rdma_transport_type rdma_node_get_transport (enum rdma_node_type node_type)
 
 EXPORT_SYMBOL (rdma_node_get_transport)
 
enum rdma_link_layer rdma_port_get_link_layer (struct ib_device *device, u8 port_num)
 
 EXPORT_SYMBOL (rdma_port_get_link_layer)
 
struct ib_pdib_alloc_pd (struct ib_device *device)
 
 EXPORT_SYMBOL (ib_alloc_pd)
 
int ib_dealloc_pd (struct ib_pd *pd)
 
 EXPORT_SYMBOL (ib_dealloc_pd)
 
struct ib_ahib_create_ah (struct ib_pd *pd, struct ib_ah_attr *ah_attr)
 
 EXPORT_SYMBOL (ib_create_ah)
 
int ib_init_ah_from_wc (struct ib_device *device, u8 port_num, struct ib_wc *wc, struct ib_grh *grh, struct ib_ah_attr *ah_attr)
 
 EXPORT_SYMBOL (ib_init_ah_from_wc)
 
struct ib_ahib_create_ah_from_wc (struct ib_pd *pd, struct ib_wc *wc, struct ib_grh *grh, u8 port_num)
 
 EXPORT_SYMBOL (ib_create_ah_from_wc)
 
int ib_modify_ah (struct ib_ah *ah, struct ib_ah_attr *ah_attr)
 
 EXPORT_SYMBOL (ib_modify_ah)
 
int ib_query_ah (struct ib_ah *ah, struct ib_ah_attr *ah_attr)
 
 EXPORT_SYMBOL (ib_query_ah)
 
int ib_destroy_ah (struct ib_ah *ah)
 
 EXPORT_SYMBOL (ib_destroy_ah)
 
struct ib_srqib_create_srq (struct ib_pd *pd, struct ib_srq_init_attr *srq_init_attr)
 
 EXPORT_SYMBOL (ib_create_srq)
 
int ib_modify_srq (struct ib_srq *srq, struct ib_srq_attr *srq_attr, enum ib_srq_attr_mask srq_attr_mask)
 
 EXPORT_SYMBOL (ib_modify_srq)
 
int ib_query_srq (struct ib_srq *srq, struct ib_srq_attr *srq_attr)
 
 EXPORT_SYMBOL (ib_query_srq)
 
int ib_destroy_srq (struct ib_srq *srq)
 
 EXPORT_SYMBOL (ib_destroy_srq)
 
struct ib_qpib_open_qp (struct ib_xrcd *xrcd, struct ib_qp_open_attr *qp_open_attr)
 
 EXPORT_SYMBOL (ib_open_qp)
 
struct ib_qpib_create_qp (struct ib_pd *pd, struct ib_qp_init_attr *qp_init_attr)
 
 EXPORT_SYMBOL (ib_create_qp)
 
int ib_modify_qp_is_ok (enum ib_qp_state cur_state, enum ib_qp_state next_state, enum ib_qp_type type, enum ib_qp_attr_mask mask)
 
 EXPORT_SYMBOL (ib_modify_qp_is_ok)
 
int ib_modify_qp (struct ib_qp *qp, struct ib_qp_attr *qp_attr, int qp_attr_mask)
 
 EXPORT_SYMBOL (ib_modify_qp)
 
int ib_query_qp (struct ib_qp *qp, struct ib_qp_attr *qp_attr, int qp_attr_mask, struct ib_qp_init_attr *qp_init_attr)
 
 EXPORT_SYMBOL (ib_query_qp)
 
int ib_close_qp (struct ib_qp *qp)
 
 EXPORT_SYMBOL (ib_close_qp)
 
int ib_destroy_qp (struct ib_qp *qp)
 
 EXPORT_SYMBOL (ib_destroy_qp)
 
struct ib_cqib_create_cq (struct ib_device *device, ib_comp_handler comp_handler, void(*event_handler)(struct ib_event *, void *), void *cq_context, int cqe, int comp_vector)
 
 EXPORT_SYMBOL (ib_create_cq)
 
int ib_modify_cq (struct ib_cq *cq, u16 cq_count, u16 cq_period)
 
 EXPORT_SYMBOL (ib_modify_cq)
 
int ib_destroy_cq (struct ib_cq *cq)
 
 EXPORT_SYMBOL (ib_destroy_cq)
 
int ib_resize_cq (struct ib_cq *cq, int cqe)
 
 EXPORT_SYMBOL (ib_resize_cq)
 
struct ib_mrib_get_dma_mr (struct ib_pd *pd, int mr_access_flags)
 
 EXPORT_SYMBOL (ib_get_dma_mr)
 
struct ib_mrib_reg_phys_mr (struct ib_pd *pd, struct ib_phys_buf *phys_buf_array, int num_phys_buf, int mr_access_flags, u64 *iova_start)
 
 EXPORT_SYMBOL (ib_reg_phys_mr)
 
int ib_rereg_phys_mr (struct ib_mr *mr, int mr_rereg_mask, struct ib_pd *pd, struct ib_phys_buf *phys_buf_array, int num_phys_buf, int mr_access_flags, u64 *iova_start)
 
 EXPORT_SYMBOL (ib_rereg_phys_mr)
 
int ib_query_mr (struct ib_mr *mr, struct ib_mr_attr *mr_attr)
 
 EXPORT_SYMBOL (ib_query_mr)
 
int ib_dereg_mr (struct ib_mr *mr)
 
 EXPORT_SYMBOL (ib_dereg_mr)
 
struct ib_mrib_alloc_fast_reg_mr (struct ib_pd *pd, int max_page_list_len)
 
 EXPORT_SYMBOL (ib_alloc_fast_reg_mr)
 
struct ib_fast_reg_page_listib_alloc_fast_reg_page_list (struct ib_device *device, int max_page_list_len)
 
 EXPORT_SYMBOL (ib_alloc_fast_reg_page_list)
 
void ib_free_fast_reg_page_list (struct ib_fast_reg_page_list *page_list)
 
 EXPORT_SYMBOL (ib_free_fast_reg_page_list)
 
struct ib_mwib_alloc_mw (struct ib_pd *pd)
 
 EXPORT_SYMBOL (ib_alloc_mw)
 
int ib_dealloc_mw (struct ib_mw *mw)
 
 EXPORT_SYMBOL (ib_dealloc_mw)
 
struct ib_fmrib_alloc_fmr (struct ib_pd *pd, int mr_access_flags, struct ib_fmr_attr *fmr_attr)
 
 EXPORT_SYMBOL (ib_alloc_fmr)
 
int ib_unmap_fmr (struct list_head *fmr_list)
 
 EXPORT_SYMBOL (ib_unmap_fmr)
 
int ib_dealloc_fmr (struct ib_fmr *fmr)
 
 EXPORT_SYMBOL (ib_dealloc_fmr)
 
int ib_attach_mcast (struct ib_qp *qp, union ib_gid *gid, u16 lid)
 
 EXPORT_SYMBOL (ib_attach_mcast)
 
int ib_detach_mcast (struct ib_qp *qp, union ib_gid *gid, u16 lid)
 
 EXPORT_SYMBOL (ib_detach_mcast)
 
struct ib_xrcdib_alloc_xrcd (struct ib_device *device)
 
 EXPORT_SYMBOL (ib_alloc_xrcd)
 
int ib_dealloc_xrcd (struct ib_xrcd *xrcd)
 
 EXPORT_SYMBOL (ib_dealloc_xrcd)
 

Function Documentation

EXPORT_SYMBOL ( ib_rate_to_mult  )
EXPORT_SYMBOL ( mult_to_ib_rate  )
EXPORT_SYMBOL ( ib_rate_to_mbps  )
EXPORT_SYMBOL ( rdma_node_get_transport  )
EXPORT_SYMBOL ( rdma_port_get_link_layer  )
EXPORT_SYMBOL ( ib_alloc_pd  )
EXPORT_SYMBOL ( ib_dealloc_pd  )
EXPORT_SYMBOL ( ib_create_ah  )
EXPORT_SYMBOL ( ib_init_ah_from_wc  )
EXPORT_SYMBOL ( ib_create_ah_from_wc  )
EXPORT_SYMBOL ( ib_modify_ah  )
EXPORT_SYMBOL ( ib_query_ah  )
EXPORT_SYMBOL ( ib_destroy_ah  )
EXPORT_SYMBOL ( ib_create_srq  )
EXPORT_SYMBOL ( ib_modify_srq  )
EXPORT_SYMBOL ( ib_query_srq  )
EXPORT_SYMBOL ( ib_destroy_srq  )
EXPORT_SYMBOL ( ib_open_qp  )
EXPORT_SYMBOL ( ib_create_qp  )
EXPORT_SYMBOL ( ib_modify_qp_is_ok  )
EXPORT_SYMBOL ( ib_modify_qp  )
EXPORT_SYMBOL ( ib_query_qp  )
EXPORT_SYMBOL ( ib_close_qp  )
EXPORT_SYMBOL ( ib_destroy_qp  )
EXPORT_SYMBOL ( ib_create_cq  )
EXPORT_SYMBOL ( ib_modify_cq  )
EXPORT_SYMBOL ( ib_destroy_cq  )
EXPORT_SYMBOL ( ib_resize_cq  )
EXPORT_SYMBOL ( ib_get_dma_mr  )
EXPORT_SYMBOL ( ib_reg_phys_mr  )
EXPORT_SYMBOL ( ib_rereg_phys_mr  )
EXPORT_SYMBOL ( ib_query_mr  )
EXPORT_SYMBOL ( ib_dereg_mr  )
EXPORT_SYMBOL ( ib_alloc_fast_reg_mr  )
EXPORT_SYMBOL ( ib_alloc_fast_reg_page_list  )
EXPORT_SYMBOL ( ib_free_fast_reg_page_list  )
EXPORT_SYMBOL ( ib_alloc_mw  )
EXPORT_SYMBOL ( ib_dealloc_mw  )
EXPORT_SYMBOL ( ib_alloc_fmr  )
EXPORT_SYMBOL ( ib_unmap_fmr  )
EXPORT_SYMBOL ( ib_dealloc_fmr  )
EXPORT_SYMBOL ( ib_attach_mcast  )
EXPORT_SYMBOL ( ib_detach_mcast  )
EXPORT_SYMBOL ( ib_alloc_xrcd  )
EXPORT_SYMBOL ( ib_dealloc_xrcd  )
struct ib_mr* ib_alloc_fast_reg_mr ( struct ib_pd pd,
int  max_page_list_len 
)
read

ib_alloc_fast_reg_mr - Allocates memory region usable with the IB_WR_FAST_REG_MR send work request. : The protection domain associated with the region. : requested max physical buffer list length to be used with fast register work requests for this MR.

Definition at line 1054 of file verbs.c.

struct ib_fast_reg_page_list* ib_alloc_fast_reg_page_list ( struct ib_device device,
int  page_list_len 
)
read

ib_alloc_fast_reg_page_list - Allocates a page list array - ib device pointer. - size of the page list array to be allocated.

This allocates and returns a struct ib_fast_reg_page_list * and a page_list array that is at least page_list_len in size. The actual size is returned in max_page_list_len. The caller is responsible for initializing the contents of the page_list array before posting a send work request with the IB_WC_FAST_REG_MR opcode.

The page_list array entries must be translated using one of the ib_dma_*() functions just like the addresses passed to ib_map_phys_fmr(). Once the ib_post_send() is issued, the struct ib_fast_reg_page_list must not be modified by the caller until the IB_WC_FAST_REG_MR work request completes.

Definition at line 1075 of file verbs.c.

struct ib_fmr* ib_alloc_fmr ( struct ib_pd pd,
int  mr_access_flags,
struct ib_fmr_attr fmr_attr 
)
read

ib_alloc_fmr - Allocates a unmapped fast memory region. : The protection domain associated with the unmapped region. : Specifies the memory access rights. : Attributes of the unmapped region.

A fast memory region must be mapped before it can be used as part of a work request.

Definition at line 1137 of file verbs.c.

struct ib_mw* ib_alloc_mw ( struct ib_pd pd)
read

ib_alloc_mw - Allocates a memory window. : The protection domain associated with the memory window.

Definition at line 1102 of file verbs.c.

struct ib_pd* ib_alloc_pd ( struct ib_device device)
read

ib_alloc_pd - Allocates an unused protection domain. : The device on which to allocate the protection domain.

A protection domain object provides an association between QPs, shared receive queues, address handles, memory regions, and memory windows.

Definition at line 142 of file verbs.c.

struct ib_xrcd* ib_alloc_xrcd ( struct ib_device device)
read

ib_alloc_xrcd - Allocates an XRC domain. : The device on which to allocate the XRC domain.

Definition at line 1217 of file verbs.c.

int ib_attach_mcast ( struct ib_qp qp,
union ib_gid gid,
u16  lid 
)

ib_attach_mcast - Attaches the specified QP to a multicast group. : QP to attach to the multicast group. The QP must be type IB_QPT_UD. : Multicast group GID. : Multicast group LID in host byte order.

In order to send and receive multicast packets, subnet administration must have created the multicast group and configured the fabric appropriately. The port associated with the specified QP must also be a member of the multicast group.

Definition at line 1185 of file verbs.c.

int ib_close_qp ( struct ib_qp qp)

ib_close_qp - Release an external reference to a QP. : The QP handle to release

The opened QP handle is released by the caller. The underlying shared QP is not destroyed until all internal references are released.

Definition at line 823 of file verbs.c.

struct ib_ah* ib_create_ah ( struct ib_pd pd,
struct ib_ah_attr ah_attr 
)
read

ib_create_ah - Creates an address handle for the given address vector. : The protection domain associated with the address handle. : The attributes of the address vector.

The address handle is used to reference a local or global destination in all UD QP post sends.

Definition at line 169 of file verbs.c.

struct ib_ah* ib_create_ah_from_wc ( struct ib_pd pd,
struct ib_wc wc,
struct ib_grh grh,
u8  port_num 
)
read

ib_create_ah_from_wc - Creates an address handle associated with the sender of the specified work completion. : The protection domain associated with the address handle. : Work completion information associated with a received message. : References the received global route header. This parameter is ignored unless the work completion indicates that the GRH is valid. : The outbound port number to associate with the address.

The address handle is used to reference a local or global destination in all UD QP post sends.

Definition at line 218 of file verbs.c.

struct ib_cq* ib_create_cq ( struct ib_device device,
ib_comp_handler  comp_handler,
void(*)(struct ib_event *, void *)  event_handler,
void cq_context,
int  cqe,
int  comp_vector 
)
read

ib_create_cq - Creates a CQ on the specified device. : The device on which to create the CQ. : A user-specified callback that is invoked when a completion event occurs on the CQ. : A user-specified callback that is invoked when an asynchronous event not associated with a completion occurs on the CQ. : Context associated with the CQ returned to the user via the associated completion and event handlers. : The minimum size of the CQ. - Completion vector used to signal completion events. Must be >= 0 and < context->num_comp_vectors.

Users can examine the cq structure to determine the actual CQ size.

Definition at line 907 of file verbs.c.

struct ib_qp* ib_create_qp ( struct ib_pd pd,
struct ib_qp_init_attr qp_init_attr 
)
read

ib_create_qp - Creates a QP associated with the specified protection domain. : The protection domain associated with the QP. : A list of initial attributes required to create the QP. If QP creation succeeds, then the attributes are updated to the actual capabilities of the created QP.

Definition at line 409 of file verbs.c.

struct ib_srq* ib_create_srq ( struct ib_pd pd,
struct ib_srq_init_attr srq_init_attr 
)
read

ib_create_srq - Creates a SRQ associated with the specified protection domain. : The protection domain associated with the SRQ. : A list of initial attributes required to create the SRQ. If SRQ creation succeeds, then the attributes are updated to the actual capabilities of the created SRQ.

srq_attr->max_wr and srq_attr->max_sge are read the determine the requested size of the SRQ, and set to the actual values allocated on return. If ib_create_srq() succeeds, then max_wr and max_sge will always be at least as large as the requested values.

Definition at line 264 of file verbs.c.

int ib_dealloc_fmr ( struct ib_fmr fmr)

ib_dealloc_fmr - Deallocates a fast memory region. : The fast memory region to deallocate.

Definition at line 1169 of file verbs.c.

int ib_dealloc_mw ( struct ib_mw mw)

ib_dealloc_mw - Deallocates a memory window. : The memory window to deallocate.

Definition at line 1121 of file verbs.c.

int ib_dealloc_pd ( struct ib_pd pd)

ib_dealloc_pd - Deallocates a protection domain. : The protection domain to deallocate.

Definition at line 158 of file verbs.c.

int ib_dealloc_xrcd ( struct ib_xrcd xrcd)

ib_dealloc_xrcd - Deallocates an XRC domain. : The XRC domain to deallocate.

Definition at line 1237 of file verbs.c.

int ib_dereg_mr ( struct ib_mr mr)

ib_dereg_mr - Deregisters a memory region and removes it from the HCA translation table. : The memory region to deregister.

Definition at line 1037 of file verbs.c.

int ib_destroy_ah ( struct ib_ah ah)

ib_destroy_ah - Destroys an address handle. : The address handle to destroy.

Definition at line 248 of file verbs.c.

int ib_destroy_cq ( struct ib_cq cq)

ib_destroy_cq - Destroys the specified CQ. : The CQ to destroy.

Definition at line 936 of file verbs.c.

int ib_destroy_qp ( struct ib_qp qp)

ib_destroy_qp - Destroys the specified QP. : The QP to destroy.

Definition at line 871 of file verbs.c.

int ib_destroy_srq ( struct ib_srq srq)

ib_destroy_srq - Destroys the specified SRQ. : The SRQ to destroy.

Definition at line 313 of file verbs.c.

int ib_detach_mcast ( struct ib_qp qp,
union ib_gid gid,
u16  lid 
)

ib_detach_mcast - Detaches the specified QP from a multicast group. : QP to detach from the multicast group. : Multicast group GID. : Multicast group LID in host byte order.

Definition at line 1201 of file verbs.c.

void ib_free_fast_reg_page_list ( struct ib_fast_reg_page_list page_list)

ib_free_fast_reg_page_list - Deallocates a previously allocated page list array. - struct ib_fast_reg_page_list pointer to be deallocated.

Definition at line 1094 of file verbs.c.

struct ib_mr* ib_get_dma_mr ( struct ib_pd pd,
int  mr_access_flags 
)
read

ib_get_dma_mr - Returns a memory region for system memory that is usable for DMA. : The protection domain associated with the memory region. : Specifies the memory access rights.

Note that the ib_dma_*() functions defined below must be used to create/destroy addresses used with the Lkey or Rkey returned by ib_get_dma_mr().

Definition at line 954 of file verbs.c.

int ib_init_ah_from_wc ( struct ib_device device,
u8  port_num,
struct ib_wc wc,
struct ib_grh grh,
struct ib_ah_attr ah_attr 
)

ib_init_ah_from_wc - Initializes address handle attributes from a work completion. : Device on which the received message arrived. : Port on which the received message arrived. : Work completion associated with the received message. : References the received global route header. This parameter is ignored unless the work completion indicates that the GRH is valid. : Returned attributes that can be used when creating an address handle for replying to the message.

Definition at line 186 of file verbs.c.

int ib_modify_ah ( struct ib_ah ah,
struct ib_ah_attr ah_attr 
)

ib_modify_ah - Modifies the address vector associated with an address handle. : The address handle to modify. : The new address vector attributes to associate with the address handle.

Definition at line 232 of file verbs.c.

int ib_modify_cq ( struct ib_cq cq,
u16  cq_count,
u16  cq_period 
)

ib_modify_cq - Modifies moderation params of the CQ : The CQ to modify. : number of CQEs that will trigger an event : max period of time in usec before triggering an event

Definition at line 929 of file verbs.c.

int ib_modify_qp ( struct ib_qp qp,
struct ib_qp_attr qp_attr,
int  qp_attr_mask 
)

ib_modify_qp - Modifies the attributes for the specified QP and then transitions the QP to the given state. : The QP to modify. : On input, specifies the QP attributes to modify. On output, the current values of selected QP attributes are returned. : A bit-mask used to specify which attributes of the QP are being modified.

Definition at line 804 of file verbs.c.

int ib_modify_qp_is_ok ( enum ib_qp_state  cur_state,
enum ib_qp_state  next_state,
enum ib_qp_type  type,
enum ib_qp_attr_mask  mask 
)

ib_modify_qp_is_ok - Check that the supplied attribute mask contains all required attributes and no attributes not allowed for the given QP state transition. : Current QP state : Next QP state : QP type : Mask of supplied QP attributes

This function is a helper function that a low-level driver's modify_qp method can use to validate the consumer's input. It checks that cur_state and next_state are valid QP states, that a transition from cur_state to next_state is allowed by the IB spec, and that the attribute mask supplied is allowed for the transition.

Definition at line 774 of file verbs.c.

int ib_modify_srq ( struct ib_srq srq,
struct ib_srq_attr srq_attr,
enum ib_srq_attr_mask  srq_attr_mask 
)

ib_modify_srq - Modifies the attributes for the specified SRQ. : The SRQ to modify. : On input, specifies the SRQ attributes to modify. On output, the current values of selected SRQ attributes are returned. : A bit-mask used to specify which attributes of the SRQ are being modified.

The mask may contain IB_SRQ_MAX_WR to resize the SRQ and/or IB_SRQ_LIMIT to set the SRQ's limit and request notification when the number of receives queued drops below the limit.

Definition at line 295 of file verbs.c.

struct ib_qp* ib_open_qp ( struct ib_xrcd xrcd,
struct ib_qp_open_attr qp_open_attr 
)
read

ib_open_qp - Obtain a reference to an existing sharable QP. - XRC domain : Attributes identifying the QP to open.

Returns a reference to a sharable QP.

Definition at line 387 of file verbs.c.

int ib_query_ah ( struct ib_ah ah,
struct ib_ah_attr ah_attr 
)

ib_query_ah - Queries the address vector associated with an address handle. : The address handle to query. : The address vector attributes associated with the address handle.

Definition at line 240 of file verbs.c.

int ib_query_mr ( struct ib_mr mr,
struct ib_mr_attr mr_attr 
)

ib_query_mr - Retrieves information about a specific memory region. : The memory region to retrieve information about. : The attributes of the specified memory region.

Definition at line 1030 of file verbs.c.

int ib_query_qp ( struct ib_qp qp,
struct ib_qp_attr qp_attr,
int  qp_attr_mask,
struct ib_qp_init_attr qp_init_attr 
)

ib_query_qp - Returns the attribute list and current values for the specified QP. : The QP to query. : The attributes of the specified QP. : A bit-mask used to select specific attributes to query. : Additional attributes of the selected QP.

The qp_attr_mask may be used to limit the query to gathering only the selected attributes.

Definition at line 812 of file verbs.c.

int ib_query_srq ( struct ib_srq srq,
struct ib_srq_attr srq_attr 
)

ib_query_srq - Returns the attribute list and current values for the specified SRQ. : The SRQ to query. : The attributes of the specified SRQ.

Definition at line 305 of file verbs.c.

int ib_rate_to_mbps ( enum ib_rate  rate) const

ib_rate_to_mbps - Convert the IB rate enum to Mbps. For example, IB_RATE_2_5_GBPS will be converted to 2500. : rate to convert.

Definition at line 82 of file verbs.c.

int ib_rate_to_mult ( enum ib_rate  rate) const

ib_rate_to_mult - Convert the IB rate enum to a multiple of the base rate of 2.5 Gbit/sec. For example, IB_RATE_5_GBPS will be converted to 2, since 5 Gbit/sec is 2 * 2.5 Gbit/sec. : rate to convert.

Definition at line 48 of file verbs.c.

struct ib_mr* ib_reg_phys_mr ( struct ib_pd pd,
struct ib_phys_buf phys_buf_array,
int  num_phys_buf,
int  mr_access_flags,
u64 iova_start 
)
read

ib_reg_phys_mr - Prepares a virtually addressed memory region for use by an HCA. : The protection domain associated assigned to the registered region. : Specifies a list of physical buffers to use in the memory region. : Specifies the size of the phys_buf_array. : Specifies the memory access rights. : The offset of the region's starting I/O virtual address.

Definition at line 972 of file verbs.c.

int ib_rereg_phys_mr ( struct ib_mr mr,
int  mr_rereg_mask,
struct ib_pd pd,
struct ib_phys_buf phys_buf_array,
int  num_phys_buf,
int  mr_access_flags,
u64 iova_start 
)

ib_rereg_phys_mr - Modifies the attributes of an existing memory region. Conceptually, this call performs the functions deregister memory region followed by register physical memory region. Where possible, resources are reused instead of deallocated and reallocated. : The memory region to modify. : A bit-mask used to indicate which of the following properties of the memory region are being modified. : If IB_MR_REREG_PD is set in mr_rereg_mask, this field specifies the new protection domain to associated with the memory region, otherwise, this parameter is ignored. : If IB_MR_REREG_TRANS is set in mr_rereg_mask, this field specifies a list of physical buffers to use in the new translation, otherwise, this parameter is ignored. : If IB_MR_REREG_TRANS is set in mr_rereg_mask, this field specifies the size of the phys_buf_array, otherwise, this parameter is ignored. : If IB_MR_REREG_ACCESS is set in mr_rereg_mask, this field specifies the new memory access rights, otherwise, this parameter is ignored. : The offset of the region's starting I/O virtual address.

Definition at line 998 of file verbs.c.

int ib_resize_cq ( struct ib_cq cq,
int  cqe 
)

ib_resize_cq - Modifies the capacity of the CQ. : The CQ to resize. : The minimum size of the CQ.

Users can examine the cq structure to determine the actual CQ size.

Definition at line 945 of file verbs.c.

int ib_unmap_fmr ( struct list_head fmr_list)

ib_unmap_fmr - Removes the mapping from a list of fast memory regions. : A linked list of fast memory regions to unmap.

Definition at line 1157 of file verbs.c.

enum ib_rate mult_to_ib_rate ( int  mult) const

mult_to_ib_rate - Convert a multiple of 2.5 Gbit/sec to an IB rate enum. : multiple to convert.

Definition at line 65 of file verbs.c.

enum rdma_transport_type rdma_node_get_transport ( enum rdma_node_type  node_type)

Definition at line 108 of file verbs.c.

enum rdma_link_layer rdma_port_get_link_layer ( struct ib_device device,
u8  port_num 
)

Definition at line 124 of file verbs.c.

Variable Documentation

enum ib_qp_attr_mask opt_param[IB_QPT_MAX]

Definition at line 472 of file verbs.c.

enum ib_qp_attr_mask req_param[IB_QPT_MAX]

Definition at line 471 of file verbs.c.

int valid

Definition at line 470 of file verbs.c.