• Home
  • Raw
  • Download

Lines Matching refs:dev_data

828 	struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;  in qed_grc_set_param()  local
830 dev_data->grc.param_val[grc_param] = val; in qed_grc_set_param()
837 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_get_param() local
839 return dev_data->grc.param_val[grc_param]; in qed_grc_get_param()
845 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_grc_init_params() local
847 if (!dev_data->grc.params_initialized) { in qed_dbg_grc_init_params()
849 dev_data->grc.params_initialized = 1; in qed_dbg_grc_init_params()
867 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_dev_init() local
870 if (dev_data->initialized) in qed_dbg_dev_init()
875 dev_data->chip_id = CHIP_K2; in qed_dbg_dev_init()
876 dev_data->mode_enable[MODE_K2] = 1; in qed_dbg_dev_init()
877 dev_data->num_vfs = MAX_NUM_VFS_K2; in qed_dbg_dev_init()
881 dev_data->chip_id = CHIP_BB; in qed_dbg_dev_init()
882 dev_data->mode_enable[MODE_BB] = 1; in qed_dbg_dev_init()
883 dev_data->num_vfs = MAX_NUM_VFS_BB; in qed_dbg_dev_init()
891 dev_data->hw_type = HW_TYPE_ASIC; in qed_dbg_dev_init()
892 dev_data->mode_enable[MODE_ASIC] = 1; in qed_dbg_dev_init()
897 dev_data->mode_enable[MODE_PORTS_PER_ENG_1] = 1; in qed_dbg_dev_init()
900 dev_data->mode_enable[MODE_PORTS_PER_ENG_2] = 1; in qed_dbg_dev_init()
903 dev_data->mode_enable[MODE_PORTS_PER_ENG_4] = 1; in qed_dbg_dev_init()
909 dev_data->mode_enable[MODE_100G] = 1; in qed_dbg_dev_init()
912 if (dev_data->mode_enable[MODE_PORTS_PER_ENG_1] || in qed_dbg_dev_init()
913 dev_data->mode_enable[MODE_100G]) in qed_dbg_dev_init()
914 dev_data->num_ports = 1; in qed_dbg_dev_init()
915 else if (dev_data->mode_enable[MODE_PORTS_PER_ENG_2]) in qed_dbg_dev_init()
916 dev_data->num_ports = 2; in qed_dbg_dev_init()
917 else if (dev_data->mode_enable[MODE_PORTS_PER_ENG_4]) in qed_dbg_dev_init()
918 dev_data->num_ports = 4; in qed_dbg_dev_init()
921 dev_data->num_pfs_per_port = min_t(u32, in qed_dbg_dev_init()
922 num_pfs / dev_data->num_ports, in qed_dbg_dev_init()
928 dev_data->use_dmae = true; in qed_dbg_dev_init()
929 dev_data->initialized = 1; in qed_dbg_dev_init()
948 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_get_dbg_block_per_chip() local
952 block_id * MAX_CHIP_IDS + dev_data->chip_id; in qed_get_dbg_block_per_chip()
959 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_get_dbg_reset_reg() local
963 reset_reg_id * MAX_CHIP_IDS + dev_data->chip_id; in qed_get_dbg_reset_reg()
1196 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dump_chip_revision_param() local
1199 if (dev_data->hw_type == HW_TYPE_ASIC) { in qed_dump_chip_revision_param()
1230 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dump_common_global_params() local
1236 (dev_data->chip_id == CHIP_BB ? 1 : 0); in qed_dump_common_global_params()
1251 s_chip_defs[dev_data->chip_id].name); in qed_dump_common_global_params()
1255 s_hw_type_defs[dev_data->hw_type].name); in qed_dump_common_global_params()
1258 if (dev_data->chip_id == CHIP_BB) in qed_dump_common_global_params()
1290 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_update_blocks_reset_state() local
1324 dev_data->block_in_reset[blk_id] = in qed_update_blocks_reset_state()
1334 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_is_mode_match_rec() local
1362 return dev_data->mode_enable[tree_val - MAX_INIT_MODE_OPS] > 0; in qed_is_mode_match_rec()
1436 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_bus_disable_blocks() local
1447 dev_data->block_in_reset[block_id]) in qed_bus_disable_blocks()
1606 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_unreset_blocks() local
1607 u8 chip_id = dev_data->chip_id; in qed_grc_unreset_blocks()
1612 if (s_rbc_reset_defs[i].reset_val[dev_data->chip_id]) in qed_grc_unreset_blocks()
1704 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_clear_all_prty() local
1710 if (dev_data->block_in_reset[block_id]) in qed_grc_clear_all_prty()
1798 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_addr_range() local
1815 port_id = split_id / dev_data->num_pfs_per_port; in qed_grc_dump_addr_range()
1816 pf_id = port_id + dev_data->num_ports * in qed_grc_dump_addr_range()
1817 (split_id % dev_data->num_pfs_per_port); in qed_grc_dump_addr_range()
1827 if (dev_data->use_dmae && split_type != SPLIT_TYPE_VF && in qed_grc_dump_addr_range()
1828 (len >= s_hw_type_defs[dev_data->hw_type].dmae_thresh || in qed_grc_dump_addr_range()
1865 dev_data->use_dmae = 0; in qed_grc_dump_addr_range()
1878 if (split_type != dev_data->pretend.split_type || in qed_grc_dump_addr_range()
1879 split_id != dev_data->pretend.split_id) { in qed_grc_dump_addr_range()
1904 dev_data->pretend.split_type = (u8)split_type; in qed_grc_dump_addr_range()
1905 dev_data->pretend.split_id = split_id; in qed_grc_dump_addr_range()
1913 dev_data->num_regs_read += len; in qed_grc_dump_addr_range()
1914 thresh = s_hw_type_defs[dev_data->hw_type].log_thresh; in qed_grc_dump_addr_range()
1915 if ((dev_data->num_regs_read / thresh) > in qed_grc_dump_addr_range()
1916 ((dev_data->num_regs_read - len) / thresh)) in qed_grc_dump_addr_range()
1919 "Dumped %d registers...\n", dev_data->num_regs_read); in qed_grc_dump_addr_range()
2076 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_split_data() local
2084 hdr_split_id = split_id / dev_data->num_pfs_per_port; in qed_grc_dump_split_data()
2128 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_registers() local
2157 split_count = dev_data->num_ports; in qed_grc_dump_registers()
2161 split_count = dev_data->num_ports * in qed_grc_dump_registers()
2162 dev_data->num_pfs_per_port; in qed_grc_dump_registers()
2165 split_count = dev_data->num_vfs; in qed_grc_dump_registers()
2188 dev_data->pretend.split_type = SPLIT_TYPE_NONE; in qed_grc_dump_registers()
2189 dev_data->pretend.split_id = 0; in qed_grc_dump_registers()
2245 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_modified_regs() local
2258 if (dev_data->block_in_reset[block_id] && dump) in qed_grc_dump_modified_regs()
2323 if (dev_data->block_in_reset[storm->sem_block_id] && dump) in qed_grc_dump_modified_regs()
2655 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_ctx_data() local
2661 lid_size = storm->cm_ctx_lid_sizes[dev_data->chip_id][ctx_type] * 4; in qed_grc_dump_ctx_data()
2772 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_read_from_vfc() local
2779 s_hw_type_defs[dev_data->hw_type].delay_factor; in qed_grc_dump_read_from_vfc()
2954 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_rss() local
2966 num_entries = rss_defs->num_entries[dev_data->chip_id]; in qed_grc_dump_rss()
3013 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_big_ram() local
3020 ram_size = big_ram->ram_size[dev_data->chip_id]; in qed_grc_dump_big_ram()
3024 BIT(big_ram->is_256b_bit_offset[dev_data->chip_id]) ? 256 in qed_grc_dump_big_ram()
3252 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_static_debug() local
3323 if (dev_data->block_in_reset[block_id]) { in qed_grc_dump_static_debug()
3378 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump() local
3384 dev_data->num_regs_read = 0; in qed_grc_dump()
3405 dump, "num-ports", dev_data->num_ports); in qed_grc_dump()
3503 DBG_GRC_PARAM_DUMP_PHY) && dev_data->chip_id == in qed_grc_dump()
3504 CHIP_K2 && dev_data->hw_type == HW_TYPE_ASIC) in qed_grc_dump()
3518 (!dump || dev_data->bus.state == DBG_BUS_STATE_IDLE)) in qed_grc_dump()
3556 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_idle_chk_dump_failure() local
3629 if (!dev_data->block_in_reset[block_id]) { in qed_idle_chk_dump_failure()
3688 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_idle_chk_dump_rule_entries() local
3728 check_rule = !dev_data->block_in_reset[block_id]; in qed_idle_chk_dump_rule_entries()
4408 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_fw_asserts_dump() local
4428 if (dev_data->block_in_reset[storm->sem_block_id]) in qed_fw_asserts_dump()
4844 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_read_fw_info() local
4851 if (dev_data->block_in_reset[storm->sem_block_id]) in qed_read_fw_info()
4866 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_grc_config() local
4912 defs->crash_preset_val[dev_data->chip_id]; in qed_dbg_grc_config()
4929 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_grc_set_params_default() local
4934 dev_data->grc.param_val[i] = in qed_dbg_grc_set_params_default()
4935 s_grc_param_defs[i].default_val[dev_data->chip_id]; in qed_dbg_grc_set_params_default()
4992 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_idle_chk_get_dump_buf_size() local
4993 struct idle_chk_data *idle_chk = &dev_data->idle_chk; in qed_dbg_idle_chk_get_dump_buf_size()
7804 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_all_data() local
7810 grc_params[i] = dev_data->grc.param_val[i]; in qed_dbg_all_data()
7925 dev_data->grc.param_val[i] = grc_params[i]; in qed_dbg_all_data()