Lines Matching refs:mlx4_dev

200 	int (*verify)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr,
202 int (*wrapper)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr,
384 struct mlx4_dev *dev;
800 struct mlx4_dev *dev;
814 struct mlx4_dev *dev;
841 struct mlx4_dev dev;
894 static inline struct mlx4_priv *mlx4_priv(struct mlx4_dev *dev) in mlx4_priv()
914 int mlx4_reset(struct mlx4_dev *dev);
916 int mlx4_alloc_eq_table(struct mlx4_dev *dev);
917 void mlx4_free_eq_table(struct mlx4_dev *dev);
919 int mlx4_init_pd_table(struct mlx4_dev *dev);
920 int mlx4_init_xrcd_table(struct mlx4_dev *dev);
921 int mlx4_init_uar_table(struct mlx4_dev *dev);
922 int mlx4_init_mr_table(struct mlx4_dev *dev);
923 int mlx4_init_eq_table(struct mlx4_dev *dev);
924 int mlx4_init_cq_table(struct mlx4_dev *dev);
925 int mlx4_init_qp_table(struct mlx4_dev *dev);
926 int mlx4_init_srq_table(struct mlx4_dev *dev);
927 int mlx4_init_mcg_table(struct mlx4_dev *dev);
929 void mlx4_cleanup_pd_table(struct mlx4_dev *dev);
930 void mlx4_cleanup_xrcd_table(struct mlx4_dev *dev);
931 void mlx4_cleanup_uar_table(struct mlx4_dev *dev);
932 void mlx4_cleanup_mr_table(struct mlx4_dev *dev);
933 void mlx4_cleanup_eq_table(struct mlx4_dev *dev);
934 void mlx4_cleanup_cq_table(struct mlx4_dev *dev);
935 void mlx4_cleanup_qp_table(struct mlx4_dev *dev);
936 void mlx4_cleanup_srq_table(struct mlx4_dev *dev);
937 void mlx4_cleanup_mcg_table(struct mlx4_dev *dev);
938 int __mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn, gfp_t gfp);
939 void __mlx4_qp_free_icm(struct mlx4_dev *dev, int qpn);
940 int __mlx4_cq_alloc_icm(struct mlx4_dev *dev, int *cqn);
941 void __mlx4_cq_free_icm(struct mlx4_dev *dev, int cqn);
942 int __mlx4_srq_alloc_icm(struct mlx4_dev *dev, int *srqn);
943 void __mlx4_srq_free_icm(struct mlx4_dev *dev, int srqn);
944 int __mlx4_mpt_reserve(struct mlx4_dev *dev);
945 void __mlx4_mpt_release(struct mlx4_dev *dev, u32 index);
946 int __mlx4_mpt_alloc_icm(struct mlx4_dev *dev, u32 index, gfp_t gfp);
947 void __mlx4_mpt_free_icm(struct mlx4_dev *dev, u32 index);
948 u32 __mlx4_alloc_mtt_range(struct mlx4_dev *dev, int order);
949 void __mlx4_free_mtt_range(struct mlx4_dev *dev, u32 first_seg, int order);
951 int mlx4_WRITE_MTT_wrapper(struct mlx4_dev *dev, int slave,
956 int mlx4_SYNC_TPT_wrapper(struct mlx4_dev *dev, int slave,
961 int mlx4_SW2HW_MPT_wrapper(struct mlx4_dev *dev, int slave,
966 int mlx4_HW2SW_MPT_wrapper(struct mlx4_dev *dev, int slave,
971 int mlx4_QUERY_MPT_wrapper(struct mlx4_dev *dev, int slave,
976 int mlx4_SW2HW_EQ_wrapper(struct mlx4_dev *dev, int slave,
981 int mlx4_CONFIG_DEV_wrapper(struct mlx4_dev *dev, int slave,
986 int mlx4_DMA_wrapper(struct mlx4_dev *dev, int slave,
991 int __mlx4_qp_reserve_range(struct mlx4_dev *dev, int cnt, int align,
993 void __mlx4_qp_release_range(struct mlx4_dev *dev, int base_qpn, int cnt);
994 int __mlx4_register_mac(struct mlx4_dev *dev, u8 port, u64 mac);
995 void __mlx4_unregister_mac(struct mlx4_dev *dev, u8 port, u64 mac);
996 int __mlx4_write_mtt(struct mlx4_dev *dev, struct mlx4_mtt *mtt,
998 int __mlx4_counter_alloc(struct mlx4_dev *dev, u32 *idx);
999 void __mlx4_counter_free(struct mlx4_dev *dev, u32 idx);
1000 int __mlx4_xrcd_alloc(struct mlx4_dev *dev, u32 *xrcdn);
1001 void __mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn);
1003 void mlx4_start_catas_poll(struct mlx4_dev *dev);
1004 void mlx4_stop_catas_poll(struct mlx4_dev *dev);
1005 int mlx4_catas_init(struct mlx4_dev *dev);
1006 void mlx4_catas_end(struct mlx4_dev *dev);
1008 int mlx4_register_device(struct mlx4_dev *dev);
1009 void mlx4_unregister_device(struct mlx4_dev *dev);
1010 void mlx4_dispatch_event(struct mlx4_dev *dev, enum mlx4_dev_event type,
1016 u64 mlx4_make_profile(struct mlx4_dev *dev,
1024 int mlx4_ALLOC_RES_wrapper(struct mlx4_dev *dev, int slave,
1029 int mlx4_FREE_RES_wrapper(struct mlx4_dev *dev, int slave,
1034 int mlx4_MAP_EQ_wrapper(struct mlx4_dev *dev, int slave,
1038 int mlx4_COMM_INT_wrapper(struct mlx4_dev *dev, int slave,
1043 int mlx4_HW2SW_EQ_wrapper(struct mlx4_dev *dev, int slave,
1048 int mlx4_QUERY_EQ_wrapper(struct mlx4_dev *dev, int slave,
1053 int mlx4_SW2HW_CQ_wrapper(struct mlx4_dev *dev, int slave,
1058 int mlx4_HW2SW_CQ_wrapper(struct mlx4_dev *dev, int slave,
1063 int mlx4_QUERY_CQ_wrapper(struct mlx4_dev *dev, int slave,
1068 int mlx4_MODIFY_CQ_wrapper(struct mlx4_dev *dev, int slave,
1073 int mlx4_SW2HW_SRQ_wrapper(struct mlx4_dev *dev, int slave,
1078 int mlx4_HW2SW_SRQ_wrapper(struct mlx4_dev *dev, int slave,
1083 int mlx4_QUERY_SRQ_wrapper(struct mlx4_dev *dev, int slave,
1088 int mlx4_ARM_SRQ_wrapper(struct mlx4_dev *dev, int slave,
1093 int mlx4_GEN_QP_wrapper(struct mlx4_dev *dev, int slave,
1098 int mlx4_RST2INIT_QP_wrapper(struct mlx4_dev *dev, int slave,
1103 int mlx4_INIT2INIT_QP_wrapper(struct mlx4_dev *dev, int slave,
1108 int mlx4_INIT2RTR_QP_wrapper(struct mlx4_dev *dev, int slave,
1113 int mlx4_RTR2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
1118 int mlx4_RTS2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
1123 int mlx4_SQERR2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
1128 int mlx4_2ERR_QP_wrapper(struct mlx4_dev *dev, int slave,
1133 int mlx4_RTS2SQD_QP_wrapper(struct mlx4_dev *dev, int slave,
1138 int mlx4_SQD2SQD_QP_wrapper(struct mlx4_dev *dev, int slave,
1143 int mlx4_SQD2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
1148 int mlx4_2RST_QP_wrapper(struct mlx4_dev *dev, int slave,
1153 int mlx4_QUERY_QP_wrapper(struct mlx4_dev *dev, int slave,
1159 int mlx4_GEN_EQE(struct mlx4_dev *dev, int slave, struct mlx4_eqe *eqe);
1169 int mlx4_cmd_init(struct mlx4_dev *dev);
1170 void mlx4_cmd_cleanup(struct mlx4_dev *dev, int cleanup_mask);
1171 int mlx4_multi_func_init(struct mlx4_dev *dev);
1172 int mlx4_ARM_COMM_CHANNEL(struct mlx4_dev *dev);
1173 void mlx4_multi_func_cleanup(struct mlx4_dev *dev);
1174 void mlx4_cmd_event(struct mlx4_dev *dev, u16 token, u8 status, u64 out_param);
1175 int mlx4_cmd_use_events(struct mlx4_dev *dev);
1176 void mlx4_cmd_use_polling(struct mlx4_dev *dev);
1178 int mlx4_comm_cmd(struct mlx4_dev *dev, u8 cmd, u16 param,
1182 void mlx4_cq_completion(struct mlx4_dev *dev, u32 cqn);
1183 void mlx4_cq_event(struct mlx4_dev *dev, u32 cqn, int event_type);
1185 void mlx4_qp_event(struct mlx4_dev *dev, u32 qpn, int event_type);
1187 void mlx4_srq_event(struct mlx4_dev *dev, u32 srqn, int event_type);
1191 int mlx4_SENSE_PORT(struct mlx4_dev *dev, int port,
1193 void mlx4_do_sense_ports(struct mlx4_dev *dev,
1196 void mlx4_start_sense(struct mlx4_dev *dev);
1197 void mlx4_stop_sense(struct mlx4_dev *dev);
1198 void mlx4_sense_init(struct mlx4_dev *dev);
1199 int mlx4_check_port_params(struct mlx4_dev *dev,
1201 int mlx4_change_port_types(struct mlx4_dev *dev,
1204 void mlx4_init_mac_table(struct mlx4_dev *dev, struct mlx4_mac_table *table);
1205 void mlx4_init_vlan_table(struct mlx4_dev *dev, struct mlx4_vlan_table *table);
1206 void mlx4_init_roce_gid_table(struct mlx4_dev *dev,
1208 void __mlx4_unregister_vlan(struct mlx4_dev *dev, u8 port, u16 vlan);
1209 int __mlx4_register_vlan(struct mlx4_dev *dev, u8 port, u16 vlan, int *index);
1211 int mlx4_SET_PORT(struct mlx4_dev *dev, u8 port, int pkey_tbl_sz);
1213 int mlx4_get_slave_from_resource_id(struct mlx4_dev *dev,
1216 void mlx4_delete_all_resources_for_slave(struct mlx4_dev *dev, int slave_id);
1217 void mlx4_reset_roce_gids(struct mlx4_dev *dev, int slave);
1218 int mlx4_init_resource_tracker(struct mlx4_dev *dev);
1220 void mlx4_free_resource_tracker(struct mlx4_dev *dev,
1223 int mlx4_QUERY_FW_wrapper(struct mlx4_dev *dev, int slave,
1228 int mlx4_SET_PORT_wrapper(struct mlx4_dev *dev, int slave,
1233 int mlx4_INIT_PORT_wrapper(struct mlx4_dev *dev, int slave,
1238 int mlx4_CLOSE_PORT_wrapper(struct mlx4_dev *dev, int slave,
1243 int mlx4_QUERY_DEV_CAP_wrapper(struct mlx4_dev *dev, int slave,
1248 int mlx4_QUERY_PORT_wrapper(struct mlx4_dev *dev, int slave,
1253 int mlx4_get_port_ib_caps(struct mlx4_dev *dev, u8 port, __be32 *caps);
1255 int mlx4_get_slave_pkey_gid_tbl_len(struct mlx4_dev *dev, u8 port,
1258 int mlx4_QP_ATTACH_wrapper(struct mlx4_dev *dev, int slave,
1264 int mlx4_UPDATE_QP_wrapper(struct mlx4_dev *dev, int slave,
1270 int mlx4_PROMISC_wrapper(struct mlx4_dev *dev, int slave,
1275 int mlx4_qp_detach_common(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16],
1277 int mlx4_qp_attach_common(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16],
1280 int mlx4_trans_to_dmfs_attach(struct mlx4_dev *dev, struct mlx4_qp *qp,
1284 int mlx4_SET_MCAST_FLTR_wrapper(struct mlx4_dev *dev, int slave,
1289 int mlx4_SET_VLAN_FLTR_wrapper(struct mlx4_dev *dev, int slave,
1294 int mlx4_common_set_vlan_fltr(struct mlx4_dev *dev, int function,
1296 int mlx4_common_dump_eth_stats(struct mlx4_dev *dev, int slave, u32 in_mod,
1298 int mlx4_DUMP_ETH_STATS_wrapper(struct mlx4_dev *dev, int slave,
1303 int mlx4_PKEY_TABLE_wrapper(struct mlx4_dev *dev, int slave,
1308 int mlx4_QUERY_IF_STAT_wrapper(struct mlx4_dev *dev, int slave,
1313 int mlx4_QP_FLOW_STEERING_ATTACH_wrapper(struct mlx4_dev *dev, int slave,
1318 int mlx4_QP_FLOW_STEERING_DETACH_wrapper(struct mlx4_dev *dev, int slave,
1323 int mlx4_ACCESS_REG_wrapper(struct mlx4_dev *dev, int slave,
1329 int mlx4_get_mgm_entry_size(struct mlx4_dev *dev);
1330 int mlx4_get_qp_per_mgm(struct mlx4_dev *dev);
1352 static inline spinlock_t *mlx4_tlock(struct mlx4_dev *dev) in mlx4_tlock()
1361 void mlx4_init_quotas(struct mlx4_dev *dev);
1363 int mlx4_get_slave_num_gids(struct mlx4_dev *dev, int slave, int port);
1365 int mlx4_get_vf_indx(struct mlx4_dev *dev, int slave);
1366 int mlx4_config_mad_demux(struct mlx4_dev *dev);
1367 int mlx4_do_bond(struct mlx4_dev *dev, bool enable);