Lines Matching full:status

92  * Returns a status code on failure. Note that the data pointer may be
102 int status;
132 status = ice_aq_read_nvm(hw, ICE_AQC_NVM_START_POINT,
136 if (status)
144 return status;
205 int status;
213 status = ice_aq_read_nvm(hw, 0, 2 * module_typeid + 2, 2, &len, true,
215 if (status)
216 return status;
248 int status;
259 status = ice_aq_send_cmd(hw, &desc, data, buf_size, cd);
260 if (!status && elem_count)
263 return status;
340 int status;
348 status = ice_read_flat_nvm(hw, offset * sizeof(u16), &bytes,
350 if (status)
351 return status;
371 int status;
375 status = ice_check_sr_access_params(hw, offset, words);
376 if (!status)
377 status = ice_aq_update_nvm(hw, 0, 2 * offset, 2 * words, data,
380 return status;
397 int status;
404 status = ice_read_flat_nvm(hw, offset * 2, &bytes, (u8 *)data, true);
413 return status;
537 int status;
549 status = ice_acquire_nvm(hw, ICE_RES_READ);
550 if (status)
551 return status;
553 status = ice_read_flat_nvm(hw, start + offset, &length, data, false);
557 return status;
574 int status;
576 status = ice_read_flash_module(hw, bank, ICE_SR_1ST_NVM_BANK_PTR, offset * sizeof(u16),
578 if (!status)
581 return status;
599 int status;
601 status = ice_read_nvm_module(hw, bank, ICE_NVM_CSS_HDR_LEN_L,
603 if (status)
604 return status;
606 status = ice_read_nvm_module(hw, bank, ICE_NVM_CSS_HDR_LEN_H,
608 if (status)
609 return status;
634 int status;
636 status = ice_get_nvm_css_hdr_len(hw, bank, &hdr_len);
637 if (status)
638 return status;
660 int status;
662 status = ice_read_flash_module(hw, bank, ICE_SR_1ST_OROM_BANK_PTR, offset * sizeof(u16),
664 if (!status)
667 return status;
683 int status;
685 status = ice_read_flash_module(hw, bank, ICE_SR_NETLIST_BANK_PTR, offset * sizeof(u16),
687 if (!status)
690 return status;
703 int status;
705 status = ice_acquire_nvm(hw, ICE_RES_READ);
706 if (!status) {
707 status = ice_read_sr_word_aq(hw, offset, data);
711 return status;
732 int status;
734 status = ice_read_sr_word(hw, ICE_SR_PFA_PTR, &pfa_ptr);
735 if (status) {
737 return status;
739 status = ice_read_sr_word(hw, pfa_ptr, &pfa_len);
740 if (status) {
742 return status;
765 status = ice_read_sr_word(hw, (u16)next_tlv,
767 if (status) {
772 status = ice_read_sr_word(hw, (u16)(next_tlv + 1), &tlv_len);
773 if (status) {
809 int status;
812 status = ice_get_pfa_module_tlv(hw, &pba_tlv, &pba_tlv_len,
814 if (status) {
816 return status;
820 status = ice_read_sr_word(hw, (pba_tlv + 2), &pba_size);
821 if (status) {
823 return status;
841 status = ice_read_sr_word(hw, (pba_tlv + 2 + 1) + i, &pba_word);
842 if (status) {
844 return status;
852 return status;
867 int status;
869 status = ice_read_nvm_module(hw, bank, ICE_NVM_CSS_SREV_L, &srev_l);
870 if (status)
871 return status;
873 status = ice_read_nvm_module(hw, bank, ICE_NVM_CSS_SREV_H, &srev_h);
874 if (status)
875 return status;
895 int status;
897 status = ice_read_nvm_sr_copy(hw, bank, ICE_SR_NVM_DEV_STARTER_VER, &ver);
898 if (status) {
900 return status;
906 status = ice_read_nvm_sr_copy(hw, bank, ICE_SR_NVM_EETRACK_LO, &eetrack_lo);
907 if (status) {
909 return status;
911 status = ice_read_nvm_sr_copy(hw, bank, ICE_SR_NVM_EETRACK_HI, &eetrack_hi);
912 if (status) {
914 return status;
919 status = ice_get_nvm_srev(hw, bank, &nvm->srev);
920 if (status)
955 int status;
957 status = ice_get_nvm_css_hdr_len(hw, bank, &hdr_len);
958 if (status)
959 return status;
971 status = ice_read_orom_module(hw, bank, css_start + ICE_NVM_CSS_SREV_L, &srev_l);
972 if (status)
973 return status;
975 status = ice_read_orom_module(hw, bank, css_start + ICE_NVM_CSS_SREV_H, &srev_h);
976 if (status)
977 return status;
998 int status;
1017 status = ice_read_flash_module(hw, bank, ICE_SR_1ST_OROM_BANK_PTR,
1019 if (status) {
1021 return status;
1031 status = ice_read_flash_module(hw, bank, ICE_SR_1ST_OROM_BANK_PTR,
1034 if (status) {
1046 status = ICE_ERR_NVM;
1055 status = ICE_ERR_NVM;
1059 return status;
1076 int status;
1078 status = ice_get_orom_civd_data(hw, bank, &civd);
1079 if (status) {
1081 return status;
1090 status = ice_get_orom_srev(hw, bank, &orom->srev);
1091 if (status) {
1093 return status;
1129 int status;
1131 status = ice_read_netlist_module(hw, bank, ICE_NETLIST_TYPE_OFFSET, &module_id);
1132 if (status)
1133 return status;
1141 status = ice_read_netlist_module(hw, bank, ICE_LINK_TOPO_MODULE_LEN, &length);
1142 if (status)
1143 return status;
1152 status = ice_read_netlist_module(hw, bank, ICE_LINK_TOPO_NODE_COUNT, &node_count);
1153 if (status)
1154 return status;
1162 status = ice_read_flash_module(hw, bank, ICE_SR_NETLIST_BANK_PTR,
1165 if (status)
1187 return status;
1227 int status;
1231 status = ice_acquire_nvm(hw, ICE_RES_READ);
1232 if (status)
1233 return status;
1240 status = ice_read_flat_nvm(hw, offset, &len, &data, false);
1241 if (status == ICE_ERR_AQ_ERROR &&
1245 status = 0;
1247 } else if (!status) {
1264 return status;
1283 int status;
1286 status = ice_read_sr_word(hw, offset, &value);
1287 if (status)
1288 return status;
1314 int status;
1317 status = ice_read_sr_word(hw, offset, &value);
1318 if (status)
1319 return status;
1341 int status;
1343 status = ice_read_sr_word(hw, ICE_SR_NVM_CTRL_WORD, &ctrl_word);
1344 if (status) {
1346 return status;
1370 status = ice_read_sr_pointer(hw, ICE_SR_1ST_NVM_BANK_PTR, &banks->nvm_ptr);
1371 if (status) {
1373 return status;
1376 status = ice_read_sr_area_size(hw, ICE_SR_NVM_BANK_SIZE, &banks->nvm_size);
1377 if (status) {
1379 return status;
1382 status = ice_read_sr_pointer(hw, ICE_SR_1ST_OROM_BANK_PTR, &banks->orom_ptr);
1383 if (status) {
1385 return status;
1388 status = ice_read_sr_area_size(hw, ICE_SR_OROM_BANK_SIZE, &banks->orom_size);
1389 if (status) {
1391 return status;
1394 status = ice_read_sr_pointer(hw, ICE_SR_NETLIST_BANK_PTR, &banks->netlist_ptr);
1395 if (status) {
1397 return status;
1400 status = ice_read_sr_area_size(hw, ICE_SR_NETLIST_BANK_SIZE, &banks->netlist_size);
1401 if (status) {
1403 return status;
1421 int status;
1445 status = ice_discover_flash_size(hw);
1446 if (status) {
1448 return status;
1451 status = ice_determine_active_flash_banks(hw);
1452 if (status) {
1454 return status;
1457 status = ice_get_nvm_ver_info(hw, ICE_ACTIVE_FLASH_BANK, &flash->nvm);
1458 if (status) {
1460 return status;
1463 status = ice_get_orom_ver_info(hw, ICE_ACTIVE_FLASH_BANK, &flash->orom);
1464 if (status)
1468 status = ice_get_netlist_info(hw, ICE_ACTIVE_FLASH_BANK, &flash->netlist);
1469 if (status)
1489 int status;
1491 status = ice_acquire_nvm(hw, ICE_RES_READ);
1492 if (!status) {
1493 status = ice_read_sr_buf_aq(hw, offset, words, data);
1497 return status;
1538 int status;
1555 status = ice_write_sr_aq(hw, offset, words, data_local, false);
1559 return status;
1577 int status = 0;
1590 status = ice_read_sr_word_aq(hw, ICE_SR_VPD_PTR, &vpd_module);
1591 if (status)
1595 status = ice_read_sr_word_aq(hw, ICE_SR_PCIE_ALT_AUTO_LOAD_PTR,
1597 if (status)
1608 status = ice_read_sr_buf_aq(hw, i, &words, data);
1609 if (status)
1632 return status;
1647 int status;
1651 status = ice_calc_sr_checksum(hw, &checksum);
1652 if (!status) {
1654 status = ice_write_sr_aq(hw, ICE_SR_SW_CHECKSUM_WORD, 1,
1657 return status;
1672 int status;
1676 status = ice_acquire_nvm(hw, ICE_RES_READ);
1677 if (!status) {
1678 status = ice_calc_sr_checksum(hw, &checksum_local);
1680 if (status)
1681 return status;
1683 return status;
1692 status = ICE_ERR_NVM_CHECKSUM;
1698 return status;
1711 int status;
1713 status = ice_acquire_nvm(hw, ICE_RES_READ);
1714 if (status)
1715 return status;
1722 status = ice_aq_send_cmd(hw, &desc, NULL, 0, NULL);
1725 if (!status)
1727 status = ICE_ERR_NVM_CHECKSUM;
1729 return status;
1742 int status;
1744 status = ice_acquire_nvm(hw, ICE_RES_READ);
1745 if (status)
1746 return status;
1753 status = ice_aq_send_cmd(hw, &desc, NULL, 0, NULL);
1757 return status;
1777 * is updated with the flags reported by firmware indicating certain status,
1811 int status;
1816 status = ice_acquire_nvm(hw, ICE_RES_READ);
1817 if (status)
1818 return status;
1820 status = ice_aq_read_nvm(hw, ICE_AQC_NVM_MINSREV_MOD_ID, 0, sizeof(data),
1825 if (status)
1826 return status;
1869 int status;
1878 status = ice_acquire_nvm(hw, ICE_RES_WRITE);
1879 if (status)
1880 return status;
1883 status = ice_aq_read_nvm(hw, ICE_AQC_NVM_MINSREV_MOD_ID, 0, sizeof(data),
1885 if (status)
1901 status = ice_aq_update_nvm(hw, ICE_AQC_NVM_MINSREV_MOD_ID, 0, sizeof(data), &data,
1903 if (status)
1907 status = ice_nvm_write_activate(hw, 0, NULL);
1912 return status;
2046 int status;
2054 status = ice_validate_nvm_rw_reg(cmd);
2055 if (status)
2056 return status;
2079 int status;
2084 status = ice_validate_nvm_rw_reg(cmd);
2085 if (status)
2086 return status;
2171 s32 status;
2177 status = ice_nvm_sanitize(hw, cmd_flags, &values);
2178 if (status)
2179 return status;
2205 s32 status;
2211 status = ice_aq_send_cmd(hw, &desc, NULL, 0, NULL);
2215 return status;