Lines Matching refs:dev_data
913 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_set_param() local
915 dev_data->grc.param_val[grc_param] = val; in qed_grc_set_param()
922 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_get_param() local
924 return dev_data->grc.param_val[grc_param]; in qed_grc_get_param()
930 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_grc_init_params() local
932 if (!dev_data->grc.params_initialized) { in qed_dbg_grc_init_params()
934 dev_data->grc.params_initialized = 1; in qed_dbg_grc_init_params()
952 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_dev_init() local
955 if (dev_data->initialized) in qed_dbg_dev_init()
963 dev_data->chip_id = CHIP_K2; in qed_dbg_dev_init()
964 dev_data->mode_enable[MODE_K2] = 1; in qed_dbg_dev_init()
965 dev_data->num_vfs = MAX_NUM_VFS_K2; in qed_dbg_dev_init()
969 dev_data->chip_id = CHIP_BB; in qed_dbg_dev_init()
970 dev_data->mode_enable[MODE_BB] = 1; in qed_dbg_dev_init()
971 dev_data->num_vfs = MAX_NUM_VFS_BB; in qed_dbg_dev_init()
979 dev_data->hw_type = HW_TYPE_ASIC; in qed_dbg_dev_init()
980 dev_data->mode_enable[MODE_ASIC] = 1; in qed_dbg_dev_init()
985 dev_data->mode_enable[MODE_PORTS_PER_ENG_1] = 1; in qed_dbg_dev_init()
988 dev_data->mode_enable[MODE_PORTS_PER_ENG_2] = 1; in qed_dbg_dev_init()
991 dev_data->mode_enable[MODE_PORTS_PER_ENG_4] = 1; in qed_dbg_dev_init()
997 dev_data->mode_enable[MODE_100G] = 1; in qed_dbg_dev_init()
1000 if (dev_data->mode_enable[MODE_PORTS_PER_ENG_1] || in qed_dbg_dev_init()
1001 dev_data->mode_enable[MODE_100G]) in qed_dbg_dev_init()
1002 dev_data->num_ports = 1; in qed_dbg_dev_init()
1003 else if (dev_data->mode_enable[MODE_PORTS_PER_ENG_2]) in qed_dbg_dev_init()
1004 dev_data->num_ports = 2; in qed_dbg_dev_init()
1005 else if (dev_data->mode_enable[MODE_PORTS_PER_ENG_4]) in qed_dbg_dev_init()
1006 dev_data->num_ports = 4; in qed_dbg_dev_init()
1009 dev_data->num_pfs_per_port = min_t(u32, in qed_dbg_dev_init()
1010 num_pfs / dev_data->num_ports, in qed_dbg_dev_init()
1016 dev_data->use_dmae = true; in qed_dbg_dev_init()
1017 dev_data->initialized = 1; in qed_dbg_dev_init()
1036 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_get_dbg_block_per_chip() local
1040 block_id * MAX_CHIP_IDS + dev_data->chip_id; in qed_get_dbg_block_per_chip()
1047 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_get_dbg_reset_reg() local
1051 reset_reg_id * MAX_CHIP_IDS + dev_data->chip_id; in qed_get_dbg_reset_reg()
1283 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dump_chip_revision_param() local
1286 if (dev_data->hw_type == HW_TYPE_ASIC) { in qed_dump_chip_revision_param()
1317 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dump_common_global_params() local
1323 (dev_data->chip_id == CHIP_BB ? 1 : 0); in qed_dump_common_global_params()
1338 s_chip_defs[dev_data->chip_id].name); in qed_dump_common_global_params()
1342 s_hw_type_defs[dev_data->hw_type].name); in qed_dump_common_global_params()
1347 if (dev_data->chip_id == CHIP_BB) in qed_dump_common_global_params()
1379 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_update_blocks_reset_state() local
1413 dev_data->block_in_reset[blk_id] = in qed_update_blocks_reset_state()
1423 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_is_mode_match_rec() local
1451 return dev_data->mode_enable[tree_val - MAX_INIT_MODE_OPS] > 0; in qed_is_mode_match_rec()
1525 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_bus_disable_blocks() local
1536 dev_data->block_in_reset[block_id]) in qed_bus_disable_blocks()
1695 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_unreset_blocks() local
1696 u8 chip_id = dev_data->chip_id; in qed_grc_unreset_blocks()
1701 if (s_rbc_reset_defs[i].reset_val[dev_data->chip_id]) in qed_grc_unreset_blocks()
1793 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_clear_all_prty() local
1799 if (dev_data->block_in_reset[block_id]) in qed_grc_clear_all_prty()
1978 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_addr_range() local
1995 port_id = split_id / dev_data->num_pfs_per_port; in qed_grc_dump_addr_range()
1996 pf_id = port_id + dev_data->num_ports * in qed_grc_dump_addr_range()
1997 (split_id % dev_data->num_pfs_per_port); in qed_grc_dump_addr_range()
2007 if (dev_data->use_dmae && split_type != SPLIT_TYPE_VF && in qed_grc_dump_addr_range()
2008 (len >= s_hw_type_defs[dev_data->hw_type].dmae_thresh || in qed_grc_dump_addr_range()
2045 dev_data->use_dmae = 0; in qed_grc_dump_addr_range()
2058 if (split_type != dev_data->pretend.split_type || in qed_grc_dump_addr_range()
2059 split_id != dev_data->pretend.split_id) { in qed_grc_dump_addr_range()
2084 dev_data->pretend.split_type = (u8)split_type; in qed_grc_dump_addr_range()
2085 dev_data->pretend.split_id = split_id; in qed_grc_dump_addr_range()
2093 dev_data->num_regs_read += len; in qed_grc_dump_addr_range()
2094 thresh = s_hw_type_defs[dev_data->hw_type].log_thresh; in qed_grc_dump_addr_range()
2095 if ((dev_data->num_regs_read / thresh) > in qed_grc_dump_addr_range()
2096 ((dev_data->num_regs_read - len) / thresh)) in qed_grc_dump_addr_range()
2099 "Dumped %d registers...\n", dev_data->num_regs_read); in qed_grc_dump_addr_range()
2256 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_split_data() local
2264 hdr_split_id = split_id / dev_data->num_pfs_per_port; in qed_grc_dump_split_data()
2308 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_registers() local
2337 split_count = dev_data->num_ports; in qed_grc_dump_registers()
2341 split_count = dev_data->num_ports * in qed_grc_dump_registers()
2342 dev_data->num_pfs_per_port; in qed_grc_dump_registers()
2345 split_count = dev_data->num_vfs; in qed_grc_dump_registers()
2368 dev_data->pretend.split_type = SPLIT_TYPE_NONE; in qed_grc_dump_registers()
2369 dev_data->pretend.split_id = 0; in qed_grc_dump_registers()
2425 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_modified_regs() local
2438 if (dev_data->block_in_reset[block_id] && dump) in qed_grc_dump_modified_regs()
2503 if (dev_data->block_in_reset[storm->sem_block_id] && dump) in qed_grc_dump_modified_regs()
2835 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_ctx_data() local
2841 lid_size = storm->cm_ctx_lid_sizes[dev_data->chip_id][ctx_type] * 4; in qed_grc_dump_ctx_data()
2952 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_read_from_vfc() local
2959 s_hw_type_defs[dev_data->hw_type].delay_factor; in qed_grc_dump_read_from_vfc()
3134 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_rss() local
3146 num_entries = rss_defs->num_entries[dev_data->chip_id]; in qed_grc_dump_rss()
3193 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_big_ram() local
3200 ram_size = big_ram->ram_size[dev_data->chip_id]; in qed_grc_dump_big_ram()
3204 BIT(big_ram->is_256b_bit_offset[dev_data->chip_id]) ? 256 in qed_grc_dump_big_ram()
3424 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_static_debug() local
3491 if (dev_data->block_in_reset[block_id]) { in qed_grc_dump_static_debug()
3546 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump() local
3552 dev_data->num_regs_read = 0; in qed_grc_dump()
3573 dump, "num-ports", dev_data->num_ports); in qed_grc_dump()
3671 DBG_GRC_PARAM_DUMP_PHY) && dev_data->chip_id == in qed_grc_dump()
3672 CHIP_K2 && dev_data->hw_type == HW_TYPE_ASIC) in qed_grc_dump()
3686 (!dump || dev_data->bus.state == DBG_BUS_STATE_IDLE)) in qed_grc_dump()
3723 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_idle_chk_dump_failure() local
3796 if (!dev_data->block_in_reset[block_id]) { in qed_idle_chk_dump_failure()
3855 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_idle_chk_dump_rule_entries() local
3895 check_rule = !dev_data->block_in_reset[block_id]; in qed_idle_chk_dump_rule_entries()
4495 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_fw_asserts_dump() local
4515 if (dev_data->block_in_reset[storm->sem_block_id]) in qed_fw_asserts_dump()
5233 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_read_fw_info() local
5240 if (dev_data->block_in_reset[storm->sem_block_id]) in qed_read_fw_info()
5255 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_grc_config() local
5301 defs->crash_preset_val[dev_data->chip_id]; in qed_dbg_grc_config()
5318 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_grc_set_params_default() local
5323 dev_data->grc.param_val[i] = in qed_dbg_grc_set_params_default()
5324 s_grc_param_defs[i].default_val[dev_data->chip_id]; in qed_dbg_grc_set_params_default()
5384 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_idle_chk_get_dump_buf_size() local
5385 struct idle_chk_data *idle_chk = &dev_data->idle_chk; in qed_dbg_idle_chk_get_dump_buf_size()
8291 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_all_data() local
8296 grc_params[i] = dev_data->grc.param_val[i]; in qed_dbg_all_data()
8429 dev_data->grc.param_val[i] = grc_params[i]; in qed_dbg_all_data()