Home
last modified time | relevance | path

Searched refs:ib_device (Results 1 – 25 of 217) sorted by relevance

123456789

/kernel/linux/linux-5.10/drivers/infiniband/core/
Dcore_priv.h81 int ib_device_register_sysfs(struct ib_device *device);
82 void ib_device_unregister_sysfs(struct ib_device *device);
83 int ib_device_rename(struct ib_device *ibdev, const char *name);
84 int ib_device_set_dim(struct ib_device *ibdev, u8 use_dim);
86 typedef void (*roce_netdev_callback)(struct ib_device *device, u8 port,
89 typedef bool (*roce_netdev_filter)(struct ib_device *device, u8 port,
92 struct net_device *ib_device_get_netdev(struct ib_device *ib_dev,
95 void ib_enum_roce_netdev(struct ib_device *ib_dev,
105 typedef int (*nldev_callback)(struct ib_device *device,
119 int ib_get_client_nl_info(struct ib_device *ibdev, const char *client_name,
[all …]
Ddevice.c140 bool rdma_dev_access_netns(const struct ib_device *dev, const struct net *net) in rdma_dev_access_netns()
185 static void free_netdevs(struct ib_device *ib_dev);
187 static void __ib_unregister_device(struct ib_device *device);
193 static void __ibdev_printk(const char *level, const struct ib_device *ibdev, in __ibdev_printk()
211 void ibdev_printk(const char *level, const struct ib_device *ibdev, in ibdev_printk()
229 void func(const struct ib_device *ibdev, const char *fmt, ...) \
257 static int rdma_dev_change_netns(struct ib_device *device, struct net *cur_net,
266 static void ib_device_check_mandatory(struct ib_device *device) in ib_device_check_mandatory()
306 struct ib_device *ib_device_get_by_index(const struct net *net, u32 index) in ib_device_get_by_index()
308 struct ib_device *device; in ib_device_get_by_index()
[all …]
Droce_gid_mgmt.c73 bool (*is_supported)(const struct ib_device *device, u8 port_num);
82 unsigned long roce_gid_type_mask_support(struct ib_device *ib_dev, u8 port) in roce_gid_type_mask_support()
98 static void update_gid(enum gid_op_type gid_op, struct ib_device *ib_dev, in update_gid()
147 is_eth_port_of_netdev_filter(struct ib_device *ib_dev, u8 port, in is_eth_port_of_netdev_filter()
171 is_eth_port_inactive_slave_filter(struct ib_device *ib_dev, u8 port, in is_eth_port_inactive_slave_filter()
200 is_ndev_for_default_gid_filter(struct ib_device *ib_dev, u8 port, in is_ndev_for_default_gid_filter()
226 static bool pass_all_filter(struct ib_device *ib_dev, u8 port, in pass_all_filter()
232 static bool upper_device_filter(struct ib_device *ib_dev, u8 port, in upper_device_filter()
263 is_upper_ndev_bond_master_filter(struct ib_device *ib_dev, u8 port, in is_upper_ndev_bond_master_filter()
282 struct ib_device *ib_dev, in update_gid_ip()
[all …]
Dcache.c124 static void dispatch_gid_change_event(struct ib_device *ib_dev, u8 port) in dispatch_gid_change_event()
200 static struct ib_gid_table *rdma_gid_table(struct ib_device *device, u8 port) in rdma_gid_table()
239 struct ib_device *device = entry->attr.device; in free_gid_entry_locked()
284 struct ib_device *device = entry->attr.device; in free_gid_work()
382 static void del_gid(struct ib_device *ib_dev, u8 port, in del_gid()
546 static int __ib_cache_gid_add(struct ib_device *ib_dev, u8 port, in __ib_cache_gid_add()
590 int ib_cache_gid_add(struct ib_device *ib_dev, u8 port, in ib_cache_gid_add()
601 _ib_cache_gid_del(struct ib_device *ib_dev, u8 port, in _ib_cache_gid_del()
630 int ib_cache_gid_del(struct ib_device *ib_dev, u8 port, in ib_cache_gid_del()
641 int ib_cache_gid_del_all_netdev_gids(struct ib_device *ib_dev, u8 port, in ib_cache_gid_del_all_netdev_gids()
[all …]
Dcgroup.c17 void ib_device_register_rdmacg(struct ib_device *device) in ib_device_register_rdmacg()
32 void ib_device_unregister_rdmacg(struct ib_device *device) in ib_device_unregister_rdmacg()
38 struct ib_device *device, in ib_rdmacg_try_charge()
47 struct ib_device *device, in ib_rdmacg_uncharge()
Dcounters.c34 int rdma_counter_set_auto_mode(struct ib_device *dev, u8 port, in rdma_counter_set_auto_mode()
67 static struct rdma_counter *rdma_counter_alloc(struct ib_device *dev, u8 port, in rdma_counter_alloc()
199 struct ib_device *dev = counter->device; in counter_history_stat_update()
224 struct ib_device *dev = qp->device; in rdma_get_counter_auto_mode()
274 struct ib_device *dev = qp->device; in rdma_counter_bind_qp_auto()
337 struct ib_device *dev = counter->device; in rdma_counter_query_stats()
350 static u64 get_running_counters_hwstat_sum(struct ib_device *dev, in get_running_counters_hwstat_sum()
387 u64 rdma_counter_get_hwstat_value(struct ib_device *dev, u8 port, u32 index) in rdma_counter_get_hwstat_value()
402 static struct ib_qp *rdma_counter_get_qp(struct ib_device *dev, u32 qp_num) in rdma_counter_get_qp()
431 static struct rdma_counter *rdma_get_counter_by_id(struct ib_device *dev, in rdma_get_counter_by_id()
[all …]
Dagent.h43 extern int ib_agent_port_open(struct ib_device *device, int port_num);
45 extern int ib_agent_port_close(struct ib_device *device, int port_num);
48 const struct ib_wc *wc, const struct ib_device *device,
Drestrack.c23 int rdma_restrack_init(struct ib_device *dev) in rdma_restrack_init()
59 void rdma_restrack_clean(struct ib_device *dev) in rdma_restrack_clean()
111 int rdma_restrack_count(struct ib_device *dev, enum rdma_restrack_type type) in rdma_restrack_count()
126 static struct ib_device *res_to_dev(struct rdma_restrack_entry *res) in res_to_dev()
222 struct ib_device *dev = res_to_dev(res); in rdma_restrack_add()
270 rdma_restrack_get_byid(struct ib_device *dev, in rdma_restrack_get_byid()
312 struct ib_device *dev; in rdma_restrack_del()
Dagent.c57 __ib_get_agent_port(const struct ib_device *device, int port_num) in __ib_get_agent_port()
70 ib_get_agent_port(const struct ib_device *device, int port_num) in ib_get_agent_port()
82 const struct ib_wc *wc, const struct ib_device *device, in agent_send_response()
150 int ib_agent_port_open(struct ib_device *device, int port_num) in ib_agent_port_open()
200 int ib_agent_port_close(struct ib_device *device, int port_num) in ib_agent_port_close()
/kernel/linux/linux-5.10/include/rdma/
Dib_cache.h13 int rdma_query_gid(struct ib_device *device, u8 port_num, int index,
16 const struct ib_gid_attr *rdma_find_gid(struct ib_device *device,
20 const struct ib_gid_attr *rdma_find_gid_by_port(struct ib_device *ib_dev,
26 struct ib_device *device, const union ib_gid *gid, u8 port_num,
45 int ib_get_cached_pkey(struct ib_device *device_handle,
61 int ib_find_cached_pkey(struct ib_device *device,
77 int ib_find_exact_cached_pkey(struct ib_device *device,
91 int ib_get_cached_lmc(struct ib_device *device,
104 int ib_get_cached_port_state(struct ib_device *device,
109 const struct ib_gid_attr *rdma_get_gid_attr(struct ib_device *device,
[all …]
Drdma_counter.h15 struct ib_device;
37 struct ib_device *device;
46 void rdma_counter_init(struct ib_device *dev);
47 void rdma_counter_release(struct ib_device *dev);
48 int rdma_counter_set_auto_mode(struct ib_device *dev, u8 port,
54 u64 rdma_counter_get_hwstat_value(struct ib_device *dev, u8 port, u32 index);
55 int rdma_counter_bind_qpn(struct ib_device *dev, u8 port,
57 int rdma_counter_bind_qpn_alloc(struct ib_device *dev, u8 port,
59 int rdma_counter_unbind_qpn(struct ib_device *dev, u8 port,
61 int rdma_counter_get_mode(struct ib_device *dev, u8 port,
Dib_verbs.h60 void ibdev_printk(const char *level, const struct ib_device *ibdev,
63 void ibdev_emerg(const struct ib_device *ibdev, const char *format, ...);
65 void ibdev_alert(const struct ib_device *ibdev, const char *format, ...);
67 void ibdev_crit(const struct ib_device *ibdev, const char *format, ...);
69 void ibdev_err(const struct ib_device *ibdev, const char *format, ...);
71 void ibdev_warn(const struct ib_device *ibdev, const char *format, ...);
73 void ibdev_notice(const struct ib_device *ibdev, const char *format, ...);
75 void ibdev_info(const struct ib_device *ibdev, const char *format, ...);
84 void ibdev_dbg(const struct ib_device *ibdev, const char *format, ...) {} in ibdev_dbg()
127 void ibdev_dbg_ratelimited(const struct ib_device *ibdev, const char *format, ...) {} in ibdev_dbg_ratelimited()
[all …]
Drestrack.h17 struct ib_device;
107 int rdma_restrack_count(struct ib_device *dev,
145 struct rdma_restrack_entry *rdma_restrack_get_byid(struct ib_device *dev,
Dib_umem_odp.h86 ib_umem_odp_get(struct ib_device *device, unsigned long addr, size_t size,
88 struct ib_umem_odp *ib_umem_odp_alloc_implicit(struct ib_device *device,
105 ib_umem_odp_get(struct ib_device *device, unsigned long addr, size_t size, in ib_umem_odp_get()
Diw_cm.h59 struct ib_device *device;
103 struct iw_cm_id *iw_create_cm_id(struct ib_device *device,
135 struct ib_qp *iw_cm_get_qp(struct ib_device *device, int qpn);
/kernel/linux/linux-5.10/drivers/infiniband/hw/efa/
Defa.h49 struct ib_device ibdev;
120 int efa_query_device(struct ib_device *ibdev,
123 int efa_query_port(struct ib_device *ibdev, u8 port,
128 int efa_query_gid(struct ib_device *ibdev, u8 port, int index,
130 int efa_query_pkey(struct ib_device *ibdev, u8 port, u16 index,
145 int efa_get_port_immutable(struct ib_device *ibdev, u8 port_num,
158 enum rdma_link_layer efa_port_link_layer(struct ib_device *ibdev,
160 struct rdma_hw_stats *efa_alloc_hw_stats(struct ib_device *ibdev, u8 port_num);
161 int efa_get_hw_stats(struct ib_device *ibdev, struct rdma_hw_stats *stats,
/kernel/linux/linux-5.10/drivers/infiniband/hw/qedr/
Dverbs.h35 int qedr_query_device(struct ib_device *ibdev,
37 int qedr_query_port(struct ib_device *, u8 port, struct ib_port_attr *props);
39 int qedr_iw_query_gid(struct ib_device *ibdev, u8 port,
42 int qedr_query_pkey(struct ib_device *, u8 port, u16 index, u16 *pkey);
94 int qedr_process_mad(struct ib_device *ibdev, int process_mad_flags,
100 int qedr_port_immutable(struct ib_device *ibdev, u8 port_num,
/kernel/linux/linux-5.10/drivers/infiniband/ulp/iser/
Diser_initiator.c168 ib_dma_sync_single_for_cpu(device->ib_device, in iser_create_send_desc()
184 ib_dma_unmap_single(device->ib_device, desc->req_dma, in iser_free_login_buf()
187 ib_dma_unmap_single(device->ib_device, desc->rsp_dma, in iser_free_login_buf()
207 desc->req_dma = ib_dma_map_single(device->ib_device, desc->req, in iser_alloc_login_buf()
210 if (ib_dma_mapping_error(device->ib_device, in iser_alloc_login_buf()
218 desc->rsp_dma = ib_dma_map_single(device->ib_device, desc->rsp, in iser_alloc_login_buf()
221 if (ib_dma_mapping_error(device->ib_device, in iser_alloc_login_buf()
230 ib_dma_unmap_single(device->ib_device, desc->req_dma, in iser_alloc_login_buf()
270 dma_addr = ib_dma_map_single(device->ib_device, (void *)rx_desc, in iser_alloc_rx_descriptors()
272 if (ib_dma_mapping_error(device->ib_device, dma_addr)) in iser_alloc_rx_descriptors()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/usnic/
Dusnic_ib_verbs.h39 enum rdma_link_layer usnic_ib_port_link_layer(struct ib_device *device,
41 int usnic_ib_query_device(struct ib_device *ibdev,
44 int usnic_ib_query_port(struct ib_device *ibdev, u8 port,
49 int usnic_ib_query_gid(struct ib_device *ibdev, u8 port, int index,
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Dib_virt.c51 int mlx5_ib_get_vf_config(struct ib_device *device, int vf, u8 port, in mlx5_ib_get_vf_config()
93 int mlx5_ib_set_vf_link_state(struct ib_device *device, int vf, in mlx5_ib_set_vf_link_state()
121 int mlx5_ib_get_vf_stats(struct ib_device *device, int vf, in mlx5_ib_get_vf_stats()
152 static int set_vf_node_guid(struct ib_device *device, int vf, u8 port, u64 guid) in set_vf_node_guid()
175 static int set_vf_port_guid(struct ib_device *device, int vf, u8 port, u64 guid) in set_vf_port_guid()
198 int mlx5_ib_set_vf_guid(struct ib_device *device, int vf, u8 port, in mlx5_ib_set_vf_guid()
209 int mlx5_ib_get_vf_guid(struct ib_device *device, int vf, u8 port, in mlx5_ib_get_vf_guid()
/kernel/linux/linux-5.10/drivers/infiniband/hw/bnxt_re/
Dib_verbs.h149 int bnxt_re_query_device(struct ib_device *ibdev,
152 int bnxt_re_query_port(struct ib_device *ibdev, u8 port_num,
154 int bnxt_re_get_port_immutable(struct ib_device *ibdev, u8 port_num,
156 void bnxt_re_query_fw_str(struct ib_device *ibdev, char *str);
157 int bnxt_re_query_pkey(struct ib_device *ibdev, u8 port_num,
161 int bnxt_re_query_gid(struct ib_device *ibdev, u8 port_num,
163 enum rdma_link_layer bnxt_re_get_link_layer(struct ib_device *ibdev,
/kernel/linux/linux-5.10/drivers/infiniband/sw/siw/
Dsiw_verbs.h39 int siw_query_port(struct ib_device *base_dev, u8 port,
41 int siw_get_port_immutable(struct ib_device *base_dev, u8 port,
43 int siw_query_device(struct ib_device *base_dev, struct ib_device_attr *attr,
47 int siw_query_port(struct ib_device *base_dev, u8 port,
49 int siw_query_gid(struct ib_device *base_dev, u8 port, int idx,
/kernel/linux/linux-5.10/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.h54 int ocrdma_query_device(struct ib_device *, struct ib_device_attr *props,
56 int ocrdma_query_port(struct ib_device *, u8 port, struct ib_port_attr *props);
59 ocrdma_query_protocol(struct ib_device *device, u8 port_num);
62 int ocrdma_query_pkey(struct ib_device *, u8 port, u16 index, u16 *pkey);
/kernel/linux/linux-5.10/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_verbs.h383 int pvrdma_query_device(struct ib_device *ibdev,
386 int pvrdma_query_port(struct ib_device *ibdev, u8 port,
388 int pvrdma_query_gid(struct ib_device *ibdev, u8 port,
390 int pvrdma_query_pkey(struct ib_device *ibdev, u8 port,
392 enum rdma_link_layer pvrdma_port_link_layer(struct ib_device *ibdev,
394 int pvrdma_modify_device(struct ib_device *ibdev, int mask,
396 int pvrdma_modify_port(struct ib_device *ibdev, u8 port,
/kernel/linux/linux-5.10/drivers/infiniband/ulp/isert/
Dib_isert.c109 struct ib_device *ib_dev = device->ib_device; in isert_create_qp()
128 factor = rdma_rw_mr_factor(device->ib_device, cma_id->port_num, in isert_create_qp()
131 attr.cap.max_send_sge = device->ib_device->attrs.max_send_sge; in isert_create_qp()
153 struct ib_device *ib_dev = device->ib_device; in isert_alloc_rx_descriptors()
199 struct ib_device *ib_dev = isert_conn->device->ib_device; in isert_free_rx_descriptors()
219 struct ib_device *ib_dev = device->ib_device; in isert_create_device_ib_res()
271 if (device->ib_device->node_guid == cma_id->device->node_guid) { in isert_device_get()
288 device->ib_device = cma_id->device; in isert_device_get()
321 struct ib_device *ib_dev = isert_conn->device->ib_device; in isert_free_login_buf()
334 struct ib_device *ib_dev) in isert_alloc_login_buf()
[all …]

123456789