include/linux/qed/fcoe_common.h
Source file repositories/reference/linux-study-clean/include/linux/qed/fcoe_common.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/qed/fcoe_common.h- Extension
.h- Size
- 24842 bytes
- Lines
- 743
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
struct protection_info_ctxstruct fcoe_fcp_cmd_payloadstruct fcoe_fcp_rsp_payloadstruct fcp_rsp_payload_paddedstruct fcoe_fcp_xfer_payloadstruct fcp_xfer_payload_paddedstruct fcoe_tx_data_paramsstruct fcoe_tx_mid_path_paramsstruct fcoe_tx_paramsstruct fcoe_slow_sgl_ctxstruct ystorm_fcoe_task_st_ctxstruct ystorm_fcoe_task_ag_ctxstruct tstorm_fcoe_task_ag_ctxstruct fcoe_exp_rostruct fcoe_abts_pktstruct fcoe_tstorm_fcoe_task_st_ctx_read_writestruct fcoe_tstorm_fcoe_task_st_ctx_read_onlystruct tstorm_fcoe_task_st_ctxstruct mstorm_fcoe_task_ag_ctxstruct mstorm_fcoe_task_st_ctxstruct ustorm_fcoe_task_ag_ctxstruct fcoe_task_contextstruct fc_addr_nwstruct fcoe_conn_offload_ramrod_datastruct fcoe_conn_terminate_ramrod_datastruct fcoe_fast_sgl_ctxstruct fcoe_init_func_ramrod_datastruct fcoe_rx_statstruct fcoe_stat_ramrod_datastruct fcoe_tx_statstruct fcoe_wqestruct xfrqe_prot_flagsstruct fcoe_db_dataenum fcoe_completion_statusenum fcoe_device_typeenum fcoe_mode_typeenum fcoe_sqe_request_typeenum fcoe_task_type
Annotated Snippet
struct protection_info_ctx {
__le16 flags;
#define PROTECTION_INFO_CTX_HOST_INTERFACE_MASK 0x3
#define PROTECTION_INFO_CTX_HOST_INTERFACE_SHIFT 0
#define PROTECTION_INFO_CTX_DIF_TO_PEER_MASK 0x1
#define PROTECTION_INFO_CTX_DIF_TO_PEER_SHIFT 2
#define PROTECTION_INFO_CTX_VALIDATE_DIX_APP_TAG_MASK 0x1
#define PROTECTION_INFO_CTX_VALIDATE_DIX_APP_TAG_SHIFT 3
#define PROTECTION_INFO_CTX_INTERVAL_SIZE_LOG_MASK 0xF
#define PROTECTION_INFO_CTX_INTERVAL_SIZE_LOG_SHIFT 4
#define PROTECTION_INFO_CTX_VALIDATE_DIX_REF_TAG_MASK 0x1
#define PROTECTION_INFO_CTX_VALIDATE_DIX_REF_TAG_SHIFT 8
#define PROTECTION_INFO_CTX_RESERVED0_MASK 0x7F
#define PROTECTION_INFO_CTX_RESERVED0_SHIFT 9
u8 dix_block_size;
u8 dst_size;
};
/* The fcoe storm task context protection-information of Ystorm */
union protection_info_union_ctx {
struct protection_info_ctx info;
__le32 value;
};
/* FCP CMD payload */
struct fcoe_fcp_cmd_payload {
__le32 opaque[8];
};
/* FCP RSP payload */
struct fcoe_fcp_rsp_payload {
__le32 opaque[6];
};
/* FCP RSP payload */
struct fcp_rsp_payload_padded {
struct fcoe_fcp_rsp_payload rsp_payload;
__le32 reserved[2];
};
/* FCP RSP payload */
struct fcoe_fcp_xfer_payload {
__le32 opaque[3];
};
/* FCP RSP payload */
struct fcp_xfer_payload_padded {
struct fcoe_fcp_xfer_payload xfer_payload;
__le32 reserved[5];
};
/* Task params */
struct fcoe_tx_data_params {
__le32 data_offset;
__le32 offset_in_io;
u8 flags;
#define FCOE_TX_DATA_PARAMS_OFFSET_IN_IO_VALID_MASK 0x1
#define FCOE_TX_DATA_PARAMS_OFFSET_IN_IO_VALID_SHIFT 0
#define FCOE_TX_DATA_PARAMS_DROP_DATA_MASK 0x1
#define FCOE_TX_DATA_PARAMS_DROP_DATA_SHIFT 1
#define FCOE_TX_DATA_PARAMS_AFTER_SEQ_REC_MASK 0x1
#define FCOE_TX_DATA_PARAMS_AFTER_SEQ_REC_SHIFT 2
#define FCOE_TX_DATA_PARAMS_RESERVED0_MASK 0x1F
#define FCOE_TX_DATA_PARAMS_RESERVED0_SHIFT 3
u8 dif_residual;
__le16 seq_cnt;
__le16 single_sge_saved_offset;
__le16 next_dif_offset;
__le16 seq_id;
__le16 reserved3;
};
/* Middle path parameters: FC header fields provided by the driver */
struct fcoe_tx_mid_path_params {
__le32 parameter;
u8 r_ctl;
u8 type;
u8 cs_ctl;
u8 df_ctl;
__le16 rx_id;
__le16 ox_id;
};
/* Task params */
struct fcoe_tx_params {
struct fcoe_tx_data_params data;
struct fcoe_tx_mid_path_params mid_path;
};
/* Union of FCP CMD payload \ TX params \ ABTS \ Cleanup */
Annotation
- Detected declarations: `struct protection_info_ctx`, `struct fcoe_fcp_cmd_payload`, `struct fcoe_fcp_rsp_payload`, `struct fcp_rsp_payload_padded`, `struct fcoe_fcp_xfer_payload`, `struct fcp_xfer_payload_padded`, `struct fcoe_tx_data_params`, `struct fcoe_tx_mid_path_params`, `struct fcoe_tx_params`, `struct fcoe_slow_sgl_ctx`.
- Atlas domain: Core OS / Core Kernel Interface.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.