Lines Matching refs:hfi1_devdata

1003 static u32 chip_to_opa_lstate(struct hfi1_devdata *dd, u32 chip_lstate);
1004 static int set_physical_link_state(struct hfi1_devdata *dd, u64 state);
1005 static void read_vc_remote_phy(struct hfi1_devdata *dd, u8 *power_management,
1007 static void read_vc_remote_fabric(struct hfi1_devdata *dd, u8 *vau, u8 *z,
1009 static void read_vc_remote_link_width(struct hfi1_devdata *dd,
1011 static void read_vc_local_link_mode(struct hfi1_devdata *dd, u8 *misc_bits,
1013 static void read_remote_device_id(struct hfi1_devdata *dd, u16 *device_id,
1015 static void read_local_lni(struct hfi1_devdata *dd, u8 *enable_lane_rx);
1016 static int read_tx_settings(struct hfi1_devdata *dd, u8 *enable_lane_tx,
1019 static void handle_sdma_eng_err(struct hfi1_devdata *dd,
1021 static void handle_qsfp_int(struct hfi1_devdata *dd, u32 source, u64 reg);
1022 static void handle_dcc_err(struct hfi1_devdata *dd,
1024 static void handle_lcb_err(struct hfi1_devdata *dd,
1026 static void handle_8051_interrupt(struct hfi1_devdata *dd, u32 unused, u64 reg);
1027 static void handle_cce_err(struct hfi1_devdata *dd, u32 unused, u64 reg);
1028 static void handle_rxe_err(struct hfi1_devdata *dd, u32 unused, u64 reg);
1029 static void handle_misc_err(struct hfi1_devdata *dd, u32 unused, u64 reg);
1030 static void handle_pio_err(struct hfi1_devdata *dd, u32 unused, u64 reg);
1031 static void handle_sdma_err(struct hfi1_devdata *dd, u32 unused, u64 reg);
1032 static void handle_egress_err(struct hfi1_devdata *dd, u32 unused, u64 reg);
1033 static void handle_txe_err(struct hfi1_devdata *dd, u32 unused, u64 reg);
1038 static int do_8051_command(struct hfi1_devdata *dd, u32 type, u64 in_data,
1040 static int read_idle_sma(struct hfi1_devdata *dd, u64 *data);
1041 static int thermal_init(struct hfi1_devdata *dd);
1054 static void read_planned_down_reason_code(struct hfi1_devdata *dd, u8 *pdrrc);
1055 static void read_link_down_reason(struct hfi1_devdata *dd, u8 *ldr);
1056 static void handle_temp_err(struct hfi1_devdata *dd);
1057 static void dc_shutdown(struct hfi1_devdata *dd);
1058 static void dc_start(struct hfi1_devdata *dd);
1059 static int qos_rmt_entries(struct hfi1_devdata *dd, unsigned int *mp,
1062 static int wait_link_transfer_active(struct hfi1_devdata *dd, int wait_ms);
1063 static void clear_rsm_rule(struct hfi1_devdata *dd, u8 rule_index);
1076 void (*handler)(struct hfi1_devdata *dd, u32 source, u64 reg);
1292 const struct hfi1_devdata *dd, in hfi1_addr_from_offset()
1308 u64 read_csr(const struct hfi1_devdata *dd, u32 offset) in read_csr()
1321 void write_csr(const struct hfi1_devdata *dd, u32 offset, u64 value) in write_csr()
1342 const struct hfi1_devdata *dd, in get_csr_addr()
1350 static inline u64 read_write_csr(const struct hfi1_devdata *dd, u32 csr, in read_write_csr()
1373 struct hfi1_devdata *dd = context; in dev_access_u32_csr()
1390 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sde_err_cnt()
1400 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sde_int_cnt()
1410 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sde_idle_int_cnt()
1421 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sde_progress_int_cnt()
1431 struct hfi1_devdata *dd = context; in dev_access_u64_csr()
1452 struct hfi1_devdata *dd = context; in dc_access_lcb_cntr()
1503 static inline u64 read_write_sw(struct hfi1_devdata *dd, u64 *cntr, int mode, in read_write_sw()
1606 static u64 read_write_cpu(struct hfi1_devdata *dd, u64 *z_val, in read_write_cpu()
1634 struct hfi1_devdata *dd = context; in access_sw_cpu_intr()
1643 struct hfi1_devdata *dd = context; in access_sw_cpu_rcv_limit()
1652 struct hfi1_devdata *dd = context; in access_sw_pio_wait()
1660 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sw_pio_drain()
1668 struct hfi1_devdata *dd = context; in access_sw_ctx0_seq_drop()
1676 struct hfi1_devdata *dd = context; in access_sw_vtx_wait()
1684 struct hfi1_devdata *dd = context; in access_sw_kmem_wait()
1692 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sw_send_schedule()
1703 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_pll_lock_fail_err_cnt()
1712 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_mbist_fail_err_cnt()
1721 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_invalid_eep_cmd_err_cnt()
1730 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_efuse_done_parity_err_cnt()
1739 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_efuse_write_err_cnt()
1748 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_efuse_read_bad_addr_err_cnt()
1757 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_efuse_csr_parity_err_cnt()
1766 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_fw_auth_failed_err_cnt()
1775 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_key_mismatch_err_cnt()
1784 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_sbus_write_failed_err_cnt()
1793 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_csr_write_bad_addr_err_cnt()
1802 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_csr_read_bad_addr_err_cnt()
1811 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_misc_csr_parity_err_cnt()
1824 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sw_cce_err_status_aggregated_cnt()
1837 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_msix_csr_parity_err_cnt()
1846 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_int_map_unc_err_cnt()
1855 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_int_map_cor_err_cnt()
1864 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_msix_table_unc_err_cnt()
1873 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_msix_table_cor_err_cnt()
1882 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_rxdma_conv_fifo_parity_err_cnt()
1891 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_rcpl_async_fifo_parity_err_cnt()
1900 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_seg_write_bad_addr_err_cnt()
1909 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_seg_read_bad_addr_err_cnt()
1917 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_la_triggered_cnt()
1926 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_trgt_cpl_timeout_err_cnt()
1935 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_receive_parity_err_cnt()
1944 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_transmit_back_parity_err_cnt()
1953 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_transmit_front_parity_err_cnt()
1962 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_cpl_dat_q_unc_err_cnt()
1971 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_cpl_hd_q_unc_err_cnt()
1980 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_post_dat_q_unc_err_cnt()
1989 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_post_hd_q_unc_err_cnt()
1998 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_retry_sot_mem_unc_err_cnt()
2007 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_retry_mem_unc_err()
2016 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_n_post_dat_q_parity_err_cnt()
2025 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_n_post_h_q_parity_err_cnt()
2034 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_cpl_dat_q_cor_err_cnt()
2043 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_cpl_hd_q_cor_err_cnt()
2052 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_post_dat_q_cor_err_cnt()
2061 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_post_hd_q_cor_err_cnt()
2070 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_retry_sot_mem_cor_err_cnt()
2079 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pcic_retry_mem_cor_err_cnt()
2088 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_cli1_async_fifo_dbg_parity_err_cnt()
2097 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_cli1_async_fifo_rxdma_parity_err_cnt()
2106 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_cli1_async_fifo_sdma_hd_parity_err_cnt()
2115 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_cl1_async_fifo_pio_crdt_parity_err_cnt()
2124 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_cli2_async_fifo_parity_err_cnt()
2133 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_csr_cfg_bus_parity_err_cnt()
2142 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_cli0_async_fifo_parity_err_cnt()
2151 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_rspd_data_parity_err_cnt()
2160 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_trgt_access_err_cnt()
2169 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_trgt_async_fifo_parity_err_cnt()
2178 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_csr_write_bad_addr_err_cnt()
2187 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_cce_csr_read_bad_addr_err_cnt()
2196 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_ccs_csr_parity_err_cnt()
2209 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_csr_parity_err_cnt()
2218 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_csr_write_bad_addr_err_cnt()
2227 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_csr_read_bad_addr_err_cnt()
2236 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dma_csr_unc_err_cnt()
2245 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dma_dq_fsm_encoding_err_cnt()
2254 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dma_eq_fsm_encoding_err_cnt()
2263 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dma_csr_parity_err_cnt()
2272 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_data_cor_err_cnt()
2281 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_data_unc_err_cnt()
2290 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dma_data_fifo_rd_cor_err_cnt()
2299 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dma_data_fifo_rd_unc_err_cnt()
2308 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dma_hdr_fifo_rd_cor_err_cnt()
2317 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dma_hdr_fifo_rd_unc_err_cnt()
2326 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_desc_part2_cor_err_cnt()
2335 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_desc_part2_unc_err_cnt()
2344 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_desc_part1_cor_err_cnt()
2353 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_desc_part1_unc_err_cnt()
2362 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_hq_intr_fsm_err_cnt()
2371 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_hq_intr_csr_parity_err_cnt()
2380 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_lookup_csr_parity_err_cnt()
2389 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_lookup_rcv_array_cor_err_cnt()
2398 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_lookup_rcv_array_unc_err_cnt()
2407 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_lookup_des_part2_parity_err_cnt()
2416 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_lookup_des_part1_unc_cor_err_cnt()
2425 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_lookup_des_part1_unc_err_cnt()
2434 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_next_free_buf_cor_err_cnt()
2443 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_next_free_buf_unc_err_cnt()
2452 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rbuf_fl_init_wr_addr_parity_err_cnt()
2461 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_fl_initdone_parity_err_cnt()
2470 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_fl_write_addr_parity_err_cnt()
2479 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_fl_rd_addr_parity_err_cnt()
2488 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_empty_err_cnt()
2497 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_full_err_cnt()
2506 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rbuf_bad_lookup_err_cnt()
2515 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rbuf_ctx_id_parity_err_cnt()
2524 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rbuf_csr_qeopdw_parity_err_cnt()
2533 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_csr_q_num_of_pkt_parity_err_cnt()
2542 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_csr_q_t1_ptr_parity_err_cnt()
2551 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_csr_q_hd_ptr_parity_err_cnt()
2560 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_csr_q_vld_bit_parity_err_cnt()
2569 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_csr_q_next_buf_parity_err_cnt()
2578 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_csr_q_ent_cnt_parity_err_cnt()
2587 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_csr_q_head_buf_num_parity_err_cnt()
2596 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_block_list_read_cor_err_cnt()
2605 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_block_list_read_unc_err_cnt()
2614 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_lookup_des_cor_err_cnt()
2623 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_lookup_des_unc_err_cnt()
2632 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_lookup_des_reg_unc_cor_err_cnt()
2641 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_lookup_des_reg_unc_err_cnt()
2650 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_free_list_cor_err_cnt()
2659 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rbuf_free_list_unc_err_cnt()
2668 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rcv_fsm_encoding_err_cnt()
2677 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dma_flag_cor_err_cnt()
2686 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dma_flag_unc_err_cnt()
2695 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dc_sop_eop_parity_err_cnt()
2704 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rcv_csr_parity_err_cnt()
2713 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rcv_qp_map_table_cor_err_cnt()
2722 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rcv_qp_map_table_unc_err_cnt()
2731 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rcv_data_cor_err_cnt()
2740 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rcv_data_unc_err_cnt()
2749 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rcv_hdr_cor_err_cnt()
2758 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_rcv_hdr_unc_err_cnt()
2767 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dc_intf_parity_err_cnt()
2776 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_rx_dma_csr_cor_err_cnt()
2789 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_pec_sop_head_parity_err_cnt()
2798 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_pcc_sop_head_parity_err_cnt()
2807 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_last_returned_cnt_parity_err_cnt()
2816 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_current_free_cnt_parity_err_cnt()
2825 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_reserved_31_err_cnt()
2834 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_reserved_30_err_cnt()
2843 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_ppmc_sop_len_err_cnt()
2852 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_ppmc_bqc_mem_parity_err_cnt()
2861 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_vl_fifo_parity_err_cnt()
2870 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_vlf_sop_parity_err_cnt()
2879 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_vlf_v1_len_parity_err_cnt()
2888 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_block_qw_count_parity_err_cnt()
2897 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_write_qw_valid_parity_err_cnt()
2906 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_state_machine_err_cnt()
2915 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_write_data_parity_err_cnt()
2924 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_host_addr_mem_cor_err_cnt()
2933 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_host_addr_mem_unc_err_cnt()
2942 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_pkt_evict_sm_or_arb_sm_err_cnt()
2951 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_init_sm_in_err_cnt()
2960 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_ppmc_pbl_fifo_err_cnt()
2969 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_credit_ret_fifo_parity_err_cnt()
2978 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_v1_len_mem_bank1_cor_err_cnt()
2987 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_v1_len_mem_bank0_cor_err_cnt()
2996 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_v1_len_mem_bank1_unc_err_cnt()
3005 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_v1_len_mem_bank0_unc_err_cnt()
3014 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_sm_pkt_reset_parity_err_cnt()
3023 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_pkt_evict_fifo_parity_err_cnt()
3032 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_sbrdctrl_crrel_fifo_parity_err_cnt()
3041 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_sbrdctl_crrel_parity_err_cnt()
3050 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_pec_fifo_parity_err_cnt()
3059 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_pcc_fifo_parity_err_cnt()
3068 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_sb_mem_fifo1_err_cnt()
3077 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_sb_mem_fifo0_err_cnt()
3086 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_csr_parity_err_cnt()
3095 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_write_addr_parity_err_cnt()
3104 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_write_bad_ctxt_err_cnt()
3117 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_pcie_req_tracking_cor_err_cnt()
3126 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_pcie_req_tracking_unc_err_cnt()
3135 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_csr_parity_err_cnt()
3144 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_rpy_tag_err_cnt()
3157 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_read_pio_memory_csr_unc_err_cnt()
3166 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_read_sdma_memory_csr_err_cnt()
3175 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_egress_fifo_cor_err_cnt()
3184 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_read_pio_memory_cor_err_cnt()
3193 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_read_sdma_memory_cor_err_cnt()
3202 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sb_hdr_cor_err_cnt()
3211 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_credit_overrun_err_cnt()
3220 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo8_cor_err_cnt()
3229 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo7_cor_err_cnt()
3238 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo6_cor_err_cnt()
3247 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo5_cor_err_cnt()
3256 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo4_cor_err_cnt()
3265 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo3_cor_err_cnt()
3274 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo2_cor_err_cnt()
3283 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo1_cor_err_cnt()
3292 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo0_cor_err_cnt()
3301 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_credit_return_vl_err_cnt()
3310 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_hcrc_insertion_err_cnt()
3319 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_egress_fifo_unc_err_cnt()
3328 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_read_pio_memory_unc_err_cnt()
3337 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_read_sdma_memory_unc_err_cnt()
3346 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sb_hdr_unc_err_cnt()
3355 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_credit_return_partiy_err_cnt()
3364 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo8_unc_or_parity_err_cnt()
3373 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo7_unc_or_parity_err_cnt()
3382 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo6_unc_or_parity_err_cnt()
3391 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo5_unc_or_parity_err_cnt()
3400 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo4_unc_or_parity_err_cnt()
3409 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo3_unc_or_parity_err_cnt()
3418 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo2_unc_or_parity_err_cnt()
3427 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo1_unc_or_parity_err_cnt()
3436 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_fifo0_unc_or_parity_err_cnt()
3445 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma15_disallowed_packet_err_cnt()
3454 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma14_disallowed_packet_err_cnt()
3463 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma13_disallowed_packet_err_cnt()
3472 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma12_disallowed_packet_err_cnt()
3481 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma11_disallowed_packet_err_cnt()
3490 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma10_disallowed_packet_err_cnt()
3499 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma9_disallowed_packet_err_cnt()
3508 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma8_disallowed_packet_err_cnt()
3517 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma7_disallowed_packet_err_cnt()
3526 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma6_disallowed_packet_err_cnt()
3535 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma5_disallowed_packet_err_cnt()
3544 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma4_disallowed_packet_err_cnt()
3553 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma3_disallowed_packet_err_cnt()
3562 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma2_disallowed_packet_err_cnt()
3571 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma1_disallowed_packet_err_cnt()
3580 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma0_disallowed_packet_err_cnt()
3589 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_config_parity_err_cnt()
3598 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sbrd_ctl_csr_parity_err_cnt()
3607 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_launch_csr_parity_err_cnt()
3616 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_illegal_vl_err_cnt()
3625 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sbrd_ctl_state_machine_parity_err_cnt()
3634 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_egress_reserved_10_err_cnt()
3643 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_egress_reserved_9_err_cnt()
3652 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_sdma_launch_intf_parity_err_cnt()
3661 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_pio_launch_intf_parity_err_cnt()
3670 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_egress_reserved_6_err_cnt()
3679 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_incorrect_link_state_err_cnt()
3688 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_linkdown_err_cnt()
3697 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_egress_fifi_underrun_or_parity_err_cnt()
3706 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_egress_reserved_2_err_cnt()
3715 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_pkt_integrity_mem_unc_err_cnt()
3724 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_tx_pkt_integrity_mem_cor_err_cnt()
3737 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_send_csr_write_bad_addr_err_cnt()
3746 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_send_csr_read_bad_addr_err_cnt()
3755 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_send_csr_parity_cnt()
3768 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_write_out_of_bounds_err_cnt()
3777 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_write_overflow_err_cnt()
3786 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_write_crosses_boundary_err_cnt()
3795 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_disallowed_packet_err_cnt()
3804 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_pio_inconsistent_sop_err_cnt()
3817 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_header_request_fifo_cor_err_cnt()
3826 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_header_storage_cor_err_cnt()
3835 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_packet_tracking_cor_err_cnt()
3844 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_assembly_cor_err_cnt()
3853 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_desc_table_cor_err_cnt()
3862 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_header_request_fifo_unc_err_cnt()
3871 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_header_storage_unc_err_cnt()
3880 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_packet_tracking_unc_err_cnt()
3889 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_assembly_unc_err_cnt()
3898 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_desc_table_unc_err_cnt()
3907 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_timeout_err_cnt()
3916 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_header_length_err_cnt()
3925 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_header_address_err_cnt()
3934 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_header_select_err_cnt()
3943 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_reserved_9_err_cnt()
3952 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_packet_desc_overflow_err_cnt()
3961 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_length_mismatch_err_cnt()
3969 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_halt_err_cnt()
3978 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_mem_read_err_cnt()
3987 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_first_desc_err_cnt()
3996 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_tail_out_of_bounds_err_cnt()
4005 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_too_long_err_cnt()
4014 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_gen_mismatch_err_cnt()
4023 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_sdma_wrong_dw_err_cnt()
4032 struct hfi1_devdata *dd = (struct hfi1_devdata *)context; in access_dc_rcv_err_cnt()
5203 int is_ax(struct hfi1_devdata *dd) in is_ax()
5212 int is_bx(struct hfi1_devdata *dd) in is_bx()
5515 static void handle_cce_err(struct hfi1_devdata *dd, u32 unused, u64 reg) in handle_cce_err()
5550 struct hfi1_devdata *dd = from_timer(dd, t, rcverr_timer); in update_rcverr_timer()
5567 static int init_rcverr(struct hfi1_devdata *dd) in init_rcverr()
5575 static void free_rcverr(struct hfi1_devdata *dd) in free_rcverr()
5581 static void handle_rxe_err(struct hfi1_devdata *dd, u32 unused, u64 reg) in handle_rxe_err()
5608 static void handle_misc_err(struct hfi1_devdata *dd, u32 unused, u64 reg) in handle_misc_err()
5621 static void handle_pio_err(struct hfi1_devdata *dd, u32 unused, u64 reg) in handle_pio_err()
5638 static void handle_sdma_err(struct hfi1_devdata *dd, u32 unused, u64 reg) in handle_sdma_err()
5660 static void count_port_inactive(struct hfi1_devdata *dd) in count_port_inactive()
5674 static void handle_send_egress_err_info(struct hfi1_devdata *dd, in handle_send_egress_err_info()
5761 static int engine_to_vl(struct hfi1_devdata *dd, int engine) in engine_to_vl()
5782 static int sc_to_vl(struct hfi1_devdata *dd, int sw_index) in sc_to_vl()
5806 static void handle_egress_err(struct hfi1_devdata *dd, u32 unused, u64 reg) in handle_egress_err()
5849 static void handle_txe_err(struct hfi1_devdata *dd, u32 unused, u64 reg) in handle_txe_err()
5880 static void interrupt_clear_down(struct hfi1_devdata *dd, in interrupt_clear_down()
5917 static void is_misc_err_int(struct hfi1_devdata *dd, unsigned int source) in is_misc_err_int()
5945 static void is_sendctxt_err_int(struct hfi1_devdata *dd, in is_sendctxt_err_int()
6004 static void handle_sdma_eng_err(struct hfi1_devdata *dd, in handle_sdma_eng_err()
6034 static void is_sdma_eng_err_int(struct hfi1_devdata *dd, unsigned int source) in is_sdma_eng_err_int()
6051 static void is_various_int(struct hfi1_devdata *dd, unsigned int source) in is_various_int()
6070 static void handle_qsfp_int(struct hfi1_devdata *dd, u32 src_ctx, u64 reg) in handle_qsfp_int()
6156 static int request_host_lcb_access(struct hfi1_devdata *dd) in request_host_lcb_access()
6170 static int request_8051_lcb_access(struct hfi1_devdata *dd) in request_8051_lcb_access()
6188 static inline void set_host_lcb_access(struct hfi1_devdata *dd) in set_host_lcb_access()
6199 static inline void set_8051_lcb_access(struct hfi1_devdata *dd) in set_8051_lcb_access()
6215 int acquire_lcb_access(struct hfi1_devdata *dd, int sleep_ok) in acquire_lcb_access()
6265 int release_lcb_access(struct hfi1_devdata *dd, int sleep_ok) in release_lcb_access()
6314 static void init_lcb_access(struct hfi1_devdata *dd) in init_lcb_access()
6322 static void hreq_response(struct hfi1_devdata *dd, u8 return_code, u16 rsp_data) in hreq_response()
6336 struct hfi1_devdata *dd = ppd->dd; in handle_8051_request()
6394 void set_up_vau(struct hfi1_devdata *dd, u8 vau) in set_up_vau()
6409 void set_up_vl15(struct hfi1_devdata *dd, u16 vl15buf) in set_up_vl15()
6432 void reset_link_credits(struct hfi1_devdata *dd) in reset_link_credits()
6474 static void lcb_shutdown(struct hfi1_devdata *dd, int abort) in lcb_shutdown()
6506 static void _dc_shutdown(struct hfi1_devdata *dd) in _dc_shutdown()
6524 static void dc_shutdown(struct hfi1_devdata *dd) in dc_shutdown()
6537 static void _dc_start(struct hfi1_devdata *dd) in _dc_start()
6558 static void dc_start(struct hfi1_devdata *dd) in dc_start()
6568 static void adjust_lcb_for_fpga_serdes(struct hfi1_devdata *dd) in adjust_lcb_for_fpga_serdes()
6659 struct hfi1_devdata *dd = ppd->dd; in handle_sma_message()
6711 static void adjust_rcvctrl(struct hfi1_devdata *dd, u64 add, u64 clear) in adjust_rcvctrl()
6724 static inline void add_rcvctrl(struct hfi1_devdata *dd, u64 add) in add_rcvctrl()
6729 static inline void clear_rcvctrl(struct hfi1_devdata *dd, u64 clear) in clear_rcvctrl()
6739 struct hfi1_devdata *dd = ppd->dd; in start_freeze_handling()
6781 static void wait_for_freeze_status(struct hfi1_devdata *dd, int freeze) in wait_for_freeze_status()
6813 static void rxe_freeze(struct hfi1_devdata *dd) in rxe_freeze()
6835 static void rxe_kernel_unfreeze(struct hfi1_devdata *dd) in rxe_kernel_unfreeze()
6872 struct hfi1_devdata *dd = ppd->dd; in handle_freeze()
6969 struct hfi1_devdata *dd = ppd->dd; in handle_link_up()
7265 static u16 link_width_to_bits(struct hfi1_devdata *dd, u16 width) in link_width_to_bits()
7307 static void get_link_widths(struct hfi1_devdata *dd, u16 *tx_width, in get_link_widths()
7370 static void get_linkup_widths(struct hfi1_devdata *dd, u16 *tx_width, in get_linkup_widths()
7423 struct hfi1_devdata *dd = ppd->dd; in handle_verify_cap()
7728 static void handle_8051_interrupt(struct hfi1_devdata *dd, u32 unused, u64 reg) in handle_8051_interrupt()
7923 static void handle_dcc_err(struct hfi1_devdata *dd, u32 unused, u64 reg) in handle_dcc_err()
8085 static void handle_lcb_err(struct hfi1_devdata *dd, u32 unused, u64 reg) in handle_lcb_err()
8096 static void is_dc_int(struct hfi1_devdata *dd, unsigned int source) in is_dc_int()
8121 static void is_send_credit_int(struct hfi1_devdata *dd, unsigned int source) in is_send_credit_int()
8135 static void is_sdma_eng_int(struct hfi1_devdata *dd, unsigned int source) in is_sdma_eng_int()
8166 static void is_rcv_avail_int(struct hfi1_devdata *dd, unsigned int source) in is_rcv_avail_int()
8197 static void is_rcv_urgent_int(struct hfi1_devdata *dd, unsigned int source) in is_rcv_urgent_int()
8222 static void is_reserved_int(struct hfi1_devdata *dd, unsigned int source) in is_reserved_int()
8261 static void is_interrupt(struct hfi1_devdata *dd, unsigned int source) in is_interrupt()
8288 struct hfi1_devdata *dd = data; in general_interrupt()
8322 struct hfi1_devdata *dd = sde->dd; in sdma_interrupt()
8359 struct hfi1_devdata *dd = rcd->dd; in clear_recv_intr()
8402 struct hfi1_devdata *dd = rcd->dd; in receive_interrupt_common()
8537 u32 read_physical_state(struct hfi1_devdata *dd) in read_physical_state()
8546 u32 read_logical_state(struct hfi1_devdata *dd) in read_logical_state()
8555 static void set_logical_state(struct hfi1_devdata *dd, u32 chip_lstate) in set_logical_state()
8569 static int read_lcb_via_8051(struct hfi1_devdata *dd, u32 addr, u64 *data) in read_lcb_via_8051()
8607 static void update_lcb_cache(struct hfi1_devdata *dd) in update_lcb_cache()
8641 int read_lcb_csr(struct hfi1_devdata *dd, u32 addr, u64 *data) in read_lcb_csr()
8663 static int write_lcb_via_8051(struct hfi1_devdata *dd, u32 addr, u64 data) in write_lcb_via_8051()
8690 int write_lcb_csr(struct hfi1_devdata *dd, u32 addr, u64 data) in write_lcb_csr()
8710 static int do_8051_command(struct hfi1_devdata *dd, u32 type, u64 in_data, in do_8051_command()
8831 static int set_physical_link_state(struct hfi1_devdata *dd, u64 state) in set_physical_link_state()
8836 int load_8051_config(struct hfi1_devdata *dd, u8 field_id, in load_8051_config()
8859 int read_8051_config(struct hfi1_devdata *dd, u8 field_id, u8 lane_id, in read_8051_config()
8892 static int write_vc_local_phy(struct hfi1_devdata *dd, u8 power_management, in write_vc_local_phy()
8903 static int write_vc_local_fabric(struct hfi1_devdata *dd, u8 vau, u8 z, u8 vcu, in write_vc_local_fabric()
8917 static void read_vc_local_link_mode(struct hfi1_devdata *dd, u8 *misc_bits, in read_vc_local_link_mode()
8929 static int write_vc_local_link_mode(struct hfi1_devdata *dd, in write_vc_local_link_mode()
8943 static int write_local_device_id(struct hfi1_devdata *dd, u16 device_id, in write_local_device_id()
8953 static void read_remote_device_id(struct hfi1_devdata *dd, u16 *device_id, in read_remote_device_id()
8964 int write_host_interface_version(struct hfi1_devdata *dd, u8 version) in write_host_interface_version()
8978 void read_misc_status(struct hfi1_devdata *dd, u8 *ver_major, u8 *ver_minor, in read_misc_status()
8994 static void read_vc_remote_phy(struct hfi1_devdata *dd, u8 *power_management, in read_vc_remote_phy()
9006 static void read_vc_remote_fabric(struct hfi1_devdata *dd, u8 *vau, u8 *z, in read_vc_remote_fabric()
9019 static void read_vc_remote_link_width(struct hfi1_devdata *dd, in read_vc_remote_link_width()
9032 static void read_local_lni(struct hfi1_devdata *dd, u8 *enable_lane_rx) in read_local_lni()
9040 static void read_last_local_state(struct hfi1_devdata *dd, u32 *lls) in read_last_local_state()
9045 static void read_last_remote_state(struct hfi1_devdata *dd, u32 *lrs) in read_last_remote_state()
9050 void hfi1_read_link_quality(struct hfi1_devdata *dd, u8 *link_quality) in hfi1_read_link_quality()
9065 static void read_planned_down_reason_code(struct hfi1_devdata *dd, u8 *pdrrc) in read_planned_down_reason_code()
9073 static void read_link_down_reason(struct hfi1_devdata *dd, u8 *ldr) in read_link_down_reason()
9081 static int read_tx_settings(struct hfi1_devdata *dd, in read_tx_settings()
9101 static int write_tx_settings(struct hfi1_devdata *dd, in write_tx_settings()
9122 static int read_idle_message(struct hfi1_devdata *dd, u64 type, u64 *data_out) in read_idle_message()
9144 static int read_idle_sma(struct hfi1_devdata *dd, u64 *data) in read_idle_sma()
9155 static int send_idle_message(struct hfi1_devdata *dd, u64 data) in send_idle_message()
9174 int send_idle_sma(struct hfi1_devdata *dd, u64 message) in send_idle_sma()
9189 static int do_quick_linkup(struct hfi1_devdata *dd) in do_quick_linkup()
9263 static int init_loopback(struct hfi1_devdata *dd) in init_loopback()
9343 struct hfi1_devdata *dd = ppd->dd; in set_local_link_attributes()
9467 struct hfi1_devdata *dd = ppd->dd; in wait_for_qsfp_init()
9501 struct hfi1_devdata *dd = ppd->dd; in set_qsfp_int_n()
9521 struct hfi1_devdata *dd = ppd->dd; in reset_qsfp()
9561 struct hfi1_devdata *dd = ppd->dd; in handle_qsfp_error_conditions()
9662 struct hfi1_devdata *dd; in qsfp_event()
9720 void init_qsfp_int(struct hfi1_devdata *dd) in init_qsfp_int()
9751 static void init_lcb(struct hfi1_devdata *dd) in init_lcb()
9841 struct hfi1_devdata *dd = ppd->dd; in bringup_serdes()
9880 struct hfi1_devdata *dd = ppd->dd; in hfi1_quiet_serdes()
9907 static inline int init_cpu_counters(struct hfi1_devdata *dd) in init_cpu_counters()
9931 void hfi1_put_tid(struct hfi1_devdata *dd, u32 index, in hfi1_put_tid()
9971 struct hfi1_devdata *dd = rcd->dd; in hfi1_clear_tids()
10018 struct hfi1_devdata *dd = ppd->dd; in hfi1_get_ib_cfg()
10089 u32 lrh_max_header_bytes(struct hfi1_devdata *dd) in lrh_max_header_bytes()
10117 struct hfi1_devdata *dd = ppd->dd; in set_send_length()
10172 struct hfi1_devdata *dd = ppd->dd; in set_lidlmc()
10282 struct hfi1_devdata *dd = ppd->dd; in decode_state_complete()
10338 static int wait_link_transfer_active(struct hfi1_devdata *dd, int wait_ms) in wait_link_transfer_active()
10362 struct hfi1_devdata *dd = ppd->dd; in force_logical_link_state_down()
10404 struct hfi1_devdata *dd = ppd->dd; in goto_offline()
10668 struct hfi1_devdata *dd = ppd->dd; in set_link_state()
11117 struct hfi1_devdata *dd = ppd->dd; in set_vl_weights()
11172 static void read_one_cm_vl(struct hfi1_devdata *dd, u32 csr, in read_one_cm_vl()
11188 static int get_buffer_control(struct hfi1_devdata *dd, in get_buffer_control()
11215 static int get_sc2vlnt(struct hfi1_devdata *dd, struct sc2vlnt *dp) in get_sc2vlnt()
11239 static void get_vlarb_preempt(struct hfi1_devdata *dd, u32 nelems, in get_vlarb_preempt()
11250 static void set_sc2vlnt(struct hfi1_devdata *dd, struct sc2vlnt *dp) in set_sc2vlnt()
11290 static void nonzero_msg(struct hfi1_devdata *dd, int idx, const char *what, in nonzero_msg()
11299 static void set_global_shared(struct hfi1_devdata *dd, u16 limit) in set_global_shared()
11310 static void set_global_limit(struct hfi1_devdata *dd, u16 limit) in set_global_limit()
11321 static void set_vl_shared(struct hfi1_devdata *dd, int vl, u16 limit) in set_vl_shared()
11338 static void set_vl_dedicated(struct hfi1_devdata *dd, int vl, u16 limit) in set_vl_dedicated()
11355 static void wait_for_vl_status_clear(struct hfi1_devdata *dd, u64 mask, in wait_for_vl_status_clear()
11410 struct hfi1_devdata *dd = ppd->dd; in set_buffer_control()
11699 static int disable_data_vls(struct hfi1_devdata *dd) in disable_data_vls()
11717 int open_fill_data_vls(struct hfi1_devdata *dd) in open_fill_data_vls()
11732 static void drain_data_vls(struct hfi1_devdata *dd) in drain_data_vls()
11749 int stop_drain_data_vls(struct hfi1_devdata *dd) in stop_drain_data_vls()
11764 u32 ns_to_cclock(struct hfi1_devdata *dd, u32 ns) in ns_to_cclock()
11781 u32 cclock_to_ns(struct hfi1_devdata *dd, u32 cclocks) in cclock_to_ns()
11802 struct hfi1_devdata *dd = rcd->dd; in adjust_rcv_timeout()
11845 struct hfi1_devdata *dd = rcd->dd; in update_usrhead()
11942 int hfi1_validate_rcvhdrcnt(struct hfi1_devdata *dd, uint thecnt) in hfi1_validate_rcvhdrcnt()
11972 void set_hdrq_regs(struct hfi1_devdata *dd, u8 ctxt, u8 entsize, u16 hdrcnt) in set_hdrq_regs()
11995 void hfi1_rcvctrl(struct hfi1_devdata *dd, unsigned int op, in hfi1_rcvctrl()
12183 u32 hfi1_read_cntrs(struct hfi1_devdata *dd, char **namep, u64 **cntrp) in hfi1_read_cntrs()
12303 static void free_cntrs(struct hfi1_devdata *dd) in free_cntrs()
12337 static u64 read_dev_port_cntr(struct hfi1_devdata *dd, struct cntr_entry *entry, in read_dev_port_cntr()
12388 static u64 write_dev_port_cntr(struct hfi1_devdata *dd, in write_dev_port_cntr()
12422 u64 read_dev_cntr(struct hfi1_devdata *dd, int index, int vl) in read_dev_cntr()
12436 u64 write_dev_cntr(struct hfi1_devdata *dd, int index, int vl, u64 data) in write_dev_cntr()
12499 struct hfi1_devdata *dd = container_of(work, struct hfi1_devdata, in do_update_synth_timer()
12587 struct hfi1_devdata *dd = from_timer(dd, t, synth_stats_timer); in update_synth_timer()
12594 static int init_cntrs(struct hfi1_devdata *dd) in init_cntrs()
12840 static u32 chip_to_opa_lstate(struct hfi1_devdata *dd, u32 chip_lstate) in chip_to_opa_lstate()
12859 u32 chip_to_opa_pstate(struct hfi1_devdata *dd, u32 chip_pstate) in chip_to_opa_pstate()
13128 struct hfi1_devdata *dd = sc->dd; in hfi1_init_ctxt()
13144 int hfi1_tempsense_rd(struct hfi1_devdata *dd, struct hfi1_temp *temp) in hfi1_tempsense_rd()
13180 static void read_mod_write(struct hfi1_devdata *dd, u16 src, u64 bits, in read_mod_write()
13205 int set_intr_bits(struct hfi1_devdata *dd, u16 first, u16 last, bool set) in set_intr_bits()
13234 void clear_all_interrupts(struct hfi1_devdata *dd) in clear_all_interrupts()
13262 void remap_intr(struct hfi1_devdata *dd, int isrc, int msix_intr) in remap_intr()
13286 void remap_sdma_interrupts(struct hfi1_devdata *dd, int engine, int msix_intr) in remap_sdma_interrupts()
13304 void reset_interrupts(struct hfi1_devdata *dd) in reset_interrupts()
13322 static int set_up_interrupts(struct hfi1_devdata *dd) in set_up_interrupts()
13358 static int set_up_context_variables(struct hfi1_devdata *dd) in set_up_context_variables()
13520 struct hfi1_devdata *dd = ppd->dd; in set_partition_keys()
13550 static void write_uninitialized_csrs_and_memories(struct hfi1_devdata *dd) in write_uninitialized_csrs_and_memories()
13591 static void clear_cce_status(struct hfi1_devdata *dd, u64 status_bits, in clear_cce_status()
13622 static void reset_cce_csrs(struct hfi1_devdata *dd) in reset_cce_csrs()
13667 static void reset_misc_csrs(struct hfi1_devdata *dd) in reset_misc_csrs()
13695 static void reset_txe_csrs(struct hfi1_devdata *dd) in reset_txe_csrs()
13815 static void init_rbufs(struct hfi1_devdata *dd) in init_rbufs()
13877 static void reset_rxe_csrs(struct hfi1_devdata *dd) in reset_rxe_csrs()
13956 static void init_sc2vl_tables(struct hfi1_devdata *dd) in init_sc2vl_tables()
14015 static int init_chip(struct hfi1_devdata *dd) in init_chip()
14112 static void init_early_variables(struct hfi1_devdata *dd) in init_early_variables()
14138 static void init_kdeth_qp(struct hfi1_devdata *dd) in init_kdeth_qp()
14154 u8 hfi1_get_qp_map(struct hfi1_devdata *dd, u8 idx) in hfi1_get_qp_map()
14179 static void init_qpmap_table(struct hfi1_devdata *dd, in init_qpmap_table()
14228 static struct rsm_map_table *alloc_rsm_map_table(struct hfi1_devdata *dd) in alloc_rsm_map_table()
14246 static void complete_rsm_map_table(struct hfi1_devdata *dd, in complete_rsm_map_table()
14262 static bool has_rsm_rule(struct hfi1_devdata *dd, u8 rule_index) in has_rsm_rule()
14270 static void add_rsm_rule(struct hfi1_devdata *dd, u8 rule_index, in add_rsm_rule()
14294 static void clear_rsm_rule(struct hfi1_devdata *dd, u8 rule_index) in clear_rsm_rule()
14302 static int qos_rmt_entries(struct hfi1_devdata *dd, unsigned int *mp, in qos_rmt_entries()
14359 static void init_qos(struct hfi1_devdata *dd, struct rsm_map_table *rmt) in init_qos()
14429 static void init_fecn_handling(struct hfi1_devdata *dd, in init_fecn_handling()
14508 static bool hfi1_netdev_update_rmt(struct hfi1_devdata *dd) in hfi1_netdev_update_rmt()
14559 static void hfi1_enable_rsm_rule(struct hfi1_devdata *dd, in hfi1_enable_rsm_rule()
14571 void hfi1_init_aip_rsm(struct hfi1_devdata *dd) in hfi1_init_aip_rsm()
14600 void hfi1_init_vnic_rsm(struct hfi1_devdata *dd) in hfi1_init_vnic_rsm()
14625 void hfi1_deinit_vnic_rsm(struct hfi1_devdata *dd) in hfi1_deinit_vnic_rsm()
14630 void hfi1_deinit_aip_rsm(struct hfi1_devdata *dd) in hfi1_deinit_aip_rsm()
14637 static int init_rxe(struct hfi1_devdata *dd) in init_rxe()
14678 static void init_other(struct hfi1_devdata *dd) in init_other()
14697 static void assign_cm_au_table(struct hfi1_devdata *dd, u32 cu, in assign_cm_au_table()
14718 static void assign_local_cm_au_table(struct hfi1_devdata *dd, u8 vcu) in assign_local_cm_au_table()
14724 void assign_remote_cm_au_table(struct hfi1_devdata *dd, u8 vcu) in assign_remote_cm_au_table()
14730 static void init_txe(struct hfi1_devdata *dd) in init_txe()
14757 int hfi1_set_ctxt_jkey(struct hfi1_devdata *dd, struct hfi1_ctxtdata *rcd, in hfi1_set_ctxt_jkey()
14792 int hfi1_clear_ctxt_jkey(struct hfi1_devdata *dd, struct hfi1_ctxtdata *rcd) in hfi1_clear_ctxt_jkey()
14818 int hfi1_set_ctxt_pkey(struct hfi1_devdata *dd, struct hfi1_ctxtdata *rcd, in hfi1_set_ctxt_pkey()
14839 int hfi1_clear_ctxt_pkey(struct hfi1_devdata *dd, struct hfi1_ctxtdata *ctxt) in hfi1_clear_ctxt_pkey()
14860 void hfi1_start_cleanup(struct hfi1_devdata *dd) in hfi1_start_cleanup()
14876 static int init_asic_data(struct hfi1_devdata *dd) in init_asic_data()
14879 struct hfi1_devdata *peer; in init_asic_data()
14920 static int obtain_boardname(struct hfi1_devdata *dd) in obtain_boardname()
14948 static int check_int_registers(struct hfi1_devdata *dd) in check_int_registers()
14991 int hfi1_init_dd(struct hfi1_devdata *dd) in hfi1_init_dd()
15390 static int thermal_init(struct hfi1_devdata *dd) in thermal_init()
15461 static void handle_temp_err(struct hfi1_devdata *dd) in handle_temp_err()