Lines Matching defs: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,
221 &(mdev)->persist->pdev->dev, format, \
226 dev_err(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__)
228 dev_info(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__)
230 dev_warn(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__)
392 struct mlx4_dev *dev;
832 struct mlx4_dev *dev;
848 struct mlx4_dev *dev;
875 struct mlx4_dev dev;
929 static inline struct mlx4_priv *mlx4_priv(struct mlx4_dev *dev)
931 return container_of(dev, struct mlx4_priv, dev);
949 int mlx4_reset(struct mlx4_dev *dev);
951 int mlx4_alloc_eq_table(struct mlx4_dev *dev);
952 void mlx4_free_eq_table(struct mlx4_dev *dev);
954 int mlx4_init_pd_table(struct mlx4_dev *dev);
955 int mlx4_init_xrcd_table(struct mlx4_dev *dev);
956 int mlx4_init_uar_table(struct mlx4_dev *dev);
957 int mlx4_init_mr_table(struct mlx4_dev *dev);
958 int mlx4_init_eq_table(struct mlx4_dev *dev);
959 int mlx4_init_cq_table(struct mlx4_dev *dev);
960 int mlx4_init_qp_table(struct mlx4_dev *dev);
961 int mlx4_init_srq_table(struct mlx4_dev *dev);
962 int mlx4_init_mcg_table(struct mlx4_dev *dev);
964 void mlx4_cleanup_pd_table(struct mlx4_dev *dev);
965 void mlx4_cleanup_xrcd_table(struct mlx4_dev *dev);
966 void mlx4_cleanup_uar_table(struct mlx4_dev *dev);
967 void mlx4_cleanup_mr_table(struct mlx4_dev *dev);
968 void mlx4_cleanup_eq_table(struct mlx4_dev *dev);
969 void mlx4_cleanup_cq_table(struct mlx4_dev *dev);
970 void mlx4_cleanup_qp_table(struct mlx4_dev *dev);
971 void mlx4_cleanup_srq_table(struct mlx4_dev *dev);
972 void mlx4_cleanup_mcg_table(struct mlx4_dev *dev);
973 int __mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn);
974 void __mlx4_qp_free_icm(struct mlx4_dev *dev, int qpn);
975 int __mlx4_cq_alloc_icm(struct mlx4_dev *dev, int *cqn);
976 void __mlx4_cq_free_icm(struct mlx4_dev *dev, int cqn);
977 int __mlx4_srq_alloc_icm(struct mlx4_dev *dev, int *srqn);
978 void __mlx4_srq_free_icm(struct mlx4_dev *dev, int srqn);
979 int __mlx4_mpt_reserve(struct mlx4_dev *dev);
980 void __mlx4_mpt_release(struct mlx4_dev *dev, u32 index);
981 int __mlx4_mpt_alloc_icm(struct mlx4_dev *dev, u32 index);
982 void __mlx4_mpt_free_icm(struct mlx4_dev *dev, u32 index);
983 u32 __mlx4_alloc_mtt_range(struct mlx4_dev *dev, int order);
984 void __mlx4_free_mtt_range(struct mlx4_dev *dev, u32 first_seg, int order);
986 int mlx4_WRITE_MTT_wrapper(struct mlx4_dev *dev, int slave,
991 int mlx4_SYNC_TPT_wrapper(struct mlx4_dev *dev, int slave,
996 int mlx4_SW2HW_MPT_wrapper(struct mlx4_dev *dev, int slave,
1001 int mlx4_HW2SW_MPT_wrapper(struct mlx4_dev *dev, int slave,
1006 int mlx4_QUERY_MPT_wrapper(struct mlx4_dev *dev, int slave,
1011 int mlx4_SW2HW_EQ_wrapper(struct mlx4_dev *dev, int slave,
1016 int mlx4_CONFIG_DEV_wrapper(struct mlx4_dev *dev, int slave,
1021 int mlx4_DMA_wrapper(struct mlx4_dev *dev, int slave,
1026 int __mlx4_qp_reserve_range(struct mlx4_dev *dev, int cnt, int align,
1028 void __mlx4_qp_release_range(struct mlx4_dev *dev, int base_qpn, int cnt);
1029 int __mlx4_register_mac(struct mlx4_dev *dev, u8 port, u64 mac);
1030 void __mlx4_unregister_mac(struct mlx4_dev *dev, u8 port, u64 mac);
1031 int __mlx4_write_mtt(struct mlx4_dev *dev, struct mlx4_mtt *mtt,
1033 int __mlx4_counter_alloc(struct mlx4_dev *dev, u32 *idx);
1034 void __mlx4_counter_free(struct mlx4_dev *dev, u32 idx);
1035 int mlx4_calc_vf_counters(struct mlx4_dev *dev, int slave, int port,
1037 int __mlx4_xrcd_alloc(struct mlx4_dev *dev, u32 *xrcdn);
1038 void __mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn);
1040 void mlx4_start_catas_poll(struct mlx4_dev *dev);
1041 void mlx4_stop_catas_poll(struct mlx4_dev *dev);
1042 int mlx4_catas_init(struct mlx4_dev *dev);
1043 void mlx4_catas_end(struct mlx4_dev *dev);
1044 int mlx4_crdump_init(struct mlx4_dev *dev);
1045 void mlx4_crdump_end(struct mlx4_dev *dev);
1047 int mlx4_register_device(struct mlx4_dev *dev);
1048 void mlx4_unregister_device(struct mlx4_dev *dev);
1049 void mlx4_dispatch_event(struct mlx4_dev *dev, enum mlx4_dev_event type,
1055 u64 mlx4_make_profile(struct mlx4_dev *dev,
1063 int mlx4_ALLOC_RES_wrapper(struct mlx4_dev *dev, int slave,
1068 int mlx4_FREE_RES_wrapper(struct mlx4_dev *dev, int slave,
1073 int mlx4_MAP_EQ_wrapper(struct mlx4_dev *dev, int slave,
1077 int mlx4_COMM_INT_wrapper(struct mlx4_dev *dev, int slave,
1082 int mlx4_HW2SW_EQ_wrapper(struct mlx4_dev *dev, int slave,
1087 int mlx4_QUERY_EQ_wrapper(struct mlx4_dev *dev, int slave,
1092 int mlx4_SW2HW_CQ_wrapper(struct mlx4_dev *dev, int slave,
1097 int mlx4_HW2SW_CQ_wrapper(struct mlx4_dev *dev, int slave,
1102 int mlx4_QUERY_CQ_wrapper(struct mlx4_dev *dev, int slave,
1107 int mlx4_MODIFY_CQ_wrapper(struct mlx4_dev *dev, int slave,
1112 int mlx4_SW2HW_SRQ_wrapper(struct mlx4_dev *dev, int slave,
1117 int mlx4_HW2SW_SRQ_wrapper(struct mlx4_dev *dev, int slave,
1122 int mlx4_QUERY_SRQ_wrapper(struct mlx4_dev *dev, int slave,
1127 int mlx4_ARM_SRQ_wrapper(struct mlx4_dev *dev, int slave,
1132 int mlx4_GEN_QP_wrapper(struct mlx4_dev *dev, int slave,
1137 int mlx4_RST2INIT_QP_wrapper(struct mlx4_dev *dev, int slave,
1142 int mlx4_INIT2INIT_QP_wrapper(struct mlx4_dev *dev, int slave,
1147 int mlx4_INIT2RTR_QP_wrapper(struct mlx4_dev *dev, int slave,
1152 int mlx4_RTR2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
1157 int mlx4_RTS2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
1162 int mlx4_SQERR2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
1167 int mlx4_2ERR_QP_wrapper(struct mlx4_dev *dev, int slave,
1172 int mlx4_RTS2SQD_QP_wrapper(struct mlx4_dev *dev, int slave,
1177 int mlx4_SQD2SQD_QP_wrapper(struct mlx4_dev *dev, int slave,
1182 int mlx4_SQD2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
1187 int mlx4_2RST_QP_wrapper(struct mlx4_dev *dev, int slave,
1192 int mlx4_QUERY_QP_wrapper(struct mlx4_dev *dev, int slave,
1198 int mlx4_GEN_EQE(struct mlx4_dev *dev, int slave, struct mlx4_eqe *eqe);
1208 int mlx4_cmd_init(struct mlx4_dev *dev);
1209 void mlx4_cmd_cleanup(struct mlx4_dev *dev, int cleanup_mask);
1210 int mlx4_multi_func_init(struct mlx4_dev *dev);
1211 int mlx4_ARM_COMM_CHANNEL(struct mlx4_dev *dev);
1212 void mlx4_multi_func_cleanup(struct mlx4_dev *dev);
1213 void mlx4_cmd_event(struct mlx4_dev *dev, u16 token, u8 status, u64 out_param);
1214 int mlx4_cmd_use_events(struct mlx4_dev *dev);
1215 void mlx4_cmd_use_polling(struct mlx4_dev *dev);
1217 int mlx4_comm_cmd(struct mlx4_dev *dev, u8 cmd, u16 param,
1221 void mlx4_cq_completion(struct mlx4_dev *dev, u32 cqn);
1222 void mlx4_cq_event(struct mlx4_dev *dev, u32 cqn, int event_type);
1224 void mlx4_qp_event(struct mlx4_dev *dev, u32 qpn, int event_type);
1226 void mlx4_srq_event(struct mlx4_dev *dev, u32 srqn, int event_type);
1231 int mlx4_crdump_collect(struct mlx4_dev *dev);
1233 int mlx4_SENSE_PORT(struct mlx4_dev *dev, int port,
1235 void mlx4_do_sense_ports(struct mlx4_dev *dev,
1238 void mlx4_start_sense(struct mlx4_dev *dev);
1239 void mlx4_stop_sense(struct mlx4_dev *dev);
1240 void mlx4_sense_init(struct mlx4_dev *dev);
1241 int mlx4_check_port_params(struct mlx4_dev *dev,
1243 int mlx4_change_port_types(struct mlx4_dev *dev,
1246 void mlx4_init_mac_table(struct mlx4_dev *dev, struct mlx4_mac_table *table);
1247 void mlx4_init_vlan_table(struct mlx4_dev *dev, struct mlx4_vlan_table *table);
1248 void mlx4_init_roce_gid_table(struct mlx4_dev *dev,
1250 void __mlx4_unregister_vlan(struct mlx4_dev *dev, u8 port, u16 vlan);
1251 int __mlx4_register_vlan(struct mlx4_dev *dev, u8 port, u16 vlan, int *index);
1252 int mlx4_bond_vlan_table(struct mlx4_dev *dev);
1253 int mlx4_unbond_vlan_table(struct mlx4_dev *dev);
1254 int mlx4_bond_mac_table(struct mlx4_dev *dev);
1255 int mlx4_unbond_mac_table(struct mlx4_dev *dev);
1257 int mlx4_SET_PORT(struct mlx4_dev *dev, u8 port, int pkey_tbl_sz);
1259 int mlx4_get_slave_from_resource_id(struct mlx4_dev *dev,
1262 void mlx4_delete_all_resources_for_slave(struct mlx4_dev *dev, int slave_id);
1263 void mlx4_reset_roce_gids(struct mlx4_dev *dev, int slave);
1264 int mlx4_init_resource_tracker(struct mlx4_dev *dev);
1266 void mlx4_free_resource_tracker(struct mlx4_dev *dev,
1269 int mlx4_QUERY_FW_wrapper(struct mlx4_dev *dev, int slave,
1274 int mlx4_SET_PORT_wrapper(struct mlx4_dev *dev, int slave,
1279 int mlx4_INIT_PORT_wrapper(struct mlx4_dev *dev, int slave,
1284 int mlx4_CLOSE_PORT_wrapper(struct mlx4_dev *dev, int slave,
1289 int mlx4_QUERY_DEV_CAP_wrapper(struct mlx4_dev *dev, int slave,
1294 int mlx4_QUERY_PORT_wrapper(struct mlx4_dev *dev, int slave,
1299 int mlx4_get_port_ib_caps(struct mlx4_dev *dev, u8 port, __be32 *caps);
1301 int mlx4_get_slave_pkey_gid_tbl_len(struct mlx4_dev *dev, u8 port,
1304 int mlx4_QP_ATTACH_wrapper(struct mlx4_dev *dev, int slave,
1310 int mlx4_UPDATE_QP_wrapper(struct mlx4_dev *dev, int slave,
1316 int mlx4_PROMISC_wrapper(struct mlx4_dev *dev, int slave,
1321 int mlx4_qp_detach_common(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16],
1323 int mlx4_qp_attach_common(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16],
1326 int mlx4_trans_to_dmfs_attach(struct mlx4_dev *dev, struct mlx4_qp *qp,
1330 int mlx4_SET_MCAST_FLTR_wrapper(struct mlx4_dev *dev, int slave,
1335 int mlx4_SET_VLAN_FLTR_wrapper(struct mlx4_dev *dev, int slave,
1340 int mlx4_common_set_vlan_fltr(struct mlx4_dev *dev, int function,
1342 int mlx4_DUMP_ETH_STATS_wrapper(struct mlx4_dev *dev, int slave,
1347 int mlx4_PKEY_TABLE_wrapper(struct mlx4_dev *dev, int slave,
1352 int mlx4_QUERY_IF_STAT_wrapper(struct mlx4_dev *dev, int slave,
1357 int mlx4_QP_FLOW_STEERING_ATTACH_wrapper(struct mlx4_dev *dev, int slave,
1362 int mlx4_QP_FLOW_STEERING_DETACH_wrapper(struct mlx4_dev *dev, int slave,
1367 int mlx4_ACCESS_REG_wrapper(struct mlx4_dev *dev, int slave,
1373 int mlx4_get_mgm_entry_size(struct mlx4_dev *dev);
1374 int mlx4_get_qp_per_mgm(struct mlx4_dev *dev);
1396 static inline spinlock_t *mlx4_tlock(struct mlx4_dev *dev)
1398 return &mlx4_priv(dev)->mfunc.master.res_tracker.lock;
1405 void mlx4_init_quotas(struct mlx4_dev *dev);
1408 void mlx4_replace_zero_macs(struct mlx4_dev *dev);
1409 int mlx4_get_slave_num_gids(struct mlx4_dev *dev, int slave, int port);
1411 int mlx4_get_vf_indx(struct mlx4_dev *dev, int slave);
1412 int mlx4_config_mad_demux(struct mlx4_dev *dev);
1413 int mlx4_do_bond(struct mlx4_dev *dev, bool enable);
1414 int mlx4_bond_fs_rules(struct mlx4_dev *dev);
1415 int mlx4_unbond_fs_rules(struct mlx4_dev *dev);