Lines Matching defs:hfi1_devdata

1010 struct hfi1_devdata {  struct
1011 struct hfi1_ibdev verbs_dev; /* must be first */
1012 struct list_head list;
1015 struct pci_dev *pcidev;
1016 struct cdev user_cdev;
1017 struct cdev diag_cdev;
1018 struct cdev ui_cdev;
1019 struct device *user_device;
1020 struct device *diag_device;
1021 struct device *ui_device;
1024 u8 __iomem *kregbase1;
1025 resource_size_t physaddr;
1028 u8 __iomem *kregbase2;
1030 u32 base2_start;
1033 struct per_vl_data vld[PER_VL_SEND_CONTEXTS];
1035 struct send_context_info *send_contexts;
1037 u8 *hw_to_sw;
1039 spinlock_t sc_lock;
1041 spinlock_t pio_map_lock;
1043 spinlock_t sc_init_lock;
1045 spinlock_t sde_map_lock;
1047 struct send_context **kernel_send_context;
1049 struct pio_vl_map __rcu *pio_map;
1051 u64 default_desc1;
1055 volatile __le64 *sdma_heads_dma; /* DMA'ed by chip */
1056 dma_addr_t sdma_heads_phys;
1057 void *sdma_pad_dma; /* DMA'ed by chip */
1058 dma_addr_t sdma_pad_phys;
1060 size_t sdma_heads_size;
1062 u32 num_sdma;
1064 struct sdma_engine *per_sdma;
1066 struct sdma_vl_map __rcu *sdma_map;
1068 wait_queue_head_t sdma_unfreeze_wq;
1069 atomic_t sdma_unfreeze_count;
1071 u32 lcb_access_count; /* count of LCB users */
1074 struct hfi1_asic_data *asic_data;
1077 void __iomem *piobase;
1082 void __iomem *rcvarray_wc;
1087 struct credit_return_base *cr_base;
1090 struct sc_config_sizes sc_sizes[SC_MAX];
1092 char *boardname; /* human readable board info */
1095 u64 z_int_counter;
1096 u64 z_rcv_limit;
1097 u64 z_send_schedule;
1099 u64 __percpu *send_schedule;
1101 u16 num_vnic_contexts;
1103 u32 num_rcv_contexts;
1105 u32 num_send_contexts;
1109 u32 freectxts;
1111 u32 num_user_contexts;
1113 u32 rcv_intr_timeout_csr;
1115 spinlock_t sendctrl_lock; /* protect changes to SendCtrl */
1116 spinlock_t rcvctrl_lock; /* protect changes to RcvCtrl */
1117 spinlock_t uctxt_lock; /* protect rcd changes */
1118 struct mutex dc8051_lock; /* exclusive access to 8051 */
1119 struct workqueue_struct *update_cntr_wq;
1120 struct work_struct update_cntr_work;
1122 spinlock_t dc8051_memlock;
1123 int dc8051_timed_out; /* remember if the 8051 timed out */
1128 unsigned long *events;
1134 struct hfi1_status *status;
1137 u64 revision;
1139 u64 base_guid;
1142 u8 link_gen3_capable;
1143 u8 dc_shutdown;
1145 u32 lbus_width;
1147 u32 lbus_speed;
1148 int unit; /* unit # of this chip */
1149 int node; /* home node of this chip */
1152 u32 pcibar0;
1153 u32 pcibar1;
1154 u32 pci_rom;
1155 u16 pci_command;
1156 u16 pcie_devctl;
1157 u16 pcie_lnkctl;
1158 u16 pcie_devctl2;
1159 u32 pci_msix0;
1160 u32 pci_tph2;
1166 u8 serial[SERIAL_MAX];
1168 u8 boardversion[BOARD_VERS_MAX];
1169 u8 lbus_info[32]; /* human readable localbus info */
1171 u8 majrev;
1173 u8 minrev;
1175 u8 hfi1_id;
1177 u8 icode;
1179 u8 vau;
1181 u8 vcu;
1183 u16 link_credits;
1185 u16 vl15_init;
1193 u16 vl15buf_cached;
1196 u8 n_krcv_queues;
1197 u8 qos_shift;
1199 u16 irev; /* implementation revision */
1200 u32 dc8051_ver; /* 8051 firmware version */
1202 spinlock_t hfi1_diag_trans_lock; /* protect diag observer ops */
1203 struct platform_config platform_config;
1204 struct platform_config_cache pcfg_cache;
1206 struct diag_client *diag_client;
1209 struct hfi1_msix_entry *msix_entries;
1210 u32 num_msix_entries;
1211 u32 first_dyn_msix_idx;
1214 u64 gi_mask[CCE_NUM_INT_CSRS];
1216 struct rcv_array_data rcv_entries;
1219 u16 psxmitwait_check_rate;
1224 struct timer_list synth_stats_timer;
1229 char *cntrnames;
1230 size_t cntrnameslen;
1231 size_t ndevcntrs;
1232 u64 *cntrs;
1233 u64 *scntrs;
1238 u64 last_tx;
1239 u64 last_rx;
1244 size_t nportcntrs;
1245 char *portcntrnames;
1246 size_t portcntrnameslen;
1248 struct err_info_rcvport err_info_rcvport;
1249 struct err_info_constraint err_info_rcv_constraint;
1250 struct err_info_constraint err_info_xmit_constraint;
1252 atomic_t drop_packet;
1253 u8 do_drop;
1254 u8 err_info_uncorrectable;
1255 u8 err_info_fmconfig;
1261 u64 cce_err_status_cnt[NUM_CCE_ERR_STATUS_COUNTERS];
1262 u64 rcv_err_status_cnt[NUM_RCV_ERR_STATUS_COUNTERS];
1263 u64 misc_err_status_cnt[NUM_MISC_ERR_STATUS_COUNTERS];
1264 u64 send_pio_err_status_cnt[NUM_SEND_PIO_ERR_STATUS_COUNTERS];
1265 u64 send_dma_err_status_cnt[NUM_SEND_DMA_ERR_STATUS_COUNTERS];
1266 u64 send_egress_err_status_cnt[NUM_SEND_EGRESS_ERR_STATUS_COUNTERS];
1267 u64 send_err_status_cnt[NUM_SEND_ERR_STATUS_COUNTERS];
1291 void (*pio_inline_send)(struct hfi1_devdata *dd, struct pio_buf *pbuf, argument
1293 int (*process_vnic_dma_send)(struct hfi1_devdata *dd, u8 q_idx, argument
1299 struct hfi1_pportdata *pport;
1301 struct hfi1_ctxtdata **rcd;
1302 u64 __percpu *int_counter;
1304 struct hfi1_opcode_stats_perctx __percpu *tx_opstats;
1306 u16 flags;
1308 u8 num_pports;
1310 u8 first_dyn_alloc_ctxt;
1314 seqlock_t sc2vl_lock ____cacheline_aligned_in_smp;
1315 u64 sc2vl[4];
1316 u64 __percpu *rcv_limit;
1320 u8 oui1;
1321 u8 oui2;
1322 u8 oui3;
1325 struct timer_list rcverr_timer;
1327 wait_queue_head_t event_queue;
1330 __le64 *rcvhdrtail_dummy_kvaddr;
1354 static inline bool hfi1_vnic_is_rsm_full(struct hfi1_devdata *dd, int spare) in hfi1_vnic_is_rsm_full() argument