Lines Matching refs:mlx4_dev
203 int (*verify)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr,
205 int (*wrapper)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr,
392 struct mlx4_dev *dev;
833 struct mlx4_dev *dev;
849 struct mlx4_dev *dev;
876 struct mlx4_dev dev;
930 static inline struct mlx4_priv *mlx4_priv(struct mlx4_dev *dev) in mlx4_priv()
950 int mlx4_reset(struct mlx4_dev *dev);
952 int mlx4_alloc_eq_table(struct mlx4_dev *dev);
953 void mlx4_free_eq_table(struct mlx4_dev *dev);
955 int mlx4_init_pd_table(struct mlx4_dev *dev);
956 int mlx4_init_xrcd_table(struct mlx4_dev *dev);
957 int mlx4_init_uar_table(struct mlx4_dev *dev);
958 int mlx4_init_mr_table(struct mlx4_dev *dev);
959 int mlx4_init_eq_table(struct mlx4_dev *dev);
960 int mlx4_init_cq_table(struct mlx4_dev *dev);
961 int mlx4_init_qp_table(struct mlx4_dev *dev);
962 int mlx4_init_srq_table(struct mlx4_dev *dev);
963 int mlx4_init_mcg_table(struct mlx4_dev *dev);
965 void mlx4_cleanup_pd_table(struct mlx4_dev *dev);
966 void mlx4_cleanup_xrcd_table(struct mlx4_dev *dev);
967 void mlx4_cleanup_uar_table(struct mlx4_dev *dev);
968 void mlx4_cleanup_mr_table(struct mlx4_dev *dev);
969 void mlx4_cleanup_eq_table(struct mlx4_dev *dev);
970 void mlx4_cleanup_cq_table(struct mlx4_dev *dev);
971 void mlx4_cleanup_qp_table(struct mlx4_dev *dev);
972 void mlx4_cleanup_srq_table(struct mlx4_dev *dev);
973 void mlx4_cleanup_mcg_table(struct mlx4_dev *dev);
974 int __mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn);
975 void __mlx4_qp_free_icm(struct mlx4_dev *dev, int qpn);
976 int __mlx4_cq_alloc_icm(struct mlx4_dev *dev, int *cqn);
977 void __mlx4_cq_free_icm(struct mlx4_dev *dev, int cqn);
978 int __mlx4_srq_alloc_icm(struct mlx4_dev *dev, int *srqn);
979 void __mlx4_srq_free_icm(struct mlx4_dev *dev, int srqn);
980 int __mlx4_mpt_reserve(struct mlx4_dev *dev);
981 void __mlx4_mpt_release(struct mlx4_dev *dev, u32 index);
982 int __mlx4_mpt_alloc_icm(struct mlx4_dev *dev, u32 index);
983 void __mlx4_mpt_free_icm(struct mlx4_dev *dev, u32 index);
984 u32 __mlx4_alloc_mtt_range(struct mlx4_dev *dev, int order);
985 void __mlx4_free_mtt_range(struct mlx4_dev *dev, u32 first_seg, int order);
987 int mlx4_WRITE_MTT_wrapper(struct mlx4_dev *dev, int slave,
992 int mlx4_SYNC_TPT_wrapper(struct mlx4_dev *dev, int slave,
997 int mlx4_SW2HW_MPT_wrapper(struct mlx4_dev *dev, int slave,
1002 int mlx4_HW2SW_MPT_wrapper(struct mlx4_dev *dev, int slave,
1007 int mlx4_QUERY_MPT_wrapper(struct mlx4_dev *dev, int slave,
1012 int mlx4_SW2HW_EQ_wrapper(struct mlx4_dev *dev, int slave,
1017 int mlx4_CONFIG_DEV_wrapper(struct mlx4_dev *dev, int slave,
1022 int mlx4_DMA_wrapper(struct mlx4_dev *dev, int slave,
1027 int __mlx4_qp_reserve_range(struct mlx4_dev *dev, int cnt, int align,
1029 void __mlx4_qp_release_range(struct mlx4_dev *dev, int base_qpn, int cnt);
1030 int __mlx4_register_mac(struct mlx4_dev *dev, u8 port, u64 mac);
1031 void __mlx4_unregister_mac(struct mlx4_dev *dev, u8 port, u64 mac);
1032 int __mlx4_write_mtt(struct mlx4_dev *dev, struct mlx4_mtt *mtt,
1034 int __mlx4_counter_alloc(struct mlx4_dev *dev, u32 *idx);
1035 void __mlx4_counter_free(struct mlx4_dev *dev, u32 idx);
1036 int mlx4_calc_vf_counters(struct mlx4_dev *dev, int slave, int port,
1038 int __mlx4_xrcd_alloc(struct mlx4_dev *dev, u32 *xrcdn);
1039 void __mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn);
1041 void mlx4_start_catas_poll(struct mlx4_dev *dev);
1042 void mlx4_stop_catas_poll(struct mlx4_dev *dev);
1043 int mlx4_catas_init(struct mlx4_dev *dev);
1044 void mlx4_catas_end(struct mlx4_dev *dev);
1045 int mlx4_crdump_init(struct mlx4_dev *dev);
1046 void mlx4_crdump_end(struct mlx4_dev *dev);
1048 int mlx4_register_device(struct mlx4_dev *dev);
1049 void mlx4_unregister_device(struct mlx4_dev *dev);
1050 void mlx4_dispatch_event(struct mlx4_dev *dev, enum mlx4_dev_event type,
1056 u64 mlx4_make_profile(struct mlx4_dev *dev,
1064 int mlx4_ALLOC_RES_wrapper(struct mlx4_dev *dev, int slave,
1069 int mlx4_FREE_RES_wrapper(struct mlx4_dev *dev, int slave,
1074 int mlx4_MAP_EQ_wrapper(struct mlx4_dev *dev, int slave,
1078 int mlx4_COMM_INT_wrapper(struct mlx4_dev *dev, int slave,
1083 int mlx4_HW2SW_EQ_wrapper(struct mlx4_dev *dev, int slave,
1088 int mlx4_QUERY_EQ_wrapper(struct mlx4_dev *dev, int slave,
1093 int mlx4_SW2HW_CQ_wrapper(struct mlx4_dev *dev, int slave,
1098 int mlx4_HW2SW_CQ_wrapper(struct mlx4_dev *dev, int slave,
1103 int mlx4_QUERY_CQ_wrapper(struct mlx4_dev *dev, int slave,
1108 int mlx4_MODIFY_CQ_wrapper(struct mlx4_dev *dev, int slave,
1113 int mlx4_SW2HW_SRQ_wrapper(struct mlx4_dev *dev, int slave,
1118 int mlx4_HW2SW_SRQ_wrapper(struct mlx4_dev *dev, int slave,
1123 int mlx4_QUERY_SRQ_wrapper(struct mlx4_dev *dev, int slave,
1128 int mlx4_ARM_SRQ_wrapper(struct mlx4_dev *dev, int slave,
1133 int mlx4_GEN_QP_wrapper(struct mlx4_dev *dev, int slave,
1138 int mlx4_RST2INIT_QP_wrapper(struct mlx4_dev *dev, int slave,
1143 int mlx4_INIT2INIT_QP_wrapper(struct mlx4_dev *dev, int slave,
1148 int mlx4_INIT2RTR_QP_wrapper(struct mlx4_dev *dev, int slave,
1153 int mlx4_RTR2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
1158 int mlx4_RTS2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
1163 int mlx4_SQERR2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
1168 int mlx4_2ERR_QP_wrapper(struct mlx4_dev *dev, int slave,
1173 int mlx4_RTS2SQD_QP_wrapper(struct mlx4_dev *dev, int slave,
1178 int mlx4_SQD2SQD_QP_wrapper(struct mlx4_dev *dev, int slave,
1183 int mlx4_SQD2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
1188 int mlx4_2RST_QP_wrapper(struct mlx4_dev *dev, int slave,
1193 int mlx4_QUERY_QP_wrapper(struct mlx4_dev *dev, int slave,
1199 int mlx4_GEN_EQE(struct mlx4_dev *dev, int slave, struct mlx4_eqe *eqe);
1209 int mlx4_cmd_init(struct mlx4_dev *dev);
1210 void mlx4_cmd_cleanup(struct mlx4_dev *dev, int cleanup_mask);
1211 int mlx4_multi_func_init(struct mlx4_dev *dev);
1212 int mlx4_ARM_COMM_CHANNEL(struct mlx4_dev *dev);
1213 void mlx4_multi_func_cleanup(struct mlx4_dev *dev);
1214 void mlx4_cmd_event(struct mlx4_dev *dev, u16 token, u8 status, u64 out_param);
1215 int mlx4_cmd_use_events(struct mlx4_dev *dev);
1216 void mlx4_cmd_use_polling(struct mlx4_dev *dev);
1218 int mlx4_comm_cmd(struct mlx4_dev *dev, u8 cmd, u16 param,
1222 void mlx4_cq_completion(struct mlx4_dev *dev, u32 cqn);
1223 void mlx4_cq_event(struct mlx4_dev *dev, u32 cqn, int event_type);
1225 void mlx4_qp_event(struct mlx4_dev *dev, u32 qpn, int event_type);
1227 void mlx4_srq_event(struct mlx4_dev *dev, u32 srqn, int event_type);
1232 int mlx4_crdump_collect(struct mlx4_dev *dev);
1234 int mlx4_SENSE_PORT(struct mlx4_dev *dev, int port,
1236 void mlx4_do_sense_ports(struct mlx4_dev *dev,
1239 void mlx4_start_sense(struct mlx4_dev *dev);
1240 void mlx4_stop_sense(struct mlx4_dev *dev);
1241 void mlx4_sense_init(struct mlx4_dev *dev);
1242 int mlx4_check_port_params(struct mlx4_dev *dev,
1244 int mlx4_change_port_types(struct mlx4_dev *dev,
1247 void mlx4_init_mac_table(struct mlx4_dev *dev, struct mlx4_mac_table *table);
1248 void mlx4_init_vlan_table(struct mlx4_dev *dev, struct mlx4_vlan_table *table);
1249 void mlx4_init_roce_gid_table(struct mlx4_dev *dev,
1251 void __mlx4_unregister_vlan(struct mlx4_dev *dev, u8 port, u16 vlan);
1252 int __mlx4_register_vlan(struct mlx4_dev *dev, u8 port, u16 vlan, int *index);
1253 int mlx4_bond_vlan_table(struct mlx4_dev *dev);
1254 int mlx4_unbond_vlan_table(struct mlx4_dev *dev);
1255 int mlx4_bond_mac_table(struct mlx4_dev *dev);
1256 int mlx4_unbond_mac_table(struct mlx4_dev *dev);
1258 int mlx4_SET_PORT(struct mlx4_dev *dev, u8 port, int pkey_tbl_sz);
1260 int mlx4_get_slave_from_resource_id(struct mlx4_dev *dev,
1263 void mlx4_delete_all_resources_for_slave(struct mlx4_dev *dev, int slave_id);
1264 void mlx4_reset_roce_gids(struct mlx4_dev *dev, int slave);
1265 int mlx4_init_resource_tracker(struct mlx4_dev *dev);
1267 void mlx4_free_resource_tracker(struct mlx4_dev *dev,
1270 int mlx4_QUERY_FW_wrapper(struct mlx4_dev *dev, int slave,
1275 int mlx4_SET_PORT_wrapper(struct mlx4_dev *dev, int slave,
1280 int mlx4_INIT_PORT_wrapper(struct mlx4_dev *dev, int slave,
1285 int mlx4_CLOSE_PORT_wrapper(struct mlx4_dev *dev, int slave,
1290 int mlx4_QUERY_DEV_CAP_wrapper(struct mlx4_dev *dev, int slave,
1295 int mlx4_QUERY_PORT_wrapper(struct mlx4_dev *dev, int slave,
1300 int mlx4_get_port_ib_caps(struct mlx4_dev *dev, u8 port, __be32 *caps);
1302 int mlx4_get_slave_pkey_gid_tbl_len(struct mlx4_dev *dev, u8 port,
1305 int mlx4_QP_ATTACH_wrapper(struct mlx4_dev *dev, int slave,
1311 int mlx4_UPDATE_QP_wrapper(struct mlx4_dev *dev, int slave,
1317 int mlx4_PROMISC_wrapper(struct mlx4_dev *dev, int slave,
1322 int mlx4_qp_detach_common(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16],
1324 int mlx4_qp_attach_common(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16],
1327 int mlx4_trans_to_dmfs_attach(struct mlx4_dev *dev, struct mlx4_qp *qp,
1331 int mlx4_SET_MCAST_FLTR_wrapper(struct mlx4_dev *dev, int slave,
1336 int mlx4_SET_VLAN_FLTR_wrapper(struct mlx4_dev *dev, int slave,
1341 int mlx4_common_set_vlan_fltr(struct mlx4_dev *dev, int function,
1343 int mlx4_DUMP_ETH_STATS_wrapper(struct mlx4_dev *dev, int slave,
1348 int mlx4_PKEY_TABLE_wrapper(struct mlx4_dev *dev, int slave,
1353 int mlx4_QUERY_IF_STAT_wrapper(struct mlx4_dev *dev, int slave,
1358 int mlx4_QP_FLOW_STEERING_ATTACH_wrapper(struct mlx4_dev *dev, int slave,
1363 int mlx4_QP_FLOW_STEERING_DETACH_wrapper(struct mlx4_dev *dev, int slave,
1368 int mlx4_ACCESS_REG_wrapper(struct mlx4_dev *dev, int slave,
1374 int mlx4_get_mgm_entry_size(struct mlx4_dev *dev);
1375 int mlx4_get_qp_per_mgm(struct mlx4_dev *dev);
1397 static inline spinlock_t *mlx4_tlock(struct mlx4_dev *dev) in mlx4_tlock()
1406 void mlx4_init_quotas(struct mlx4_dev *dev);
1409 void mlx4_replace_zero_macs(struct mlx4_dev *dev);
1410 int mlx4_get_slave_num_gids(struct mlx4_dev *dev, int slave, int port);
1412 int mlx4_get_vf_indx(struct mlx4_dev *dev, int slave);
1413 int mlx4_config_mad_demux(struct mlx4_dev *dev);
1414 int mlx4_do_bond(struct mlx4_dev *dev, bool enable);
1415 int mlx4_bond_fs_rules(struct mlx4_dev *dev);
1416 int mlx4_unbond_fs_rules(struct mlx4_dev *dev);