Lines Matching refs:mlx4_dev

205 	int (*verify)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr,
207 int (*wrapper)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr,
394 struct mlx4_dev *dev;
835 struct mlx4_dev *dev;
851 struct mlx4_dev *dev;
883 struct mlx4_dev dev;
937 static inline struct mlx4_priv *mlx4_priv(struct mlx4_dev *dev)
957 int mlx4_reset(struct mlx4_dev *dev);
959 int mlx4_alloc_eq_table(struct mlx4_dev *dev);
960 void mlx4_free_eq_table(struct mlx4_dev *dev);
962 int mlx4_init_pd_table(struct mlx4_dev *dev);
963 int mlx4_init_xrcd_table(struct mlx4_dev *dev);
964 int mlx4_init_uar_table(struct mlx4_dev *dev);
965 int mlx4_init_mr_table(struct mlx4_dev *dev);
966 int mlx4_init_eq_table(struct mlx4_dev *dev);
967 int mlx4_init_cq_table(struct mlx4_dev *dev);
968 int mlx4_init_qp_table(struct mlx4_dev *dev);
969 int mlx4_init_srq_table(struct mlx4_dev *dev);
970 int mlx4_init_mcg_table(struct mlx4_dev *dev);
972 void mlx4_cleanup_pd_table(struct mlx4_dev *dev);
973 void mlx4_cleanup_xrcd_table(struct mlx4_dev *dev);
974 void mlx4_cleanup_uar_table(struct mlx4_dev *dev);
975 void mlx4_cleanup_mr_table(struct mlx4_dev *dev);
976 void mlx4_cleanup_eq_table(struct mlx4_dev *dev);
977 void mlx4_cleanup_cq_table(struct mlx4_dev *dev);
978 void mlx4_cleanup_qp_table(struct mlx4_dev *dev);
979 void mlx4_cleanup_srq_table(struct mlx4_dev *dev);
980 void mlx4_cleanup_mcg_table(struct mlx4_dev *dev);
981 int __mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn);
982 void __mlx4_qp_free_icm(struct mlx4_dev *dev, int qpn);
983 int __mlx4_cq_alloc_icm(struct mlx4_dev *dev, int *cqn);
984 void __mlx4_cq_free_icm(struct mlx4_dev *dev, int cqn);
985 int __mlx4_srq_alloc_icm(struct mlx4_dev *dev, int *srqn);
986 void __mlx4_srq_free_icm(struct mlx4_dev *dev, int srqn);
987 int __mlx4_mpt_reserve(struct mlx4_dev *dev);
988 void __mlx4_mpt_release(struct mlx4_dev *dev, u32 index);
989 int __mlx4_mpt_alloc_icm(struct mlx4_dev *dev, u32 index);
990 void __mlx4_mpt_free_icm(struct mlx4_dev *dev, u32 index);
991 u32 __mlx4_alloc_mtt_range(struct mlx4_dev *dev, int order);
992 void __mlx4_free_mtt_range(struct mlx4_dev *dev, u32 first_seg, int order);
994 int mlx4_WRITE_MTT_wrapper(struct mlx4_dev *dev, int slave,
999 int mlx4_SYNC_TPT_wrapper(struct mlx4_dev *dev, int slave,
1004 int mlx4_SW2HW_MPT_wrapper(struct mlx4_dev *dev, int slave,
1009 int mlx4_HW2SW_MPT_wrapper(struct mlx4_dev *dev, int slave,
1014 int mlx4_QUERY_MPT_wrapper(struct mlx4_dev *dev, int slave,
1019 int mlx4_SW2HW_EQ_wrapper(struct mlx4_dev *dev, int slave,
1024 int mlx4_CONFIG_DEV_wrapper(struct mlx4_dev *dev, int slave,
1029 int mlx4_DMA_wrapper(struct mlx4_dev *dev, int slave,
1034 int __mlx4_qp_reserve_range(struct mlx4_dev *dev, int cnt, int align,
1036 void __mlx4_qp_release_range(struct mlx4_dev *dev, int base_qpn, int cnt);
1037 int __mlx4_register_mac(struct mlx4_dev *dev, u8 port, u64 mac);
1038 void __mlx4_unregister_mac(struct mlx4_dev *dev, u8 port, u64 mac);
1039 int __mlx4_write_mtt(struct mlx4_dev *dev, struct mlx4_mtt *mtt,
1041 int __mlx4_counter_alloc(struct mlx4_dev *dev, u32 *idx);
1042 void __mlx4_counter_free(struct mlx4_dev *dev, u32 idx);
1043 int mlx4_calc_vf_counters(struct mlx4_dev *dev, int slave, int port,
1045 int __mlx4_xrcd_alloc(struct mlx4_dev *dev, u32 *xrcdn);
1046 void __mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn);
1048 void mlx4_start_catas_poll(struct mlx4_dev *dev);
1049 void mlx4_stop_catas_poll(struct mlx4_dev *dev);
1050 int mlx4_catas_init(struct mlx4_dev *dev);
1051 void mlx4_catas_end(struct mlx4_dev *dev);
1052 int mlx4_crdump_init(struct mlx4_dev *dev);
1053 void mlx4_crdump_end(struct mlx4_dev *dev);
1056 int mlx4_adev_init(struct mlx4_dev *dev);
1057 void mlx4_adev_cleanup(struct mlx4_dev *dev);
1058 int mlx4_register_device(struct mlx4_dev *dev);
1059 void mlx4_unregister_device(struct mlx4_dev *dev);
1060 void mlx4_dispatch_event(struct mlx4_dev *dev, enum mlx4_dev_event type,
1066 u64 mlx4_make_profile(struct mlx4_dev *dev,
1074 int mlx4_ALLOC_RES_wrapper(struct mlx4_dev *dev, int slave,
1079 int mlx4_FREE_RES_wrapper(struct mlx4_dev *dev, int slave,
1084 int mlx4_MAP_EQ_wrapper(struct mlx4_dev *dev, int slave,
1088 int mlx4_COMM_INT_wrapper(struct mlx4_dev *dev, int slave,
1093 int mlx4_HW2SW_EQ_wrapper(struct mlx4_dev *dev, int slave,
1098 int mlx4_QUERY_EQ_wrapper(struct mlx4_dev *dev, int slave,
1103 int mlx4_SW2HW_CQ_wrapper(struct mlx4_dev *dev, int slave,
1108 int mlx4_HW2SW_CQ_wrapper(struct mlx4_dev *dev, int slave,
1113 int mlx4_QUERY_CQ_wrapper(struct mlx4_dev *dev, int slave,
1118 int mlx4_MODIFY_CQ_wrapper(struct mlx4_dev *dev, int slave,
1123 int mlx4_SW2HW_SRQ_wrapper(struct mlx4_dev *dev, int slave,
1128 int mlx4_HW2SW_SRQ_wrapper(struct mlx4_dev *dev, int slave,
1133 int mlx4_QUERY_SRQ_wrapper(struct mlx4_dev *dev, int slave,
1138 int mlx4_ARM_SRQ_wrapper(struct mlx4_dev *dev, int slave,
1143 int mlx4_GEN_QP_wrapper(struct mlx4_dev *dev, int slave,
1148 int mlx4_RST2INIT_QP_wrapper(struct mlx4_dev *dev, int slave,
1153 int mlx4_INIT2INIT_QP_wrapper(struct mlx4_dev *dev, int slave,
1158 int mlx4_INIT2RTR_QP_wrapper(struct mlx4_dev *dev, int slave,
1163 int mlx4_RTR2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
1168 int mlx4_RTS2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
1173 int mlx4_SQERR2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
1178 int mlx4_2ERR_QP_wrapper(struct mlx4_dev *dev, int slave,
1183 int mlx4_RTS2SQD_QP_wrapper(struct mlx4_dev *dev, int slave,
1188 int mlx4_SQD2SQD_QP_wrapper(struct mlx4_dev *dev, int slave,
1193 int mlx4_SQD2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
1198 int mlx4_2RST_QP_wrapper(struct mlx4_dev *dev, int slave,
1203 int mlx4_QUERY_QP_wrapper(struct mlx4_dev *dev, int slave,
1209 int mlx4_GEN_EQE(struct mlx4_dev *dev, int slave, struct mlx4_eqe *eqe);
1219 int mlx4_cmd_init(struct mlx4_dev *dev);
1220 void mlx4_cmd_cleanup(struct mlx4_dev *dev, int cleanup_mask);
1221 int mlx4_multi_func_init(struct mlx4_dev *dev);
1222 int mlx4_ARM_COMM_CHANNEL(struct mlx4_dev *dev);
1223 void mlx4_multi_func_cleanup(struct mlx4_dev *dev);
1224 void mlx4_cmd_event(struct mlx4_dev *dev, u16 token, u8 status, u64 out_param);
1225 int mlx4_cmd_use_events(struct mlx4_dev *dev);
1226 void mlx4_cmd_use_polling(struct mlx4_dev *dev);
1228 int mlx4_comm_cmd(struct mlx4_dev *dev, u8 cmd, u16 param,
1232 void mlx4_cq_completion(struct mlx4_dev *dev, u32 cqn);
1233 void mlx4_cq_event(struct mlx4_dev *dev, u32 cqn, int event_type);
1235 void mlx4_qp_event(struct mlx4_dev *dev, u32 qpn, int event_type);
1237 void mlx4_srq_event(struct mlx4_dev *dev, u32 srqn, int event_type);
1242 int mlx4_crdump_collect(struct mlx4_dev *dev);
1244 int mlx4_SENSE_PORT(struct mlx4_dev *dev, int port,
1246 void mlx4_do_sense_ports(struct mlx4_dev *dev,
1249 void mlx4_start_sense(struct mlx4_dev *dev);
1250 void mlx4_stop_sense(struct mlx4_dev *dev);
1251 void mlx4_sense_init(struct mlx4_dev *dev);
1252 int mlx4_check_port_params(struct mlx4_dev *dev,
1254 int mlx4_change_port_types(struct mlx4_dev *dev,
1257 void mlx4_init_mac_table(struct mlx4_dev *dev, struct mlx4_mac_table *table);
1258 void mlx4_init_vlan_table(struct mlx4_dev *dev, struct mlx4_vlan_table *table);
1259 void mlx4_init_roce_gid_table(struct mlx4_dev *dev,
1261 void __mlx4_unregister_vlan(struct mlx4_dev *dev, u8 port, u16 vlan);
1262 int __mlx4_register_vlan(struct mlx4_dev *dev, u8 port, u16 vlan, int *index);
1263 int mlx4_bond_vlan_table(struct mlx4_dev *dev);
1264 int mlx4_unbond_vlan_table(struct mlx4_dev *dev);
1265 int mlx4_bond_mac_table(struct mlx4_dev *dev);
1266 int mlx4_unbond_mac_table(struct mlx4_dev *dev);
1268 int mlx4_SET_PORT(struct mlx4_dev *dev, u8 port, int pkey_tbl_sz);
1270 int mlx4_get_slave_from_resource_id(struct mlx4_dev *dev,
1273 void mlx4_delete_all_resources_for_slave(struct mlx4_dev *dev, int slave_id);
1274 void mlx4_reset_roce_gids(struct mlx4_dev *dev, int slave);
1275 int mlx4_init_resource_tracker(struct mlx4_dev *dev);
1277 void mlx4_free_resource_tracker(struct mlx4_dev *dev,
1280 int mlx4_QUERY_FW_wrapper(struct mlx4_dev *dev, int slave,
1285 int mlx4_SET_PORT_wrapper(struct mlx4_dev *dev, int slave,
1290 int mlx4_INIT_PORT_wrapper(struct mlx4_dev *dev, int slave,
1295 int mlx4_CLOSE_PORT_wrapper(struct mlx4_dev *dev, int slave,
1300 int mlx4_QUERY_DEV_CAP_wrapper(struct mlx4_dev *dev, int slave,
1305 int mlx4_QUERY_PORT_wrapper(struct mlx4_dev *dev, int slave,
1310 int mlx4_get_port_ib_caps(struct mlx4_dev *dev, u8 port, __be32 *caps);
1312 int mlx4_get_slave_pkey_gid_tbl_len(struct mlx4_dev *dev, u8 port,
1315 int mlx4_QP_ATTACH_wrapper(struct mlx4_dev *dev, int slave,
1321 int mlx4_UPDATE_QP_wrapper(struct mlx4_dev *dev, int slave,
1327 int mlx4_PROMISC_wrapper(struct mlx4_dev *dev, int slave,
1332 int mlx4_qp_detach_common(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16],
1334 int mlx4_qp_attach_common(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16],
1337 int mlx4_trans_to_dmfs_attach(struct mlx4_dev *dev, struct mlx4_qp *qp,
1341 int mlx4_SET_MCAST_FLTR_wrapper(struct mlx4_dev *dev, int slave,
1346 int mlx4_SET_VLAN_FLTR_wrapper(struct mlx4_dev *dev, int slave,
1351 int mlx4_common_set_vlan_fltr(struct mlx4_dev *dev, int function,
1353 int mlx4_DUMP_ETH_STATS_wrapper(struct mlx4_dev *dev, int slave,
1358 int mlx4_PKEY_TABLE_wrapper(struct mlx4_dev *dev, int slave,
1363 int mlx4_QUERY_IF_STAT_wrapper(struct mlx4_dev *dev, int slave,
1368 int mlx4_QP_FLOW_STEERING_ATTACH_wrapper(struct mlx4_dev *dev, int slave,
1373 int mlx4_QP_FLOW_STEERING_DETACH_wrapper(struct mlx4_dev *dev, int slave,
1378 int mlx4_ACCESS_REG_wrapper(struct mlx4_dev *dev, int slave,
1384 int mlx4_get_mgm_entry_size(struct mlx4_dev *dev);
1385 int mlx4_get_qp_per_mgm(struct mlx4_dev *dev);
1407 static inline spinlock_t *mlx4_tlock(struct mlx4_dev *dev)
1416 void mlx4_init_quotas(struct mlx4_dev *dev);
1419 void mlx4_replace_zero_macs(struct mlx4_dev *dev);
1420 int mlx4_get_slave_num_gids(struct mlx4_dev *dev, int slave, int port);
1422 int mlx4_get_vf_indx(struct mlx4_dev *dev, int slave);
1423 int mlx4_config_mad_demux(struct mlx4_dev *dev);
1424 int mlx4_do_bond(struct mlx4_dev *dev, bool enable);
1425 int mlx4_bond_fs_rules(struct mlx4_dev *dev);
1426 int mlx4_unbond_fs_rules(struct mlx4_dev *dev);