|
Linux Kernel
3.7.1
|
#include <linux/sched.h>#include <linux/pci.h>#include <linux/errno.h>#include <linux/kernel.h>#include <linux/io.h>#include <linux/slab.h>#include <linux/mlx4/cmd.h>#include <linux/mlx4/qp.h>#include <linux/if_ether.h>#include <linux/etherdevice.h>#include "mlx4.h"#include "fw.h"Go to the source code of this file.
Data Structures | |
| struct | mac_res |
| struct | res_common |
| struct | res_gid |
| struct | res_qp |
| struct | res_mtt |
| struct | res_mpt |
| struct | res_eq |
| struct | res_cq |
| struct | res_srq |
| struct | res_counter |
| struct | res_xrcdn |
| struct | res_fs_rule |
Macros | |
| #define | MLX4_MAC_VALID (1ull << 63) |
Enumerations | |
| enum | { RES_ANY_BUSY = 1 } |
| enum | res_qp_states { RES_QP_BUSY = RES_ANY_BUSY, RES_QP_RESERVED, RES_QP_MAPPED, RES_QP_HW } |
| enum | res_mtt_states { RES_MTT_BUSY = RES_ANY_BUSY, RES_MTT_ALLOCATED } |
| enum | res_mpt_states { RES_MPT_BUSY = RES_ANY_BUSY, RES_MPT_RESERVED, RES_MPT_MAPPED, RES_MPT_HW } |
| enum | res_eq_states { RES_EQ_BUSY = RES_ANY_BUSY, RES_EQ_RESERVED, RES_EQ_HW } |
| enum | res_cq_states { RES_CQ_BUSY = RES_ANY_BUSY, RES_CQ_ALLOCATED, RES_CQ_HW } |
| enum | res_srq_states { RES_SRQ_BUSY = RES_ANY_BUSY, RES_SRQ_ALLOCATED, RES_SRQ_HW } |
| enum | res_counter_states { RES_COUNTER_BUSY = RES_ANY_BUSY, RES_COUNTER_ALLOCATED } |
| enum | res_xrcdn_states { RES_XRCD_BUSY = RES_ANY_BUSY, RES_XRCD_ALLOCATED } |
| enum | res_fs_rule_states { RES_FS_RULE_BUSY = RES_ANY_BUSY, RES_FS_RULE_ALLOCATED } |
| enum | qp_transition { QP_TRANS_INIT2RTR, QP_TRANS_RTR2RTS, QP_TRANS_RTS2RTS, QP_TRANS_SQERR2RTS, QP_TRANS_SQD2SQD, QP_TRANS_SQD2RTS } |
| enum | { BUSY_MAX_RETRIES = 10 } |
| #define MLX4_MAC_VALID (1ull << 63) |
Definition at line 50 of file resource_tracker.c.
| anonymous enum |
Definition at line 69 of file resource_tracker.c.
| anonymous enum |
Definition at line 3149 of file resource_tracker.c.
| enum qp_transition |
| QP_TRANS_INIT2RTR | |
| QP_TRANS_RTR2RTS | |
| QP_TRANS_RTS2RTS | |
| QP_TRANS_SQERR2RTS | |
| QP_TRANS_SQD2SQD | |
| QP_TRANS_SQD2RTS |
Definition at line 245 of file resource_tracker.c.
| enum res_counter_states |
Definition at line 173 of file resource_tracker.c.
| enum res_cq_states |
Definition at line 148 of file resource_tracker.c.
| enum res_eq_states |
Definition at line 137 of file resource_tracker.c.
| enum res_fs_rule_states |
Definition at line 193 of file resource_tracker.c.
| enum res_mpt_states |
Definition at line 124 of file resource_tracker.c.
| enum res_mtt_states |
Definition at line 104 of file resource_tracker.c.
| enum res_qp_states |
Definition at line 80 of file resource_tracker.c.
| enum res_srq_states |
Definition at line 160 of file resource_tracker.c.
| enum res_xrcdn_states |
Definition at line 183 of file resource_tracker.c.
| int mlx4_2RST_QP_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 2836 of file resource_tracker.c.
| int mlx4_ALLOC_RES_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 1448 of file resource_tracker.c.
| int mlx4_ARM_SRQ_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 2667 of file resource_tracker.c.
Definition at line 3736 of file resource_tracker.c.
| int mlx4_FREE_RES_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 1723 of file resource_tracker.c.
| void mlx4_free_resource_tracker | ( | struct mlx4_dev * | dev, |
| enum mlx4_res_tracker_free_type | type | ||
| ) |
Definition at line 300 of file resource_tracker.c.
Definition at line 2305 of file resource_tracker.c.
| int mlx4_GEN_QP_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 2692 of file resource_tracker.c.
| int mlx4_get_slave_from_resource_id | ( | struct mlx4_dev * | dev, |
| enum mlx4_resource | type, | ||
| u64 | res_id, | ||
| int * | slave | ||
| ) |
Definition at line 402 of file resource_tracker.c.
| int mlx4_HW2SW_CQ_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 2432 of file resource_tracker.c.
| int mlx4_HW2SW_EQ_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 2267 of file resource_tracker.c.
| int mlx4_HW2SW_MPT_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 1900 of file resource_tracker.c.
| int mlx4_HW2SW_SRQ_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 2615 of file resource_tracker.c.
| int mlx4_INIT2INIT_QP_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 2716 of file resource_tracker.c.
| int mlx4_INIT2RTR_QP_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 2728 of file resource_tracker.c.
Definition at line 272 of file resource_tracker.c.
| int mlx4_MODIFY_CQ_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 2529 of file resource_tracker.c.
| int mlx4_QP_ATTACH_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 2927 of file resource_tracker.c.
| int mlx4_QP_FLOW_STEERING_ATTACH_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 3063 of file resource_tracker.c.
| int mlx4_QP_FLOW_STEERING_DETACH_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 3125 of file resource_tracker.c.
| int mlx4_QUERY_CQ_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 2457 of file resource_tracker.c.
| int mlx4_QUERY_EQ_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 2367 of file resource_tracker.c.
| int mlx4_QUERY_IF_STAT_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 3153 of file resource_tracker.c.
| int mlx4_QUERY_MPT_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 1932 of file resource_tracker.c.
| int mlx4_QUERY_SRQ_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 2644 of file resource_tracker.c.
| int mlx4_RST2INIT_QP_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 1988 of file resource_tracker.c.
| int mlx4_RTR2RTS_QP_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 2748 of file resource_tracker.c.
| int mlx4_RTS2RTS_QP_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 2767 of file resource_tracker.c.
| int mlx4_SQD2RTS_QP_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 2817 of file resource_tracker.c.
| int mlx4_SQD2SQD_QP_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 2798 of file resource_tracker.c.
| int mlx4_SQERR2RTS_QP_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 2787 of file resource_tracker.c.
| int mlx4_SW2HW_CQ_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 2394 of file resource_tracker.c.
| int mlx4_SW2HW_EQ_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 2114 of file resource_tracker.c.
| int mlx4_SW2HW_MPT_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 1846 of file resource_tracker.c.
| int mlx4_SW2HW_SRQ_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 2570 of file resource_tracker.c.
| int mlx4_WRITE_MTT_wrapper | ( | struct mlx4_dev * | dev, |
| int | slave, | ||
| struct mlx4_vhcr * | vhcr, | ||
| struct mlx4_cmd_mailbox * | inbox, | ||
| struct mlx4_cmd_mailbox * | outbox, | ||
| struct mlx4_cmd_info * | cmd | ||
| ) |
Definition at line 2229 of file resource_tracker.c.
1.8.2