Lines Matching refs:mlx4_dev

202 	int (*verify)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr,
204 int (*wrapper)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr,
392 struct mlx4_dev *dev;
814 struct mlx4_dev *dev;
829 struct mlx4_dev *dev;
856 struct mlx4_dev dev;
910 static inline struct mlx4_priv *mlx4_priv(struct mlx4_dev *dev) in mlx4_priv()
930 int mlx4_reset(struct mlx4_dev *dev);
932 int mlx4_alloc_eq_table(struct mlx4_dev *dev);
933 void mlx4_free_eq_table(struct mlx4_dev *dev);
935 int mlx4_init_pd_table(struct mlx4_dev *dev);
936 int mlx4_init_xrcd_table(struct mlx4_dev *dev);
937 int mlx4_init_uar_table(struct mlx4_dev *dev);
938 int mlx4_init_mr_table(struct mlx4_dev *dev);
939 int mlx4_init_eq_table(struct mlx4_dev *dev);
940 int mlx4_init_cq_table(struct mlx4_dev *dev);
941 int mlx4_init_qp_table(struct mlx4_dev *dev);
942 int mlx4_init_srq_table(struct mlx4_dev *dev);
943 int mlx4_init_mcg_table(struct mlx4_dev *dev);
945 void mlx4_cleanup_pd_table(struct mlx4_dev *dev);
946 void mlx4_cleanup_xrcd_table(struct mlx4_dev *dev);
947 void mlx4_cleanup_uar_table(struct mlx4_dev *dev);
948 void mlx4_cleanup_mr_table(struct mlx4_dev *dev);
949 void mlx4_cleanup_eq_table(struct mlx4_dev *dev);
950 void mlx4_cleanup_cq_table(struct mlx4_dev *dev);
951 void mlx4_cleanup_qp_table(struct mlx4_dev *dev);
952 void mlx4_cleanup_srq_table(struct mlx4_dev *dev);
953 void mlx4_cleanup_mcg_table(struct mlx4_dev *dev);
954 int __mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn, gfp_t gfp);
955 void __mlx4_qp_free_icm(struct mlx4_dev *dev, int qpn);
956 int __mlx4_cq_alloc_icm(struct mlx4_dev *dev, int *cqn);
957 void __mlx4_cq_free_icm(struct mlx4_dev *dev, int cqn);
958 int __mlx4_srq_alloc_icm(struct mlx4_dev *dev, int *srqn);
959 void __mlx4_srq_free_icm(struct mlx4_dev *dev, int srqn);
960 int __mlx4_mpt_reserve(struct mlx4_dev *dev);
961 void __mlx4_mpt_release(struct mlx4_dev *dev, u32 index);
962 int __mlx4_mpt_alloc_icm(struct mlx4_dev *dev, u32 index, gfp_t gfp);
963 void __mlx4_mpt_free_icm(struct mlx4_dev *dev, u32 index);
964 u32 __mlx4_alloc_mtt_range(struct mlx4_dev *dev, int order);
965 void __mlx4_free_mtt_range(struct mlx4_dev *dev, u32 first_seg, int order);
967 int mlx4_WRITE_MTT_wrapper(struct mlx4_dev *dev, int slave,
972 int mlx4_SYNC_TPT_wrapper(struct mlx4_dev *dev, int slave,
977 int mlx4_SW2HW_MPT_wrapper(struct mlx4_dev *dev, int slave,
982 int mlx4_HW2SW_MPT_wrapper(struct mlx4_dev *dev, int slave,
987 int mlx4_QUERY_MPT_wrapper(struct mlx4_dev *dev, int slave,
992 int mlx4_SW2HW_EQ_wrapper(struct mlx4_dev *dev, int slave,
997 int mlx4_CONFIG_DEV_wrapper(struct mlx4_dev *dev, int slave,
1002 int mlx4_DMA_wrapper(struct mlx4_dev *dev, int slave,
1007 int __mlx4_qp_reserve_range(struct mlx4_dev *dev, int cnt, int align,
1009 void __mlx4_qp_release_range(struct mlx4_dev *dev, int base_qpn, int cnt);
1010 int __mlx4_register_mac(struct mlx4_dev *dev, u8 port, u64 mac);
1011 void __mlx4_unregister_mac(struct mlx4_dev *dev, u8 port, u64 mac);
1012 int __mlx4_write_mtt(struct mlx4_dev *dev, struct mlx4_mtt *mtt,
1014 int __mlx4_counter_alloc(struct mlx4_dev *dev, u32 *idx);
1015 void __mlx4_counter_free(struct mlx4_dev *dev, u32 idx);
1016 int mlx4_calc_vf_counters(struct mlx4_dev *dev, int slave, int port,
1018 int __mlx4_xrcd_alloc(struct mlx4_dev *dev, u32 *xrcdn);
1019 void __mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn);
1021 void mlx4_start_catas_poll(struct mlx4_dev *dev);
1022 void mlx4_stop_catas_poll(struct mlx4_dev *dev);
1023 int mlx4_catas_init(struct mlx4_dev *dev);
1024 void mlx4_catas_end(struct mlx4_dev *dev);
1026 int mlx4_register_device(struct mlx4_dev *dev);
1027 void mlx4_unregister_device(struct mlx4_dev *dev);
1028 void mlx4_dispatch_event(struct mlx4_dev *dev, enum mlx4_dev_event type,
1034 u64 mlx4_make_profile(struct mlx4_dev *dev,
1042 int mlx4_ALLOC_RES_wrapper(struct mlx4_dev *dev, int slave,
1047 int mlx4_FREE_RES_wrapper(struct mlx4_dev *dev, int slave,
1052 int mlx4_MAP_EQ_wrapper(struct mlx4_dev *dev, int slave,
1056 int mlx4_COMM_INT_wrapper(struct mlx4_dev *dev, int slave,
1061 int mlx4_HW2SW_EQ_wrapper(struct mlx4_dev *dev, int slave,
1066 int mlx4_QUERY_EQ_wrapper(struct mlx4_dev *dev, int slave,
1071 int mlx4_SW2HW_CQ_wrapper(struct mlx4_dev *dev, int slave,
1076 int mlx4_HW2SW_CQ_wrapper(struct mlx4_dev *dev, int slave,
1081 int mlx4_QUERY_CQ_wrapper(struct mlx4_dev *dev, int slave,
1086 int mlx4_MODIFY_CQ_wrapper(struct mlx4_dev *dev, int slave,
1091 int mlx4_SW2HW_SRQ_wrapper(struct mlx4_dev *dev, int slave,
1096 int mlx4_HW2SW_SRQ_wrapper(struct mlx4_dev *dev, int slave,
1101 int mlx4_QUERY_SRQ_wrapper(struct mlx4_dev *dev, int slave,
1106 int mlx4_ARM_SRQ_wrapper(struct mlx4_dev *dev, int slave,
1111 int mlx4_GEN_QP_wrapper(struct mlx4_dev *dev, int slave,
1116 int mlx4_RST2INIT_QP_wrapper(struct mlx4_dev *dev, int slave,
1121 int mlx4_INIT2INIT_QP_wrapper(struct mlx4_dev *dev, int slave,
1126 int mlx4_INIT2RTR_QP_wrapper(struct mlx4_dev *dev, int slave,
1131 int mlx4_RTR2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
1136 int mlx4_RTS2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
1141 int mlx4_SQERR2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
1146 int mlx4_2ERR_QP_wrapper(struct mlx4_dev *dev, int slave,
1151 int mlx4_RTS2SQD_QP_wrapper(struct mlx4_dev *dev, int slave,
1156 int mlx4_SQD2SQD_QP_wrapper(struct mlx4_dev *dev, int slave,
1161 int mlx4_SQD2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
1166 int mlx4_2RST_QP_wrapper(struct mlx4_dev *dev, int slave,
1171 int mlx4_QUERY_QP_wrapper(struct mlx4_dev *dev, int slave,
1177 int mlx4_GEN_EQE(struct mlx4_dev *dev, int slave, struct mlx4_eqe *eqe);
1187 int mlx4_cmd_init(struct mlx4_dev *dev);
1188 void mlx4_cmd_cleanup(struct mlx4_dev *dev, int cleanup_mask);
1189 int mlx4_multi_func_init(struct mlx4_dev *dev);
1190 int mlx4_ARM_COMM_CHANNEL(struct mlx4_dev *dev);
1191 void mlx4_multi_func_cleanup(struct mlx4_dev *dev);
1192 void mlx4_cmd_event(struct mlx4_dev *dev, u16 token, u8 status, u64 out_param);
1193 int mlx4_cmd_use_events(struct mlx4_dev *dev);
1194 void mlx4_cmd_use_polling(struct mlx4_dev *dev);
1196 int mlx4_comm_cmd(struct mlx4_dev *dev, u8 cmd, u16 param,
1200 void mlx4_cq_completion(struct mlx4_dev *dev, u32 cqn);
1201 void mlx4_cq_event(struct mlx4_dev *dev, u32 cqn, int event_type);
1203 void mlx4_qp_event(struct mlx4_dev *dev, u32 qpn, int event_type);
1205 void mlx4_srq_event(struct mlx4_dev *dev, u32 srqn, int event_type);
1209 int mlx4_SENSE_PORT(struct mlx4_dev *dev, int port,
1211 void mlx4_do_sense_ports(struct mlx4_dev *dev,
1214 void mlx4_start_sense(struct mlx4_dev *dev);
1215 void mlx4_stop_sense(struct mlx4_dev *dev);
1216 void mlx4_sense_init(struct mlx4_dev *dev);
1217 int mlx4_check_port_params(struct mlx4_dev *dev,
1219 int mlx4_change_port_types(struct mlx4_dev *dev,
1222 void mlx4_init_mac_table(struct mlx4_dev *dev, struct mlx4_mac_table *table);
1223 void mlx4_init_vlan_table(struct mlx4_dev *dev, struct mlx4_vlan_table *table);
1224 void mlx4_init_roce_gid_table(struct mlx4_dev *dev,
1226 void __mlx4_unregister_vlan(struct mlx4_dev *dev, u8 port, u16 vlan);
1227 int __mlx4_register_vlan(struct mlx4_dev *dev, u8 port, u16 vlan, int *index);
1229 int mlx4_SET_PORT(struct mlx4_dev *dev, u8 port, int pkey_tbl_sz);
1231 int mlx4_get_slave_from_resource_id(struct mlx4_dev *dev,
1234 void mlx4_delete_all_resources_for_slave(struct mlx4_dev *dev, int slave_id);
1235 void mlx4_reset_roce_gids(struct mlx4_dev *dev, int slave);
1236 int mlx4_init_resource_tracker(struct mlx4_dev *dev);
1238 void mlx4_free_resource_tracker(struct mlx4_dev *dev,
1241 int mlx4_QUERY_FW_wrapper(struct mlx4_dev *dev, int slave,
1246 int mlx4_SET_PORT_wrapper(struct mlx4_dev *dev, int slave,
1251 int mlx4_INIT_PORT_wrapper(struct mlx4_dev *dev, int slave,
1256 int mlx4_CLOSE_PORT_wrapper(struct mlx4_dev *dev, int slave,
1261 int mlx4_QUERY_DEV_CAP_wrapper(struct mlx4_dev *dev, int slave,
1266 int mlx4_QUERY_PORT_wrapper(struct mlx4_dev *dev, int slave,
1271 int mlx4_get_port_ib_caps(struct mlx4_dev *dev, u8 port, __be32 *caps);
1273 int mlx4_get_slave_pkey_gid_tbl_len(struct mlx4_dev *dev, u8 port,
1276 int mlx4_QP_ATTACH_wrapper(struct mlx4_dev *dev, int slave,
1282 int mlx4_UPDATE_QP_wrapper(struct mlx4_dev *dev, int slave,
1288 int mlx4_PROMISC_wrapper(struct mlx4_dev *dev, int slave,
1293 int mlx4_qp_detach_common(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16],
1295 int mlx4_qp_attach_common(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16],
1298 int mlx4_trans_to_dmfs_attach(struct mlx4_dev *dev, struct mlx4_qp *qp,
1302 int mlx4_SET_MCAST_FLTR_wrapper(struct mlx4_dev *dev, int slave,
1307 int mlx4_SET_VLAN_FLTR_wrapper(struct mlx4_dev *dev, int slave,
1312 int mlx4_common_set_vlan_fltr(struct mlx4_dev *dev, int function,
1314 int mlx4_common_dump_eth_stats(struct mlx4_dev *dev, int slave, u32 in_mod,
1316 int mlx4_DUMP_ETH_STATS_wrapper(struct mlx4_dev *dev, int slave,
1321 int mlx4_PKEY_TABLE_wrapper(struct mlx4_dev *dev, int slave,
1326 int mlx4_QUERY_IF_STAT_wrapper(struct mlx4_dev *dev, int slave,
1331 int mlx4_QP_FLOW_STEERING_ATTACH_wrapper(struct mlx4_dev *dev, int slave,
1336 int mlx4_QP_FLOW_STEERING_DETACH_wrapper(struct mlx4_dev *dev, int slave,
1341 int mlx4_ACCESS_REG_wrapper(struct mlx4_dev *dev, int slave,
1347 int mlx4_get_mgm_entry_size(struct mlx4_dev *dev);
1348 int mlx4_get_qp_per_mgm(struct mlx4_dev *dev);
1370 static inline spinlock_t *mlx4_tlock(struct mlx4_dev *dev) in mlx4_tlock()
1379 void mlx4_init_quotas(struct mlx4_dev *dev);
1382 void mlx4_replace_zero_macs(struct mlx4_dev *dev);
1383 int mlx4_get_slave_num_gids(struct mlx4_dev *dev, int slave, int port);
1385 int mlx4_get_vf_indx(struct mlx4_dev *dev, int slave);
1386 int mlx4_config_mad_demux(struct mlx4_dev *dev);
1387 int mlx4_do_bond(struct mlx4_dev *dev, bool enable);