Lines Matching refs:mlx4_dev

224 static int mlx4_is_eth(struct mlx4_dev *dev, int port)
300 static void rem_slave_vlans(struct mlx4_dev *dev, int slave);
301 static inline int mlx4_grant_resource(struct mlx4_dev *dev, int slave,
354 static inline void mlx4_release_resource(struct mlx4_dev *dev, int slave,
375 static inline void initialize_res_quotas(struct mlx4_dev *dev,
393 void mlx4_init_quotas(struct mlx4_dev *dev)
424 int mlx4_init_resource_tracker(struct mlx4_dev *dev)
550 void mlx4_free_resource_tracker(struct mlx4_dev *dev,
585 static void update_pkey_index(struct mlx4_dev *dev, int slave,
600 static void update_gid(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *inbox,
637 static int check_counter_index_validity(struct mlx4_dev *dev, int slave, int port, int idx)
661 static int update_vport_qp_param(struct mlx4_dev *dev,
735 static int mpt_mask(struct mlx4_dev *dev)
740 static void *find_res(struct mlx4_dev *dev, u64 res_id,
749 static int get_res(struct mlx4_dev *dev, int slave, u64 res_id,
784 int mlx4_get_slave_from_resource_id(struct mlx4_dev *dev,
807 static void put_res(struct mlx4_dev *dev, int slave, u64 res_id,
999 static int add_res_range(struct mlx4_dev *dev, int slave, u64 base, int count,
1186 static int rem_res_range(struct mlx4_dev *dev, int slave, u64 base, int count,
1225 static int qp_res_start_move_to(struct mlx4_dev *dev, int slave, int qpn,
1290 static int mr_res_start_move_to(struct mlx4_dev *dev, int slave, int index,
1343 static int eq_res_start_move_to(struct mlx4_dev *dev, int slave, int index,
1391 static int cq_res_start_move_to(struct mlx4_dev *dev, int slave, int cqn,
1445 static int srq_res_start_move_to(struct mlx4_dev *dev, int slave, int index,
1495 static void res_abort_move(struct mlx4_dev *dev, int slave,
1509 static void res_end_move(struct mlx4_dev *dev, int slave,
1523 static int valid_reserved(struct mlx4_dev *dev, int slave, int qpn)
1529 static int fw_reserved(struct mlx4_dev *dev, int qpn)
1534 static int qp_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd,
1598 static int mtt_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd,
1630 static int mpt_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd,
1679 static int cq_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd,
1714 static int srq_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd,
1749 static int mac_find_smac_ix_in_slave(struct mlx4_dev *dev, int slave, int port,
1767 static int mac_add_to_slave(struct mlx4_dev *dev, int slave, u64 mac, int port, u8 smac_index)
1800 static void mac_del_from_slave(struct mlx4_dev *dev, int slave, u64 mac,
1821 static void rem_slave_macs(struct mlx4_dev *dev, int slave)
1840 static int mac_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd,
1869 static int vlan_add_to_slave(struct mlx4_dev *dev, int slave, u16 vlan,
1903 static void vlan_del_from_slave(struct mlx4_dev *dev, int slave, u16 vlan,
1925 static void rem_slave_vlans(struct mlx4_dev *dev, int slave)
1944 static int vlan_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd,
1980 static int counter_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd,
1996 static int xrcdn_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd,
2018 int mlx4_ALLOC_RES_wrapper(struct mlx4_dev *dev, int slave,
2084 static int qp_free_res(struct mlx4_dev *dev, int slave, int op, int cmd,
2124 static int mtt_free_res(struct mlx4_dev *dev, int slave, int op, int cmd,
2144 static int mpt_free_res(struct mlx4_dev *dev, int slave, int op, int cmd,
2187 static int cq_free_res(struct mlx4_dev *dev, int slave, int op, int cmd,
2212 static int srq_free_res(struct mlx4_dev *dev, int slave, int op, int cmd,
2237 static int mac_free_res(struct mlx4_dev *dev, int slave, int op, int cmd,
2258 static int vlan_free_res(struct mlx4_dev *dev, int slave, int op, int cmd,
2282 static int counter_free_res(struct mlx4_dev *dev, int slave, int op, int cmd,
2297 static int xrcdn_free_res(struct mlx4_dev *dev, int slave, int op, int cmd,
2316 int mlx4_FREE_RES_wrapper(struct mlx4_dev *dev, int slave,
2452 static int check_mtt_range(struct mlx4_dev *dev, int slave, int start,
2463 int mlx4_SW2HW_MPT_wrapper(struct mlx4_dev *dev, int slave,
2548 int mlx4_HW2SW_MPT_wrapper(struct mlx4_dev *dev, int slave,
2580 int mlx4_QUERY_MPT_wrapper(struct mlx4_dev *dev, int slave,
2623 static void adjust_proxy_tun_qkey(struct mlx4_dev *dev, struct mlx4_vhcr *vhcr,
2636 int mlx4_RST2INIT_QP_wrapper(struct mlx4_dev *dev, int slave,
2770 int mlx4_SW2HW_EQ_wrapper(struct mlx4_dev *dev, int slave,
2819 static int get_containing_mtt(struct mlx4_dev *dev, int slave, int start,
2843 static int verify_qp_parameters(struct mlx4_dev *dev,
2898 int mlx4_WRITE_MTT_wrapper(struct mlx4_dev *dev, int slave,
2936 int mlx4_HW2SW_EQ_wrapper(struct mlx4_dev *dev, int slave,
2974 int mlx4_GEN_EQE(struct mlx4_dev *dev, int slave, struct mlx4_eqe *eqe)
3042 int mlx4_QUERY_EQ_wrapper(struct mlx4_dev *dev, int slave,
3069 int mlx4_SW2HW_CQ_wrapper(struct mlx4_dev *dev, int slave,
3107 int mlx4_HW2SW_CQ_wrapper(struct mlx4_dev *dev, int slave,
3132 int mlx4_QUERY_CQ_wrapper(struct mlx4_dev *dev, int slave,
3156 static int handle_resize(struct mlx4_dev *dev, int slave,
3204 int mlx4_MODIFY_CQ_wrapper(struct mlx4_dev *dev, int slave,
3245 int mlx4_SW2HW_SRQ_wrapper(struct mlx4_dev *dev, int slave,
3290 int mlx4_HW2SW_SRQ_wrapper(struct mlx4_dev *dev, int slave,
3319 int mlx4_QUERY_SRQ_wrapper(struct mlx4_dev *dev, int slave,
3342 int mlx4_ARM_SRQ_wrapper(struct mlx4_dev *dev, int slave,
3367 int mlx4_GEN_QP_wrapper(struct mlx4_dev *dev, int slave,
3391 int mlx4_INIT2INIT_QP_wrapper(struct mlx4_dev *dev, int slave,
3403 static int roce_verify_mac(struct mlx4_dev *dev, int slave,
3422 int mlx4_INIT2RTR_QP_wrapper(struct mlx4_dev *dev, int slave,
3486 int mlx4_RTR2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
3505 int mlx4_RTS2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
3525 int mlx4_SQERR2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
3536 int mlx4_SQD2SQD_QP_wrapper(struct mlx4_dev *dev, int slave,
3555 int mlx4_SQD2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
3574 int mlx4_2RST_QP_wrapper(struct mlx4_dev *dev, int slave,
3605 static struct res_gid *find_gid(struct mlx4_dev *dev, int slave,
3617 static int add_mcg_res(struct mlx4_dev *dev, int slave, struct res_qp *rqp,
3645 static int rem_mcg_res(struct mlx4_dev *dev, int slave, struct res_qp *rqp,
3667 static int qp_attach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16],
3684 static int qp_detach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16],
3698 int mlx4_QP_ATTACH_wrapper(struct mlx4_dev *dev, int slave,
3781 static int add_eth_header(struct mlx4_dev *dev, int slave,
3837 int mlx4_QP_FLOW_STEERING_ATTACH_wrapper(struct mlx4_dev *dev, int slave,
3916 int mlx4_QP_FLOW_STEERING_DETACH_wrapper(struct mlx4_dev *dev, int slave,
3962 int mlx4_QUERY_IF_STAT_wrapper(struct mlx4_dev *dev, int slave,
3975 static void detach_qp(struct mlx4_dev *dev, int slave, struct res_qp *rqp)
3997 static int _move_all_busy(struct mlx4_dev *dev, int slave,
4033 static int move_all_busy(struct mlx4_dev *dev, int slave,
4053 static void rem_slave_qps(struct mlx4_dev *dev, int slave)
4128 static void rem_slave_srqs(struct mlx4_dev *dev, int slave)
4196 static void rem_slave_cqs(struct mlx4_dev *dev, int slave)
4261 static void rem_slave_mrs(struct mlx4_dev *dev, int slave)
4331 static void rem_slave_mtts(struct mlx4_dev *dev, int slave)
4382 static void rem_slave_fs_rule(struct mlx4_dev *dev, int slave)
4434 static void rem_slave_eqs(struct mlx4_dev *dev, int slave)
4501 static void rem_slave_counters(struct mlx4_dev *dev, int slave)
4506 static void rem_slave_xrcdns(struct mlx4_dev *dev, int slave)
4535 void mlx4_delete_all_resources_for_slave(struct mlx4_dev *dev, int slave)
4560 struct mlx4_dev *dev = &work->priv->dev;