Lines Matching refs:hfi1_devdata
1028 static u32 chip_to_opa_lstate(struct hfi1_devdata *dd, u32 chip_lstate);
1029 static int set_physical_link_state(struct hfi1_devdata *dd, u64 state);
1030 static void read_vc_remote_phy(struct hfi1_devdata *dd, u8 *power_management,
1032 static void read_vc_remote_fabric(struct hfi1_devdata *dd, u8 *vau, u8 *z,
1034 static void read_vc_remote_link_width(struct hfi1_devdata *dd,
1036 static void read_vc_local_link_mode(struct hfi1_devdata *dd, u8 *misc_bits,
1038 static void read_remote_device_id(struct hfi1_devdata *dd, u16 *device_id,
1040 static void read_local_lni(struct hfi1_devdata *dd, u8 *enable_lane_rx);
1041 static int read_tx_settings(struct hfi1_devdata *dd, u8 *enable_lane_tx,
1044 static void handle_sdma_eng_err(struct hfi1_devdata *dd,
1046 static void handle_qsfp_int(struct hfi1_devdata *dd, u32 source, u64 reg);
1047 static void handle_dcc_err(struct hfi1_devdata *dd,
1049 static void handle_lcb_err(struct hfi1_devdata *dd,
1051 static void handle_8051_interrupt(struct hfi1_devdata *dd, u32 unused, u64 reg);
1052 static void handle_cce_err(struct hfi1_devdata *dd, u32 unused, u64 reg);
1053 static void handle_rxe_err(struct hfi1_devdata *dd, u32 unused, u64 reg);
1054 static void handle_misc_err(struct hfi1_devdata *dd, u32 unused, u64 reg);
1055 static void handle_pio_err(struct hfi1_devdata *dd, u32 unused, u64 reg);
1056 static void handle_sdma_err(struct hfi1_devdata *dd, u32 unused, u64 reg);
1057 static void handle_egress_err(struct hfi1_devdata *dd, u32 unused, u64 reg);
1058 static void handle_txe_err(struct hfi1_devdata *dd, u32 unused, u64 reg);
1063 static int do_8051_command(struct hfi1_devdata *dd, u32 type, u64 in_data,
1065 static int read_idle_sma(struct hfi1_devdata *dd, u64 *data);
1066 static int thermal_init(struct hfi1_devdata *dd);
1077 static void read_planned_down_reason_code(struct hfi1_devdata *dd, u8 *pdrrc);
1078 static void read_link_down_reason(struct hfi1_devdata *dd, u8 *ldr);
1079 static void handle_temp_err(struct hfi1_devdata *dd);
1080 static void dc_shutdown(struct hfi1_devdata *dd);
1081 static void dc_start(struct hfi1_devdata *dd);
1082 static int qos_rmt_entries(struct hfi1_devdata *dd, unsigned int *mp,
1085 static int wait_link_transfer_active(struct hfi1_devdata *dd, int wait_ms);
1086 static void clear_rsm_rule(struct hfi1_devdata *dd, u8 rule_index);
1099 void (*handler)(struct hfi1_devdata *dd, u32 source, u64 reg);
1315 const struct hfi1_devdata *dd, in hfi1_addr_from_offset()
1331 u64 read_csr(const struct hfi1_devdata *dd, u32 offset) in read_csr()
1344 void write_csr(const struct hfi1_devdata *dd, u32 offset, u64 value) in write_csr()
1365 const struct hfi1_devdata *dd, in get_csr_addr()
1373 static inline u64 read_write_csr(const struct hfi1_devdata *dd, u32 csr, in read_write_csr()
1396 struct hfi1_devdata *dd = context; in dev_access_u32_csr()
1413 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sde_err_cnt()
1423 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sde_int_cnt()
1433 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sde_idle_int_cnt()
1444 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sde_progress_int_cnt()
1454 struct hfi1_devdata *dd = context; in dev_access_u64_csr()
1475 struct hfi1_devdata *dd = context; in dc_access_lcb_cntr()
1526 static inline u64 read_write_sw(struct hfi1_devdata *dd, u64 *cntr, int mode, in read_write_sw()
1629 static u64 read_write_cpu(struct hfi1_devdata *dd, u64 *z_val, in read_write_cpu()
1657 struct hfi1_devdata *dd = context; in access_sw_cpu_intr()
1666 struct hfi1_devdata *dd = context; in access_sw_cpu_rcv_limit()
1675 struct hfi1_devdata *dd = context; in access_sw_pio_wait()
1683 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sw_pio_drain()
1691 struct hfi1_devdata *dd = context; in access_sw_vtx_wait()
1699 struct hfi1_devdata *dd = context; in access_sw_kmem_wait()
1707 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sw_send_schedule()
1718 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_pll_lock_fail_err_cnt()
1727 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_mbist_fail_err_cnt()
1736 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_invalid_eep_cmd_err_cnt()
1745 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_efuse_done_parity_err_cnt()
1754 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_efuse_write_err_cnt()
1763 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_efuse_read_bad_addr_err_cnt()
1772 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_efuse_csr_parity_err_cnt()
1781 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_fw_auth_failed_err_cnt()
1790 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_key_mismatch_err_cnt()
1799 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_sbus_write_failed_err_cnt()
1808 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_csr_write_bad_addr_err_cnt()
1817 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_csr_read_bad_addr_err_cnt()
1826 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_csr_parity_err_cnt()
1839 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sw_cce_err_status_aggregated_cnt()
1852 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_msix_csr_parity_err_cnt()
1861 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_int_map_unc_err_cnt()
1870 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_int_map_cor_err_cnt()
1879 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_msix_table_unc_err_cnt()
1888 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_msix_table_cor_err_cnt()
1897 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_rxdma_conv_fifo_parity_err_cnt()
1906 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_rcpl_async_fifo_parity_err_cnt()
1915 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_seg_write_bad_addr_err_cnt()
1924 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_seg_read_bad_addr_err_cnt()
1932 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_la_triggered_cnt()
1941 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_trgt_cpl_timeout_err_cnt()
1950 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_receive_parity_err_cnt()
1959 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_transmit_back_parity_err_cnt()
1968 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_transmit_front_parity_err_cnt()
1977 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_cpl_dat_q_unc_err_cnt()
1986 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_cpl_hd_q_unc_err_cnt()
1995 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_post_dat_q_unc_err_cnt()
2004 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_post_hd_q_unc_err_cnt()
2013 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_retry_sot_mem_unc_err_cnt()
2022 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_retry_mem_unc_err()
2031 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_n_post_dat_q_parity_err_cnt()
2040 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_n_post_h_q_parity_err_cnt()
2049 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_cpl_dat_q_cor_err_cnt()
2058 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_cpl_hd_q_cor_err_cnt()
2067 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_post_dat_q_cor_err_cnt()
2076 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_post_hd_q_cor_err_cnt()
2085 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_retry_sot_mem_cor_err_cnt()
2094 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_retry_mem_cor_err_cnt()
2103 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_cli1_async_fifo_dbg_parity_err_cnt()
2112 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_cli1_async_fifo_rxdma_parity_err_cnt()
2121 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_cli1_async_fifo_sdma_hd_parity_err_cnt()
2130 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_cl1_async_fifo_pio_crdt_parity_err_cnt()
2139 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_cli2_async_fifo_parity_err_cnt()
2148 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_csr_cfg_bus_parity_err_cnt()
2157 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_cli0_async_fifo_parity_err_cnt()
2166 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_rspd_data_parity_err_cnt()
2175 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_trgt_access_err_cnt()
2184 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_trgt_async_fifo_parity_err_cnt()
2193 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_csr_write_bad_addr_err_cnt()
2202 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_csr_read_bad_addr_err_cnt()
2211 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_ccs_csr_parity_err_cnt()
2224 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_csr_parity_err_cnt()
2233 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_csr_write_bad_addr_err_cnt()
2242 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_csr_read_bad_addr_err_cnt()
2251 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dma_csr_unc_err_cnt()
2260 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dma_dq_fsm_encoding_err_cnt()
2269 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dma_eq_fsm_encoding_err_cnt()
2278 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dma_csr_parity_err_cnt()
2287 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_data_cor_err_cnt()
2296 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_data_unc_err_cnt()
2305 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dma_data_fifo_rd_cor_err_cnt()
2314 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dma_data_fifo_rd_unc_err_cnt()
2323 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dma_hdr_fifo_rd_cor_err_cnt()
2332 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dma_hdr_fifo_rd_unc_err_cnt()
2341 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_desc_part2_cor_err_cnt()
2350 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_desc_part2_unc_err_cnt()
2359 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_desc_part1_cor_err_cnt()
2368 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_desc_part1_unc_err_cnt()
2377 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_hq_intr_fsm_err_cnt()
2386 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_hq_intr_csr_parity_err_cnt()
2395 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_lookup_csr_parity_err_cnt()
2404 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_lookup_rcv_array_cor_err_cnt()
2413 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_lookup_rcv_array_unc_err_cnt()
2422 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_lookup_des_part2_parity_err_cnt()
2431 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_lookup_des_part1_unc_cor_err_cnt()
2440 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_lookup_des_part1_unc_err_cnt()
2449 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_next_free_buf_cor_err_cnt()
2458 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_next_free_buf_unc_err_cnt()
2467 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rbuf_fl_init_wr_addr_parity_err_cnt()
2476 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_fl_initdone_parity_err_cnt()
2485 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_fl_write_addr_parity_err_cnt()
2494 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_fl_rd_addr_parity_err_cnt()
2503 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_empty_err_cnt()
2512 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_full_err_cnt()
2521 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rbuf_bad_lookup_err_cnt()
2530 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rbuf_ctx_id_parity_err_cnt()
2539 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rbuf_csr_qeopdw_parity_err_cnt()
2548 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_csr_q_num_of_pkt_parity_err_cnt()
2557 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_csr_q_t1_ptr_parity_err_cnt()
2566 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_csr_q_hd_ptr_parity_err_cnt()
2575 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_csr_q_vld_bit_parity_err_cnt()
2584 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_csr_q_next_buf_parity_err_cnt()
2593 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_csr_q_ent_cnt_parity_err_cnt()
2602 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_csr_q_head_buf_num_parity_err_cnt()
2611 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_block_list_read_cor_err_cnt()
2620 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_block_list_read_unc_err_cnt()
2629 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_lookup_des_cor_err_cnt()
2638 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_lookup_des_unc_err_cnt()
2647 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_lookup_des_reg_unc_cor_err_cnt()
2656 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_lookup_des_reg_unc_err_cnt()
2665 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_free_list_cor_err_cnt()
2674 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_free_list_unc_err_cnt()
2683 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rcv_fsm_encoding_err_cnt()
2692 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dma_flag_cor_err_cnt()
2701 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dma_flag_unc_err_cnt()
2710 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dc_sop_eop_parity_err_cnt()
2719 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rcv_csr_parity_err_cnt()
2728 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rcv_qp_map_table_cor_err_cnt()
2737 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rcv_qp_map_table_unc_err_cnt()
2746 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rcv_data_cor_err_cnt()
2755 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rcv_data_unc_err_cnt()
2764 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rcv_hdr_cor_err_cnt()
2773 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rcv_hdr_unc_err_cnt()
2782 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dc_intf_parity_err_cnt()
2791 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dma_csr_cor_err_cnt()
2804 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_pec_sop_head_parity_err_cnt()
2813 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_pcc_sop_head_parity_err_cnt()
2822 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_last_returned_cnt_parity_err_cnt()
2831 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_current_free_cnt_parity_err_cnt()
2840 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_reserved_31_err_cnt()
2849 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_reserved_30_err_cnt()
2858 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_ppmc_sop_len_err_cnt()
2867 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_ppmc_bqc_mem_parity_err_cnt()
2876 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_vl_fifo_parity_err_cnt()
2885 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_vlf_sop_parity_err_cnt()
2894 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_vlf_v1_len_parity_err_cnt()
2903 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_block_qw_count_parity_err_cnt()
2912 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_write_qw_valid_parity_err_cnt()
2921 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_state_machine_err_cnt()
2930 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_write_data_parity_err_cnt()
2939 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_host_addr_mem_cor_err_cnt()
2948 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_host_addr_mem_unc_err_cnt()
2957 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_pkt_evict_sm_or_arb_sm_err_cnt()
2966 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_init_sm_in_err_cnt()
2975 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_ppmc_pbl_fifo_err_cnt()
2984 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_credit_ret_fifo_parity_err_cnt()
2993 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_v1_len_mem_bank1_cor_err_cnt()
3002 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_v1_len_mem_bank0_cor_err_cnt()
3011 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_v1_len_mem_bank1_unc_err_cnt()
3020 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_v1_len_mem_bank0_unc_err_cnt()
3029 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_sm_pkt_reset_parity_err_cnt()
3038 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_pkt_evict_fifo_parity_err_cnt()
3047 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_sbrdctrl_crrel_fifo_parity_err_cnt()
3056 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_sbrdctl_crrel_parity_err_cnt()
3065 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_pec_fifo_parity_err_cnt()
3074 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_pcc_fifo_parity_err_cnt()
3083 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_sb_mem_fifo1_err_cnt()
3092 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_sb_mem_fifo0_err_cnt()
3101 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_csr_parity_err_cnt()
3110 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_write_addr_parity_err_cnt()
3119 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_write_bad_ctxt_err_cnt()
3132 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_pcie_req_tracking_cor_err_cnt()
3141 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_pcie_req_tracking_unc_err_cnt()
3150 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_csr_parity_err_cnt()
3159 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_rpy_tag_err_cnt()
3172 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_read_pio_memory_csr_unc_err_cnt()
3181 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_read_sdma_memory_csr_err_cnt()
3190 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_egress_fifo_cor_err_cnt()
3199 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_read_pio_memory_cor_err_cnt()
3208 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_read_sdma_memory_cor_err_cnt()
3217 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sb_hdr_cor_err_cnt()
3226 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_credit_overrun_err_cnt()
3235 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo8_cor_err_cnt()
3244 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo7_cor_err_cnt()
3253 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo6_cor_err_cnt()
3262 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo5_cor_err_cnt()
3271 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo4_cor_err_cnt()
3280 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo3_cor_err_cnt()
3289 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo2_cor_err_cnt()
3298 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo1_cor_err_cnt()
3307 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo0_cor_err_cnt()
3316 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_credit_return_vl_err_cnt()
3325 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_hcrc_insertion_err_cnt()
3334 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_egress_fifo_unc_err_cnt()
3343 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_read_pio_memory_unc_err_cnt()
3352 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_read_sdma_memory_unc_err_cnt()
3361 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sb_hdr_unc_err_cnt()
3370 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_credit_return_partiy_err_cnt()
3379 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo8_unc_or_parity_err_cnt()
3388 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo7_unc_or_parity_err_cnt()
3397 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo6_unc_or_parity_err_cnt()
3406 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo5_unc_or_parity_err_cnt()
3415 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo4_unc_or_parity_err_cnt()
3424 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo3_unc_or_parity_err_cnt()
3433 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo2_unc_or_parity_err_cnt()
3442 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo1_unc_or_parity_err_cnt()
3451 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo0_unc_or_parity_err_cnt()
3460 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma15_disallowed_packet_err_cnt()
3469 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma14_disallowed_packet_err_cnt()
3478 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma13_disallowed_packet_err_cnt()
3487 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma12_disallowed_packet_err_cnt()
3496 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma11_disallowed_packet_err_cnt()
3505 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma10_disallowed_packet_err_cnt()
3514 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma9_disallowed_packet_err_cnt()
3523 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma8_disallowed_packet_err_cnt()
3532 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma7_disallowed_packet_err_cnt()
3541 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma6_disallowed_packet_err_cnt()
3550 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma5_disallowed_packet_err_cnt()
3559 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma4_disallowed_packet_err_cnt()
3568 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma3_disallowed_packet_err_cnt()
3577 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma2_disallowed_packet_err_cnt()
3586 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma1_disallowed_packet_err_cnt()
3595 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma0_disallowed_packet_err_cnt()
3604 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_config_parity_err_cnt()
3613 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sbrd_ctl_csr_parity_err_cnt()
3622 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_csr_parity_err_cnt()
3631 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_illegal_vl_err_cnt()
3640 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sbrd_ctl_state_machine_parity_err_cnt()
3649 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_egress_reserved_10_err_cnt()
3658 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_egress_reserved_9_err_cnt()
3667 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma_launch_intf_parity_err_cnt()
3676 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_pio_launch_intf_parity_err_cnt()
3685 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_egress_reserved_6_err_cnt()
3694 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_incorrect_link_state_err_cnt()
3703 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_linkdown_err_cnt()
3712 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_egress_fifi_underrun_or_parity_err_cnt()
3721 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_egress_reserved_2_err_cnt()
3730 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_pkt_integrity_mem_unc_err_cnt()
3739 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_pkt_integrity_mem_cor_err_cnt()
3752 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_send_csr_write_bad_addr_err_cnt()
3761 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_send_csr_read_bad_addr_err_cnt()
3770 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_send_csr_parity_cnt()
3783 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_write_out_of_bounds_err_cnt()
3792 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_write_overflow_err_cnt()
3801 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_write_crosses_boundary_err_cnt()
3810 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_disallowed_packet_err_cnt()
3819 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_inconsistent_sop_err_cnt()
3832 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_header_request_fifo_cor_err_cnt()
3841 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_header_storage_cor_err_cnt()
3850 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_packet_tracking_cor_err_cnt()
3859 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_assembly_cor_err_cnt()
3868 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_desc_table_cor_err_cnt()
3877 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_header_request_fifo_unc_err_cnt()
3886 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_header_storage_unc_err_cnt()
3895 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_packet_tracking_unc_err_cnt()
3904 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_assembly_unc_err_cnt()
3913 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_desc_table_unc_err_cnt()
3922 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_timeout_err_cnt()
3931 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_header_length_err_cnt()
3940 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_header_address_err_cnt()
3949 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_header_select_err_cnt()
3958 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_reserved_9_err_cnt()
3967 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_packet_desc_overflow_err_cnt()
3976 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_length_mismatch_err_cnt()
3984 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_halt_err_cnt()
3993 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_mem_read_err_cnt()
4002 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_first_desc_err_cnt()
4011 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_tail_out_of_bounds_err_cnt()
4020 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_too_long_err_cnt()
4029 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_gen_mismatch_err_cnt()
4038 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_wrong_dw_err_cnt()
4047 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_dc_rcv_err_cnt()
5208 int is_ax(struct hfi1_devdata *dd) in is_ax()
5217 int is_bx(struct hfi1_devdata *dd) in is_bx()
5509 static void handle_cce_err(struct hfi1_devdata *dd, u32 unused, u64 reg) in handle_cce_err()
5544 struct hfi1_devdata *dd = from_timer(dd, t, rcverr_timer); in update_rcverr_timer()
5561 static int init_rcverr(struct hfi1_devdata *dd) in init_rcverr()
5569 static void free_rcverr(struct hfi1_devdata *dd) in free_rcverr()
5575 static void handle_rxe_err(struct hfi1_devdata *dd, u32 unused, u64 reg) in handle_rxe_err()
5602 static void handle_misc_err(struct hfi1_devdata *dd, u32 unused, u64 reg) in handle_misc_err()
5615 static void handle_pio_err(struct hfi1_devdata *dd, u32 unused, u64 reg) in handle_pio_err()
5632 static void handle_sdma_err(struct hfi1_devdata *dd, u32 unused, u64 reg) in handle_sdma_err()
5654 static void count_port_inactive(struct hfi1_devdata *dd) in count_port_inactive()
5668 static void handle_send_egress_err_info(struct hfi1_devdata *dd, in handle_send_egress_err_info()
5755 static int engine_to_vl(struct hfi1_devdata *dd, int engine) in engine_to_vl()
5776 static int sc_to_vl(struct hfi1_devdata *dd, int sw_index) in sc_to_vl()
5800 static void handle_egress_err(struct hfi1_devdata *dd, u32 unused, u64 reg) in handle_egress_err()
5843 static void handle_txe_err(struct hfi1_devdata *dd, u32 unused, u64 reg) in handle_txe_err()
5874 static void interrupt_clear_down(struct hfi1_devdata *dd, in interrupt_clear_down()
5911 static void is_misc_err_int(struct hfi1_devdata *dd, unsigned int source) in is_misc_err_int()
5939 static void is_sendctxt_err_int(struct hfi1_devdata *dd, in is_sendctxt_err_int()
5998 static void handle_sdma_eng_err(struct hfi1_devdata *dd, in handle_sdma_eng_err()
6028 static void is_sdma_eng_err_int(struct hfi1_devdata *dd, unsigned int source) in is_sdma_eng_err_int()
6045 static void is_various_int(struct hfi1_devdata *dd, unsigned int source) in is_various_int()
6064 static void handle_qsfp_int(struct hfi1_devdata *dd, u32 src_ctx, u64 reg) in handle_qsfp_int()
6150 static int request_host_lcb_access(struct hfi1_devdata *dd) in request_host_lcb_access()
6164 static int request_8051_lcb_access(struct hfi1_devdata *dd) in request_8051_lcb_access()
6182 static inline void set_host_lcb_access(struct hfi1_devdata *dd) in set_host_lcb_access()
6193 static inline void set_8051_lcb_access(struct hfi1_devdata *dd) in set_8051_lcb_access()
6209 int acquire_lcb_access(struct hfi1_devdata *dd, int sleep_ok) in acquire_lcb_access()
6259 int release_lcb_access(struct hfi1_devdata *dd, int sleep_ok) in release_lcb_access()
6308 static void init_lcb_access(struct hfi1_devdata *dd) in init_lcb_access()
6316 static void hreq_response(struct hfi1_devdata *dd, u8 return_code, u16 rsp_data) in hreq_response()
6330 struct hfi1_devdata *dd = ppd->dd; in handle_8051_request()
6388 void set_up_vau(struct hfi1_devdata *dd, u8 vau) in set_up_vau()
6403 void set_up_vl15(struct hfi1_devdata *dd, u16 vl15buf) in set_up_vl15()
6426 void reset_link_credits(struct hfi1_devdata *dd) in reset_link_credits()
6468 static void lcb_shutdown(struct hfi1_devdata *dd, int abort) in lcb_shutdown()
6500 static void _dc_shutdown(struct hfi1_devdata *dd) in _dc_shutdown()
6518 static void dc_shutdown(struct hfi1_devdata *dd) in dc_shutdown()
6531 static void _dc_start(struct hfi1_devdata *dd) in _dc_start()
6552 static void dc_start(struct hfi1_devdata *dd) in dc_start()
6562 static void adjust_lcb_for_fpga_serdes(struct hfi1_devdata *dd) in adjust_lcb_for_fpga_serdes()
6653 struct hfi1_devdata *dd = ppd->dd; in handle_sma_message()
6705 static void adjust_rcvctrl(struct hfi1_devdata *dd, u64 add, u64 clear) in adjust_rcvctrl()
6718 static inline void add_rcvctrl(struct hfi1_devdata *dd, u64 add) in add_rcvctrl()
6723 static inline void clear_rcvctrl(struct hfi1_devdata *dd, u64 clear) in clear_rcvctrl()
6733 struct hfi1_devdata *dd = ppd->dd; in start_freeze_handling()
6775 static void wait_for_freeze_status(struct hfi1_devdata *dd, int freeze) in wait_for_freeze_status()
6807 static void rxe_freeze(struct hfi1_devdata *dd) in rxe_freeze()
6829 static void rxe_kernel_unfreeze(struct hfi1_devdata *dd) in rxe_kernel_unfreeze()
6866 struct hfi1_devdata *dd = ppd->dd; in handle_freeze()
6963 struct hfi1_devdata *dd = ppd->dd; in handle_link_up()
7259 static u16 link_width_to_bits(struct hfi1_devdata *dd, u16 width) in link_width_to_bits()
7301 static void get_link_widths(struct hfi1_devdata *dd, u16 *tx_width, in get_link_widths()
7363 static void get_linkup_widths(struct hfi1_devdata *dd, u16 *tx_width, in get_linkup_widths()
7416 struct hfi1_devdata *dd = ppd->dd; in handle_verify_cap()
7721 static void handle_8051_interrupt(struct hfi1_devdata *dd, u32 unused, u64 reg) in handle_8051_interrupt()
7916 static void handle_dcc_err(struct hfi1_devdata *dd, u32 unused, u64 reg) in handle_dcc_err()
8078 static void handle_lcb_err(struct hfi1_devdata *dd, u32 unused, u64 reg) in handle_lcb_err()
8089 static void is_dc_int(struct hfi1_devdata *dd, unsigned int source) in is_dc_int()
8114 static void is_send_credit_int(struct hfi1_devdata *dd, unsigned int source) in is_send_credit_int()
8128 static void is_sdma_eng_int(struct hfi1_devdata *dd, unsigned int source) in is_sdma_eng_int()
8159 static void is_rcv_avail_int(struct hfi1_devdata *dd, unsigned int source) in is_rcv_avail_int()
8190 static void is_rcv_urgent_int(struct hfi1_devdata *dd, unsigned int source) in is_rcv_urgent_int()
8215 static void is_reserved_int(struct hfi1_devdata *dd, unsigned int source) in is_reserved_int()
8254 static void is_interrupt(struct hfi1_devdata *dd, unsigned int source) in is_interrupt()
8281 struct hfi1_devdata *dd = data; in general_interrupt()
8315 struct hfi1_devdata *dd = sde->dd; in sdma_interrupt()
8352 struct hfi1_devdata *dd = rcd->dd; in clear_recv_intr()
8407 struct hfi1_devdata *dd = rcd->dd; in receive_context_interrupt()
8471 u32 read_physical_state(struct hfi1_devdata *dd) in read_physical_state()
8480 u32 read_logical_state(struct hfi1_devdata *dd) in read_logical_state()
8489 static void set_logical_state(struct hfi1_devdata *dd, u32 chip_lstate) in set_logical_state()
8503 static int read_lcb_via_8051(struct hfi1_devdata *dd, u32 addr, u64 *data) in read_lcb_via_8051()
8541 static void update_lcb_cache(struct hfi1_devdata *dd) in update_lcb_cache()
8575 int read_lcb_csr(struct hfi1_devdata *dd, u32 addr, u64 *data) in read_lcb_csr()
8597 static int write_lcb_via_8051(struct hfi1_devdata *dd, u32 addr, u64 data) in write_lcb_via_8051()
8624 int write_lcb_csr(struct hfi1_devdata *dd, u32 addr, u64 data) in write_lcb_csr()
8644 static int do_8051_command(struct hfi1_devdata *dd, u32 type, u64 in_data, in do_8051_command()
8765 static int set_physical_link_state(struct hfi1_devdata *dd, u64 state) in set_physical_link_state()
8770 int load_8051_config(struct hfi1_devdata *dd, u8 field_id, in load_8051_config()
8793 int read_8051_config(struct hfi1_devdata *dd, u8 field_id, u8 lane_id, in read_8051_config()
8826 static int write_vc_local_phy(struct hfi1_devdata *dd, u8 power_management, in write_vc_local_phy()
8837 static int write_vc_local_fabric(struct hfi1_devdata *dd, u8 vau, u8 z, u8 vcu, in write_vc_local_fabric()
8851 static void read_vc_local_link_mode(struct hfi1_devdata *dd, u8 *misc_bits, in read_vc_local_link_mode()
8863 static int write_vc_local_link_mode(struct hfi1_devdata *dd, in write_vc_local_link_mode()
8877 static int write_local_device_id(struct hfi1_devdata *dd, u16 device_id, in write_local_device_id()
8887 static void read_remote_device_id(struct hfi1_devdata *dd, u16 *device_id, in read_remote_device_id()
8898 int write_host_interface_version(struct hfi1_devdata *dd, u8 version) in write_host_interface_version()
8912 void read_misc_status(struct hfi1_devdata *dd, u8 *ver_major, u8 *ver_minor, in read_misc_status()
8928 static void read_vc_remote_phy(struct hfi1_devdata *dd, u8 *power_management, in read_vc_remote_phy()
8940 static void read_vc_remote_fabric(struct hfi1_devdata *dd, u8 *vau, u8 *z, in read_vc_remote_fabric()
8953 static void read_vc_remote_link_width(struct hfi1_devdata *dd, in read_vc_remote_link_width()
8966 static void read_local_lni(struct hfi1_devdata *dd, u8 *enable_lane_rx) in read_local_lni()
8974 static void read_last_local_state(struct hfi1_devdata *dd, u32 *lls) in read_last_local_state()
8979 static void read_last_remote_state(struct hfi1_devdata *dd, u32 *lrs) in read_last_remote_state()
8984 void hfi1_read_link_quality(struct hfi1_devdata *dd, u8 *link_quality) in hfi1_read_link_quality()
8999 static void read_planned_down_reason_code(struct hfi1_devdata *dd, u8 *pdrrc) in read_planned_down_reason_code()
9007 static void read_link_down_reason(struct hfi1_devdata *dd, u8 *ldr) in read_link_down_reason()
9015 static int read_tx_settings(struct hfi1_devdata *dd, in read_tx_settings()
9035 static int write_tx_settings(struct hfi1_devdata *dd, in write_tx_settings()
9056 static int read_idle_message(struct hfi1_devdata *dd, u64 type, u64 *data_out) in read_idle_message()
9078 static int read_idle_sma(struct hfi1_devdata *dd, u64 *data) in read_idle_sma()
9089 static int send_idle_message(struct hfi1_devdata *dd, u64 data) in send_idle_message()
9108 int send_idle_sma(struct hfi1_devdata *dd, u64 message) in send_idle_sma()
9123 static int do_quick_linkup(struct hfi1_devdata *dd) in do_quick_linkup()
9197 static int init_loopback(struct hfi1_devdata *dd) in init_loopback()
9277 struct hfi1_devdata *dd = ppd->dd; in set_local_link_attributes()
9401 struct hfi1_devdata *dd = ppd->dd; in wait_for_qsfp_init()
9435 struct hfi1_devdata *dd = ppd->dd; in set_qsfp_int_n()
9455 struct hfi1_devdata *dd = ppd->dd; in reset_qsfp()
9495 struct hfi1_devdata *dd = ppd->dd; in handle_qsfp_error_conditions()
9596 struct hfi1_devdata *dd; in qsfp_event()
9654 static void init_qsfp_int(struct hfi1_devdata *dd) in init_qsfp_int()
9699 static void init_lcb(struct hfi1_devdata *dd) in init_lcb()
9789 struct hfi1_devdata *dd = ppd->dd; in bringup_serdes()
9828 struct hfi1_devdata *dd = ppd->dd; in hfi1_quiet_serdes()
9854 static inline int init_cpu_counters(struct hfi1_devdata *dd) in init_cpu_counters()
9878 void hfi1_put_tid(struct hfi1_devdata *dd, u32 index, in hfi1_put_tid()
9918 struct hfi1_devdata *dd = rcd->dd; in hfi1_clear_tids()
9965 struct hfi1_devdata *dd = ppd->dd; in hfi1_get_ib_cfg()
10036 u32 lrh_max_header_bytes(struct hfi1_devdata *dd) in lrh_max_header_bytes()
10064 struct hfi1_devdata *dd = ppd->dd; in set_send_length()
10119 struct hfi1_devdata *dd = ppd->dd; in set_lidlmc()
10229 struct hfi1_devdata *dd = ppd->dd; in decode_state_complete()
10285 static int wait_link_transfer_active(struct hfi1_devdata *dd, int wait_ms) in wait_link_transfer_active()
10309 struct hfi1_devdata *dd = ppd->dd; in force_logical_link_state_down()
10351 struct hfi1_devdata *dd = ppd->dd; in goto_offline()
10598 struct hfi1_devdata *dd = ppd->dd; in set_link_state()
11036 struct hfi1_devdata *dd = ppd->dd; in set_vl_weights()
11091 static void read_one_cm_vl(struct hfi1_devdata *dd, u32 csr, in read_one_cm_vl()
11107 static int get_buffer_control(struct hfi1_devdata *dd, in get_buffer_control()
11134 static int get_sc2vlnt(struct hfi1_devdata *dd, struct sc2vlnt *dp) in get_sc2vlnt()
11158 static void get_vlarb_preempt(struct hfi1_devdata *dd, u32 nelems, in get_vlarb_preempt()
11169 static void set_sc2vlnt(struct hfi1_devdata *dd, struct sc2vlnt *dp) in set_sc2vlnt()
11209 static void nonzero_msg(struct hfi1_devdata *dd, int idx, const char *what, in nonzero_msg()
11218 static void set_global_shared(struct hfi1_devdata *dd, u16 limit) in set_global_shared()
11229 static void set_global_limit(struct hfi1_devdata *dd, u16 limit) in set_global_limit()
11240 static void set_vl_shared(struct hfi1_devdata *dd, int vl, u16 limit) in set_vl_shared()
11257 static void set_vl_dedicated(struct hfi1_devdata *dd, int vl, u16 limit) in set_vl_dedicated()
11274 static void wait_for_vl_status_clear(struct hfi1_devdata *dd, u64 mask, in wait_for_vl_status_clear()
11329 struct hfi1_devdata *dd = ppd->dd; in set_buffer_control()
11618 static int disable_data_vls(struct hfi1_devdata *dd) in disable_data_vls()
11636 int open_fill_data_vls(struct hfi1_devdata *dd) in open_fill_data_vls()
11651 static void drain_data_vls(struct hfi1_devdata *dd) in drain_data_vls()
11668 int stop_drain_data_vls(struct hfi1_devdata *dd) in stop_drain_data_vls()
11683 u32 ns_to_cclock(struct hfi1_devdata *dd, u32 ns) in ns_to_cclock()
11700 u32 cclock_to_ns(struct hfi1_devdata *dd, u32 cclocks) in cclock_to_ns()
11721 struct hfi1_devdata *dd = rcd->dd; in adjust_rcv_timeout()
11764 struct hfi1_devdata *dd = rcd->dd; in update_usrhead()
11838 void hfi1_rcvctrl(struct hfi1_devdata *dd, unsigned int op, in hfi1_rcvctrl()
12013 u32 hfi1_read_cntrs(struct hfi1_devdata *dd, char **namep, u64 **cntrp) in hfi1_read_cntrs()
12133 static void free_cntrs(struct hfi1_devdata *dd) in free_cntrs()
12167 static u64 read_dev_port_cntr(struct hfi1_devdata *dd, struct cntr_entry *entry, in read_dev_port_cntr()
12218 static u64 write_dev_port_cntr(struct hfi1_devdata *dd, in write_dev_port_cntr()
12252 u64 read_dev_cntr(struct hfi1_devdata *dd, int index, int vl) in read_dev_cntr()
12266 u64 write_dev_cntr(struct hfi1_devdata *dd, int index, int vl, u64 data) in write_dev_cntr()
12329 struct hfi1_devdata *dd = container_of(work, struct hfi1_devdata, in do_update_synth_timer()
12417 struct hfi1_devdata *dd = from_timer(dd, t, synth_stats_timer); in update_synth_timer()
12424 static int init_cntrs(struct hfi1_devdata *dd) in init_cntrs()
12669 static u32 chip_to_opa_lstate(struct hfi1_devdata *dd, u32 chip_lstate) in chip_to_opa_lstate()
12688 u32 chip_to_opa_pstate(struct hfi1_devdata *dd, u32 chip_pstate) in chip_to_opa_pstate()
12924 struct hfi1_devdata *dd = sc->dd; in hfi1_init_ctxt()
12940 int hfi1_tempsense_rd(struct hfi1_devdata *dd, struct hfi1_temp *temp) in hfi1_tempsense_rd()
12974 static u64 get_int_mask(struct hfi1_devdata *dd, u32 i) in get_int_mask()
12997 void set_intr_state(struct hfi1_devdata *dd, u32 enable) in set_intr_state()
13022 static void clear_all_interrupts(struct hfi1_devdata *dd) in clear_all_interrupts()
13052 void hfi1_clean_up_interrupts(struct hfi1_devdata *dd) in hfi1_clean_up_interrupts()
13077 static void remap_intr(struct hfi1_devdata *dd, int isrc, int msix_intr) in remap_intr()
13101 static void remap_sdma_interrupts(struct hfi1_devdata *dd, in remap_sdma_interrupts()
13119 static int request_msix_irqs(struct hfi1_devdata *dd) in request_msix_irqs()
13233 void hfi1_vnic_synchronize_irq(struct hfi1_devdata *dd) in hfi1_vnic_synchronize_irq()
13247 struct hfi1_devdata *dd = rcd->dd; in hfi1_reset_vnic_msix_info()
13261 struct hfi1_devdata *dd = rcd->dd; in hfi1_set_vnic_msix_info()
13308 static void reset_interrupts(struct hfi1_devdata *dd) in reset_interrupts()
13321 static int set_up_interrupts(struct hfi1_devdata *dd) in set_up_interrupts()
13383 static int set_up_context_variables(struct hfi1_devdata *dd) in set_up_context_variables()
13537 struct hfi1_devdata *dd = ppd->dd; in set_partition_keys()
13567 static void write_uninitialized_csrs_and_memories(struct hfi1_devdata *dd) in write_uninitialized_csrs_and_memories()
13608 static void clear_cce_status(struct hfi1_devdata *dd, u64 status_bits, in clear_cce_status()
13639 static void reset_cce_csrs(struct hfi1_devdata *dd) in reset_cce_csrs()
13684 static void reset_misc_csrs(struct hfi1_devdata *dd) in reset_misc_csrs()
13712 static void reset_txe_csrs(struct hfi1_devdata *dd) in reset_txe_csrs()
13832 static void init_rbufs(struct hfi1_devdata *dd) in init_rbufs()
13894 static void reset_rxe_csrs(struct hfi1_devdata *dd) in reset_rxe_csrs()
13973 static void init_sc2vl_tables(struct hfi1_devdata *dd) in init_sc2vl_tables()
14032 static int init_chip(struct hfi1_devdata *dd) in init_chip()
14129 static void init_early_variables(struct hfi1_devdata *dd) in init_early_variables()
14155 static void init_kdeth_qp(struct hfi1_devdata *dd) in init_kdeth_qp()
14192 static void init_qpmap_table(struct hfi1_devdata *dd, in init_qpmap_table()
14241 static struct rsm_map_table *alloc_rsm_map_table(struct hfi1_devdata *dd) in alloc_rsm_map_table()
14259 static void complete_rsm_map_table(struct hfi1_devdata *dd, in complete_rsm_map_table()
14277 static void add_rsm_rule(struct hfi1_devdata *dd, u8 rule_index, in add_rsm_rule()
14301 static void clear_rsm_rule(struct hfi1_devdata *dd, u8 rule_index) in clear_rsm_rule()
14309 static int qos_rmt_entries(struct hfi1_devdata *dd, unsigned int *mp, in qos_rmt_entries()
14366 static void init_qos(struct hfi1_devdata *dd, struct rsm_map_table *rmt) in init_qos()
14436 static void init_user_fecn_handling(struct hfi1_devdata *dd, in init_user_fecn_handling()
14503 void hfi1_init_vnic_rsm(struct hfi1_devdata *dd) in hfi1_init_vnic_rsm()
14566 void hfi1_deinit_vnic_rsm(struct hfi1_devdata *dd) in hfi1_deinit_vnic_rsm()
14575 static void init_rxe(struct hfi1_devdata *dd) in init_rxe()
14612 static void init_other(struct hfi1_devdata *dd) in init_other()
14631 static void assign_cm_au_table(struct hfi1_devdata *dd, u32 cu, in assign_cm_au_table()
14652 static void assign_local_cm_au_table(struct hfi1_devdata *dd, u8 vcu) in assign_local_cm_au_table()
14658 void assign_remote_cm_au_table(struct hfi1_devdata *dd, u8 vcu) in assign_remote_cm_au_table()
14664 static void init_txe(struct hfi1_devdata *dd) in init_txe()
14691 int hfi1_set_ctxt_jkey(struct hfi1_devdata *dd, struct hfi1_ctxtdata *rcd, in hfi1_set_ctxt_jkey()
14726 int hfi1_clear_ctxt_jkey(struct hfi1_devdata *dd, struct hfi1_ctxtdata *rcd) in hfi1_clear_ctxt_jkey()
14752 int hfi1_set_ctxt_pkey(struct hfi1_devdata *dd, struct hfi1_ctxtdata *rcd, in hfi1_set_ctxt_pkey()
14773 int hfi1_clear_ctxt_pkey(struct hfi1_devdata *dd, struct hfi1_ctxtdata *ctxt) in hfi1_clear_ctxt_pkey()
14794 void hfi1_start_cleanup(struct hfi1_devdata *dd) in hfi1_start_cleanup()
14810 static int init_asic_data(struct hfi1_devdata *dd) in init_asic_data()
14813 struct hfi1_devdata *tmp, *peer = NULL; in init_asic_data()
14856 static int obtain_boardname(struct hfi1_devdata *dd) in obtain_boardname()
14884 static int check_int_registers(struct hfi1_devdata *dd) in check_int_registers()
14931 struct hfi1_devdata *hfi1_init_dd(struct pci_dev *pdev, in hfi1_init_dd()
14934 struct hfi1_devdata *dd; in hfi1_init_dd()
15321 static int thermal_init(struct hfi1_devdata *dd) in thermal_init()
15392 static void handle_temp_err(struct hfi1_devdata *dd) in handle_temp_err()