ib_verbs.h (9d4d8572a539ef807e21c196f145aa365fd52f0e) | ib_verbs.h (7416790e22452bfa86de6b55638eacf7780c8f6f) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ 2/* 3 * Copyright (c) 2004 Mellanox Technologies Ltd. All rights reserved. 4 * Copyright (c) 2004 Infinicon Corporation. All rights reserved. | 1/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ 2/* 3 * Copyright (c) 2004 Mellanox Technologies Ltd. All rights reserved. 4 * Copyright (c) 2004 Infinicon Corporation. All rights reserved. |
5 * Copyright (c) 2004 Intel Corporation. All rights reserved. | 5 * Copyright (c) 2004, 2020 Intel Corporation. All rights reserved. |
6 * Copyright (c) 2004 Topspin Corporation. All rights reserved. 7 * Copyright (c) 2004 Voltaire Corporation. All rights reserved. 8 * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved. 9 * Copyright (c) 2005, 2006, 2007 Cisco Systems. All rights reserved. 10 */ 11 12#ifndef IB_VERBS_H 13#define IB_VERBS_H --- 2415 unchanged lines hidden (view full) --- 2429 struct ib_udata *udata); 2430 int (*modify_cq)(struct ib_cq *cq, u16 cq_count, u16 cq_period); 2431 int (*destroy_cq)(struct ib_cq *cq, struct ib_udata *udata); 2432 int (*resize_cq)(struct ib_cq *cq, int cqe, struct ib_udata *udata); 2433 struct ib_mr *(*get_dma_mr)(struct ib_pd *pd, int mr_access_flags); 2434 struct ib_mr *(*reg_user_mr)(struct ib_pd *pd, u64 start, u64 length, 2435 u64 virt_addr, int mr_access_flags, 2436 struct ib_udata *udata); | 6 * Copyright (c) 2004 Topspin Corporation. All rights reserved. 7 * Copyright (c) 2004 Voltaire Corporation. All rights reserved. 8 * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved. 9 * Copyright (c) 2005, 2006, 2007 Cisco Systems. All rights reserved. 10 */ 11 12#ifndef IB_VERBS_H 13#define IB_VERBS_H --- 2415 unchanged lines hidden (view full) --- 2429 struct ib_udata *udata); 2430 int (*modify_cq)(struct ib_cq *cq, u16 cq_count, u16 cq_period); 2431 int (*destroy_cq)(struct ib_cq *cq, struct ib_udata *udata); 2432 int (*resize_cq)(struct ib_cq *cq, int cqe, struct ib_udata *udata); 2433 struct ib_mr *(*get_dma_mr)(struct ib_pd *pd, int mr_access_flags); 2434 struct ib_mr *(*reg_user_mr)(struct ib_pd *pd, u64 start, u64 length, 2435 u64 virt_addr, int mr_access_flags, 2436 struct ib_udata *udata); |
2437 struct ib_mr *(*reg_user_mr_dmabuf)(struct ib_pd *pd, u64 offset, 2438 u64 length, u64 virt_addr, int fd, 2439 int mr_access_flags, 2440 struct ib_udata *udata); |
|
2437 struct ib_mr *(*rereg_user_mr)(struct ib_mr *mr, int flags, u64 start, 2438 u64 length, u64 virt_addr, 2439 int mr_access_flags, struct ib_pd *pd, 2440 struct ib_udata *udata); 2441 int (*dereg_mr)(struct ib_mr *mr, struct ib_udata *udata); 2442 struct ib_mr *(*alloc_mr)(struct ib_pd *pd, enum ib_mr_type mr_type, 2443 u32 max_num_sg); 2444 struct ib_mr *(*alloc_mr_integrity)(struct ib_pd *pd, --- 2220 unchanged lines hidden (view full) --- 4665{ 4666 u64 v = (u64)lqpn * rqpn; 4667 4668 v ^= v >> 20; 4669 v ^= v >> 40; 4670 4671 return (u32)(v & IB_GRH_FLOWLABEL_MASK); 4672} | 2441 struct ib_mr *(*rereg_user_mr)(struct ib_mr *mr, int flags, u64 start, 2442 u64 length, u64 virt_addr, 2443 int mr_access_flags, struct ib_pd *pd, 2444 struct ib_udata *udata); 2445 int (*dereg_mr)(struct ib_mr *mr, struct ib_udata *udata); 2446 struct ib_mr *(*alloc_mr)(struct ib_pd *pd, enum ib_mr_type mr_type, 2447 u32 max_num_sg); 2448 struct ib_mr *(*alloc_mr_integrity)(struct ib_pd *pd, --- 2220 unchanged lines hidden (view full) --- 4669{ 4670 u64 v = (u64)lqpn * rqpn; 4671 4672 v ^= v >> 20; 4673 v ^= v >> 40; 4674 4675 return (u32)(v & IB_GRH_FLOWLABEL_MASK); 4676} |
4677 4678const struct ib_port_immutable* 4679ib_port_immutable_read(struct ib_device *dev, unsigned int port); |
|
4673#endif /* IB_VERBS_H */ | 4680#endif /* IB_VERBS_H */ |