Lines Matching refs:status
72 int status; in ice_read_flat_nvm() local
96 status = ice_aq_read_nvm(hw, ICE_AQC_NVM_START_POINT, in ice_read_flat_nvm()
100 if (status) in ice_read_flat_nvm()
108 return status; in ice_read_flat_nvm()
192 int status; in ice_read_sr_word_aq() local
197 status = ice_read_flat_nvm(hw, offset * sizeof(u16), &bytes, in ice_read_sr_word_aq()
199 if (status) in ice_read_sr_word_aq()
200 return status; in ice_read_sr_word_aq()
324 int status; in ice_read_flash_module() local
334 status = ice_acquire_nvm(hw, ICE_RES_READ); in ice_read_flash_module()
335 if (status) in ice_read_flash_module()
336 return status; in ice_read_flash_module()
338 status = ice_read_flat_nvm(hw, start + offset, &length, data, false); in ice_read_flash_module()
342 return status; in ice_read_flash_module()
359 int status; in ice_read_nvm_module() local
361 status = ice_read_flash_module(hw, bank, ICE_SR_1ST_NVM_BANK_PTR, offset * sizeof(u16), in ice_read_nvm_module()
363 if (!status) in ice_read_nvm_module()
366 return status; in ice_read_nvm_module()
398 int status; in ice_read_netlist_module() local
400 status = ice_read_flash_module(hw, bank, ICE_SR_NETLIST_BANK_PTR, offset * sizeof(u16), in ice_read_netlist_module()
402 if (!status) in ice_read_netlist_module()
405 return status; in ice_read_netlist_module()
418 int status; in ice_read_sr_word() local
420 status = ice_acquire_nvm(hw, ICE_RES_READ); in ice_read_sr_word()
421 if (!status) { in ice_read_sr_word()
422 status = ice_read_sr_word_aq(hw, offset, data); in ice_read_sr_word()
426 return status; in ice_read_sr_word()
446 int status; in ice_get_pfa_module_tlv() local
448 status = ice_read_sr_word(hw, ICE_SR_PFA_PTR, &pfa_ptr); in ice_get_pfa_module_tlv()
449 if (status) { in ice_get_pfa_module_tlv()
451 return status; in ice_get_pfa_module_tlv()
453 status = ice_read_sr_word(hw, pfa_ptr, &pfa_len); in ice_get_pfa_module_tlv()
454 if (status) { in ice_get_pfa_module_tlv()
456 return status; in ice_get_pfa_module_tlv()
467 status = ice_read_sr_word(hw, next_tlv, &tlv_sub_module_type); in ice_get_pfa_module_tlv()
468 if (status) { in ice_get_pfa_module_tlv()
473 status = ice_read_sr_word(hw, next_tlv + 1, &tlv_len); in ice_get_pfa_module_tlv()
474 if (status) { in ice_get_pfa_module_tlv()
507 int status; in ice_read_pba_string() local
510 status = ice_get_pfa_module_tlv(hw, &pba_tlv, &pba_tlv_len, in ice_read_pba_string()
512 if (status) { in ice_read_pba_string()
514 return status; in ice_read_pba_string()
518 status = ice_read_sr_word(hw, (pba_tlv + 2), &pba_size); in ice_read_pba_string()
519 if (status) { in ice_read_pba_string()
521 return status; in ice_read_pba_string()
539 status = ice_read_sr_word(hw, (pba_tlv + 2 + 1) + i, &pba_word); in ice_read_pba_string()
540 if (status) { in ice_read_pba_string()
542 return status; in ice_read_pba_string()
550 return status; in ice_read_pba_string()
566 int status; in ice_get_nvm_ver_info() local
568 status = ice_read_nvm_sr_copy(hw, bank, ICE_SR_NVM_DEV_STARTER_VER, &ver); in ice_get_nvm_ver_info()
569 if (status) { in ice_get_nvm_ver_info()
571 return status; in ice_get_nvm_ver_info()
577 status = ice_read_nvm_sr_copy(hw, bank, ICE_SR_NVM_EETRACK_LO, &eetrack_lo); in ice_get_nvm_ver_info()
578 if (status) { in ice_get_nvm_ver_info()
580 return status; in ice_get_nvm_ver_info()
582 status = ice_read_nvm_sr_copy(hw, bank, ICE_SR_NVM_EETRACK_HI, &eetrack_hi); in ice_get_nvm_ver_info()
583 if (status) { in ice_get_nvm_ver_info()
585 return status; in ice_get_nvm_ver_info()
621 int status; in ice_get_orom_civd_data() local
641 status = ice_read_flash_module(hw, bank, ICE_SR_1ST_OROM_BANK_PTR, 0, in ice_get_orom_civd_data()
643 if (status) { in ice_get_orom_civd_data()
646 return status; in ice_get_orom_civd_data()
699 int status; in ice_get_orom_ver_info() local
701 status = ice_get_orom_civd_data(hw, bank, &civd); in ice_get_orom_ver_info()
702 if (status) { in ice_get_orom_ver_info()
704 return status; in ice_get_orom_ver_info()
746 int status; in ice_get_netlist_info() local
748 status = ice_read_netlist_module(hw, bank, ICE_NETLIST_TYPE_OFFSET, &module_id); in ice_get_netlist_info()
749 if (status) in ice_get_netlist_info()
750 return status; in ice_get_netlist_info()
758 status = ice_read_netlist_module(hw, bank, ICE_LINK_TOPO_MODULE_LEN, &length); in ice_get_netlist_info()
759 if (status) in ice_get_netlist_info()
760 return status; in ice_get_netlist_info()
769 status = ice_read_netlist_module(hw, bank, ICE_LINK_TOPO_NODE_COUNT, &node_count); in ice_get_netlist_info()
770 if (status) in ice_get_netlist_info()
771 return status; in ice_get_netlist_info()
779 status = ice_read_flash_module(hw, bank, ICE_SR_NETLIST_BANK_PTR, in ice_get_netlist_info()
782 if (status) in ice_get_netlist_info()
804 return status; in ice_get_netlist_info()
832 int status; in ice_discover_flash_size() local
834 status = ice_acquire_nvm(hw, ICE_RES_READ); in ice_discover_flash_size()
835 if (status) in ice_discover_flash_size()
836 return status; in ice_discover_flash_size()
843 status = ice_read_flat_nvm(hw, offset, &len, &data, false); in ice_discover_flash_size()
844 if (status == -EIO && in ice_discover_flash_size()
848 status = 0; in ice_discover_flash_size()
850 } else if (!status) { in ice_discover_flash_size()
867 return status; in ice_discover_flash_size()
886 int status; in ice_read_sr_pointer() local
889 status = ice_read_sr_word(hw, offset, &value); in ice_read_sr_pointer()
890 if (status) in ice_read_sr_pointer()
891 return status; in ice_read_sr_pointer()
917 int status; in ice_read_sr_area_size() local
920 status = ice_read_sr_word(hw, offset, &value); in ice_read_sr_area_size()
921 if (status) in ice_read_sr_area_size()
922 return status; in ice_read_sr_area_size()
944 int status; in ice_determine_active_flash_banks() local
946 status = ice_read_sr_word(hw, ICE_SR_NVM_CTRL_WORD, &ctrl_word); in ice_determine_active_flash_banks()
947 if (status) { in ice_determine_active_flash_banks()
949 return status; in ice_determine_active_flash_banks()
973 status = ice_read_sr_pointer(hw, ICE_SR_1ST_NVM_BANK_PTR, &banks->nvm_ptr); in ice_determine_active_flash_banks()
974 if (status) { in ice_determine_active_flash_banks()
976 return status; in ice_determine_active_flash_banks()
979 status = ice_read_sr_area_size(hw, ICE_SR_NVM_BANK_SIZE, &banks->nvm_size); in ice_determine_active_flash_banks()
980 if (status) { in ice_determine_active_flash_banks()
982 return status; in ice_determine_active_flash_banks()
985 status = ice_read_sr_pointer(hw, ICE_SR_1ST_OROM_BANK_PTR, &banks->orom_ptr); in ice_determine_active_flash_banks()
986 if (status) { in ice_determine_active_flash_banks()
988 return status; in ice_determine_active_flash_banks()
991 status = ice_read_sr_area_size(hw, ICE_SR_OROM_BANK_SIZE, &banks->orom_size); in ice_determine_active_flash_banks()
992 if (status) { in ice_determine_active_flash_banks()
994 return status; in ice_determine_active_flash_banks()
997 status = ice_read_sr_pointer(hw, ICE_SR_NETLIST_BANK_PTR, &banks->netlist_ptr); in ice_determine_active_flash_banks()
998 if (status) { in ice_determine_active_flash_banks()
1000 return status; in ice_determine_active_flash_banks()
1003 status = ice_read_sr_area_size(hw, ICE_SR_NETLIST_BANK_SIZE, &banks->netlist_size); in ice_determine_active_flash_banks()
1004 if (status) { in ice_determine_active_flash_banks()
1006 return status; in ice_determine_active_flash_banks()
1024 int status; in ice_init_nvm() local
1046 status = ice_discover_flash_size(hw); in ice_init_nvm()
1047 if (status) { in ice_init_nvm()
1049 return status; in ice_init_nvm()
1052 status = ice_determine_active_flash_banks(hw); in ice_init_nvm()
1053 if (status) { in ice_init_nvm()
1055 return status; in ice_init_nvm()
1058 status = ice_get_nvm_ver_info(hw, ICE_ACTIVE_FLASH_BANK, &flash->nvm); in ice_init_nvm()
1059 if (status) { in ice_init_nvm()
1061 return status; in ice_init_nvm()
1064 status = ice_get_orom_ver_info(hw, ICE_ACTIVE_FLASH_BANK, &flash->orom); in ice_init_nvm()
1065 if (status) in ice_init_nvm()
1069 status = ice_get_netlist_info(hw, ICE_ACTIVE_FLASH_BANK, &flash->netlist); in ice_init_nvm()
1070 if (status) in ice_init_nvm()
1086 int status; in ice_nvm_validate_checksum() local
1088 status = ice_acquire_nvm(hw, ICE_RES_READ); in ice_nvm_validate_checksum()
1089 if (status) in ice_nvm_validate_checksum()
1090 return status; in ice_nvm_validate_checksum()
1097 status = ice_aq_send_cmd(hw, &desc, NULL, 0, NULL); in ice_nvm_validate_checksum()
1100 if (!status) in ice_nvm_validate_checksum()
1102 status = -EIO; in ice_nvm_validate_checksum()
1104 return status; in ice_nvm_validate_checksum()
1220 int status; in ice_nvm_pass_component_tbl() local
1232 status = ice_aq_send_cmd(hw, &desc, data, length, cd); in ice_nvm_pass_component_tbl()
1234 if (!status) { in ice_nvm_pass_component_tbl()
1238 return status; in ice_nvm_pass_component_tbl()