drivers/infiniband/hw/irdma/type.h
Source file repositories/reference/linux-study-clean/drivers/infiniband/hw/irdma/type.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/infiniband/hw/irdma/type.h- Extension
.h- Size
- 36840 bytes
- Lines
- 1693
- Domain
- Driver Families
- Bucket
- drivers/infiniband
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
osdep.hirdma.huser.hhmc.huda.hws.hvirtchnl.h
Detected Declarations
struct irdma_sc_devstruct irdma_vsi_pestatstruct irdma_dcqcn_cc_paramsstruct irdma_cqp_init_infostruct irdma_terminate_hdrstruct irdma_cqp_sq_wqestruct irdma_sc_aeqestruct irdma_ceqestruct irdma_cqp_ctxstruct irdma_cq_shadow_areastruct irdma_dev_hw_stats_offsetsstruct irdma_dev_hw_statsstruct irdma_gather_statsstruct irdma_hw_stat_mapstruct irdma_stats_gather_infostruct irdma_vsi_pestatstruct irdma_mmio_regionstruct irdma_hwstruct irdma_pfpdustruct irdma_sc_pdstruct irdma_cqp_quantastruct irdma_ooo_cqp_opstruct irdma_sc_cqpstruct irdma_sc_aeqstruct irdma_sc_ceqstruct irdma_sc_cqstruct irdma_sc_qpstruct irdma_stats_inst_infostruct irdma_up_infostruct irdma_ws_node_infostruct irdma_hmc_fpm_miscstruct irdma_qosstruct irdma_sc_vsistruct irdma_sc_devstruct irdma_modify_cq_infostruct irdma_srq_init_infostruct irdma_sc_srqstruct irdma_modify_srq_infostruct irdma_create_qp_infostruct irdma_modify_qp_infostruct irdma_ccq_cqe_infostruct irdma_dcb_app_infostruct irdma_qos_tc_infostruct irdma_l2paramsstruct irdma_vsi_init_infostruct irdma_vsi_stats_infostruct irdma_device_init_infostruct irdma_ceq_init_info
Annotated Snippet
struct irdma_dcqcn_cc_params {
u8 cc_cfg_valid;
u8 min_dec_factor;
u8 min_rate;
u8 dcqcn_f;
u16 rai_factor;
u16 hai_factor;
u16 dcqcn_t;
u32 dcqcn_b;
u32 rreduce_mperiod;
};
struct irdma_cqp_init_info {
u64 cqp_compl_ctx;
u64 host_ctx_pa;
u64 sq_pa;
struct irdma_sc_dev *dev;
struct irdma_cqp_quanta *sq;
struct irdma_dcqcn_cc_params dcqcn_params;
__le64 *host_ctx;
u64 *scratch_array;
u32 sq_size;
struct irdma_ooo_cqp_op *ooo_op_array;
u32 pe_en_vf_cnt;
u16 hw_maj_ver;
u16 hw_min_ver;
u8 struct_ver;
u8 hmc_profile;
u8 ena_vf_count;
u8 ceqs_per_vf;
u8 ooisc_blksize;
u8 rrsp_blksize;
u8 q1_blksize;
u8 xmit_blksize;
u8 ts_override;
u8 ts_shift;
u8 en_fine_grained_timers;
u8 blksizes_valid;
bool en_datacenter_tcp:1;
bool disable_packed:1;
bool rocev2_rto_policy:1;
enum irdma_protocol_used protocol_used;
};
struct irdma_terminate_hdr {
u8 layer_etype;
u8 error_code;
u8 hdrct;
u8 rsvd;
};
struct irdma_cqp_sq_wqe {
__le64 buf[IRDMA_CQP_WQE_SIZE];
};
struct irdma_sc_aeqe {
__le64 buf[IRDMA_AEQE_SIZE];
};
struct irdma_ceqe {
__le64 buf[IRDMA_CEQE_SIZE];
};
struct irdma_cqp_ctx {
__le64 buf[IRDMA_CQP_CTX_SIZE];
};
struct irdma_cq_shadow_area {
__le64 buf[IRDMA_SHADOW_AREA_SIZE];
};
struct irdma_dev_hw_stats_offsets {
u32 stats_offset[IRDMA_HW_STAT_INDEX_MAX_GEN_1];
};
struct irdma_dev_hw_stats {
u64 stats_val[IRDMA_GATHER_STATS_BUF_SIZE / sizeof(u64)];
};
struct irdma_gather_stats {
u64 val[IRDMA_GATHER_STATS_BUF_SIZE / sizeof(u64)];
};
struct irdma_hw_stat_map {
u16 byteoff;
u8 bitoff;
u64 bitmask;
};
struct irdma_stats_gather_info {
Annotation
- Immediate include surface: `osdep.h`, `irdma.h`, `user.h`, `hmc.h`, `uda.h`, `ws.h`, `virtchnl.h`.
- Detected declarations: `struct irdma_sc_dev`, `struct irdma_vsi_pestat`, `struct irdma_dcqcn_cc_params`, `struct irdma_cqp_init_info`, `struct irdma_terminate_hdr`, `struct irdma_cqp_sq_wqe`, `struct irdma_sc_aeqe`, `struct irdma_ceqe`, `struct irdma_cqp_ctx`, `struct irdma_cq_shadow_area`.
- Atlas domain: Driver Families / drivers/infiniband.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.