• Home
  • Raw
  • Download

Lines Matching defs:ib_device_ops

2304 struct ib_device_ops {  struct
2305 struct module *owner;
2306 enum rdma_driver_id driver_id;
2307 u32 uverbs_abi_ver;
2308 unsigned int uverbs_no_driver_id_binding:1;
2315 const struct attribute_group *device_group;
2316 const struct attribute_group **port_groups;
2318 int (*post_send)(struct ib_qp *qp, const struct ib_send_wr *send_wr,
2320 int (*post_recv)(struct ib_qp *qp, const struct ib_recv_wr *recv_wr,
2322 void (*drain_rq)(struct ib_qp *qp);
2323 void (*drain_sq)(struct ib_qp *qp);
2324 int (*poll_cq)(struct ib_cq *cq, int num_entries, struct ib_wc *wc);
2325 int (*peek_cq)(struct ib_cq *cq, int wc_cnt);
2326 int (*req_notify_cq)(struct ib_cq *cq, enum ib_cq_notify_flags flags);
2327 int (*post_srq_recv)(struct ib_srq *srq,
2330 int (*process_mad)(struct ib_device *device, int process_mad_flags,
2335 int (*query_device)(struct ib_device *device,
2338 int (*modify_device)(struct ib_device *device, int device_modify_mask,
2340 void (*get_dev_fw_str)(struct ib_device *device, char *str);
2341 const struct cpumask *(*get_vector_affinity)(struct ib_device *ibdev,
2343 int (*query_port)(struct ib_device *device, u32 port_num,
2345 int (*modify_port)(struct ib_device *device, u32 port_num,
2354 int (*get_port_immutable)(struct ib_device *device, u32 port_num,
2356 enum rdma_link_layer (*get_link_layer)(struct ib_device *device,
2366 struct net_device *(*get_netdev)(struct ib_device *device,
2374 struct net_device *(*alloc_rdma_netdev)(
2379 int (*rdma_netdev_get_params)(struct ib_device *device, u32 port_num,
2387 int (*query_gid)(struct ib_device *device, u32 port_num, int index,
2402 int (*add_gid)(const struct ib_gid_attr *attr, void **context);
2411 int (*del_gid)(const struct ib_gid_attr *attr, void **context);
2412 int (*query_pkey)(struct ib_device *device, u32 port_num, u16 index,
2414 int (*alloc_ucontext)(struct ib_ucontext *context,
2416 void (*dealloc_ucontext)(struct ib_ucontext *context);
2417 int (*mmap)(struct ib_ucontext *context, struct vm_area_struct *vma);
2424 void (*mmap_free)(struct rdma_user_mmap_entry *entry);
2425 void (*disassociate_ucontext)(struct ib_ucontext *ibcontext);
2426 int (*alloc_pd)(struct ib_pd *pd, struct ib_udata *udata);
2427 int (*dealloc_pd)(struct ib_pd *pd, struct ib_udata *udata);
2428 int (*create_ah)(struct ib_ah *ah, struct rdma_ah_init_attr *attr,
2430 int (*create_user_ah)(struct ib_ah *ah, struct rdma_ah_init_attr *attr,
2432 int (*modify_ah)(struct ib_ah *ah, struct rdma_ah_attr *ah_attr);
2433 int (*query_ah)(struct ib_ah *ah, struct rdma_ah_attr *ah_attr);
2434 int (*destroy_ah)(struct ib_ah *ah, u32 flags);
2435 int (*create_srq)(struct ib_srq *srq,
2438 int (*modify_srq)(struct ib_srq *srq, struct ib_srq_attr *srq_attr,
2441 int (*query_srq)(struct ib_srq *srq, struct ib_srq_attr *srq_attr);
2442 int (*destroy_srq)(struct ib_srq *srq, struct ib_udata *udata);
2443 int (*create_qp)(struct ib_qp *qp, struct ib_qp_init_attr *qp_init_attr,
2445 int (*modify_qp)(struct ib_qp *qp, struct ib_qp_attr *qp_attr,
2447 int (*query_qp)(struct ib_qp *qp, struct ib_qp_attr *qp_attr,
2449 int (*destroy_qp)(struct ib_qp *qp, struct ib_udata *udata);
2450 int (*create_cq)(struct ib_cq *cq, const struct ib_cq_init_attr *attr,
2452 int (*modify_cq)(struct ib_cq *cq, u16 cq_count, u16 cq_period);
2453 int (*destroy_cq)(struct ib_cq *cq, struct ib_udata *udata);
2454 int (*resize_cq)(struct ib_cq *cq, int cqe, struct ib_udata *udata);
2455 struct ib_mr *(*get_dma_mr)(struct ib_pd *pd, int mr_access_flags);
2456 struct ib_mr *(*reg_user_mr)(struct ib_pd *pd, u64 start, u64 length,
2459 struct ib_mr *(*reg_user_mr_dmabuf)(struct ib_pd *pd, u64 offset,
2463 struct ib_mr *(*rereg_user_mr)(struct ib_mr *mr, int flags, u64 start,
2467 int (*dereg_mr)(struct ib_mr *mr, struct ib_udata *udata);
2468 struct ib_mr *(*alloc_mr)(struct ib_pd *pd, enum ib_mr_type mr_type,
2470 struct ib_mr *(*alloc_mr_integrity)(struct ib_pd *pd,
2473 int (*advise_mr)(struct ib_pd *pd,
2485 int (*map_mr_sg)(struct ib_mr *mr, struct scatterlist *sg, int sg_nents,
2487 int (*check_mr_status)(struct ib_mr *mr, u32 check_mask,
2489 int (*alloc_mw)(struct ib_mw *mw, struct ib_udata *udata);
2490 int (*dealloc_mw)(struct ib_mw *mw);
2491 int (*attach_mcast)(struct ib_qp *qp, union ib_gid *gid, u16 lid);
2492 int (*detach_mcast)(struct ib_qp *qp, union ib_gid *gid, u16 lid);
2493 int (*alloc_xrcd)(struct ib_xrcd *xrcd, struct ib_udata *udata);
2494 int (*dealloc_xrcd)(struct ib_xrcd *xrcd, struct ib_udata *udata);
2495 struct ib_flow *(*create_flow)(struct ib_qp *qp,
2498 int (*destroy_flow)(struct ib_flow *flow_id);
2499 struct ib_flow_action *(*create_flow_action_esp)(
2503 int (*destroy_flow_action)(struct ib_flow_action *action);
2504 int (*modify_flow_action_esp)(
2508 int (*set_vf_link_state)(struct ib_device *device, int vf, u32 port,
2510 int (*get_vf_config)(struct ib_device *device, int vf, u32 port,
2512 int (*get_vf_stats)(struct ib_device *device, int vf, u32 port,
2514 int (*get_vf_guid)(struct ib_device *device, int vf, u32 port,
2517 int (*set_vf_guid)(struct ib_device *device, int vf, u32 port, u64 guid,
2519 struct ib_wq *(*create_wq)(struct ib_pd *pd,
2522 int (*destroy_wq)(struct ib_wq *wq, struct ib_udata *udata);
2523 int (*modify_wq)(struct ib_wq *wq, struct ib_wq_attr *attr,
2525 int (*create_rwq_ind_table)(struct ib_rwq_ind_table *ib_rwq_ind_table,
2528 int (*destroy_rwq_ind_table)(struct ib_rwq_ind_table *wq_ind_table);
2529 struct ib_dm *(*alloc_dm)(struct ib_device *device,
2533 int (*dealloc_dm)(struct ib_dm *dm, struct uverbs_attr_bundle *attrs);
2534 struct ib_mr *(*reg_dm_mr)(struct ib_pd *pd, struct ib_dm *dm,
2537 int (*create_counters)(struct ib_counters *counters,
2539 int (*destroy_counters)(struct ib_counters *counters);
2540 int (*read_counters)(struct ib_counters *counters,
2543 int (*map_mr_sg_pi)(struct ib_mr *mr, struct scatterlist *data_sg,
2554 struct rdma_hw_stats *(*alloc_hw_device_stats)(struct ib_device *device);
2555 struct rdma_hw_stats *(*alloc_hw_port_stats)(struct ib_device *device,
2569 int (*get_hw_stats)(struct ib_device *device,
2575 int (*fill_res_mr_entry)(struct sk_buff *msg, struct ib_mr *ibmr);
2576 int (*fill_res_mr_entry_raw)(struct sk_buff *msg, struct ib_mr *ibmr);
2577 int (*fill_res_cq_entry)(struct sk_buff *msg, struct ib_cq *ibcq);
2578 int (*fill_res_cq_entry_raw)(struct sk_buff *msg, struct ib_cq *ibcq);
2579 int (*fill_res_qp_entry)(struct sk_buff *msg, struct ib_qp *ibqp);
2580 int (*fill_res_qp_entry_raw)(struct sk_buff *msg, struct ib_qp *ibqp);
2581 int (*fill_res_cm_id_entry)(struct sk_buff *msg, struct rdma_cm_id *id);
2588 int (*enable_driver)(struct ib_device *dev);
2592 void (*dealloc_driver)(struct ib_device *dev);
2595 void (*iw_add_ref)(struct ib_qp *qp);
2596 void (*iw_rem_ref)(struct ib_qp *qp);
2597 struct ib_qp *(*iw_get_qp)(struct ib_device *device, int qpn);
2598 int (*iw_connect)(struct iw_cm_id *cm_id,
2600 int (*iw_accept)(struct iw_cm_id *cm_id,
2602 int (*iw_reject)(struct iw_cm_id *cm_id, const void *pdata,
2604 int (*iw_create_listen)(struct iw_cm_id *cm_id, int backlog);
2605 int (*iw_destroy_listen)(struct iw_cm_id *cm_id);
2611 int (*counter_bind_qp)(struct rdma_counter *counter, struct ib_qp *qp);
2616 int (*counter_unbind_qp)(struct ib_qp *qp);
2620 int (*counter_dealloc)(struct rdma_counter *counter);
2625 struct rdma_hw_stats *(*counter_alloc_stats)(
2630 int (*counter_update_stats)(struct rdma_counter *counter);
2636 int (*fill_stat_mr_entry)(struct sk_buff *msg, struct ib_mr *ibmr);
2639 int (*query_ucontext)(struct ib_ucontext *context,
2646 int (*get_numa_node)(struct ib_device *dev);