Lines Matching refs:mlx4_dev

869 	struct mlx4_dev	       *dev;
885 struct mlx4_dev { struct
1041 static inline int mlx4_master_func_num(struct mlx4_dev *dev) in mlx4_master_func_num()
1046 static inline int mlx4_is_master(struct mlx4_dev *dev) in mlx4_is_master()
1051 static inline int mlx4_num_reserved_sqps(struct mlx4_dev *dev) in mlx4_num_reserved_sqps()
1057 static inline int mlx4_is_qp_reserved(struct mlx4_dev *dev, u32 qpn) in mlx4_is_qp_reserved()
1065 static inline int mlx4_is_guest_proxy(struct mlx4_dev *dev, int slave, u32 qpn) in mlx4_is_guest_proxy()
1075 static inline int mlx4_is_mfunc(struct mlx4_dev *dev) in mlx4_is_mfunc()
1080 static inline int mlx4_is_slave(struct mlx4_dev *dev) in mlx4_is_slave()
1085 static inline int mlx4_is_eth(struct mlx4_dev *dev, int port) in mlx4_is_eth()
1090 int mlx4_buf_alloc(struct mlx4_dev *dev, int size, int max_direct,
1092 void mlx4_buf_free(struct mlx4_dev *dev, int size, struct mlx4_buf *buf);
1102 int mlx4_pd_alloc(struct mlx4_dev *dev, u32 *pdn);
1103 void mlx4_pd_free(struct mlx4_dev *dev, u32 pdn);
1104 int mlx4_xrcd_alloc(struct mlx4_dev *dev, u32 *xrcdn);
1105 void mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn);
1107 int mlx4_uar_alloc(struct mlx4_dev *dev, struct mlx4_uar *uar);
1108 void mlx4_uar_free(struct mlx4_dev *dev, struct mlx4_uar *uar);
1109 int mlx4_bf_alloc(struct mlx4_dev *dev, struct mlx4_bf *bf, int node);
1110 void mlx4_bf_free(struct mlx4_dev *dev, struct mlx4_bf *bf);
1112 int mlx4_mtt_init(struct mlx4_dev *dev, int npages, int page_shift,
1114 void mlx4_mtt_cleanup(struct mlx4_dev *dev, struct mlx4_mtt *mtt);
1115 u64 mlx4_mtt_addr(struct mlx4_dev *dev, struct mlx4_mtt *mtt);
1117 int mlx4_mr_alloc(struct mlx4_dev *dev, u32 pd, u64 iova, u64 size, u32 access,
1119 int mlx4_mr_free(struct mlx4_dev *dev, struct mlx4_mr *mr);
1120 int mlx4_mr_enable(struct mlx4_dev *dev, struct mlx4_mr *mr);
1121 int mlx4_mw_alloc(struct mlx4_dev *dev, u32 pd, enum mlx4_mw_type type,
1123 void mlx4_mw_free(struct mlx4_dev *dev, struct mlx4_mw *mw);
1124 int mlx4_mw_enable(struct mlx4_dev *dev, struct mlx4_mw *mw);
1125 int mlx4_write_mtt(struct mlx4_dev *dev, struct mlx4_mtt *mtt,
1127 int mlx4_buf_write_mtt(struct mlx4_dev *dev, struct mlx4_mtt *mtt,
1130 int mlx4_db_alloc(struct mlx4_dev *dev, struct mlx4_db *db, int order);
1131 void mlx4_db_free(struct mlx4_dev *dev, struct mlx4_db *db);
1133 int mlx4_alloc_hwq_res(struct mlx4_dev *dev, struct mlx4_hwq_resources *wqres,
1135 void mlx4_free_hwq_res(struct mlx4_dev *mdev, struct mlx4_hwq_resources *wqres,
1138 int mlx4_cq_alloc(struct mlx4_dev *dev, int nent, struct mlx4_mtt *mtt,
1141 void mlx4_cq_free(struct mlx4_dev *dev, struct mlx4_cq *cq);
1142 int mlx4_qp_reserve_range(struct mlx4_dev *dev, int cnt, int align,
1144 void mlx4_qp_release_range(struct mlx4_dev *dev, int base_qpn, int cnt);
1146 int mlx4_qp_alloc(struct mlx4_dev *dev, int qpn, struct mlx4_qp *qp);
1147 void mlx4_qp_free(struct mlx4_dev *dev, struct mlx4_qp *qp);
1149 int mlx4_srq_alloc(struct mlx4_dev *dev, u32 pdn, u32 cqn, u16 xrcdn,
1151 void mlx4_srq_free(struct mlx4_dev *dev, struct mlx4_srq *srq);
1152 int mlx4_srq_arm(struct mlx4_dev *dev, struct mlx4_srq *srq, int limit_watermark);
1153 int mlx4_srq_query(struct mlx4_dev *dev, struct mlx4_srq *srq, int *limit_watermark);
1155 int mlx4_INIT_PORT(struct mlx4_dev *dev, int port);
1156 int mlx4_CLOSE_PORT(struct mlx4_dev *dev, int port);
1158 int mlx4_unicast_attach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16],
1160 int mlx4_unicast_detach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16],
1162 int mlx4_multicast_attach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16],
1165 int mlx4_multicast_detach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16],
1379 int mlx4_flow_steer_promisc_add(struct mlx4_dev *dev, u8 port, u32 qpn,
1381 int mlx4_flow_steer_promisc_remove(struct mlx4_dev *dev, u8 port,
1383 int mlx4_multicast_promisc_add(struct mlx4_dev *dev, u32 qpn, u8 port);
1384 int mlx4_multicast_promisc_remove(struct mlx4_dev *dev, u32 qpn, u8 port);
1385 int mlx4_unicast_promisc_add(struct mlx4_dev *dev, u32 qpn, u8 port);
1386 int mlx4_unicast_promisc_remove(struct mlx4_dev *dev, u32 qpn, u8 port);
1387 int mlx4_SET_MCAST_FLTR(struct mlx4_dev *dev, u8 port, u64 mac, u64 clear, u8 mode);
1389 int mlx4_register_mac(struct mlx4_dev *dev, u8 port, u64 mac);
1390 void mlx4_unregister_mac(struct mlx4_dev *dev, u8 port, u64 mac);
1391 int mlx4_get_base_qpn(struct mlx4_dev *dev, u8 port);
1392 int __mlx4_replace_mac(struct mlx4_dev *dev, u8 port, int qpn, u64 new_mac);
1393 int mlx4_SET_PORT_general(struct mlx4_dev *dev, u8 port, int mtu,
1395 int mlx4_SET_PORT_user_mac(struct mlx4_dev *dev, u8 port, u8 *user_mac);
1396 int mlx4_SET_PORT_user_mtu(struct mlx4_dev *dev, u8 port, u16 user_mtu);
1397 int mlx4_SET_PORT_qpn_calc(struct mlx4_dev *dev, u8 port, u32 base_qpn,
1399 int mlx4_SET_PORT_BEACON(struct mlx4_dev *dev, u8 port, u16 time);
1400 int mlx4_SET_PORT_fcs_check(struct mlx4_dev *dev, u8 port,
1402 int mlx4_SET_PORT_VXLAN(struct mlx4_dev *dev, u8 port, u8 steering, int enable);
1403 int set_phv_bit(struct mlx4_dev *dev, u8 port, int new_val);
1404 int get_phv_bit(struct mlx4_dev *dev, u8 port, int *phv);
1405 int mlx4_get_is_vlan_offload_disabled(struct mlx4_dev *dev, u8 port,
1409 int mlx4_find_cached_mac(struct mlx4_dev *dev, u8 port, u64 mac, int *idx);
1410 int mlx4_find_cached_vlan(struct mlx4_dev *dev, u8 port, u16 vid, int *idx);
1411 int mlx4_register_vlan(struct mlx4_dev *dev, u8 port, u16 vlan, int *index);
1412 void mlx4_unregister_vlan(struct mlx4_dev *dev, u8 port, u16 vlan);
1414 int mlx4_map_phys_fmr(struct mlx4_dev *dev, struct mlx4_fmr *fmr, u64 *page_list,
1416 int mlx4_fmr_alloc(struct mlx4_dev *dev, u32 pd, u32 access, int max_pages,
1418 int mlx4_fmr_enable(struct mlx4_dev *dev, struct mlx4_fmr *fmr);
1419 void mlx4_fmr_unmap(struct mlx4_dev *dev, struct mlx4_fmr *fmr,
1421 int mlx4_fmr_free(struct mlx4_dev *dev, struct mlx4_fmr *fmr);
1422 int mlx4_SYNC_TPT(struct mlx4_dev *dev);
1423 int mlx4_test_interrupt(struct mlx4_dev *dev, int vector);
1424 int mlx4_test_async(struct mlx4_dev *dev);
1425 int mlx4_query_diag_counters(struct mlx4_dev *dev, u8 op_modifier,
1428 u32 mlx4_get_eqs_per_port(struct mlx4_dev *dev, u8 port);
1429 bool mlx4_is_eq_vector_valid(struct mlx4_dev *dev, u8 port, int vector);
1430 struct cpu_rmap *mlx4_get_cpu_rmap(struct mlx4_dev *dev, int port);
1431 int mlx4_assign_eq(struct mlx4_dev *dev, u8 port, int *vector);
1432 void mlx4_release_eq(struct mlx4_dev *dev, int vec);
1434 int mlx4_is_eq_shared(struct mlx4_dev *dev, int vector);
1435 int mlx4_eq_get_irq(struct mlx4_dev *dev, int vec);
1437 int mlx4_get_phys_port_id(struct mlx4_dev *dev);
1438 int mlx4_wol_read(struct mlx4_dev *dev, u64 *config, int port);
1439 int mlx4_wol_write(struct mlx4_dev *dev, u64 config, int port);
1441 int mlx4_counter_alloc(struct mlx4_dev *dev, u32 *idx, u8 usage);
1442 void mlx4_counter_free(struct mlx4_dev *dev, u32 idx);
1443 int mlx4_get_default_counter_index(struct mlx4_dev *dev, int port);
1445 void mlx4_set_admin_guid(struct mlx4_dev *dev, __be64 guid, int entry,
1447 __be64 mlx4_get_admin_guid(struct mlx4_dev *dev, int entry, int port);
1448 void mlx4_set_random_admin_guid(struct mlx4_dev *dev, int entry, int port);
1449 int mlx4_flow_attach(struct mlx4_dev *dev,
1451 int mlx4_flow_detach(struct mlx4_dev *dev, u64 reg_id);
1452 int mlx4_map_sw_to_hw_steering_mode(struct mlx4_dev *dev,
1454 int mlx4_map_sw_to_hw_steering_id(struct mlx4_dev *dev,
1456 int mlx4_hw_rule_sz(struct mlx4_dev *dev, enum mlx4_net_trans_rule_id id);
1458 int mlx4_tunnel_steer_add(struct mlx4_dev *dev, unsigned char *addr,
1461 void mlx4_sync_pkey_table(struct mlx4_dev *dev, int slave, int port,
1464 int mlx4_get_parav_qkey(struct mlx4_dev *dev, u32 qpn, u32 *qkey);
1466 int mlx4_is_slave_active(struct mlx4_dev *dev, int slave);
1467 int mlx4_gen_pkey_eqe(struct mlx4_dev *dev, int slave, u8 port);
1468 int mlx4_gen_guid_change_eqe(struct mlx4_dev *dev, int slave, u8 port);
1469 int mlx4_gen_slaves_port_mgt_ev(struct mlx4_dev *dev, u8 port, int attr);
1470 int mlx4_gen_port_state_change_eqe(struct mlx4_dev *dev, int slave, u8 port, u8 port_subtype_change…
1471 enum slave_port_state mlx4_get_slave_port_state(struct mlx4_dev *dev, int slave, u8 port);
1472 int set_and_calc_slave_port_state(struct mlx4_dev *dev, int slave, u8 port, int event, enum slave_p…
1474 void mlx4_put_slave_node_guid(struct mlx4_dev *dev, int slave, __be64 guid);
1475 __be64 mlx4_get_slave_node_guid(struct mlx4_dev *dev, int slave);
1477 int mlx4_get_slave_from_roce_gid(struct mlx4_dev *dev, int port, u8 *gid,
1479 int mlx4_get_roce_gid_from_slave(struct mlx4_dev *dev, int port, int slave_id,
1482 int mlx4_FLOW_STEERING_IB_UC_QP_RANGE(struct mlx4_dev *dev, u32 min_range_qpn,
1485 u64 mlx4_read_clock(struct mlx4_dev *dev);
1491 struct mlx4_active_ports mlx4_get_active_ports(struct mlx4_dev *dev, int slave);
1496 int mlx4_slave_convert_port(struct mlx4_dev *dev, int slave, int port);
1502 struct mlx4_slaves_pport mlx4_phys_to_slaves_pport(struct mlx4_dev *dev,
1508 struct mlx4_dev *dev,
1512 int mlx4_phys_to_slave_port(struct mlx4_dev *dev, int slave, int port);
1514 int mlx4_get_base_gid_ix(struct mlx4_dev *dev, int slave, int port);
1516 int mlx4_config_vxlan_port(struct mlx4_dev *dev, __be16 udp_port);
1517 int mlx4_disable_rx_port_check(struct mlx4_dev *dev, bool dis);
1518 int mlx4_config_roce_v2_port(struct mlx4_dev *dev, u16 udp_port);
1519 int mlx4_virt2phy_port_map(struct mlx4_dev *dev, u32 port1, u32 port2);
1520 int mlx4_vf_smi_enabled(struct mlx4_dev *dev, int slave, int port);
1521 int mlx4_vf_get_enable_smi_admin(struct mlx4_dev *dev, int slave, int port);
1522 int mlx4_vf_set_enable_smi_admin(struct mlx4_dev *dev, int slave, int port,
1524 int mlx4_mr_hw_get_mpt(struct mlx4_dev *dev, struct mlx4_mr *mmr,
1526 int mlx4_mr_hw_write_mpt(struct mlx4_dev *dev, struct mlx4_mr *mmr,
1528 int mlx4_mr_hw_change_pd(struct mlx4_dev *dev, struct mlx4_mpt_entry *mpt_entry,
1530 int mlx4_mr_hw_change_access(struct mlx4_dev *dev,
1533 void mlx4_mr_hw_put_mpt(struct mlx4_dev *dev,
1535 void mlx4_mr_rereg_mem_cleanup(struct mlx4_dev *dev, struct mlx4_mr *mr);
1536 int mlx4_mr_rereg_mem_write(struct mlx4_dev *dev, struct mlx4_mr *mr,
1540 int mlx4_get_module_info(struct mlx4_dev *dev, u8 port,
1542 int mlx4_max_tc(struct mlx4_dev *dev);
1588 int mlx4_ACCESS_PTYS_REG(struct mlx4_dev *dev,
1592 int mlx4_get_internal_clock_params(struct mlx4_dev *dev,
1595 static inline int mlx4_to_hw_uar_index(struct mlx4_dev *dev, int index) in mlx4_to_hw_uar_index()
1600 static inline int mlx4_get_num_reserved_uar(struct mlx4_dev *dev) in mlx4_get_num_reserved_uar()