Searched refs:status (Results 1 - 200 of 7655) sorted by relevance

1234567891011>>

/linux-4.4.14/drivers/media/dvb-frontends/
H A Ddrxk_hard.c255 int status; i2c_write() local
266 status = drxk_i2c_transfer(state, &msg, 1); i2c_write()
267 if (status >= 0 && status != 1) i2c_write()
268 status = -EIO; i2c_write()
270 if (status < 0) i2c_write()
273 return status; i2c_write()
279 int status; i2c_read() local
287 status = drxk_i2c_transfer(state, msgs, 2); i2c_read()
288 if (status != 2) { i2c_read()
291 if (status >= 0) i2c_read()
292 status = -EIO; i2c_read()
295 return status; i2c_read()
312 int status; read16_flags() local
330 status = i2c_read(state, adr, mm1, len, mm2, 2); read16_flags()
331 if (status < 0) read16_flags()
332 return status; read16_flags()
346 int status; read32_flags() local
364 status = i2c_read(state, adr, mm1, len, mm2, 4); read32_flags()
365 if (status < 0) read32_flags()
366 return status; read32_flags()
442 int status = 0, blk_size = block_size; write_block() local
478 status = i2c_write(state, state->demod_address, write_block()
480 if (status < 0) { write_block()
489 return status; write_block()
498 int status; power_up_device() local
504 status = i2c_read1(state, state->demod_address, &data); power_up_device()
505 if (status < 0) { power_up_device()
508 status = i2c_write(state, state->demod_address, power_up_device()
512 if (status < 0) power_up_device()
514 status = i2c_read1(state, state->demod_address, power_up_device()
516 } while (status < 0 && power_up_device()
518 if (status < 0 && retry_count >= DRXK_MAX_RETRIES_POWERUP) power_up_device()
523 status = write16(state, SIO_CC_PWD_MODE__A, SIO_CC_PWD_MODE_LEVEL_NONE); power_up_device()
524 if (status < 0) power_up_device()
526 status = write16(state, SIO_CC_UPDATE__A, SIO_CC_UPDATE_KEY); power_up_device()
527 if (status < 0) power_up_device()
530 status = write16(state, SIO_CC_PLL_LOCK__A, 1); power_up_device()
531 if (status < 0) power_up_device()
537 if (status < 0) power_up_device()
538 pr_err("Error %d on %s\n", status, __func__); power_up_device()
540 return status; power_up_device()
781 int status = 0; drxx_open() local
788 status = write16(state, SCU_RAM_GPIO__A, drxx_open()
790 if (status < 0) drxx_open()
793 status = read16(state, SIO_TOP_COMM_KEY__A, &key); drxx_open()
794 if (status < 0) drxx_open()
796 status = write16(state, SIO_TOP_COMM_KEY__A, SIO_TOP_COMM_KEY_KEY); drxx_open()
797 if (status < 0) drxx_open()
799 status = read32(state, SIO_TOP_JTAGID_LO__A, &jtag); drxx_open()
800 if (status < 0) drxx_open()
802 status = read16(state, SIO_PDR_UIO_IN_HI__A, &bid); drxx_open()
803 if (status < 0) drxx_open()
805 status = write16(state, SIO_TOP_COMM_KEY__A, key); drxx_open()
807 if (status < 0) drxx_open()
808 pr_err("Error %d on %s\n", status, __func__); drxx_open()
809 return status; drxx_open()
816 int status; get_device_capabilities() local
823 status = write16(state, SCU_RAM_GPIO__A, get_device_capabilities()
825 if (status < 0) get_device_capabilities()
827 status = write16(state, SIO_TOP_COMM_KEY__A, SIO_TOP_COMM_KEY_KEY); get_device_capabilities()
828 if (status < 0) get_device_capabilities()
830 status = read16(state, SIO_PDR_OHW_CFG__A, &sio_pdr_ohw_cfg); get_device_capabilities()
831 if (status < 0) get_device_capabilities()
833 status = write16(state, SIO_TOP_COMM_KEY__A, 0x0000); get_device_capabilities()
834 if (status < 0) get_device_capabilities()
861 status = read32(state, SIO_TOP_JTAGID_LO__A, &sio_top_jtagid_lo); get_device_capabilities()
862 if (status < 0) get_device_capabilities()
865 pr_info("status = 0x%08x\n", sio_top_jtagid_lo); get_device_capabilities()
883 status = -EINVAL; get_device_capabilities()
995 status = -EINVAL; get_device_capabilities()
1005 if (status < 0) get_device_capabilities()
1006 pr_err("Error %d on %s\n", status, __func__); get_device_capabilities()
1009 return status; get_device_capabilities()
1014 int status; hi_command() local
1020 status = write16(state, SIO_HI_RA_RAM_CMD__A, cmd); hi_command()
1021 if (status < 0) hi_command()
1039 status = read16(state, SIO_HI_RA_RAM_CMD__A, hi_command()
1041 } while ((status < 0) && (retry_count < DRXK_MAX_RETRIES) hi_command()
1043 if (status < 0) hi_command()
1045 status = read16(state, SIO_HI_RA_RAM_RES__A, p_result); hi_command()
1048 if (status < 0) hi_command()
1049 pr_err("Error %d on %s\n", status, __func__); hi_command()
1051 return status; hi_command()
1056 int status; hi_cfg_command() local
1062 status = write16(state, SIO_HI_RA_RAM_PAR_6__A, hi_cfg_command()
1064 if (status < 0) hi_cfg_command()
1066 status = write16(state, SIO_HI_RA_RAM_PAR_5__A, hi_cfg_command()
1068 if (status < 0) hi_cfg_command()
1070 status = write16(state, SIO_HI_RA_RAM_PAR_4__A, hi_cfg_command()
1072 if (status < 0) hi_cfg_command()
1074 status = write16(state, SIO_HI_RA_RAM_PAR_3__A, hi_cfg_command()
1076 if (status < 0) hi_cfg_command()
1078 status = write16(state, SIO_HI_RA_RAM_PAR_2__A, hi_cfg_command()
1080 if (status < 0) hi_cfg_command()
1082 status = write16(state, SIO_HI_RA_RAM_PAR_1__A, hi_cfg_command()
1084 if (status < 0) hi_cfg_command()
1086 status = hi_command(state, SIO_HI_RA_RAM_CMD_CONFIG, NULL); hi_cfg_command()
1087 if (status < 0) hi_cfg_command()
1093 if (status < 0) hi_cfg_command()
1094 pr_err("Error %d on %s\n", status, __func__); hi_cfg_command()
1095 return status; hi_cfg_command()
1112 int status = -1; mpegts_configure_pins() local
1122 status = write16(state, SCU_RAM_GPIO__A, mpegts_configure_pins()
1124 if (status < 0) mpegts_configure_pins()
1128 status = write16(state, SIO_TOP_COMM_KEY__A, SIO_TOP_COMM_KEY_KEY); mpegts_configure_pins()
1129 if (status < 0) mpegts_configure_pins()
1134 status = write16(state, SIO_PDR_MSTRT_CFG__A, 0x0000); mpegts_configure_pins()
1135 if (status < 0) mpegts_configure_pins()
1137 status = write16(state, SIO_PDR_MERR_CFG__A, 0x0000); mpegts_configure_pins()
1138 if (status < 0) mpegts_configure_pins()
1140 status = write16(state, SIO_PDR_MCLK_CFG__A, 0x0000); mpegts_configure_pins()
1141 if (status < 0) mpegts_configure_pins()
1143 status = write16(state, SIO_PDR_MVAL_CFG__A, 0x0000); mpegts_configure_pins()
1144 if (status < 0) mpegts_configure_pins()
1146 status = write16(state, SIO_PDR_MD0_CFG__A, 0x0000); mpegts_configure_pins()
1147 if (status < 0) mpegts_configure_pins()
1149 status = write16(state, SIO_PDR_MD1_CFG__A, 0x0000); mpegts_configure_pins()
1150 if (status < 0) mpegts_configure_pins()
1152 status = write16(state, SIO_PDR_MD2_CFG__A, 0x0000); mpegts_configure_pins()
1153 if (status < 0) mpegts_configure_pins()
1155 status = write16(state, SIO_PDR_MD3_CFG__A, 0x0000); mpegts_configure_pins()
1156 if (status < 0) mpegts_configure_pins()
1158 status = write16(state, SIO_PDR_MD4_CFG__A, 0x0000); mpegts_configure_pins()
1159 if (status < 0) mpegts_configure_pins()
1161 status = write16(state, SIO_PDR_MD5_CFG__A, 0x0000); mpegts_configure_pins()
1162 if (status < 0) mpegts_configure_pins()
1164 status = write16(state, SIO_PDR_MD6_CFG__A, 0x0000); mpegts_configure_pins()
1165 if (status < 0) mpegts_configure_pins()
1167 status = write16(state, SIO_PDR_MD7_CFG__A, 0x0000); mpegts_configure_pins()
1168 if (status < 0) mpegts_configure_pins()
1179 status = write16(state, SIO_PDR_MSTRT_CFG__A, sio_pdr_mdx_cfg); mpegts_configure_pins()
1180 if (status < 0) mpegts_configure_pins()
1186 status = write16(state, SIO_PDR_MERR_CFG__A, err_cfg); mpegts_configure_pins()
1187 if (status < 0) mpegts_configure_pins()
1189 status = write16(state, SIO_PDR_MVAL_CFG__A, err_cfg); mpegts_configure_pins()
1190 if (status < 0) mpegts_configure_pins()
1195 status = write16(state, SIO_PDR_MD1_CFG__A, mpegts_configure_pins()
1197 if (status < 0) mpegts_configure_pins()
1199 status = write16(state, SIO_PDR_MD2_CFG__A, mpegts_configure_pins()
1201 if (status < 0) mpegts_configure_pins()
1203 status = write16(state, SIO_PDR_MD3_CFG__A, mpegts_configure_pins()
1205 if (status < 0) mpegts_configure_pins()
1207 status = write16(state, SIO_PDR_MD4_CFG__A, mpegts_configure_pins()
1209 if (status < 0) mpegts_configure_pins()
1211 status = write16(state, SIO_PDR_MD5_CFG__A, mpegts_configure_pins()
1213 if (status < 0) mpegts_configure_pins()
1215 status = write16(state, SIO_PDR_MD6_CFG__A, mpegts_configure_pins()
1217 if (status < 0) mpegts_configure_pins()
1219 status = write16(state, SIO_PDR_MD7_CFG__A, mpegts_configure_pins()
1221 if (status < 0) mpegts_configure_pins()
1228 status = write16(state, SIO_PDR_MD1_CFG__A, 0x0000); mpegts_configure_pins()
1229 if (status < 0) mpegts_configure_pins()
1231 status = write16(state, SIO_PDR_MD2_CFG__A, 0x0000); mpegts_configure_pins()
1232 if (status < 0) mpegts_configure_pins()
1234 status = write16(state, SIO_PDR_MD3_CFG__A, 0x0000); mpegts_configure_pins()
1235 if (status < 0) mpegts_configure_pins()
1237 status = write16(state, SIO_PDR_MD4_CFG__A, 0x0000); mpegts_configure_pins()
1238 if (status < 0) mpegts_configure_pins()
1240 status = write16(state, SIO_PDR_MD5_CFG__A, 0x0000); mpegts_configure_pins()
1241 if (status < 0) mpegts_configure_pins()
1243 status = write16(state, SIO_PDR_MD6_CFG__A, 0x0000); mpegts_configure_pins()
1244 if (status < 0) mpegts_configure_pins()
1246 status = write16(state, SIO_PDR_MD7_CFG__A, 0x0000); mpegts_configure_pins()
1247 if (status < 0) mpegts_configure_pins()
1250 status = write16(state, SIO_PDR_MCLK_CFG__A, sio_pdr_mclk_cfg); mpegts_configure_pins()
1251 if (status < 0) mpegts_configure_pins()
1253 status = write16(state, SIO_PDR_MD0_CFG__A, sio_pdr_mdx_cfg); mpegts_configure_pins()
1254 if (status < 0) mpegts_configure_pins()
1258 status = write16(state, SIO_PDR_MON_CFG__A, 0x0000); mpegts_configure_pins()
1259 if (status < 0) mpegts_configure_pins()
1262 status = write16(state, SIO_TOP_COMM_KEY__A, 0x0000); mpegts_configure_pins()
1264 if (status < 0) mpegts_configure_pins()
1265 pr_err("Error %d on %s\n", status, __func__); mpegts_configure_pins()
1266 return status; mpegts_configure_pins()
1280 int status; bl_chain_cmd() local
1285 status = write16(state, SIO_BL_MODE__A, SIO_BL_MODE_CHAIN); bl_chain_cmd()
1286 if (status < 0) bl_chain_cmd()
1288 status = write16(state, SIO_BL_CHAIN_ADDR__A, rom_offset); bl_chain_cmd()
1289 if (status < 0) bl_chain_cmd()
1291 status = write16(state, SIO_BL_CHAIN_LEN__A, nr_of_elements); bl_chain_cmd()
1292 if (status < 0) bl_chain_cmd()
1294 status = write16(state, SIO_BL_ENABLE__A, SIO_BL_ENABLE_ON); bl_chain_cmd()
1295 if (status < 0) bl_chain_cmd()
1301 status = read16(state, SIO_BL_STATUS__A, &bl_status); bl_chain_cmd()
1302 if (status < 0) bl_chain_cmd()
1309 status = -EINVAL; bl_chain_cmd()
1313 if (status < 0) bl_chain_cmd()
1314 pr_err("Error %d on %s\n", status, __func__); bl_chain_cmd()
1317 return status; bl_chain_cmd()
1330 int status = 0; download_microcode() local
1374 status = write_block(state, address, block_size, p_src); download_microcode()
1375 if (status < 0) { download_microcode()
1376 pr_err("Error %d while loading firmware\n", status); download_microcode()
1382 return status; download_microcode()
1387 int status; dvbt_enable_ofdm_token_ring() local
1400 status = read16(state, SIO_OFDM_SH_OFDM_RING_STATUS__A, &data); dvbt_enable_ofdm_token_ring()
1401 if (status >= 0 && data == desired_status) { dvbt_enable_ofdm_token_ring()
1402 /* tokenring already has correct status */ dvbt_enable_ofdm_token_ring()
1403 return status; dvbt_enable_ofdm_token_ring()
1406 status = write16(state, SIO_OFDM_SH_OFDM_RING_ENABLE__A, desired_ctrl); dvbt_enable_ofdm_token_ring()
1410 status = read16(state, SIO_OFDM_SH_OFDM_RING_STATUS__A, &data); dvbt_enable_ofdm_token_ring()
1411 if ((status >= 0 && data == desired_status) dvbt_enable_ofdm_token_ring()
1420 return status; dvbt_enable_ofdm_token_ring()
1425 int status = 0; mpegts_stop() local
1432 status = read16(state, FEC_OC_SNC_MODE__A, &fec_oc_snc_mode); mpegts_stop()
1433 if (status < 0) mpegts_stop()
1436 status = write16(state, FEC_OC_SNC_MODE__A, fec_oc_snc_mode); mpegts_stop()
1437 if (status < 0) mpegts_stop()
1441 status = read16(state, FEC_OC_IPR_MODE__A, &fec_oc_ipr_mode); mpegts_stop()
1442 if (status < 0) mpegts_stop()
1445 status = write16(state, FEC_OC_IPR_MODE__A, fec_oc_ipr_mode); mpegts_stop()
1448 if (status < 0) mpegts_stop()
1449 pr_err("Error %d on %s\n", status, __func__); mpegts_stop()
1451 return status; mpegts_stop()
1462 int status = -EINVAL; scu_command() local
1473 pr_err("Error %d on %s\n", status, __func__); scu_command()
1474 return status; scu_command()
1494 status = read16(state, SCU_RAM_COMMAND__A, &cur_cmd); scu_command()
1495 if (status < 0) scu_command()
1500 status = -EIO; scu_command()
1509 status = read16(state, SCU_RAM_PARAM_0__A - ii, scu_command()
1511 if (status < 0) scu_command()
1540 status = -EINVAL; scu_command()
1545 if (status < 0) scu_command()
1546 pr_err("Error %d on %s\n", status, __func__); scu_command()
1549 return status; scu_command()
1555 int status; set_iqm_af() local
1560 status = read16(state, IQM_AF_STDBY__A, &data); set_iqm_af()
1561 if (status < 0) set_iqm_af()
1578 status = write16(state, IQM_AF_STDBY__A, data); set_iqm_af()
1581 if (status < 0) set_iqm_af()
1582 pr_err("Error %d on %s\n", status, __func__); set_iqm_af()
1583 return status; set_iqm_af()
1588 int status = 0; ctrl_power_mode() local
1624 status = power_up_device(state); ctrl_power_mode()
1625 if (status < 0) ctrl_power_mode()
1627 status = dvbt_enable_ofdm_token_ring(state, true); ctrl_power_mode()
1628 if (status < 0) ctrl_power_mode()
1646 status = mpegts_stop(state); ctrl_power_mode()
1647 if (status < 0) ctrl_power_mode()
1649 status = power_down_dvbt(state, false); ctrl_power_mode()
1650 if (status < 0) ctrl_power_mode()
1655 status = mpegts_stop(state); ctrl_power_mode()
1656 if (status < 0) ctrl_power_mode()
1658 status = power_down_qam(state); ctrl_power_mode()
1659 if (status < 0) ctrl_power_mode()
1665 status = dvbt_enable_ofdm_token_ring(state, false); ctrl_power_mode()
1666 if (status < 0) ctrl_power_mode()
1668 status = write16(state, SIO_CC_PWD_MODE__A, sio_cc_pwd_mode); ctrl_power_mode()
1669 if (status < 0) ctrl_power_mode()
1671 status = write16(state, SIO_CC_UPDATE__A, SIO_CC_UPDATE_KEY); ctrl_power_mode()
1672 if (status < 0) ctrl_power_mode()
1678 status = hi_cfg_command(state); ctrl_power_mode()
1679 if (status < 0) ctrl_power_mode()
1686 if (status < 0) ctrl_power_mode()
1687 pr_err("Error %d on %s\n", status, __func__); ctrl_power_mode()
1689 return status; ctrl_power_mode()
1697 int status; power_down_dvbt() local
1701 status = read16(state, SCU_COMM_EXEC__A, &data); power_down_dvbt()
1702 if (status < 0) power_down_dvbt()
1706 status = scu_command(state, power_down_dvbt()
1710 if (status < 0) power_down_dvbt()
1713 status = scu_command(state, power_down_dvbt()
1717 if (status < 0) power_down_dvbt()
1722 status = write16(state, OFDM_SC_COMM_EXEC__A, OFDM_SC_COMM_EXEC_STOP); power_down_dvbt()
1723 if (status < 0) power_down_dvbt()
1725 status = write16(state, OFDM_LC_COMM_EXEC__A, OFDM_LC_COMM_EXEC_STOP); power_down_dvbt()
1726 if (status < 0) power_down_dvbt()
1728 status = write16(state, IQM_COMM_EXEC__A, IQM_COMM_EXEC_B_STOP); power_down_dvbt()
1729 if (status < 0) power_down_dvbt()
1733 status = set_iqm_af(state, false); power_down_dvbt()
1734 if (status < 0) power_down_dvbt()
1739 status = ctrl_power_mode(state, &power_mode); power_down_dvbt()
1740 if (status < 0) power_down_dvbt()
1744 if (status < 0) power_down_dvbt()
1745 pr_err("Error %d on %s\n", status, __func__); power_down_dvbt()
1746 return status; power_down_dvbt()
1752 int status = 0; setoperation_mode() local
1762 status = write16(state, SCU_RAM_GPIO__A, setoperation_mode()
1764 if (status < 0) setoperation_mode()
1776 status = mpegts_stop(state); setoperation_mode()
1777 if (status < 0) setoperation_mode()
1779 status = power_down_dvbt(state, true); setoperation_mode()
1780 if (status < 0) setoperation_mode()
1786 status = mpegts_stop(state); setoperation_mode()
1787 if (status < 0) setoperation_mode()
1789 status = power_down_qam(state); setoperation_mode()
1790 if (status < 0) setoperation_mode()
1796 status = -EINVAL; setoperation_mode()
1807 status = set_dvbt_standard(state, o_mode); setoperation_mode()
1808 if (status < 0) setoperation_mode()
1816 status = set_qam_standard(state, o_mode); setoperation_mode()
1817 if (status < 0) setoperation_mode()
1822 status = -EINVAL; setoperation_mode()
1825 if (status < 0) setoperation_mode()
1826 pr_err("Error %d on %s\n", status, __func__); setoperation_mode()
1827 return status; setoperation_mode()
1833 int status = -EINVAL; start() local
1854 status = set_qam(state, i_freqk_hz, offsetk_hz); start()
1855 if (status < 0) start()
1861 status = mpegts_stop(state); start()
1862 if (status < 0) start()
1864 status = set_dvbt(state, i_freqk_hz, offsetk_hz); start()
1865 if (status < 0) start()
1867 status = dvbt_start(state); start()
1868 if (status < 0) start()
1876 if (status < 0) start()
1877 pr_err("Error %d on %s\n", status, __func__); start()
1878 return status; start()
1891 int status = -EINVAL; get_lock_status() local
1905 status = get_qam_lock_status(state, p_lock_status); get_lock_status()
1908 status = get_dvbt_lock_status(state, p_lock_status); get_lock_status()
1914 if (status < 0) get_lock_status()
1915 pr_err("Error %d on %s\n", status, __func__); get_lock_status()
1916 return status; get_lock_status()
1921 int status; mpegts_start() local
1926 status = read16(state, FEC_OC_SNC_MODE__A, &fec_oc_snc_mode); mpegts_start()
1927 if (status < 0) mpegts_start()
1930 status = write16(state, FEC_OC_SNC_MODE__A, fec_oc_snc_mode); mpegts_start()
1931 if (status < 0) mpegts_start()
1933 status = write16(state, FEC_OC_SNC_UNLOCK__A, 1); mpegts_start()
1935 if (status < 0) mpegts_start()
1936 pr_err("Error %d on %s\n", status, __func__); mpegts_start()
1937 return status; mpegts_start()
1942 int status; mpegts_dto_init() local
1947 status = write16(state, FEC_OC_RCN_CTL_STEP_LO__A, 0x0000); mpegts_dto_init()
1948 if (status < 0) mpegts_dto_init()
1950 status = write16(state, FEC_OC_RCN_CTL_STEP_HI__A, 0x000C); mpegts_dto_init()
1951 if (status < 0) mpegts_dto_init()
1953 status = write16(state, FEC_OC_RCN_GAIN__A, 0x000A); mpegts_dto_init()
1954 if (status < 0) mpegts_dto_init()
1956 status = write16(state, FEC_OC_AVR_PARM_A__A, 0x0008); mpegts_dto_init()
1957 if (status < 0) mpegts_dto_init()
1959 status = write16(state, FEC_OC_AVR_PARM_B__A, 0x0006); mpegts_dto_init()
1960 if (status < 0) mpegts_dto_init()
1962 status = write16(state, FEC_OC_TMD_HI_MARGIN__A, 0x0680); mpegts_dto_init()
1963 if (status < 0) mpegts_dto_init()
1965 status = write16(state, FEC_OC_TMD_LO_MARGIN__A, 0x0080); mpegts_dto_init()
1966 if (status < 0) mpegts_dto_init()
1968 status = write16(state, FEC_OC_TMD_COUNT__A, 0x03F4); mpegts_dto_init()
1969 if (status < 0) mpegts_dto_init()
1973 status = write16(state, FEC_OC_OCR_INVERT__A, 0); mpegts_dto_init()
1974 if (status < 0) mpegts_dto_init()
1976 status = write16(state, FEC_OC_SNC_LWM__A, 2); mpegts_dto_init()
1977 if (status < 0) mpegts_dto_init()
1979 status = write16(state, FEC_OC_SNC_HWM__A, 12); mpegts_dto_init()
1981 if (status < 0) mpegts_dto_init()
1982 pr_err("Error %d on %s\n", status, __func__); mpegts_dto_init()
1984 return status; mpegts_dto_init()
1990 int status; mpegts_dto_setup() local
2007 status = read16(state, FEC_OC_MODE__A, &fec_oc_reg_mode); mpegts_dto_setup()
2008 if (status < 0) mpegts_dto_setup()
2010 status = read16(state, FEC_OC_IPR_MODE__A, &fec_oc_reg_ipr_mode); mpegts_dto_setup()
2011 if (status < 0) mpegts_dto_setup()
2046 status = -EINVAL; mpegts_dto_setup()
2048 if (status < 0) mpegts_dto_setup()
2090 status = write16(state, FEC_OC_DTO_BURST_LEN__A, fec_oc_dto_burst_len); mpegts_dto_setup()
2091 if (status < 0) mpegts_dto_setup()
2093 status = write16(state, FEC_OC_DTO_PERIOD__A, fec_oc_dto_period); mpegts_dto_setup()
2094 if (status < 0) mpegts_dto_setup()
2096 status = write16(state, FEC_OC_DTO_MODE__A, fec_oc_dto_mode); mpegts_dto_setup()
2097 if (status < 0) mpegts_dto_setup()
2099 status = write16(state, FEC_OC_FCT_MODE__A, fec_oc_fct_mode); mpegts_dto_setup()
2100 if (status < 0) mpegts_dto_setup()
2102 status = write16(state, FEC_OC_MODE__A, fec_oc_reg_mode); mpegts_dto_setup()
2103 if (status < 0) mpegts_dto_setup()
2105 status = write16(state, FEC_OC_IPR_MODE__A, fec_oc_reg_ipr_mode); mpegts_dto_setup()
2106 if (status < 0) mpegts_dto_setup()
2110 status = write32(state, FEC_OC_RCN_CTL_RATE_LO__A, fec_oc_rcn_ctl_rate); mpegts_dto_setup()
2111 if (status < 0) mpegts_dto_setup()
2113 status = write16(state, FEC_OC_TMD_INT_UPD_RATE__A, mpegts_dto_setup()
2115 if (status < 0) mpegts_dto_setup()
2117 status = write16(state, FEC_OC_TMD_MODE__A, fec_oc_tmd_mode); mpegts_dto_setup()
2119 if (status < 0) mpegts_dto_setup()
2120 pr_err("Error %d on %s\n", status, __func__); mpegts_dto_setup()
2121 return status; mpegts_dto_setup()
2162 int status = -EINVAL; set_agc_rf() local
2174 status = read16(state, IQM_AF_STDBY__A, &data); set_agc_rf()
2175 if (status < 0) set_agc_rf()
2178 status = write16(state, IQM_AF_STDBY__A, data); set_agc_rf()
2179 if (status < 0) set_agc_rf()
2181 status = read16(state, SCU_RAM_AGC_CONFIG__A, &data); set_agc_rf()
2182 if (status < 0) set_agc_rf()
2193 status = write16(state, SCU_RAM_AGC_CONFIG__A, data); set_agc_rf()
2194 if (status < 0) set_agc_rf()
2198 status = read16(state, SCU_RAM_AGC_KI_RED__A, &data); set_agc_rf()
2199 if (status < 0) set_agc_rf()
2207 status = write16(state, SCU_RAM_AGC_KI_RED__A, data); set_agc_rf()
2208 if (status < 0) set_agc_rf()
2218 status = -EINVAL; set_agc_rf()
2224 status = write16(state, set_agc_rf()
2227 if (status < 0) set_agc_rf()
2232 status = write16(state, SCU_RAM_AGC_RF_IACCU_HI_CO__A, set_agc_rf()
2234 if (status < 0) set_agc_rf()
2238 status = write16(state, SCU_RAM_AGC_RF_MAX__A, set_agc_rf()
2240 if (status < 0) set_agc_rf()
2247 status = read16(state, IQM_AF_STDBY__A, &data); set_agc_rf()
2248 if (status < 0) set_agc_rf()
2251 status = write16(state, IQM_AF_STDBY__A, data); set_agc_rf()
2252 if (status < 0) set_agc_rf()
2256 status = read16(state, SCU_RAM_AGC_CONFIG__A, &data); set_agc_rf()
2257 if (status < 0) set_agc_rf()
2264 status = write16(state, SCU_RAM_AGC_CONFIG__A, data); set_agc_rf()
2265 if (status < 0) set_agc_rf()
2269 status = write16(state, SCU_RAM_AGC_RF_IACCU_HI_CO__A, 0); set_agc_rf()
2270 if (status < 0) set_agc_rf()
2274 status = write16(state, SCU_RAM_AGC_RF_IACCU_HI__A, set_agc_rf()
2276 if (status < 0) set_agc_rf()
2282 status = read16(state, IQM_AF_STDBY__A, &data); set_agc_rf()
2283 if (status < 0) set_agc_rf()
2286 status = write16(state, IQM_AF_STDBY__A, data); set_agc_rf()
2287 if (status < 0) set_agc_rf()
2291 status = read16(state, SCU_RAM_AGC_CONFIG__A, &data); set_agc_rf()
2292 if (status < 0) set_agc_rf()
2295 status = write16(state, SCU_RAM_AGC_CONFIG__A, data); set_agc_rf()
2296 if (status < 0) set_agc_rf()
2301 status = -EINVAL; set_agc_rf()
2305 if (status < 0) set_agc_rf()
2306 pr_err("Error %d on %s\n", status, __func__); set_agc_rf()
2307 return status; set_agc_rf()
2316 int status = 0; set_agc_if() local
2325 status = read16(state, IQM_AF_STDBY__A, &data); set_agc_if()
2326 if (status < 0) set_agc_if()
2329 status = write16(state, IQM_AF_STDBY__A, data); set_agc_if()
2330 if (status < 0) set_agc_if()
2333 status = read16(state, SCU_RAM_AGC_CONFIG__A, &data); set_agc_if()
2334 if (status < 0) set_agc_if()
2345 status = write16(state, SCU_RAM_AGC_CONFIG__A, data); set_agc_if()
2346 if (status < 0) set_agc_if()
2350 status = read16(state, SCU_RAM_AGC_KI_RED__A, &data); set_agc_if()
2351 if (status < 0) set_agc_if()
2358 status = write16(state, SCU_RAM_AGC_KI_RED__A, data); set_agc_if()
2359 if (status < 0) set_agc_if()
2369 status = write16(state, SCU_RAM_AGC_IF_IACCU_HI_TGT_MAX__A, set_agc_if()
2371 if (status < 0) set_agc_if()
2378 status = read16(state, IQM_AF_STDBY__A, &data); set_agc_if()
2379 if (status < 0) set_agc_if()
2382 status = write16(state, IQM_AF_STDBY__A, data); set_agc_if()
2383 if (status < 0) set_agc_if()
2386 status = read16(state, SCU_RAM_AGC_CONFIG__A, &data); set_agc_if()
2387 if (status < 0) set_agc_if()
2398 status = write16(state, SCU_RAM_AGC_CONFIG__A, data); set_agc_if()
2399 if (status < 0) set_agc_if()
2403 status = write16(state, SCU_RAM_AGC_IF_IACCU_HI_TGT_MAX__A, set_agc_if()
2405 if (status < 0) set_agc_if()
2412 status = read16(state, IQM_AF_STDBY__A, &data); set_agc_if()
2413 if (status < 0) set_agc_if()
2416 status = write16(state, IQM_AF_STDBY__A, data); set_agc_if()
2417 if (status < 0) set_agc_if()
2421 status = read16(state, SCU_RAM_AGC_CONFIG__A, &data); set_agc_if()
2422 if (status < 0) set_agc_if()
2425 status = write16(state, SCU_RAM_AGC_CONFIG__A, data); set_agc_if()
2426 if (status < 0) set_agc_if()
2433 status = write16(state, SCU_RAM_AGC_INGAIN_TGT_MIN__A, p_agc_cfg->top); set_agc_if()
2435 if (status < 0) set_agc_if()
2436 pr_err("Error %d on %s\n", status, __func__); set_agc_if()
2437 return status; set_agc_if()
2443 int status = 0; get_qam_signal_to_noise() local
2455 status = read16(state, QAM_SL_ERR_POWER__A, &qam_sl_err_power); get_qam_signal_to_noise()
2456 if (status < 0) { get_qam_signal_to_noise()
2457 pr_err("Error %d on %s\n", status, __func__); get_qam_signal_to_noise()
2486 return status; get_qam_signal_to_noise()
2492 int status; get_dvbt_signal_to_noise() local
2509 status = read16(state, OFDM_EQ_TOP_TD_TPS_PWR_OFS__A, get_dvbt_signal_to_noise()
2511 if (status < 0) get_dvbt_signal_to_noise()
2513 status = read16(state, OFDM_EQ_TOP_TD_REQ_SMB_CNT__A, get_dvbt_signal_to_noise()
2515 if (status < 0) get_dvbt_signal_to_noise()
2517 status = read16(state, OFDM_EQ_TOP_TD_SQR_ERR_EXP__A, get_dvbt_signal_to_noise()
2519 if (status < 0) get_dvbt_signal_to_noise()
2521 status = read16(state, OFDM_EQ_TOP_TD_SQR_ERR_I__A, get_dvbt_signal_to_noise()
2523 if (status < 0) get_dvbt_signal_to_noise()
2531 status = read16(state, OFDM_EQ_TOP_TD_SQR_ERR_Q__A, &reg_data); get_dvbt_signal_to_noise()
2532 if (status < 0) get_dvbt_signal_to_noise()
2540 status = read16(state, OFDM_SC_RA_RAM_OP_PARAM__A, get_dvbt_signal_to_noise()
2542 if (status < 0) get_dvbt_signal_to_noise()
2588 if (status < 0) get_dvbt_signal_to_noise()
2589 pr_err("Error %d on %s\n", status, __func__); get_dvbt_signal_to_noise()
2590 return status; get_dvbt_signal_to_noise()
2614 int status = 0;
2645 status = get_dvbt_signal_to_noise(state, &signal_to_noise);
2646 if (status < 0)
2648 status = read16(state, OFDM_EQ_TOP_TD_TPS_CONST__A,
2650 if (status < 0)
2654 status = read16(state, OFDM_EQ_TOP_TD_TPS_CODE_HP__A,
2656 if (status < 0)
2680 int status = 0;
2690 status = get_qam_signal_to_noise(state, &signal_to_noise);
2691 if (status < 0)
2722 return status;
2757 int status = -EINVAL; ConfigureI2CBridge() local
2769 status = write16(state, SIO_HI_RA_RAM_PAR_1__A, ConfigureI2CBridge()
2771 if (status < 0) ConfigureI2CBridge()
2774 status = write16(state, SIO_HI_RA_RAM_PAR_2__A, ConfigureI2CBridge()
2776 if (status < 0) ConfigureI2CBridge()
2779 status = write16(state, SIO_HI_RA_RAM_PAR_2__A, ConfigureI2CBridge()
2781 if (status < 0) ConfigureI2CBridge()
2785 status = hi_command(state, SIO_HI_RA_RAM_CMD_BRDCTRL, NULL); ConfigureI2CBridge()
2788 if (status < 0) ConfigureI2CBridge()
2789 pr_err("Error %d on %s\n", status, __func__); ConfigureI2CBridge()
2790 return status; ConfigureI2CBridge()
2796 int status = -EINVAL; set_pre_saw() local
2804 status = write16(state, IQM_AF_PDREF__A, p_pre_saw_cfg->reference); set_pre_saw()
2806 if (status < 0) set_pre_saw()
2807 pr_err("Error %d on %s\n", status, __func__); set_pre_saw()
2808 return status; set_pre_saw()
2817 int status; bl_direct_cmd() local
2823 status = write16(state, SIO_BL_MODE__A, SIO_BL_MODE_DIRECT); bl_direct_cmd()
2824 if (status < 0) bl_direct_cmd()
2826 status = write16(state, SIO_BL_TGT_HDR__A, blockbank); bl_direct_cmd()
2827 if (status < 0) bl_direct_cmd()
2829 status = write16(state, SIO_BL_TGT_ADDR__A, offset); bl_direct_cmd()
2830 if (status < 0) bl_direct_cmd()
2832 status = write16(state, SIO_BL_SRC_ADDR__A, rom_offset); bl_direct_cmd()
2833 if (status < 0) bl_direct_cmd()
2835 status = write16(state, SIO_BL_SRC_LEN__A, nr_of_elements); bl_direct_cmd()
2836 if (status < 0) bl_direct_cmd()
2838 status = write16(state, SIO_BL_ENABLE__A, SIO_BL_ENABLE_ON); bl_direct_cmd()
2839 if (status < 0) bl_direct_cmd()
2844 status = read16(state, SIO_BL_STATUS__A, &bl_status); bl_direct_cmd()
2845 if (status < 0) bl_direct_cmd()
2850 status = -EINVAL; bl_direct_cmd()
2854 if (status < 0) bl_direct_cmd()
2855 pr_err("Error %d on %s\n", status, __func__); bl_direct_cmd()
2858 return status; bl_direct_cmd()
2865 int status; adc_sync_measurement() local
2870 status = write16(state, IQM_AF_COMM_EXEC__A, IQM_AF_COMM_EXEC_ACTIVE); adc_sync_measurement()
2871 if (status < 0) adc_sync_measurement()
2873 status = write16(state, IQM_AF_START_LOCK__A, 1); adc_sync_measurement()
2874 if (status < 0) adc_sync_measurement()
2878 status = read16(state, IQM_AF_PHASE0__A, &data); adc_sync_measurement()
2879 if (status < 0) adc_sync_measurement()
2883 status = read16(state, IQM_AF_PHASE1__A, &data); adc_sync_measurement()
2884 if (status < 0) adc_sync_measurement()
2888 status = read16(state, IQM_AF_PHASE2__A, &data); adc_sync_measurement()
2889 if (status < 0) adc_sync_measurement()
2895 if (status < 0) adc_sync_measurement()
2896 pr_err("Error %d on %s\n", status, __func__); adc_sync_measurement()
2897 return status; adc_sync_measurement()
2903 int status; adc_synchronization() local
2907 status = adc_sync_measurement(state, &count); adc_synchronization()
2908 if (status < 0) adc_synchronization()
2915 status = read16(state, IQM_AF_CLKNEG__A, &clk_neg); adc_synchronization()
2916 if (status < 0) adc_synchronization()
2928 status = write16(state, IQM_AF_CLKNEG__A, clk_neg); adc_synchronization()
2929 if (status < 0) adc_synchronization()
2931 status = adc_sync_measurement(state, &count); adc_synchronization()
2932 if (status < 0) adc_synchronization()
2937 status = -EINVAL; adc_synchronization()
2939 if (status < 0) adc_synchronization()
2940 pr_err("Error %d on %s\n", status, __func__); adc_synchronization()
2941 return status; adc_synchronization()
2954 int status; set_frequency_shifter() local
3003 status = write32(state, IQM_FS_RATE_OFS_LO__A, set_frequency_shifter()
3005 if (status < 0) set_frequency_shifter()
3006 pr_err("Error %d on %s\n", status, __func__); set_frequency_shifter()
3007 return status; set_frequency_shifter()
3029 int status = 0; init_agc() local
3062 status = write16(state, SCU_RAM_AGC_FAST_CLP_CTRL_DELAY__A, init_agc()
3064 if (status < 0) init_agc()
3067 status = write16(state, SCU_RAM_AGC_CLP_CTRL_MODE__A, clp_ctrl_mode); init_agc()
3068 if (status < 0) init_agc()
3070 status = write16(state, SCU_RAM_AGC_INGAIN_TGT__A, ingain_tgt); init_agc()
3071 if (status < 0) init_agc()
3073 status = write16(state, SCU_RAM_AGC_INGAIN_TGT_MIN__A, ingain_tgt_min); init_agc()
3074 if (status < 0) init_agc()
3076 status = write16(state, SCU_RAM_AGC_INGAIN_TGT_MAX__A, ingain_tgt_max); init_agc()
3077 if (status < 0) init_agc()
3079 status = write16(state, SCU_RAM_AGC_IF_IACCU_HI_TGT_MIN__A, init_agc()
3081 if (status < 0) init_agc()
3083 status = write16(state, SCU_RAM_AGC_IF_IACCU_HI_TGT_MAX__A, init_agc()
3085 if (status < 0) init_agc()
3087 status = write16(state, SCU_RAM_AGC_IF_IACCU_HI__A, 0); init_agc()
3088 if (status < 0) init_agc()
3090 status = write16(state, SCU_RAM_AGC_IF_IACCU_LO__A, 0); init_agc()
3091 if (status < 0) init_agc()
3093 status = write16(state, SCU_RAM_AGC_RF_IACCU_HI__A, 0); init_agc()
3094 if (status < 0) init_agc()
3096 status = write16(state, SCU_RAM_AGC_RF_IACCU_LO__A, 0); init_agc()
3097 if (status < 0) init_agc()
3099 status = write16(state, SCU_RAM_AGC_CLP_SUM_MAX__A, clp_sum_max); init_agc()
3100 if (status < 0) init_agc()
3102 status = write16(state, SCU_RAM_AGC_SNS_SUM_MAX__A, sns_sum_max); init_agc()
3103 if (status < 0) init_agc()
3106 status = write16(state, SCU_RAM_AGC_KI_INNERGAIN_MIN__A, init_agc()
3108 if (status < 0) init_agc()
3110 status = write16(state, SCU_RAM_AGC_IF_IACCU_HI_TGT__A, init_agc()
3112 if (status < 0) init_agc()
3114 status = write16(state, SCU_RAM_AGC_CLP_CYCLEN__A, clp_cyclen); init_agc()
3115 if (status < 0) init_agc()
3118 status = write16(state, SCU_RAM_AGC_RF_SNS_DEV_MAX__A, 1023); init_agc()
3119 if (status < 0) init_agc()
3121 status = write16(state, SCU_RAM_AGC_RF_SNS_DEV_MIN__A, (u16) -1023); init_agc()
3122 if (status < 0) init_agc()
3124 status = write16(state, SCU_RAM_AGC_FAST_SNS_CTRL_DELAY__A, 50); init_agc()
3125 if (status < 0) init_agc()
3128 status = write16(state, SCU_RAM_AGC_KI_MAXMINGAIN_TH__A, 20); init_agc()
3129 if (status < 0) init_agc()
3131 status = write16(state, SCU_RAM_AGC_CLP_SUM_MIN__A, clp_sum_min); init_agc()
3132 if (status < 0) init_agc()
3134 status = write16(state, SCU_RAM_AGC_SNS_SUM_MIN__A, sns_sum_min); init_agc()
3135 if (status < 0) init_agc()
3137 status = write16(state, SCU_RAM_AGC_CLP_DIR_TO__A, clp_dir_to); init_agc()
3138 if (status < 0) init_agc()
3140 status = write16(state, SCU_RAM_AGC_SNS_DIR_TO__A, sns_dir_to); init_agc()
3141 if (status < 0) init_agc()
3143 status = write16(state, SCU_RAM_AGC_KI_MINGAIN__A, 0x7fff); init_agc()
3144 if (status < 0) init_agc()
3146 status = write16(state, SCU_RAM_AGC_KI_MAXGAIN__A, 0x0); init_agc()
3147 if (status < 0) init_agc()
3149 status = write16(state, SCU_RAM_AGC_KI_MIN__A, 0x0117); init_agc()
3150 if (status < 0) init_agc()
3152 status = write16(state, SCU_RAM_AGC_KI_MAX__A, 0x0657); init_agc()
3153 if (status < 0) init_agc()
3155 status = write16(state, SCU_RAM_AGC_CLP_SUM__A, 0); init_agc()
3156 if (status < 0) init_agc()
3158 status = write16(state, SCU_RAM_AGC_CLP_CYCCNT__A, 0); init_agc()
3159 if (status < 0) init_agc()
3161 status = write16(state, SCU_RAM_AGC_CLP_DIR_WD__A, 0); init_agc()
3162 if (status < 0) init_agc()
3164 status = write16(state, SCU_RAM_AGC_CLP_DIR_STP__A, 1); init_agc()
3165 if (status < 0) init_agc()
3167 status = write16(state, SCU_RAM_AGC_SNS_SUM__A, 0); init_agc()
3168 if (status < 0) init_agc()
3170 status = write16(state, SCU_RAM_AGC_SNS_CYCCNT__A, 0); init_agc()
3171 if (status < 0) init_agc()
3173 status = write16(state, SCU_RAM_AGC_SNS_DIR_WD__A, 0); init_agc()
3174 if (status < 0) init_agc()
3176 status = write16(state, SCU_RAM_AGC_SNS_DIR_STP__A, 1); init_agc()
3177 if (status < 0) init_agc()
3179 status = write16(state, SCU_RAM_AGC_SNS_CYCLEN__A, 500); init_agc()
3180 if (status < 0) init_agc()
3182 status = write16(state, SCU_RAM_AGC_KI_CYCLEN__A, 500); init_agc()
3183 if (status < 0) init_agc()
3187 status = read16(state, SCU_RAM_AGC_KI__A, &data); init_agc()
3188 if (status < 0) init_agc()
3197 status = write16(state, SCU_RAM_AGC_KI__A, data); init_agc()
3199 if (status < 0) init_agc()
3200 pr_err("Error %d on %s\n", status, __func__); init_agc()
3201 return status; init_agc()
3206 int status; dvbtqam_get_acc_pkt_err() local
3210 status = write16(state, SCU_RAM_FEC_ACCUM_PKT_FAILURES__A, 0); dvbtqam_get_acc_pkt_err()
3212 status = read16(state, SCU_RAM_FEC_ACCUM_PKT_FAILURES__A, dvbtqam_get_acc_pkt_err()
3214 if (status < 0) dvbtqam_get_acc_pkt_err()
3215 pr_err("Error %d on %s\n", status, __func__); dvbtqam_get_acc_pkt_err()
3216 return status; dvbtqam_get_acc_pkt_err()
3228 int status; dvbt_sc_command() local
3231 status = read16(state, OFDM_SC_COMM_EXEC__A, &sc_exec); dvbt_sc_command()
3234 status = -EINVAL; dvbt_sc_command()
3236 if (status < 0) dvbt_sc_command()
3243 status = read16(state, OFDM_SC_RA_RAM_CMD__A, &cur_cmd); dvbt_sc_command()
3246 if (retry_cnt >= DRXK_MAX_RETRIES && (status < 0)) dvbt_sc_command()
3255 status = write16(state, OFDM_SC_RA_RAM_CMD_ADDR__A, subcmd); dvbt_sc_command()
3256 if (status < 0) dvbt_sc_command()
3265 status = 0; dvbt_sc_command()
3274 status |= write16(state, OFDM_SC_RA_RAM_PARAM1__A, param1); dvbt_sc_command()
3278 status |= write16(state, OFDM_SC_RA_RAM_PARAM0__A, param0); dvbt_sc_command()
3283 status |= write16(state, OFDM_SC_RA_RAM_CMD__A, cmd); dvbt_sc_command()
3287 status = -EINVAL; dvbt_sc_command()
3289 if (status < 0) dvbt_sc_command()
3296 status = read16(state, OFDM_SC_RA_RAM_CMD__A, &cur_cmd); dvbt_sc_command()
3299 if (retry_cnt >= DRXK_MAX_RETRIES && (status < 0)) dvbt_sc_command()
3303 status = read16(state, OFDM_SC_RA_RAM_CMD_ADDR__A, &err_code); dvbt_sc_command()
3306 status = -EINVAL; dvbt_sc_command()
3308 if (status < 0) dvbt_sc_command()
3320 status = read16(state, OFDM_SC_RA_RAM_PARAM0__A, &(param0)); dvbt_sc_command()
3331 status = -EINVAL; dvbt_sc_command()
3335 if (status < 0) dvbt_sc_command()
3336 pr_err("Error %d on %s\n", status, __func__); dvbt_sc_command()
3337 return status; dvbt_sc_command()
3343 int status; power_up_dvbt() local
3346 status = ctrl_power_mode(state, &power_mode); power_up_dvbt()
3347 if (status < 0) power_up_dvbt()
3348 pr_err("Error %d on %s\n", status, __func__); power_up_dvbt()
3349 return status; power_up_dvbt()
3354 int status; dvbt_ctrl_set_inc_enable() local
3358 status = write16(state, IQM_CF_BYPASSDET__A, 0); dvbt_ctrl_set_inc_enable()
3360 status = write16(state, IQM_CF_BYPASSDET__A, 1); dvbt_ctrl_set_inc_enable()
3361 if (status < 0) dvbt_ctrl_set_inc_enable()
3362 pr_err("Error %d on %s\n", status, __func__); dvbt_ctrl_set_inc_enable()
3363 return status; dvbt_ctrl_set_inc_enable()
3370 int status; dvbt_ctrl_set_fr_enable() local
3375 status = write16(state, OFDM_SC_RA_RAM_FR_THRES_8K__A, dvbt_ctrl_set_fr_enable()
3379 status = write16(state, OFDM_SC_RA_RAM_FR_THRES_8K__A, 0); dvbt_ctrl_set_fr_enable()
3381 if (status < 0) dvbt_ctrl_set_fr_enable()
3382 pr_err("Error %d on %s\n", status, __func__); dvbt_ctrl_set_fr_enable()
3384 return status; dvbt_ctrl_set_fr_enable()
3391 int status; dvbt_ctrl_set_echo_threshold() local
3394 status = read16(state, OFDM_SC_RA_RAM_ECHO_THRES__A, &data); dvbt_ctrl_set_echo_threshold()
3395 if (status < 0) dvbt_ctrl_set_echo_threshold()
3415 status = write16(state, OFDM_SC_RA_RAM_ECHO_THRES__A, data); dvbt_ctrl_set_echo_threshold()
3417 if (status < 0) dvbt_ctrl_set_echo_threshold()
3418 pr_err("Error %d on %s\n", status, __func__); dvbt_ctrl_set_echo_threshold()
3419 return status; dvbt_ctrl_set_echo_threshold()
3425 int status = -EINVAL; dvbt_ctrl_set_sqi_speed() local
3437 status = write16(state, SCU_RAM_FEC_PRE_RS_BER_FILTER_SH__A, dvbt_ctrl_set_sqi_speed()
3440 if (status < 0) dvbt_ctrl_set_sqi_speed()
3441 pr_err("Error %d on %s\n", status, __func__); dvbt_ctrl_set_sqi_speed()
3442 return status; dvbt_ctrl_set_sqi_speed()
3457 int status; dvbt_activate_presets() local
3465 status = dvbt_ctrl_set_inc_enable(state, &setincenable); dvbt_activate_presets()
3466 if (status < 0) dvbt_activate_presets()
3468 status = dvbt_ctrl_set_fr_enable(state, &setfrenable); dvbt_activate_presets()
3469 if (status < 0) dvbt_activate_presets()
3471 status = dvbt_ctrl_set_echo_threshold(state, &echo_thres2k); dvbt_activate_presets()
3472 if (status < 0) dvbt_activate_presets()
3474 status = dvbt_ctrl_set_echo_threshold(state, &echo_thres8k); dvbt_activate_presets()
3475 if (status < 0) dvbt_activate_presets()
3477 status = write16(state, SCU_RAM_AGC_INGAIN_TGT_MAX__A, dvbt_activate_presets()
3480 if (status < 0) dvbt_activate_presets()
3481 pr_err("Error %d on %s\n", status, __func__); dvbt_activate_presets()
3482 return status; dvbt_activate_presets()
3500 int status; set_dvbt_standard() local
3508 status = scu_command(state, set_dvbt_standard()
3512 if (status < 0) set_dvbt_standard()
3516 status = scu_command(state, SCU_RAM_COMMAND_STANDARD_OFDM set_dvbt_standard()
3519 if (status < 0) set_dvbt_standard()
3523 status = write16(state, OFDM_SC_COMM_EXEC__A, OFDM_SC_COMM_EXEC_STOP); set_dvbt_standard()
3524 if (status < 0) set_dvbt_standard()
3526 status = write16(state, OFDM_LC_COMM_EXEC__A, OFDM_LC_COMM_EXEC_STOP); set_dvbt_standard()
3527 if (status < 0) set_dvbt_standard()
3529 status = write16(state, IQM_COMM_EXEC__A, IQM_COMM_EXEC_B_STOP); set_dvbt_standard()
3530 if (status < 0) set_dvbt_standard()
3535 status = write16(state, IQM_AF_UPD_SEL__A, 1); set_dvbt_standard()
3536 if (status < 0) set_dvbt_standard()
3539 status = write16(state, IQM_AF_CLP_LEN__A, 0); set_dvbt_standard()
3540 if (status < 0) set_dvbt_standard()
3543 status = write16(state, IQM_AF_SNS_LEN__A, 0); set_dvbt_standard()
3544 if (status < 0) set_dvbt_standard()
3547 status = write16(state, IQM_AF_AMUX__A, IQM_AF_AMUX_SIGNAL2ADC); set_dvbt_standard()
3548 if (status < 0) set_dvbt_standard()
3550 status = set_iqm_af(state, true); set_dvbt_standard()
3551 if (status < 0) set_dvbt_standard()
3554 status = write16(state, IQM_AF_AGC_RF__A, 0); set_dvbt_standard()
3555 if (status < 0) set_dvbt_standard()
3559 status = write16(state, IQM_AF_INC_LCT__A, 0); /* crunch in IQM_CF */ set_dvbt_standard()
3560 if (status < 0) set_dvbt_standard()
3562 status = write16(state, IQM_CF_DET_LCT__A, 0); /* detect in IQM_CF */ set_dvbt_standard()
3563 if (status < 0) set_dvbt_standard()
3565 status = write16(state, IQM_CF_WND_LEN__A, 3); /* peak detector window length */ set_dvbt_standard()
3566 if (status < 0) set_dvbt_standard()
3569 status = write16(state, IQM_RC_STRETCH__A, 16); set_dvbt_standard()
3570 if (status < 0) set_dvbt_standard()
3572 status = write16(state, IQM_CF_OUT_ENA__A, 0x4); /* enable output 2 */ set_dvbt_standard()
3573 if (status < 0) set_dvbt_standard()
3575 status = write16(state, IQM_CF_DS_ENA__A, 0x4); /* decimate output 2 */ set_dvbt_standard()
3576 if (status < 0) set_dvbt_standard()
3578 status = write16(state, IQM_CF_SCALE__A, 1600); set_dvbt_standard()
3579 if (status < 0) set_dvbt_standard()
3581 status = write16(state, IQM_CF_SCALE_SH__A, 0); set_dvbt_standard()
3582 if (status < 0) set_dvbt_standard()
3586 status = write16(state, IQM_AF_CLP_TH__A, 448); set_dvbt_standard()
3587 if (status < 0) set_dvbt_standard()
3589 status = write16(state, IQM_CF_DATATH__A, 495); /* crunching threshold */ set_dvbt_standard()
3590 if (status < 0) set_dvbt_standard()
3593 status = bl_chain_cmd(state, DRXK_BL_ROM_OFFSET_TAPS_DVBT, set_dvbt_standard()
3595 if (status < 0) set_dvbt_standard()
3598 status = write16(state, IQM_CF_PKDTH__A, 2); /* peak detector threshold */ set_dvbt_standard()
3599 if (status < 0) set_dvbt_standard()
3601 status = write16(state, IQM_CF_POW_MEAS_LEN__A, 2); set_dvbt_standard()
3602 if (status < 0) set_dvbt_standard()
3605 status = write16(state, IQM_CF_COMM_INT_MSK__A, 1); set_dvbt_standard()
3606 if (status < 0) set_dvbt_standard()
3608 status = write16(state, IQM_COMM_EXEC__A, IQM_COMM_EXEC_B_ACTIVE); set_dvbt_standard()
3609 if (status < 0) set_dvbt_standard()
3613 status = adc_synchronization(state); set_dvbt_standard()
3614 if (status < 0) set_dvbt_standard()
3616 status = set_pre_saw(state, &state->m_dvbt_pre_saw_cfg); set_dvbt_standard()
3617 if (status < 0) set_dvbt_standard()
3621 status = write16(state, SCU_COMM_EXEC__A, SCU_COMM_EXEC_HOLD); set_dvbt_standard()
3622 if (status < 0) set_dvbt_standard()
3625 status = set_agc_rf(state, &state->m_dvbt_rf_agc_cfg, true); set_dvbt_standard()
3626 if (status < 0) set_dvbt_standard()
3628 status = set_agc_if(state, &state->m_dvbt_if_agc_cfg, true); set_dvbt_standard()
3629 if (status < 0) set_dvbt_standard()
3633 status = read16(state, OFDM_SC_RA_RAM_CONFIG__A, &data); set_dvbt_standard()
3634 if (status < 0) set_dvbt_standard()
3637 status = write16(state, OFDM_SC_RA_RAM_CONFIG__A, data); set_dvbt_standard()
3638 if (status < 0) set_dvbt_standard()
3642 status = write16(state, SCU_COMM_EXEC__A, SCU_COMM_EXEC_ACTIVE); set_dvbt_standard()
3643 if (status < 0) set_dvbt_standard()
3648 status = write16(state, SCU_RAM_AGC_FAST_CLP_CTRL_DELAY__A, set_dvbt_standard()
3650 if (status < 0) set_dvbt_standard()
3656 status = write16(state, OFDM_SC_RA_RAM_BE_OPT_DELAY__A, 1); set_dvbt_standard()
3657 if (status < 0) set_dvbt_standard()
3659 status = write16(state, OFDM_SC_RA_RAM_BE_OPT_INIT_DELAY__A, 2); set_dvbt_standard()
3660 if (status < 0) set_dvbt_standard()
3665 status = write16(state, FEC_DI_INPUT_CTL__A, 1); /* OFDM input */ set_dvbt_standard()
3666 if (status < 0) set_dvbt_standard()
3671 status = write16(state, FEC_RS_MEASUREMENT_PERIOD__A, 0x400); set_dvbt_standard()
3672 if (status < 0) set_dvbt_standard()
3675 status = write16(state, FEC_RS_MEASUREMENT_PERIOD__A, 0x1000); set_dvbt_standard()
3676 if (status < 0) set_dvbt_standard()
3679 status = write16(state, FEC_RS_MEASUREMENT_PRESCALE__A, 0x0001); set_dvbt_standard()
3680 if (status < 0) set_dvbt_standard()
3684 status = mpegts_dto_setup(state, OM_DVBT); set_dvbt_standard()
3685 if (status < 0) set_dvbt_standard()
3688 status = dvbt_activate_presets(state); set_dvbt_standard()
3689 if (status < 0) set_dvbt_standard()
3693 if (status < 0) set_dvbt_standard()
3694 pr_err("Error %d on %s\n", status, __func__); set_dvbt_standard()
3695 return status; set_dvbt_standard()
3707 int status; dvbt_start() local
3714 status = dvbt_sc_command(state, OFDM_SC_RA_RAM_CMD_PROC_START, 0, dvbt_start()
3717 if (status < 0) dvbt_start()
3720 status = mpegts_start(state); dvbt_start()
3721 if (status < 0) dvbt_start()
3723 status = write16(state, FEC_COMM_EXEC__A, FEC_COMM_EXEC_ACTIVE); dvbt_start()
3724 if (status < 0) dvbt_start()
3727 if (status < 0) dvbt_start()
3728 pr_err("Error %d on %s\n", status, __func__); dvbt_start()
3729 return status; dvbt_start()
3750 int status; set_dvbt() local
3755 status = scu_command(state, SCU_RAM_COMMAND_STANDARD_OFDM set_dvbt()
3758 if (status < 0) set_dvbt()
3762 status = write16(state, SCU_COMM_EXEC__A, SCU_COMM_EXEC_HOLD); set_dvbt()
3763 if (status < 0) set_dvbt()
3767 status = write16(state, OFDM_SC_COMM_EXEC__A, OFDM_SC_COMM_EXEC_STOP); set_dvbt()
3768 if (status < 0) set_dvbt()
3770 status = write16(state, OFDM_LC_COMM_EXEC__A, OFDM_LC_COMM_EXEC_STOP); set_dvbt()
3771 if (status < 0) set_dvbt()
3776 status = write16(state, OFDM_CP_COMM_EXEC__A, OFDM_CP_COMM_EXEC_STOP); set_dvbt()
3777 if (status < 0) set_dvbt()
3869 status = -EINVAL; set_dvbt()
3875 status = write16(state, OFDM_EC_SB_PRIOR__A, OFDM_EC_SB_PRIOR_HI); set_dvbt()
3876 if (status < 0) set_dvbt()
3922 status = write16(state, OFDM_SC_RA_RAM_SRMM_FIX_FACT_8K__A, set_dvbt()
3924 if (status < 0) set_dvbt()
3927 status = write16(state, OFDM_SC_RA_RAM_NI_INIT_8K_PER_LEFT__A, set_dvbt()
3929 if (status < 0) set_dvbt()
3931 status = write16(state, OFDM_SC_RA_RAM_NI_INIT_8K_PER_RIGHT__A, set_dvbt()
3933 if (status < 0) set_dvbt()
3935 status = write16(state, OFDM_SC_RA_RAM_NI_INIT_2K_PER_LEFT__A, set_dvbt()
3937 if (status < 0) set_dvbt()
3939 status = write16(state, OFDM_SC_RA_RAM_NI_INIT_2K_PER_RIGHT__A, set_dvbt()
3941 if (status < 0) set_dvbt()
3946 status = write16(state, OFDM_SC_RA_RAM_SRMM_FIX_FACT_8K__A, set_dvbt()
3948 if (status < 0) set_dvbt()
3951 status = write16(state, OFDM_SC_RA_RAM_NI_INIT_8K_PER_LEFT__A, set_dvbt()
3953 if (status < 0) set_dvbt()
3955 status = write16(state, OFDM_SC_RA_RAM_NI_INIT_8K_PER_RIGHT__A, set_dvbt()
3957 if (status < 0) set_dvbt()
3959 status = write16(state, OFDM_SC_RA_RAM_NI_INIT_2K_PER_LEFT__A, set_dvbt()
3961 if (status < 0) set_dvbt()
3963 status = write16(state, OFDM_SC_RA_RAM_NI_INIT_2K_PER_RIGHT__A, set_dvbt()
3965 if (status < 0) set_dvbt()
3970 status = write16(state, OFDM_SC_RA_RAM_SRMM_FIX_FACT_8K__A, set_dvbt()
3972 if (status < 0) set_dvbt()
3975 status = write16(state, OFDM_SC_RA_RAM_NI_INIT_8K_PER_LEFT__A, set_dvbt()
3977 if (status < 0) set_dvbt()
3979 status = write16(state, OFDM_SC_RA_RAM_NI_INIT_8K_PER_RIGHT__A, set_dvbt()
3981 if (status < 0) set_dvbt()
3983 status = write16(state, OFDM_SC_RA_RAM_NI_INIT_2K_PER_LEFT__A, set_dvbt()
3985 if (status < 0) set_dvbt()
3987 status = write16(state, OFDM_SC_RA_RAM_NI_INIT_2K_PER_RIGHT__A, set_dvbt()
3989 if (status < 0) set_dvbt()
3993 status = -EINVAL; set_dvbt()
4024 status = write32(state, IQM_RC_RATE_OFS_LO__A, iqm_rc_rate_ofs); set_dvbt()
4025 if (status < 0) set_dvbt()
4031 status = dvbt_set_frequency_shift(demod, channel, tuner_offset); set_dvbt()
4032 if (status < 0) set_dvbt()
4035 status = set_frequency_shifter(state, intermediate_freqk_hz, set_dvbt()
4037 if (status < 0) set_dvbt()
4043 status = write16(state, SCU_COMM_EXEC__A, SCU_COMM_EXEC_ACTIVE); set_dvbt()
4044 if (status < 0) set_dvbt()
4048 status = write16(state, OFDM_SC_COMM_STATE__A, 0); set_dvbt()
4049 if (status < 0) set_dvbt()
4051 status = write16(state, OFDM_SC_COMM_EXEC__A, 1); set_dvbt()
4052 if (status < 0) set_dvbt()
4056 status = scu_command(state, SCU_RAM_COMMAND_STANDARD_OFDM set_dvbt()
4059 if (status < 0) set_dvbt()
4068 status = dvbt_sc_command(state, OFDM_SC_RA_RAM_CMD_SET_PREF_PARAM, set_dvbt()
4070 if (status < 0) set_dvbt()
4074 status = dvbt_ctrl_set_sqi_speed(state, &state->m_sqi_speed); set_dvbt()
4076 if (status < 0) set_dvbt()
4077 pr_err("Error %d on %s\n", status, __func__); set_dvbt()
4079 return status; set_dvbt()
4086 * \brief Retrieve lock status .
4088 * \param lockStat Pointer to lock status structure.
4094 int status; get_dvbt_lock_status() local
4108 status = read16(state, OFDM_SC_COMM_EXEC__A, &sc_comm_exec); get_dvbt_lock_status()
4109 if (status < 0) get_dvbt_lock_status()
4114 status = read16(state, OFDM_SC_RA_RAM_LOCK__A, &sc_ra_ram_lock); get_dvbt_lock_status()
4115 if (status < 0) get_dvbt_lock_status()
4127 if (status < 0) get_dvbt_lock_status()
4128 pr_err("Error %d on %s\n", status, __func__); get_dvbt_lock_status()
4130 return status; get_dvbt_lock_status()
4136 int status; power_up_qam() local
4139 status = ctrl_power_mode(state, &power_mode); power_up_qam()
4140 if (status < 0) power_up_qam()
4141 pr_err("Error %d on %s\n", status, __func__); power_up_qam()
4143 return status; power_up_qam()
4152 int status = 0; power_down_qam() local
4155 status = read16(state, SCU_COMM_EXEC__A, &data); power_down_qam()
4156 if (status < 0) power_down_qam()
4164 status = write16(state, QAM_COMM_EXEC__A, QAM_COMM_EXEC_STOP); power_down_qam()
4165 if (status < 0) power_down_qam()
4167 status = scu_command(state, SCU_RAM_COMMAND_STANDARD_QAM power_down_qam()
4170 if (status < 0) power_down_qam()
4174 status = set_iqm_af(state, false); power_down_qam()
4177 if (status < 0) power_down_qam()
4178 pr_err("Error %d on %s\n", status, __func__); power_down_qam()
4180 return status; power_down_qam()
4204 int status = 0; set_qam_measurement() local
4232 status = -EINVAL; set_qam_measurement()
4234 if (status < 0) set_qam_measurement()
4248 status = -EINVAL; set_qam_measurement()
4249 if (status < 0) set_qam_measurement()
4257 status = write16(state, FEC_RS_MEASUREMENT_PERIOD__A, fec_rs_period); set_qam_measurement()
4258 if (status < 0) set_qam_measurement()
4260 status = write16(state, FEC_RS_MEASUREMENT_PRESCALE__A, set_qam_measurement()
4262 if (status < 0) set_qam_measurement()
4264 status = write16(state, FEC_OC_SNC_FAIL_PERIOD__A, fec_rs_period); set_qam_measurement()
4266 if (status < 0) set_qam_measurement()
4267 pr_err("Error %d on %s\n", status, __func__); set_qam_measurement()
4268 return status; set_qam_measurement()
4273 int status = 0; set_qam16() local
4278 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD0__A, 13517); set_qam16()
4279 if (status < 0) set_qam16()
4281 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD1__A, 13517); set_qam16()
4282 if (status < 0) set_qam16()
4284 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD2__A, 13517); set_qam16()
4285 if (status < 0) set_qam16()
4287 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD3__A, 13517); set_qam16()
4288 if (status < 0) set_qam16()
4290 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD4__A, 13517); set_qam16()
4291 if (status < 0) set_qam16()
4293 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD5__A, 13517); set_qam16()
4294 if (status < 0) set_qam16()
4297 status = write16(state, QAM_DQ_QUAL_FUN0__A, 2); set_qam16()
4298 if (status < 0) set_qam16()
4300 status = write16(state, QAM_DQ_QUAL_FUN1__A, 2); set_qam16()
4301 if (status < 0) set_qam16()
4303 status = write16(state, QAM_DQ_QUAL_FUN2__A, 2); set_qam16()
4304 if (status < 0) set_qam16()
4306 status = write16(state, QAM_DQ_QUAL_FUN3__A, 2); set_qam16()
4307 if (status < 0) set_qam16()
4309 status = write16(state, QAM_DQ_QUAL_FUN4__A, 2); set_qam16()
4310 if (status < 0) set_qam16()
4312 status = write16(state, QAM_DQ_QUAL_FUN5__A, 0); set_qam16()
4313 if (status < 0) set_qam16()
4316 status = write16(state, QAM_SY_SYNC_HWM__A, 5); set_qam16()
4317 if (status < 0) set_qam16()
4319 status = write16(state, QAM_SY_SYNC_AWM__A, 4); set_qam16()
4320 if (status < 0) set_qam16()
4322 status = write16(state, QAM_SY_SYNC_LWM__A, 3); set_qam16()
4323 if (status < 0) set_qam16()
4327 status = write16(state, SCU_RAM_QAM_SL_SIG_POWER__A, set_qam16()
4329 if (status < 0) set_qam16()
4333 status = write16(state, SCU_RAM_QAM_LC_CA_FINE__A, 15); set_qam16()
4334 if (status < 0) set_qam16()
4336 status = write16(state, SCU_RAM_QAM_LC_CA_COARSE__A, 40); set_qam16()
4337 if (status < 0) set_qam16()
4339 status = write16(state, SCU_RAM_QAM_LC_EP_FINE__A, 12); set_qam16()
4340 if (status < 0) set_qam16()
4342 status = write16(state, SCU_RAM_QAM_LC_EP_MEDIUM__A, 24); set_qam16()
4343 if (status < 0) set_qam16()
4345 status = write16(state, SCU_RAM_QAM_LC_EP_COARSE__A, 24); set_qam16()
4346 if (status < 0) set_qam16()
4348 status = write16(state, SCU_RAM_QAM_LC_EI_FINE__A, 12); set_qam16()
4349 if (status < 0) set_qam16()
4351 status = write16(state, SCU_RAM_QAM_LC_EI_MEDIUM__A, 16); set_qam16()
4352 if (status < 0) set_qam16()
4354 status = write16(state, SCU_RAM_QAM_LC_EI_COARSE__A, 16); set_qam16()
4355 if (status < 0) set_qam16()
4358 status = write16(state, SCU_RAM_QAM_LC_CP_FINE__A, 5); set_qam16()
4359 if (status < 0) set_qam16()
4361 status = write16(state, SCU_RAM_QAM_LC_CP_MEDIUM__A, 20); set_qam16()
4362 if (status < 0) set_qam16()
4364 status = write16(state, SCU_RAM_QAM_LC_CP_COARSE__A, 80); set_qam16()
4365 if (status < 0) set_qam16()
4367 status = write16(state, SCU_RAM_QAM_LC_CI_FINE__A, 5); set_qam16()
4368 if (status < 0) set_qam16()
4370 status = write16(state, SCU_RAM_QAM_LC_CI_MEDIUM__A, 20); set_qam16()
4371 if (status < 0) set_qam16()
4373 status = write16(state, SCU_RAM_QAM_LC_CI_COARSE__A, 50); set_qam16()
4374 if (status < 0) set_qam16()
4376 status = write16(state, SCU_RAM_QAM_LC_CF_FINE__A, 16); set_qam16()
4377 if (status < 0) set_qam16()
4379 status = write16(state, SCU_RAM_QAM_LC_CF_MEDIUM__A, 16); set_qam16()
4380 if (status < 0) set_qam16()
4382 status = write16(state, SCU_RAM_QAM_LC_CF_COARSE__A, 32); set_qam16()
4383 if (status < 0) set_qam16()
4385 status = write16(state, SCU_RAM_QAM_LC_CF1_FINE__A, 5); set_qam16()
4386 if (status < 0) set_qam16()
4388 status = write16(state, SCU_RAM_QAM_LC_CF1_MEDIUM__A, 10); set_qam16()
4389 if (status < 0) set_qam16()
4391 status = write16(state, SCU_RAM_QAM_LC_CF1_COARSE__A, 10); set_qam16()
4392 if (status < 0) set_qam16()
4398 status = write16(state, SCU_RAM_QAM_FSM_RTH__A, 140); set_qam16()
4399 if (status < 0) set_qam16()
4401 status = write16(state, SCU_RAM_QAM_FSM_FTH__A, 50); set_qam16()
4402 if (status < 0) set_qam16()
4404 status = write16(state, SCU_RAM_QAM_FSM_CTH__A, 95); set_qam16()
4405 if (status < 0) set_qam16()
4407 status = write16(state, SCU_RAM_QAM_FSM_PTH__A, 120); set_qam16()
4408 if (status < 0) set_qam16()
4410 status = write16(state, SCU_RAM_QAM_FSM_QTH__A, 230); set_qam16()
4411 if (status < 0) set_qam16()
4413 status = write16(state, SCU_RAM_QAM_FSM_MTH__A, 105); set_qam16()
4414 if (status < 0) set_qam16()
4417 status = write16(state, SCU_RAM_QAM_FSM_RATE_LIM__A, 40); set_qam16()
4418 if (status < 0) set_qam16()
4420 status = write16(state, SCU_RAM_QAM_FSM_COUNT_LIM__A, 4); set_qam16()
4421 if (status < 0) set_qam16()
4423 status = write16(state, SCU_RAM_QAM_FSM_FREQ_LIM__A, 24); set_qam16()
4424 if (status < 0) set_qam16()
4430 status = write16(state, SCU_RAM_QAM_FSM_MEDIAN_AV_MULT__A, (u16) 16); set_qam16()
4431 if (status < 0) set_qam16()
4433 status = write16(state, SCU_RAM_QAM_FSM_RADIUS_AV_LIMIT__A, (u16) 220); set_qam16()
4434 if (status < 0) set_qam16()
4436 status = write16(state, SCU_RAM_QAM_FSM_LCAVG_OFFSET1__A, (u16) 25); set_qam16()
4437 if (status < 0) set_qam16()
4439 status = write16(state, SCU_RAM_QAM_FSM_LCAVG_OFFSET2__A, (u16) 6); set_qam16()
4440 if (status < 0) set_qam16()
4442 status = write16(state, SCU_RAM_QAM_FSM_LCAVG_OFFSET3__A, (u16) -24); set_qam16()
4443 if (status < 0) set_qam16()
4445 status = write16(state, SCU_RAM_QAM_FSM_LCAVG_OFFSET4__A, (u16) -65); set_qam16()
4446 if (status < 0) set_qam16()
4448 status = write16(state, SCU_RAM_QAM_FSM_LCAVG_OFFSET5__A, (u16) -127); set_qam16()
4449 if (status < 0) set_qam16()
4453 if (status < 0) set_qam16()
4454 pr_err("Error %d on %s\n", status, __func__); set_qam16()
4455 return status; set_qam16()
4467 int status = 0; set_qam32() local
4473 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD0__A, 6707); set_qam32()
4474 if (status < 0) set_qam32()
4476 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD1__A, 6707); set_qam32()
4477 if (status < 0) set_qam32()
4479 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD2__A, 6707); set_qam32()
4480 if (status < 0) set_qam32()
4482 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD3__A, 6707); set_qam32()
4483 if (status < 0) set_qam32()
4485 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD4__A, 6707); set_qam32()
4486 if (status < 0) set_qam32()
4488 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD5__A, 6707); set_qam32()
4489 if (status < 0) set_qam32()
4493 status = write16(state, QAM_DQ_QUAL_FUN0__A, 3); set_qam32()
4494 if (status < 0) set_qam32()
4496 status = write16(state, QAM_DQ_QUAL_FUN1__A, 3); set_qam32()
4497 if (status < 0) set_qam32()
4499 status = write16(state, QAM_DQ_QUAL_FUN2__A, 3); set_qam32()
4500 if (status < 0) set_qam32()
4502 status = write16(state, QAM_DQ_QUAL_FUN3__A, 3); set_qam32()
4503 if (status < 0) set_qam32()
4505 status = write16(state, QAM_DQ_QUAL_FUN4__A, 3); set_qam32()
4506 if (status < 0) set_qam32()
4508 status = write16(state, QAM_DQ_QUAL_FUN5__A, 0); set_qam32()
4509 if (status < 0) set_qam32()
4512 status = write16(state, QAM_SY_SYNC_HWM__A, 6); set_qam32()
4513 if (status < 0) set_qam32()
4515 status = write16(state, QAM_SY_SYNC_AWM__A, 5); set_qam32()
4516 if (status < 0) set_qam32()
4518 status = write16(state, QAM_SY_SYNC_LWM__A, 3); set_qam32()
4519 if (status < 0) set_qam32()
4524 status = write16(state, SCU_RAM_QAM_SL_SIG_POWER__A, set_qam32()
4526 if (status < 0) set_qam32()
4532 status = write16(state, SCU_RAM_QAM_LC_CA_FINE__A, 15); set_qam32()
4533 if (status < 0) set_qam32()
4535 status = write16(state, SCU_RAM_QAM_LC_CA_COARSE__A, 40); set_qam32()
4536 if (status < 0) set_qam32()
4538 status = write16(state, SCU_RAM_QAM_LC_EP_FINE__A, 12); set_qam32()
4539 if (status < 0) set_qam32()
4541 status = write16(state, SCU_RAM_QAM_LC_EP_MEDIUM__A, 24); set_qam32()
4542 if (status < 0) set_qam32()
4544 status = write16(state, SCU_RAM_QAM_LC_EP_COARSE__A, 24); set_qam32()
4545 if (status < 0) set_qam32()
4547 status = write16(state, SCU_RAM_QAM_LC_EI_FINE__A, 12); set_qam32()
4548 if (status < 0) set_qam32()
4550 status = write16(state, SCU_RAM_QAM_LC_EI_MEDIUM__A, 16); set_qam32()
4551 if (status < 0) set_qam32()
4553 status = write16(state, SCU_RAM_QAM_LC_EI_COARSE__A, 16); set_qam32()
4554 if (status < 0) set_qam32()
4557 status = write16(state, SCU_RAM_QAM_LC_CP_FINE__A, 5); set_qam32()
4558 if (status < 0) set_qam32()
4560 status = write16(state, SCU_RAM_QAM_LC_CP_MEDIUM__A, 20); set_qam32()
4561 if (status < 0) set_qam32()
4563 status = write16(state, SCU_RAM_QAM_LC_CP_COARSE__A, 80); set_qam32()
4564 if (status < 0) set_qam32()
4566 status = write16(state, SCU_RAM_QAM_LC_CI_FINE__A, 5); set_qam32()
4567 if (status < 0) set_qam32()
4569 status = write16(state, SCU_RAM_QAM_LC_CI_MEDIUM__A, 20); set_qam32()
4570 if (status < 0) set_qam32()
4572 status = write16(state, SCU_RAM_QAM_LC_CI_COARSE__A, 50); set_qam32()
4573 if (status < 0) set_qam32()
4575 status = write16(state, SCU_RAM_QAM_LC_CF_FINE__A, 16); set_qam32()
4576 if (status < 0) set_qam32()
4578 status = write16(state, SCU_RAM_QAM_LC_CF_MEDIUM__A, 16); set_qam32()
4579 if (status < 0) set_qam32()
4581 status = write16(state, SCU_RAM_QAM_LC_CF_COARSE__A, 16); set_qam32()
4582 if (status < 0) set_qam32()
4584 status = write16(state, SCU_RAM_QAM_LC_CF1_FINE__A, 5); set_qam32()
4585 if (status < 0) set_qam32()
4587 status = write16(state, SCU_RAM_QAM_LC_CF1_MEDIUM__A, 10); set_qam32()
4588 if (status < 0) set_qam32()
4590 status = write16(state, SCU_RAM_QAM_LC_CF1_COARSE__A, 0); set_qam32()
4591 if (status < 0) set_qam32()
4597 status = write16(state, SCU_RAM_QAM_FSM_RTH__A, 90); set_qam32()
4598 if (status < 0) set_qam32()
4600 status = write16(state, SCU_RAM_QAM_FSM_FTH__A, 50); set_qam32()
4601 if (status < 0) set_qam32()
4603 status = write16(state, SCU_RAM_QAM_FSM_CTH__A, 80); set_qam32()
4604 if (status < 0) set_qam32()
4606 status = write16(state, SCU_RAM_QAM_FSM_PTH__A, 100); set_qam32()
4607 if (status < 0) set_qam32()
4609 status = write16(state, SCU_RAM_QAM_FSM_QTH__A, 170); set_qam32()
4610 if (status < 0) set_qam32()
4612 status = write16(state, SCU_RAM_QAM_FSM_MTH__A, 100); set_qam32()
4613 if (status < 0) set_qam32()
4616 status = write16(state, SCU_RAM_QAM_FSM_RATE_LIM__A, 40); set_qam32()
4617 if (status < 0) set_qam32()
4619 status = write16(state, SCU_RAM_QAM_FSM_COUNT_LIM__A, 4); set_qam32()
4620 if (status < 0) set_qam32()
4622 status = write16(state, SCU_RAM_QAM_FSM_FREQ_LIM__A, 10); set_qam32()
4623 if (status < 0) set_qam32()
4629 status = write16(state, SCU_RAM_QAM_FSM_MEDIAN_AV_MULT__A, (u16) 12); set_qam32()
4630 if (status < 0) set_qam32()
4632 status = write16(state, SCU_RAM_QAM_FSM_RADIUS_AV_LIMIT__A, (u16) 140); set_qam32()
4633 if (status < 0) set_qam32()
4635 status = write16(state, SCU_RAM_QAM_FSM_LCAVG_OFFSET1__A, (u16) -8); set_qam32()
4636 if (status < 0) set_qam32()
4638 status = write16(state, SCU_RAM_QAM_FSM_LCAVG_OFFSET2__A, (u16) -16); set_qam32()
4639 if (status < 0) set_qam32()
4641 status = write16(state, SCU_RAM_QAM_FSM_LCAVG_OFFSET3__A, (u16) -26); set_qam32()
4642 if (status < 0) set_qam32()
4644 status = write16(state, SCU_RAM_QAM_FSM_LCAVG_OFFSET4__A, (u16) -56); set_qam32()
4645 if (status < 0) set_qam32()
4647 status = write16(state, SCU_RAM_QAM_FSM_LCAVG_OFFSET5__A, (u16) -86); set_qam32()
4649 if (status < 0) set_qam32()
4650 pr_err("Error %d on %s\n", status, __func__); set_qam32()
4651 return status; set_qam32()
4663 int status = 0; set_qam64() local
4668 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD0__A, 13336); set_qam64()
4669 if (status < 0) set_qam64()
4671 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD1__A, 12618); set_qam64()
4672 if (status < 0) set_qam64()
4674 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD2__A, 11988); set_qam64()
4675 if (status < 0) set_qam64()
4677 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD3__A, 13809); set_qam64()
4678 if (status < 0) set_qam64()
4680 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD4__A, 13809); set_qam64()
4681 if (status < 0) set_qam64()
4683 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD5__A, 15609); set_qam64()
4684 if (status < 0) set_qam64()
4688 status = write16(state, QAM_DQ_QUAL_FUN0__A, 4); set_qam64()
4689 if (status < 0) set_qam64()
4691 status = write16(state, QAM_DQ_QUAL_FUN1__A, 4); set_qam64()
4692 if (status < 0) set_qam64()
4694 status = write16(state, QAM_DQ_QUAL_FUN2__A, 4); set_qam64()
4695 if (status < 0) set_qam64()
4697 status = write16(state, QAM_DQ_QUAL_FUN3__A, 4); set_qam64()
4698 if (status < 0) set_qam64()
4700 status = write16(state, QAM_DQ_QUAL_FUN4__A, 3); set_qam64()
4701 if (status < 0) set_qam64()
4703 status = write16(state, QAM_DQ_QUAL_FUN5__A, 0); set_qam64()
4704 if (status < 0) set_qam64()
4707 status = write16(state, QAM_SY_SYNC_HWM__A, 5); set_qam64()
4708 if (status < 0) set_qam64()
4710 status = write16(state, QAM_SY_SYNC_AWM__A, 4); set_qam64()
4711 if (status < 0) set_qam64()
4713 status = write16(state, QAM_SY_SYNC_LWM__A, 3); set_qam64()
4714 if (status < 0) set_qam64()
4718 status = write16(state, SCU_RAM_QAM_SL_SIG_POWER__A, set_qam64()
4720 if (status < 0) set_qam64()
4726 status = write16(state, SCU_RAM_QAM_LC_CA_FINE__A, 15); set_qam64()
4727 if (status < 0) set_qam64()
4729 status = write16(state, SCU_RAM_QAM_LC_CA_COARSE__A, 40); set_qam64()
4730 if (status < 0) set_qam64()
4732 status = write16(state, SCU_RAM_QAM_LC_EP_FINE__A, 12); set_qam64()
4733 if (status < 0) set_qam64()
4735 status = write16(state, SCU_RAM_QAM_LC_EP_MEDIUM__A, 24); set_qam64()
4736 if (status < 0) set_qam64()
4738 status = write16(state, SCU_RAM_QAM_LC_EP_COARSE__A, 24); set_qam64()
4739 if (status < 0) set_qam64()
4741 status = write16(state, SCU_RAM_QAM_LC_EI_FINE__A, 12); set_qam64()
4742 if (status < 0) set_qam64()
4744 status = write16(state, SCU_RAM_QAM_LC_EI_MEDIUM__A, 16); set_qam64()
4745 if (status < 0) set_qam64()
4747 status = write16(state, SCU_RAM_QAM_LC_EI_COARSE__A, 16); set_qam64()
4748 if (status < 0) set_qam64()
4751 status = write16(state, SCU_RAM_QAM_LC_CP_FINE__A, 5); set_qam64()
4752 if (status < 0) set_qam64()
4754 status = write16(state, SCU_RAM_QAM_LC_CP_MEDIUM__A, 30); set_qam64()
4755 if (status < 0) set_qam64()
4757 status = write16(state, SCU_RAM_QAM_LC_CP_COARSE__A, 100); set_qam64()
4758 if (status < 0) set_qam64()
4760 status = write16(state, SCU_RAM_QAM_LC_CI_FINE__A, 5); set_qam64()
4761 if (status < 0) set_qam64()
4763 status = write16(state, SCU_RAM_QAM_LC_CI_MEDIUM__A, 30); set_qam64()
4764 if (status < 0) set_qam64()
4766 status = write16(state, SCU_RAM_QAM_LC_CI_COARSE__A, 50); set_qam64()
4767 if (status < 0) set_qam64()
4769 status = write16(state, SCU_RAM_QAM_LC_CF_FINE__A, 16); set_qam64()
4770 if (status < 0) set_qam64()
4772 status = write16(state, SCU_RAM_QAM_LC_CF_MEDIUM__A, 25); set_qam64()
4773 if (status < 0) set_qam64()
4775 status = write16(state, SCU_RAM_QAM_LC_CF_COARSE__A, 48); set_qam64()
4776 if (status < 0) set_qam64()
4778 status = write16(state, SCU_RAM_QAM_LC_CF1_FINE__A, 5); set_qam64()
4779 if (status < 0) set_qam64()
4781 status = write16(state, SCU_RAM_QAM_LC_CF1_MEDIUM__A, 10); set_qam64()
4782 if (status < 0) set_qam64()
4784 status = write16(state, SCU_RAM_QAM_LC_CF1_COARSE__A, 10); set_qam64()
4785 if (status < 0) set_qam64()
4791 status = write16(state, SCU_RAM_QAM_FSM_RTH__A, 100); set_qam64()
4792 if (status < 0) set_qam64()
4794 status = write16(state, SCU_RAM_QAM_FSM_FTH__A, 60); set_qam64()
4795 if (status < 0) set_qam64()
4797 status = write16(state, SCU_RAM_QAM_FSM_CTH__A, 80); set_qam64()
4798 if (status < 0) set_qam64()
4800 status = write16(state, SCU_RAM_QAM_FSM_PTH__A, 110); set_qam64()
4801 if (status < 0) set_qam64()
4803 status = write16(state, SCU_RAM_QAM_FSM_QTH__A, 200); set_qam64()
4804 if (status < 0) set_qam64()
4806 status = write16(state, SCU_RAM_QAM_FSM_MTH__A, 95); set_qam64()
4807 if (status < 0) set_qam64()
4810 status = write16(state, SCU_RAM_QAM_FSM_RATE_LIM__A, 40); set_qam64()
4811 if (status < 0) set_qam64()
4813 status = write16(state, SCU_RAM_QAM_FSM_COUNT_LIM__A, 4); set_qam64()
4814 if (status < 0) set_qam64()
4816 status = write16(state, SCU_RAM_QAM_FSM_FREQ_LIM__A, 15); set_qam64()
4817 if (status < 0) set_qam64()
4823 status = write16(state, SCU_RAM_QAM_FSM_MEDIAN_AV_MULT__A, (u16) 12); set_qam64()
4824 if (status < 0) set_qam64()
4826 status = write16(state, SCU_RAM_QAM_FSM_RADIUS_AV_LIMIT__A, (u16) 141); set_qam64()
4827 if (status < 0) set_qam64()
4829 status = write16(state, SCU_RAM_QAM_FSM_LCAVG_OFFSET1__A, (u16) 7); set_qam64()
4830 if (status < 0) set_qam64()
4832 status = write16(state, SCU_RAM_QAM_FSM_LCAVG_OFFSET2__A, (u16) 0); set_qam64()
4833 if (status < 0) set_qam64()
4835 status = write16(state, SCU_RAM_QAM_FSM_LCAVG_OFFSET3__A, (u16) -15); set_qam64()
4836 if (status < 0) set_qam64()
4838 status = write16(state, SCU_RAM_QAM_FSM_LCAVG_OFFSET4__A, (u16) -45); set_qam64()
4839 if (status < 0) set_qam64()
4841 status = write16(state, SCU_RAM_QAM_FSM_LCAVG_OFFSET5__A, (u16) -80); set_qam64()
4843 if (status < 0) set_qam64()
4844 pr_err("Error %d on %s\n", status, __func__); set_qam64()
4846 return status; set_qam64()
4858 int status = 0; set_qam128() local
4863 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD0__A, 6564); set_qam128()
4864 if (status < 0) set_qam128()
4866 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD1__A, 6598); set_qam128()
4867 if (status < 0) set_qam128()
4869 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD2__A, 6394); set_qam128()
4870 if (status < 0) set_qam128()
4872 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD3__A, 6409); set_qam128()
4873 if (status < 0) set_qam128()
4875 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD4__A, 6656); set_qam128()
4876 if (status < 0) set_qam128()
4878 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD5__A, 7238); set_qam128()
4879 if (status < 0) set_qam128()
4883 status = write16(state, QAM_DQ_QUAL_FUN0__A, 6); set_qam128()
4884 if (status < 0) set_qam128()
4886 status = write16(state, QAM_DQ_QUAL_FUN1__A, 6); set_qam128()
4887 if (status < 0) set_qam128()
4889 status = write16(state, QAM_DQ_QUAL_FUN2__A, 6); set_qam128()
4890 if (status < 0) set_qam128()
4892 status = write16(state, QAM_DQ_QUAL_FUN3__A, 6); set_qam128()
4893 if (status < 0) set_qam128()
4895 status = write16(state, QAM_DQ_QUAL_FUN4__A, 5); set_qam128()
4896 if (status < 0) set_qam128()
4898 status = write16(state, QAM_DQ_QUAL_FUN5__A, 0); set_qam128()
4899 if (status < 0) set_qam128()
4902 status = write16(state, QAM_SY_SYNC_HWM__A, 6); set_qam128()
4903 if (status < 0) set_qam128()
4905 status = write16(state, QAM_SY_SYNC_AWM__A, 5); set_qam128()
4906 if (status < 0) set_qam128()
4908 status = write16(state, QAM_SY_SYNC_LWM__A, 3); set_qam128()
4909 if (status < 0) set_qam128()
4915 status = write16(state, SCU_RAM_QAM_SL_SIG_POWER__A, set_qam128()
4917 if (status < 0) set_qam128()
4923 status = write16(state, SCU_RAM_QAM_LC_CA_FINE__A, 15); set_qam128()
4924 if (status < 0) set_qam128()
4926 status = write16(state, SCU_RAM_QAM_LC_CA_COARSE__A, 40); set_qam128()
4927 if (status < 0) set_qam128()
4929 status = write16(state, SCU_RAM_QAM_LC_EP_FINE__A, 12); set_qam128()
4930 if (status < 0) set_qam128()
4932 status = write16(state, SCU_RAM_QAM_LC_EP_MEDIUM__A, 24); set_qam128()
4933 if (status < 0) set_qam128()
4935 status = write16(state, SCU_RAM_QAM_LC_EP_COARSE__A, 24); set_qam128()
4936 if (status < 0) set_qam128()
4938 status = write16(state, SCU_RAM_QAM_LC_EI_FINE__A, 12); set_qam128()
4939 if (status < 0) set_qam128()
4941 status = write16(state, SCU_RAM_QAM_LC_EI_MEDIUM__A, 16); set_qam128()
4942 if (status < 0) set_qam128()
4944 status = write16(state, SCU_RAM_QAM_LC_EI_COARSE__A, 16); set_qam128()
4945 if (status < 0) set_qam128()
4948 status = write16(state, SCU_RAM_QAM_LC_CP_FINE__A, 5); set_qam128()
4949 if (status < 0) set_qam128()
4951 status = write16(state, SCU_RAM_QAM_LC_CP_MEDIUM__A, 40); set_qam128()
4952 if (status < 0) set_qam128()
4954 status = write16(state, SCU_RAM_QAM_LC_CP_COARSE__A, 120); set_qam128()
4955 if (status < 0) set_qam128()
4957 status = write16(state, SCU_RAM_QAM_LC_CI_FINE__A, 5); set_qam128()
4958 if (status < 0) set_qam128()
4960 status = write16(state, SCU_RAM_QAM_LC_CI_MEDIUM__A, 40); set_qam128()
4961 if (status < 0) set_qam128()
4963 status = write16(state, SCU_RAM_QAM_LC_CI_COARSE__A, 60); set_qam128()
4964 if (status < 0) set_qam128()
4966 status = write16(state, SCU_RAM_QAM_LC_CF_FINE__A, 16); set_qam128()
4967 if (status < 0) set_qam128()
4969 status = write16(state, SCU_RAM_QAM_LC_CF_MEDIUM__A, 25); set_qam128()
4970 if (status < 0) set_qam128()
4972 status = write16(state, SCU_RAM_QAM_LC_CF_COARSE__A, 64); set_qam128()
4973 if (status < 0) set_qam128()
4975 status = write16(state, SCU_RAM_QAM_LC_CF1_FINE__A, 5); set_qam128()
4976 if (status < 0) set_qam128()
4978 status = write16(state, SCU_RAM_QAM_LC_CF1_MEDIUM__A, 10); set_qam128()
4979 if (status < 0) set_qam128()
4981 status = write16(state, SCU_RAM_QAM_LC_CF1_COARSE__A, 0); set_qam128()
4982 if (status < 0) set_qam128()
4988 status = write16(state, SCU_RAM_QAM_FSM_RTH__A, 50); set_qam128()
4989 if (status < 0) set_qam128()
4991 status = write16(state, SCU_RAM_QAM_FSM_FTH__A, 60); set_qam128()
4992 if (status < 0) set_qam128()
4994 status = write16(state, SCU_RAM_QAM_FSM_CTH__A, 80); set_qam128()
4995 if (status < 0) set_qam128()
4997 status = write16(state, SCU_RAM_QAM_FSM_PTH__A, 100); set_qam128()
4998 if (status < 0) set_qam128()
5000 status = write16(state, SCU_RAM_QAM_FSM_QTH__A, 140); set_qam128()
5001 if (status < 0) set_qam128()
5003 status = write16(state, SCU_RAM_QAM_FSM_MTH__A, 100); set_qam128()
5004 if (status < 0) set_qam128()
5007 status = write16(state, SCU_RAM_QAM_FSM_RATE_LIM__A, 40); set_qam128()
5008 if (status < 0) set_qam128()
5010 status = write16(state, SCU_RAM_QAM_FSM_COUNT_LIM__A, 5); set_qam128()
5011 if (status < 0) set_qam128()
5014 status = write16(state, SCU_RAM_QAM_FSM_FREQ_LIM__A, 12); set_qam128()
5015 if (status < 0) set_qam128()
5020 status = write16(state, SCU_RAM_QAM_FSM_MEDIAN_AV_MULT__A, (u16) 8); set_qam128()
5021 if (status < 0) set_qam128()
5023 status = write16(state, SCU_RAM_QAM_FSM_RADIUS_AV_LIMIT__A, (u16) 65); set_qam128()
5024 if (status < 0) set_qam128()
5026 status = write16(state, SCU_RAM_QAM_FSM_LCAVG_OFFSET1__A, (u16) 5); set_qam128()
5027 if (status < 0) set_qam128()
5029 status = write16(state, SCU_RAM_QAM_FSM_LCAVG_OFFSET2__A, (u16) 3); set_qam128()
5030 if (status < 0) set_qam128()
5032 status = write16(state, SCU_RAM_QAM_FSM_LCAVG_OFFSET3__A, (u16) -1); set_qam128()
5033 if (status < 0) set_qam128()
5035 status = write16(state, SCU_RAM_QAM_FSM_LCAVG_OFFSET4__A, (u16) -12); set_qam128()
5036 if (status < 0) set_qam128()
5038 status = write16(state, SCU_RAM_QAM_FSM_LCAVG_OFFSET5__A, (u16) -23); set_qam128()
5040 if (status < 0) set_qam128()
5041 pr_err("Error %d on %s\n", status, __func__); set_qam128()
5043 return status; set_qam128()
5055 int status = 0; set_qam256() local
5060 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD0__A, 11502); set_qam256()
5061 if (status < 0) set_qam256()
5063 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD1__A, 12084); set_qam256()
5064 if (status < 0) set_qam256()
5066 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD2__A, 12543); set_qam256()
5067 if (status < 0) set_qam256()
5069 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD3__A, 12931); set_qam256()
5070 if (status < 0) set_qam256()
5072 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD4__A, 13629); set_qam256()
5073 if (status < 0) set_qam256()
5075 status = write16(state, SCU_RAM_QAM_EQ_CMA_RAD5__A, 15385); set_qam256()
5076 if (status < 0) set_qam256()
5080 status = write16(state, QAM_DQ_QUAL_FUN0__A, 8); set_qam256()
5081 if (status < 0) set_qam256()
5083 status = write16(state, QAM_DQ_QUAL_FUN1__A, 8); set_qam256()
5084 if (status < 0) set_qam256()
5086 status = write16(state, QAM_DQ_QUAL_FUN2__A, 8); set_qam256()
5087 if (status < 0) set_qam256()
5089 status = write16(state, QAM_DQ_QUAL_FUN3__A, 8); set_qam256()
5090 if (status < 0) set_qam256()
5092 status = write16(state, QAM_DQ_QUAL_FUN4__A, 6); set_qam256()
5093 if (status < 0) set_qam256()
5095 status = write16(state, QAM_DQ_QUAL_FUN5__A, 0); set_qam256()
5096 if (status < 0) set_qam256()
5099 status = write16(state, QAM_SY_SYNC_HWM__A, 5); set_qam256()
5100 if (status < 0) set_qam256()
5102 status = write16(state, QAM_SY_SYNC_AWM__A, 4); set_qam256()
5103 if (status < 0) set_qam256()
5105 status = write16(state, QAM_SY_SYNC_LWM__A, 3); set_qam256()
5106 if (status < 0) set_qam256()
5111 status = write16(state, SCU_RAM_QAM_SL_SIG_POWER__A, set_qam256()
5113 if (status < 0) set_qam256()
5119 status = write16(state, SCU_RAM_QAM_LC_CA_FINE__A, 15); set_qam256()
5120 if (status < 0) set_qam256()
5122 status = write16(state, SCU_RAM_QAM_LC_CA_COARSE__A, 40); set_qam256()
5123 if (status < 0) set_qam256()
5125 status = write16(state, SCU_RAM_QAM_LC_EP_FINE__A, 12); set_qam256()
5126 if (status < 0) set_qam256()
5128 status = write16(state, SCU_RAM_QAM_LC_EP_MEDIUM__A, 24); set_qam256()
5129 if (status < 0) set_qam256()
5131 status = write16(state, SCU_RAM_QAM_LC_EP_COARSE__A, 24); set_qam256()
5132 if (status < 0) set_qam256()
5134 status = write16(state, SCU_RAM_QAM_LC_EI_FINE__A, 12); set_qam256()
5135 if (status < 0) set_qam256()
5137 status = write16(state, SCU_RAM_QAM_LC_EI_MEDIUM__A, 16); set_qam256()
5138 if (status < 0) set_qam256()
5140 status = write16(state, SCU_RAM_QAM_LC_EI_COARSE__A, 16); set_qam256()
5141 if (status < 0) set_qam256()
5144 status = write16(state, SCU_RAM_QAM_LC_CP_FINE__A, 5); set_qam256()
5145 if (status < 0) set_qam256()
5147 status = write16(state, SCU_RAM_QAM_LC_CP_MEDIUM__A, 50); set_qam256()
5148 if (status < 0) set_qam256()
5150 status = write16(state, SCU_RAM_QAM_LC_CP_COARSE__A, 250); set_qam256()
5151 if (status < 0) set_qam256()
5153 status = write16(state, SCU_RAM_QAM_LC_CI_FINE__A, 5); set_qam256()
5154 if (status < 0) set_qam256()
5156 status = write16(state, SCU_RAM_QAM_LC_CI_MEDIUM__A, 50); set_qam256()
5157 if (status < 0) set_qam256()
5159 status = write16(state, SCU_RAM_QAM_LC_CI_COARSE__A, 125); set_qam256()
5160 if (status < 0) set_qam256()
5162 status = write16(state, SCU_RAM_QAM_LC_CF_FINE__A, 16); set_qam256()
5163 if (status < 0) set_qam256()
5165 status = write16(state, SCU_RAM_QAM_LC_CF_MEDIUM__A, 25); set_qam256()
5166 if (status < 0) set_qam256()
5168 status = write16(state, SCU_RAM_QAM_LC_CF_COARSE__A, 48); set_qam256()
5169 if (status < 0) set_qam256()
5171 status = write16(state, SCU_RAM_QAM_LC_CF1_FINE__A, 5); set_qam256()
5172 if (status < 0) set_qam256()
5174 status = write16(state, SCU_RAM_QAM_LC_CF1_MEDIUM__A, 10); set_qam256()
5175 if (status < 0) set_qam256()
5177 status = write16(state, SCU_RAM_QAM_LC_CF1_COARSE__A, 10); set_qam256()
5178 if (status < 0) set_qam256()
5184 status = write16(state, SCU_RAM_QAM_FSM_RTH__A, 50); set_qam256()
5185 if (status < 0) set_qam256()
5187 status = write16(state, SCU_RAM_QAM_FSM_FTH__A, 60); set_qam256()
5188 if (status < 0) set_qam256()
5190 status = write16(state, SCU_RAM_QAM_FSM_CTH__A, 80); set_qam256()
5191 if (status < 0) set_qam256()
5193 status = write16(state, SCU_RAM_QAM_FSM_PTH__A, 100); set_qam256()
5194 if (status < 0) set_qam256()
5196 status = write16(state, SCU_RAM_QAM_FSM_QTH__A, 150); set_qam256()
5197 if (status < 0) set_qam256()
5199 status = write16(state, SCU_RAM_QAM_FSM_MTH__A, 110); set_qam256()
5200 if (status < 0) set_qam256()
5203 status = write16(state, SCU_RAM_QAM_FSM_RATE_LIM__A, 40); set_qam256()
5204 if (status < 0) set_qam256()
5206 status = write16(state, SCU_RAM_QAM_FSM_COUNT_LIM__A, 4); set_qam256()
5207 if (status < 0) set_qam256()
5209 status = write16(state, SCU_RAM_QAM_FSM_FREQ_LIM__A, 12); set_qam256()
5210 if (status < 0) set_qam256()
5216 status = write16(state, SCU_RAM_QAM_FSM_MEDIAN_AV_MULT__A, (u16) 8); set_qam256()
5217 if (status < 0) set_qam256()
5219 status = write16(state, SCU_RAM_QAM_FSM_RADIUS_AV_LIMIT__A, (u16) 74); set_qam256()
5220 if (status < 0) set_qam256()
5222 status = write16(state, SCU_RAM_QAM_FSM_LCAVG_OFFSET1__A, (u16) 18); set_qam256()
5223 if (status < 0) set_qam256()
5225 status = write16(state, SCU_RAM_QAM_FSM_LCAVG_OFFSET2__A, (u16) 13); set_qam256()
5226 if (status < 0) set_qam256()
5228 status = write16(state, SCU_RAM_QAM_FSM_LCAVG_OFFSET3__A, (u16) 7); set_qam256()
5229 if (status < 0) set_qam256()
5231 status = write16(state, SCU_RAM_QAM_FSM_LCAVG_OFFSET4__A, (u16) 0); set_qam256()
5232 if (status < 0) set_qam256()
5234 status = write16(state, SCU_RAM_QAM_FSM_LCAVG_OFFSET5__A, (u16) -8); set_qam256()
5236 if (status < 0) set_qam256()
5237 pr_err("Error %d on %s\n", status, __func__); set_qam256()
5238 return status; set_qam256()
5251 int status; qam_reset_qam() local
5256 status = write16(state, QAM_COMM_EXEC__A, QAM_COMM_EXEC_STOP); qam_reset_qam()
5257 if (status < 0) qam_reset_qam()
5260 status = scu_command(state, SCU_RAM_COMMAND_STANDARD_QAM qam_reset_qam()
5264 if (status < 0) qam_reset_qam()
5265 pr_err("Error %d on %s\n", status, __func__); qam_reset_qam()
5266 return status; qam_reset_qam()
5284 int status; qam_set_symbolrate() local
5297 status = write16(state, IQM_FD_RATESEL__A, ratesel); qam_set_symbolrate()
5298 if (status < 0) qam_set_symbolrate()
5307 status = -EINVAL; qam_set_symbolrate()
5313 status = write32(state, IQM_RC_RATE_OFS_LO__A, iqm_rc_rate); qam_set_symbolrate()
5314 if (status < 0) qam_set_symbolrate()
5323 status = -EINVAL; qam_set_symbolrate()
5331 status = write16(state, QAM_LC_SYMBOL_FREQ__A, (u16) lc_symb_rate); qam_set_symbolrate()
5334 if (status < 0) qam_set_symbolrate()
5335 pr_err("Error %d on %s\n", status, __func__); qam_set_symbolrate()
5336 return status; qam_set_symbolrate()
5342 * \brief Get QAM lock status.
5350 int status; get_qam_lock_status() local
5355 status = scu_command(state, get_qam_lock_status()
5359 if (status < 0) get_qam_lock_status()
5360 pr_err("Error %d on %s\n", status, __func__); get_qam_lock_status()
5379 return status; get_qam_lock_status()
5392 int status; qam_demodulator_command() local
5407 status = scu_command(state, qam_demodulator_command()
5411 if (status < 0) qam_demodulator_command()
5414 status = scu_command(state, qam_demodulator_command()
5430 status = scu_command(state, qam_demodulator_command()
5438 status = -EINVAL; qam_demodulator_command()
5442 if (status < 0) qam_demodulator_command()
5443 pr_warn("Warning %d on %s\n", status, __func__); qam_demodulator_command()
5444 return status; qam_demodulator_command()
5450 int status; set_qam() local
5461 status = write16(state, FEC_DI_COMM_EXEC__A, FEC_DI_COMM_EXEC_STOP); set_qam()
5462 if (status < 0) set_qam()
5464 status = write16(state, FEC_RS_COMM_EXEC__A, FEC_RS_COMM_EXEC_STOP); set_qam()
5465 if (status < 0) set_qam()
5467 status = qam_reset_qam(state); set_qam()
5468 if (status < 0) set_qam()
5476 status = qam_set_symbolrate(state); set_qam()
5477 if (status < 0) set_qam()
5499 status = -EINVAL; set_qam()
5502 if (status < 0) set_qam()
5510 status = qam_demodulator_command(state, qam_demod_param_count); set_qam()
5517 || (!state->qam_demod_parameter_count && status < 0)) { set_qam()
5519 status = qam_demodulator_command(state, qam_demod_param_count); set_qam()
5522 if (status < 0) { set_qam()
5546 status = set_frequency(channel, tuner_freq_offset)); set_qam()
5547 if (status < 0) set_qam()
5550 status = set_frequency_shifter(state, intermediate_freqk_hz, set_qam()
5552 if (status < 0) set_qam()
5556 status = set_qam_measurement(state, state->m_constellation, set_qam()
5558 if (status < 0) set_qam()
5562 status = write16(state, IQM_CF_SCALE_SH__A, IQM_CF_SCALE_SH__PRE); set_qam()
5563 if (status < 0) set_qam()
5565 status = write16(state, QAM_SY_TIMEOUT__A, QAM_SY_TIMEOUT__PRE); set_qam()
5566 if (status < 0) set_qam()
5570 status = write16(state, QAM_LC_RATE_LIMIT__A, 3); set_qam()
5571 if (status < 0) set_qam()
5573 status = write16(state, QAM_LC_LPF_FACTORP__A, 4); set_qam()
5574 if (status < 0) set_qam()
5576 status = write16(state, QAM_LC_LPF_FACTORI__A, 4); set_qam()
5577 if (status < 0) set_qam()
5579 status = write16(state, QAM_LC_MODE__A, 7); set_qam()
5580 if (status < 0) set_qam()
5583 status = write16(state, QAM_LC_QUAL_TAB0__A, 1); set_qam()
5584 if (status < 0) set_qam()
5586 status = write16(state, QAM_LC_QUAL_TAB1__A, 1); set_qam()
5587 if (status < 0) set_qam()
5589 status = write16(state, QAM_LC_QUAL_TAB2__A, 1); set_qam()
5590 if (status < 0) set_qam()
5592 status = write16(state, QAM_LC_QUAL_TAB3__A, 1); set_qam()
5593 if (status < 0) set_qam()
5595 status = write16(state, QAM_LC_QUAL_TAB4__A, 2); set_qam()
5596 if (status < 0) set_qam()
5598 status = write16(state, QAM_LC_QUAL_TAB5__A, 2); set_qam()
5599 if (status < 0) set_qam()
5601 status = write16(state, QAM_LC_QUAL_TAB6__A, 2); set_qam()
5602 if (status < 0) set_qam()
5604 status = write16(state, QAM_LC_QUAL_TAB8__A, 2); set_qam()
5605 if (status < 0) set_qam()
5607 status = write16(state, QAM_LC_QUAL_TAB9__A, 2); set_qam()
5608 if (status < 0) set_qam()
5610 status = write16(state, QAM_LC_QUAL_TAB10__A, 2); set_qam()
5611 if (status < 0) set_qam()
5613 status = write16(state, QAM_LC_QUAL_TAB12__A, 2); set_qam()
5614 if (status < 0) set_qam()
5616 status = write16(state, QAM_LC_QUAL_TAB15__A, 3); set_qam()
5617 if (status < 0) set_qam()
5619 status = write16(state, QAM_LC_QUAL_TAB16__A, 3); set_qam()
5620 if (status < 0) set_qam()
5622 status = write16(state, QAM_LC_QUAL_TAB20__A, 4); set_qam()
5623 if (status < 0) set_qam()
5625 status = write16(state, QAM_LC_QUAL_TAB25__A, 4); set_qam()
5626 if (status < 0) set_qam()
5630 status = write16(state, QAM_SY_SP_INV__A, set_qam()
5632 if (status < 0) set_qam()
5636 status = write16(state, SCU_COMM_EXEC__A, SCU_COMM_EXEC_HOLD); set_qam()
5637 if (status < 0) set_qam()
5643 status = set_qam16(state); set_qam()
5646 status = set_qam32(state); set_qam()
5650 status = set_qam64(state); set_qam()
5653 status = set_qam128(state); set_qam()
5656 status = set_qam256(state); set_qam()
5659 status = -EINVAL; set_qam()
5662 if (status < 0) set_qam()
5666 status = write16(state, SCU_COMM_EXEC__A, SCU_COMM_EXEC_ACTIVE); set_qam()
5667 if (status < 0) set_qam()
5673 status = mpegts_dto_setup(state, state->m_operation_mode); set_qam()
5674 if (status < 0) set_qam()
5678 status = mpegts_start(state); set_qam()
5679 if (status < 0) set_qam()
5681 status = write16(state, FEC_COMM_EXEC__A, FEC_COMM_EXEC_ACTIVE); set_qam()
5682 if (status < 0) set_qam()
5684 status = write16(state, QAM_COMM_EXEC__A, QAM_COMM_EXEC_ACTIVE); set_qam()
5685 if (status < 0) set_qam()
5687 status = write16(state, IQM_COMM_EXEC__A, IQM_COMM_EXEC_B_ACTIVE); set_qam()
5688 if (status < 0) set_qam()
5692 status = scu_command(state, SCU_RAM_COMMAND_STANDARD_QAM set_qam()
5695 if (status < 0) set_qam()
5702 if (status < 0) set_qam()
5703 pr_err("Error %d on %s\n", status, __func__); set_qam()
5704 return status; set_qam()
5710 int status; set_qam_standard() local
5723 status = power_up_qam(state); set_qam_standard()
5724 if (status < 0) set_qam_standard()
5727 status = qam_reset_qam(state); set_qam_standard()
5728 if (status < 0) set_qam_standard()
5733 status = write16(state, IQM_COMM_EXEC__A, IQM_COMM_EXEC_B_STOP); set_qam_standard()
5734 if (status < 0) set_qam_standard()
5736 status = write16(state, IQM_AF_AMUX__A, IQM_AF_AMUX_SIGNAL2ADC); set_qam_standard()
5737 if (status < 0) set_qam_standard()
5744 status = bl_chain_cmd(state, DRXK_BL_ROM_OFFSET_TAPS_ITU_A, set_qam_standard()
5749 status = bl_direct_cmd(state, IQM_CF_TAP_RE0__A, set_qam_standard()
5753 if (status < 0) set_qam_standard()
5755 status = bl_direct_cmd(state, set_qam_standard()
5762 status = -EINVAL; set_qam_standard()
5764 if (status < 0) set_qam_standard()
5767 status = write16(state, IQM_CF_OUT_ENA__A, 1 << IQM_CF_OUT_ENA_QAM__B); set_qam_standard()
5768 if (status < 0) set_qam_standard()
5770 status = write16(state, IQM_CF_SYMMETRIC__A, 0); set_qam_standard()
5771 if (status < 0) set_qam_standard()
5773 status = write16(state, IQM_CF_MIDTAP__A, set_qam_standard()
5775 if (status < 0) set_qam_standard()
5778 status = write16(state, IQM_RC_STRETCH__A, 21); set_qam_standard()
5779 if (status < 0) set_qam_standard()
5781 status = write16(state, IQM_AF_CLP_LEN__A, 0); set_qam_standard()
5782 if (status < 0) set_qam_standard()
5784 status = write16(state, IQM_AF_CLP_TH__A, 448); set_qam_standard()
5785 if (status < 0) set_qam_standard()
5787 status = write16(state, IQM_AF_SNS_LEN__A, 0); set_qam_standard()
5788 if (status < 0) set_qam_standard()
5790 status = write16(state, IQM_CF_POW_MEAS_LEN__A, 0); set_qam_standard()
5791 if (status < 0) set_qam_standard()
5794 status = write16(state, IQM_FS_ADJ_SEL__A, 1); set_qam_standard()
5795 if (status < 0) set_qam_standard()
5797 status = write16(state, IQM_RC_ADJ_SEL__A, 1); set_qam_standard()
5798 if (status < 0) set_qam_standard()
5800 status = write16(state, IQM_CF_ADJ_SEL__A, 1); set_qam_standard()
5801 if (status < 0) set_qam_standard()
5803 status = write16(state, IQM_AF_UPD_SEL__A, 0); set_qam_standard()
5804 if (status < 0) set_qam_standard()
5808 status = write16(state, IQM_CF_CLP_VAL__A, 500); set_qam_standard()
5809 if (status < 0) set_qam_standard()
5811 status = write16(state, IQM_CF_DATATH__A, 1000); set_qam_standard()
5812 if (status < 0) set_qam_standard()
5814 status = write16(state, IQM_CF_BYPASSDET__A, 1); set_qam_standard()
5815 if (status < 0) set_qam_standard()
5817 status = write16(state, IQM_CF_DET_LCT__A, 0); set_qam_standard()
5818 if (status < 0) set_qam_standard()
5820 status = write16(state, IQM_CF_WND_LEN__A, 1); set_qam_standard()
5821 if (status < 0) set_qam_standard()
5823 status = write16(state, IQM_CF_PKDTH__A, 1); set_qam_standard()
5824 if (status < 0) set_qam_standard()
5826 status = write16(state, IQM_AF_INC_BYPASS__A, 1); set_qam_standard()
5827 if (status < 0) set_qam_standard()
5831 status = set_iqm_af(state, true); set_qam_standard()
5832 if (status < 0) set_qam_standard()
5834 status = write16(state, IQM_AF_START_LOCK__A, 0x01); set_qam_standard()
5835 if (status < 0) set_qam_standard()
5839 status = adc_synchronization(state); set_qam_standard()
5840 if (status < 0) set_qam_standard()
5844 status = write16(state, SCU_RAM_QAM_FSM_STEP_PERIOD__A, 2000); set_qam_standard()
5845 if (status < 0) set_qam_standard()
5849 status = write16(state, SCU_COMM_EXEC__A, SCU_COMM_EXEC_HOLD); set_qam_standard()
5850 if (status < 0) set_qam_standard()
5856 status = init_agc(state, true); set_qam_standard()
5857 if (status < 0) set_qam_standard()
5859 status = set_pre_saw(state, &(state->m_qam_pre_saw_cfg)); set_qam_standard()
5860 if (status < 0) set_qam_standard()
5864 status = set_agc_rf(state, &(state->m_qam_rf_agc_cfg), true); set_qam_standard()
5865 if (status < 0) set_qam_standard()
5867 status = set_agc_if(state, &(state->m_qam_if_agc_cfg), true); set_qam_standard()
5868 if (status < 0) set_qam_standard()
5872 status = write16(state, SCU_COMM_EXEC__A, SCU_COMM_EXEC_ACTIVE); set_qam_standard()
5874 if (status < 0) set_qam_standard()
5875 pr_err("Error %d on %s\n", status, __func__); set_qam_standard()
5876 return status; set_qam_standard()
5881 int status; write_gpio() local
5886 status = write16(state, SCU_RAM_GPIO__A, write_gpio()
5888 if (status < 0) write_gpio()
5892 status = write16(state, SIO_TOP_COMM_KEY__A, SIO_TOP_COMM_KEY_KEY); write_gpio()
5893 if (status < 0) write_gpio()
5899 status = write16(state, SIO_PDR_SMA_TX_CFG__A, write_gpio()
5901 if (status < 0) write_gpio()
5905 status = read16(state, SIO_PDR_UIO_OUT_LO__A, &value); write_gpio()
5906 if (status < 0) write_gpio()
5913 status = write16(state, SIO_PDR_UIO_OUT_LO__A, value); write_gpio()
5914 if (status < 0) write_gpio()
5919 status = write16(state, SIO_PDR_SMA_RX_CFG__A, write_gpio()
5921 if (status < 0) write_gpio()
5925 status = read16(state, SIO_PDR_UIO_OUT_LO__A, &value); write_gpio()
5926 if (status < 0) write_gpio()
5933 status = write16(state, SIO_PDR_UIO_OUT_LO__A, value); write_gpio()
5934 if (status < 0) write_gpio()
5939 status = write16(state, SIO_PDR_GPIO_CFG__A, write_gpio()
5941 if (status < 0) write_gpio()
5945 status = read16(state, SIO_PDR_UIO_OUT_LO__A, &value); write_gpio()
5946 if (status < 0) write_gpio()
5953 status = write16(state, SIO_PDR_UIO_OUT_LO__A, value); write_gpio()
5954 if (status < 0) write_gpio()
5959 status = write16(state, SIO_TOP_COMM_KEY__A, 0x0000); write_gpio()
5961 if (status < 0) write_gpio()
5962 pr_err("Error %d on %s\n", status, __func__); write_gpio()
5963 return status; write_gpio()
5968 int status = 0; switch_antenna_to_qam() local
5984 status = write_gpio(state); switch_antenna_to_qam()
5986 if (status < 0) switch_antenna_to_qam()
5987 pr_err("Error %d on %s\n", status, __func__); switch_antenna_to_qam()
5988 return status; switch_antenna_to_qam()
5993 int status = 0; switch_antenna_to_dvbt() local
6009 status = write_gpio(state); switch_antenna_to_dvbt()
6011 if (status < 0) switch_antenna_to_dvbt()
6012 pr_err("Error %d on %s\n", status, __func__); switch_antenna_to_dvbt()
6013 return status; switch_antenna_to_dvbt()
6025 int status; power_down_device() local
6030 status = ConfigureI2CBridge(state, true); power_down_device()
6031 if (status < 0) power_down_device()
6035 status = dvbt_enable_ofdm_token_ring(state, false); power_down_device()
6036 if (status < 0) power_down_device()
6039 status = write16(state, SIO_CC_PWD_MODE__A, power_down_device()
6041 if (status < 0) power_down_device()
6043 status = write16(state, SIO_CC_UPDATE__A, SIO_CC_UPDATE_KEY); power_down_device()
6044 if (status < 0) power_down_device()
6047 status = hi_cfg_command(state); power_down_device()
6049 if (status < 0) power_down_device()
6050 pr_err("Error %d on %s\n", status, __func__); power_down_device()
6052 return status; power_down_device()
6057 int status = 0, n = 0; init_drxk() local
6064 status = power_up_device(state); init_drxk()
6065 if (status < 0) init_drxk()
6067 status = drxx_open(state); init_drxk()
6068 if (status < 0) init_drxk()
6071 status = write16(state, SIO_CC_SOFT_RST__A, init_drxk()
6075 if (status < 0) init_drxk()
6077 status = write16(state, SIO_CC_UPDATE__A, SIO_CC_UPDATE_KEY); init_drxk()
6078 if (status < 0) init_drxk()
6086 status = get_device_capabilities(state); init_drxk()
6087 if (status < 0) init_drxk()
6107 status = init_hi(state); init_drxk()
6108 if (status < 0) init_drxk()
6116 status = write16(state, SCU_RAM_GPIO__A, init_drxk()
6118 if (status < 0) init_drxk()
6123 status = mpegts_disable(state); init_drxk()
6124 if (status < 0) init_drxk()
6128 status = write16(state, AUD_COMM_EXEC__A, AUD_COMM_EXEC_STOP); init_drxk()
6129 if (status < 0) init_drxk()
6131 status = write16(state, SCU_COMM_EXEC__A, SCU_COMM_EXEC_STOP); init_drxk()
6132 if (status < 0) init_drxk()
6136 status = write16(state, SIO_OFDM_SH_OFDM_RING_ENABLE__A, init_drxk()
6138 if (status < 0) init_drxk()
6142 status = write16(state, SIO_BL_COMM_EXEC__A, init_drxk()
6144 if (status < 0) init_drxk()
6146 status = bl_chain_cmd(state, 0, 6, 100); init_drxk()
6147 if (status < 0) init_drxk()
6151 status = download_microcode(state, state->fw->data, init_drxk()
6153 if (status < 0) init_drxk()
6158 status = write16(state, SIO_OFDM_SH_OFDM_RING_ENABLE__A, init_drxk()
6160 if (status < 0) init_drxk()
6164 status = write16(state, SCU_COMM_EXEC__A, SCU_COMM_EXEC_ACTIVE); init_drxk()
6165 if (status < 0) init_drxk()
6167 status = drxx_open(state); init_drxk()
6168 if (status < 0) init_drxk()
6174 status = ctrl_power_mode(state, &power_mode); init_drxk()
6175 if (status < 0) init_drxk()
6189 status = write16(state, SCU_RAM_DRIVER_VER_HI__A, init_drxk()
6191 if (status < 0) init_drxk()
6198 status = write16(state, SCU_RAM_DRIVER_VER_LO__A, init_drxk()
6200 if (status < 0) init_drxk()
6218 status = write16(state, SCU_RAM_DRIVER_DEBUG__A, 0); init_drxk()
6219 if (status < 0) init_drxk()
6224 status = write16(state, FEC_COMM_EXEC__A, FEC_COMM_EXEC_STOP); init_drxk()
6225 if (status < 0) init_drxk()
6228 status = mpegts_dto_init(state); init_drxk()
6229 if (status < 0) init_drxk()
6231 status = mpegts_stop(state); init_drxk()
6232 if (status < 0) init_drxk()
6234 status = mpegts_configure_polarity(state); init_drxk()
6235 if (status < 0) init_drxk()
6237 status = mpegts_configure_pins(state, state->m_enable_mpeg_output); init_drxk()
6238 if (status < 0) init_drxk()
6241 status = write_gpio(state); init_drxk()
6242 if (status < 0) init_drxk()
6248 status = power_down_device(state); init_drxk()
6249 if (status < 0) init_drxk()
6271 if (status < 0) { init_drxk()
6274 pr_err("Error %d on %s\n", status, __func__); init_drxk()
6277 return status; init_drxk()
6420 int status; get_strength() local
6446 status = read16(state, SCU_RAM_AGC_RF_IACCU_HI__A, &scu_lvl); get_strength()
6447 if (status < 0) get_strength()
6448 return status; get_strength()
6452 if (status < 0) get_strength()
6453 return status; get_strength()
6479 status = read16(state, SCU_RAM_AGC_IF_IACCU_HI__A, get_strength()
6481 if (status < 0) get_strength()
6482 return status; get_strength()
6484 status = read16(state, SCU_RAM_AGC_INGAIN_TGT_MIN__A, get_strength()
6486 if (status < 0) get_strength()
6487 return status; get_strength()
6523 int status; drxk_get_stats() local
6540 /* get status */ drxk_get_stats()
6586 status = read16(state, OFDM_EC_VD_ERR_BIT_CNT__A, &reg16); drxk_get_stats()
6587 if (status < 0) drxk_get_stats()
6591 status = read16(state, OFDM_EC_VD_IN_BIT_CNT__A , &reg16); drxk_get_stats()
6592 if (status < 0) drxk_get_stats()
6597 status = read16(state, FEC_RS_NR_BIT_ERRORS__A, &reg16); drxk_get_stats()
6598 if (status < 0) drxk_get_stats()
6602 status = read16(state, FEC_RS_MEASUREMENT_PRESCALE__A, &reg16); drxk_get_stats()
6603 if (status < 0) drxk_get_stats()
6607 status = read16(state, FEC_RS_MEASUREMENT_PERIOD__A, &reg16); drxk_get_stats()
6608 if (status < 0) drxk_get_stats()
6612 status = read16(state, SCU_RAM_FEC_ACCUM_PKT_FAILURES__A, &reg16); drxk_get_stats()
6613 if (status < 0) drxk_get_stats()
6639 return status; drxk_get_stats()
6643 static int drxk_read_status(struct dvb_frontend *fe, enum fe_status *status) drxk_read_status() argument
6654 *status = state->fe_status; drxk_read_status()
6779 int status; drxk_attach() local
6836 status = request_firmware(&fw, state->microcode_name, drxk_attach()
6838 if (status < 0) drxk_attach()
H A Ddrxd_hard.c333 int status = 0; WriteTable() local
338 while (!status) { WriteTable()
351 status = WriteBlock(state, Address, Length * 2, pTable, 0); WriteTable()
354 return status; WriteTable()
373 int status; InitCE() local
377 status = WriteTable(state, state->m_InitCE); InitCE()
378 if (status < 0) InitCE()
386 status = Write16(state, CE_REG_TAPSET__A, 0x0000, 0); InitCE()
387 if (status < 0) InitCE()
390 status = Write16(state, CE_REG_TAPSET__A, 0x0001, 0); InitCE()
391 if (status < 0) InitCE()
394 status = Write16(state, CE_REG_TAPSET__A, 0x0002, 0); InitCE()
395 if (status < 0) InitCE()
398 status = Write16(state, CE_REG_TAPSET__A, 0x0006, 0); InitCE()
399 if (status < 0) InitCE()
404 status = Write16(state, B_CE_REG_COMM_EXEC__A, 0x0001, 0); InitCE()
405 if (status < 0) InitCE()
408 return status; InitCE()
413 int status = 0; StopOC() local
421 status = Read16(state, EC_OC_REG_SNC_ISC_LVL__A, &ocSyncLvl, 0); StopOC()
422 if (status < 0) StopOC()
429 status = Read16(state, EC_OC_REG_RCN_MAP_LOP__A, &dtoIncLop, 0); StopOC()
430 if (status < 0) StopOC()
432 status = Read16(state, EC_OC_REG_RCN_MAP_HIP__A, &dtoIncHip, 0); StopOC()
433 if (status < 0) StopOC()
435 status = Write16(state, EC_OC_REG_DTO_INC_LOP__A, dtoIncLop, 0); StopOC()
436 if (status < 0) StopOC()
438 status = Write16(state, EC_OC_REG_DTO_INC_HIP__A, dtoIncHip, 0); StopOC()
439 if (status < 0) StopOC()
443 status = Write16(state, EC_OC_REG_OC_MODE_LOP__A, ocModeLop, 0); StopOC()
444 if (status < 0) StopOC()
446 status = Write16(state, EC_OC_REG_COMM_EXEC__A, EC_OC_REG_COMM_EXEC_CTL_HOLD, 0); StopOC()
447 if (status < 0) StopOC()
452 status = Write16(state, EC_OC_REG_OCR_MPG_UOS__A, EC_OC_REG_OCR_MPG_UOS__M, 0); StopOC()
453 if (status < 0) StopOC()
458 status = Write16(state, EC_OC_REG_SNC_ISC_LVL__A, ocSyncLvl, 0); StopOC()
459 if (status < 0) StopOC()
464 status = Write16(state, EC_OC_REG_OC_MODE_LOP__A, ocModeLop, 0); StopOC()
465 if (status < 0) StopOC()
467 status = Write16(state, EC_OC_REG_COMM_INT_STA__A, 0x0, 0); StopOC()
468 if (status < 0) StopOC()
470 status = Write16(state, EC_OC_REG_COMM_EXEC__A, EC_OC_REG_COMM_EXEC_CTL_ACTIVE, 0); StopOC()
471 if (status < 0) StopOC()
475 return status; StopOC()
480 int status = 0; StartOC() local
484 status = Write16(state, EC_OC_REG_COMM_EXEC__A, EC_OC_REG_COMM_EXEC_CTL_HOLD, 0); StartOC()
485 if (status < 0) StartOC()
489 status = Write16(state, EC_OC_REG_SNC_ISC_LVL__A, state->m_EcOcRegSncSncLvl, 0); StartOC()
490 if (status < 0) StartOC()
492 status = Write16(state, EC_OC_REG_OC_MODE_LOP__A, state->m_EcOcRegOcModeLop, 0); StartOC()
493 if (status < 0) StartOC()
497 status = Write16(state, EC_OC_REG_OCR_MPG_UOS__A, EC_OC_REG_OCR_MPG_UOS_INIT, 0); StartOC()
498 if (status < 0) StartOC()
502 status = Write16(state, EC_OC_REG_COMM_EXEC__A, EC_OC_REG_COMM_EXEC_CTL_ACTIVE, 0); StartOC()
503 if (status < 0) StartOC()
506 return status; StartOC()
541 int status; DRX_GetLockStatus() local
545 status = Read16(state, SC_RA_RAM_LOCK__A, &ScRaRamLock, 0x0000); DRX_GetLockStatus()
546 if (status < 0) { DRX_GetLockStatus()
547 printk(KERN_ERR "Can't read SC_RA_RAM_LOCK__A status = %08x\n", status); DRX_GetLockStatus()
548 return status; DRX_GetLockStatus()
571 int status; SetCfgIfAgc() local
581 status = Read16(state, FE_AG_REG_AG_MODE_LOP__A, &FeAgRegAgModeLop, 0); SetCfgIfAgc()
582 if (status < 0) SetCfgIfAgc()
586 status = Write16(state, FE_AG_REG_AG_MODE_LOP__A, FeAgRegAgModeLop, 0); SetCfgIfAgc()
587 if (status < 0) SetCfgIfAgc()
592 status = Write16(state, FE_AG_REG_PM1_AGC_WRI__A, FeAgRegPm1AgcWri, 0); SetCfgIfAgc()
593 if (status < 0) SetCfgIfAgc()
610 status = Read16(state, FE_AG_REG_AG_MODE_LOP__A, &FeAgRegAgModeLop, 0); SetCfgIfAgc()
611 if (status < 0) SetCfgIfAgc()
616 status = Write16(state, FE_AG_REG_AG_MODE_LOP__A, FeAgRegAgModeLop, 0); SetCfgIfAgc()
617 if (status < 0) SetCfgIfAgc()
624 status = Write16(state, FE_AG_REG_EGC_SET_LVL__A, FeAgRegEgcSetLvl, 0); SetCfgIfAgc()
625 if (status < 0) SetCfgIfAgc()
635 status = Write16(state, FE_AG_REG_GC1_AGC_RIC__A, slope, 0); SetCfgIfAgc()
636 if (status < 0) SetCfgIfAgc()
638 status = Write16(state, FE_AG_REG_GC1_AGC_OFF__A, offset, 0); SetCfgIfAgc()
639 if (status < 0) SetCfgIfAgc()
686 status = Write16(state, FE_AG_REG_EGC_RUR_CNT__A, rurCount, 0); SetCfgIfAgc()
687 if (status < 0) SetCfgIfAgc()
689 status = Write16(state, FE_AG_REG_EGC_FAS_INC__A, fastIncrDec, 0); SetCfgIfAgc()
690 if (status < 0) SetCfgIfAgc()
692 status = Write16(state, FE_AG_REG_EGC_FAS_DEC__A, fastIncrDec, 0); SetCfgIfAgc()
693 if (status < 0) SetCfgIfAgc()
695 status = Write16(state, FE_AG_REG_EGC_SLO_INC__A, slowIncrDec, 0); SetCfgIfAgc()
696 if (status < 0) SetCfgIfAgc()
698 status = Write16(state, FE_AG_REG_EGC_SLO_DEC__A, slowIncrDec, 0); SetCfgIfAgc()
699 if (status < 0) SetCfgIfAgc()
709 return status; SetCfgIfAgc()
714 int status = 0; SetCfgRfAgc() local
727 status = Write16(state, FE_AG_REG_PM2_AGC_WRI__A, level, 0x0000); SetCfgRfAgc()
728 if (status < 0) SetCfgRfAgc()
737 status = Write16(state, FE_AG_REG_AG_PWD__A, state->m_FeAgRegAgPwd, 0x0000); SetCfgRfAgc()
738 if (status < 0) SetCfgRfAgc()
741 status = Read16(state, FE_AG_REG_AG_MODE_LOP__A, &AgModeLop, 0x0000); SetCfgRfAgc()
742 if (status < 0) SetCfgRfAgc()
748 status = Write16(state, FE_AG_REG_AG_MODE_LOP__A, AgModeLop, 0x0000); SetCfgRfAgc()
749 if (status < 0) SetCfgRfAgc()
755 status = Read16(state, FE_AG_REG_AG_AGC_SIO__A, &FeAgRegAgAgcSio, 0x0000); SetCfgRfAgc()
756 if (status < 0) SetCfgRfAgc()
762 status = Write16(state, FE_AG_REG_AG_AGC_SIO__A, FeAgRegAgAgcSio, 0x0000); SetCfgRfAgc()
763 if (status < 0) SetCfgRfAgc()
779 status = Write16(state, FE_AG_REG_AG_PWD__A, (state->m_FeAgRegAgPwd), 0x0000); SetCfgRfAgc()
780 if (status < 0) SetCfgRfAgc()
783 status = Read16(state, FE_AG_REG_AG_MODE_LOP__A, &AgModeLop, 0x0000); SetCfgRfAgc()
784 if (status < 0) SetCfgRfAgc()
790 status = Write16(state, FE_AG_REG_AG_MODE_LOP__A, AgModeLop, 0x0000); SetCfgRfAgc()
791 if (status < 0) SetCfgRfAgc()
796 status = Write16(state, FE_AG_REG_TGC_SET_LVL__A, level, 0x0000); SetCfgRfAgc()
797 if (status < 0) SetCfgRfAgc()
807 status = Read16(state, FE_AG_REG_AG_AGC_SIO__A, &FeAgRegAgAgcSio, 0x0000); SetCfgRfAgc()
808 if (status < 0) SetCfgRfAgc()
814 status = Write16(state, FE_AG_REG_AG_AGC_SIO__A, FeAgRegAgAgcSio, 0x0000); SetCfgRfAgc()
815 if (status < 0) SetCfgRfAgc()
830 status = Write16(state, FE_AG_REG_AG_PWD__A, (state->m_FeAgRegAgPwd), 0x0000); SetCfgRfAgc()
831 if (status < 0) SetCfgRfAgc()
834 status = Read16(state, FE_AG_REG_AG_MODE_LOP__A, &AgModeLop, 0x0000); SetCfgRfAgc()
835 if (status < 0) SetCfgRfAgc()
841 status = Write16(state, FE_AG_REG_AG_MODE_LOP__A, AgModeLop, 0x0000); SetCfgRfAgc()
842 if (status < 0) SetCfgRfAgc()
848 status = Read16(state, FE_AG_REG_AG_AGC_SIO__A, &FeAgRegAgAgcSio, 0x0000); SetCfgRfAgc()
849 if (status < 0) SetCfgRfAgc()
855 status = Write16(state, FE_AG_REG_AG_AGC_SIO__A, FeAgRegAgAgcSio, 0x0000); SetCfgRfAgc()
856 if (status < 0) SetCfgRfAgc()
861 return status; SetCfgRfAgc()
866 int status = 0; ReadIFAgc() local
871 status = Read16(state, FE_AG_REG_GC1_AGC_DAT__A, &Value, 0); ReadIFAgc()
873 if (status >= 0) { ReadIFAgc()
901 return status; ReadIFAgc()
933 int i, status = 0; DownloadMicrocode() local
964 status = WriteBlock(state, Address, BlockSize, DownloadMicrocode()
966 if (status < 0) DownloadMicrocode()
972 return status; DownloadMicrocode()
979 int status; HI_Command() local
981 status = Write16(state, HI_RA_RAM_SRV_CMD__A, cmd, 0); HI_Command()
982 if (status < 0) HI_Command()
983 return status; HI_Command()
988 status = -1; HI_Command()
991 status = Read16(state, HI_RA_RAM_SRV_CMD__A, &waitCmd, 0); HI_Command()
994 if (status >= 0) HI_Command()
995 status = Read16(state, HI_RA_RAM_SRV_RES__A, pResult, 0); HI_Command()
996 return status; HI_Command()
1001 int status = 0; HI_CfgCommand() local
1014 status = Write16(state, HI_RA_RAM_SRV_CMD__A, HI_CfgCommand()
1017 status = HI_Command(state, HI_RA_RAM_SRV_CMD_CONFIG, NULL); HI_CfgCommand()
1019 return status; HI_CfgCommand()
1032 int status; HI_ResetCommand() local
1035 status = Write16(state, HI_RA_RAM_SRV_RST_KEY__A, HI_ResetCommand()
1037 if (status == 0) HI_ResetCommand()
1038 status = HI_Command(state, HI_RA_RAM_SRV_CMD_RESET, NULL); HI_ResetCommand()
1041 return status; HI_ResetCommand()
1064 int status;
1076 status = Write16(state, HI_RA_RAM_SRV_CFG_KEY__A, (HI_TR_FUNC_ADDR & 0xFFFF), 0);
1077 if (status < 0)
1079 status = Write16(state, HI_RA_RAM_SRV_CFG_DIV__A, (u16) (Addr >> 16), 0);
1080 if (status < 0)
1082 status = Write16(state, HI_RA_RAM_SRV_CFG_BDL__A, (u16) (Addr & 0xFFFF), 0);
1083 if (status < 0)
1085 status = Write16(state, HI_RA_RAM_SRV_CFG_WUP__A, (u16) ((DataSize / 2) - 1), 0);
1086 if (status < 0)
1088 status = Write16(state, HI_RA_RAM_SRV_CFG_ACT__A, HI_TR_READ, 0);
1089 if (status < 0)
1092 status = HI_Command(state, HI_RA_RAM_SRV_CMD_EXECUTE, 0);
1093 if (status < 0)
1098 if (status >= 0) {
1102 status = Read16(state, (HI_RA_RAM_USR_BEGIN__A + i),
1104 if (status < 0)
1111 return status;
1118 int status;
1122 status = AtomicReadBlock(state, Addr, sizeof(u32), buf, Flags);
1126 return status;
1170 int status = 0; ResetECOD() local
1173 status = Write16(state, EC_OD_REG_SYNC__A, 0x0664, 0); ResetECOD()
1175 status = Write16(state, B_EC_OD_REG_SYNC__A, 0x0664, 0); ResetECOD()
1177 if (!(status < 0)) ResetECOD()
1178 status = WriteTable(state, state->m_ResetECRAM); ResetECOD()
1179 if (!(status < 0)) ResetECOD()
1180 status = Write16(state, EC_OD_REG_COMM_EXEC__A, 0x0001, 0); ResetECOD()
1181 return status; ResetECOD()
1188 int status; SetCfgPga() local
1195 status = Read16(state, B_FE_AG_REG_AG_MODE_LOP__A, &AgModeLop, 0x0000); SetCfgPga()
1196 if (status < 0) SetCfgPga()
1200 status = Write16(state, B_FE_AG_REG_AG_MODE_LOP__A, AgModeLop, 0x0000); SetCfgPga()
1201 if (status < 0) SetCfgPga()
1205 status = Read16(state, B_FE_AG_REG_AG_MODE_HIP__A, &AgModeHip, 0x0000); SetCfgPga()
1206 if (status < 0) SetCfgPga()
1210 status = Write16(state, B_FE_AG_REG_AG_MODE_HIP__A, AgModeHip, 0x0000); SetCfgPga()
1211 if (status < 0) SetCfgPga()
1216 status = Write16(state, B_FE_AG_REG_AG_PGA_MODE__A, B_FE_AG_REG_AG_PGA_MODE_PFY_PCY_AFY_REN, 0x0000); SetCfgPga()
1217 if (status < 0) SetCfgPga()
1223 status = Read16(state, B_FE_AG_REG_AG_MODE_LOP__A, &AgModeLop, 0x0000); SetCfgPga()
1224 if (status < 0) SetCfgPga()
1228 status = Write16(state, B_FE_AG_REG_AG_MODE_LOP__A, AgModeLop, 0x0000); SetCfgPga()
1229 if (status < 0) SetCfgPga()
1233 status = Read16(state, B_FE_AG_REG_AG_MODE_HIP__A, &AgModeHip, 0x0000); SetCfgPga()
1234 if (status < 0) SetCfgPga()
1238 status = Write16(state, B_FE_AG_REG_AG_MODE_HIP__A, AgModeHip, 0x0000); SetCfgPga()
1239 if (status < 0) SetCfgPga()
1244 status = Write16(state, B_FE_AG_REG_AG_PGA_MODE__A, B_FE_AG_REG_AG_PGA_MODE_PFN_PCN_AFY_REN, 0x0000); SetCfgPga()
1245 if (status < 0) SetCfgPga()
1249 return status; SetCfgPga()
1254 int status; InitFE() local
1257 status = WriteTable(state, state->m_InitFE_1); InitFE()
1258 if (status < 0) InitFE()
1262 status = Write16(state, FE_AG_REG_AG_PGA_MODE__A, InitFE()
1267 status = SetCfgPga(state, 0); InitFE()
1269 status = InitFE()
1275 if (status < 0) InitFE()
1277 status = Write16(state, FE_AG_REG_AG_AGC_SIO__A, state->m_FeAgRegAgAgcSio, 0x0000); InitFE()
1278 if (status < 0) InitFE()
1280 status = Write16(state, FE_AG_REG_AG_PWD__A, state->m_FeAgRegAgPwd, 0x0000); InitFE()
1281 if (status < 0) InitFE()
1284 status = WriteTable(state, state->m_InitFE_2); InitFE()
1285 if (status < 0) InitFE()
1290 return status; InitFE()
1308 int status = Read16(state, SC_RA_RAM_CMD__A, &curCmd, 0); SC_WaitForReady() local
1309 if (status == 0 || curCmd == 0) SC_WaitForReady()
1310 return status; SC_WaitForReady()
1317 int status = 0; SC_SendCommand() local
1327 status = -1; SC_SendCommand()
1330 return status; SC_SendCommand()
1336 int status = 0; SC_ProcStartCommand() local
1343 status = -1; SC_ProcStartCommand()
1354 return status; SC_ProcStartCommand()
1360 int status; SC_SetPrefParamCommand() local
1364 status = SC_WaitForReady(state); SC_SetPrefParamCommand()
1365 if (status < 0) SC_SetPrefParamCommand()
1367 status = Write16(state, SC_RA_RAM_CMD_ADDR__A, subCmd, 0); SC_SetPrefParamCommand()
1368 if (status < 0) SC_SetPrefParamCommand()
1370 status = Write16(state, SC_RA_RAM_PARAM1__A, param1, 0); SC_SetPrefParamCommand()
1371 if (status < 0) SC_SetPrefParamCommand()
1373 status = Write16(state, SC_RA_RAM_PARAM0__A, param0, 0); SC_SetPrefParamCommand()
1374 if (status < 0) SC_SetPrefParamCommand()
1377 status = SC_SendCommand(state, SC_RA_RAM_CMD_SET_PREF_PARAM); SC_SetPrefParamCommand()
1378 if (status < 0) SC_SetPrefParamCommand()
1382 return status; SC_SetPrefParamCommand()
1388 int status = 0;
1392 status = SC_WaitForReady(state);
1393 if (status < 0)
1395 status = SC_SendCommand(state, SC_RA_RAM_CMD_GET_OP_PARAM);
1396 if (status < 0)
1398 status = Read16(state, SC_RA_RAM_PARAM0__A, result, 0);
1399 if (status < 0)
1403 return status;
1409 int status; ConfigureMPEGOutput() local
1481 status = Write16(state, EC_OC_REG_IPR_INV_MPG__A, EcOcRegIprInvMpg, 0); ConfigureMPEGOutput()
1482 if (status < 0) ConfigureMPEGOutput()
1484 status = Write16(state, EC_OC_REG_OC_MODE_LOP__A, EcOcRegOcModeLop, 0); ConfigureMPEGOutput()
1485 if (status < 0) ConfigureMPEGOutput()
1487 status = Write16(state, EC_OC_REG_OC_MODE_HIP__A, EcOcRegOcModeHip, 0x0000); ConfigureMPEGOutput()
1488 if (status < 0) ConfigureMPEGOutput()
1490 status = Write16(state, EC_OC_REG_OC_MPG_SIO__A, EcOcRegOcMpgSio, 0); ConfigureMPEGOutput()
1491 if (status < 0) ConfigureMPEGOutput()
1494 return status; ConfigureMPEGOutput()
1499 int status = 0; SetDeviceTypeId() local
1503 status = Read16(state, CC_REG_JTAGID_L__A, &deviceId, 0); SetDeviceTypeId()
1504 if (status < 0) SetDeviceTypeId()
1507 status = Read16(state, CC_REG_JTAGID_L__A, &deviceId, 0); SetDeviceTypeId()
1508 if (status < 0) SetDeviceTypeId()
1534 status = -1; SetDeviceTypeId()
1540 if (status < 0) SetDeviceTypeId()
1541 return status; SetDeviceTypeId()
1586 return status; SetDeviceTypeId()
1591 int status; CorrectSysClockDeviation() local
1605 status = Read32(state, LC_RA_RAM_IFINCR_NOM_L__A, ((u32 *) &nomincr), 0); CorrectSysClockDeviation()
1606 if (status < 0) CorrectSysClockDeviation()
1608 status = Read32(state, FE_IF_REG_INCR0__A, (u32 *) &incr, 0); CorrectSysClockDeviation()
1609 if (status < 0) CorrectSysClockDeviation()
1666 status = Write16(state, SC_RA_RAM_SAMPLE_RATE_COUNT__A, DRXD_OSCDEV_DONT_SCAN, 0); CorrectSysClockDeviation()
1667 if (status < 0) CorrectSysClockDeviation()
1671 status = Write16(state, SC_RA_RAM_IF_SAVE__AX, state->current_fe_if_incr, 0); CorrectSysClockDeviation()
1672 if (status < 0) CorrectSysClockDeviation()
1678 return status; CorrectSysClockDeviation()
1683 int status; DRX_Stop() local
1691 status = DRX_GetLockStatus(state, &lock); DRX_Stop()
1692 if (status < 0) DRX_Stop()
1696 status = StopOC(state); DRX_Stop()
1697 if (status < 0) DRX_Stop()
1702 status = ConfigureMPEGOutput(state, 0); DRX_Stop()
1703 if (status < 0) DRX_Stop()
1708 status = Write16(state, EC_OD_REG_COMM_EXEC__A, 0x0000, 0x0000); DRX_Stop()
1709 if (status < 0) DRX_Stop()
1712 status = Write16(state, SC_COMM_EXEC__A, SC_COMM_EXEC_CTL_STOP, 0); DRX_Stop()
1713 if (status < 0) DRX_Stop()
1715 status = Write16(state, LC_COMM_EXEC__A, SC_COMM_EXEC_CTL_STOP, 0); DRX_Stop()
1716 if (status < 0) DRX_Stop()
1720 status = Write16(state, B_SC_COMM_EXEC__A, SC_COMM_EXEC_CTL_STOP, 0); DRX_Stop()
1721 if (status < 0) DRX_Stop()
1723 status = Write16(state, B_LC_COMM_EXEC__A, SC_COMM_EXEC_CTL_STOP, 0); DRX_Stop()
1724 if (status < 0) DRX_Stop()
1726 status = Write16(state, B_FT_COMM_EXEC__A, SC_COMM_EXEC_CTL_STOP, 0); DRX_Stop()
1727 if (status < 0) DRX_Stop()
1729 status = Write16(state, B_CP_COMM_EXEC__A, SC_COMM_EXEC_CTL_STOP, 0); DRX_Stop()
1730 if (status < 0) DRX_Stop()
1732 status = Write16(state, B_CE_COMM_EXEC__A, SC_COMM_EXEC_CTL_STOP, 0); DRX_Stop()
1733 if (status < 0) DRX_Stop()
1735 status = Write16(state, B_EQ_COMM_EXEC__A, SC_COMM_EXEC_CTL_STOP, 0); DRX_Stop()
1736 if (status < 0) DRX_Stop()
1738 status = Write16(state, EC_OD_REG_COMM_EXEC__A, 0x0000, 0); DRX_Stop()
1739 if (status < 0) DRX_Stop()
1744 return status; DRX_Stop()
1750 int status;
1754 status = -1;
1759 status = 0;
1764 status = -1;
1770 status = WriteTable(state, state->m_InitDiversityFront);
1773 status = WriteTable(state, state->m_InitDiversityEnd);
1779 status = WriteTable(state, state->m_DisableDiversity);
1784 if (!status)
1786 return status;
1792 int status = 0; StartDiversity() local
1797 status = WriteTable(state, state->m_StartDiversityFront); StartDiversity()
1798 if (status < 0) StartDiversity()
1801 status = WriteTable(state, state->m_StartDiversityEnd); StartDiversity()
1802 if (status < 0) StartDiversity()
1805 status = WriteTable(state, state->m_DiversityDelay8MHZ); StartDiversity()
1806 if (status < 0) StartDiversity()
1809 status = WriteTable(state, state->m_DiversityDelay6MHZ); StartDiversity()
1810 if (status < 0) StartDiversity()
1814 status = Read16(state, B_EQ_REG_RC_SEL_CAR__A, &rcControl, 0); StartDiversity()
1815 if (status < 0) StartDiversity()
1823 status = Write16(state, B_EQ_REG_RC_SEL_CAR__A, rcControl, 0); StartDiversity()
1824 if (status < 0) StartDiversity()
1828 return status; StartDiversity()
1873 int status = 0; SetCfgNoiseCalibration() local
1876 status = Read16(state, SC_RA_RAM_BE_OPT_ENA__A, &beOptEna, 0); SetCfgNoiseCalibration()
1877 if (status < 0) SetCfgNoiseCalibration()
1883 status = Write16(state, CP_REG_AC_NEXP_OFFS__A, noiseCal->cpNexpOfs, 0); SetCfgNoiseCalibration()
1884 if (status < 0) SetCfgNoiseCalibration()
1887 status = Write16(state, SC_RA_RAM_BE_OPT_ENA__A, beOptEna, 0); SetCfgNoiseCalibration()
1888 if (status < 0) SetCfgNoiseCalibration()
1892 status = Write16(state, B_SC_RA_RAM_CO_TD_CAL_2K__A, noiseCal->tdCal2k, 0); SetCfgNoiseCalibration()
1893 if (status < 0) SetCfgNoiseCalibration()
1895 status = Write16(state, B_SC_RA_RAM_CO_TD_CAL_8K__A, noiseCal->tdCal8k, 0); SetCfgNoiseCalibration()
1896 if (status < 0) SetCfgNoiseCalibration()
1901 return status; SetCfgNoiseCalibration()
1907 int status; DRX_Start() local
1937 status = ResetECOD(state); DRX_Start()
1938 if (status < 0) DRX_Start()
1941 status = InitSC(state); DRX_Start()
1942 if (status < 0) DRX_Start()
1945 status = InitFT(state); DRX_Start()
1946 if (status < 0) DRX_Start()
1948 status = InitCP(state); DRX_Start()
1949 if (status < 0) DRX_Start()
1951 status = InitCE(state); DRX_Start()
1952 if (status < 0) DRX_Start()
1954 status = InitEQ(state); DRX_Start()
1955 if (status < 0) DRX_Start()
1957 status = InitSC(state); DRX_Start()
1958 if (status < 0) DRX_Start()
1964 status = SetCfgIfAgc(state, &state->if_agc_cfg); DRX_Start()
1965 if (status < 0) DRX_Start()
1967 status = SetCfgRfAgc(state, &state->rf_agc_cfg); DRX_Start()
1968 if (status < 0) DRX_Start()
1980 status = Write16(state, EC_SB_REG_TR_MODE__A, EC_SB_REG_TR_MODE_8K, 0x0000); DRX_Start()
1981 if (status < 0) DRX_Start()
1991 status = Write16(state, EC_SB_REG_TR_MODE__A, EC_SB_REG_TR_MODE_2K, 0x0000); DRX_Start()
1992 if (status < 0) DRX_Start()
2025 status = Write16(state, EQ_REG_OT_ALPHA__A, 0x0001, 0x0000); DRX_Start()
2026 if (status < 0) DRX_Start()
2028 status = Write16(state, EC_SB_REG_ALPHA__A, 0x0001, 0x0000); DRX_Start()
2029 if (status < 0) DRX_Start()
2055 status = Write16(state, EQ_REG_OT_ALPHA__A, 0x0002, 0x0000); DRX_Start()
2056 if (status < 0) DRX_Start()
2058 status = Write16(state, EC_SB_REG_ALPHA__A, 0x0002, 0x0000); DRX_Start()
2059 if (status < 0) DRX_Start()
2084 status = Write16(state, EQ_REG_OT_ALPHA__A, 0x0003, 0x0000); DRX_Start()
2085 if (status < 0) DRX_Start()
2087 status = Write16(state, EC_SB_REG_ALPHA__A, 0x0003, 0x0000); DRX_Start()
2088 if (status < 0) DRX_Start()
2116 status = Write16(state, EQ_REG_OT_ALPHA__A, 0x0000, 0x0000); DRX_Start()
2117 if (status < 0) DRX_Start()
2119 status = Write16(state, EC_SB_REG_ALPHA__A, 0x0000, 0x0000); DRX_Start()
2120 if (status < 0) DRX_Start()
2143 status = status; DRX_Start()
2144 if (status < 0) DRX_Start()
2155 status = Write16(state, EQ_REG_OT_CONST__A, 0x0002, 0x0000); DRX_Start()
2156 if (status < 0) DRX_Start()
2158 status = Write16(state, EC_SB_REG_CONST__A, EC_SB_REG_CONST_64QAM, 0x0000); DRX_Start()
2159 if (status < 0) DRX_Start()
2161 status = Write16(state, EC_SB_REG_SCALE_MSB__A, 0x0020, 0x0000); DRX_Start()
2162 if (status < 0) DRX_Start()
2164 status = Write16(state, EC_SB_REG_SCALE_BIT2__A, 0x0008, 0x0000); DRX_Start()
2165 if (status < 0) DRX_Start()
2167 status = Write16(state, EC_SB_REG_SCALE_LSB__A, 0x0002, 0x0000); DRX_Start()
2168 if (status < 0) DRX_Start()
2171 status = Write16(state, EQ_REG_TD_TPS_PWR_OFS__A, qam64TdTpsPwr, 0x0000); DRX_Start()
2172 if (status < 0) DRX_Start()
2174 status = Write16(state, EQ_REG_SN_CEGAIN__A, qam64SnCeGain, 0x0000); DRX_Start()
2175 if (status < 0) DRX_Start()
2177 status = Write16(state, EQ_REG_IS_GAIN_MAN__A, qam64IsGainMan, 0x0000); DRX_Start()
2178 if (status < 0) DRX_Start()
2180 status = Write16(state, EQ_REG_IS_GAIN_EXP__A, qam64IsGainExp, 0x0000); DRX_Start()
2181 if (status < 0) DRX_Start()
2188 status = Write16(state, EQ_REG_OT_CONST__A, 0x0000, 0x0000); DRX_Start()
2189 if (status < 0) DRX_Start()
2191 status = Write16(state, EC_SB_REG_CONST__A, EC_SB_REG_CONST_QPSK, 0x0000); DRX_Start()
2192 if (status < 0) DRX_Start()
2194 status = Write16(state, EC_SB_REG_SCALE_MSB__A, 0x0010, 0x0000); DRX_Start()
2195 if (status < 0) DRX_Start()
2197 status = Write16(state, EC_SB_REG_SCALE_BIT2__A, 0x0000, 0x0000); DRX_Start()
2198 if (status < 0) DRX_Start()
2200 status = Write16(state, EC_SB_REG_SCALE_LSB__A, 0x0000, 0x0000); DRX_Start()
2201 if (status < 0) DRX_Start()
2204 status = Write16(state, EQ_REG_TD_TPS_PWR_OFS__A, qpskTdTpsPwr, 0x0000); DRX_Start()
2205 if (status < 0) DRX_Start()
2207 status = Write16(state, EQ_REG_SN_CEGAIN__A, qpskSnCeGain, 0x0000); DRX_Start()
2208 if (status < 0) DRX_Start()
2210 status = Write16(state, EQ_REG_IS_GAIN_MAN__A, qpskIsGainMan, 0x0000); DRX_Start()
2211 if (status < 0) DRX_Start()
2213 status = Write16(state, EQ_REG_IS_GAIN_EXP__A, qpskIsGainExp, 0x0000); DRX_Start()
2214 if (status < 0) DRX_Start()
2222 status = Write16(state, EQ_REG_OT_CONST__A, 0x0001, 0x0000); DRX_Start()
2223 if (status < 0) DRX_Start()
2225 status = Write16(state, EC_SB_REG_CONST__A, EC_SB_REG_CONST_16QAM, 0x0000); DRX_Start()
2226 if (status < 0) DRX_Start()
2228 status = Write16(state, EC_SB_REG_SCALE_MSB__A, 0x0010, 0x0000); DRX_Start()
2229 if (status < 0) DRX_Start()
2231 status = Write16(state, EC_SB_REG_SCALE_BIT2__A, 0x0004, 0x0000); DRX_Start()
2232 if (status < 0) DRX_Start()
2234 status = Write16(state, EC_SB_REG_SCALE_LSB__A, 0x0000, 0x0000); DRX_Start()
2235 if (status < 0) DRX_Start()
2238 status = Write16(state, EQ_REG_TD_TPS_PWR_OFS__A, qam16TdTpsPwr, 0x0000); DRX_Start()
2239 if (status < 0) DRX_Start()
2241 status = Write16(state, EQ_REG_SN_CEGAIN__A, qam16SnCeGain, 0x0000); DRX_Start()
2242 if (status < 0) DRX_Start()
2244 status = Write16(state, EQ_REG_IS_GAIN_MAN__A, qam16IsGainMan, 0x0000); DRX_Start()
2245 if (status < 0) DRX_Start()
2247 status = Write16(state, EQ_REG_IS_GAIN_EXP__A, qam16IsGainExp, 0x0000); DRX_Start()
2248 if (status < 0) DRX_Start()
2254 status = status; DRX_Start()
2255 if (status < 0) DRX_Start()
2263 status = Write16(state, EC_SB_REG_PRIOR__A, EC_SB_REG_PRIOR_LO, 0x0000); DRX_Start()
2264 if (status < 0) DRX_Start()
2269 status = Write16(state, EC_SB_REG_PRIOR__A, EC_SB_REG_PRIOR_HI, 0x0000); DRX_Start()
2270 if (status < 0) DRX_Start()
2280 status = Write16(state, EC_VD_REG_SET_CODERATE__A, EC_VD_REG_SET_CODERATE_C1_2, 0x0000); DRX_Start()
2281 if (status < 0) DRX_Start()
2290 status = Write16(state, EC_VD_REG_SET_CODERATE__A, EC_VD_REG_SET_CODERATE_C2_3, 0x0000); DRX_Start()
2291 if (status < 0) DRX_Start()
2298 status = Write16(state, EC_VD_REG_SET_CODERATE__A, EC_VD_REG_SET_CODERATE_C3_4, 0x0000); DRX_Start()
2299 if (status < 0) DRX_Start()
2306 status = Write16(state, EC_VD_REG_SET_CODERATE__A, EC_VD_REG_SET_CODERATE_C5_6, 0x0000); DRX_Start()
2307 if (status < 0) DRX_Start()
2314 status = Write16(state, EC_VD_REG_SET_CODERATE__A, EC_VD_REG_SET_CODERATE_C7_8, 0x0000); DRX_Start()
2315 if (status < 0) DRX_Start()
2320 status = status; DRX_Start()
2321 if (status < 0) DRX_Start()
2340 status = Write16(state, DRX_Start()
2347 status = Write16(state, DRX_Start()
2354 status = Write16(state, DRX_Start()
2358 status = -EINVAL; DRX_Start()
2360 if (status < 0) DRX_Start()
2363 status = Write16(state, SC_RA_RAM_BAND__A, bandwidthParam, 0x0000); DRX_Start()
2364 if (status < 0) DRX_Start()
2369 status = Read16(state, SC_RA_RAM_CONFIG__A, &sc_config, 0); DRX_Start()
2370 if (status < 0) DRX_Start()
2383 status = Write16(state, SC_RA_RAM_CONFIG__A, sc_config, 0); DRX_Start()
2384 if (status < 0) DRX_Start()
2388 status = SetCfgNoiseCalibration(state, &state->noise_cal); DRX_Start()
2389 if (status < 0) DRX_Start()
2394 status = Write16(state, SC_RA_RAM_SAMPLE_RATE_COUNT__A, DRXD_OSCDEV_DO_SCAN, 0x0000); DRX_Start()
2395 if (status < 0) DRX_Start()
2406 status = Write16(state, FE_IF_REG_INCR0__A, (u16) (feIfIncr & FE_IF_REG_INCR0__M), 0x0000); DRX_Start()
2407 if (status < 0) DRX_Start()
2409 status = Write16(state, FE_IF_REG_INCR1__A, (u16) ((feIfIncr >> FE_IF_REG_INCR0__W) & FE_IF_REG_INCR1__M), 0x0000); DRX_Start()
2410 if (status < 0) DRX_Start()
2420 status = Write16(state, SC_COMM_STATE__A, 0, 0x0000); DRX_Start()
2421 if (status < 0) DRX_Start()
2423 status = Write16(state, SC_COMM_EXEC__A, 1, 0x0000); DRX_Start()
2424 if (status < 0) DRX_Start()
2435 status = SC_SetPrefParamCommand(state, 0x0000, transmissionParams, operationMode); DRX_Start()
2436 if (status < 0) DRX_Start()
2440 status = SC_ProcStartCommand(state, SC_RA_RAM_PROC_LOCKTRACK, SC_RA_RAM_SW_EVENT_RUN_NMASK__M, SC_RA_RAM_LOCKTRACK_MIN); DRX_Start()
2441 if (status < 0) DRX_Start()
2444 status = StartOC(state); DRX_Start()
2445 if (status < 0) DRX_Start()
2449 status = StartDiversity(state); DRX_Start()
2450 if (status < 0) DRX_Start()
2457 return status; DRX_Start()
2615 int status = 0; DRXD_init() local
2626 status = SetDeviceTypeId(state); DRXD_init()
2627 if (status < 0) DRXD_init()
2632 status = WriteTable(state, state->m_HiI2cPatch); DRXD_init()
2633 if (status < 0) DRXD_init()
2640 status = Write16(state, 0x43012D, 0x047f, 0); DRXD_init()
2641 if (status < 0) DRXD_init()
2645 status = HI_ResetCommand(state); DRXD_init()
2646 if (status < 0) DRXD_init()
2649 status = StopAllProcessors(state); DRXD_init()
2650 if (status < 0) DRXD_init()
2652 status = InitCC(state); DRXD_init()
2653 if (status < 0) DRXD_init()
2682 status = InitHI(state); DRXD_init()
2683 if (status < 0) DRXD_init()
2685 status = InitAtomicRead(state); DRXD_init()
2686 if (status < 0) DRXD_init()
2689 status = EnableAndResetMB(state); DRXD_init()
2690 if (status < 0) DRXD_init()
2693 status = ResetCEFR(state); DRXD_init()
2694 if (status < 0) DRXD_init()
2698 status = DownloadMicrocode(state, fw, fw_size); DRXD_init()
2699 if (status < 0) DRXD_init()
2702 status = DownloadMicrocode(state, state->microcode, state->microcode_length); DRXD_init()
2703 if (status < 0) DRXD_init()
2716 status = InitFE(state); DRXD_init()
2717 if (status < 0) DRXD_init()
2719 status = InitFT(state); DRXD_init()
2720 if (status < 0) DRXD_init()
2722 status = InitCP(state); DRXD_init()
2723 if (status < 0) DRXD_init()
2725 status = InitCE(state); DRXD_init()
2726 if (status < 0) DRXD_init()
2728 status = InitEQ(state); DRXD_init()
2729 if (status < 0) DRXD_init()
2731 status = InitEC(state); DRXD_init()
2732 if (status < 0) DRXD_init()
2734 status = InitSC(state); DRXD_init()
2735 if (status < 0) DRXD_init()
2738 status = SetCfgIfAgc(state, &state->if_agc_cfg); DRXD_init()
2739 if (status < 0) DRXD_init()
2741 status = SetCfgRfAgc(state, &state->rf_agc_cfg); DRXD_init()
2742 if (status < 0) DRXD_init()
2746 status = Write16(state, SC_COMM_EXEC__A, SC_COMM_EXEC_CTL_STOP, 0); DRXD_init()
2747 if (status < 0) DRXD_init()
2749 status = Write16(state, LC_COMM_EXEC__A, SC_COMM_EXEC_CTL_STOP, 0); DRXD_init()
2750 if (status < 0) DRXD_init()
2761 status = Write32(state, SC_RA_RAM_DRIVER_VERSION__AX, driverVersion, 0); DRXD_init()
2762 if (status < 0) DRXD_init()
2765 status = StopOC(state); DRXD_init()
2766 if (status < 0) DRXD_init()
2771 status = 0; DRXD_init()
2773 return status; DRXD_init()
2783 /* Get status again, in case we have MPEG lock now */ DRXD_status()
2808 static int drxd_read_status(struct dvb_frontend *fe, enum fe_status *status) drxd_read_status() argument
2814 *status = 0; drxd_read_status()
2818 *status |= FE_HAS_LOCK; drxd_read_status()
2821 *status |= FE_HAS_LOCK; drxd_read_status()
2824 *status |= FE_HAS_VITERBI | FE_HAS_SYNC; drxd_read_status()
2826 *status |= FE_HAS_CARRIER | FE_HAS_SIGNAL; drxd_read_status()
H A Dtda18271c2dd.c276 int status = 0; ThermometerRead() local
281 status = UpdateReg(state, TM); ThermometerRead()
282 if (status < 0) ThermometerRead()
284 status = Read(state, Regs); ThermometerRead()
285 if (status < 0) ThermometerRead()
290 status = UpdateReg(state, TM); ThermometerRead()
291 if (status < 0) ThermometerRead()
294 status = Read(state, Regs); ThermometerRead()
295 if (status < 0) ThermometerRead()
302 status = UpdateReg(state, TM); ThermometerRead()
303 if (status < 0) ThermometerRead()
306 status = UpdateReg(state, EP4); ThermometerRead()
307 if (status < 0) ThermometerRead()
311 return status; ThermometerRead()
316 int status = 0; StandBy() local
319 status = UpdateReg(state, EB12); StandBy()
320 if (status < 0) StandBy()
323 status = UpdateReg(state, EB18); StandBy()
324 if (status < 0) StandBy()
328 status = UpdateReg(state, EP3); StandBy()
329 if (status < 0) StandBy()
332 status = UpdateRegs(state, EB21, EB23); StandBy()
333 if (status < 0) StandBy()
336 return status; StandBy()
390 int status = 0; CalibrateRF() local
399 status = UpdateReg(state, EP4); CalibrateRF()
400 if (status < 0) CalibrateRF()
403 status = UpdateReg(state, EB18); CalibrateRF()
404 if (status < 0) CalibrateRF()
422 status = UpdateRegs(state, EP1, EP3); CalibrateRF()
423 if (status < 0) CalibrateRF()
425 status = UpdateReg(state, EB13); CalibrateRF()
426 if (status < 0) CalibrateRF()
430 status = UpdateReg(state, EB4); CalibrateRF()
431 if (status < 0) CalibrateRF()
435 status = UpdateReg(state, EB7); CalibrateRF()
436 if (status < 0) CalibrateRF()
440 status = UpdateReg(state, EB14); CalibrateRF()
441 if (status < 0) CalibrateRF()
445 status = UpdateReg(state, EB20); CalibrateRF()
446 if (status < 0) CalibrateRF()
450 status = UpdateRegs(state, EP4, EP5); CalibrateRF()
451 if (status < 0) CalibrateRF()
454 status = CalcCalPLL(state, freq); CalibrateRF()
455 if (status < 0) CalibrateRF()
457 status = CalcMainPLL(state, freq + 1000000); CalibrateRF()
458 if (status < 0) CalibrateRF()
462 status = UpdateReg(state, EP2); CalibrateRF()
463 if (status < 0) CalibrateRF()
465 status = UpdateReg(state, EP1); CalibrateRF()
466 if (status < 0) CalibrateRF()
468 status = UpdateReg(state, EP2); CalibrateRF()
469 if (status < 0) CalibrateRF()
471 status = UpdateReg(state, EP1); CalibrateRF()
472 if (status < 0) CalibrateRF()
476 status = UpdateReg(state, EB4); CalibrateRF()
477 if (status < 0) CalibrateRF()
481 status = UpdateReg(state, EB7); CalibrateRF()
482 if (status < 0) CalibrateRF()
487 status = UpdateReg(state, EB20); CalibrateRF()
488 if (status < 0) CalibrateRF()
495 status = UpdateReg(state, EB18); CalibrateRF()
496 if (status < 0) CalibrateRF()
498 status = UpdateRegs(state, EP3, EP4); CalibrateRF()
499 if (status < 0) CalibrateRF()
501 status = UpdateReg(state, EP1); CalibrateRF()
502 if (status < 0) CalibrateRF()
505 status = ReadExtented(state, Regs); CalibrateRF()
506 if (status < 0) CalibrateRF()
512 return status; CalibrateRF()
518 int status = 0; RFTrackingFiltersInit() local
538 status = PowerScan(state, RFBand, RF1, &RF1, &bcal); RFTrackingFiltersInit()
539 if (status < 0) RFTrackingFiltersInit()
542 status = CalibrateRF(state, RFBand, RF1, &Cprog_cal1); RFTrackingFiltersInit()
543 if (status < 0) RFTrackingFiltersInit()
555 status = PowerScan(state, RFBand, RF2, &RF2, &bcal); RFTrackingFiltersInit()
556 if (status < 0) RFTrackingFiltersInit()
559 status = CalibrateRF(state, RFBand, RF2, &Cprog_cal2); RFTrackingFiltersInit()
560 if (status < 0) RFTrackingFiltersInit()
574 status = PowerScan(state, RFBand, RF3, &RF3, &bcal); RFTrackingFiltersInit()
575 if (status < 0) RFTrackingFiltersInit()
578 status = CalibrateRF(state, RFBand, RF3, &Cprog_cal3); RFTrackingFiltersInit()
579 if (status < 0) RFTrackingFiltersInit()
600 return status; RFTrackingFiltersInit()
606 int status = 0; PowerScan() local
629 status = UpdateReg(state, EP2); PowerScan()
630 if (status < 0) PowerScan()
632 status = UpdateReg(state, EB14); PowerScan()
633 if (status < 0) PowerScan()
637 status = CalcMainPLL(state, freq_MainPLL); PowerScan()
638 if (status < 0) PowerScan()
642 status = UpdateReg(state, EP4); PowerScan()
643 if (status < 0) PowerScan()
645 status = UpdateReg(state, EP2); /* Launch power measurement */ PowerScan()
646 if (status < 0) PowerScan()
648 status = ReadExtented(state, Regs); PowerScan()
649 if (status < 0) PowerScan()
658 status = CalcMainPLL(state, freq_MainPLL); PowerScan()
659 if (status < 0) PowerScan()
663 status = UpdateReg(state, EP2); /* Launch power measurement */ PowerScan()
664 if (status < 0) PowerScan()
666 status = ReadExtented(state, Regs); PowerScan()
667 if (status < 0) PowerScan()
681 status = status; PowerScan()
682 if (status < 0) PowerScan()
691 return status; PowerScan()
696 int status = 0; PowerScanInit() local
700 status = UpdateRegs(state, EP3, EP4); PowerScanInit()
701 if (status < 0) PowerScanInit()
704 status = UpdateReg(state, EB18); PowerScanInit()
705 if (status < 0) PowerScanInit()
709 status = UpdateRegs(state, EB21, EB23); PowerScanInit()
710 if (status < 0) PowerScanInit()
713 return status; PowerScanInit()
718 int status = 0; CalcRFFilterCurve() local
721 status = PowerScanInit(state); CalcRFFilterCurve()
722 if (status < 0) CalcRFFilterCurve()
724 status = RFTrackingFiltersInit(state, 0); CalcRFFilterCurve()
725 if (status < 0) CalcRFFilterCurve()
727 status = RFTrackingFiltersInit(state, 1); CalcRFFilterCurve()
728 if (status < 0) CalcRFFilterCurve()
730 status = RFTrackingFiltersInit(state, 2); CalcRFFilterCurve()
731 if (status < 0) CalcRFFilterCurve()
733 status = RFTrackingFiltersInit(state, 3); CalcRFFilterCurve()
734 if (status < 0) CalcRFFilterCurve()
736 status = RFTrackingFiltersInit(state, 4); CalcRFFilterCurve()
737 if (status < 0) CalcRFFilterCurve()
739 status = RFTrackingFiltersInit(state, 5); CalcRFFilterCurve()
740 if (status < 0) CalcRFFilterCurve()
742 status = RFTrackingFiltersInit(state, 6); CalcRFFilterCurve()
743 if (status < 0) CalcRFFilterCurve()
745 status = ThermometerRead(state, &state->m_TMValue_RFCal); /* also switches off Cal mode !!! */ CalcRFFilterCurve()
746 if (status < 0) CalcRFFilterCurve()
750 return status; CalcRFFilterCurve()
767 int status = 0; FixedContentsI2CUpdate() local
770 status = UpdateRegs(state, TM, EB23); FixedContentsI2CUpdate()
771 if (status < 0) FixedContentsI2CUpdate()
776 status = UpdateReg(state, EB17); FixedContentsI2CUpdate()
777 if (status < 0) FixedContentsI2CUpdate()
780 status = UpdateReg(state, EB17); FixedContentsI2CUpdate()
781 if (status < 0) FixedContentsI2CUpdate()
784 status = UpdateReg(state, EB17); FixedContentsI2CUpdate()
785 if (status < 0) FixedContentsI2CUpdate()
788 status = UpdateReg(state, EB17); FixedContentsI2CUpdate()
789 if (status < 0) FixedContentsI2CUpdate()
804 status = UpdateRegs(state, EP2, MD3); /* diff between sw and datasheet (ep3-md3) */ FixedContentsI2CUpdate()
805 if (status < 0) FixedContentsI2CUpdate()
810 status = UpdateReg(state, EB4); FixedContentsI2CUpdate()
811 if (status < 0) FixedContentsI2CUpdate()
815 status = UpdateReg(state, EB4); FixedContentsI2CUpdate()
816 if (status < 0) FixedContentsI2CUpdate()
821 status = UpdateReg(state, EP1); FixedContentsI2CUpdate()
822 if (status < 0) FixedContentsI2CUpdate()
830 status = UpdateRegs(state, EP3, CD3); FixedContentsI2CUpdate()
831 if (status < 0) FixedContentsI2CUpdate()
834 status = UpdateReg(state, EP2); FixedContentsI2CUpdate()
835 if (status < 0) FixedContentsI2CUpdate()
846 status = UpdateRegs(state, EP3, MD3); FixedContentsI2CUpdate()
847 if (status < 0) FixedContentsI2CUpdate()
851 status = UpdateReg(state, EP1); FixedContentsI2CUpdate()
852 if (status < 0) FixedContentsI2CUpdate()
860 status = UpdateRegs(state, EP3, CD3); FixedContentsI2CUpdate()
861 if (status < 0) FixedContentsI2CUpdate()
864 status = UpdateReg(state, EP2); FixedContentsI2CUpdate()
865 if (status < 0) FixedContentsI2CUpdate()
877 status = UpdateRegs(state, EP3, MD3); FixedContentsI2CUpdate()
878 if (status < 0) FixedContentsI2CUpdate()
881 status = UpdateReg(state, EP1); FixedContentsI2CUpdate()
882 if (status < 0) FixedContentsI2CUpdate()
888 status = UpdateRegs(state, EP3, CD3); FixedContentsI2CUpdate()
889 if (status < 0) FixedContentsI2CUpdate()
892 status = UpdateReg(state, EP2); FixedContentsI2CUpdate()
893 if (status < 0) FixedContentsI2CUpdate()
899 status = UpdateReg(state, EP4); FixedContentsI2CUpdate()
900 if (status < 0) FixedContentsI2CUpdate()
902 status = UpdateReg(state, EP1); FixedContentsI2CUpdate()
903 if (status < 0) FixedContentsI2CUpdate()
907 return status; FixedContentsI2CUpdate()
912 int status = 0; InitCal() local
915 status = FixedContentsI2CUpdate(state); InitCal()
916 if (status < 0) InitCal()
918 status = CalcRFFilterCurve(state); InitCal()
919 if (status < 0) InitCal()
921 status = StandBy(state); InitCal()
922 if (status < 0) InitCal()
926 return status; InitCal()
932 int status = 0; RFTrackingFiltersCorrection() local
956 status = UpdateReg(state, EP3); RFTrackingFiltersCorrection()
957 if (status < 0) RFTrackingFiltersCorrection()
960 status = ThermometerRead(state, &TMValue_Current); RFTrackingFiltersCorrection()
961 if (status < 0) RFTrackingFiltersCorrection()
983 status = UpdateReg(state, EB14); RFTrackingFiltersCorrection()
984 if (status < 0) RFTrackingFiltersCorrection()
988 return status; RFTrackingFiltersCorrection()
996 int status = 0; ChannelConfiguration() local
1047 status = UpdateRegs(state, EB22, EB23); ChannelConfiguration()
1048 if (status < 0) ChannelConfiguration()
1059 status = UpdateReg(state, EB1); ChannelConfiguration()
1060 if (status < 0) ChannelConfiguration()
1064 status = CalcMainPLL(state, Frequency + IntermediateFrequency); ChannelConfiguration()
1065 if (status < 0) ChannelConfiguration()
1067 status = UpdateRegs(state, TM, EP5); ChannelConfiguration()
1068 if (status < 0) ChannelConfiguration()
1071 status = UpdateReg(state, EB4); ChannelConfiguration()
1072 if (status < 0) ChannelConfiguration()
1076 status = UpdateReg(state, EB4); ChannelConfiguration()
1077 if (status < 0) ChannelConfiguration()
1082 status = CalcCalPLL(state, Frequency + IntermediateFrequency); ChannelConfiguration()
1083 if (status < 0) ChannelConfiguration()
1088 status = UpdateReg(state, MPD); ChannelConfiguration()
1089 if (status < 0) ChannelConfiguration()
1091 status = UpdateRegs(state, TM, EP5); ChannelConfiguration()
1092 if (status < 0) ChannelConfiguration()
1096 status = UpdateReg(state, EB7); ChannelConfiguration()
1097 if (status < 0) ChannelConfiguration()
1101 status = UpdateReg(state, EB7); ChannelConfiguration()
1102 if (status < 0) ChannelConfiguration()
1108 status = UpdateReg(state, EP3); ChannelConfiguration()
1109 if (status < 0) ChannelConfiguration()
1113 return status; ChannelConfiguration()
1140 int status = 0; set_params() local
1176 status = RFTrackingFiltersCorrection(state, state->m_Frequency); set_params()
1177 if (status < 0) set_params()
1179 status = ChannelConfiguration(state, state->m_Frequency, set_params()
1181 if (status < 0) set_params()
1186 return status; set_params()
/linux-4.4.14/drivers/i2c/busses/
H A Di2c-amd8111.c50 #define AMD_EC_SC 0x04 /* status of controller */
106 int status; amd_ec_read() local
108 status = amd_ec_wait_write(smbus); amd_ec_read()
109 if (status) amd_ec_read()
110 return status; amd_ec_read()
113 status = amd_ec_wait_write(smbus); amd_ec_read()
114 if (status) amd_ec_read()
115 return status; amd_ec_read()
118 status = amd_ec_wait_read(smbus); amd_ec_read()
119 if (status) amd_ec_read()
120 return status; amd_ec_read()
129 int status; amd_ec_write() local
131 status = amd_ec_wait_write(smbus); amd_ec_write()
132 if (status) amd_ec_write()
133 return status; amd_ec_write()
136 status = amd_ec_wait_write(smbus); amd_ec_write()
137 if (status) amd_ec_write()
138 return status; amd_ec_write()
141 status = amd_ec_wait_write(smbus); amd_ec_write()
142 if (status) amd_ec_write()
143 return status; amd_ec_write()
154 #define AMD_SMB_STS 0x01 /* status */
198 int i, status; amd8111_access() local
212 status = amd_ec_write(smbus, AMD_SMB_CMD, amd8111_access()
214 if (status) amd8111_access()
215 return status; amd8111_access()
221 status = amd_ec_write(smbus, AMD_SMB_CMD, command); amd8111_access()
222 if (status) amd8111_access()
223 return status; amd8111_access()
225 status = amd_ec_write(smbus, AMD_SMB_DATA, amd8111_access()
227 if (status) amd8111_access()
228 return status; amd8111_access()
234 status = amd_ec_write(smbus, AMD_SMB_CMD, command); amd8111_access()
235 if (status) amd8111_access()
236 return status; amd8111_access()
238 status = amd_ec_write(smbus, AMD_SMB_DATA, amd8111_access()
240 if (status) amd8111_access()
241 return status; amd8111_access()
242 status = amd_ec_write(smbus, AMD_SMB_DATA + 1, amd8111_access()
244 if (status) amd8111_access()
245 return status; amd8111_access()
251 status = amd_ec_write(smbus, AMD_SMB_CMD, command); amd8111_access()
252 if (status) amd8111_access()
253 return status; amd8111_access()
257 status = amd_ec_write(smbus, AMD_SMB_BCNT, len); amd8111_access()
258 if (status) amd8111_access()
259 return status; amd8111_access()
261 status = amd8111_access()
264 if (status) amd8111_access()
265 return status; amd8111_access()
274 status = amd_ec_write(smbus, AMD_SMB_CMD, command); amd8111_access()
275 if (status) amd8111_access()
276 return status; amd8111_access()
277 status = amd_ec_write(smbus, AMD_SMB_BCNT, len); amd8111_access()
278 if (status) amd8111_access()
279 return status; amd8111_access()
282 status = amd8111_access()
285 if (status) amd8111_access()
286 return status; amd8111_access()
292 status = amd_ec_write(smbus, AMD_SMB_CMD, command); amd8111_access()
293 if (status) amd8111_access()
294 return status; amd8111_access()
295 status = amd_ec_write(smbus, AMD_SMB_DATA, amd8111_access()
297 if (status) amd8111_access()
298 return status; amd8111_access()
299 status = amd_ec_write(smbus, AMD_SMB_DATA + 1, amd8111_access()
301 if (status) amd8111_access()
302 return status; amd8111_access()
310 status = amd_ec_write(smbus, AMD_SMB_CMD, command); amd8111_access()
311 if (status) amd8111_access()
312 return status; amd8111_access()
313 status = amd_ec_write(smbus, AMD_SMB_BCNT, len); amd8111_access()
314 if (status) amd8111_access()
315 return status; amd8111_access()
317 status = amd_ec_write(smbus, AMD_SMB_DATA + i, amd8111_access()
319 if (status) amd8111_access()
320 return status; amd8111_access()
331 status = amd_ec_write(smbus, AMD_SMB_ADDR, addr << 1); amd8111_access()
332 if (status) amd8111_access()
333 return status; amd8111_access()
334 status = amd_ec_write(smbus, AMD_SMB_PRTCL, protocol); amd8111_access()
335 if (status) amd8111_access()
336 return status; amd8111_access()
338 status = amd_ec_read(smbus, AMD_SMB_STS, temp + 0); amd8111_access()
339 if (status) amd8111_access()
340 return status; amd8111_access()
344 status = amd_ec_read(smbus, AMD_SMB_STS, temp + 0); amd8111_access()
345 if (status) amd8111_access()
346 return status; amd8111_access()
351 status = amd_ec_read(smbus, AMD_SMB_STS, temp + 0); amd8111_access()
352 if (status) amd8111_access()
353 return status; amd8111_access()
365 status = amd_ec_read(smbus, AMD_SMB_DATA, &data->byte); amd8111_access()
366 if (status) amd8111_access()
367 return status; amd8111_access()
372 status = amd_ec_read(smbus, AMD_SMB_DATA, temp + 0); amd8111_access()
373 if (status) amd8111_access()
374 return status; amd8111_access()
375 status = amd_ec_read(smbus, AMD_SMB_DATA + 1, temp + 1); amd8111_access()
376 if (status) amd8111_access()
377 return status; amd8111_access()
383 status = amd_ec_read(smbus, AMD_SMB_BCNT, &len); amd8111_access()
384 if (status) amd8111_access()
385 return status; amd8111_access()
389 status = amd_ec_read(smbus, AMD_SMB_DATA + i, amd8111_access()
391 if (status) amd8111_access()
392 return status; amd8111_access()
/linux-4.4.14/drivers/rtc/
H A Drtc-dm355evm.c40 int status; dm355evm_rtc_read_time() local
49 status = dm355evm_msp_read(DM355EVM_MSP_RTC_0); dm355evm_rtc_read_time()
50 if (status < 0) dm355evm_rtc_read_time()
51 return status; dm355evm_rtc_read_time()
52 if (tries && time.bytes[0] == status) dm355evm_rtc_read_time()
54 time.bytes[0] = status; dm355evm_rtc_read_time()
56 status = dm355evm_msp_read(DM355EVM_MSP_RTC_1); dm355evm_rtc_read_time()
57 if (status < 0) dm355evm_rtc_read_time()
58 return status; dm355evm_rtc_read_time()
59 if (tries && time.bytes[1] == status) dm355evm_rtc_read_time()
61 time.bytes[1] = status; dm355evm_rtc_read_time()
63 status = dm355evm_msp_read(DM355EVM_MSP_RTC_2); dm355evm_rtc_read_time()
64 if (status < 0) dm355evm_rtc_read_time()
65 return status; dm355evm_rtc_read_time()
66 if (tries && time.bytes[2] == status) dm355evm_rtc_read_time()
68 time.bytes[2] = status; dm355evm_rtc_read_time()
70 status = dm355evm_msp_read(DM355EVM_MSP_RTC_3); dm355evm_rtc_read_time()
71 if (status < 0) dm355evm_rtc_read_time()
72 return status; dm355evm_rtc_read_time()
73 if (tries && time.bytes[3] == status) dm355evm_rtc_read_time()
75 time.bytes[3] = status; dm355evm_rtc_read_time()
89 int status; dm355evm_rtc_set_time() local
100 status = dm355evm_msp_write(time.bytes[0], DM355EVM_MSP_RTC_0); dm355evm_rtc_set_time()
101 if (status < 0) dm355evm_rtc_set_time()
102 return status; dm355evm_rtc_set_time()
104 status = dm355evm_msp_write(time.bytes[1], DM355EVM_MSP_RTC_1); dm355evm_rtc_set_time()
105 if (status < 0) dm355evm_rtc_set_time()
106 return status; dm355evm_rtc_set_time()
108 status = dm355evm_msp_write(time.bytes[2], DM355EVM_MSP_RTC_2); dm355evm_rtc_set_time()
109 if (status < 0) dm355evm_rtc_set_time()
110 return status; dm355evm_rtc_set_time()
112 status = dm355evm_msp_write(time.bytes[3], DM355EVM_MSP_RTC_3); dm355evm_rtc_set_time()
113 if (status < 0) dm355evm_rtc_set_time()
114 return status; dm355evm_rtc_set_time()
H A Drtc-ds1305.c78 /* status has just AEIx bits, mirrored as IRQFx */
179 int status; ds1305_get_time() local
184 status = spi_write_then_read(ds1305->spi, &addr, sizeof(addr), ds1305_get_time()
186 if (status < 0) ds1305_get_time()
187 return status; ds1305_get_time()
248 * status of an alarm that could trigger while we're reading parts
249 * of that status.
280 int status; ds1305_get_alarm() local
285 * makes returning "pending" status a bit of a lie, but that bit ds1305_get_alarm()
286 * of EFI status is at best fragile anyway (given IRQ handlers). ds1305_get_alarm()
289 status = spi_write_then_read(spi, &addr, sizeof(addr), ds1305_get_alarm()
291 if (status < 0) ds1305_get_alarm()
292 return status; ds1305_get_alarm()
299 status = spi_write_then_read(spi, &addr, sizeof(addr), ds1305_get_alarm()
301 if (status < 0) ds1305_get_alarm()
302 return status; ds1305_get_alarm()
340 int status; ds1305_set_alarm() local
344 status = rtc_tm_to_time(&alm->time, &later); ds1305_set_alarm()
345 if (status < 0) ds1305_set_alarm()
346 return status; ds1305_set_alarm()
349 status = ds1305_get_time(dev, &tm); ds1305_set_alarm()
350 if (status < 0) ds1305_set_alarm()
351 return status; ds1305_set_alarm()
352 status = rtc_tm_to_time(&tm, &now); ds1305_set_alarm()
353 if (status < 0) ds1305_set_alarm()
354 return status; ds1305_set_alarm()
368 status = spi_write_then_read(ds1305->spi, buf, 2, NULL, 0); ds1305_set_alarm()
369 if (status < 0) ds1305_set_alarm()
370 return status; ds1305_set_alarm()
384 status = spi_write_then_read(spi, buf, sizeof(buf), NULL, 0); ds1305_set_alarm()
385 if (status < 0) ds1305_set_alarm()
386 return status; ds1305_set_alarm()
394 status = spi_write_then_read(ds1305->spi, buf, 2, NULL, 0); ds1305_set_alarm()
397 return status; ds1305_set_alarm()
461 int status; ds1305_work() local
466 /* Disable the IRQ, and clear its status ... for now, we "know" ds1305_work()
468 * Note that reading ALM data registers also clears IRQ status. ds1305_work()
477 status = spi_write_then_read(spi, buf, sizeof(buf), ds1305_work()
479 if (status < 0) ds1305_work()
480 dev_dbg(&spi->dev, "clear irq --> %d\n", status); ds1305_work()
493 * I/O requests in IRQ context (to clear the IRQ status).
537 int status; ds1305_nvram_read() local
544 status = spi_sync(spi, &m); ds1305_nvram_read()
545 if (status < 0) ds1305_nvram_read()
546 dev_err(&spi->dev, "nvram %s error %d\n", "read", status); ds1305_nvram_read()
547 return (status < 0) ? status : count; ds1305_nvram_read()
559 int status; ds1305_nvram_write() local
566 status = spi_sync(spi, &m); ds1305_nvram_write()
567 if (status < 0) ds1305_nvram_write()
568 dev_err(&spi->dev, "nvram %s error %d\n", "write", status); ds1305_nvram_write()
569 return (status < 0) ? status : count; ds1305_nvram_write()
589 int status; ds1305_probe() local
612 status = spi_write_then_read(spi, &addr, sizeof(addr), ds1305_probe()
614 if (status < 0) { ds1305_probe()
616 "read", status); ds1305_probe()
617 return status; ds1305_probe()
644 status = spi_write_then_read(spi, buf, sizeof(buf), NULL, 0); ds1305_probe()
646 dev_dbg(&spi->dev, "clear WP --> %d\n", status); ds1305_probe()
647 if (status < 0) ds1305_probe()
648 return status; ds1305_probe()
698 status = spi_write_then_read(spi, buf, sizeof(buf), NULL, 0); ds1305_probe()
699 if (status < 0) { ds1305_probe()
701 "write", status); ds1305_probe()
702 return status; ds1305_probe()
710 status = spi_write_then_read(spi, &addr, sizeof(addr), ds1305_probe()
712 if (status < 0) { ds1305_probe()
713 dev_dbg(&spi->dev, "read HOUR --> %d\n", status); ds1305_probe()
714 return status; ds1305_probe()
725 status = PTR_ERR(ds1305->rtc); ds1305_probe()
726 dev_dbg(&spi->dev, "register rtc --> %d\n", status); ds1305_probe()
727 return status; ds1305_probe()
738 status = devm_request_irq(&spi->dev, spi->irq, ds1305_irq, ds1305_probe()
740 if (status < 0) { ds1305_probe()
742 spi->irq, status); ds1305_probe()
749 status = sysfs_create_bin_file(&spi->dev.kobj, &nvram); ds1305_probe()
750 if (status < 0) { ds1305_probe()
751 dev_err(&spi->dev, "register nvram --> %d\n", status); ds1305_probe()
H A Drtc-efi.c123 efi_status_t status; efi_read_alarm() local
126 * As of EFI v1.10, this call always returns an unsupported status efi_read_alarm()
128 status = efi.get_wakeup_time((efi_bool_t *)&wkalrm->enabled, efi_read_alarm()
131 if (status != EFI_SUCCESS) efi_read_alarm()
143 efi_status_t status; efi_set_alarm() local
153 * As of v1.10, this call always returns an unsupported status efi_set_alarm()
155 status = efi.set_wakeup_time((efi_bool_t)wkalrm->enabled, &eft); efi_set_alarm()
157 dev_warn(dev, "write status is %d\n", (int)status); efi_set_alarm()
159 return status == EFI_SUCCESS ? 0 : -EINVAL; efi_set_alarm()
164 efi_status_t status; efi_read_time() local
168 status = efi.get_time(&eft, &cap); efi_read_time()
170 if (status != EFI_SUCCESS) { efi_read_time()
184 efi_status_t status; efi_set_time() local
189 status = efi.set_time(&eft); efi_set_time()
191 return status == EFI_SUCCESS ? 0 : -EINVAL; efi_set_time()
/linux-4.4.14/fs/ocfs2/
H A Dnamei.c113 int status; ocfs2_lookup() local
128 status = ocfs2_inode_lock_nested(dir, NULL, 0, OI_LS_PARENT); ocfs2_lookup()
129 if (status < 0) { ocfs2_lookup()
130 if (status != -ENOENT) ocfs2_lookup()
131 mlog_errno(status); ocfs2_lookup()
132 ret = ERR_PTR(status); ocfs2_lookup()
136 status = ocfs2_lookup_ino_from_name(dir, dentry->d_name.name, ocfs2_lookup()
138 if (status < 0) ocfs2_lookup()
174 status = ocfs2_dentry_attach_lock(dentry, inode, ocfs2_lookup()
176 if (status) { ocfs2_lookup()
177 mlog_errno(status); ocfs2_lookup()
178 ret = ERR_PTR(status); ocfs2_lookup()
201 int status; ocfs2_get_init_inode() local
215 status = dquot_initialize(inode); ocfs2_get_init_inode()
216 if (status) ocfs2_get_init_inode()
217 return ERR_PTR(status); ocfs2_get_init_inode()
242 int status = 0; ocfs2_mknod() local
268 status = dquot_initialize(dir); ocfs2_mknod()
269 if (status) { ocfs2_mknod()
270 mlog_errno(status); ocfs2_mknod()
271 return status; ocfs2_mknod()
277 status = ocfs2_inode_lock(dir, &parent_fe_bh, 1); ocfs2_mknod()
278 if (status < 0) { ocfs2_mknod()
279 if (status != -ENOENT) ocfs2_mknod()
280 mlog_errno(status); ocfs2_mknod()
281 return status; ocfs2_mknod()
285 status = -EMLINK; ocfs2_mknod()
292 status = -ENOENT; ocfs2_mknod()
296 status = ocfs2_check_dir_for_entry(dir, dentry->d_name.name, ocfs2_mknod()
298 if (status) ocfs2_mknod()
302 status = ocfs2_prepare_dir_for_insert(osb, dir, parent_fe_bh, ocfs2_mknod()
305 if (status < 0) { ocfs2_mknod()
306 mlog_errno(status); ocfs2_mknod()
311 status = ocfs2_reserve_new_inode(osb, &inode_ac); ocfs2_mknod()
312 if (status < 0) { ocfs2_mknod()
313 if (status != -ENOSPC) ocfs2_mknod()
314 mlog_errno(status); ocfs2_mknod()
320 status = PTR_ERR(inode); ocfs2_mknod()
322 mlog_errno(status); ocfs2_mknod()
327 status = ocfs2_init_security_get(inode, dir, &dentry->d_name, &si); ocfs2_mknod()
328 if (status) { ocfs2_mknod()
329 if (status == -EOPNOTSUPP) ocfs2_mknod()
332 mlog_errno(status); ocfs2_mknod()
338 status = ocfs2_calc_xattr_init(dir, parent_fe_bh, mode, ocfs2_mknod()
341 if (status < 0) { ocfs2_mknod()
342 mlog_errno(status); ocfs2_mknod()
355 status = ocfs2_reserve_new_metadata_blocks(osb, want_meta, &meta_ac); ocfs2_mknod()
356 if (status < 0) { ocfs2_mknod()
357 if (status != -ENOSPC) ocfs2_mknod()
358 mlog_errno(status); ocfs2_mknod()
362 status = ocfs2_reserve_clusters(osb, want_clusters, &data_ac); ocfs2_mknod()
363 if (status < 0) { ocfs2_mknod()
364 if (status != -ENOSPC) ocfs2_mknod()
365 mlog_errno(status); ocfs2_mknod()
373 status = PTR_ERR(handle); ocfs2_mknod()
375 mlog_errno(status); ocfs2_mknod()
383 status = dquot_alloc_inode(inode); ocfs2_mknod()
384 if (status) ocfs2_mknod()
389 status = ocfs2_mknod_locked(osb, dir, inode, dev, ocfs2_mknod()
392 if (status < 0) { ocfs2_mknod()
393 mlog_errno(status); ocfs2_mknod()
398 status = ocfs2_fill_new_dir(osb, handle, dir, inode, ocfs2_mknod()
400 if (status < 0) { ocfs2_mknod()
401 mlog_errno(status); ocfs2_mknod()
405 status = ocfs2_journal_access_di(handle, INODE_CACHE(dir), ocfs2_mknod()
408 if (status < 0) { ocfs2_mknod()
409 mlog_errno(status); ocfs2_mknod()
417 status = ocfs2_init_acl(handle, inode, dir, new_fe_bh, parent_fe_bh, ocfs2_mknod()
420 if (status < 0) { ocfs2_mknod()
421 mlog_errno(status); ocfs2_mknod()
426 status = ocfs2_init_security_set(handle, inode, new_fe_bh, &si, ocfs2_mknod()
428 if (status < 0) { ocfs2_mknod()
429 mlog_errno(status); ocfs2_mknod()
439 status = ocfs2_dentry_attach_lock(dentry, inode, ocfs2_mknod()
441 if (status) { ocfs2_mknod()
442 mlog_errno(status); ocfs2_mknod()
448 status = ocfs2_add_entry(handle, dentry, inode, ocfs2_mknod()
451 if (status < 0) { ocfs2_mknod()
452 mlog_errno(status); ocfs2_mknod()
458 status = 0; ocfs2_mknod()
460 if (status < 0 && did_quota_inode) ocfs2_mknod()
489 if ((status < 0) && inode) { ocfs2_mknod()
498 if (status) ocfs2_mknod()
499 mlog_errno(status); ocfs2_mknod()
501 return status; ocfs2_mknod()
513 int status = 0; __ocfs2_mknod_locked() local
533 status = -ENOMEM; __ocfs2_mknod_locked()
534 mlog_errno(status); __ocfs2_mknod_locked()
539 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), __ocfs2_mknod_locked()
542 if (status < 0) { __ocfs2_mknod_locked()
543 mlog_errno(status); __ocfs2_mknod_locked()
595 status = ocfs2_create_new_inode_locks(inode); __ocfs2_mknod_locked()
596 if (status < 0) __ocfs2_mknod_locked()
597 mlog_errno(status); __ocfs2_mknod_locked()
604 if (status < 0) { __ocfs2_mknod_locked()
611 if (status) __ocfs2_mknod_locked()
612 mlog_errno(status); __ocfs2_mknod_locked()
613 return status; __ocfs2_mknod_locked()
625 int status = 0; ocfs2_mknod_locked() local
631 status = ocfs2_claim_new_inode(handle, dir, parent_fe_bh, ocfs2_mknod_locked()
634 if (status < 0) { ocfs2_mknod_locked()
635 mlog_errno(status); ocfs2_mknod_locked()
636 return status; ocfs2_mknod_locked()
639 status = __ocfs2_mknod_locked(dir, inode, dev, new_fe_bh, ocfs2_mknod_locked()
642 if (status < 0) { ocfs2_mknod_locked()
650 return status; ocfs2_mknod_locked()
880 int status; ocfs2_unlink() local
900 status = dquot_initialize(dir); ocfs2_unlink()
901 if (status) { ocfs2_unlink()
902 mlog_errno(status); ocfs2_unlink()
903 return status; ocfs2_unlink()
911 status = ocfs2_inode_lock_nested(dir, &parent_node_bh, 1, ocfs2_unlink()
913 if (status < 0) { ocfs2_unlink()
914 if (status != -ENOENT) ocfs2_unlink()
915 mlog_errno(status); ocfs2_unlink()
916 return status; ocfs2_unlink()
919 status = ocfs2_find_files_on_disk(dentry->d_name.name, ocfs2_unlink()
922 if (status < 0) { ocfs2_unlink()
923 if (status != -ENOENT) ocfs2_unlink()
924 mlog_errno(status); ocfs2_unlink()
929 status = -ENOENT; ocfs2_unlink()
938 status = ocfs2_inode_lock(inode, &fe_bh, 1); ocfs2_unlink()
939 if (status < 0) { ocfs2_unlink()
940 if (status != -ENOENT) ocfs2_unlink()
941 mlog_errno(status); ocfs2_unlink()
948 status = -ENOTEMPTY; ocfs2_unlink()
953 status = ocfs2_remote_dentry_delete(dentry); ocfs2_unlink()
954 if (status < 0) { ocfs2_unlink()
957 mlog_errno(status); ocfs2_unlink()
962 status = ocfs2_prepare_orphan_dir(osb, &orphan_dir, ocfs2_unlink()
966 if (status < 0) { ocfs2_unlink()
967 mlog_errno(status); ocfs2_unlink()
975 status = PTR_ERR(handle); ocfs2_unlink()
977 mlog_errno(status); ocfs2_unlink()
981 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), fe_bh, ocfs2_unlink()
983 if (status < 0) { ocfs2_unlink()
984 mlog_errno(status); ocfs2_unlink()
991 status = ocfs2_delete_entry(handle, dir, &lookup); ocfs2_unlink()
992 if (status < 0) { ocfs2_unlink()
993 mlog_errno(status); ocfs2_unlink()
1007 status = ocfs2_mark_inode_dirty(handle, dir, parent_node_bh); ocfs2_unlink()
1008 if (status < 0) { ocfs2_unlink()
1009 mlog_errno(status); ocfs2_unlink()
1016 status = ocfs2_orphan_add(osb, handle, inode, fe_bh, ocfs2_unlink()
1018 if (status < 0) ocfs2_unlink()
1019 mlog_errno(status); ocfs2_unlink()
1044 if (status && (status != -ENOTEMPTY) && (status != -ENOENT)) ocfs2_unlink()
1045 mlog_errno(status); ocfs2_unlink()
1047 return status; ocfs2_unlink()
1120 int status; ocfs2_double_lock() local
1139 status = inode1_is_ancestor; ocfs2_double_lock()
1146 status = inode2_is_ancestor; ocfs2_double_lock()
1158 status = ocfs2_inode_lock_nested(inode2, bh2, 1, ocfs2_double_lock()
1160 if (status < 0) { ocfs2_double_lock()
1161 if (status != -ENOENT) ocfs2_double_lock()
1162 mlog_errno(status); ocfs2_double_lock()
1168 status = ocfs2_inode_lock_nested(inode1, bh1, 1, ocfs2_double_lock()
1170 if (status < 0) { ocfs2_double_lock()
1181 if (status != -ENOENT) ocfs2_double_lock()
1182 mlog_errno(status); ocfs2_double_lock()
1190 if (status) ocfs2_double_lock()
1191 mlog_errno(status); ocfs2_double_lock()
1192 return status; ocfs2_double_lock()
1208 int status = 0, rename_lock = 0, parents_locked = 0, target_exists = 0; ocfs2_rename() local
1238 status = dquot_initialize(old_dir); ocfs2_rename()
1239 if (status) { ocfs2_rename()
1240 mlog_errno(status); ocfs2_rename()
1243 status = dquot_initialize(new_dir); ocfs2_rename()
1244 if (status) { ocfs2_rename()
1245 mlog_errno(status); ocfs2_rename()
1268 status = ocfs2_rename_lock(osb); ocfs2_rename()
1269 if (status < 0) { ocfs2_rename()
1270 mlog_errno(status); ocfs2_rename()
1277 status = ocfs2_check_if_ancestor(osb, new_dir->i_ino, ocfs2_rename()
1279 if (status < 0) { ocfs2_rename()
1280 mlog_errno(status); ocfs2_rename()
1282 } else if (status == 1) { ocfs2_rename()
1283 status = -EPERM; ocfs2_rename()
1292 status = ocfs2_double_lock(osb, &old_dir_bh, old_dir, ocfs2_rename()
1294 if (status < 0) { ocfs2_rename()
1295 mlog_errno(status); ocfs2_rename()
1301 status = -EACCES; ocfs2_rename()
1313 status = -EIO; ocfs2_rename()
1324 status = ocfs2_inode_lock_nested(old_inode, &old_inode_bh, 1, ocfs2_rename()
1326 if (status < 0) { ocfs2_rename()
1327 if (status != -ENOENT) ocfs2_rename()
1328 mlog_errno(status); ocfs2_rename()
1333 status = ocfs2_remote_dentry_delete(old_dentry); ocfs2_rename()
1334 if (status < 0) { ocfs2_rename()
1335 mlog_errno(status); ocfs2_rename()
1343 status = ocfs2_find_files_on_disk("..", 2, &old_inode_parent, ocfs2_rename()
1346 if (status) { ocfs2_rename()
1347 status = -EIO; ocfs2_rename()
1352 status = -EIO; ocfs2_rename()
1358 status = -EMLINK; ocfs2_rename()
1363 status = ocfs2_lookup_ino_from_name(old_dir, old_dentry->d_name.name, ocfs2_rename()
1366 if (status) { ocfs2_rename()
1367 status = -ENOENT; ocfs2_rename()
1378 status = -ENOENT; ocfs2_rename()
1384 status = ocfs2_find_files_on_disk(new_dentry->d_name.name, ocfs2_rename()
1390 if ((status < 0) && (status != -ENOENT)) { ocfs2_rename()
1393 mlog_errno(status); ocfs2_rename()
1396 if (status == 0) ocfs2_rename()
1406 status = -ENOENT; ocfs2_rename()
1419 status = -EACCES; ocfs2_rename()
1427 status = -EACCES; ocfs2_rename()
1436 status = ocfs2_inode_lock(new_inode, &newfe_bh, 1); ocfs2_rename()
1437 if (status < 0) { ocfs2_rename()
1438 if (status != -ENOENT) ocfs2_rename()
1439 mlog_errno(status); ocfs2_rename()
1444 status = ocfs2_remote_dentry_delete(new_dentry); ocfs2_rename()
1445 if (status < 0) { ocfs2_rename()
1446 mlog_errno(status); ocfs2_rename()
1457 status = ocfs2_prepare_orphan_dir(osb, &orphan_dir, ocfs2_rename()
1461 if (status < 0) { ocfs2_rename()
1462 mlog_errno(status); ocfs2_rename()
1470 status = ocfs2_check_dir_for_entry(new_dir, ocfs2_rename()
1473 if (status) ocfs2_rename()
1476 status = ocfs2_prepare_dir_for_insert(osb, new_dir, new_dir_bh, ocfs2_rename()
1480 if (status < 0) { ocfs2_rename()
1481 mlog_errno(status); ocfs2_rename()
1488 status = PTR_ERR(handle); ocfs2_rename()
1490 mlog_errno(status); ocfs2_rename()
1498 status = -ENOTEMPTY; ocfs2_rename()
1502 status = ocfs2_journal_access_di(handle, INODE_CACHE(new_inode), ocfs2_rename()
1505 if (status < 0) { ocfs2_rename()
1506 mlog_errno(status); ocfs2_rename()
1511 status = ocfs2_update_entry(new_dir, handle, &target_lookup_res, ocfs2_rename()
1513 if (status < 0) { ocfs2_rename()
1514 mlog_errno(status); ocfs2_rename()
1525 status = ocfs2_orphan_add(osb, handle, new_inode, ocfs2_rename()
1528 if (status < 0) { ocfs2_rename()
1529 mlog_errno(status); ocfs2_rename()
1535 status = ocfs2_add_entry(handle, new_dentry, old_inode, ocfs2_rename()
1543 status = ocfs2_journal_access_di(handle, INODE_CACHE(old_inode), ocfs2_rename()
1546 if (status >= 0) { ocfs2_rename()
1553 mlog_errno(status); ocfs2_rename()
1562 status = ocfs2_find_entry(old_dentry->d_name.name, ocfs2_rename()
1565 if (status) { ocfs2_rename()
1575 status = ocfs2_delete_entry(handle, old_dir, &old_entry_lookup); ocfs2_rename()
1576 if (status < 0) { ocfs2_rename()
1577 mlog_errno(status); ocfs2_rename()
1594 status = ocfs2_update_entry(old_inode, handle, ocfs2_rename()
1630 status = ocfs2_journal_access_di(handle, ocfs2_rename()
1640 status = 0; ocfs2_rename()
1681 if (status) ocfs2_rename()
1682 mlog_errno(status); ocfs2_rename()
1684 return status; ocfs2_rename()
1700 int virtual, blocks, status, i, bytes_left; ocfs2_create_symlink_data() local
1713 status = -EIO; ocfs2_create_symlink_data()
1714 mlog_errno(status); ocfs2_create_symlink_data()
1720 status = -ENOMEM; ocfs2_create_symlink_data()
1721 mlog_errno(status); ocfs2_create_symlink_data()
1725 status = ocfs2_extent_map_get_blocks(inode, 0, &p_blkno, &p_blocks, ocfs2_create_symlink_data()
1727 if (status < 0) { ocfs2_create_symlink_data()
1728 mlog_errno(status); ocfs2_create_symlink_data()
1736 status = -EIO; ocfs2_create_symlink_data()
1737 mlog_errno(status); ocfs2_create_symlink_data()
1747 status = -ENOMEM; ocfs2_create_symlink_data()
1748 mlog_errno(status); ocfs2_create_symlink_data()
1754 status = ocfs2_journal_access(handle, INODE_CACHE(inode), ocfs2_create_symlink_data()
1757 if (status < 0) { ocfs2_create_symlink_data()
1758 mlog_errno(status); ocfs2_create_symlink_data()
1775 status = 0; ocfs2_create_symlink_data()
1784 if (status) ocfs2_create_symlink_data()
1785 mlog_errno(status); ocfs2_create_symlink_data()
1786 return status; ocfs2_create_symlink_data()
1793 int status, l, credits; ocfs2_symlink() local
1820 status = dquot_initialize(dir); ocfs2_symlink()
1821 if (status) { ocfs2_symlink()
1822 mlog_errno(status); ocfs2_symlink()
1834 status = ocfs2_inode_lock(dir, &parent_fe_bh, 1); ocfs2_symlink()
1835 if (status < 0) { ocfs2_symlink()
1836 if (status != -ENOENT) ocfs2_symlink()
1837 mlog_errno(status); ocfs2_symlink()
1838 return status; ocfs2_symlink()
1844 status = -ENOENT; ocfs2_symlink()
1848 status = ocfs2_check_dir_for_entry(dir, dentry->d_name.name, ocfs2_symlink()
1850 if (status) ocfs2_symlink()
1853 status = ocfs2_prepare_dir_for_insert(osb, dir, parent_fe_bh, ocfs2_symlink()
1856 if (status < 0) { ocfs2_symlink()
1857 mlog_errno(status); ocfs2_symlink()
1861 status = ocfs2_reserve_new_inode(osb, &inode_ac); ocfs2_symlink()
1862 if (status < 0) { ocfs2_symlink()
1863 if (status != -ENOSPC) ocfs2_symlink()
1864 mlog_errno(status); ocfs2_symlink()
1870 status = PTR_ERR(inode); ocfs2_symlink()
1872 mlog_errno(status); ocfs2_symlink()
1877 status = ocfs2_init_security_get(inode, dir, &dentry->d_name, &si); ocfs2_symlink()
1878 if (status) { ocfs2_symlink()
1879 if (status == -EOPNOTSUPP) ocfs2_symlink()
1882 mlog_errno(status); ocfs2_symlink()
1889 status = ocfs2_calc_security_init(dir, &si, &want_clusters, ocfs2_symlink()
1891 if (status < 0) { ocfs2_symlink()
1892 mlog_errno(status); ocfs2_symlink()
1901 status = ocfs2_reserve_clusters(osb, want_clusters, &data_ac); ocfs2_symlink()
1902 if (status < 0) { ocfs2_symlink()
1903 if (status != -ENOSPC) ocfs2_symlink()
1904 mlog_errno(status); ocfs2_symlink()
1910 status = PTR_ERR(handle); ocfs2_symlink()
1912 mlog_errno(status); ocfs2_symlink()
1920 status = dquot_alloc_inode(inode); ocfs2_symlink()
1921 if (status) ocfs2_symlink()
1930 status = ocfs2_mknod_locked(osb, dir, inode, ocfs2_symlink()
1933 if (status < 0) { ocfs2_symlink()
1934 mlog_errno(status); ocfs2_symlink()
1945 status = dquot_alloc_space_nodirty(inode, ocfs2_symlink()
1947 if (status) ocfs2_symlink()
1951 status = ocfs2_add_inode_data(osb, inode, &offset, 1, 0, ocfs2_symlink()
1955 if (status < 0) { ocfs2_symlink()
1956 if (status != -ENOSPC && status != -EINTR) { ocfs2_symlink()
1960 mlog_errno(status); ocfs2_symlink()
1961 status = -ENOSPC; ocfs2_symlink()
1974 status = ocfs2_mark_inode_dirty(handle, inode, new_fe_bh); ocfs2_symlink()
1975 if (status < 0) { ocfs2_symlink()
1976 mlog_errno(status); ocfs2_symlink()
1981 status = ocfs2_create_symlink_data(osb, handle, inode, ocfs2_symlink()
1983 if (status < 0) { ocfs2_symlink()
1984 mlog_errno(status); ocfs2_symlink()
1990 status = ocfs2_init_security_set(handle, inode, new_fe_bh, &si, ocfs2_symlink()
1992 if (status < 0) { ocfs2_symlink()
1993 mlog_errno(status); ocfs2_symlink()
2003 status = ocfs2_dentry_attach_lock(dentry, inode, OCFS2_I(dir)->ip_blkno); ocfs2_symlink()
2004 if (status) { ocfs2_symlink()
2005 mlog_errno(status); ocfs2_symlink()
2011 status = ocfs2_add_entry(handle, dentry, inode, ocfs2_symlink()
2014 if (status < 0) { ocfs2_symlink()
2015 mlog_errno(status); ocfs2_symlink()
2022 if (status < 0 && did_quota) ocfs2_symlink()
2025 if (status < 0 && did_quota_inode) ocfs2_symlink()
2044 if ((status < 0) && inode) { ocfs2_symlink()
2053 if (status) ocfs2_symlink()
2054 mlog_errno(status); ocfs2_symlink()
2056 return status; ocfs2_symlink()
2061 int status, namelen; ocfs2_blkno_stringify() local
2067 status = namelen; ocfs2_blkno_stringify()
2069 status = -EINVAL; ocfs2_blkno_stringify()
2070 mlog_errno(status); ocfs2_blkno_stringify()
2074 status = -EINVAL; ocfs2_blkno_stringify()
2075 mlog_errno(status); ocfs2_blkno_stringify()
2081 status = 0; ocfs2_blkno_stringify()
2083 if (status < 0) ocfs2_blkno_stringify()
2084 mlog_errno(status); ocfs2_blkno_stringify()
2085 return status; ocfs2_blkno_stringify()
2229 int status = 0; ocfs2_orphan_add() local
2239 status = ocfs2_read_inode_block(orphan_dir_inode, &orphan_dir_bh); ocfs2_orphan_add()
2240 if (status < 0) { ocfs2_orphan_add()
2241 mlog_errno(status); ocfs2_orphan_add()
2245 status = ocfs2_journal_access_di(handle, ocfs2_orphan_add()
2249 if (status < 0) { ocfs2_orphan_add()
2250 mlog_errno(status); ocfs2_orphan_add()
2260 status = ocfs2_journal_access_di(handle, ocfs2_orphan_add()
2264 if (status < 0) { ocfs2_orphan_add()
2265 mlog_errno(status); ocfs2_orphan_add()
2277 status = __ocfs2_add_entry(handle, orphan_dir_inode, name, ocfs2_orphan_add()
2281 if (status < 0) { ocfs2_orphan_add()
2282 mlog_errno(status); ocfs2_orphan_add()
2308 if (status < 0) { ocfs2_orphan_add()
2317 return status; ocfs2_orphan_add()
2331 int status = 0; ocfs2_orphan_del() local
2335 status = snprintf(name, OCFS2_DIO_ORPHAN_PREFIX_LEN + 1, "%s", ocfs2_orphan_del()
2337 if (status != OCFS2_DIO_ORPHAN_PREFIX_LEN) { ocfs2_orphan_del()
2338 status = -EINVAL; ocfs2_orphan_del()
2339 mlog_errno(status); ocfs2_orphan_del()
2340 return status; ocfs2_orphan_del()
2343 status = ocfs2_blkno_stringify(OCFS2_I(inode)->ip_blkno, ocfs2_orphan_del()
2346 status = ocfs2_blkno_stringify(OCFS2_I(inode)->ip_blkno, name); ocfs2_orphan_del()
2347 if (status < 0) { ocfs2_orphan_del()
2348 mlog_errno(status); ocfs2_orphan_del()
2357 status = ocfs2_find_entry(name, strlen(name), orphan_dir_inode, ocfs2_orphan_del()
2359 if (status) { ocfs2_orphan_del()
2360 mlog_errno(status); ocfs2_orphan_del()
2365 status = ocfs2_delete_entry(handle, orphan_dir_inode, &lookup); ocfs2_orphan_del()
2366 if (status < 0) { ocfs2_orphan_del()
2367 mlog_errno(status); ocfs2_orphan_del()
2371 status = ocfs2_journal_access_di(handle, ocfs2_orphan_del()
2375 if (status < 0) { ocfs2_orphan_del()
2376 mlog_errno(status); ocfs2_orphan_del()
2390 if (status) ocfs2_orphan_del()
2391 mlog_errno(status); ocfs2_orphan_del()
2392 return status; ocfs2_orphan_del()
2493 int status, did_quota_inode = 0; ocfs2_create_inode_in_orphan() local
2507 status = ocfs2_inode_lock(dir, &parent_di_bh, 1); ocfs2_create_inode_in_orphan()
2508 if (status < 0) { ocfs2_create_inode_in_orphan()
2509 if (status != -ENOENT) ocfs2_create_inode_in_orphan()
2510 mlog_errno(status); ocfs2_create_inode_in_orphan()
2511 return status; ocfs2_create_inode_in_orphan()
2514 status = ocfs2_prep_new_orphaned_file(dir, parent_di_bh, ocfs2_create_inode_in_orphan()
2517 if (status < 0) { ocfs2_create_inode_in_orphan()
2518 if (status != -ENOSPC) ocfs2_create_inode_in_orphan()
2519 mlog_errno(status); ocfs2_create_inode_in_orphan()
2525 status = PTR_ERR(inode); ocfs2_create_inode_in_orphan()
2527 mlog_errno(status); ocfs2_create_inode_in_orphan()
2533 status = PTR_ERR(handle); ocfs2_create_inode_in_orphan()
2535 mlog_errno(status); ocfs2_create_inode_in_orphan()
2539 status = dquot_alloc_inode(inode); ocfs2_create_inode_in_orphan()
2540 if (status) ocfs2_create_inode_in_orphan()
2544 status = ocfs2_claim_new_inode_at_loc(handle, dir, inode_ac, ocfs2_create_inode_in_orphan()
2547 if (status < 0) { ocfs2_create_inode_in_orphan()
2548 mlog_errno(status); ocfs2_create_inode_in_orphan()
2554 status = __ocfs2_mknod_locked(dir, inode, ocfs2_create_inode_in_orphan()
2558 if (status < 0) { ocfs2_create_inode_in_orphan()
2559 mlog_errno(status); ocfs2_create_inode_in_orphan()
2564 status = ocfs2_orphan_add(osb, handle, inode, new_di_bh, orphan_name, ocfs2_create_inode_in_orphan()
2566 if (status < 0) { ocfs2_create_inode_in_orphan()
2567 mlog_errno(status); ocfs2_create_inode_in_orphan()
2572 status = ocfs2_open_lock(inode); ocfs2_create_inode_in_orphan()
2573 if (status < 0) ocfs2_create_inode_in_orphan()
2574 mlog_errno(status); ocfs2_create_inode_in_orphan()
2578 if (status < 0 && did_quota_inode) ocfs2_create_inode_in_orphan()
2590 if ((status < 0) && inode) { ocfs2_create_inode_in_orphan()
2600 if (!status) ocfs2_create_inode_in_orphan()
2607 return status; ocfs2_create_inode_in_orphan()
2617 int status = 0; ocfs2_add_inode_to_orphan() local
2621 status = ocfs2_inode_lock(inode, &di_bh, 1); ocfs2_add_inode_to_orphan()
2622 if (status < 0) { ocfs2_add_inode_to_orphan()
2623 mlog_errno(status); ocfs2_add_inode_to_orphan()
2633 status = ocfs2_truncate_file(inode, di_bh, i_size_read(inode)); ocfs2_add_inode_to_orphan()
2634 if (status < 0) { ocfs2_add_inode_to_orphan()
2635 if (status != -ENOSPC) ocfs2_add_inode_to_orphan()
2636 mlog_errno(status); ocfs2_add_inode_to_orphan()
2640 status = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0); ocfs2_add_inode_to_orphan()
2641 if (status < 0) { ocfs2_add_inode_to_orphan()
2642 mlog_errno(status); ocfs2_add_inode_to_orphan()
2647 status = ocfs2_prepare_orphan_dir(osb, &orphan_dir_inode, ocfs2_add_inode_to_orphan()
2652 if (status < 0) { ocfs2_add_inode_to_orphan()
2653 mlog_errno(status); ocfs2_add_inode_to_orphan()
2660 status = PTR_ERR(handle); ocfs2_add_inode_to_orphan()
2664 status = ocfs2_orphan_add(osb, handle, inode, di_bh, orphan_name, ocfs2_add_inode_to_orphan()
2666 if (status) ocfs2_add_inode_to_orphan()
2667 mlog_errno(status); ocfs2_add_inode_to_orphan()
2683 return status; ocfs2_add_inode_to_orphan()
2694 int status = 0; ocfs2_del_inode_from_orphan() local
2700 status = -ENOENT; ocfs2_del_inode_from_orphan()
2701 mlog_errno(status); ocfs2_del_inode_from_orphan()
2706 status = ocfs2_inode_lock(orphan_dir_inode, &orphan_dir_bh, 1); ocfs2_del_inode_from_orphan()
2707 if (status < 0) { ocfs2_del_inode_from_orphan()
2710 mlog_errno(status); ocfs2_del_inode_from_orphan()
2717 status = PTR_ERR(handle); ocfs2_del_inode_from_orphan()
2723 status = ocfs2_orphan_del(osb, handle, orphan_dir_inode, ocfs2_del_inode_from_orphan()
2725 if (status < 0) { ocfs2_del_inode_from_orphan()
2726 mlog_errno(status); ocfs2_del_inode_from_orphan()
2730 status = ocfs2_journal_access_di(handle, ocfs2_del_inode_from_orphan()
2734 if (status < 0) { ocfs2_del_inode_from_orphan()
2735 mlog_errno(status); ocfs2_del_inode_from_orphan()
2743 status = ocfs2_set_inode_size(handle, inode, di_bh, end); ocfs2_del_inode_from_orphan()
2744 if (status) ocfs2_del_inode_from_orphan()
2745 mlog_errno(status); ocfs2_del_inode_from_orphan()
2759 return status; ocfs2_del_inode_from_orphan()
2766 int status = 0; ocfs2_mv_orphaned_inode_to_new() local
2781 status = ocfs2_inode_lock(dir, &parent_di_bh, 1); ocfs2_mv_orphaned_inode_to_new()
2782 if (status < 0) { ocfs2_mv_orphaned_inode_to_new()
2783 if (status != -ENOENT) ocfs2_mv_orphaned_inode_to_new()
2784 mlog_errno(status); ocfs2_mv_orphaned_inode_to_new()
2785 return status; ocfs2_mv_orphaned_inode_to_new()
2791 status = -ENOENT; ocfs2_mv_orphaned_inode_to_new()
2795 status = ocfs2_check_dir_for_entry(dir, dentry->d_name.name, ocfs2_mv_orphaned_inode_to_new()
2797 if (status) ocfs2_mv_orphaned_inode_to_new()
2801 status = ocfs2_prepare_dir_for_insert(osb, dir, parent_di_bh, ocfs2_mv_orphaned_inode_to_new()
2804 if (status < 0) { ocfs2_mv_orphaned_inode_to_new()
2805 mlog_errno(status); ocfs2_mv_orphaned_inode_to_new()
2813 status = -ENOENT; ocfs2_mv_orphaned_inode_to_new()
2814 mlog_errno(status); ocfs2_mv_orphaned_inode_to_new()
2820 status = ocfs2_inode_lock(orphan_dir_inode, &orphan_dir_bh, 1); ocfs2_mv_orphaned_inode_to_new()
2821 if (status < 0) { ocfs2_mv_orphaned_inode_to_new()
2822 mlog_errno(status); ocfs2_mv_orphaned_inode_to_new()
2828 status = ocfs2_read_inode_block(inode, &di_bh); ocfs2_mv_orphaned_inode_to_new()
2829 if (status < 0) { ocfs2_mv_orphaned_inode_to_new()
2830 mlog_errno(status); ocfs2_mv_orphaned_inode_to_new()
2836 status = PTR_ERR(handle); ocfs2_mv_orphaned_inode_to_new()
2838 mlog_errno(status); ocfs2_mv_orphaned_inode_to_new()
2842 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), ocfs2_mv_orphaned_inode_to_new()
2844 if (status < 0) { ocfs2_mv_orphaned_inode_to_new()
2845 mlog_errno(status); ocfs2_mv_orphaned_inode_to_new()
2849 status = ocfs2_orphan_del(osb, handle, orphan_dir_inode, inode, ocfs2_mv_orphaned_inode_to_new()
2851 if (status < 0) { ocfs2_mv_orphaned_inode_to_new()
2852 mlog_errno(status); ocfs2_mv_orphaned_inode_to_new()
2864 status = ocfs2_add_entry(handle, dentry, inode, ocfs2_mv_orphaned_inode_to_new()
2867 if (status < 0) { ocfs2_mv_orphaned_inode_to_new()
2868 mlog_errno(status); ocfs2_mv_orphaned_inode_to_new()
2872 status = ocfs2_dentry_attach_lock(dentry, inode, ocfs2_mv_orphaned_inode_to_new()
2874 if (status) { ocfs2_mv_orphaned_inode_to_new()
2875 mlog_errno(status); ocfs2_mv_orphaned_inode_to_new()
2880 status = 0; ocfs2_mv_orphaned_inode_to_new()
2897 if (status) ocfs2_mv_orphaned_inode_to_new()
2898 mlog_errno(status); ocfs2_mv_orphaned_inode_to_new()
2900 return status; ocfs2_mv_orphaned_inode_to_new()
H A Dquota_local.c98 int status; ocfs2_modify_bh() local
103 status = PTR_ERR(handle); ocfs2_modify_bh()
104 mlog_errno(status); ocfs2_modify_bh()
105 return status; ocfs2_modify_bh()
107 status = ocfs2_journal_access_dq(handle, INODE_CACHE(inode), bh, ocfs2_modify_bh()
109 if (status < 0) { ocfs2_modify_bh()
110 mlog_errno(status); ocfs2_modify_bh()
112 return status; ocfs2_modify_bh()
119 status = ocfs2_commit_trans(OCFS2_SB(sb), handle); ocfs2_modify_bh()
120 if (status < 0) { ocfs2_modify_bh()
121 mlog_errno(status); ocfs2_modify_bh()
122 return status; ocfs2_modify_bh()
172 int status, ret = 0; ocfs2_local_check_quota_file() local
175 status = ocfs2_read_quota_block(linode, 0, &bh); ocfs2_local_check_quota_file()
176 if (status) { ocfs2_local_check_quota_file()
177 mlog_errno(status); ocfs2_local_check_quota_file()
207 status = ocfs2_read_quota_block(ginode, 0, &bh); ocfs2_local_check_quota_file()
208 if (status) { ocfs2_local_check_quota_file()
209 mlog_errno(status); ocfs2_local_check_quota_file()
254 int i, status; ocfs2_load_local_quota_bitmaps() local
265 status = ocfs2_read_quota_block(inode, ocfs2_load_local_quota_bitmaps()
268 if (status) { ocfs2_load_local_quota_bitmaps()
269 mlog_errno(status); ocfs2_load_local_quota_bitmaps()
272 return status; ocfs2_load_local_quota_bitmaps()
347 int status = 0; ocfs2_recovery_load_quota() local
351 status = ocfs2_read_quota_block(lqinode, ocfs2_recovery_load_quota()
354 if (status) { ocfs2_recovery_load_quota()
355 mlog_errno(status); ocfs2_recovery_load_quota()
360 status = ocfs2_add_recovery_chunk(sb, dchunk, i, head); ocfs2_recovery_load_quota()
362 if (status < 0) ocfs2_recovery_load_quota()
365 if (status < 0) ocfs2_recovery_load_quota()
367 return status; ocfs2_recovery_load_quota()
398 int status = 0; ocfs2_begin_quota_recovery() local
416 status = -ENOENT; ocfs2_begin_quota_recovery()
419 status = ocfs2_inode_lock_full(lqinode, NULL, 1, ocfs2_begin_quota_recovery()
421 if (status < 0) { ocfs2_begin_quota_recovery()
422 mlog_errno(status); ocfs2_begin_quota_recovery()
427 status = ocfs2_read_quota_block(lqinode, 0, &bh); ocfs2_begin_quota_recovery()
428 if (status) { ocfs2_begin_quota_recovery()
429 mlog_errno(status); ocfs2_begin_quota_recovery()
436 status = ocfs2_recovery_load_quota(lqinode, ldinfo, type, ocfs2_begin_quota_recovery()
443 if (status < 0) ocfs2_begin_quota_recovery()
447 if (status < 0) { ocfs2_begin_quota_recovery()
449 rec = ERR_PTR(status); ocfs2_begin_quota_recovery()
469 int status = 0; ocfs2_recover_local_quota_file() local
479 status = ocfs2_read_quota_block(lqinode, ocfs2_recover_local_quota_file()
482 if (status) { ocfs2_recover_local_quota_file()
483 mlog_errno(status); ocfs2_recover_local_quota_file()
489 status = ocfs2_read_quota_block(lqinode, ocfs2_recover_local_quota_file()
492 if (status) { ocfs2_recover_local_quota_file()
493 mlog_errno(status); ocfs2_recover_local_quota_file()
502 status = PTR_ERR(dquot); ocfs2_recover_local_quota_file()
510 status = ocfs2_lock_global_qf(oinfo, 1); ocfs2_recover_local_quota_file()
511 if (status < 0) { ocfs2_recover_local_quota_file()
512 mlog_errno(status); ocfs2_recover_local_quota_file()
519 status = PTR_ERR(handle); ocfs2_recover_local_quota_file()
520 mlog_errno(status); ocfs2_recover_local_quota_file()
536 status = ocfs2_global_release_dquot(dquot); ocfs2_recover_local_quota_file()
537 if (status < 0) { ocfs2_recover_local_quota_file()
538 mlog_errno(status); ocfs2_recover_local_quota_file()
542 status = ocfs2_journal_access_dq(handle, ocfs2_recover_local_quota_file()
545 if (status < 0) { ocfs2_recover_local_quota_file()
546 mlog_errno(status); ocfs2_recover_local_quota_file()
564 if (status < 0) ocfs2_recover_local_quota_file()
571 if (status < 0) ocfs2_recover_local_quota_file()
574 if (status < 0) ocfs2_recover_local_quota_file()
576 if (status) ocfs2_recover_local_quota_file()
577 mlog_errno(status); ocfs2_recover_local_quota_file()
578 return status; ocfs2_recover_local_quota_file()
593 int status = 0; ocfs2_finish_quota_recovery() local
607 status = -ENOENT; ocfs2_finish_quota_recovery()
610 status = ocfs2_inode_lock_full(lqinode, NULL, 1, ocfs2_finish_quota_recovery()
614 if (status == -EAGAIN) { ocfs2_finish_quota_recovery()
618 status = 0; ocfs2_finish_quota_recovery()
620 } else if (status < 0) { ocfs2_finish_quota_recovery()
621 mlog_errno(status); ocfs2_finish_quota_recovery()
626 status = ocfs2_read_quota_block(lqinode, 0, &bh); ocfs2_finish_quota_recovery()
627 if (status) { ocfs2_finish_quota_recovery()
628 mlog_errno(status); ocfs2_finish_quota_recovery()
638 status = ocfs2_recover_local_quota_file(lqinode, ocfs2_finish_quota_recovery()
650 status = PTR_ERR(handle); ocfs2_finish_quota_recovery()
651 mlog_errno(status); ocfs2_finish_quota_recovery()
654 status = ocfs2_journal_access_dq(handle, INODE_CACHE(lqinode), ocfs2_finish_quota_recovery()
657 if (status < 0) { ocfs2_finish_quota_recovery()
658 mlog_errno(status); ocfs2_finish_quota_recovery()
673 if (status < 0) ocfs2_finish_quota_recovery()
679 return status; ocfs2_finish_quota_recovery()
689 int status; ocfs2_local_read_info() local
712 status = ocfs2_global_read_info(sb, type); ocfs2_local_read_info()
713 if (status < 0) ocfs2_local_read_info()
716 status = ocfs2_inode_lock(lqinode, &oinfo->dqi_lqi_bh, 1); ocfs2_local_read_info()
717 if (status < 0) { ocfs2_local_read_info()
718 mlog_errno(status); ocfs2_local_read_info()
724 status = ocfs2_read_quota_block(lqinode, 0, &bh); ocfs2_local_read_info()
725 if (status) { ocfs2_local_read_info()
726 mlog_errno(status); ocfs2_local_read_info()
744 status = -ENOMEM; ocfs2_local_read_info()
745 mlog_errno(status); ocfs2_local_read_info()
751 status = ocfs2_recovery_load_quota(lqinode, ldinfo, type, ocfs2_local_read_info()
753 if (status < 0) { ocfs2_local_read_info()
754 mlog_errno(status); ocfs2_local_read_info()
759 status = ocfs2_load_local_quota_bitmaps(lqinode, ocfs2_local_read_info()
762 if (status < 0) { ocfs2_local_read_info()
763 mlog_errno(status); ocfs2_local_read_info()
769 status = ocfs2_modify_bh(lqinode, bh, olq_update_info, info); ocfs2_local_read_info()
770 if (status < 0) { ocfs2_local_read_info()
771 mlog_errno(status); ocfs2_local_read_info()
799 int status; ocfs2_local_write_info() local
801 status = ocfs2_modify_bh(sb_dqopt(sb)->files[type], bh, olq_update_info, ocfs2_local_write_info()
803 if (status < 0) { ocfs2_local_write_info()
804 mlog_errno(status); ocfs2_local_write_info()
819 int status; ocfs2_local_free_info() local
854 status = ocfs2_modify_bh(sb_dqopt(sb)->files[type], ocfs2_local_free_info()
858 if (status < 0) { ocfs2_local_free_info()
859 mlog_errno(status); ocfs2_local_free_info()
901 int status; ocfs2_local_write_dquot() local
903 status = ocfs2_read_quota_phys_block(lqinode, od->dq_local_phys_blk, ocfs2_local_write_dquot()
905 if (status) { ocfs2_local_write_dquot()
906 mlog_errno(status); ocfs2_local_write_dquot()
909 status = ocfs2_modify_bh(lqinode, bh, olq_set_dquot, od); ocfs2_local_write_dquot()
910 if (status < 0) { ocfs2_local_write_dquot()
911 mlog_errno(status); ocfs2_local_write_dquot()
916 return status; ocfs2_local_write_dquot()
972 int status; ocfs2_local_quota_add_chunk() local
978 status = ocfs2_extend_no_holes(lqinode, NULL, ocfs2_local_quota_add_chunk()
981 if (status < 0) { ocfs2_local_quota_add_chunk()
982 mlog_errno(status); ocfs2_local_quota_add_chunk()
985 status = ocfs2_simple_size_update(lqinode, oinfo->dqi_lqi_bh, ocfs2_local_quota_add_chunk()
987 if (status < 0) { ocfs2_local_quota_add_chunk()
988 mlog_errno(status); ocfs2_local_quota_add_chunk()
994 status = -ENOMEM; ocfs2_local_quota_add_chunk()
995 mlog_errno(status); ocfs2_local_quota_add_chunk()
1003 status = PTR_ERR(handle); ocfs2_local_quota_add_chunk()
1004 mlog_errno(status); ocfs2_local_quota_add_chunk()
1009 status = ocfs2_extent_map_get_blocks(lqinode, oinfo->dqi_blocks, ocfs2_local_quota_add_chunk()
1011 if (status < 0) { ocfs2_local_quota_add_chunk()
1012 mlog_errno(status); ocfs2_local_quota_add_chunk()
1017 status = -ENOMEM; ocfs2_local_quota_add_chunk()
1018 mlog_errno(status); ocfs2_local_quota_add_chunk()
1023 status = ocfs2_journal_access_dq(handle, INODE_CACHE(lqinode), bh, ocfs2_local_quota_add_chunk()
1025 if (status < 0) { ocfs2_local_quota_add_chunk()
1026 mlog_errno(status); ocfs2_local_quota_add_chunk()
1038 status = ocfs2_extent_map_get_blocks(lqinode, oinfo->dqi_blocks + 1, ocfs2_local_quota_add_chunk()
1040 if (status < 0) { ocfs2_local_quota_add_chunk()
1041 mlog_errno(status); ocfs2_local_quota_add_chunk()
1046 status = -ENOMEM; ocfs2_local_quota_add_chunk()
1047 mlog_errno(status); ocfs2_local_quota_add_chunk()
1051 status = ocfs2_journal_access_dq(handle, INODE_CACHE(lqinode), dbh, ocfs2_local_quota_add_chunk()
1053 if (status < 0) { ocfs2_local_quota_add_chunk()
1054 mlog_errno(status); ocfs2_local_quota_add_chunk()
1065 status = ocfs2_local_write_info(sb, type); ocfs2_local_quota_add_chunk()
1066 if (status < 0) { ocfs2_local_quota_add_chunk()
1067 mlog_errno(status); ocfs2_local_quota_add_chunk()
1070 status = ocfs2_commit_trans(OCFS2_SB(sb), handle); ocfs2_local_quota_add_chunk()
1071 if (status < 0) { ocfs2_local_quota_add_chunk()
1072 mlog_errno(status); ocfs2_local_quota_add_chunk()
1089 return ERR_PTR(status); ocfs2_local_quota_add_chunk()
1107 int status; ocfs2_extend_local_quota_file() local
1121 status = ocfs2_extend_no_holes(lqinode, NULL, ocfs2_extend_local_quota_file()
1124 if (status < 0) { ocfs2_extend_local_quota_file()
1125 mlog_errno(status); ocfs2_extend_local_quota_file()
1128 status = ocfs2_simple_size_update(lqinode, oinfo->dqi_lqi_bh, ocfs2_extend_local_quota_file()
1130 if (status < 0) { ocfs2_extend_local_quota_file()
1131 mlog_errno(status); ocfs2_extend_local_quota_file()
1136 status = ocfs2_extent_map_get_blocks(lqinode, oinfo->dqi_blocks, ocfs2_extend_local_quota_file()
1138 if (status < 0) { ocfs2_extend_local_quota_file()
1139 mlog_errno(status); ocfs2_extend_local_quota_file()
1144 status = -ENOMEM; ocfs2_extend_local_quota_file()
1145 mlog_errno(status); ocfs2_extend_local_quota_file()
1155 status = PTR_ERR(handle); ocfs2_extend_local_quota_file()
1156 mlog_errno(status); ocfs2_extend_local_quota_file()
1160 status = ocfs2_journal_access_dq(handle, INODE_CACHE(lqinode), bh, ocfs2_extend_local_quota_file()
1162 if (status < 0) { ocfs2_extend_local_quota_file()
1163 mlog_errno(status); ocfs2_extend_local_quota_file()
1172 status = ocfs2_journal_access_dq(handle, INODE_CACHE(lqinode), ocfs2_extend_local_quota_file()
1175 if (status < 0) { ocfs2_extend_local_quota_file()
1176 mlog_errno(status); ocfs2_extend_local_quota_file()
1188 status = ocfs2_local_write_info(sb, type); ocfs2_extend_local_quota_file()
1189 if (status < 0) { ocfs2_extend_local_quota_file()
1190 mlog_errno(status); ocfs2_extend_local_quota_file()
1194 status = ocfs2_commit_trans(OCFS2_SB(sb), handle); ocfs2_extend_local_quota_file()
1195 if (status < 0) { ocfs2_extend_local_quota_file()
1196 mlog_errno(status); ocfs2_extend_local_quota_file()
1204 return ERR_PTR(status); ocfs2_extend_local_quota_file()
1226 int status; ocfs2_create_local_dquot() local
1234 status = PTR_ERR(chunk); ocfs2_create_local_dquot()
1238 status = PTR_ERR(chunk); ocfs2_create_local_dquot()
1243 status = ocfs2_extent_map_get_blocks(lqinode, ocfs2_create_local_dquot()
1250 status = ocfs2_local_write_dquot(dquot); ocfs2_create_local_dquot()
1251 if (status < 0) { ocfs2_create_local_dquot()
1252 mlog_errno(status); ocfs2_create_local_dquot()
1257 status = ocfs2_modify_bh(lqinode, chunk->qc_headerbh, olq_alloc_dquot, ocfs2_create_local_dquot()
1259 if (status < 0) { ocfs2_create_local_dquot()
1260 mlog_errno(status); ocfs2_create_local_dquot()
1265 return status; ocfs2_create_local_dquot()
1274 int status; ocfs2_local_release_dquot() local
1281 status = ocfs2_journal_access_dq(handle, ocfs2_local_release_dquot()
1284 if (status < 0) { ocfs2_local_release_dquot()
1285 mlog_errno(status); ocfs2_local_release_dquot()
1300 return status; ocfs2_local_release_dquot()
H A Dioctl.c65 int status; ocfs2_get_inode_attr() local
67 status = ocfs2_inode_lock(inode, NULL, 0); ocfs2_get_inode_attr()
68 if (status < 0) { ocfs2_get_inode_attr()
69 mlog_errno(status); ocfs2_get_inode_attr()
70 return status; ocfs2_get_inode_attr()
76 return status; ocfs2_get_inode_attr()
87 int status; ocfs2_set_inode_attr() local
91 status = ocfs2_inode_lock(inode, &bh, 1); ocfs2_set_inode_attr()
92 if (status < 0) { ocfs2_set_inode_attr()
93 mlog_errno(status); ocfs2_set_inode_attr()
97 status = -EACCES; ocfs2_set_inode_attr()
112 status = -EPERM; ocfs2_set_inode_attr()
121 status = PTR_ERR(handle); ocfs2_set_inode_attr()
122 mlog_errno(status); ocfs2_set_inode_attr()
129 status = ocfs2_mark_inode_dirty(handle, inode, bh); ocfs2_set_inode_attr()
130 if (status < 0) ocfs2_set_inode_attr()
131 mlog_errno(status); ocfs2_set_inode_attr()
142 return status; ocfs2_set_inode_attr()
284 int status = 0, unlock = 0; ocfs2_info_scan_inode_alloc() local
293 status = ocfs2_inode_lock(inode_alloc, &bh, 0); ocfs2_info_scan_inode_alloc()
294 if (status < 0) { ocfs2_info_scan_inode_alloc()
295 mlog_errno(status); ocfs2_info_scan_inode_alloc()
300 status = ocfs2_read_blocks_sync(osb, blkno, 1, &bh); ocfs2_info_scan_inode_alloc()
301 if (status < 0) { ocfs2_info_scan_inode_alloc()
302 mlog_errno(status); ocfs2_info_scan_inode_alloc()
324 return status; ocfs2_info_scan_inode_alloc()
333 int status, type = INODE_ALLOC_SYSTEM_INODE; ocfs2_info_handle_freeinode() local
340 status = -ENOMEM; ocfs2_info_handle_freeinode()
341 mlog_errno(status); ocfs2_info_handle_freeinode()
346 status = -EFAULT; ocfs2_info_handle_freeinode()
358 status = -EIO; ocfs2_info_handle_freeinode()
365 status = ocfs2_lookup_ino_from_name(osb->sys_root_inode, ocfs2_info_handle_freeinode()
369 if (status < 0) { ocfs2_info_handle_freeinode()
370 status = -ENOENT; ocfs2_info_handle_freeinode()
375 status = ocfs2_info_scan_inode_alloc(osb, inode_alloc, blkno, oifi, i); ocfs2_info_handle_freeinode()
380 if (status < 0) ocfs2_info_handle_freeinode()
387 status = -EFAULT; ocfs2_info_handle_freeinode()
391 status = 0; ocfs2_info_handle_freeinode()
393 if (status) ocfs2_info_handle_freeinode()
398 return status; ocfs2_info_handle_freeinode()
441 int status = 0, used; ocfs2_info_freefrag_scan_chain() local
466 status = ocfs2_read_group_descriptor(gb_inode, ocfs2_info_freefrag_scan_chain()
470 status = ocfs2_read_blocks_sync(osb, blkno, 1, &bh); ocfs2_info_freefrag_scan_chain()
472 if (status < 0) { ocfs2_info_freefrag_scan_chain()
475 status = -EIO; ocfs2_info_freefrag_scan_chain()
534 return status; ocfs2_info_freefrag_scan_chain()
542 int status = 0, unlock = 0, i; ocfs2_info_freefrag_scan_bitmap() local
553 status = ocfs2_inode_lock(gb_inode, &bh, 0); ocfs2_info_freefrag_scan_bitmap()
554 if (status < 0) { ocfs2_info_freefrag_scan_bitmap()
555 mlog_errno(status); ocfs2_info_freefrag_scan_bitmap()
560 status = ocfs2_read_blocks_sync(osb, blkno, 1, &bh); ocfs2_info_freefrag_scan_bitmap()
561 if (status < 0) { ocfs2_info_freefrag_scan_bitmap()
562 mlog_errno(status); ocfs2_info_freefrag_scan_bitmap()
575 status = -EINVAL; ocfs2_info_freefrag_scan_bitmap()
591 status = ocfs2_info_freefrag_scan_chain(osb, gb_inode, ocfs2_info_freefrag_scan_bitmap()
595 if (status) ocfs2_info_freefrag_scan_bitmap()
614 return status; ocfs2_info_freefrag_scan_bitmap()
622 int status, type = GLOBAL_BITMAP_SYSTEM_INODE; ocfs2_info_handle_freefrag() local
630 status = -ENOMEM; ocfs2_info_handle_freefrag()
631 mlog_errno(status); ocfs2_info_handle_freefrag()
636 status = -EFAULT; ocfs2_info_handle_freefrag()
644 status = -EINVAL; ocfs2_info_handle_freefrag()
653 status = -EIO; ocfs2_info_handle_freefrag()
659 status = ocfs2_lookup_ino_from_name(osb->sys_root_inode, ocfs2_info_handle_freefrag()
663 if (status < 0) { ocfs2_info_handle_freefrag()
664 status = -ENOENT; ocfs2_info_handle_freefrag()
669 status = ocfs2_info_freefrag_scan_bitmap(osb, gb_inode, blkno, oiff); ocfs2_info_handle_freefrag()
670 if (status < 0) ocfs2_info_handle_freefrag()
676 status = -EFAULT; ocfs2_info_handle_freefrag()
680 status = 0; ocfs2_info_handle_freefrag()
682 if (status) ocfs2_info_handle_freefrag()
687 return status; ocfs2_info_handle_freefrag()
716 int status = -EFAULT; ocfs2_info_handle_request() local
722 status = -EINVAL; ocfs2_info_handle_request()
729 status = ocfs2_info_handle_blocksize(inode, req); ocfs2_info_handle_request()
733 status = ocfs2_info_handle_clustersize(inode, req); ocfs2_info_handle_request()
737 status = ocfs2_info_handle_maxslots(inode, req); ocfs2_info_handle_request()
741 status = ocfs2_info_handle_label(inode, req); ocfs2_info_handle_request()
745 status = ocfs2_info_handle_uuid(inode, req); ocfs2_info_handle_request()
749 status = ocfs2_info_handle_fs_features(inode, req); ocfs2_info_handle_request()
753 status = ocfs2_info_handle_journal_size(inode, req); ocfs2_info_handle_request()
757 status = ocfs2_info_handle_freeinode(inode, req); ocfs2_info_handle_request()
761 status = ocfs2_info_handle_freefrag(inode, req); ocfs2_info_handle_request()
764 status = ocfs2_info_handle_unknown(inode, req); ocfs2_info_handle_request()
769 return status; ocfs2_info_handle_request()
775 int status = -EFAULT; ocfs2_get_request_ptr() local
794 status = 0; ocfs2_get_request_ptr()
796 return status; ocfs2_get_request_ptr()
813 int i, status = 0; ocfs2_info_handle() local
819 status = -EINVAL; ocfs2_info_handle()
825 status = ocfs2_get_request_ptr(info, i, &req_addr, compat_flag); ocfs2_info_handle()
826 if (status) ocfs2_info_handle()
831 status = -EINVAL; ocfs2_info_handle()
835 status = ocfs2_info_handle_request(inode, reqp); ocfs2_info_handle()
836 if (status) ocfs2_info_handle()
841 return status; ocfs2_info_handle()
849 int status; ocfs2_ioctl() local
861 status = ocfs2_get_inode_attr(inode, &flags); ocfs2_ioctl()
862 if (status < 0) ocfs2_ioctl()
863 return status; ocfs2_ioctl()
871 status = mnt_want_write_file(filp); ocfs2_ioctl()
872 if (status) ocfs2_ioctl()
873 return status; ocfs2_ioctl()
874 status = ocfs2_set_inode_attr(inode, flags, ocfs2_ioctl()
877 return status; ocfs2_ioctl()
893 status = mnt_want_write_file(filp); ocfs2_ioctl()
894 if (status) ocfs2_ioctl()
895 return status; ocfs2_ioctl()
896 status = ocfs2_group_extend(inode, new_clusters); ocfs2_ioctl()
898 return status; ocfs2_ioctl()
907 status = mnt_want_write_file(filp); ocfs2_ioctl()
908 if (status) ocfs2_ioctl()
909 return status; ocfs2_ioctl()
910 status = ocfs2_group_add(inode, &input); ocfs2_ioctl()
912 return status; ocfs2_ioctl()
H A Dlocalalloc.c286 int status = 0; ocfs2_load_local_alloc() local
309 status = -EINVAL; ocfs2_load_local_alloc()
310 mlog_errno(status); ocfs2_load_local_alloc()
314 status = ocfs2_read_inode_block_full(inode, &alloc_bh, ocfs2_load_local_alloc()
316 if (status < 0) { ocfs2_load_local_alloc()
317 mlog_errno(status); ocfs2_load_local_alloc()
328 status = -EINVAL; ocfs2_load_local_alloc()
336 status = -EINVAL; ocfs2_load_local_alloc()
359 if (status < 0) ocfs2_load_local_alloc()
366 if (status) ocfs2_load_local_alloc()
367 mlog_errno(status); ocfs2_load_local_alloc()
368 return status; ocfs2_load_local_alloc()
380 int status; ocfs2_shutdown_local_alloc() local
400 status = -ENOENT; ocfs2_shutdown_local_alloc()
401 mlog_errno(status); ocfs2_shutdown_local_alloc()
413 status = -EINVAL; ocfs2_shutdown_local_alloc()
414 mlog_errno(status); ocfs2_shutdown_local_alloc()
420 status = ocfs2_inode_lock(main_bm_inode, &main_bm_bh, 1); ocfs2_shutdown_local_alloc()
421 if (status < 0) { ocfs2_shutdown_local_alloc()
422 mlog_errno(status); ocfs2_shutdown_local_alloc()
439 status = -ENOMEM; ocfs2_shutdown_local_alloc()
444 status = ocfs2_journal_access_di(handle, INODE_CACHE(local_alloc_inode), ocfs2_shutdown_local_alloc()
446 if (status < 0) { ocfs2_shutdown_local_alloc()
447 mlog_errno(status); ocfs2_shutdown_local_alloc()
458 status = ocfs2_sync_local_to_main(osb, handle, alloc_copy, ocfs2_shutdown_local_alloc()
460 if (status < 0) ocfs2_shutdown_local_alloc()
461 mlog_errno(status); ocfs2_shutdown_local_alloc()
493 int status = 0; ocfs2_begin_local_alloc_recovery() local
506 status = -EINVAL; ocfs2_begin_local_alloc_recovery()
507 mlog_errno(status); ocfs2_begin_local_alloc_recovery()
513 status = ocfs2_read_inode_block_full(inode, &alloc_bh, ocfs2_begin_local_alloc_recovery()
515 if (status < 0) { ocfs2_begin_local_alloc_recovery()
516 mlog_errno(status); ocfs2_begin_local_alloc_recovery()
522 status = -ENOMEM; ocfs2_begin_local_alloc_recovery()
531 status = ocfs2_write_block(osb, alloc_bh, INODE_CACHE(inode)); ocfs2_begin_local_alloc_recovery()
532 if (status < 0) ocfs2_begin_local_alloc_recovery()
533 mlog_errno(status); ocfs2_begin_local_alloc_recovery()
536 if (status < 0) { ocfs2_begin_local_alloc_recovery()
548 if (status) ocfs2_begin_local_alloc_recovery()
549 mlog_errno(status); ocfs2_begin_local_alloc_recovery()
550 return status; ocfs2_begin_local_alloc_recovery()
562 int status; ocfs2_complete_local_alloc_recovery() local
571 status = -EINVAL; ocfs2_complete_local_alloc_recovery()
572 mlog_errno(status); ocfs2_complete_local_alloc_recovery()
578 status = ocfs2_inode_lock(main_bm_inode, &main_bm_bh, 1); ocfs2_complete_local_alloc_recovery()
579 if (status < 0) { ocfs2_complete_local_alloc_recovery()
580 mlog_errno(status); ocfs2_complete_local_alloc_recovery()
586 status = PTR_ERR(handle); ocfs2_complete_local_alloc_recovery()
588 mlog_errno(status); ocfs2_complete_local_alloc_recovery()
595 status = ocfs2_sync_local_to_main(osb, handle, alloc, ocfs2_complete_local_alloc_recovery()
597 if (status < 0) ocfs2_complete_local_alloc_recovery()
598 mlog_errno(status); ocfs2_complete_local_alloc_recovery()
613 if (!status) ocfs2_complete_local_alloc_recovery()
615 if (status) ocfs2_complete_local_alloc_recovery()
616 mlog_errno(status); ocfs2_complete_local_alloc_recovery()
617 return status; ocfs2_complete_local_alloc_recovery()
631 int status; ocfs2_reserve_local_alloc_bits() local
643 status = -ENOENT; ocfs2_reserve_local_alloc_bits()
644 mlog_errno(status); ocfs2_reserve_local_alloc_bits()
658 status = -ENOSPC; ocfs2_reserve_local_alloc_bits()
672 status = -EIO; ocfs2_reserve_local_alloc_bits()
681 status = ocfs2_reserve_local_alloc_bits()
683 if (status < 0) { ocfs2_reserve_local_alloc_bits()
684 if (status != -ENOSPC) ocfs2_reserve_local_alloc_bits()
685 mlog_errno(status); ocfs2_reserve_local_alloc_bits()
695 status = -ENOSPC; ocfs2_reserve_local_alloc_bits()
711 status = 0; ocfs2_reserve_local_alloc_bits()
713 if (status < 0 && local_alloc_inode) { ocfs2_reserve_local_alloc_bits()
720 bits_wanted, osb->slot_num, status); ocfs2_reserve_local_alloc_bits()
722 if (status) ocfs2_reserve_local_alloc_bits()
723 mlog_errno(status); ocfs2_reserve_local_alloc_bits()
724 return status; ocfs2_reserve_local_alloc_bits()
734 int status, start; ocfs2_claim_local_alloc_bits() local
750 status = -ENOSPC; ocfs2_claim_local_alloc_bits()
751 mlog_errno(status); ocfs2_claim_local_alloc_bits()
759 status = ocfs2_journal_access_di(handle, ocfs2_claim_local_alloc_bits()
763 if (status < 0) { ocfs2_claim_local_alloc_bits()
764 mlog_errno(status); ocfs2_claim_local_alloc_bits()
778 if (status) ocfs2_claim_local_alloc_bits()
779 mlog_errno(status); ocfs2_claim_local_alloc_bits()
780 return status; ocfs2_claim_local_alloc_bits()
789 int status, start; ocfs2_free_local_alloc_bits() local
806 status = ocfs2_journal_access_di(handle, ocfs2_free_local_alloc_bits()
810 if (status < 0) { ocfs2_free_local_alloc_bits()
811 mlog_errno(status); ocfs2_free_local_alloc_bits()
822 return status; ocfs2_free_local_alloc_bits()
968 int status = 0; ocfs2_sync_local_to_main() local
1011 status = ocfs2_release_clusters(handle, ocfs2_sync_local_to_main()
1015 if (status < 0) { ocfs2_sync_local_to_main()
1016 mlog_errno(status); ocfs2_sync_local_to_main()
1027 if (status) ocfs2_sync_local_to_main()
1028 mlog_errno(status); ocfs2_sync_local_to_main()
1029 return status; ocfs2_sync_local_to_main()
1116 int status; ocfs2_local_alloc_reserve_for_window() local
1120 status = -ENOMEM; ocfs2_local_alloc_reserve_for_window()
1121 mlog_errno(status); ocfs2_local_alloc_reserve_for_window()
1127 status = ocfs2_reserve_cluster_bitmap_bits(osb, *ac); ocfs2_local_alloc_reserve_for_window()
1128 if (status == -ENOSPC) { ocfs2_local_alloc_reserve_for_window()
1137 if (status < 0) { ocfs2_local_alloc_reserve_for_window()
1138 mlog_errno(status); ocfs2_local_alloc_reserve_for_window()
1146 status = 0; ocfs2_local_alloc_reserve_for_window()
1148 if ((status < 0) && *ac) { ocfs2_local_alloc_reserve_for_window()
1153 if (status) ocfs2_local_alloc_reserve_for_window()
1154 mlog_errno(status); ocfs2_local_alloc_reserve_for_window()
1155 return status; ocfs2_local_alloc_reserve_for_window()
1165 int status = 0; ocfs2_local_alloc_new_window() local
1185 status = ocfs2_claim_clusters(handle, ac, osb->local_alloc_bits, ocfs2_local_alloc_new_window()
1187 if (status == -ENOSPC) { ocfs2_local_alloc_new_window()
1199 status = ocfs2_claim_clusters(handle, ac, ocfs2_local_alloc_new_window()
1203 if (status == -ENOSPC) ocfs2_local_alloc_new_window()
1210 if (status == 0) { ocfs2_local_alloc_new_window()
1216 if (status < 0) { ocfs2_local_alloc_new_window()
1217 if (status != -ENOSPC) ocfs2_local_alloc_new_window()
1218 mlog_errno(status); ocfs2_local_alloc_new_window()
1242 if (status) ocfs2_local_alloc_new_window()
1243 mlog_errno(status); ocfs2_local_alloc_new_window()
1244 return status; ocfs2_local_alloc_new_window()
1252 int status = 0; ocfs2_local_alloc_slide_window() local
1263 status = ocfs2_local_alloc_reserve_for_window(osb, ocfs2_local_alloc_slide_window()
1267 if (status < 0) { ocfs2_local_alloc_slide_window()
1268 if (status != -ENOSPC) ocfs2_local_alloc_slide_window()
1269 mlog_errno(status); ocfs2_local_alloc_slide_window()
1275 status = PTR_ERR(handle); ocfs2_local_alloc_slide_window()
1277 mlog_errno(status); ocfs2_local_alloc_slide_window()
1290 status = -ENOMEM; ocfs2_local_alloc_slide_window()
1291 mlog_errno(status); ocfs2_local_alloc_slide_window()
1296 status = ocfs2_journal_access_di(handle, ocfs2_local_alloc_slide_window()
1300 if (status < 0) { ocfs2_local_alloc_slide_window()
1301 mlog_errno(status); ocfs2_local_alloc_slide_window()
1308 status = ocfs2_sync_local_to_main(osb, handle, alloc_copy, ocfs2_local_alloc_slide_window()
1310 if (status < 0) { ocfs2_local_alloc_slide_window()
1311 mlog_errno(status); ocfs2_local_alloc_slide_window()
1315 status = ocfs2_local_alloc_new_window(osb, handle, ac); ocfs2_local_alloc_slide_window()
1316 if (status < 0) { ocfs2_local_alloc_slide_window()
1317 if (status != -ENOSPC) ocfs2_local_alloc_slide_window()
1318 mlog_errno(status); ocfs2_local_alloc_slide_window()
1338 if (status) ocfs2_local_alloc_slide_window()
1339 mlog_errno(status); ocfs2_local_alloc_slide_window()
1340 return status; ocfs2_local_alloc_slide_window()
H A Dsuper.c414 int status; ocfs2_sync_fs() local
422 status = ocfs2_flush_truncate_log(osb); ocfs2_sync_fs()
423 if (status < 0) ocfs2_sync_fs()
424 mlog_errno(status); ocfs2_sync_fs()
454 int status = 0; ocfs2_init_global_system_inodes() local
459 status = PTR_ERR(new); ocfs2_init_global_system_inodes()
460 mlog_errno(status); ocfs2_init_global_system_inodes()
467 status = PTR_ERR(new); ocfs2_init_global_system_inodes()
468 mlog_errno(status); ocfs2_init_global_system_inodes()
480 status = -EINVAL; ocfs2_init_global_system_inodes()
481 mlog_errno(status); ocfs2_init_global_system_inodes()
492 if (status) ocfs2_init_global_system_inodes()
493 mlog_errno(status); ocfs2_init_global_system_inodes()
494 return status; ocfs2_init_global_system_inodes()
500 int status = 0; ocfs2_init_local_system_inodes() local
511 status = -EINVAL; ocfs2_init_local_system_inodes()
512 mlog(ML_ERROR, "status=%d, sysfile=%d, slot=%d\n", ocfs2_init_local_system_inodes()
513 status, i, osb->slot_num); ocfs2_init_local_system_inodes()
521 if (status) ocfs2_init_local_system_inodes()
522 mlog_errno(status); ocfs2_init_local_system_inodes()
523 return status; ocfs2_init_local_system_inodes()
763 int status, tmpstat; ocfs2_sb_probe() local
775 status = -EINVAL; ocfs2_sb_probe()
784 status = ocfs2_get_sector(sb, bh, 0, *sector_size); ocfs2_sb_probe()
785 if (status < 0) { ocfs2_sb_probe()
786 mlog_errno(status); ocfs2_sb_probe()
793 status = -EINVAL; ocfs2_sb_probe()
799 status = -EINVAL; ocfs2_sb_probe()
803 if (status < 0) { ocfs2_sb_probe()
814 status = -EINVAL; ocfs2_sb_probe()
822 status = tmpstat; ocfs2_sb_probe()
823 mlog_errno(status); ocfs2_sb_probe()
835 status = tmpstat; ocfs2_sb_probe()
841 return status; ocfs2_sb_probe()
916 int status = 0; ocfs2_susp_quotas() local
922 status = dquot_resume(sb, type); ocfs2_susp_quotas()
929 status = dquot_suspend(sb, type); ocfs2_susp_quotas()
931 if (status < 0) ocfs2_susp_quotas()
934 if (status < 0) ocfs2_susp_quotas()
936 "remount (error = %d).\n", status); ocfs2_susp_quotas()
937 return status; ocfs2_susp_quotas()
950 int status; ocfs2_enable_quotas() local
960 status = -ENOENT; ocfs2_enable_quotas()
963 status = dquot_enable(inode[type], type, QFMT_OCFS2, ocfs2_enable_quotas()
965 if (status < 0) ocfs2_enable_quotas()
976 mlog_errno(status); ocfs2_enable_quotas()
977 return status; ocfs2_enable_quotas()
1010 int status, sector_size; ocfs2_fill_super() local
1021 status = -EINVAL; ocfs2_fill_super()
1026 status = ocfs2_sb_probe(sb, &bh, &sector_size, &stats); ocfs2_fill_super()
1027 if (status < 0) { ocfs2_fill_super()
1032 status = ocfs2_initialize_super(sb, bh, sector_size, &stats); ocfs2_fill_super()
1034 if (status < 0) { ocfs2_fill_super()
1035 mlog_errno(status); ocfs2_fill_super()
1042 status = -EINVAL; ocfs2_fill_super()
1058 status = ocfs2_verify_userspace_stack(osb, &parsed_options); ocfs2_fill_super()
1059 if (status) ocfs2_fill_super()
1071 status = -EACCES; ocfs2_fill_super()
1080 status = -EROFS; ocfs2_fill_super()
1086 status = ocfs2_check_journals_nolocks(osb); ocfs2_fill_super()
1087 if (status < 0) { ocfs2_fill_super()
1088 if (status == -EROFS) ocfs2_fill_super()
1093 mlog_errno(status); ocfs2_fill_super()
1109 status = ocfs2_verify_heartbeat(osb); ocfs2_fill_super()
1110 if (status < 0) { ocfs2_fill_super()
1111 mlog_errno(status); ocfs2_fill_super()
1118 status = -EINVAL; ocfs2_fill_super()
1128 status = -EINVAL; ocfs2_fill_super()
1129 mlog_errno(status); ocfs2_fill_super()
1134 status = ocfs2_blockcheck_stats_debugfs_install( ocfs2_fill_super()
1137 if (status) { ocfs2_fill_super()
1145 status = ocfs2_mount_volume(sb); ocfs2_fill_super()
1146 if (status < 0) ocfs2_fill_super()
1153 status = -EIO; ocfs2_fill_super()
1154 mlog_errno(status); ocfs2_fill_super()
1160 status = -ENOMEM; ocfs2_fill_super()
1161 mlog_errno(status); ocfs2_fill_super()
1187 status = ocfs2_enable_quotas(osb); ocfs2_fill_super()
1188 if (status < 0) { ocfs2_fill_super()
1191 mlog_errno(status); ocfs2_fill_super()
1194 return status; ocfs2_fill_super()
1207 return status; ocfs2_fill_super()
1218 if (status) ocfs2_fill_super()
1219 mlog_errno(status); ocfs2_fill_super()
1220 return status; ocfs2_fill_super()
1280 int status, user_stack = 0; ocfs2_parse_options() local
1296 status = 1; ocfs2_parse_options()
1320 status = 0; ocfs2_parse_options()
1363 status = 0; ocfs2_parse_options()
1372 status = 0; ocfs2_parse_options()
1381 status = 0; ocfs2_parse_options()
1393 status = 0; ocfs2_parse_options()
1425 status = 0; ocfs2_parse_options()
1468 status = 0; ocfs2_parse_options()
1479 status = 0; ocfs2_parse_options()
1493 status = 0; ocfs2_parse_options()
1505 status = 0; ocfs2_parse_options()
1510 status = 1; ocfs2_parse_options()
1513 return status; ocfs2_parse_options()
1605 int status; ocfs2_init() local
1607 status = init_ocfs2_uptodate_cache(); ocfs2_init()
1608 if (status < 0) ocfs2_init()
1611 status = ocfs2_initialize_mem_caches(); ocfs2_init()
1612 if (status < 0) ocfs2_init()
1617 status = -ENOMEM; ocfs2_init()
1623 status = -ENOMEM; ocfs2_init()
1630 status = register_quota_format(&ocfs2_quota_format); ocfs2_init()
1631 if (status < 0) ocfs2_init()
1633 status = register_filesystem(&ocfs2_fs_type); ocfs2_init()
1634 if (!status) ocfs2_init()
1646 mlog_errno(status); ocfs2_init()
1647 return status; ocfs2_init()
1680 int status; ocfs2_statfs() local
1694 status = -EIO; ocfs2_statfs()
1698 status = ocfs2_inode_lock(inode, &bh, 0); ocfs2_statfs()
1699 if (status < 0) { ocfs2_statfs()
1700 mlog_errno(status); ocfs2_statfs()
1727 status = 0; ocfs2_statfs()
1732 if (status) ocfs2_statfs()
1733 mlog_errno(status); ocfs2_statfs()
1735 return status; ocfs2_statfs()
1854 int status = 0; ocfs2_mount_volume() local
1861 status = ocfs2_dlm_init(osb); ocfs2_mount_volume()
1862 if (status < 0) { ocfs2_mount_volume()
1863 mlog_errno(status); ocfs2_mount_volume()
1867 status = ocfs2_super_lock(osb, 1); ocfs2_mount_volume()
1868 if (status < 0) { ocfs2_mount_volume()
1869 mlog_errno(status); ocfs2_mount_volume()
1875 status = ocfs2_find_slot(osb); ocfs2_mount_volume()
1876 if (status < 0) { ocfs2_mount_volume()
1877 mlog_errno(status); ocfs2_mount_volume()
1882 status = ocfs2_init_local_system_inodes(osb); ocfs2_mount_volume()
1883 if (status < 0) { ocfs2_mount_volume()
1884 mlog_errno(status); ocfs2_mount_volume()
1888 status = ocfs2_check_volume(osb); ocfs2_mount_volume()
1889 if (status < 0) { ocfs2_mount_volume()
1890 mlog_errno(status); ocfs2_mount_volume()
1894 status = ocfs2_truncate_log_init(osb); ocfs2_mount_volume()
1895 if (status < 0) ocfs2_mount_volume()
1896 mlog_errno(status); ocfs2_mount_volume()
1902 return status; ocfs2_mount_volume()
2024 int status = 0; ocfs2_journal_addressable() local
2041 status = -EFBIG; ocfs2_journal_addressable()
2046 return status; ocfs2_journal_addressable()
2054 int status; ocfs2_initialize_super() local
2064 status = -ENOMEM; ocfs2_initialize_super()
2065 mlog_errno(status); ocfs2_initialize_super()
2127 status = -EINVAL; ocfs2_initialize_super()
2133 status = ocfs2_recovery_init(osb); ocfs2_initialize_super()
2134 if (status) { ocfs2_initialize_super()
2136 mlog_errno(status); ocfs2_initialize_super()
2155 status = ocfs2_resmap_init(osb, &osb->osb_la_resmap); ocfs2_initialize_super()
2156 if (status) { ocfs2_initialize_super()
2157 mlog_errno(status); ocfs2_initialize_super()
2164 status = -ENOMEM; ocfs2_initialize_super()
2172 status = -ENOMEM; ocfs2_initialize_super()
2173 mlog_errno(status); ocfs2_initialize_super()
2182 status = -ENOMEM; ocfs2_initialize_super()
2183 mlog_errno(status); ocfs2_initialize_super()
2199 status = -EINVAL; ocfs2_initialize_super()
2206 status = -EINVAL; ocfs2_initialize_super()
2221 status = -EINVAL; ocfs2_initialize_super()
2247 status = -ENOMEM; ocfs2_initialize_super()
2274 status = -EINVAL; ocfs2_initialize_super()
2281 status = generic_check_addressable(osb->sb->s_blocksize_bits, ocfs2_initialize_super()
2283 if (status) { ocfs2_initialize_super()
2286 status = -EFBIG; ocfs2_initialize_super()
2293 status = -ENOMEM; ocfs2_initialize_super()
2312 status = -ENOMEM; ocfs2_initialize_super()
2313 mlog_errno(status); ocfs2_initialize_super()
2320 status = ocfs2_init_global_system_inodes(osb); ocfs2_initialize_super()
2321 if (status < 0) { ocfs2_initialize_super()
2322 mlog_errno(status); ocfs2_initialize_super()
2332 status = -EINVAL; ocfs2_initialize_super()
2333 mlog_errno(status); ocfs2_initialize_super()
2344 status = ocfs2_init_slot_info(osb); ocfs2_initialize_super()
2345 if (status < 0) { ocfs2_initialize_super()
2346 mlog_errno(status); ocfs2_initialize_super()
2352 return status; ocfs2_initialize_super()
2365 int status = -EAGAIN; ocfs2_verify_volume() local
2372 status = ocfs2_block_check_validate(bh->b_data, ocfs2_verify_volume()
2376 if (status) ocfs2_verify_volume()
2379 status = -EINVAL; ocfs2_verify_volume()
2416 status = 0; ocfs2_verify_volume()
2421 if (status && status != -EAGAIN) ocfs2_verify_volume()
2422 mlog_errno(status); ocfs2_verify_volume()
2423 return status; ocfs2_verify_volume()
2428 int status; ocfs2_check_volume() local
2436 status = ocfs2_journal_init(osb->journal, &dirty); ocfs2_check_volume()
2437 if (status < 0) { ocfs2_check_volume()
2444 status = ocfs2_journal_addressable(osb); ocfs2_check_volume()
2445 if (status) ocfs2_check_volume()
2452 status = ocfs2_journal_wipe(osb->journal, 0); ocfs2_check_volume()
2453 if (status < 0) { ocfs2_check_volume()
2454 mlog_errno(status); ocfs2_check_volume()
2465 status = ocfs2_journal_load(osb->journal, local, dirty); ocfs2_check_volume()
2466 if (status < 0) { ocfs2_check_volume()
2467 mlog(ML_ERROR, "ocfs2 journal load failed! %d\n", status); ocfs2_check_volume()
2482 status = ocfs2_begin_local_alloc_recovery(osb, ocfs2_check_volume()
2485 if (status < 0) { ocfs2_check_volume()
2486 mlog_errno(status); ocfs2_check_volume()
2493 status = ocfs2_load_local_alloc(osb); ocfs2_check_volume()
2494 if (status < 0) { ocfs2_check_volume()
2495 mlog_errno(status); ocfs2_check_volume()
2510 status = ocfs2_mark_dead_nodes(osb); ocfs2_check_volume()
2511 if (status < 0) { ocfs2_check_volume()
2512 mlog_errno(status); ocfs2_check_volume()
2516 status = ocfs2_compute_replay_slots(osb); ocfs2_check_volume()
2517 if (status < 0) ocfs2_check_volume()
2518 mlog_errno(status); ocfs2_check_volume()
2523 if (status) ocfs2_check_volume()
2524 mlog_errno(status); ocfs2_check_volume()
2525 return status; ocfs2_check_volume()
H A Dsuballoc.c366 int status = 0; ocfs2_block_group_fill() local
372 status = ocfs2_error(alloc_inode->i_sb, ocfs2_block_group_fill()
379 status = ocfs2_journal_access_gd(handle, ocfs2_block_group_fill()
383 if (status < 0) { ocfs2_block_group_fill()
384 mlog_errno(status); ocfs2_block_group_fill()
415 if (status) ocfs2_block_group_fill()
416 mlog_errno(status); ocfs2_block_group_fill()
417 return status; ocfs2_block_group_fill()
440 int status; ocfs2_block_group_alloc_contig() local
446 status = ocfs2_claim_clusters(handle, ac, ocfs2_block_group_alloc_contig()
449 if (status < 0) { ocfs2_block_group_alloc_contig()
450 if (status != -ENOSPC) ocfs2_block_group_alloc_contig()
451 mlog_errno(status); ocfs2_block_group_alloc_contig()
462 status = -ENOMEM; ocfs2_block_group_alloc_contig()
463 mlog_errno(status); ocfs2_block_group_alloc_contig()
468 status = ocfs2_block_group_fill(handle, alloc_inode, bg_bh, ocfs2_block_group_alloc_contig()
470 if (status < 0) { ocfs2_block_group_alloc_contig()
472 mlog_errno(status); ocfs2_block_group_alloc_contig()
476 return status ? ERR_PTR(status) : bg_bh; ocfs2_block_group_alloc_contig()
485 int status = 0; ocfs2_block_group_claim_bits() local
488 status = ocfs2_claim_clusters(handle, ac, min_bits, ocfs2_block_group_claim_bits()
490 if (status != -ENOSPC) ocfs2_block_group_claim_bits()
496 return status; ocfs2_block_group_claim_bits()
506 int status; ocfs2_block_group_grow_discontig() local
516 status = ocfs2_journal_access_gd(handle, ocfs2_block_group_grow_discontig()
520 if (status < 0) { ocfs2_block_group_grow_discontig()
521 mlog_errno(status); ocfs2_block_group_grow_discontig()
529 status = ocfs2_block_group_claim_bits(osb, handle, ac, ocfs2_block_group_grow_discontig()
532 if (status < 0) { ocfs2_block_group_grow_discontig()
533 if (status != -ENOSPC) ocfs2_block_group_grow_discontig()
534 mlog_errno(status); ocfs2_block_group_grow_discontig()
551 status = -ENOSPC; ocfs2_block_group_grow_discontig()
558 return status; ocfs2_block_group_grow_discontig()
597 int status; ocfs2_block_group_alloc_discontig() local
606 status = -ENOSPC; ocfs2_block_group_alloc_discontig()
610 status = ocfs2_extend_trans(handle, ocfs2_block_group_alloc_discontig()
612 if (status) { ocfs2_block_group_alloc_discontig()
613 mlog_errno(status); ocfs2_block_group_alloc_discontig()
626 status = ocfs2_block_group_claim_bits(osb, handle, ac, min_bits, ocfs2_block_group_alloc_discontig()
628 if (status < 0) { ocfs2_block_group_alloc_discontig()
629 if (status != -ENOSPC) ocfs2_block_group_alloc_discontig()
630 mlog_errno(status); ocfs2_block_group_alloc_discontig()
642 status = -ENOMEM; ocfs2_block_group_alloc_discontig()
643 mlog_errno(status); ocfs2_block_group_alloc_discontig()
648 status = ocfs2_block_group_fill(handle, alloc_inode, bg_bh, ocfs2_block_group_alloc_discontig()
650 if (status < 0) { ocfs2_block_group_alloc_discontig()
651 mlog_errno(status); ocfs2_block_group_alloc_discontig()
655 status = ocfs2_block_group_grow_discontig(handle, alloc_inode, ocfs2_block_group_alloc_discontig()
657 if (status) ocfs2_block_group_alloc_discontig()
658 mlog_errno(status); ocfs2_block_group_alloc_discontig()
661 if (status) ocfs2_block_group_alloc_discontig()
663 return status ? ERR_PTR(status) : bg_bh; ocfs2_block_group_alloc_discontig()
676 int status, credits; ocfs2_block_group_alloc() local
688 status = ocfs2_reserve_clusters_with_limit(osb, ocfs2_block_group_alloc()
691 if (status < 0) { ocfs2_block_group_alloc()
692 if (status != -ENOSPC) ocfs2_block_group_alloc()
693 mlog_errno(status); ocfs2_block_group_alloc()
701 status = PTR_ERR(handle); ocfs2_block_group_alloc()
703 mlog_errno(status); ocfs2_block_group_alloc()
720 status = PTR_ERR(bg_bh); ocfs2_block_group_alloc()
722 if (status != -ENOSPC) ocfs2_block_group_alloc()
723 mlog_errno(status); ocfs2_block_group_alloc()
728 status = ocfs2_journal_access_di(handle, INODE_CACHE(alloc_inode), ocfs2_block_group_alloc()
730 if (status < 0) { ocfs2_block_group_alloc()
731 mlog_errno(status); ocfs2_block_group_alloc()
760 status = 0; ocfs2_block_group_alloc()
775 if (status) ocfs2_block_group_alloc()
776 mlog_errno(status); ocfs2_block_group_alloc()
777 return status; ocfs2_block_group_alloc()
787 int status; ocfs2_reserve_suballoc_bits() local
802 status = ocfs2_inode_lock(alloc_inode, &bh, 1); ocfs2_reserve_suballoc_bits()
803 if (status < 0) { ocfs2_reserve_suballoc_bits()
807 mlog_errno(status); ocfs2_reserve_suballoc_bits()
808 return status; ocfs2_reserve_suballoc_bits()
821 status = ocfs2_error(alloc_inode->i_sb, ocfs2_reserve_suballoc_bits()
835 status = -ENOSPC; ocfs2_reserve_suballoc_bits()
842 status = -ENOSPC; ocfs2_reserve_suballoc_bits()
846 status = ocfs2_block_group_alloc(osb, alloc_inode, bh, ocfs2_reserve_suballoc_bits()
849 if (status < 0) { ocfs2_reserve_suballoc_bits()
850 if (status != -ENOSPC) ocfs2_reserve_suballoc_bits()
851 mlog_errno(status); ocfs2_reserve_suballoc_bits()
867 if (status) ocfs2_reserve_suballoc_bits()
868 mlog_errno(status); ocfs2_reserve_suballoc_bits()
869 return status; ocfs2_reserve_suballoc_bits()
932 int i, status = -ENOSPC; ocfs2_steal_resource() local
946 status = ocfs2_reserve_suballoc_bits(osb, ac, ocfs2_steal_resource()
950 if (status >= 0) { ocfs2_steal_resource()
958 return status; ocfs2_steal_resource()
977 int status; ocfs2_reserve_new_metadata_blocks() local
982 status = -ENOMEM; ocfs2_reserve_new_metadata_blocks()
983 mlog_errno(status); ocfs2_reserve_new_metadata_blocks()
996 status = ocfs2_reserve_suballoc_bits(osb, (*ac), ocfs2_reserve_new_metadata_blocks()
1002 if (status >= 0) { ocfs2_reserve_new_metadata_blocks()
1003 status = 0; ocfs2_reserve_new_metadata_blocks()
1007 } else if (status < 0 && status != -ENOSPC) { ocfs2_reserve_new_metadata_blocks()
1008 mlog_errno(status); ocfs2_reserve_new_metadata_blocks()
1015 status = ocfs2_steal_meta(osb, *ac); ocfs2_reserve_new_metadata_blocks()
1017 if (status < 0) { ocfs2_reserve_new_metadata_blocks()
1018 if (status != -ENOSPC) ocfs2_reserve_new_metadata_blocks()
1019 mlog_errno(status); ocfs2_reserve_new_metadata_blocks()
1023 status = 0; ocfs2_reserve_new_metadata_blocks()
1025 if ((status < 0) && *ac) { ocfs2_reserve_new_metadata_blocks()
1030 if (status) ocfs2_reserve_new_metadata_blocks()
1031 mlog_errno(status); ocfs2_reserve_new_metadata_blocks()
1032 return status; ocfs2_reserve_new_metadata_blocks()
1047 int status; ocfs2_reserve_new_inode() local
1053 status = -ENOMEM; ocfs2_reserve_new_inode()
1054 mlog_errno(status); ocfs2_reserve_new_inode()
1086 status = ocfs2_reserve_suballoc_bits(osb, *ac, ocfs2_reserve_new_inode()
1092 if (status >= 0) { ocfs2_reserve_new_inode()
1093 status = 0; ocfs2_reserve_new_inode()
1108 } else if (status < 0 && status != -ENOSPC) { ocfs2_reserve_new_inode()
1109 mlog_errno(status); ocfs2_reserve_new_inode()
1116 status = ocfs2_steal_inode(osb, *ac); ocfs2_reserve_new_inode()
1118 if (status < 0) { ocfs2_reserve_new_inode()
1119 if (status != -ENOSPC) ocfs2_reserve_new_inode()
1120 mlog_errno(status); ocfs2_reserve_new_inode()
1124 status = 0; ocfs2_reserve_new_inode()
1126 if ((status < 0) && *ac) { ocfs2_reserve_new_inode()
1131 if (status) ocfs2_reserve_new_inode()
1132 mlog_errno(status); ocfs2_reserve_new_inode()
1133 return status; ocfs2_reserve_new_inode()
1141 int status; ocfs2_reserve_cluster_bitmap_bits() local
1146 status = ocfs2_reserve_suballoc_bits(osb, ac, ocfs2_reserve_cluster_bitmap_bits()
1150 if (status < 0 && status != -ENOSPC) { ocfs2_reserve_cluster_bitmap_bits()
1151 mlog_errno(status); ocfs2_reserve_cluster_bitmap_bits()
1156 return status; ocfs2_reserve_cluster_bitmap_bits()
1167 int status; ocfs2_reserve_clusters_with_limit() local
1171 status = -ENOMEM; ocfs2_reserve_clusters_with_limit()
1172 mlog_errno(status); ocfs2_reserve_clusters_with_limit()
1179 status = -ENOSPC; ocfs2_reserve_clusters_with_limit()
1182 status = ocfs2_reserve_local_alloc_bits(osb, ocfs2_reserve_clusters_with_limit()
1185 if ((status < 0) && (status != -ENOSPC)) { ocfs2_reserve_clusters_with_limit()
1186 mlog_errno(status); ocfs2_reserve_clusters_with_limit()
1191 if (status == -ENOSPC) { ocfs2_reserve_clusters_with_limit()
1192 status = ocfs2_reserve_cluster_bitmap_bits(osb, *ac); ocfs2_reserve_clusters_with_limit()
1193 if (status < 0) { ocfs2_reserve_clusters_with_limit()
1194 if (status != -ENOSPC) ocfs2_reserve_clusters_with_limit()
1195 mlog_errno(status); ocfs2_reserve_clusters_with_limit()
1200 status = 0; ocfs2_reserve_clusters_with_limit()
1202 if ((status < 0) && *ac) { ocfs2_reserve_clusters_with_limit()
1207 if (status) ocfs2_reserve_clusters_with_limit()
1208 mlog_errno(status); ocfs2_reserve_clusters_with_limit()
1209 return status; ocfs2_reserve_clusters_with_limit()
1273 int offset, start, found, status = 0; ocfs2_block_group_find_clear_bits() local
1317 status = -ENOSPC; ocfs2_block_group_find_clear_bits()
1322 return status; ocfs2_block_group_find_clear_bits()
1332 int status; ocfs2_block_group_set_bits() local
1346 status = ocfs2_journal_access_gd(handle, ocfs2_block_group_set_bits()
1350 if (status < 0) { ocfs2_block_group_set_bits()
1351 mlog_errno(status); ocfs2_block_group_set_bits()
1369 return status; ocfs2_block_group_set_bits()
1398 int status; ocfs2_relink_block_group() local
1419 status = ocfs2_journal_access_gd(handle, INODE_CACHE(alloc_inode), ocfs2_relink_block_group()
1422 if (status < 0) ocfs2_relink_block_group()
1428 status = ocfs2_journal_access_gd(handle, INODE_CACHE(alloc_inode), ocfs2_relink_block_group()
1430 if (status < 0) ocfs2_relink_block_group()
1436 status = ocfs2_journal_access_di(handle, INODE_CACHE(alloc_inode), ocfs2_relink_block_group()
1438 if (status < 0) ocfs2_relink_block_group()
1445 if (status < 0) ocfs2_relink_block_group()
1446 mlog_errno(status); ocfs2_relink_block_group()
1447 return status; ocfs2_relink_block_group()
1732 int status; ocfs2_search_chain() local
1747 status = ocfs2_read_group_descriptor(alloc_inode, fe, ocfs2_search_chain()
1750 if (status < 0) { ocfs2_search_chain()
1751 mlog_errno(status); ocfs2_search_chain()
1756 status = -ENOSPC; ocfs2_search_chain()
1759 while ((status = ac->ac_group_search(alloc_inode, group_bh, ocfs2_search_chain()
1772 status = ocfs2_read_group_descriptor(alloc_inode, fe, ocfs2_search_chain()
1774 if (status < 0) { ocfs2_search_chain()
1775 mlog_errno(status); ocfs2_search_chain()
1780 if (status < 0) { ocfs2_search_chain()
1781 if (status != -ENOSPC) ocfs2_search_chain()
1782 mlog_errno(status); ocfs2_search_chain()
1792 if (!status) ocfs2_search_chain()
1817 status = ocfs2_relink_block_group(handle, alloc_inode, ocfs2_search_chain()
1820 if (status < 0) { ocfs2_search_chain()
1821 mlog_errno(status); ocfs2_search_chain()
1829 status = ocfs2_alloc_dinode_update_counts(alloc_inode, handle, ocfs2_search_chain()
1832 if (status) { ocfs2_search_chain()
1833 mlog_errno(status); ocfs2_search_chain()
1837 status = ocfs2_block_group_set_bits(handle, ocfs2_search_chain()
1843 if (status < 0) { ocfs2_search_chain()
1846 mlog_errno(status); ocfs2_search_chain()
1860 if (status) ocfs2_search_chain()
1861 mlog_errno(status); ocfs2_search_chain()
1862 return status; ocfs2_search_chain()
1872 int status; ocfs2_claim_suballoc_bits() local
1891 status = ocfs2_error(ac->ac_inode->i_sb, ocfs2_claim_suballoc_bits()
1905 status = ocfs2_search_one_group(ac, handle, bits_wanted, ocfs2_claim_suballoc_bits()
1907 if (!status) ocfs2_claim_suballoc_bits()
1909 if (status < 0 && status != -ENOSPC) { ocfs2_claim_suballoc_bits()
1910 mlog_errno(status); ocfs2_claim_suballoc_bits()
1920 status = ocfs2_search_chain(ac, handle, bits_wanted, min_bits, ocfs2_claim_suballoc_bits()
1922 if (!status) { ocfs2_claim_suballoc_bits()
1929 if (status < 0 && status != -ENOSPC) { ocfs2_claim_suballoc_bits()
1930 mlog_errno(status); ocfs2_claim_suballoc_bits()
1948 status = ocfs2_search_chain(ac, handle, bits_wanted, min_bits, ocfs2_claim_suballoc_bits()
1950 if (!status) { ocfs2_claim_suballoc_bits()
1954 if (status < 0 && status != -ENOSPC) { ocfs2_claim_suballoc_bits()
1955 mlog_errno(status); ocfs2_claim_suballoc_bits()
1961 if (status != -ENOSPC) { ocfs2_claim_suballoc_bits()
1972 if (status) ocfs2_claim_suballoc_bits()
1973 mlog_errno(status); ocfs2_claim_suballoc_bits()
1974 return status; ocfs2_claim_suballoc_bits()
1985 int status; ocfs2_claim_metadata() local
1992 status = ocfs2_claim_suballoc_bits(ac, ocfs2_claim_metadata()
1997 if (status < 0) { ocfs2_claim_metadata()
1998 mlog_errno(status); ocfs2_claim_metadata()
2008 status = 0; ocfs2_claim_metadata()
2010 if (status) ocfs2_claim_metadata()
2011 mlog_errno(status); ocfs2_claim_metadata()
2012 return status; ocfs2_claim_metadata()
2190 int status; ocfs2_claim_new_inode() local
2200 status = ocfs2_claim_suballoc_bits(ac, ocfs2_claim_new_inode()
2205 if (status < 0) { ocfs2_claim_new_inode()
2206 mlog_errno(status); ocfs2_claim_new_inode()
2218 status = 0; ocfs2_claim_new_inode()
2220 if (status) ocfs2_claim_new_inode()
2221 mlog_errno(status); ocfs2_claim_new_inode()
2222 return status; ocfs2_claim_new_inode()
2293 int status; __ocfs2_claim_clusters() local
2306 status = ocfs2_claim_local_alloc_bits(osb, __ocfs2_claim_clusters()
2312 if (!status) __ocfs2_claim_clusters()
2321 status = -ENOSPC; __ocfs2_claim_clusters()
2328 status = ocfs2_claim_suballoc_bits(ac, __ocfs2_claim_clusters()
2333 if (!status) { __ocfs2_claim_clusters()
2343 if (status < 0) { __ocfs2_claim_clusters()
2344 if (status != -ENOSPC) __ocfs2_claim_clusters()
2345 mlog_errno(status); __ocfs2_claim_clusters()
2352 if (status) __ocfs2_claim_clusters()
2353 mlog_errno(status); __ocfs2_claim_clusters()
2354 return status; __ocfs2_claim_clusters()
2378 int status; ocfs2_block_group_clear_bits() local
2389 status = ocfs2_journal_access_gd(handle, INODE_CACHE(alloc_inode), ocfs2_block_group_clear_bits()
2394 if (status < 0) { ocfs2_block_group_clear_bits()
2395 mlog_errno(status); ocfs2_block_group_clear_bits()
2428 return status; ocfs2_block_group_clear_bits()
2443 int status = 0; _ocfs2_free_suballoc_bits() local
2463 status = ocfs2_read_group_descriptor(alloc_inode, fe, bg_blkno, _ocfs2_free_suballoc_bits()
2465 if (status < 0) { _ocfs2_free_suballoc_bits()
2466 mlog_errno(status); _ocfs2_free_suballoc_bits()
2473 status = ocfs2_block_group_clear_bits(handle, alloc_inode, _ocfs2_free_suballoc_bits()
2476 if (status < 0) { _ocfs2_free_suballoc_bits()
2477 mlog_errno(status); _ocfs2_free_suballoc_bits()
2481 status = ocfs2_journal_access_di(handle, INODE_CACHE(alloc_inode), _ocfs2_free_suballoc_bits()
2483 if (status < 0) { _ocfs2_free_suballoc_bits()
2484 mlog_errno(status); _ocfs2_free_suballoc_bits()
2499 if (status) _ocfs2_free_suballoc_bits()
2500 mlog_errno(status); _ocfs2_free_suballoc_bits()
2501 return status; _ocfs2_free_suballoc_bits()
2538 int status; _ocfs2_free_clusters() local
2559 status = _ocfs2_free_suballoc_bits(handle, bitmap_inode, bitmap_bh, _ocfs2_free_clusters()
2562 if (status < 0) { _ocfs2_free_clusters()
2563 mlog_errno(status); _ocfs2_free_clusters()
2571 if (status) _ocfs2_free_clusters()
2572 mlog_errno(status); _ocfs2_free_clusters()
2573 return status; _ocfs2_free_clusters()
2738 int status; ocfs2_get_suballoc_slot_bit() local
2745 status = ocfs2_read_blocks_sync(osb, blkno, 1, &inode_bh); ocfs2_get_suballoc_slot_bit()
2746 if (status < 0) { ocfs2_get_suballoc_slot_bit()
2748 (unsigned long long)blkno, status); ocfs2_get_suballoc_slot_bit()
2756 status = -EINVAL; ocfs2_get_suballoc_slot_bit()
2765 status = -EINVAL; ocfs2_get_suballoc_slot_bit()
2779 if (status) ocfs2_get_suballoc_slot_bit()
2780 mlog_errno(status); ocfs2_get_suballoc_slot_bit()
2781 return status; ocfs2_get_suballoc_slot_bit()
2801 int status; ocfs2_test_suballoc_bit() local
2811 status = -EINVAL; ocfs2_test_suballoc_bit()
2817 status = ocfs2_read_group_descriptor(suballoc, alloc_di, bg_blkno, ocfs2_test_suballoc_bit()
2819 if (status < 0) { ocfs2_test_suballoc_bit()
2821 (unsigned long long)bg_blkno, status); ocfs2_test_suballoc_bit()
2831 if (status) ocfs2_test_suballoc_bit()
2832 mlog_errno(status); ocfs2_test_suballoc_bit()
2833 return status; ocfs2_test_suballoc_bit()
2851 int status; ocfs2_test_inode_bit() local
2859 status = ocfs2_get_suballoc_slot_bit(osb, blkno, &suballoc_slot, ocfs2_test_inode_bit()
2861 if (status < 0) { ocfs2_test_inode_bit()
2862 mlog(ML_ERROR, "get alloc slot and bit failed %d\n", status); ocfs2_test_inode_bit()
2872 status = -EINVAL; ocfs2_test_inode_bit()
2879 status = ocfs2_inode_lock(inode_alloc_inode, &alloc_bh, 0); ocfs2_test_inode_bit()
2880 if (status < 0) { ocfs2_test_inode_bit()
2884 (u32)suballoc_slot, status); ocfs2_test_inode_bit()
2888 status = ocfs2_test_suballoc_bit(osb, inode_alloc_inode, alloc_bh, ocfs2_test_inode_bit()
2890 if (status < 0) ocfs2_test_inode_bit()
2891 mlog(ML_ERROR, "test suballoc bit failed %d\n", status); ocfs2_test_inode_bit()
2899 if (status) ocfs2_test_inode_bit()
2900 mlog_errno(status); ocfs2_test_inode_bit()
2901 return status; ocfs2_test_inode_bit()
H A Dslot_map.c205 int status; ocfs2_update_disk_slot() local
215 status = ocfs2_write_block(osb, bh, INODE_CACHE(si->si_inode)); ocfs2_update_disk_slot()
216 if (status < 0) ocfs2_update_disk_slot()
217 mlog_errno(status); ocfs2_update_disk_slot()
219 return status; ocfs2_update_disk_slot()
357 int status = 0; ocfs2_map_slot_buffers() local
363 status = ocfs2_slot_map_physical_size(osb, si->si_inode, &bytes); ocfs2_map_slot_buffers()
364 if (status) ocfs2_map_slot_buffers()
388 status = -ENOMEM; ocfs2_map_slot_buffers()
389 mlog_errno(status); ocfs2_map_slot_buffers()
394 status = ocfs2_extent_map_get_blocks(si->si_inode, i, ocfs2_map_slot_buffers()
396 if (status < 0) { ocfs2_map_slot_buffers()
397 mlog_errno(status); ocfs2_map_slot_buffers()
404 status = ocfs2_read_blocks(INODE_CACHE(si->si_inode), blkno, ocfs2_map_slot_buffers()
406 if (status < 0) { ocfs2_map_slot_buffers()
407 mlog_errno(status); ocfs2_map_slot_buffers()
415 return status; ocfs2_map_slot_buffers()
420 int status; ocfs2_init_slot_info() local
428 status = -ENOMEM; ocfs2_init_slot_info()
429 mlog_errno(status); ocfs2_init_slot_info()
430 return status; ocfs2_init_slot_info()
441 status = -EINVAL; ocfs2_init_slot_info()
442 mlog_errno(status); ocfs2_init_slot_info()
447 status = ocfs2_map_slot_buffers(osb, si); ocfs2_init_slot_info()
448 if (status < 0) { ocfs2_init_slot_info()
449 mlog_errno(status); ocfs2_init_slot_info()
455 if (status < 0) ocfs2_init_slot_info()
458 return status; ocfs2_init_slot_info()
471 int status; ocfs2_find_slot() local
492 status = -EINVAL; ocfs2_find_slot()
505 status = ocfs2_update_disk_slot(osb, si, osb->slot_num); ocfs2_find_slot()
506 if (status < 0) ocfs2_find_slot()
507 mlog_errno(status); ocfs2_find_slot()
510 return status; ocfs2_find_slot()
515 int status, slot_num; ocfs2_put_slot() local
529 status = ocfs2_update_disk_slot(osb, si, slot_num); ocfs2_put_slot()
530 if (status < 0) { ocfs2_put_slot()
531 mlog_errno(status); ocfs2_put_slot()
H A Djournal.c309 int status = 0; ocfs2_commit_cache() local
326 status = jbd2_journal_flush(journal->j_journal); ocfs2_commit_cache()
328 if (status < 0) { ocfs2_commit_cache()
330 mlog_errno(status); ocfs2_commit_cache()
345 return status; ocfs2_commit_cache()
428 int status, old_nblocks; ocfs2_extend_trans() local
441 status = 1; ocfs2_extend_trans()
443 status = jbd2_journal_extend(handle, nblocks); ocfs2_extend_trans()
444 if (status < 0) { ocfs2_extend_trans()
445 mlog_errno(status); ocfs2_extend_trans()
450 if (status > 0) { ocfs2_extend_trans()
452 status = jbd2_journal_restart(handle, ocfs2_extend_trans()
454 if (status < 0) { ocfs2_extend_trans()
455 mlog_errno(status); ocfs2_extend_trans()
460 status = 0; ocfs2_extend_trans()
462 return status; ocfs2_extend_trans()
473 int status, old_nblks; ocfs2_allocate_extend_trans() local
483 status = jbd2_journal_extend(handle, OCFS2_MAX_TRANS_DATA); ocfs2_allocate_extend_trans()
484 if (status < 0) { ocfs2_allocate_extend_trans()
485 mlog_errno(status); ocfs2_allocate_extend_trans()
489 if (status > 0) { ocfs2_allocate_extend_trans()
490 status = jbd2_journal_restart(handle, OCFS2_MAX_TRANS_DATA); ocfs2_allocate_extend_trans()
491 if (status < 0) ocfs2_allocate_extend_trans()
492 mlog_errno(status); ocfs2_allocate_extend_trans()
496 return status; ocfs2_allocate_extend_trans()
654 int status; __ocfs2_journal_access() local
702 status = jbd2_journal_get_write_access(handle, bh); __ocfs2_journal_access()
706 status = jbd2_journal_get_undo_access(handle, bh); __ocfs2_journal_access()
710 status = -EINVAL; __ocfs2_journal_access()
713 if (!status && ocfs2_meta_ecc(osb) && triggers) __ocfs2_journal_access()
717 if (status < 0) __ocfs2_journal_access()
719 status, type); __ocfs2_journal_access()
721 return status; __ocfs2_journal_access()
787 int status; ocfs2_journal_dirty() local
791 status = jbd2_journal_dirty_metadata(handle, bh); ocfs2_journal_dirty()
792 if (status) { ocfs2_journal_dirty()
793 mlog_errno(status); ocfs2_journal_dirty()
800 handle->h_err = status; ocfs2_journal_dirty()
802 jbd2_journal_abort(journal, status); ocfs2_journal_dirty()
829 int status = -1; ocfs2_journal_init() local
845 status = -EACCES; ocfs2_journal_init()
846 mlog_errno(status); ocfs2_journal_init()
853 status = -EACCES; ocfs2_journal_init()
863 status = ocfs2_inode_lock_full(inode, &bh, 1, OCFS2_META_LOCK_RECOVERY); ocfs2_journal_init()
864 if (status < 0) { ocfs2_journal_init()
865 if (status != -ERESTARTSYS) ocfs2_journal_init()
876 status = -EINVAL; ocfs2_journal_init()
888 status = -EINVAL; ocfs2_journal_init()
905 status = 0; ocfs2_journal_init()
907 if (status < 0) { ocfs2_journal_init()
917 return status; ocfs2_journal_init()
933 int status; ocfs2_journal_toggle_dirty() local
957 status = ocfs2_write_block(osb, bh, INODE_CACHE(journal->j_inode)); ocfs2_journal_toggle_dirty()
958 if (status < 0) ocfs2_journal_toggle_dirty()
959 mlog_errno(status); ocfs2_journal_toggle_dirty()
961 return status; ocfs2_journal_toggle_dirty()
971 int status = 0; ocfs2_journal_shutdown() local
1013 status = jbd2_journal_flush(journal->j_journal); ocfs2_journal_shutdown()
1015 if (status < 0) ocfs2_journal_shutdown()
1016 mlog_errno(status); ocfs2_journal_shutdown()
1019 if (status == 0) { ocfs2_journal_shutdown()
1024 status = ocfs2_journal_toggle_dirty(osb, 0, 0); ocfs2_journal_shutdown()
1025 if (status < 0) ocfs2_journal_shutdown()
1026 mlog_errno(status); ocfs2_journal_shutdown()
1069 int status = 0; ocfs2_journal_load() local
1076 status = jbd2_journal_load(journal->j_journal); ocfs2_journal_load()
1077 if (status < 0) { ocfs2_journal_load()
1084 status = ocfs2_journal_toggle_dirty(osb, 1, replayed); ocfs2_journal_load()
1085 if (status < 0) { ocfs2_journal_load()
1086 mlog_errno(status); ocfs2_journal_load()
1095 status = PTR_ERR(osb->commit_task); ocfs2_journal_load()
1098 "error=%d", status); ocfs2_journal_load()
1105 return status; ocfs2_journal_load()
1113 int status; ocfs2_journal_wipe() local
1117 status = jbd2_journal_wipe(journal->j_journal, full); ocfs2_journal_wipe()
1118 if (status < 0) { ocfs2_journal_wipe()
1119 mlog_errno(status); ocfs2_journal_wipe()
1123 status = ocfs2_journal_toggle_dirty(journal->j_osb, 0, 0); ocfs2_journal_wipe()
1124 if (status < 0) ocfs2_journal_wipe()
1125 mlog_errno(status); ocfs2_journal_wipe()
1128 return status; ocfs2_journal_wipe()
1160 int status = 0; ocfs2_force_read_journal() local
1171 status = ocfs2_extent_map_get_blocks(inode, v_blkno, ocfs2_force_read_journal()
1173 if (status < 0) { ocfs2_force_read_journal()
1174 mlog_errno(status); ocfs2_force_read_journal()
1183 status = ocfs2_read_blocks_sync(OCFS2_SB(inode->i_sb), ocfs2_force_read_journal()
1185 if (status < 0) { ocfs2_force_read_journal()
1186 mlog_errno(status); ocfs2_force_read_journal()
1201 return status; ocfs2_force_read_journal()
1374 int status, node_num, slot_num; __ocfs2_recovery_thread() local
1381 status = ocfs2_wait_on_mount(osb); __ocfs2_recovery_thread()
1382 if (status < 0) { __ocfs2_recovery_thread()
1388 status = -ENOMEM; __ocfs2_recovery_thread()
1392 status = ocfs2_super_lock(osb, 1); __ocfs2_recovery_thread()
1393 if (status < 0) { __ocfs2_recovery_thread()
1394 mlog_errno(status); __ocfs2_recovery_thread()
1398 status = ocfs2_compute_replay_slots(osb); __ocfs2_recovery_thread()
1399 if (status < 0) __ocfs2_recovery_thread()
1400 mlog_errno(status); __ocfs2_recovery_thread()
1415 status = 0; __ocfs2_recovery_thread()
1429 status = ocfs2_recover_node(osb, node_num, slot_num); __ocfs2_recovery_thread()
1431 if (!status) { __ocfs2_recovery_thread()
1436 status, node_num, __ocfs2_recovery_thread()
1444 trace_ocfs2_recovery_thread_end(status); __ocfs2_recovery_thread()
1447 status = ocfs2_check_journals_nolocks(osb); __ocfs2_recovery_thread()
1448 status = (status == -EROFS) ? 0 : status; __ocfs2_recovery_thread()
1449 if (status < 0) __ocfs2_recovery_thread()
1450 mlog_errno(status); __ocfs2_recovery_thread()
1458 status = PTR_ERR(qrec); __ocfs2_recovery_thread()
1459 mlog_errno(status); __ocfs2_recovery_thread()
1474 if (!status && !ocfs2_recovery_completed(osb)) { __ocfs2_recovery_thread()
1491 complete_and_exit(NULL, status); __ocfs2_recovery_thread()
1526 int status = -EACCES; ocfs2_read_journal_inode() local
1534 mlog_errno(status); ocfs2_read_journal_inode()
1539 status = ocfs2_read_inode_block_full(inode, bh, OCFS2_BH_IGNORE_CACHE); ocfs2_read_journal_inode()
1540 if (status < 0) { ocfs2_read_journal_inode()
1541 mlog_errno(status); ocfs2_read_journal_inode()
1545 status = 0; ocfs2_read_journal_inode()
1549 if (status || !ret_inode) ocfs2_read_journal_inode()
1554 return status; ocfs2_read_journal_inode()
1563 int status; ocfs2_replay_journal() local
1572 status = ocfs2_read_journal_inode(osb, slot_num, &bh, &inode); ocfs2_replay_journal()
1573 if (status) { ocfs2_replay_journal()
1574 mlog_errno(status); ocfs2_replay_journal()
1595 status = -EBUSY; ocfs2_replay_journal()
1601 status = ocfs2_inode_lock_full(inode, &bh, 1, OCFS2_META_LOCK_RECOVERY); ocfs2_replay_journal()
1602 if (status < 0) { ocfs2_replay_journal()
1603 trace_ocfs2_replay_journal_lock_err(status); ocfs2_replay_journal()
1604 if (status != -ERESTARTSYS) ocfs2_replay_journal()
1631 status = ocfs2_force_read_journal(inode); ocfs2_replay_journal()
1632 if (status < 0) { ocfs2_replay_journal()
1633 mlog_errno(status); ocfs2_replay_journal()
1640 status = -EIO; ocfs2_replay_journal()
1644 status = jbd2_journal_load(journal); ocfs2_replay_journal()
1645 if (status < 0) { ocfs2_replay_journal()
1646 mlog_errno(status); ocfs2_replay_journal()
1657 status = jbd2_journal_flush(journal); ocfs2_replay_journal()
1659 if (status < 0) ocfs2_replay_journal()
1660 mlog_errno(status); ocfs2_replay_journal()
1673 status = ocfs2_write_block(osb, bh, INODE_CACHE(inode)); ocfs2_replay_journal()
1674 if (status < 0) ocfs2_replay_journal()
1675 mlog_errno(status); ocfs2_replay_journal()
1695 return status; ocfs2_replay_journal()
1713 int status = 0; ocfs2_recover_node() local
1723 status = ocfs2_replay_journal(osb, node_num, slot_num); ocfs2_recover_node()
1724 if (status < 0) { ocfs2_recover_node()
1725 if (status == -EBUSY) { ocfs2_recover_node()
1727 status = 0; ocfs2_recover_node()
1730 mlog_errno(status); ocfs2_recover_node()
1735 status = ocfs2_begin_local_alloc_recovery(osb, slot_num, &la_copy); ocfs2_recover_node()
1736 if (status < 0) { ocfs2_recover_node()
1737 mlog_errno(status); ocfs2_recover_node()
1744 status = ocfs2_begin_truncate_log_recovery(osb, slot_num, &tl_copy); ocfs2_recover_node()
1745 if (status < 0) ocfs2_recover_node()
1746 mlog_errno(status); ocfs2_recover_node()
1750 status = ocfs2_clear_slot(osb, slot_num); ocfs2_recover_node()
1751 if (status < 0) ocfs2_recover_node()
1752 mlog_errno(status); ocfs2_recover_node()
1758 status = 0; ocfs2_recover_node()
1761 return status; ocfs2_recover_node()
1770 int status, flags; ocfs2_trylock_journal() local
1777 status = -EACCES; ocfs2_trylock_journal()
1784 status = -EACCES; ocfs2_trylock_journal()
1790 status = ocfs2_inode_lock_full(inode, NULL, 1, flags); ocfs2_trylock_journal()
1791 if (status < 0) { ocfs2_trylock_journal()
1792 if (status != -EAGAIN) ocfs2_trylock_journal()
1793 mlog_errno(status); ocfs2_trylock_journal()
1802 return status; ocfs2_trylock_journal()
1810 int status, i; ocfs2_mark_dead_nodes() local
1820 status = ocfs2_read_journal_inode(osb, i, &bh, NULL); ocfs2_mark_dead_nodes()
1821 if (status) { ocfs2_mark_dead_nodes()
1822 mlog_errno(status); ocfs2_mark_dead_nodes()
1841 status = ocfs2_slot_to_node_num_locked(osb, i, &node_num); ocfs2_mark_dead_nodes()
1842 if (status == -ENOENT) { ocfs2_mark_dead_nodes()
1856 status = ocfs2_trylock_journal(osb, i); ocfs2_mark_dead_nodes()
1857 if (!status) { ocfs2_mark_dead_nodes()
1862 } else if ((status < 0) && (status != -EAGAIN)) { ocfs2_mark_dead_nodes()
1863 mlog_errno(status); ocfs2_mark_dead_nodes()
1868 status = 0; ocfs2_mark_dead_nodes()
1870 return status; ocfs2_mark_dead_nodes()
1917 int status, i; ocfs2_queue_orphan_scan() local
1928 status = ocfs2_orphan_scan_lock(osb, &seqno); ocfs2_queue_orphan_scan()
1929 if (status < 0) { ocfs2_queue_orphan_scan()
1930 if (status != -EAGAIN) ocfs2_queue_orphan_scan()
1931 mlog_errno(status); ocfs2_queue_orphan_scan()
2077 int status; ocfs2_queue_orphans() local
2090 status = -ENOENT; ocfs2_queue_orphans()
2091 mlog_errno(status); ocfs2_queue_orphans()
2092 return status; ocfs2_queue_orphans()
2096 status = ocfs2_inode_lock(orphan_dir_inode, NULL, 0); ocfs2_queue_orphans()
2097 if (status < 0) { ocfs2_queue_orphans()
2098 mlog_errno(status); ocfs2_queue_orphans()
2102 status = ocfs2_dir_foreach(orphan_dir_inode, &priv.ctx); ocfs2_queue_orphans()
2103 if (status) { ocfs2_queue_orphans()
2104 mlog_errno(status); ocfs2_queue_orphans()
2115 return status; ocfs2_queue_orphans()
2285 int status; ocfs2_commit_thread() local
2300 status = ocfs2_commit_cache(osb); ocfs2_commit_thread()
2301 if (status < 0) { ocfs2_commit_thread()
2306 mlog(ML_ERROR, "status = %d, journal is " ocfs2_commit_thread()
2307 "already aborted.\n", status); ocfs2_commit_thread()
H A Dquota_global.c298 int status; ocfs2_lock_global_qf() local
301 status = ocfs2_inode_lock(oinfo->dqi_gqinode, &bh, ex); ocfs2_lock_global_qf()
302 if (status < 0) ocfs2_lock_global_qf()
303 return status; ocfs2_lock_global_qf()
345 int status; ocfs2_global_read_info() local
353 status = -EINVAL; ocfs2_global_read_info()
364 status = ocfs2_lock_global_qf(oinfo, 0); ocfs2_global_read_info()
365 if (status < 0) { ocfs2_global_read_info()
366 mlog_errno(status); ocfs2_global_read_info()
370 status = ocfs2_extent_map_get_blocks(gqinode, 0, &oinfo->dqi_giblk, ocfs2_global_read_info()
372 if (status < 0) ocfs2_global_read_info()
375 status = ocfs2_qinfo_lock(oinfo, 0); ocfs2_global_read_info()
376 if (status < 0) ocfs2_global_read_info()
378 status = sb->s_op->quota_read(sb, type, (char *)&dinfo, ocfs2_global_read_info()
383 if (status != sizeof(struct ocfs2_global_disk_dqinfo)) { ocfs2_global_read_info()
385 status); ocfs2_global_read_info()
386 if (status >= 0) ocfs2_global_read_info()
387 status = -EIO; ocfs2_global_read_info()
388 mlog_errno(status); ocfs2_global_read_info()
406 return status; ocfs2_global_read_info()
409 mlog_errno(status); ocfs2_global_read_info()
597 int status = 0; ocfs2_sync_dquot_helper() local
604 status = ocfs2_lock_global_qf(oinfo, 1); ocfs2_sync_dquot_helper()
605 if (status < 0) ocfs2_sync_dquot_helper()
610 status = PTR_ERR(handle); ocfs2_sync_dquot_helper()
611 mlog_errno(status); ocfs2_sync_dquot_helper()
615 status = ocfs2_sync_dquot(dquot); ocfs2_sync_dquot_helper()
616 if (status < 0) ocfs2_sync_dquot_helper()
617 mlog_errno(status); ocfs2_sync_dquot_helper()
619 status = ocfs2_local_write_dquot(dquot); ocfs2_sync_dquot_helper()
620 if (status < 0) ocfs2_sync_dquot_helper()
621 mlog_errno(status); ocfs2_sync_dquot_helper()
627 return status; ocfs2_sync_dquot_helper()
650 int status = 0; ocfs2_write_dquot() local
657 status = PTR_ERR(handle); ocfs2_write_dquot()
658 mlog_errno(status); ocfs2_write_dquot()
662 status = ocfs2_local_write_dquot(dquot); ocfs2_write_dquot()
666 return status; ocfs2_write_dquot()
710 int status = 0; ocfs2_release_dquot() local
732 status = ocfs2_lock_global_qf(oinfo, 1); ocfs2_release_dquot()
733 if (status < 0) ocfs2_release_dquot()
738 status = PTR_ERR(handle); ocfs2_release_dquot()
739 mlog_errno(status); ocfs2_release_dquot()
743 status = ocfs2_global_release_dquot(dquot); ocfs2_release_dquot()
744 if (status < 0) { ocfs2_release_dquot()
745 mlog_errno(status); ocfs2_release_dquot()
748 status = ocfs2_local_release_dquot(handle, dquot); ocfs2_release_dquot()
753 if (status < 0) ocfs2_release_dquot()
754 mlog_errno(status); ocfs2_release_dquot()
768 if (status) ocfs2_release_dquot()
769 mlog_errno(status); ocfs2_release_dquot()
770 return status; ocfs2_release_dquot()
780 int status = 0, err; ocfs2_acquire_dquot() local
797 status = ocfs2_lock_global_qf(info, 1); ocfs2_acquire_dquot()
798 if (status < 0) ocfs2_acquire_dquot()
800 status = ocfs2_qinfo_lock(info, 0); ocfs2_acquire_dquot()
801 if (status < 0) ocfs2_acquire_dquot()
807 status = qtree_read_dquot(&info->dqi_gi, dquot); ocfs2_acquire_dquot()
809 if (status < 0) ocfs2_acquire_dquot()
822 status = ocfs2_extend_no_holes(gqinode, NULL, ocfs2_acquire_dquot()
825 if (status < 0) ocfs2_acquire_dquot()
832 status = PTR_ERR(handle); ocfs2_acquire_dquot()
835 status = ocfs2_qinfo_lock(info, ex); ocfs2_acquire_dquot()
836 if (status < 0) ocfs2_acquire_dquot()
838 status = qtree_write_dquot(&info->dqi_gi, dquot); ocfs2_acquire_dquot()
841 if (!status) ocfs2_acquire_dquot()
842 status = err; ocfs2_acquire_dquot()
849 if (status < 0) ocfs2_acquire_dquot()
852 status = ocfs2_create_local_dquot(dquot); ocfs2_acquire_dquot()
853 if (status < 0) ocfs2_acquire_dquot()
858 if (status) ocfs2_acquire_dquot()
859 mlog_errno(status); ocfs2_acquire_dquot()
860 return status; ocfs2_acquire_dquot()
872 int status; ocfs2_mark_dquot_dirty() local
891 status = ocfs2_write_dquot(dquot); ocfs2_mark_dquot_dirty()
894 status = ocfs2_lock_global_qf(oinfo, 1); ocfs2_mark_dquot_dirty()
895 if (status < 0) ocfs2_mark_dquot_dirty()
899 status = PTR_ERR(handle); ocfs2_mark_dquot_dirty()
900 mlog_errno(status); ocfs2_mark_dquot_dirty()
904 status = ocfs2_sync_dquot(dquot); ocfs2_mark_dquot_dirty()
905 if (status < 0) { ocfs2_mark_dquot_dirty()
906 mlog_errno(status); ocfs2_mark_dquot_dirty()
910 status = ocfs2_local_write_dquot(dquot); ocfs2_mark_dquot_dirty()
917 if (status) ocfs2_mark_dquot_dirty()
918 mlog_errno(status); ocfs2_mark_dquot_dirty()
919 return status; ocfs2_mark_dquot_dirty()
926 int status = 0; ocfs2_write_info() local
929 status = ocfs2_lock_global_qf(oinfo, 1); ocfs2_write_info()
930 if (status < 0) ocfs2_write_info()
934 status = PTR_ERR(handle); ocfs2_write_info()
935 mlog_errno(status); ocfs2_write_info()
938 status = dquot_commit_info(sb, type); ocfs2_write_info()
943 if (status) ocfs2_write_info()
944 mlog_errno(status); ocfs2_write_info()
945 return status; ocfs2_write_info()
H A Dinode.c412 int status, can_lock; ocfs2_read_locked_inode() local
415 status = -EINVAL; ocfs2_read_locked_inode()
474 status = ocfs2_open_lock(inode); ocfs2_read_locked_inode()
475 if (status) { ocfs2_read_locked_inode()
477 mlog_errno(status); ocfs2_read_locked_inode()
478 return status; ocfs2_read_locked_inode()
480 status = ocfs2_inode_lock(inode, NULL, 0); ocfs2_read_locked_inode()
481 if (status) { ocfs2_read_locked_inode()
483 mlog_errno(status); ocfs2_read_locked_inode()
484 return status; ocfs2_read_locked_inode()
489 status = ocfs2_try_open_lock(inode, 0); ocfs2_read_locked_inode()
490 if (status) { ocfs2_read_locked_inode()
492 return status; ocfs2_read_locked_inode()
497 status = ocfs2_read_inode_block_full(inode, &bh, ocfs2_read_locked_inode()
500 status = ocfs2_read_blocks_sync(osb, args->fi_blkno, 1, &bh); ocfs2_read_locked_inode()
505 if (!status && !buffer_jbd(bh)) ocfs2_read_locked_inode()
506 status = ocfs2_validate_inode_block(osb->sb, bh); ocfs2_read_locked_inode()
508 if (status < 0) { ocfs2_read_locked_inode()
509 mlog_errno(status); ocfs2_read_locked_inode()
513 status = -EINVAL; ocfs2_read_locked_inode()
534 status = 0; ocfs2_read_locked_inode()
540 if (status < 0) ocfs2_read_locked_inode()
545 return status; ocfs2_read_locked_inode()
557 int status = 0; ocfs2_truncate_for_delete() local
573 status = PTR_ERR(handle); ocfs2_truncate_for_delete()
575 mlog_errno(status); ocfs2_truncate_for_delete()
579 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), ocfs2_truncate_for_delete()
582 if (status < 0) { ocfs2_truncate_for_delete()
583 mlog_errno(status); ocfs2_truncate_for_delete()
589 status = ocfs2_mark_inode_dirty(handle, inode, fe_bh); ocfs2_truncate_for_delete()
590 if (status < 0) { ocfs2_truncate_for_delete()
591 mlog_errno(status); ocfs2_truncate_for_delete()
598 status = ocfs2_commit_truncate(osb, inode, fe_bh); ocfs2_truncate_for_delete()
599 if (status < 0) { ocfs2_truncate_for_delete()
600 mlog_errno(status); ocfs2_truncate_for_delete()
608 return status; ocfs2_truncate_for_delete()
616 int status; ocfs2_remove_inode() local
627 status = -ENOENT; ocfs2_remove_inode()
628 mlog_errno(status); ocfs2_remove_inode()
633 status = ocfs2_inode_lock(inode_alloc_inode, &inode_alloc_bh, 1); ocfs2_remove_inode()
634 if (status < 0) { ocfs2_remove_inode()
637 mlog_errno(status); ocfs2_remove_inode()
644 status = PTR_ERR(handle); ocfs2_remove_inode()
645 mlog_errno(status); ocfs2_remove_inode()
650 status = ocfs2_orphan_del(osb, handle, orphan_dir_inode, inode, ocfs2_remove_inode()
652 if (status < 0) { ocfs2_remove_inode()
653 mlog_errno(status); ocfs2_remove_inode()
659 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, ocfs2_remove_inode()
661 if (status < 0) { ocfs2_remove_inode()
662 mlog_errno(status); ocfs2_remove_inode()
673 status = ocfs2_free_dinode(handle, inode_alloc_inode, ocfs2_remove_inode()
675 if (status < 0) ocfs2_remove_inode()
676 mlog_errno(status); ocfs2_remove_inode()
687 return status; ocfs2_remove_inode()
728 int status, orphaned_slot = -1; ocfs2_wipe_inode() local
737 status = ocfs2_check_orphan_recovery_state(osb, orphaned_slot); ocfs2_wipe_inode()
738 if (status) ocfs2_wipe_inode()
739 return status; ocfs2_wipe_inode()
745 status = -ENOENT; ocfs2_wipe_inode()
746 mlog_errno(status); ocfs2_wipe_inode()
754 status = ocfs2_inode_lock(orphan_dir_inode, &orphan_dir_bh, 1); ocfs2_wipe_inode()
755 if (status < 0) { ocfs2_wipe_inode()
758 mlog_errno(status); ocfs2_wipe_inode()
767 status = ocfs2_truncate_for_delete(osb, inode, di_bh); ocfs2_wipe_inode()
768 if (status < 0) { ocfs2_wipe_inode()
769 mlog_errno(status); ocfs2_wipe_inode()
775 status = ocfs2_dx_dir_truncate(inode, di_bh); ocfs2_wipe_inode()
776 if (status) { ocfs2_wipe_inode()
777 mlog_errno(status); ocfs2_wipe_inode()
783 status = ocfs2_xattr_remove(inode, di_bh); ocfs2_wipe_inode()
784 if (status < 0) { ocfs2_wipe_inode()
785 mlog_errno(status); ocfs2_wipe_inode()
789 status = ocfs2_remove_refcount_tree(inode, di_bh); ocfs2_wipe_inode()
790 if (status < 0) { ocfs2_wipe_inode()
791 mlog_errno(status); ocfs2_wipe_inode()
795 status = ocfs2_remove_inode(inode, di_bh, orphan_dir_inode, ocfs2_wipe_inode()
797 if (status < 0) ocfs2_wipe_inode()
798 mlog_errno(status); ocfs2_wipe_inode()
802 return status; ocfs2_wipe_inode()
811 return status; ocfs2_wipe_inode()
868 int status = 0, reason = 0; ocfs2_query_inode_wipe() local
908 status = -EEXIST; ocfs2_query_inode_wipe()
920 status = -EEXIST; ocfs2_query_inode_wipe()
921 mlog_errno(status); ocfs2_query_inode_wipe()
937 status = ocfs2_try_open_lock(inode, 1); ocfs2_query_inode_wipe()
938 if (status == -EAGAIN) { ocfs2_query_inode_wipe()
939 status = 0; ocfs2_query_inode_wipe()
943 if (status < 0) { ocfs2_query_inode_wipe()
944 mlog_errno(status); ocfs2_query_inode_wipe()
952 trace_ocfs2_query_inode_wipe_end(status, reason); ocfs2_query_inode_wipe()
953 return status; ocfs2_query_inode_wipe()
971 int wipe, status; ocfs2_delete_inode() local
1007 status = ocfs2_nfs_sync_lock(OCFS2_SB(inode->i_sb), 0); ocfs2_delete_inode()
1008 if (status < 0) { ocfs2_delete_inode()
1009 mlog(ML_ERROR, "getting nfs sync lock(PR) failed %d\n", status); ocfs2_delete_inode()
1021 status = ocfs2_inode_lock(inode, &di_bh, 1); ocfs2_delete_inode()
1022 if (status < 0) { ocfs2_delete_inode()
1023 if (status != -ENOENT) ocfs2_delete_inode()
1024 mlog_errno(status); ocfs2_delete_inode()
1039 status = ocfs2_query_inode_wipe(inode, di_bh, &wipe); ocfs2_delete_inode()
1040 if (!wipe || status < 0) { ocfs2_delete_inode()
1044 if (status < 0) ocfs2_delete_inode()
1045 mlog_errno(status); ocfs2_delete_inode()
1056 status = ocfs2_wipe_inode(inode, di_bh); ocfs2_delete_inode()
1057 if (status < 0) { ocfs2_delete_inode()
1058 if (status != -EDEADLK) ocfs2_delete_inode()
1059 mlog_errno(status); ocfs2_delete_inode()
1089 int status; ocfs2_clear_inode() local
1131 status = ocfs2_drop_inode_locks(inode); ocfs2_clear_inode()
1132 if (status < 0) ocfs2_clear_inode()
1133 mlog_errno(status); ocfs2_clear_inode()
1224 int status = 0; ocfs2_inode_revalidate() local
1231 status = -ENOENT; ocfs2_inode_revalidate()
1238 status = -ENOENT; ocfs2_inode_revalidate()
1245 status = ocfs2_inode_lock(inode, NULL, 0); ocfs2_inode_revalidate()
1246 if (status < 0) { ocfs2_inode_revalidate()
1247 if (status != -ENOENT) ocfs2_inode_revalidate()
1248 mlog_errno(status); ocfs2_inode_revalidate()
1253 return status; ocfs2_inode_revalidate()
1265 int status; ocfs2_mark_inode_dirty() local
1270 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), bh, ocfs2_mark_inode_dirty()
1272 if (status < 0) { ocfs2_mark_inode_dirty()
1273 mlog_errno(status); ocfs2_mark_inode_dirty()
1299 return status; ocfs2_mark_inode_dirty()
/linux-4.4.14/arch/arm/mach-u300/
H A Ddummyspichip.c49 int status; dummy_looptest() local
62 status = -ENOMEM; dummy_looptest()
81 status = spi_w8r8(spi, 0xAA); dummy_looptest()
82 if (status < 0) dummy_looptest()
83 pr_warn("Simple test 1: FAILURE: spi_write_then_read failed with status %d\n", dummy_looptest()
84 status); dummy_looptest()
90 status = spi_write_then_read(spi, &txbuf[0], 8, &rxbuf[0], 8); dummy_looptest()
91 if (status < 0) dummy_looptest()
92 pr_warn("Simple test 2: FAILURE: spi_write_then_read() failed with status %d\n", dummy_looptest()
93 status); dummy_looptest()
99 status = spi_write_then_read(spi, &txbuf[0], 14, &rxbuf[0], 14); dummy_looptest()
100 if (status < 0) dummy_looptest()
101 pr_warn("Simple test 3: FAILURE: failed with status %d (probably FIFO overrun)\n", dummy_looptest()
102 status); dummy_looptest()
108 status = spi_write(spi, &txbuf[0], 8); dummy_looptest()
109 if (status < 0) dummy_looptest()
110 pr_warn("Simple test 4 step 1: FAILURE: spi_write() failed with status %d\n", dummy_looptest()
111 status); dummy_looptest()
114 status = spi_read(spi, &rxbuf[0], 8); dummy_looptest()
115 if (status < 0) dummy_looptest()
116 pr_warn("Simple test 4 step 2: FAILURE: spi_read() failed with status %d\n", dummy_looptest()
117 status); dummy_looptest()
123 status = spi_write(spi, &txbuf[0], 14); dummy_looptest()
124 if (status < 0) dummy_looptest()
125 pr_warn("Simple test 5 step 1: FAILURE: spi_write() failed with status %d (probably FIFO overrun)\n", dummy_looptest()
126 status); dummy_looptest()
129 status = spi_read(spi, &rxbuf[0], 14); dummy_looptest()
130 if (status < 0) dummy_looptest()
131 pr_warn("Simple test 5 step 2: FAILURE: spi_read() failed with status %d (probably FIFO overrun)\n", dummy_looptest()
132 status); dummy_looptest()
139 status = spi_write(spi, &bigtxbuf_virtual[0], DMA_TEST_SIZE); dummy_looptest()
140 if (status < 0) dummy_looptest()
141 pr_warn("Simple test 6 step 1: FAILURE: spi_write() failed with status %d (probably FIFO overrun)\n", dummy_looptest()
142 status); dummy_looptest()
145 status = spi_read(spi, &bigrxbuf_virtual[0], DMA_TEST_SIZE); dummy_looptest()
146 if (status < 0) dummy_looptest()
147 pr_warn("Simple test 6 step 2: FAILURE: spi_read() failed with status %d (probably FIFO overrun)\n", dummy_looptest()
148 status); dummy_looptest()
163 status = spi_w8r8(spi, 0xAA); dummy_looptest()
164 if (status == -EIO) dummy_looptest()
166 "status EIO)\n"); dummy_looptest()
167 else if (status < 0) dummy_looptest()
168 pr_warn("Simple test 7: FAILURE: spi_write_then_read failed with status %d\n", dummy_looptest()
169 status); dummy_looptest()
175 status = spi_write_then_read(spi, &txbuf[0], 8, &rxbuf[0], 8); dummy_looptest()
176 if (status < 0) dummy_looptest()
177 pr_warn("Simple test 8: FAILURE: spi_write_then_read() failed with status %d\n", dummy_looptest()
178 status); dummy_looptest()
184 status = spi_write_then_read(spi, &txbuf[0], 14, &rxbuf[0], 14); dummy_looptest()
185 if (status < 0) dummy_looptest()
186 pr_warn("Simple test 9: FAILURE: failed with status %d (probably FIFO overrun)\n", dummy_looptest()
187 status); dummy_looptest()
194 status = spi_write(spi, &bigtxbuf_virtual[0], DMA_TEST_SIZE); dummy_looptest()
195 if (status < 0) dummy_looptest()
196 pr_warn("Simple test 10 step 1: FAILURE: spi_write() failed with status %d (probably FIFO overrun)\n", dummy_looptest()
197 status); dummy_looptest()
201 status = spi_read(spi, &bigrxbuf_virtual[0], DMA_TEST_SIZE); dummy_looptest()
202 if (status < 0) dummy_looptest()
203 pr_warn("Simple test 10 step 2: FAILURE: spi_read() failed with status %d (probably FIFO overrun)\n", dummy_looptest()
204 status); dummy_looptest()
208 status = sprintf(buf, "loop test complete\n"); dummy_looptest()
213 return status; dummy_looptest()
221 int status; pl022_dummy_probe() local
233 status = device_create_file(&spi->dev, &dev_attr_looptest); pl022_dummy_probe()
234 if (status) { pl022_dummy_probe()
244 return status; pl022_dummy_probe()
/linux-4.4.14/include/sound/
H A Dcs8403.h43 diga->status[0] |= IEC958_AES0_NONAUDIO; SND_CS8403_DECODE()
45 diga->status[0] |= IEC958_AES0_CON_NOT_COPYRIGHT; SND_CS8403_DECODE()
47 case 0x10: diga->status[0] |= IEC958_AES0_CON_EMPHASIS_NONE; break; SND_CS8403_DECODE()
48 case 0x00: diga->status[0] |= IEC958_AES0_CON_EMPHASIS_5015; break; SND_CS8403_DECODE()
51 diga->status[1] |= IEC958_AES1_CON_ORIGINAL; SND_CS8403_DECODE()
53 case 0x00: diga->status[1] |= IEC958_AES1_CON_MAGNETIC_ID; break; SND_CS8403_DECODE()
54 case 0x20: diga->status[1] |= IEC958_AES1_CON_DIGDIGCONV_ID; break; SND_CS8403_DECODE()
55 case 0x40: diga->status[1] |= IEC958_AES1_CON_LASEROPT_ID; break; SND_CS8403_DECODE()
56 case 0x60: diga->status[1] |= IEC958_AES1_CON_GENERAL; break; SND_CS8403_DECODE()
59 case 0x00: diga->status[3] |= IEC958_AES3_CON_FS_44100; break; SND_CS8403_DECODE()
60 case 0x02: diga->status[3] |= IEC958_AES3_CON_FS_48000; break; SND_CS8403_DECODE()
61 case 0x04: diga->status[3] |= IEC958_AES3_CON_FS_32000; break; SND_CS8403_DECODE()
64 diga->status[0] = IEC958_AES0_PROFESSIONAL; SND_CS8403_DECODE()
66 case 0x00: diga->status[0] |= IEC958_AES0_PRO_FS_32000; break; SND_CS8403_DECODE()
67 case 0x10: diga->status[0] |= IEC958_AES0_PRO_FS_44100; break; SND_CS8403_DECODE()
68 case 0x08: diga->status[0] |= IEC958_AES0_PRO_FS_48000; break; SND_CS8403_DECODE()
69 case 0x18: diga->status[0] |= IEC958_AES0_PRO_FS_NOTID; break; SND_CS8403_DECODE()
72 case 0x20: diga->status[0] |= IEC958_AES0_PRO_EMPHASIS_NONE; break; SND_CS8403_DECODE()
73 case 0x40: diga->status[0] |= IEC958_AES0_PRO_EMPHASIS_5015; break; SND_CS8403_DECODE()
74 case 0x00: diga->status[0] |= IEC958_AES0_PRO_EMPHASIS_CCITT; break; SND_CS8403_DECODE()
75 case 0x60: diga->status[0] |= IEC958_AES0_PRO_EMPHASIS_NOTID; break; SND_CS8403_DECODE()
78 diga->status[1] |= IEC958_AES1_PRO_MODE_STEREOPHONIC; SND_CS8403_DECODE()
86 if (!(diga->status[0] & IEC958_AES0_PROFESSIONAL)) { SND_CS8403_ENCODE()
88 if (diga->status[0] & IEC958_AES0_NONAUDIO) SND_CS8403_ENCODE()
92 if (diga->status[0] & IEC958_AES0_CON_NOT_COPYRIGHT) SND_CS8403_ENCODE()
96 switch (diga->status[0] & IEC958_AES0_CON_EMPHASIS) { SND_CS8403_ENCODE()
101 if (diga->status[1] & IEC958_AES1_CON_ORIGINAL) SND_CS8403_ENCODE()
105 if ((diga->status[1] & IEC958_AES1_CON_CATEGORY) == IEC958_AES1_CON_GENERAL) SND_CS8403_ENCODE()
108 switch(diga->status[1] & IEC958_AES1_CON_MAGNETIC_MASK) { SND_CS8403_ENCODE()
118 switch (diga->status[3] & IEC958_AES3_CON_FS) { SND_CS8403_ENCODE()
126 if (diga->status[0] & IEC958_AES0_NONAUDIO) SND_CS8403_ENCODE()
131 switch (diga->status[0] & IEC958_AES0_PRO_FS) { SND_CS8403_ENCODE()
138 switch (diga->status[0] & IEC958_AES0_PRO_EMPHASIS) { SND_CS8403_ENCODE()
145 switch (diga->status[1] & IEC958_AES1_PRO_MODE) { SND_CS8403_ENCODE()
173 diga->status[0] |= IEC958_AES0_CON_NOT_COPYRIGHT; SND_CS8404_DECODE()
175 diga->status[0] |= IEC958_AES0_CON_EMPHASIS_5015; SND_CS8404_DECODE()
177 diga->status[1] |= IEC958_AES1_CON_ORIGINAL; SND_CS8404_DECODE()
179 case 0x00: diga->status[1] |= IEC958_AES1_CON_DAT; break; SND_CS8404_DECODE()
180 case 0x03: diga->status[1] |= IEC958_AES1_CON_GENERAL; break; SND_CS8404_DECODE()
183 case 0x02: diga->status[3] |= IEC958_AES3_CON_FS_32000; break; SND_CS8404_DECODE()
184 case 0x04: diga->status[3] |= IEC958_AES3_CON_FS_48000; break; SND_CS8404_DECODE()
185 case 0x06: diga->status[3] |= IEC958_AES3_CON_FS_44100; break; SND_CS8404_DECODE()
188 diga->status[0] = IEC958_AES0_PROFESSIONAL; SND_CS8404_DECODE()
190 diga->status[0] |= IEC958_AES0_NONAUDIO; SND_CS8404_DECODE()
192 case 0x00: diga->status[0] |= IEC958_AES0_PRO_FS_32000; break; SND_CS8404_DECODE()
193 case 0x40: diga->status[0] |= IEC958_AES0_PRO_FS_44100; break; SND_CS8404_DECODE()
194 case 0x20: diga->status[0] |= IEC958_AES0_PRO_FS_48000; break; SND_CS8404_DECODE()
195 case 0x60: diga->status[0] |= IEC958_AES0_PRO_FS_NOTID; break; SND_CS8404_DECODE()
198 case 0x02: diga->status[0] |= IEC958_AES0_PRO_EMPHASIS_NONE; break; SND_CS8404_DECODE()
199 case 0x01: diga->status[0] |= IEC958_AES0_PRO_EMPHASIS_5015; break; SND_CS8404_DECODE()
200 case 0x00: diga->status[0] |= IEC958_AES0_PRO_EMPHASIS_CCITT; break; SND_CS8404_DECODE()
201 case 0x03: diga->status[0] |= IEC958_AES0_PRO_EMPHASIS_NOTID; break; SND_CS8404_DECODE()
204 diga->status[1] |= IEC958_AES1_PRO_MODE_STEREOPHONIC; SND_CS8404_DECODE()
212 if (!(diga->status[0] & IEC958_AES0_PROFESSIONAL)) { SND_CS8404_ENCODE()
214 if (!(diga->status[0] & IEC958_AES0_CON_NOT_COPYRIGHT)) SND_CS8404_ENCODE()
216 if ((diga->status[0] & IEC958_AES0_CON_EMPHASIS) == IEC958_AES0_CON_EMPHASIS_NONE) SND_CS8404_ENCODE()
218 if (!(diga->status[1] & IEC958_AES1_CON_ORIGINAL)) SND_CS8404_ENCODE()
220 if ((diga->status[1] & IEC958_AES1_CON_CATEGORY) == IEC958_AES1_CON_GENERAL) SND_CS8404_ENCODE()
222 switch (diga->status[3] & IEC958_AES3_CON_FS) { SND_CS8404_ENCODE()
230 if (!(diga->status[0] & IEC958_AES0_NONAUDIO)) SND_CS8404_ENCODE()
232 switch (diga->status[0] & IEC958_AES0_PRO_FS) { SND_CS8404_ENCODE()
239 switch (diga->status[0] & IEC958_AES0_PRO_EMPHASIS) { SND_CS8404_ENCODE()
246 switch (diga->status[1] & IEC958_AES1_PRO_MODE) { SND_CS8404_ENCODE()
/linux-4.4.14/security/selinux/ss/
H A Dstatus.c21 * using mmap interface on /selinux/status.
25 * The selinux_kernel_status structure on the head of status page is
27 * application should reference the status page according to the seqlock
30 * Typically, application checks status->sequence at the head of access
31 * control routine. If it is odd-number, kernel is updating the status,
35 * In most cases, application shall confirm the kernel status is not
44 * It returns a reference to selinux_status_page. If the status page is
49 struct selinux_kernel_status *status; selinux_kernel_status_page() local
57 status = page_address(selinux_status_page); selinux_kernel_status_page()
59 status->version = SELINUX_KERNEL_STATUS_VERSION; selinux_kernel_status_page()
60 status->sequence = 0; selinux_kernel_status_page()
61 status->enforcing = selinux_enforcing; selinux_kernel_status_page()
64 * a positive value on the status->policyload, selinux_kernel_status_page()
68 status->policyload = 0; selinux_kernel_status_page()
69 status->deny_unknown = !security_get_allow_unknown(); selinux_kernel_status_page()
81 * It updates status of the current enforcing/permissive mode.
85 struct selinux_kernel_status *status; selinux_status_update_setenforce() local
89 status = page_address(selinux_status_page); selinux_status_update_setenforce()
91 status->sequence++; selinux_status_update_setenforce()
94 status->enforcing = enforcing; selinux_status_update_setenforce()
97 status->sequence++; selinux_status_update_setenforce()
105 * It updates status of the times of policy reloaded, and current
110 struct selinux_kernel_status *status; selinux_status_update_policyload() local
114 status = page_address(selinux_status_page); selinux_status_update_policyload()
116 status->sequence++; selinux_status_update_policyload()
119 status->policyload = seqno; selinux_status_update_policyload()
120 status->deny_unknown = !security_get_allow_unknown(); selinux_status_update_policyload()
123 status->sequence++; selinux_status_update_policyload()
/linux-4.4.14/sound/pci/emu10k1/
H A Dirq.c35 unsigned int status, status2, orig_status, orig_status2; snd_emu10k1_interrupt() local
39 while (((status = inl(emu->port + IPR)) != 0) && (timeout < 1000)) { snd_emu10k1_interrupt()
41 orig_status = status; snd_emu10k1_interrupt()
43 if ((status & 0xffffffff) == 0xffffffff) { snd_emu10k1_interrupt()
48 if (status & IPR_PCIERROR) { snd_emu10k1_interrupt()
51 status &= ~IPR_PCIERROR; snd_emu10k1_interrupt()
53 if (status & (IPR_VOLINCR|IPR_VOLDECR|IPR_MUTE)) { snd_emu10k1_interrupt()
55 emu->hwvol_interrupt(emu, status); snd_emu10k1_interrupt()
58 status &= ~(IPR_VOLINCR|IPR_VOLDECR|IPR_MUTE); snd_emu10k1_interrupt()
60 if (status & IPR_CHANNELLOOP) { snd_emu10k1_interrupt()
62 int voice_max = status & IPR_CHANNELNUMBERMASK; snd_emu10k1_interrupt()
96 status &= ~IPR_CHANNELLOOP; snd_emu10k1_interrupt()
98 status &= ~IPR_CHANNELNUMBERMASK; snd_emu10k1_interrupt()
99 if (status & (IPR_ADCBUFFULL|IPR_ADCBUFHALFFULL)) { snd_emu10k1_interrupt()
101 emu->capture_interrupt(emu, status); snd_emu10k1_interrupt()
104 status &= ~(IPR_ADCBUFFULL|IPR_ADCBUFHALFFULL); snd_emu10k1_interrupt()
106 if (status & (IPR_MICBUFFULL|IPR_MICBUFHALFFULL)) { snd_emu10k1_interrupt()
108 emu->capture_mic_interrupt(emu, status); snd_emu10k1_interrupt()
111 status &= ~(IPR_MICBUFFULL|IPR_MICBUFHALFFULL); snd_emu10k1_interrupt()
113 if (status & (IPR_EFXBUFFULL|IPR_EFXBUFHALFFULL)) { snd_emu10k1_interrupt()
115 emu->capture_efx_interrupt(emu, status); snd_emu10k1_interrupt()
118 status &= ~(IPR_EFXBUFFULL|IPR_EFXBUFHALFFULL); snd_emu10k1_interrupt()
120 if (status & (IPR_MIDITRANSBUFEMPTY|IPR_MIDIRECVBUFEMPTY)) { snd_emu10k1_interrupt()
122 emu->midi.interrupt(emu, status); snd_emu10k1_interrupt()
125 status &= ~(IPR_MIDITRANSBUFEMPTY|IPR_MIDIRECVBUFEMPTY); snd_emu10k1_interrupt()
127 if (status & (IPR_A_MIDITRANSBUFEMPTY2|IPR_A_MIDIRECVBUFEMPTY2)) { snd_emu10k1_interrupt()
129 emu->midi2.interrupt(emu, status); snd_emu10k1_interrupt()
132 status &= ~(IPR_A_MIDITRANSBUFEMPTY2|IPR_A_MIDIRECVBUFEMPTY2); snd_emu10k1_interrupt()
134 if (status & IPR_INTERVALTIMER) { snd_emu10k1_interrupt()
139 status &= ~IPR_INTERVALTIMER; snd_emu10k1_interrupt()
141 if (status & (IPR_GPSPDIFSTATUSCHANGE|IPR_CDROMSTATUSCHANGE)) { snd_emu10k1_interrupt()
143 emu->spdif_interrupt(emu, status); snd_emu10k1_interrupt()
146 status &= ~(IPR_GPSPDIFSTATUSCHANGE|IPR_CDROMSTATUSCHANGE); snd_emu10k1_interrupt()
148 if (status & IPR_FXDSP) { snd_emu10k1_interrupt()
153 status &= ~IPR_FXDSP; snd_emu10k1_interrupt()
155 if (status & IPR_P16V) { snd_emu10k1_interrupt()
168 "p16v: status: 0x%08x, mask=0x%08x, pvoice=%p, use=%d\n", snd_emu10k1_interrupt()
182 status &= ~IPR_P16V; snd_emu10k1_interrupt()
185 if (status) { snd_emu10k1_interrupt()
188 "unhandled interrupt: 0x%08x\n", status); snd_emu10k1_interrupt()
/linux-4.4.14/fs/nfs/
H A Dnfs42xdr.c276 int status; decode_seek() local
279 status = decode_op_hdr(xdr, OP_SEEK); decode_seek()
280 if (status) decode_seek()
281 return status; decode_seek()
314 int status; nfs4_xdr_dec_allocate() local
316 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_allocate()
317 if (status) nfs4_xdr_dec_allocate()
319 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_allocate()
320 if (status) nfs4_xdr_dec_allocate()
322 status = decode_putfh(xdr); nfs4_xdr_dec_allocate()
323 if (status) nfs4_xdr_dec_allocate()
325 status = decode_allocate(xdr, res); nfs4_xdr_dec_allocate()
326 if (status) nfs4_xdr_dec_allocate()
330 return status; nfs4_xdr_dec_allocate()
341 int status; nfs4_xdr_dec_deallocate() local
343 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_deallocate()
344 if (status) nfs4_xdr_dec_deallocate()
346 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_deallocate()
347 if (status) nfs4_xdr_dec_deallocate()
349 status = decode_putfh(xdr); nfs4_xdr_dec_deallocate()
350 if (status) nfs4_xdr_dec_deallocate()
352 status = decode_deallocate(xdr, res); nfs4_xdr_dec_deallocate()
353 if (status) nfs4_xdr_dec_deallocate()
357 return status; nfs4_xdr_dec_deallocate()
368 int status; nfs4_xdr_dec_seek() local
370 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_seek()
371 if (status) nfs4_xdr_dec_seek()
373 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_seek()
374 if (status) nfs4_xdr_dec_seek()
376 status = decode_putfh(xdr); nfs4_xdr_dec_seek()
377 if (status) nfs4_xdr_dec_seek()
379 status = decode_seek(xdr, res); nfs4_xdr_dec_seek()
381 return status; nfs4_xdr_dec_seek()
392 int status, i; nfs4_xdr_dec_layoutstats() local
394 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_layoutstats()
395 if (status) nfs4_xdr_dec_layoutstats()
397 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_layoutstats()
398 if (status) nfs4_xdr_dec_layoutstats()
400 status = decode_putfh(xdr); nfs4_xdr_dec_layoutstats()
401 if (status) nfs4_xdr_dec_layoutstats()
405 status = decode_layoutstats(xdr); nfs4_xdr_dec_layoutstats()
406 if (status) nfs4_xdr_dec_layoutstats()
410 res->rpc_status = status; nfs4_xdr_dec_layoutstats()
411 return status; nfs4_xdr_dec_layoutstats()
422 int status; nfs4_xdr_dec_clone() local
424 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_clone()
425 if (status) nfs4_xdr_dec_clone()
427 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_clone()
428 if (status) nfs4_xdr_dec_clone()
430 status = decode_putfh(xdr); nfs4_xdr_dec_clone()
431 if (status) nfs4_xdr_dec_clone()
433 status = decode_savefh(xdr); nfs4_xdr_dec_clone()
434 if (status) nfs4_xdr_dec_clone()
436 status = decode_putfh(xdr); nfs4_xdr_dec_clone()
437 if (status) nfs4_xdr_dec_clone()
439 status = decode_clone(xdr); nfs4_xdr_dec_clone()
440 if (status) nfs4_xdr_dec_clone()
442 status = decode_getfattr(xdr, res->dst_fattr, res->server); nfs4_xdr_dec_clone()
445 res->rpc_status = status; nfs4_xdr_dec_clone()
446 return status; nfs4_xdr_dec_clone()
H A Dcallback_xdr.c22 #define CB_OP_HDR_RES_MAXSZ (2 * 4) // opcode, status
156 __be32 status; decode_compound_hdr_arg() local
158 status = decode_string(xdr, &hdr->taglen, &hdr->tag); decode_compound_hdr_arg()
159 if (unlikely(status != 0)) decode_compound_hdr_arg()
160 return status; decode_compound_hdr_arg()
198 __be32 status; decode_getattr_args() local
200 status = decode_fh(xdr, &args->fh); decode_getattr_args()
201 if (unlikely(status != 0)) decode_getattr_args()
203 status = decode_bitmap(xdr, args->bitmap); decode_getattr_args()
205 dprintk("%s: exit with status = %d\n", __func__, ntohl(status)); decode_getattr_args()
206 return status; decode_getattr_args()
212 __be32 status; decode_recall_args() local
214 status = decode_stateid(xdr, &args->stateid); decode_recall_args()
215 if (unlikely(status != 0)) decode_recall_args()
219 status = htonl(NFS4ERR_RESOURCE); decode_recall_args()
223 status = decode_fh(xdr, &args->fh); decode_recall_args()
225 dprintk("%s: exit with status = %d\n", __func__, ntohl(status)); decode_recall_args()
226 return status; decode_recall_args()
236 __be32 status = 0; decode_layoutrecall_args() local
241 status = htonl(NFS4ERR_BADXDR); decode_layoutrecall_args()
255 status = decode_fh(xdr, &args->cbl_fh); decode_layoutrecall_args()
256 if (unlikely(status != 0)) decode_layoutrecall_args()
261 status = htonl(NFS4ERR_BADXDR); decode_layoutrecall_args()
266 status = decode_stateid(xdr, &args->cbl_stateid); decode_layoutrecall_args()
267 if (unlikely(status != 0)) decode_layoutrecall_args()
272 status = htonl(NFS4ERR_BADXDR); decode_layoutrecall_args()
278 status = htonl(NFS4ERR_BADXDR); decode_layoutrecall_args()
286 dprintk("%s: exit with status = %d\n", __func__, ntohl(status)); decode_layoutrecall_args()
287 return status; decode_layoutrecall_args()
296 __be32 status = 0; decode_devicenotify_args() local
304 status = htonl(NFS4ERR_BADXDR); decode_devicenotify_args()
311 status = htonl(NFS4ERR_BADXDR); decode_devicenotify_args()
317 status = htonl(NFS4ERR_DELAY); decode_devicenotify_args()
327 status = htonl(NFS4ERR_BADXDR); decode_devicenotify_args()
333 status = htonl(NFS4ERR_INVAL); decode_devicenotify_args()
339 status = htonl(NFS4ERR_INVAL); decode_devicenotify_args()
348 status = htonl(NFS4ERR_INVAL); decode_devicenotify_args()
358 status = htonl(NFS4ERR_BADXDR); decode_devicenotify_args()
373 dprintk("%s: status %d ndevs %d\n", decode_devicenotify_args()
374 __func__, ntohl(status), args->ndevs); decode_devicenotify_args()
375 return status; decode_devicenotify_args()
399 __be32 status; decode_rc_list() local
401 status = decode_sessionid(xdr, &rc_list->rcl_sessionid); decode_rc_list()
402 if (status) decode_rc_list()
405 status = htonl(NFS4ERR_RESOURCE); decode_rc_list()
426 status = 0; decode_rc_list()
429 return status; decode_rc_list()
438 __be32 status; decode_cb_sequence_args() local
440 status = decode_sessionid(xdr, &args->csa_sessionid); decode_cb_sequence_args()
441 if (status) decode_cb_sequence_args()
444 status = htonl(NFS4ERR_RESOURCE); decode_cb_sequence_args()
464 status = decode_rc_list(xdr, &args->csa_rclists[i]); decode_cb_sequence_args()
465 if (status) { decode_cb_sequence_args()
471 status = 0; decode_cb_sequence_args()
484 dprintk("%s: exit with status = %d\n", __func__, ntohl(status)); decode_cb_sequence_args()
485 return status; decode_cb_sequence_args()
499 __be32 *p, status; decode_recallany_args() local
505 status = decode_bitmap(xdr, bitmap); decode_recallany_args()
506 if (unlikely(status)) decode_recallany_args()
507 return status; decode_recallany_args()
625 __be32 status; encode_compound_hdr_res() local
627 hdr->status = xdr_reserve_space(xdr, 4); encode_compound_hdr_res()
628 if (unlikely(hdr->status == NULL)) encode_compound_hdr_res()
630 status = encode_string(xdr, hdr->taglen, hdr->tag); encode_compound_hdr_res()
631 if (unlikely(status != 0)) encode_compound_hdr_res()
632 return status; encode_compound_hdr_res()
654 __be32 status = res->status; encode_getattr_res() local
656 if (unlikely(status != 0)) encode_getattr_res()
658 status = encode_attr_bitmap(xdr, res->bitmap, &savep); encode_getattr_res()
659 if (unlikely(status != 0)) encode_getattr_res()
661 status = encode_attr_change(xdr, res->bitmap, res->change_attr); encode_getattr_res()
662 if (unlikely(status != 0)) encode_getattr_res()
664 status = encode_attr_size(xdr, res->bitmap, res->size); encode_getattr_res()
665 if (unlikely(status != 0)) encode_getattr_res()
667 status = encode_attr_ctime(xdr, res->bitmap, &res->ctime); encode_getattr_res()
668 if (unlikely(status != 0)) encode_getattr_res()
670 status = encode_attr_mtime(xdr, res->bitmap, &res->mtime); encode_getattr_res()
673 dprintk("%s: exit with status = %d\n", __func__, ntohl(status)); encode_getattr_res()
674 return status; encode_getattr_res()
697 __be32 status = res->csr_status; encode_cb_sequence_res() local
699 if (unlikely(status != 0)) encode_cb_sequence_res()
702 status = encode_sessionid(xdr, &res->csr_sessionid); encode_cb_sequence_res()
703 if (status) encode_cb_sequence_res()
715 dprintk("%s: exit with status = %d\n", __func__, ntohl(status)); encode_cb_sequence_res()
716 return status; encode_cb_sequence_res()
792 __be32 status = preprocess_nfs41_op(nop, op_nr, op); preprocess_nfs42_op() local
793 if (status != htonl(NFS4ERR_OP_ILLEGAL)) preprocess_nfs42_op()
794 return status; preprocess_nfs42_op()
830 __be32 status; process_op() local
835 status = decode_op_hdr(xdr_in, &op_nr); process_op()
836 if (unlikely(status)) process_op()
837 return status; process_op()
844 status = preprocess_nfs4_op(op_nr, &op); process_op()
847 status = preprocess_nfs41_op(nop, op_nr, &op); process_op()
850 status = preprocess_nfs42_op(nop, op_nr, &op); process_op()
853 status = htonl(NFS4ERR_MINOR_VERS_MISMATCH); process_op()
856 if (status == htonl(NFS4ERR_OP_ILLEGAL)) process_op()
858 if (status) process_op()
862 status = cps->drc_status; process_op()
868 status = op->decode_args(rqstp, xdr_in, argp); process_op()
869 if (likely(status == 0)) process_op()
870 status = op->process_op(argp, resp, cps); process_op()
872 status = htonl(NFS4ERR_RESOURCE); process_op()
875 res = encode_op_hdr(xdr_out, op_nr, status); process_op()
878 if (op->encode_res != NULL && status == 0) process_op()
879 status = op->encode_res(rqstp, xdr_out, resp); process_op()
880 dprintk("%s: done, status = %d\n", __func__, ntohl(status)); process_op()
881 return status; process_op()
892 __be32 *p, status; nfs4_callback_compound() local
908 status = decode_compound_hdr_arg(&xdr_in, &hdr_arg); nfs4_callback_compound()
909 if (status == htonl(NFS4ERR_RESOURCE)) nfs4_callback_compound()
924 while (status == 0 && nops != hdr_arg.nops) { nfs4_callback_compound()
925 status = process_op(nops, rqstp, &xdr_in, nfs4_callback_compound()
931 * resource error in cb_compound status without returning op */ nfs4_callback_compound()
932 if (unlikely(status == htonl(NFS4ERR_RESOURCE_HDR))) { nfs4_callback_compound()
933 status = htonl(NFS4ERR_RESOURCE); nfs4_callback_compound()
937 *hdr_res.status = status; nfs4_callback_compound()
941 dprintk("%s: done, status = %u\n", __func__, ntohl(status)); nfs4_callback_compound()
H A Dmount_clnt.c82 u32 status; member in struct:__anon11675
85 { .status = MNT_OK, .errno = 0, },
86 { .status = MNT_EPERM, .errno = -EPERM, },
87 { .status = MNT_ENOENT, .errno = -ENOENT, },
88 { .status = MNT_EACCES, .errno = -EACCES, },
89 { .status = MNT_EINVAL, .errno = -EINVAL, },
109 u32 status; member in struct:__anon11676
112 { .status = MNT3_OK, .errno = 0, },
113 { .status = MNT3ERR_PERM, .errno = -EPERM, },
114 { .status = MNT3ERR_NOENT, .errno = -ENOENT, },
115 { .status = MNT3ERR_IO, .errno = -EIO, },
116 { .status = MNT3ERR_ACCES, .errno = -EACCES, },
117 { .status = MNT3ERR_NOTDIR, .errno = -ENOTDIR, },
118 { .status = MNT3ERR_INVAL, .errno = -EINVAL, },
119 { .status = MNT3ERR_NAMETOOLONG, .errno = -ENAMETOOLONG, },
120 { .status = MNT3ERR_NOTSUPP, .errno = -ENOTSUPP, },
121 { .status = MNT3ERR_SERVERFAULT, .errno = -EREMOTEIO, },
132 u32 status; member in struct:mnt_fhstatus
167 int status; nfs_mount() local
188 status = rpc_call_sync(mnt_clnt, &msg, RPC_TASK_SOFT|RPC_TASK_TIMEOUT); nfs_mount()
191 if (status < 0) nfs_mount()
197 status = 0; nfs_mount()
209 return status; nfs_mount()
212 status = PTR_ERR(mnt_clnt); nfs_mount()
213 dprintk("NFS: failed to create MNT RPC client, status=%d\n", status); nfs_mount()
217 dprintk("NFS: MNT request failed, status=%d\n", status); nfs_mount()
222 status = result.errno; nfs_mount()
256 int status; nfs_umount() local
276 status = rpc_call_sync(clnt, &msg, 0); nfs_umount()
279 if (unlikely(status < 0)) nfs_umount()
285 dprintk("NFS: failed to create UMNT RPC client, status=%ld\n", nfs_umount()
290 dprintk("NFS: UMNT request failed, status=%d\n", status); nfs_umount()
313 * RFC 1094: "A non-zero status indicates some sort of error. In this
314 * case, the status is a UNIX error number." This can be problematic
324 u32 status; decode_status() local
330 status = be32_to_cpup(p); decode_status()
333 if (mnt_errtbl[i].status == status) { decode_status()
339 dprintk("NFS: unrecognized MNT status code: %u\n", status); decode_status()
362 int status; mnt_xdr_dec_mountres() local
364 status = decode_status(xdr, res); mnt_xdr_dec_mountres()
365 if (unlikely(status != 0 || res->errno != 0)) mnt_xdr_dec_mountres()
366 return status; mnt_xdr_dec_mountres()
373 u32 status; decode_fhs_status() local
379 status = be32_to_cpup(p); decode_fhs_status()
382 if (mnt3_errtbl[i].status == status) { decode_fhs_status()
388 dprintk("NFS: unrecognized MNT3 status code: %u\n", status); decode_fhs_status()
454 int status; mnt_xdr_dec_mountres3() local
456 status = decode_fhs_status(xdr, res); mnt_xdr_dec_mountres3()
457 if (unlikely(status != 0 || res->errno != 0)) mnt_xdr_dec_mountres3()
458 return status; mnt_xdr_dec_mountres3()
459 status = decode_fhandle3(xdr, res); mnt_xdr_dec_mountres3()
460 if (unlikely(status != 0)) { mnt_xdr_dec_mountres3()
H A Dnfs4xdr.c901 int32_t status; member in struct:compound_hdr
3048 hdr->status = be32_to_cpup(p++); decode_compound_hdr()
3058 return nfs4_stat_to_errno(hdr->status); decode_compound_hdr()
3499 int status = 0; decode_attr_files_avail() local
3512 return status; decode_attr_files_avail()
3521 int status = 0; decode_attr_files_free() local
3534 return status; decode_attr_files_free()
3543 int status = 0; decode_attr_files_total() local
3556 return status; decode_attr_files_total()
3566 int status = 0; decode_pathname() local
3581 status = decode_opaque_inline(xdr, &component->len, &component->data); decode_pathname()
3582 if (unlikely(status != 0)) decode_pathname()
3590 return status; decode_pathname()
3599 dprintk(" status %d", status); decode_pathname()
3600 status = -EIO; decode_pathname()
3611 int status = -EIO; decode_attr_fs_locations() local
3615 status = 0; decode_attr_fs_locations()
3619 status = -EIO; decode_attr_fs_locations()
3624 status = decode_pathname(xdr, &res->fs_path); decode_attr_fs_locations()
3625 if (unlikely(status != 0)) decode_attr_fs_locations()
3659 status = decode_opaque_inline(xdr, &len, &data); decode_attr_fs_locations()
3660 if (unlikely(status != 0)) decode_attr_fs_locations()
3666 status = decode_opaque_inline(xdr, &server->len, &server->data); decode_attr_fs_locations()
3667 if (unlikely(status != 0)) decode_attr_fs_locations()
3671 status = decode_pathname(xdr, &loc->rootpath); decode_attr_fs_locations()
3672 if (unlikely(status != 0)) decode_attr_fs_locations()
3676 status = NFS_ATTR_FATTR_V4_LOCATIONS; decode_attr_fs_locations()
3678 dprintk("%s: fs_locations done, error = %d\n", __func__, status); decode_attr_fs_locations()
3679 return status; decode_attr_fs_locations()
3683 status = -EIO; decode_attr_fs_locations()
3690 int status = 0; decode_attr_maxfilesize() local
3703 return status; decode_attr_maxfilesize()
3712 int status = 0; decode_attr_maxlink() local
3725 return status; decode_attr_maxlink()
3734 int status = 0; decode_attr_maxname() local
3747 return status; decode_attr_maxname()
3756 int status = 0; decode_attr_maxread() local
3773 return status; decode_attr_maxread()
3782 int status = 0; decode_attr_maxwrite() local
3799 return status; decode_attr_maxwrite()
3972 int status = 0; decode_attr_space_avail() local
3985 return status; decode_attr_space_avail()
3994 int status = 0; decode_attr_space_free() local
4007 return status; decode_attr_space_free()
4016 int status = 0; decode_attr_space_total() local
4029 return status; decode_attr_space_total()
4080 int status = 0; decode_attr_time_access() local
4087 status = decode_attr_time(xdr, time); decode_attr_time_access()
4088 if (status == 0) decode_attr_time_access()
4089 status = NFS_ATTR_FATTR_ATIME; decode_attr_time_access()
4093 return status; decode_attr_time_access()
4098 int status = 0; decode_attr_time_metadata() local
4105 status = decode_attr_time(xdr, time); decode_attr_time_metadata()
4106 if (status == 0) decode_attr_time_metadata()
4107 status = NFS_ATTR_FATTR_CTIME; decode_attr_time_metadata()
4111 return status; decode_attr_time_metadata()
4117 int status = 0; decode_attr_time_delta() local
4124 status = decode_attr_time(xdr, time); decode_attr_time_delta()
4129 return status; decode_attr_time_delta()
4139 int status = 0; decode_attr_security_label() local
4165 status = NFS_ATTR_FATTR_V4_SECURITY_LABEL; decode_attr_security_label()
4175 return status; decode_attr_security_label()
4184 int status = 0; decode_attr_time_modify() local
4191 status = decode_attr_time(xdr, time); decode_attr_time_modify()
4192 if (status == 0) decode_attr_time_modify()
4193 status = NFS_ATTR_FATTR_MTIME; decode_attr_time_modify()
4197 return status; decode_attr_time_modify()
4237 int status; decode_access() local
4239 status = decode_op_hdr(xdr, OP_ACCESS); decode_access()
4240 if (status) decode_access()
4241 return status; decode_access()
4275 int status; decode_close() local
4277 status = decode_op_hdr(xdr, OP_CLOSE); decode_close()
4278 if (status != -EIO) decode_close()
4279 nfs_increment_open_seqid(status, res->seqid); decode_close()
4280 if (!status) decode_close()
4281 status = decode_stateid(xdr, &res->stateid); decode_close()
4282 return status; decode_close()
4297 int status; decode_commit() local
4299 status = decode_op_hdr(xdr, OP_COMMIT); decode_commit()
4300 if (!status) decode_commit()
4301 status = decode_write_verifier(xdr, &res->verf->verifier); decode_commit()
4302 return status; decode_commit()
4309 int status; decode_create() local
4311 status = decode_op_hdr(xdr, OP_CREATE); decode_create()
4312 if (status) decode_create()
4313 return status; decode_create()
4314 if ((status = decode_change_info(xdr, cinfo))) decode_create()
4315 return status; decode_create()
4332 int status; decode_server_caps() local
4334 if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) decode_server_caps()
4336 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) decode_server_caps()
4338 if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) decode_server_caps()
4340 if ((status = decode_attr_supported(xdr, bitmap, res->attr_bitmask)) != 0) decode_server_caps()
4342 if ((status = decode_attr_fh_expire_type(xdr, bitmap, decode_server_caps()
4345 if ((status = decode_attr_link_support(xdr, bitmap, &res->has_links)) != 0) decode_server_caps()
4347 if ((status = decode_attr_symlink_support(xdr, bitmap, &res->has_symlinks)) != 0) decode_server_caps()
4349 if ((status = decode_attr_aclsupport(xdr, bitmap, &res->acl_bitmask)) != 0) decode_server_caps()
4351 if ((status = decode_attr_exclcreat_supported(xdr, bitmap, decode_server_caps()
4354 status = verify_attr_len(xdr, savep, attrlen); decode_server_caps()
4356 dprintk("%s: xdr returned %d!\n", __func__, -status); decode_server_caps()
4357 return status; decode_server_caps()
4364 int status; decode_statfs() local
4366 if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) decode_statfs()
4368 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) decode_statfs()
4370 if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) decode_statfs()
4373 if ((status = decode_attr_files_avail(xdr, bitmap, &fsstat->afiles)) != 0) decode_statfs()
4375 if ((status = decode_attr_files_free(xdr, bitmap, &fsstat->ffiles)) != 0) decode_statfs()
4377 if ((status = decode_attr_files_total(xdr, bitmap, &fsstat->tfiles)) != 0) decode_statfs()
4380 status = -EIO; decode_statfs()
4384 if ((status = decode_attr_space_avail(xdr, bitmap, &fsstat->abytes)) != 0) decode_statfs()
4386 if ((status = decode_attr_space_free(xdr, bitmap, &fsstat->fbytes)) != 0) decode_statfs()
4388 if ((status = decode_attr_space_total(xdr, bitmap, &fsstat->tbytes)) != 0) decode_statfs()
4391 status = verify_attr_len(xdr, savep, attrlen); decode_statfs()
4393 dprintk("%s: xdr returned %d!\n", __func__, -status); decode_statfs()
4394 return status; decode_statfs()
4401 int status; decode_pathconf() local
4403 if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) decode_pathconf()
4405 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) decode_pathconf()
4407 if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) decode_pathconf()
4410 if ((status = decode_attr_maxlink(xdr, bitmap, &pathconf->max_link)) != 0) decode_pathconf()
4412 if ((status = decode_attr_maxname(xdr, bitmap, &pathconf->max_namelen)) != 0) decode_pathconf()
4415 status = verify_attr_len(xdr, savep, attrlen); decode_pathconf()
4417 dprintk("%s: xdr returned %d!\n", __func__, -status); decode_pathconf()
4418 return status; decode_pathconf()
4447 int status; decode_first_threshold_item4() local
4458 status = decode_attr_bitmap(xdr, bitmap); decode_first_threshold_item4()
4459 if (status < 0) decode_first_threshold_item4()
4463 status = decode_attr_length(xdr, &attrlen, &savep); decode_first_threshold_item4()
4464 if (status < 0) decode_first_threshold_item4()
4467 status = decode_threshold_hint(xdr, bitmap, &res->rd_sz, THRESHOLD_RD); decode_first_threshold_item4()
4468 if (status < 0) decode_first_threshold_item4()
4470 status = decode_threshold_hint(xdr, bitmap, &res->wr_sz, THRESHOLD_WR); decode_first_threshold_item4()
4471 if (status < 0) decode_first_threshold_item4()
4473 status = decode_threshold_hint(xdr, bitmap, &res->rd_io_sz, decode_first_threshold_item4()
4475 if (status < 0) decode_first_threshold_item4()
4477 status = decode_threshold_hint(xdr, bitmap, &res->wr_io_sz, decode_first_threshold_item4()
4479 if (status < 0) decode_first_threshold_item4()
4482 status = verify_attr_len(xdr, savep, attrlen); decode_first_threshold_item4()
4489 dprintk("%s ret=%d!\n", __func__, status); decode_first_threshold_item4()
4490 return status; decode_first_threshold_item4()
4501 int status = 0; decode_attr_mdsthreshold() local
4521 status = decode_first_threshold_item4(xdr, res); decode_attr_mdsthreshold()
4524 return status; decode_attr_mdsthreshold()
4535 int status; decode_getfattr_attrs() local
4540 status = decode_attr_type(xdr, bitmap, &type); decode_getfattr_attrs()
4541 if (status < 0) decode_getfattr_attrs()
4544 if (status != 0) { decode_getfattr_attrs()
4546 fattr->valid |= status; decode_getfattr_attrs()
4549 status = decode_attr_change(xdr, bitmap, &fattr->change_attr); decode_getfattr_attrs()
4550 if (status < 0) decode_getfattr_attrs()
4552 fattr->valid |= status; decode_getfattr_attrs()
4554 status = decode_attr_size(xdr, bitmap, &fattr->size); decode_getfattr_attrs()
4555 if (status < 0) decode_getfattr_attrs()
4557 fattr->valid |= status; decode_getfattr_attrs()
4559 status = decode_attr_fsid(xdr, bitmap, &fattr->fsid); decode_getfattr_attrs()
4560 if (status < 0) decode_getfattr_attrs()
4562 fattr->valid |= status; decode_getfattr_attrs()
4565 status = decode_attr_error(xdr, bitmap, &err); decode_getfattr_attrs()
4566 if (status < 0) decode_getfattr_attrs()
4569 status = decode_attr_filehandle(xdr, bitmap, fh); decode_getfattr_attrs()
4570 if (status < 0) decode_getfattr_attrs()
4573 status = decode_attr_fileid(xdr, bitmap, &fattr->fileid); decode_getfattr_attrs()
4574 if (status < 0) decode_getfattr_attrs()
4576 fattr->valid |= status; decode_getfattr_attrs()
4578 status = decode_attr_fs_locations(xdr, bitmap, fs_loc); decode_getfattr_attrs()
4579 if (status < 0) decode_getfattr_attrs()
4581 fattr->valid |= status; decode_getfattr_attrs()
4583 status = -EIO; decode_getfattr_attrs()
4587 status = decode_attr_mode(xdr, bitmap, &fmode); decode_getfattr_attrs()
4588 if (status < 0) decode_getfattr_attrs()
4590 if (status != 0) { decode_getfattr_attrs()
4592 fattr->valid |= status; decode_getfattr_attrs()
4595 status = decode_attr_nlink(xdr, bitmap, &fattr->nlink); decode_getfattr_attrs()
4596 if (status < 0) decode_getfattr_attrs()
4598 fattr->valid |= status; decode_getfattr_attrs()
4600 status = decode_attr_owner(xdr, bitmap, server, &fattr->uid, fattr->owner_name); decode_getfattr_attrs()
4601 if (status < 0) decode_getfattr_attrs()
4603 fattr->valid |= status; decode_getfattr_attrs()
4605 status = decode_attr_group(xdr, bitmap, server, &fattr->gid, fattr->group_name); decode_getfattr_attrs()
4606 if (status < 0) decode_getfattr_attrs()
4608 fattr->valid |= status; decode_getfattr_attrs()
4610 status = decode_attr_rdev(xdr, bitmap, &fattr->rdev); decode_getfattr_attrs()
4611 if (status < 0) decode_getfattr_attrs()
4613 fattr->valid |= status; decode_getfattr_attrs()
4615 status = decode_attr_space_used(xdr, bitmap, &fattr->du.nfs3.used); decode_getfattr_attrs()
4616 if (status < 0) decode_getfattr_attrs()
4618 fattr->valid |= status; decode_getfattr_attrs()
4620 status = decode_attr_time_access(xdr, bitmap, &fattr->atime); decode_getfattr_attrs()
4621 if (status < 0) decode_getfattr_attrs()
4623 fattr->valid |= status; decode_getfattr_attrs()
4625 status = decode_attr_time_metadata(xdr, bitmap, &fattr->ctime); decode_getfattr_attrs()
4626 if (status < 0) decode_getfattr_attrs()
4628 fattr->valid |= status; decode_getfattr_attrs()
4630 status = decode_attr_time_modify(xdr, bitmap, &fattr->mtime); decode_getfattr_attrs()
4631 if (status < 0) decode_getfattr_attrs()
4633 fattr->valid |= status; decode_getfattr_attrs()
4635 status = decode_attr_mounted_on_fileid(xdr, bitmap, &fattr->mounted_on_fileid); decode_getfattr_attrs()
4636 if (status < 0) decode_getfattr_attrs()
4638 fattr->valid |= status; decode_getfattr_attrs()
4640 status = -EIO; decode_getfattr_attrs()
4644 status = decode_attr_mdsthreshold(xdr, bitmap, fattr->mdsthreshold); decode_getfattr_attrs()
4645 if (status < 0) decode_getfattr_attrs()
4649 status = decode_attr_security_label(xdr, bitmap, label); decode_getfattr_attrs()
4650 if (status < 0) decode_getfattr_attrs()
4652 fattr->valid |= status; decode_getfattr_attrs()
4656 dprintk("%s: xdr returned %d\n", __func__, -status); decode_getfattr_attrs()
4657 return status; decode_getfattr_attrs()
4667 int status; decode_getfattr_generic() local
4669 status = decode_op_hdr(xdr, OP_GETATTR); decode_getfattr_generic()
4670 if (status < 0) decode_getfattr_generic()
4673 status = decode_attr_bitmap(xdr, bitmap); decode_getfattr_generic()
4674 if (status < 0) decode_getfattr_generic()
4677 status = decode_attr_length(xdr, &attrlen, &savep); decode_getfattr_generic()
4678 if (status < 0) decode_getfattr_generic()
4681 status = decode_getfattr_attrs(xdr, bitmap, fattr, fh, fs_loc, decode_getfattr_generic()
4683 if (status < 0) decode_getfattr_generic()
4686 status = verify_attr_len(xdr, savep, attrlen); decode_getfattr_generic()
4688 dprintk("%s: xdr returned %d\n", __func__, -status); decode_getfattr_generic()
4689 return status; decode_getfattr_generic()
4746 int status = 0; decode_attr_pnfstype() local
4752 status = decode_first_pnfs_layout_type(xdr, layouttype); decode_attr_pnfstype()
4756 return status; decode_attr_pnfstype()
4807 int status; decode_fsinfo() local
4809 if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) decode_fsinfo()
4811 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) decode_fsinfo()
4813 if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) decode_fsinfo()
4818 if ((status = decode_attr_lease_time(xdr, bitmap, &fsinfo->lease_time)) != 0) decode_fsinfo()
4820 if ((status = decode_attr_maxfilesize(xdr, bitmap, &fsinfo->maxfilesize)) != 0) decode_fsinfo()
4822 if ((status = decode_attr_maxread(xdr, bitmap, &fsinfo->rtmax)) != 0) decode_fsinfo()
4825 if ((status = decode_attr_maxwrite(xdr, bitmap, &fsinfo->wtmax)) != 0) decode_fsinfo()
4829 status = -EIO; decode_fsinfo()
4833 status = decode_attr_time_delta(xdr, bitmap, &fsinfo->time_delta); decode_fsinfo()
4834 if (status != 0) decode_fsinfo()
4836 status = decode_attr_pnfstype(xdr, bitmap, &fsinfo->layouttype); decode_fsinfo()
4837 if (status != 0) decode_fsinfo()
4840 status = -EIO; decode_fsinfo()
4844 status = decode_attr_layout_blksize(xdr, bitmap, &fsinfo->blksize); decode_fsinfo()
4845 if (status) decode_fsinfo()
4847 status = decode_attr_clone_blksize(xdr, bitmap, &fsinfo->clone_blksize); decode_fsinfo()
4848 if (status) decode_fsinfo()
4851 status = verify_attr_len(xdr, savep, attrlen); decode_fsinfo()
4853 dprintk("%s: xdr returned %d!\n", __func__, -status); decode_fsinfo()
4854 return status; decode_fsinfo()
4861 int status; decode_getfh() local
4866 status = decode_op_hdr(xdr, OP_GETFH); decode_getfh()
4867 if (status) decode_getfh()
4868 return status; decode_getfh()
4889 int status; decode_link() local
4891 status = decode_op_hdr(xdr, OP_LINK); decode_link()
4892 if (status) decode_link()
4893 return status; decode_link()
4934 int status; decode_lock() local
4936 status = decode_op_hdr(xdr, OP_LOCK); decode_lock()
4937 if (status == -EIO) decode_lock()
4939 if (status == 0) { decode_lock()
4940 status = decode_stateid(xdr, &res->stateid); decode_lock()
4941 if (unlikely(status)) decode_lock()
4943 } else if (status == -NFS4ERR_DENIED) decode_lock()
4944 status = decode_lock_denied(xdr, NULL); decode_lock()
4946 nfs_increment_open_seqid(status, res->open_seqid); decode_lock()
4947 nfs_increment_lock_seqid(status, res->lock_seqid); decode_lock()
4949 return status; decode_lock()
4954 int status; decode_lockt() local
4955 status = decode_op_hdr(xdr, OP_LOCKT); decode_lockt()
4956 if (status == -NFS4ERR_DENIED) decode_lockt()
4958 return status; decode_lockt()
4963 int status; decode_locku() local
4965 status = decode_op_hdr(xdr, OP_LOCKU); decode_locku()
4966 if (status != -EIO) decode_locku()
4967 nfs_increment_lock_seqid(status, res->seqid); decode_locku()
4968 if (status == 0) decode_locku()
4969 status = decode_stateid(xdr, &res->stateid); decode_locku()
4970 return status; decode_locku()
5017 int status; decode_rw_delegation() local
5019 status = decode_stateid(xdr, &res->delegation); decode_rw_delegation()
5020 if (unlikely(status)) decode_rw_delegation()
5021 return status; decode_rw_delegation()
5092 int status; decode_open() local
5094 if (!__decode_op_hdr(xdr, OP_OPEN, &status)) decode_open()
5095 return status; decode_open()
5096 nfs_increment_open_seqid(status, res->seqid); decode_open()
5097 if (status) decode_open()
5098 return status; decode_open()
5099 status = decode_stateid(xdr, &res->stateid); decode_open()
5100 if (unlikely(status)) decode_open()
5101 return status; decode_open()
5133 int status; decode_open_confirm() local
5135 status = decode_op_hdr(xdr, OP_OPEN_CONFIRM); decode_open_confirm()
5136 if (status != -EIO) decode_open_confirm()
5137 nfs_increment_open_seqid(status, res->seqid); decode_open_confirm()
5138 if (!status) decode_open_confirm()
5139 status = decode_stateid(xdr, &res->stateid); decode_open_confirm()
5140 return status; decode_open_confirm()
5145 int status; decode_open_downgrade() local
5147 status = decode_op_hdr(xdr, OP_OPEN_DOWNGRADE); decode_open_downgrade()
5148 if (status != -EIO) decode_open_downgrade()
5149 nfs_increment_open_seqid(status, res->seqid); decode_open_downgrade()
5150 if (!status) decode_open_downgrade()
5151 status = decode_stateid(xdr, &res->stateid); decode_open_downgrade()
5152 return status; decode_open_downgrade()
5170 int status; decode_read() local
5172 status = decode_op_hdr(xdr, OP_READ); decode_read()
5173 if (status) decode_read()
5174 return status; decode_read()
5197 int status; decode_readdir() local
5200 status = decode_op_hdr(xdr, OP_READDIR); decode_readdir()
5201 if (!status) decode_readdir()
5202 status = decode_verifier(xdr, readdir->verifier.data); decode_readdir()
5203 if (unlikely(status)) decode_readdir()
5204 return status; decode_readdir()
5216 int status; decode_readlink() local
5218 status = decode_op_hdr(xdr, OP_READLINK); decode_readlink()
5219 if (status) decode_readlink()
5220 return status; decode_readlink()
5253 int status; decode_remove() local
5255 status = decode_op_hdr(xdr, OP_REMOVE); decode_remove()
5256 if (status) decode_remove()
5258 status = decode_change_info(xdr, cinfo); decode_remove()
5260 return status; decode_remove()
5266 int status; decode_rename() local
5268 status = decode_op_hdr(xdr, OP_RENAME); decode_rename()
5269 if (status) decode_rename()
5271 if ((status = decode_change_info(xdr, old_cinfo))) decode_rename()
5273 status = decode_change_info(xdr, new_cinfo); decode_rename()
5275 return status; decode_rename()
5295 int status; decode_getacl() local
5299 if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) decode_getacl()
5307 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) decode_getacl()
5309 if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) decode_getacl()
5330 status = -EOPNOTSUPP; decode_getacl()
5333 return status; decode_getacl()
5346 int status; decode_setattr() local
5348 status = decode_op_hdr(xdr, OP_SETATTR); decode_setattr()
5349 if (status) decode_setattr()
5350 return status; decode_setattr()
5423 int status; decode_write() local
5425 status = decode_op_hdr(xdr, OP_WRITE); decode_write()
5426 if (status) decode_write()
5427 return status; decode_write()
5483 int status; decode_secinfo_common() local
5504 status = decode_secinfo_gss(xdr, sec_flavor); decode_secinfo_common()
5505 if (status) decode_secinfo_common()
5511 status = 0; decode_secinfo_common()
5513 return status; decode_secinfo_common()
5521 int status = decode_op_hdr(xdr, OP_SECINFO); decode_secinfo() local
5522 if (status) decode_secinfo()
5523 return status; decode_secinfo()
5530 int status = decode_op_hdr(xdr, OP_SECINFO_NO_NAME); decode_secinfo_no_name() local
5531 if (status) decode_secinfo_no_name()
5532 return status; decode_secinfo_no_name()
5559 int status; decode_exchange_id() local
5562 status = decode_op_hdr(xdr, OP_EXCHANGE_ID); decode_exchange_id()
5563 if (status) decode_exchange_id()
5564 return status; decode_exchange_id()
5581 status = decode_op_map(xdr, &res->state_protect.enforce); decode_exchange_id()
5582 if (status) decode_exchange_id()
5583 return status; decode_exchange_id()
5584 status = decode_op_map(xdr, &res->state_protect.allow); decode_exchange_id()
5585 if (status) decode_exchange_id()
5586 return status; decode_exchange_id()
5600 status = decode_opaque_inline(xdr, &dummy, &dummy_str); decode_exchange_id()
5601 if (unlikely(status)) decode_exchange_id()
5602 return status; decode_exchange_id()
5609 status = decode_opaque_inline(xdr, &dummy, &dummy_str); decode_exchange_id()
5610 if (unlikely(status)) decode_exchange_id()
5611 return status; decode_exchange_id()
5625 status = decode_opaque_inline(xdr, &dummy, &dummy_str); decode_exchange_id()
5626 if (unlikely(status)) decode_exchange_id()
5627 return status; decode_exchange_id()
5633 status = decode_opaque_inline(xdr, &dummy, &dummy_str); decode_exchange_id()
5634 if (unlikely(status)) decode_exchange_id()
5635 return status; decode_exchange_id()
5698 int status; decode_bind_conn_to_session() local
5700 status = decode_op_hdr(xdr, OP_BIND_CONN_TO_SESSION); decode_bind_conn_to_session()
5701 if (!status) decode_bind_conn_to_session()
5702 status = decode_sessionid(xdr, &res->sessionid); decode_bind_conn_to_session()
5703 if (unlikely(status)) decode_bind_conn_to_session()
5704 return status; decode_bind_conn_to_session()
5729 int status; decode_create_session() local
5731 status = decode_op_hdr(xdr, OP_CREATE_SESSION); decode_create_session()
5732 if (!status) decode_create_session()
5733 status = decode_sessionid(xdr, &res->sessionid); decode_create_session()
5734 if (unlikely(status)) decode_create_session()
5735 return status; decode_create_session()
5745 status = decode_chan_attrs(xdr, &res->fc_attrs); decode_create_session()
5746 if (!status) decode_create_session()
5747 status = decode_chan_attrs(xdr, &res->bc_attrs); decode_create_session()
5748 return status; decode_create_session()
5778 int status; decode_sequence() local
5786 status = decode_op_hdr(xdr, OP_SEQUENCE); decode_sequence()
5787 if (!status) decode_sequence()
5788 status = decode_sessionid(xdr, &id); decode_sequence()
5789 if (unlikely(status)) decode_sequence()
5796 status = -EREMOTEIO; decode_sequence()
5827 status = 0; decode_sequence()
5829 res->sr_status = status; decode_sequence()
5830 return status; decode_sequence()
5833 status = -EIO; decode_sequence()
5847 int status; decode_getdeviceinfo() local
5849 status = decode_op_hdr(xdr, OP_GETDEVICEINFO); decode_getdeviceinfo()
5850 if (status) { decode_getdeviceinfo()
5851 if (status == -ETOOSMALL) { decode_getdeviceinfo()
5859 return status; decode_getdeviceinfo()
5911 int status; decode_layoutget() local
5915 status = decode_op_hdr(xdr, OP_LAYOUTGET); decode_layoutget()
5916 if (status) decode_layoutget()
5917 return status; decode_layoutget()
5978 int status; decode_layoutreturn() local
5980 status = decode_op_hdr(xdr, OP_LAYOUTRETURN); decode_layoutreturn()
5981 if (status) decode_layoutreturn()
5982 return status; decode_layoutreturn()
5988 status = decode_stateid(xdr, &res->stateid); decode_layoutreturn()
5989 return status; decode_layoutreturn()
6001 int status; decode_layoutcommit() local
6003 status = decode_op_hdr(xdr, OP_LAYOUTCOMMIT); decode_layoutcommit()
6004 res->status = status; decode_layoutcommit()
6005 if (status) decode_layoutcommit()
6006 return status; decode_layoutcommit()
6029 int status; decode_test_stateid() local
6032 status = decode_op_hdr(xdr, OP_TEST_STATEID); decode_test_stateid()
6033 if (status) decode_test_stateid()
6034 return status; decode_test_stateid()
6046 res->status = be32_to_cpup(p++); decode_test_stateid()
6048 return status; decode_test_stateid()
6058 res->status = decode_op_hdr(xdr, OP_FREE_STATEID); decode_free_stateid()
6059 return res->status; decode_free_stateid()
6075 int status; nfs4_xdr_dec_open_downgrade() local
6077 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_open_downgrade()
6078 if (status) nfs4_xdr_dec_open_downgrade()
6080 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_open_downgrade()
6081 if (status) nfs4_xdr_dec_open_downgrade()
6083 status = decode_putfh(xdr); nfs4_xdr_dec_open_downgrade()
6084 if (status) nfs4_xdr_dec_open_downgrade()
6086 status = decode_open_downgrade(xdr, res); nfs4_xdr_dec_open_downgrade()
6087 if (status != 0) nfs4_xdr_dec_open_downgrade()
6091 return status; nfs4_xdr_dec_open_downgrade()
6101 int status; nfs4_xdr_dec_access() local
6103 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_access()
6104 if (status) nfs4_xdr_dec_access()
6106 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_access()
6107 if (status) nfs4_xdr_dec_access()
6109 status = decode_putfh(xdr); nfs4_xdr_dec_access()
6110 if (status != 0) nfs4_xdr_dec_access()
6112 status = decode_access(xdr, &res->supported, &res->access); nfs4_xdr_dec_access()
6113 if (status != 0) nfs4_xdr_dec_access()
6117 return status; nfs4_xdr_dec_access()
6127 int status; nfs4_xdr_dec_lookup() local
6129 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_lookup()
6130 if (status) nfs4_xdr_dec_lookup()
6132 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_lookup()
6133 if (status) nfs4_xdr_dec_lookup()
6135 status = decode_putfh(xdr); nfs4_xdr_dec_lookup()
6136 if (status) nfs4_xdr_dec_lookup()
6138 status = decode_lookup(xdr); nfs4_xdr_dec_lookup()
6139 if (status) nfs4_xdr_dec_lookup()
6141 status = decode_getfh(xdr, res->fh); nfs4_xdr_dec_lookup()
6142 if (status) nfs4_xdr_dec_lookup()
6144 status = decode_getfattr_label(xdr, res->fattr, res->label, res->server); nfs4_xdr_dec_lookup()
6146 return status; nfs4_xdr_dec_lookup()
6157 int status; nfs4_xdr_dec_lookup_root() local
6159 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_lookup_root()
6160 if (status) nfs4_xdr_dec_lookup_root()
6162 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_lookup_root()
6163 if (status) nfs4_xdr_dec_lookup_root()
6165 status = decode_putrootfh(xdr); nfs4_xdr_dec_lookup_root()
6166 if (status) nfs4_xdr_dec_lookup_root()
6168 status = decode_getfh(xdr, res->fh); nfs4_xdr_dec_lookup_root()
6169 if (status == 0) nfs4_xdr_dec_lookup_root()
6170 status = decode_getfattr_label(xdr, res->fattr, nfs4_xdr_dec_lookup_root()
6173 return status; nfs4_xdr_dec_lookup_root()
6183 int status; nfs4_xdr_dec_remove() local
6185 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_remove()
6186 if (status) nfs4_xdr_dec_remove()
6188 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_remove()
6189 if (status) nfs4_xdr_dec_remove()
6191 status = decode_putfh(xdr); nfs4_xdr_dec_remove()
6192 if (status) nfs4_xdr_dec_remove()
6194 status = decode_remove(xdr, &res->cinfo); nfs4_xdr_dec_remove()
6196 return status; nfs4_xdr_dec_remove()
6206 int status; nfs4_xdr_dec_rename() local
6208 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_rename()
6209 if (status) nfs4_xdr_dec_rename()
6211 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_rename()
6212 if (status) nfs4_xdr_dec_rename()
6214 status = decode_putfh(xdr); nfs4_xdr_dec_rename()
6215 if (status) nfs4_xdr_dec_rename()
6217 status = decode_savefh(xdr); nfs4_xdr_dec_rename()
6218 if (status) nfs4_xdr_dec_rename()
6220 status = decode_putfh(xdr); nfs4_xdr_dec_rename()
6221 if (status) nfs4_xdr_dec_rename()
6223 status = decode_rename(xdr, &res->old_cinfo, &res->new_cinfo); nfs4_xdr_dec_rename()
6225 return status; nfs4_xdr_dec_rename()
6235 int status; nfs4_xdr_dec_link() local
6237 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_link()
6238 if (status) nfs4_xdr_dec_link()
6240 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_link()
6241 if (status) nfs4_xdr_dec_link()
6243 status = decode_putfh(xdr); nfs4_xdr_dec_link()
6244 if (status) nfs4_xdr_dec_link()
6246 status = decode_savefh(xdr); nfs4_xdr_dec_link()
6247 if (status) nfs4_xdr_dec_link()
6249 status = decode_putfh(xdr); nfs4_xdr_dec_link()
6250 if (status) nfs4_xdr_dec_link()
6252 status = decode_link(xdr, &res->cinfo); nfs4_xdr_dec_link()
6253 if (status) nfs4_xdr_dec_link()
6259 status = decode_restorefh(xdr); nfs4_xdr_dec_link()
6260 if (status) nfs4_xdr_dec_link()
6264 return status; nfs4_xdr_dec_link()
6274 int status; nfs4_xdr_dec_create() local
6276 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_create()
6277 if (status) nfs4_xdr_dec_create()
6279 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_create()
6280 if (status) nfs4_xdr_dec_create()
6282 status = decode_putfh(xdr); nfs4_xdr_dec_create()
6283 if (status) nfs4_xdr_dec_create()
6285 status = decode_create(xdr, &res->dir_cinfo); nfs4_xdr_dec_create()
6286 if (status) nfs4_xdr_dec_create()
6288 status = decode_getfh(xdr, res->fh); nfs4_xdr_dec_create()
6289 if (status) nfs4_xdr_dec_create()
6293 return status; nfs4_xdr_dec_create()
6312 int status; nfs4_xdr_dec_getattr() local
6314 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_getattr()
6315 if (status) nfs4_xdr_dec_getattr()
6317 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_getattr()
6318 if (status) nfs4_xdr_dec_getattr()
6320 status = decode_putfh(xdr); nfs4_xdr_dec_getattr()
6321 if (status) nfs4_xdr_dec_getattr()
6323 status = decode_getfattr_label(xdr, res->fattr, res->label, res->server); nfs4_xdr_dec_getattr()
6325 return status; nfs4_xdr_dec_getattr()
6353 int status; nfs4_xdr_dec_setacl() local
6355 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_setacl()
6356 if (status) nfs4_xdr_dec_setacl()
6358 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_setacl()
6359 if (status) nfs4_xdr_dec_setacl()
6361 status = decode_putfh(xdr); nfs4_xdr_dec_setacl()
6362 if (status) nfs4_xdr_dec_setacl()
6364 status = decode_setattr(xdr); nfs4_xdr_dec_setacl()
6366 return status; nfs4_xdr_dec_setacl()
6377 int status; nfs4_xdr_dec_getacl() local
6383 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_getacl()
6384 if (status) nfs4_xdr_dec_getacl()
6386 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_getacl()
6387 if (status) nfs4_xdr_dec_getacl()
6389 status = decode_putfh(xdr); nfs4_xdr_dec_getacl()
6390 if (status) nfs4_xdr_dec_getacl()
6392 status = decode_getacl(xdr, rqstp, res); nfs4_xdr_dec_getacl()
6395 return status; nfs4_xdr_dec_getacl()
6405 int status; nfs4_xdr_dec_close() local
6407 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_close()
6408 if (status) nfs4_xdr_dec_close()
6410 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_close()
6411 if (status) nfs4_xdr_dec_close()
6413 status = decode_putfh(xdr); nfs4_xdr_dec_close()
6414 if (status) nfs4_xdr_dec_close()
6416 status = decode_close(xdr, res); nfs4_xdr_dec_close()
6417 if (status != 0) nfs4_xdr_dec_close()
6427 return status; nfs4_xdr_dec_close()
6437 int status; nfs4_xdr_dec_open() local
6439 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_open()
6440 if (status) nfs4_xdr_dec_open()
6442 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_open()
6443 if (status) nfs4_xdr_dec_open()
6445 status = decode_putfh(xdr); nfs4_xdr_dec_open()
6446 if (status) nfs4_xdr_dec_open()
6448 status = decode_open(xdr, res); nfs4_xdr_dec_open()
6449 if (status) nfs4_xdr_dec_open()
6451 status = decode_getfh(xdr, &res->fh); nfs4_xdr_dec_open()
6452 if (status) nfs4_xdr_dec_open()
6458 return status; nfs4_xdr_dec_open()
6469 int status; nfs4_xdr_dec_open_confirm() local
6471 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_open_confirm()
6472 if (status) nfs4_xdr_dec_open_confirm()
6474 status = decode_putfh(xdr); nfs4_xdr_dec_open_confirm()
6475 if (status) nfs4_xdr_dec_open_confirm()
6477 status = decode_open_confirm(xdr, res); nfs4_xdr_dec_open_confirm()
6479 return status; nfs4_xdr_dec_open_confirm()
6490 int status; nfs4_xdr_dec_open_noattr() local
6492 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_open_noattr()
6493 if (status) nfs4_xdr_dec_open_noattr()
6495 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_open_noattr()
6496 if (status) nfs4_xdr_dec_open_noattr()
6498 status = decode_putfh(xdr); nfs4_xdr_dec_open_noattr()
6499 if (status) nfs4_xdr_dec_open_noattr()
6501 status = decode_open(xdr, res); nfs4_xdr_dec_open_noattr()
6502 if (status) nfs4_xdr_dec_open_noattr()
6508 return status; nfs4_xdr_dec_open_noattr()
6519 int status; nfs4_xdr_dec_setattr() local
6521 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_setattr()
6522 if (status) nfs4_xdr_dec_setattr()
6524 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_setattr()
6525 if (status) nfs4_xdr_dec_setattr()
6527 status = decode_putfh(xdr); nfs4_xdr_dec_setattr()
6528 if (status) nfs4_xdr_dec_setattr()
6530 status = decode_setattr(xdr); nfs4_xdr_dec_setattr()
6531 if (status) nfs4_xdr_dec_setattr()
6535 return status; nfs4_xdr_dec_setattr()
6545 int status; nfs4_xdr_dec_lock() local
6547 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_lock()
6548 if (status) nfs4_xdr_dec_lock()
6550 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_lock()
6551 if (status) nfs4_xdr_dec_lock()
6553 status = decode_putfh(xdr); nfs4_xdr_dec_lock()
6554 if (status) nfs4_xdr_dec_lock()
6556 status = decode_lock(xdr, res); nfs4_xdr_dec_lock()
6558 return status; nfs4_xdr_dec_lock()
6568 int status; nfs4_xdr_dec_lockt() local
6570 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_lockt()
6571 if (status) nfs4_xdr_dec_lockt()
6573 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_lockt()
6574 if (status) nfs4_xdr_dec_lockt()
6576 status = decode_putfh(xdr); nfs4_xdr_dec_lockt()
6577 if (status) nfs4_xdr_dec_lockt()
6579 status = decode_lockt(xdr, res); nfs4_xdr_dec_lockt()
6581 return status; nfs4_xdr_dec_lockt()
6591 int status; nfs4_xdr_dec_locku() local
6593 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_locku()
6594 if (status) nfs4_xdr_dec_locku()
6596 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_locku()
6597 if (status) nfs4_xdr_dec_locku()
6599 status = decode_putfh(xdr); nfs4_xdr_dec_locku()
6600 if (status) nfs4_xdr_dec_locku()
6602 status = decode_locku(xdr, res); nfs4_xdr_dec_locku()
6604 return status; nfs4_xdr_dec_locku()
6611 int status; nfs4_xdr_dec_release_lockowner() local
6613 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_release_lockowner()
6614 if (!status) nfs4_xdr_dec_release_lockowner()
6615 status = decode_release_lockowner(xdr); nfs4_xdr_dec_release_lockowner()
6616 return status; nfs4_xdr_dec_release_lockowner()
6627 int status; nfs4_xdr_dec_readlink() local
6629 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_readlink()
6630 if (status) nfs4_xdr_dec_readlink()
6632 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_readlink()
6633 if (status) nfs4_xdr_dec_readlink()
6635 status = decode_putfh(xdr); nfs4_xdr_dec_readlink()
6636 if (status) nfs4_xdr_dec_readlink()
6638 status = decode_readlink(xdr, rqstp); nfs4_xdr_dec_readlink()
6640 return status; nfs4_xdr_dec_readlink()
6650 int status; nfs4_xdr_dec_readdir() local
6652 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_readdir()
6653 if (status) nfs4_xdr_dec_readdir()
6655 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_readdir()
6656 if (status) nfs4_xdr_dec_readdir()
6658 status = decode_putfh(xdr); nfs4_xdr_dec_readdir()
6659 if (status) nfs4_xdr_dec_readdir()
6661 status = decode_readdir(xdr, rqstp, res); nfs4_xdr_dec_readdir()
6663 return status; nfs4_xdr_dec_readdir()
6673 int status; nfs4_xdr_dec_read() local
6675 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_read()
6676 res->op_status = hdr.status; nfs4_xdr_dec_read()
6677 if (status) nfs4_xdr_dec_read()
6679 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_read()
6680 if (status) nfs4_xdr_dec_read()
6682 status = decode_putfh(xdr); nfs4_xdr_dec_read()
6683 if (status) nfs4_xdr_dec_read()
6685 status = decode_read(xdr, rqstp, res); nfs4_xdr_dec_read()
6686 if (!status) nfs4_xdr_dec_read()
6687 status = res->count; nfs4_xdr_dec_read()
6689 return status; nfs4_xdr_dec_read()
6699 int status; nfs4_xdr_dec_write() local
6701 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_write()
6702 res->op_status = hdr.status; nfs4_xdr_dec_write()
6703 if (status) nfs4_xdr_dec_write()
6705 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_write()
6706 if (status) nfs4_xdr_dec_write()
6708 status = decode_putfh(xdr); nfs4_xdr_dec_write()
6709 if (status) nfs4_xdr_dec_write()
6711 status = decode_write(xdr, res); nfs4_xdr_dec_write()
6712 if (status) nfs4_xdr_dec_write()
6716 if (!status) nfs4_xdr_dec_write()
6717 status = res->count; nfs4_xdr_dec_write()
6719 return status; nfs4_xdr_dec_write()
6729 int status; nfs4_xdr_dec_commit() local
6731 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_commit()
6732 res->op_status = hdr.status; nfs4_xdr_dec_commit()
6733 if (status) nfs4_xdr_dec_commit()
6735 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_commit()
6736 if (status) nfs4_xdr_dec_commit()
6738 status = decode_putfh(xdr); nfs4_xdr_dec_commit()
6739 if (status) nfs4_xdr_dec_commit()
6741 status = decode_commit(xdr, res); nfs4_xdr_dec_commit()
6743 return status; nfs4_xdr_dec_commit()
6753 int status; nfs4_xdr_dec_fsinfo() local
6755 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_fsinfo()
6756 if (!status) nfs4_xdr_dec_fsinfo()
6757 status = decode_sequence(xdr, &res->seq_res, req); nfs4_xdr_dec_fsinfo()
6758 if (!status) nfs4_xdr_dec_fsinfo()
6759 status = decode_putfh(xdr); nfs4_xdr_dec_fsinfo()
6760 if (!status) nfs4_xdr_dec_fsinfo()
6761 status = decode_fsinfo(xdr, res->fsinfo); nfs4_xdr_dec_fsinfo()
6762 return status; nfs4_xdr_dec_fsinfo()
6772 int status; nfs4_xdr_dec_pathconf() local
6774 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_pathconf()
6775 if (!status) nfs4_xdr_dec_pathconf()
6776 status = decode_sequence(xdr, &res->seq_res, req); nfs4_xdr_dec_pathconf()
6777 if (!status) nfs4_xdr_dec_pathconf()
6778 status = decode_putfh(xdr); nfs4_xdr_dec_pathconf()
6779 if (!status) nfs4_xdr_dec_pathconf()
6780 status = decode_pathconf(xdr, res->pathconf); nfs4_xdr_dec_pathconf()
6781 return status; nfs4_xdr_dec_pathconf()
6791 int status; nfs4_xdr_dec_statfs() local
6793 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_statfs()
6794 if (!status) nfs4_xdr_dec_statfs()
6795 status = decode_sequence(xdr, &res->seq_res, req); nfs4_xdr_dec_statfs()
6796 if (!status) nfs4_xdr_dec_statfs()
6797 status = decode_putfh(xdr); nfs4_xdr_dec_statfs()
6798 if (!status) nfs4_xdr_dec_statfs()
6799 status = decode_statfs(xdr, res->fsstat); nfs4_xdr_dec_statfs()
6800 return status; nfs4_xdr_dec_statfs()
6811 int status; nfs4_xdr_dec_server_caps() local
6813 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_server_caps()
6814 if (status) nfs4_xdr_dec_server_caps()
6816 status = decode_sequence(xdr, &res->seq_res, req); nfs4_xdr_dec_server_caps()
6817 if (status) nfs4_xdr_dec_server_caps()
6819 status = decode_putfh(xdr); nfs4_xdr_dec_server_caps()
6820 if (status) nfs4_xdr_dec_server_caps()
6822 status = decode_server_caps(xdr, res); nfs4_xdr_dec_server_caps()
6824 return status; nfs4_xdr_dec_server_caps()
6834 int status; nfs4_xdr_dec_renew() local
6836 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_renew()
6837 if (!status) nfs4_xdr_dec_renew()
6838 status = decode_renew(xdr); nfs4_xdr_dec_renew()
6839 return status; nfs4_xdr_dec_renew()
6850 int status; nfs4_xdr_dec_setclientid() local
6852 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_setclientid()
6853 if (!status) nfs4_xdr_dec_setclientid()
6854 status = decode_setclientid(xdr, res); nfs4_xdr_dec_setclientid()
6855 return status; nfs4_xdr_dec_setclientid()
6865 int status; nfs4_xdr_dec_setclientid_confirm() local
6867 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_setclientid_confirm()
6868 if (!status) nfs4_xdr_dec_setclientid_confirm()
6869 status = decode_setclientid_confirm(xdr); nfs4_xdr_dec_setclientid_confirm()
6870 return status; nfs4_xdr_dec_setclientid_confirm()
6881 int status; nfs4_xdr_dec_delegreturn() local
6883 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_delegreturn()
6884 if (status) nfs4_xdr_dec_delegreturn()
6886 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_delegreturn()
6887 if (status) nfs4_xdr_dec_delegreturn()
6889 status = decode_putfh(xdr); nfs4_xdr_dec_delegreturn()
6890 if (status != 0) nfs4_xdr_dec_delegreturn()
6892 status = decode_getfattr(xdr, res->fattr, res->server); nfs4_xdr_dec_delegreturn()
6893 if (status != 0) nfs4_xdr_dec_delegreturn()
6895 status = decode_delegreturn(xdr); nfs4_xdr_dec_delegreturn()
6897 return status; nfs4_xdr_dec_delegreturn()
6908 int status; nfs4_xdr_dec_fs_locations() local
6910 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_fs_locations()
6911 if (status) nfs4_xdr_dec_fs_locations()
6913 status = decode_sequence(xdr, &res->seq_res, req); nfs4_xdr_dec_fs_locations()
6914 if (status) nfs4_xdr_dec_fs_locations()
6916 status = decode_putfh(xdr); nfs4_xdr_dec_fs_locations()
6917 if (status) nfs4_xdr_dec_fs_locations()
6921 status = decode_getfattr_generic(xdr, nfs4_xdr_dec_fs_locations()
6925 if (status) nfs4_xdr_dec_fs_locations()
6928 status = decode_renew(xdr); nfs4_xdr_dec_fs_locations()
6930 status = decode_lookup(xdr); nfs4_xdr_dec_fs_locations()
6931 if (status) nfs4_xdr_dec_fs_locations()
6934 status = decode_getfattr_generic(xdr, nfs4_xdr_dec_fs_locations()
6940 return status; nfs4_xdr_dec_fs_locations()
6951 int status; nfs4_xdr_dec_secinfo() local
6953 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_secinfo()
6954 if (status) nfs4_xdr_dec_secinfo()
6956 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_secinfo()
6957 if (status) nfs4_xdr_dec_secinfo()
6959 status = decode_putfh(xdr); nfs4_xdr_dec_secinfo()
6960 if (status) nfs4_xdr_dec_secinfo()
6962 status = decode_secinfo(xdr, res); nfs4_xdr_dec_secinfo()
6964 return status; nfs4_xdr_dec_secinfo()
6975 int status; nfs4_xdr_dec_fsid_present() local
6977 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_fsid_present()
6978 if (status) nfs4_xdr_dec_fsid_present()
6980 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_fsid_present()
6981 if (status) nfs4_xdr_dec_fsid_present()
6983 status = decode_putfh(xdr); nfs4_xdr_dec_fsid_present()
6984 if (status) nfs4_xdr_dec_fsid_present()
6986 status = decode_getfh(xdr, res->fh); nfs4_xdr_dec_fsid_present()
6987 if (status) nfs4_xdr_dec_fsid_present()
6990 status = decode_renew(xdr); nfs4_xdr_dec_fsid_present()
6992 return status; nfs4_xdr_dec_fsid_present()
7004 int status; nfs4_xdr_dec_bind_conn_to_session() local
7006 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_bind_conn_to_session()
7007 if (!status) nfs4_xdr_dec_bind_conn_to_session()
7008 status = decode_bind_conn_to_session(xdr, res); nfs4_xdr_dec_bind_conn_to_session()
7009 return status; nfs4_xdr_dec_bind_conn_to_session()
7020 int status; nfs4_xdr_dec_exchange_id() local
7022 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_exchange_id()
7023 if (!status) nfs4_xdr_dec_exchange_id()
7024 status = decode_exchange_id(xdr, res); nfs4_xdr_dec_exchange_id()
7025 return status; nfs4_xdr_dec_exchange_id()
7036 int status; nfs4_xdr_dec_create_session() local
7038 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_create_session()
7039 if (!status) nfs4_xdr_dec_create_session()
7040 status = decode_create_session(xdr, res); nfs4_xdr_dec_create_session()
7041 return status; nfs4_xdr_dec_create_session()
7052 int status; nfs4_xdr_dec_destroy_session() local
7054 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_destroy_session()
7055 if (!status) nfs4_xdr_dec_destroy_session()
7056 status = decode_destroy_session(xdr, res); nfs4_xdr_dec_destroy_session()
7057 return status; nfs4_xdr_dec_destroy_session()
7068 int status; nfs4_xdr_dec_destroy_clientid() local
7070 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_destroy_clientid()
7071 if (!status) nfs4_xdr_dec_destroy_clientid()
7072 status = decode_destroy_clientid(xdr, res); nfs4_xdr_dec_destroy_clientid()
7073 return status; nfs4_xdr_dec_destroy_clientid()
7084 int status; nfs4_xdr_dec_sequence() local
7086 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_sequence()
7087 if (!status) nfs4_xdr_dec_sequence()
7088 status = decode_sequence(xdr, res, rqstp); nfs4_xdr_dec_sequence()
7089 return status; nfs4_xdr_dec_sequence()
7100 int status; nfs4_xdr_dec_get_lease_time() local
7102 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_get_lease_time()
7103 if (!status) nfs4_xdr_dec_get_lease_time()
7104 status = decode_sequence(xdr, &res->lr_seq_res, rqstp); nfs4_xdr_dec_get_lease_time()
7105 if (!status) nfs4_xdr_dec_get_lease_time()
7106 status = decode_putrootfh(xdr); nfs4_xdr_dec_get_lease_time()
7107 if (!status) nfs4_xdr_dec_get_lease_time()
7108 status = decode_fsinfo(xdr, res->lr_fsinfo); nfs4_xdr_dec_get_lease_time()
7109 return status; nfs4_xdr_dec_get_lease_time()
7120 int status; nfs4_xdr_dec_reclaim_complete() local
7122 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_reclaim_complete()
7123 if (!status) nfs4_xdr_dec_reclaim_complete()
7124 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_reclaim_complete()
7125 if (!status) nfs4_xdr_dec_reclaim_complete()
7126 status = decode_reclaim_complete(xdr, NULL); nfs4_xdr_dec_reclaim_complete()
7127 return status; nfs4_xdr_dec_reclaim_complete()
7138 int status; nfs4_xdr_dec_getdeviceinfo() local
7140 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_getdeviceinfo()
7141 if (status != 0) nfs4_xdr_dec_getdeviceinfo()
7143 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_getdeviceinfo()
7144 if (status != 0) nfs4_xdr_dec_getdeviceinfo()
7146 status = decode_getdeviceinfo(xdr, res); nfs4_xdr_dec_getdeviceinfo()
7148 return status; nfs4_xdr_dec_getdeviceinfo()
7159 int status; nfs4_xdr_dec_layoutget() local
7161 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_layoutget()
7162 if (status) nfs4_xdr_dec_layoutget()
7164 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_layoutget()
7165 if (status) nfs4_xdr_dec_layoutget()
7167 status = decode_putfh(xdr); nfs4_xdr_dec_layoutget()
7168 if (status) nfs4_xdr_dec_layoutget()
7170 status = decode_layoutget(xdr, rqstp, res); nfs4_xdr_dec_layoutget()
7172 return status; nfs4_xdr_dec_layoutget()
7183 int status; nfs4_xdr_dec_layoutreturn() local
7185 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_layoutreturn()
7186 if (status) nfs4_xdr_dec_layoutreturn()
7188 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_layoutreturn()
7189 if (status) nfs4_xdr_dec_layoutreturn()
7191 status = decode_putfh(xdr); nfs4_xdr_dec_layoutreturn()
7192 if (status) nfs4_xdr_dec_layoutreturn()
7194 status = decode_layoutreturn(xdr, res); nfs4_xdr_dec_layoutreturn()
7196 return status; nfs4_xdr_dec_layoutreturn()
7207 int status; nfs4_xdr_dec_layoutcommit() local
7209 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_layoutcommit()
7210 if (status) nfs4_xdr_dec_layoutcommit()
7212 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_layoutcommit()
7213 if (status) nfs4_xdr_dec_layoutcommit()
7215 status = decode_putfh(xdr); nfs4_xdr_dec_layoutcommit()
7216 if (status) nfs4_xdr_dec_layoutcommit()
7218 status = decode_layoutcommit(xdr, rqstp, res); nfs4_xdr_dec_layoutcommit()
7219 if (status) nfs4_xdr_dec_layoutcommit()
7223 return status; nfs4_xdr_dec_layoutcommit()
7234 int status; nfs4_xdr_dec_secinfo_no_name() local
7236 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_secinfo_no_name()
7237 if (status) nfs4_xdr_dec_secinfo_no_name()
7239 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_secinfo_no_name()
7240 if (status) nfs4_xdr_dec_secinfo_no_name()
7242 status = decode_putrootfh(xdr); nfs4_xdr_dec_secinfo_no_name()
7243 if (status) nfs4_xdr_dec_secinfo_no_name()
7245 status = decode_secinfo_no_name(xdr, res); nfs4_xdr_dec_secinfo_no_name()
7247 return status; nfs4_xdr_dec_secinfo_no_name()
7258 int status; nfs4_xdr_dec_test_stateid() local
7260 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_test_stateid()
7261 if (status) nfs4_xdr_dec_test_stateid()
7263 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_test_stateid()
7264 if (status) nfs4_xdr_dec_test_stateid()
7266 status = decode_test_stateid(xdr, res); nfs4_xdr_dec_test_stateid()
7268 return status; nfs4_xdr_dec_test_stateid()
7279 int status; nfs4_xdr_dec_free_stateid() local
7281 status = decode_compound_hdr(xdr, &hdr); nfs4_xdr_dec_free_stateid()
7282 if (status) nfs4_xdr_dec_free_stateid()
7284 status = decode_sequence(xdr, &res->seq_res, rqstp); nfs4_xdr_dec_free_stateid()
7285 if (status) nfs4_xdr_dec_free_stateid()
7287 status = decode_free_stateid(xdr, res); nfs4_xdr_dec_free_stateid()
7289 return status; nfs4_xdr_dec_free_stateid()
7372 * We need to translate between nfs status return values and
H A Dnfs3proc.c68 int status; do_proc_get_root() local
72 status = rpc_call_sync(client, &msg, 0); do_proc_get_root()
73 dprintk("%s: reply fsinfo: %d\n", __func__, status); do_proc_get_root()
74 if (status == 0 && !(info->fattr->valid & NFS_ATTR_FATTR)) { do_proc_get_root()
77 status = rpc_call_sync(client, &msg, 0); do_proc_get_root()
78 dprintk("%s: reply getattr: %d\n", __func__, status); do_proc_get_root()
80 return status; do_proc_get_root()
90 int status; nfs3_proc_get_root() local
92 status = do_proc_get_root(server->client, fhandle, info); nfs3_proc_get_root()
93 if (status && server->nfs_client->cl_rpcclient != server->client) nfs3_proc_get_root()
94 status = do_proc_get_root(server->nfs_client->cl_rpcclient, fhandle, info); nfs3_proc_get_root()
95 return status; nfs3_proc_get_root()
110 int status; nfs3_proc_getattr() local
114 status = rpc_call_sync(server->client, &msg, 0); nfs3_proc_getattr()
115 dprintk("NFS reply getattr: %d\n", status); nfs3_proc_getattr()
116 return status; nfs3_proc_getattr()
133 int status; nfs3_proc_setattr() local
139 status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); nfs3_proc_setattr()
140 if (status == 0) nfs3_proc_setattr()
142 dprintk("NFS reply setattr: %d\n", status); nfs3_proc_setattr()
143 return status; nfs3_proc_setattr()
165 int status; nfs3_proc_lookup() local
173 status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); nfs3_proc_lookup()
175 if (status >= 0 && !(fattr->valid & NFS_ATTR_FATTR)) { nfs3_proc_lookup()
179 status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); nfs3_proc_lookup()
182 dprintk("NFS reply lookup: %d\n", status); nfs3_proc_lookup()
183 return status; nfs3_proc_lookup()
199 int status = -ENOMEM; nfs3_proc_access() local
221 status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); nfs3_proc_access()
223 if (status == 0) { nfs3_proc_access()
234 dprintk("NFS reply access: %d\n", status); nfs3_proc_access()
235 return status; nfs3_proc_access()
252 int status = -ENOMEM; nfs3_proc_readlink() local
260 status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); nfs3_proc_readlink()
264 dprintk("NFS reply readlink: %d\n", status); nfs3_proc_readlink()
265 return status; nfs3_proc_readlink()
301 int status; nfs3_do_create() local
303 status = rpc_call_sync(NFS_CLIENT(dir), &data->msg, 0); nfs3_do_create()
305 if (status == 0) nfs3_do_create()
306 status = nfs_instantiate(dentry, data->res.fh, data->res.fattr, NULL); nfs3_do_create()
307 return status; nfs3_do_create()
324 int status = -ENOMEM; nfs3_proc_create() local
345 status = posix_acl_create(dir, &sattr->ia_mode, &default_acl, &acl); nfs3_proc_create()
346 if (status) nfs3_proc_create()
350 status = nfs3_do_create(dir, dentry, data); nfs3_proc_create()
352 if (status != -ENOTSUPP) nfs3_proc_create()
372 if (status != 0) nfs3_proc_create()
388 status = nfs3_proc_setattr(dentry, data->res.fattr, sattr); nfs3_proc_create()
390 dprintk("NFS reply setattr (post-create): %d\n", status); nfs3_proc_create()
391 if (status != 0) nfs3_proc_create()
395 status = nfs3_proc_setacls(d_inode(dentry), acl, default_acl); nfs3_proc_create()
402 dprintk("NFS reply create: %d\n", status); nfs3_proc_create()
403 return status; nfs3_proc_create()
419 int status = -ENOMEM; nfs3_proc_remove() local
426 status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); nfs3_proc_remove()
430 dprintk("NFS reply remove: %d\n", status); nfs3_proc_remove()
431 return status; nfs3_proc_remove()
497 int status = -ENOMEM; nfs3_proc_link() local
505 status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); nfs3_proc_link()
511 dprintk("NFS reply link: %d\n", status); nfs3_proc_link()
512 return status; nfs3_proc_link()
520 int status = -ENOMEM; nfs3_proc_symlink() local
538 status = nfs3_do_create(dir, dentry, data); nfs3_proc_symlink()
542 dprintk("NFS reply symlink: %d\n", status); nfs3_proc_symlink()
543 return status; nfs3_proc_symlink()
551 int status = -ENOMEM; nfs3_proc_mkdir() local
559 status = posix_acl_create(dir, &sattr->ia_mode, &default_acl, &acl); nfs3_proc_mkdir()
560 if (status) nfs3_proc_mkdir()
569 status = nfs3_do_create(dir, dentry, data); nfs3_proc_mkdir()
570 if (status != 0) nfs3_proc_mkdir()
573 status = nfs3_proc_setacls(d_inode(dentry), acl, default_acl); nfs3_proc_mkdir()
580 dprintk("NFS reply mkdir: %d\n", status); nfs3_proc_mkdir()
581 return status; nfs3_proc_mkdir()
597 int status = -ENOMEM; nfs3_proc_rmdir() local
605 status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); nfs3_proc_rmdir()
609 dprintk("NFS reply rmdir: %d\n", status); nfs3_proc_rmdir()
610 return status; nfs3_proc_rmdir()
646 int status = -ENOMEM; nfs3_proc_readdir() local
658 status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); nfs3_proc_readdir()
666 plus? "plus" : "", status); nfs3_proc_readdir()
667 return status; nfs3_proc_readdir()
676 int status = -ENOMEM; nfs3_proc_mknod() local
685 status = posix_acl_create(dir, &sattr->ia_mode, &default_acl, &acl); nfs3_proc_mknod()
686 if (status) nfs3_proc_mknod()
710 status = -EINVAL; nfs3_proc_mknod()
714 status = nfs3_do_create(dir, dentry, data); nfs3_proc_mknod()
715 if (status != 0) nfs3_proc_mknod()
718 status = nfs3_proc_setacls(d_inode(dentry), acl, default_acl); nfs3_proc_mknod()
725 dprintk("NFS reply mknod: %d\n", status); nfs3_proc_mknod()
726 return status; nfs3_proc_mknod()
738 int status; nfs3_proc_statfs() local
742 status = rpc_call_sync(server->client, &msg, 0); nfs3_proc_statfs()
743 dprintk("NFS reply fsstat: %d\n", status); nfs3_proc_statfs()
744 return status; nfs3_proc_statfs()
756 int status; do_proc_fsinfo() local
760 status = rpc_call_sync(client, &msg, 0); do_proc_fsinfo()
761 dprintk("NFS reply fsinfo: %d\n", status); do_proc_fsinfo()
762 return status; do_proc_fsinfo()
773 int status; nfs3_proc_fsinfo() local
775 status = do_proc_fsinfo(server->client, fhandle, info); nfs3_proc_fsinfo()
776 if (status && server->nfs_client->cl_rpcclient != server->client) nfs3_proc_fsinfo()
777 status = do_proc_fsinfo(server->nfs_client->cl_rpcclient, fhandle, info); nfs3_proc_fsinfo()
778 return status; nfs3_proc_fsinfo()
790 int status; nfs3_proc_pathconf() local
794 status = rpc_call_sync(server->client, &msg, 0); nfs3_proc_pathconf()
795 dprintk("NFS reply pathconf: %d\n", status); nfs3_proc_pathconf()
796 return status; nfs3_proc_pathconf()
H A Dproc.c63 int status; nfs_proc_get_root() local
67 status = rpc_call_sync(server->client, &msg, 0); nfs_proc_get_root()
69 if (status && server->nfs_client->cl_rpcclient != server->client) nfs_proc_get_root()
70 status = rpc_call_sync(server->nfs_client->cl_rpcclient, &msg, 0); nfs_proc_get_root()
71 dprintk("%s: reply getattr: %d\n", __func__, status); nfs_proc_get_root()
72 if (status) nfs_proc_get_root()
73 return status; nfs_proc_get_root()
77 status = rpc_call_sync(server->client, &msg, 0); nfs_proc_get_root()
79 if (status && server->nfs_client->cl_rpcclient != server->client) nfs_proc_get_root()
80 status = rpc_call_sync(server->nfs_client->cl_rpcclient, &msg, 0); nfs_proc_get_root()
81 dprintk("%s: reply statfs: %d\n", __func__, status); nfs_proc_get_root()
82 if (status) nfs_proc_get_root()
83 return status; nfs_proc_get_root()
108 int status; nfs_proc_getattr() local
112 status = rpc_call_sync(server->client, &msg, 0); nfs_proc_getattr()
113 dprintk("NFS reply getattr: %d\n", status); nfs_proc_getattr()
114 return status; nfs_proc_getattr()
131 int status; nfs_proc_setattr() local
140 status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); nfs_proc_setattr()
141 if (status == 0) nfs_proc_setattr()
143 dprintk("NFS reply setattr: %d\n", status); nfs_proc_setattr()
144 return status; nfs_proc_setattr()
166 int status; nfs_proc_lookup() local
170 status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); nfs_proc_lookup()
171 dprintk("NFS reply lookup: %d\n", status); nfs_proc_lookup()
172 return status; nfs_proc_lookup()
188 int status; nfs_proc_readlink() local
191 status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); nfs_proc_readlink()
192 dprintk("NFS reply readlink: %d\n", status); nfs_proc_readlink()
193 return status; nfs_proc_readlink()
236 int status = -ENOMEM; nfs_proc_create() local
244 status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); nfs_proc_create()
246 if (status == 0) nfs_proc_create()
247 status = nfs_instantiate(dentry, data->res.fh, data->res.fattr, NULL); nfs_proc_create()
250 dprintk("NFS reply create: %d\n", status); nfs_proc_create()
251 return status; nfs_proc_create()
266 int status = -ENOMEM; nfs_proc_mknod() local
285 status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); nfs_proc_mknod()
288 if (status == -EINVAL && S_ISFIFO(mode)) { nfs_proc_mknod()
291 status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); nfs_proc_mknod()
293 if (status == 0) nfs_proc_mknod()
294 status = nfs_instantiate(dentry, data->res.fh, data->res.fattr, NULL); nfs_proc_mknod()
297 dprintk("NFS reply mknod: %d\n", status); nfs_proc_mknod()
298 return status; nfs_proc_mknod()
312 int status; nfs_proc_remove() local
315 status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); nfs_proc_remove()
318 dprintk("NFS reply remove: %d\n", status); nfs_proc_remove()
319 return status; nfs_proc_remove()
372 int status; nfs_proc_link() local
375 status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); nfs_proc_link()
378 dprintk("NFS reply link: %d\n", status); nfs_proc_link()
379 return status; nfs_proc_link()
400 int status = -ENAMETOOLONG; nfs_proc_symlink() local
409 status = -ENOMEM; nfs_proc_symlink()
413 status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); nfs_proc_symlink()
421 if (status == 0) nfs_proc_symlink()
422 status = nfs_instantiate(dentry, fh, fattr, NULL); nfs_proc_symlink()
428 dprintk("NFS reply symlink: %d\n", status); nfs_proc_symlink()
429 return status; nfs_proc_symlink()
439 int status = -ENOMEM; nfs_proc_mkdir() local
448 status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); nfs_proc_mkdir()
450 if (status == 0) nfs_proc_mkdir()
451 status = nfs_instantiate(dentry, data->res.fh, data->res.fattr, NULL); nfs_proc_mkdir()
454 dprintk("NFS reply mkdir: %d\n", status); nfs_proc_mkdir()
455 return status; nfs_proc_mkdir()
470 int status; nfs_proc_rmdir() local
473 status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); nfs_proc_rmdir()
475 dprintk("NFS reply rmdir: %d\n", status); nfs_proc_rmdir()
476 return status; nfs_proc_rmdir()
502 int status; nfs_proc_readdir() local
505 status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); nfs_proc_readdir()
509 dprintk("NFS reply readdir: %d\n", status); nfs_proc_readdir()
510 return status; nfs_proc_readdir()
523 int status; nfs_proc_statfs() local
527 status = rpc_call_sync(server->client, &msg, 0); nfs_proc_statfs()
528 dprintk("NFS reply statfs: %d\n", status); nfs_proc_statfs()
529 if (status) nfs_proc_statfs()
538 return status; nfs_proc_statfs()
551 int status; nfs_proc_fsinfo() local
555 status = rpc_call_sync(server->client, &msg, 0); nfs_proc_fsinfo()
556 dprintk("NFS reply fsinfo: %d\n", status); nfs_proc_fsinfo()
557 if (status) nfs_proc_fsinfo()
569 return status; nfs_proc_fsinfo()
H A Dnfs42proc.c54 int status; _nfs42_proc_fallocate() local
59 status = nfs42_set_rw_stateid(&args.falloc_stateid, filep, FMODE_WRITE); _nfs42_proc_fallocate()
60 if (status) _nfs42_proc_fallocate()
61 return status; _nfs42_proc_fallocate()
67 status = nfs4_call_sync(server->client, server, msg, _nfs42_proc_fallocate()
69 if (status == 0) _nfs42_proc_fallocate()
70 status = nfs_post_op_update_inode(inode, res.falloc_fattr); _nfs42_proc_fallocate()
73 return status; _nfs42_proc_fallocate()
154 int status; _nfs42_proc_llseek() local
159 status = nfs42_set_rw_stateid(&args.sa_stateid, filep, FMODE_READ); _nfs42_proc_llseek()
160 if (status) _nfs42_proc_llseek()
161 return status; _nfs42_proc_llseek()
164 status = nfs4_call_sync(server->client, server, &msg, _nfs42_proc_llseek()
166 if (status == -ENOTSUPP) _nfs42_proc_llseek()
168 if (status) _nfs42_proc_llseek()
169 return status; _nfs42_proc_llseek()
293 int status; _nfs42_proc_clone() local
298 status = nfs42_set_rw_stateid(&args.src_stateid, src_f, FMODE_READ); _nfs42_proc_clone()
299 if (status) _nfs42_proc_clone()
300 return status; _nfs42_proc_clone()
302 status = nfs42_set_rw_stateid(&args.dst_stateid, dst_f, FMODE_WRITE); _nfs42_proc_clone()
303 if (status) _nfs42_proc_clone()
304 return status; _nfs42_proc_clone()
310 status = nfs4_call_sync(server->client, server, msg, _nfs42_proc_clone()
312 if (status == 0) _nfs42_proc_clone()
313 status = nfs_post_op_update_inode(dst_inode, res.dst_fattr); _nfs42_proc_clone()
316 return status; _nfs42_proc_clone()
H A Dnfs3acl.c30 int status, count; nfs3_get_acl() local
35 status = nfs_revalidate_inode(server, inode); nfs3_get_acl()
36 if (status < 0) nfs3_get_acl()
37 return ERR_PTR(status); nfs3_get_acl()
58 status = rpc_call_sync(server->client_acl, &msg, 0); nfs3_get_acl()
59 dprintk("NFS reply getacl: %d\n", status); nfs3_get_acl()
65 switch (status) { nfs3_get_acl()
67 status = nfs_refresh_inode(inode, res.fattr); nfs3_get_acl()
74 status = -EOPNOTSUPP; nfs3_get_acl()
79 status = -EIO; nfs3_get_acl()
114 return ERR_PTR(status); nfs3_get_acl()
133 int status = 0; __nfs3_proc_setacls() local
138 status = -EOPNOTSUPP; __nfs3_proc_setacls()
144 status = -ENOSPC; __nfs3_proc_setacls()
159 status = -ENOMEM; __nfs3_proc_setacls()
169 status = -ENOMEM; __nfs3_proc_setacls()
176 status = rpc_call_sync(server->client_acl, &msg, 0); __nfs3_proc_setacls()
179 dprintk("NFS reply setacl: %d\n", status); __nfs3_proc_setacls()
181 switch (status) { __nfs3_proc_setacls()
183 status = nfs_refresh_inode(inode, fattr); __nfs3_proc_setacls()
193 status = -EOPNOTSUPP; __nfs3_proc_setacls()
202 return status; __nfs3_proc_setacls()
217 int status; nfs3_set_acl() local
241 status = __nfs3_proc_setacls(inode, acl, dfacl); nfs3_set_acl()
243 return status; nfs3_set_acl()
H A Dcallback_proc.c30 res->status = htonl(NFS4ERR_OP_NOT_IN_SESSION); nfs4_callback_getattr()
35 res->status = htonl(NFS4ERR_BADHANDLE); nfs4_callback_getattr()
43 -ntohl(res->status)); nfs4_callback_getattr()
61 res->status = 0; nfs4_callback_getattr()
64 trace_nfs4_cb_getattr(cps->clp, &args->fh, inode, -ntohl(res->status)); nfs4_callback_getattr()
67 dprintk("%s: exit with status = %d\n", __func__, ntohl(res->status)); nfs4_callback_getattr()
68 return res->status; nfs4_callback_getattr()
102 dprintk("%s: exit with status = %d\n", __func__, ntohl(res)); nfs4_callback_recall()
246 dprintk("%s: exit with status = %d\n", __func__, res); nfs4_callback_layoutrecall()
300 dprintk("%s: exit with status = %u\n", nfs4_callback_devicenotify()
371 bool status = 0; referring_call_exists() local
404 status = (test_bit(ref->rc_slotid, tbl->used_slots) && referring_call_exists()
408 if (status) referring_call_exists()
414 return status; referring_call_exists()
425 __be32 status = htonl(NFS4ERR_BADSESSION); nfs4_callback_sequence() local
441 status = htonl(NFS4ERR_DELAY); nfs4_callback_sequence()
446 status = htonl(NFS4ERR_BADSESSION); nfs4_callback_sequence()
457 status = validate_seqid(tbl, args); nfs4_callback_sequence()
458 if (status) nfs4_callback_sequence()
469 status = htonl(NFS4ERR_DELAY); nfs4_callback_sequence()
488 if (status == htonl(NFS4ERR_RETRY_UNCACHED_REP)) { nfs4_callback_sequence()
489 cps->drc_status = status; nfs4_callback_sequence()
490 status = 0; nfs4_callback_sequence()
492 res->csr_status = status; nfs4_callback_sequence()
494 trace_nfs4_cb_sequence(args, res, status); nfs4_callback_sequence()
495 dprintk("%s: exit with status = %d res->csr_status %d\n", __func__, nfs4_callback_sequence()
496 ntohl(status), ntohl(res->csr_status)); nfs4_callback_sequence()
497 return status; nfs4_callback_sequence()
509 __be32 status; nfs4_callback_recallany() local
512 status = cpu_to_be32(NFS4ERR_OP_NOT_IN_SESSION); nfs4_callback_recallany()
519 status = cpu_to_be32(NFS4ERR_INVAL); nfs4_callback_recallany()
523 status = cpu_to_be32(NFS4_OK); nfs4_callback_recallany()
536 dprintk("%s: exit with status = %d\n", __func__, ntohl(status)); nfs4_callback_recallany()
537 return status; nfs4_callback_recallany()
545 __be32 status; nfs4_callback_recallslot() local
547 status = htonl(NFS4ERR_OP_NOT_IN_SESSION); nfs4_callback_recallslot()
557 status = htonl(NFS4_OK); nfs4_callback_recallslot()
562 dprintk("%s: exit with status = %d\n", __func__, ntohl(status)); nfs4_callback_recallslot()
563 return status; nfs4_callback_recallslot()
/linux-4.4.14/arch/arm/mach-omap2/
H A Dusb-tusb6010.c111 int status; tusb6010_platform_retime() local
118 status = tusb_set_async_mode(sysclk_ps); tusb6010_platform_retime()
119 if (status < 0) { tusb6010_platform_retime()
120 printk(error, "async", status); tusb6010_platform_retime()
123 status = tusb_set_sync_mode(sysclk_ps); tusb6010_platform_retime()
124 if (status < 0) tusb6010_platform_retime()
125 printk(error, "sync", status); tusb6010_platform_retime()
127 return status; tusb6010_platform_retime()
168 int status; tusb6010_setup_interface() local
173 status = gpmc_cs_request(async, SZ_16M, (unsigned long *) tusb6010_setup_interface()
175 if (status < 0) { tusb6010_setup_interface()
176 printk(error, 1, status); tusb6010_setup_interface()
177 return status; tusb6010_setup_interface()
183 status = gpmc_cs_program_settings(async_cs, &tusb_async); tusb6010_setup_interface()
184 if (status < 0) tusb6010_setup_interface()
185 return status; tusb6010_setup_interface()
188 status = gpmc_cs_request(sync, SZ_16M, (unsigned long *) tusb6010_setup_interface()
190 if (status < 0) { tusb6010_setup_interface()
191 printk(error, 2, status); tusb6010_setup_interface()
192 return status; tusb6010_setup_interface()
198 status = gpmc_cs_program_settings(sync_cs, &tusb_sync); tusb6010_setup_interface()
199 if (status < 0) tusb6010_setup_interface()
200 return status; tusb6010_setup_interface()
203 status = gpio_request_one(irq, GPIOF_IN, "TUSB6010 irq"); tusb6010_setup_interface()
204 if (status < 0) { tusb6010_setup_interface()
205 printk(error, 3, status); tusb6010_setup_interface()
206 return status; tusb6010_setup_interface()
212 printk(error, 4, status); tusb6010_setup_interface()
216 status = tusb6010_platform_retime(1); tusb6010_setup_interface()
217 if (status < 0) { tusb6010_setup_interface()
218 printk(error, 5, status); tusb6010_setup_interface()
219 return status; tusb6010_setup_interface()
224 printk(error, 6, status); tusb6010_setup_interface()
249 status = platform_device_register(&tusb_device); tusb6010_setup_interface()
250 if (status < 0) { tusb6010_setup_interface()
251 printk(error, 7, status); tusb6010_setup_interface()
252 return status; tusb6010_setup_interface()
/linux-4.4.14/drivers/media/usb/cx231xx/
H A Dcx231xx-avcore.c66 int status; verve_read_byte() local
69 status = cx231xx_read_i2c_data(dev, VERVE_I2C_ADDRESS, verve_read_byte()
72 return status; verve_read_byte()
118 int status; afe_read_byte() local
121 status = cx231xx_read_i2c_data(dev, AFE_DEVICE_ADDRESS, afe_read_byte()
124 return status; afe_read_byte()
129 int status = 0; cx231xx_afe_init_super_block() local
136 status = afe_write_byte(dev, SUP_BLK_TUNE2, temp); cx231xx_afe_init_super_block()
137 if (status < 0) cx231xx_afe_init_super_block()
138 return status; cx231xx_afe_init_super_block()
140 status = afe_read_byte(dev, SUP_BLK_TUNE2, &afe_power_status); cx231xx_afe_init_super_block()
141 if (status < 0) cx231xx_afe_init_super_block()
142 return status; cx231xx_afe_init_super_block()
146 status = afe_write_byte(dev, SUP_BLK_TUNE1, temp); cx231xx_afe_init_super_block()
147 if (status < 0) cx231xx_afe_init_super_block()
148 return status; cx231xx_afe_init_super_block()
150 status = afe_write_byte(dev, SUP_BLK_PLL2, 0x0f); cx231xx_afe_init_super_block()
151 if (status < 0) cx231xx_afe_init_super_block()
152 return status; cx231xx_afe_init_super_block()
156 status = afe_write_byte(dev, SUP_BLK_PWRDN, 0x18); cx231xx_afe_init_super_block()
157 if (status < 0) { cx231xx_afe_init_super_block()
164 status = afe_read_byte(dev, SUP_BLK_PWRDN, &afe_power_status); cx231xx_afe_init_super_block()
166 if (status < 0) { cx231xx_afe_init_super_block()
177 status = -1; cx231xx_afe_init_super_block()
182 if (status < 0) cx231xx_afe_init_super_block()
183 return status; cx231xx_afe_init_super_block()
186 status = afe_write_byte(dev, SUP_BLK_TUNE3, 0x40); cx231xx_afe_init_super_block()
187 if (status < 0) cx231xx_afe_init_super_block()
188 return status; cx231xx_afe_init_super_block()
193 status = afe_write_byte(dev, SUP_BLK_TUNE3, 0x00); cx231xx_afe_init_super_block()
195 return status; cx231xx_afe_init_super_block()
200 int status = 0; cx231xx_afe_init_channels() local
203 status = afe_write_byte(dev, ADC_PWRDN_CLAMP_CH1, 0x00); cx231xx_afe_init_channels()
204 status = afe_write_byte(dev, ADC_PWRDN_CLAMP_CH2, 0x00); cx231xx_afe_init_channels()
205 status = afe_write_byte(dev, ADC_PWRDN_CLAMP_CH3, 0x00); cx231xx_afe_init_channels()
208 status = afe_write_byte(dev, ADC_COM_QUANT, 0x02); cx231xx_afe_init_channels()
211 status = afe_write_byte(dev, ADC_FB_FRCRST_CH1, 0x17); cx231xx_afe_init_channels()
212 status = afe_write_byte(dev, ADC_FB_FRCRST_CH2, 0x17); cx231xx_afe_init_channels()
213 status = afe_write_byte(dev, ADC_FB_FRCRST_CH3, 0x17); cx231xx_afe_init_channels()
216 status = afe_write_byte(dev, ADC_CAL_ATEST_CH1, 0x10); cx231xx_afe_init_channels()
217 status = afe_write_byte(dev, ADC_CAL_ATEST_CH2, 0x10); cx231xx_afe_init_channels()
218 status = afe_write_byte(dev, ADC_CAL_ATEST_CH3, 0x10); cx231xx_afe_init_channels()
222 status = afe_write_byte(dev, ADC_FB_FRCRST_CH1, 0x07); cx231xx_afe_init_channels()
223 status = afe_write_byte(dev, ADC_FB_FRCRST_CH2, 0x07); cx231xx_afe_init_channels()
224 status = afe_write_byte(dev, ADC_FB_FRCRST_CH3, 0x07); cx231xx_afe_init_channels()
227 status = afe_write_byte(dev, ADC_NTF_PRECLMP_EN_CH1, 0xf0); cx231xx_afe_init_channels()
228 status = afe_write_byte(dev, ADC_NTF_PRECLMP_EN_CH2, 0xf0); cx231xx_afe_init_channels()
229 status = afe_write_byte(dev, ADC_NTF_PRECLMP_EN_CH3, 0xf0); cx231xx_afe_init_channels()
232 status = cx231xx_reg_mask_write(dev, AFE_DEVICE_ADDRESS, 8, cx231xx_afe_init_channels()
234 status = cx231xx_reg_mask_write(dev, AFE_DEVICE_ADDRESS, 8, cx231xx_afe_init_channels()
236 status = cx231xx_reg_mask_write(dev, AFE_DEVICE_ADDRESS, 8, cx231xx_afe_init_channels()
240 status = afe_write_byte(dev, ADC_DCSERVO_DEM_CH1, 0x03); cx231xx_afe_init_channels()
241 status = afe_write_byte(dev, ADC_DCSERVO_DEM_CH2, 0x03); cx231xx_afe_init_channels()
242 status = afe_write_byte(dev, ADC_DCSERVO_DEM_CH3, 0x03); cx231xx_afe_init_channels()
244 return status; cx231xx_afe_init_channels()
250 int status = 0; cx231xx_afe_setup_AFE_for_baseband() local
252 status = afe_read_byte(dev, ADC_PWRDN_CLAMP_CH2, &c_value); cx231xx_afe_setup_AFE_for_baseband()
254 status = afe_write_byte(dev, ADC_PWRDN_CLAMP_CH2, c_value); cx231xx_afe_setup_AFE_for_baseband()
256 return status; cx231xx_afe_setup_AFE_for_baseband()
273 int status = 0; cx231xx_afe_set_input_mux() local
277 status = afe_read_byte(dev, ADC_INPUT_CH1, &value); cx231xx_afe_set_input_mux()
281 status = afe_write_byte(dev, ADC_INPUT_CH1, value); cx231xx_afe_set_input_mux()
285 status = afe_read_byte(dev, ADC_INPUT_CH2, &value); cx231xx_afe_set_input_mux()
289 status = afe_write_byte(dev, ADC_INPUT_CH2, value); cx231xx_afe_set_input_mux()
295 status = afe_read_byte(dev, ADC_INPUT_CH3, &value); cx231xx_afe_set_input_mux()
299 status = afe_write_byte(dev, ADC_INPUT_CH3, value); cx231xx_afe_set_input_mux()
302 return status; cx231xx_afe_set_input_mux()
307 int status = 0; cx231xx_afe_set_mode() local
319 status = cx231xx_afe_setup_AFE_for_baseband(dev); cx231xx_afe_set_mode()
334 status = cx231xx_afe_adjust_ref_count(dev, cx231xx_afe_set_mode()
339 return status; cx231xx_afe_set_mode()
346 int status = 0; cx231xx_afe_update_power_control() local
366 status = afe_write_byte(dev, SUP_BLK_PWRDN, cx231xx_afe_update_power_control()
369 status |= afe_read_byte(dev, SUP_BLK_PWRDN, cx231xx_afe_update_power_control()
371 if (status < 0) cx231xx_afe_update_power_control()
375 status = afe_write_byte(dev, ADC_PWRDN_CLAMP_CH1, cx231xx_afe_update_power_control()
377 status |= afe_write_byte(dev, ADC_PWRDN_CLAMP_CH2, cx231xx_afe_update_power_control()
379 status |= afe_write_byte(dev, ADC_PWRDN_CLAMP_CH3, cx231xx_afe_update_power_control()
382 status = afe_write_byte(dev, ADC_PWRDN_CLAMP_CH1, cx231xx_afe_update_power_control()
384 status |= afe_write_byte(dev, ADC_PWRDN_CLAMP_CH2, cx231xx_afe_update_power_control()
386 status |= afe_write_byte(dev, ADC_PWRDN_CLAMP_CH3, cx231xx_afe_update_power_control()
389 status |= afe_read_byte(dev, SUP_BLK_PWRDN, cx231xx_afe_update_power_control()
394 status |= afe_write_byte(dev, SUP_BLK_PWRDN, cx231xx_afe_update_power_control()
399 status = afe_write_byte(dev, SUP_BLK_PWRDN, cx231xx_afe_update_power_control()
402 status |= afe_read_byte(dev, SUP_BLK_PWRDN, cx231xx_afe_update_power_control()
404 if (status < 0) cx231xx_afe_update_power_control()
408 status |= afe_write_byte(dev, ADC_PWRDN_CLAMP_CH1, cx231xx_afe_update_power_control()
410 status |= afe_write_byte(dev, ADC_PWRDN_CLAMP_CH2, cx231xx_afe_update_power_control()
412 status |= afe_write_byte(dev, ADC_PWRDN_CLAMP_CH3, cx231xx_afe_update_power_control()
416 status = -1; cx231xx_afe_update_power_control()
423 status = afe_write_byte(dev, SUP_BLK_PWRDN, cx231xx_afe_update_power_control()
426 status |= afe_read_byte(dev, SUP_BLK_PWRDN, cx231xx_afe_update_power_control()
428 if (status < 0) cx231xx_afe_update_power_control()
432 status |= afe_write_byte(dev, ADC_PWRDN_CLAMP_CH1, cx231xx_afe_update_power_control()
434 status |= afe_write_byte(dev, ADC_PWRDN_CLAMP_CH2, cx231xx_afe_update_power_control()
436 status |= afe_write_byte(dev, ADC_PWRDN_CLAMP_CH3, cx231xx_afe_update_power_control()
439 status = afe_write_byte(dev, ADC_PWRDN_CLAMP_CH1, cx231xx_afe_update_power_control()
441 status |= afe_write_byte(dev, ADC_PWRDN_CLAMP_CH2, cx231xx_afe_update_power_control()
443 status |= afe_write_byte(dev, ADC_PWRDN_CLAMP_CH3, cx231xx_afe_update_power_control()
446 status |= afe_read_byte(dev, SUP_BLK_PWRDN, cx231xx_afe_update_power_control()
451 status |= afe_write_byte(dev, SUP_BLK_PWRDN, cx231xx_afe_update_power_control()
456 status = afe_write_byte(dev, SUP_BLK_PWRDN, cx231xx_afe_update_power_control()
459 status |= afe_read_byte(dev, SUP_BLK_PWRDN, cx231xx_afe_update_power_control()
461 if (status < 0) cx231xx_afe_update_power_control()
465 status |= afe_write_byte(dev, ADC_PWRDN_CLAMP_CH1, cx231xx_afe_update_power_control()
467 status |= afe_write_byte(dev, ADC_PWRDN_CLAMP_CH2, cx231xx_afe_update_power_control()
469 status |= afe_write_byte(dev, ADC_PWRDN_CLAMP_CH3, cx231xx_afe_update_power_control()
473 status = -1; cx231xx_afe_update_power_control()
477 return status; cx231xx_afe_update_power_control()
484 int status = 0; cx231xx_afe_adjust_ref_count() local
489 status = afe_read_byte(dev, ADC_INPUT_CH3, &input_mode); cx231xx_afe_adjust_ref_count()
490 status = afe_read_byte(dev, ADC_NTF_PRECLMP_EN_CH3, cx231xx_afe_adjust_ref_count()
493 status = afe_read_byte(dev, ADC_INPUT_CH1, &input_mode); cx231xx_afe_adjust_ref_count()
494 status = afe_read_byte(dev, ADC_NTF_PRECLMP_EN_CH1, cx231xx_afe_adjust_ref_count()
517 status = cx231xx_afe_init_super_block(dev, dev->afe_ref_count); cx231xx_afe_adjust_ref_count()
519 return status; cx231xx_afe_adjust_ref_count()
533 int status; vid_blk_read_byte() local
536 status = cx231xx_read_i2c_data(dev, VID_BLK_I2C_ADDRESS, vid_blk_read_byte()
539 return status; vid_blk_read_byte()
556 int status = 0; cx231xx_check_fw() local
557 status = vid_blk_read_byte(dev, DL_CTL_ADDRESS_LOW, &temp); cx231xx_check_fw()
558 if (status < 0) cx231xx_check_fw()
559 return status; cx231xx_check_fw()
567 int status = 0; cx231xx_set_video_input_mux() local
575 status = cx231xx_set_power_mode(dev, cx231xx_set_video_input_mux()
577 if (status < 0) { cx231xx_set_video_input_mux()
580 __func__, status); cx231xx_set_video_input_mux()
581 return status; cx231xx_set_video_input_mux()
584 status = cx231xx_set_decoder_video_input(dev, cx231xx_set_video_input_mux()
593 status = cx231xx_set_power_mode(dev, cx231xx_set_video_input_mux()
595 if (status < 0) { cx231xx_set_video_input_mux()
598 __func__, status); cx231xx_set_video_input_mux()
599 return status; cx231xx_set_video_input_mux()
603 status = cx231xx_set_decoder_video_input(dev, cx231xx_set_video_input_mux()
607 status = cx231xx_set_decoder_video_input(dev, cx231xx_set_video_input_mux()
621 return status; cx231xx_set_video_input_mux()
627 int status = 0; cx231xx_set_decoder_video_input() local
631 status = cx231xx_afe_adjust_ref_count(dev, pin_type); cx231xx_set_decoder_video_input()
632 if (status < 0) { cx231xx_set_decoder_video_input()
635 __func__, status); cx231xx_set_decoder_video_input()
636 return status; cx231xx_set_decoder_video_input()
641 status = cx231xx_afe_set_input_mux(dev, input); cx231xx_set_decoder_video_input()
642 if (status < 0) { cx231xx_set_decoder_video_input()
645 __func__, status); cx231xx_set_decoder_video_input()
646 return status; cx231xx_set_decoder_video_input()
651 status = vid_blk_read_word(dev, AFE_CTRL, &value); cx231xx_set_decoder_video_input()
659 status = vid_blk_write_word(dev, AFE_CTRL, value); cx231xx_set_decoder_video_input()
661 status = vid_blk_read_word(dev, OUT_CTRL1, &value); cx231xx_set_decoder_video_input()
663 status = vid_blk_write_word(dev, OUT_CTRL1, value); cx231xx_set_decoder_video_input()
666 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_set_decoder_video_input()
673 status = cx231xx_dif_set_standard(dev, DIF_USE_BASEBAND); cx231xx_set_decoder_video_input()
674 if (status < 0) { cx231xx_set_decoder_video_input()
677 __func__, status); cx231xx_set_decoder_video_input()
678 return status; cx231xx_set_decoder_video_input()
682 status = vid_blk_read_word(dev, DFE_CTRL1, &value); cx231xx_set_decoder_video_input()
691 status = vid_blk_write_word(dev, DFE_CTRL1, value); cx231xx_set_decoder_video_input()
694 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_set_decoder_video_input()
700 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_set_decoder_video_input()
708 status = vid_blk_read_word(dev, AFE_CTRL, &value); cx231xx_set_decoder_video_input()
715 status = vid_blk_write_word(dev, AFE_CTRL, value); cx231xx_set_decoder_video_input()
718 status = cx231xx_dif_set_standard(dev, DIF_USE_BASEBAND); cx231xx_set_decoder_video_input()
719 if (status < 0) { cx231xx_set_decoder_video_input()
722 __func__, status); cx231xx_set_decoder_video_input()
723 return status; cx231xx_set_decoder_video_input()
727 status = vid_blk_read_word(dev, DFE_CTRL1, &value); cx231xx_set_decoder_video_input()
736 status = vid_blk_write_word(dev, DFE_CTRL1, value); cx231xx_set_decoder_video_input()
739 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_set_decoder_video_input()
745 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_set_decoder_video_input()
752 status = vid_blk_read_word(dev, AFE_CTRL, &value); cx231xx_set_decoder_video_input()
760 status = vid_blk_write_word(dev, AFE_CTRL, value); cx231xx_set_decoder_video_input()
762 status = cx231xx_afe_set_mode(dev, AFE_MODE_BASEBAND); cx231xx_set_decoder_video_input()
771 status = vid_blk_read_word(dev, AFE_CTRL, &value); cx231xx_set_decoder_video_input()
779 status = vid_blk_write_word(dev, AFE_CTRL, value); cx231xx_set_decoder_video_input()
781 status = vid_blk_read_word(dev, OUT_CTRL1, &value); cx231xx_set_decoder_video_input()
783 status = vid_blk_write_word(dev, OUT_CTRL1, value); cx231xx_set_decoder_video_input()
786 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_set_decoder_video_input()
792 status = cx231xx_dif_set_standard(dev, cx231xx_set_decoder_video_input()
794 if (status < 0) { cx231xx_set_decoder_video_input()
797 __func__, status); cx231xx_set_decoder_video_input()
798 return status; cx231xx_set_decoder_video_input()
802 status = vid_blk_read_word(dev, DFE_CTRL1, &value); cx231xx_set_decoder_video_input()
811 status = vid_blk_write_word(dev, DFE_CTRL1, value); cx231xx_set_decoder_video_input()
814 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_set_decoder_video_input()
820 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_set_decoder_video_input()
829 status = cx231xx_dif_set_standard(dev, dev->norm); cx231xx_set_decoder_video_input()
830 if (status < 0) { cx231xx_set_decoder_video_input()
833 __func__, status); cx231xx_set_decoder_video_input()
834 return status; cx231xx_set_decoder_video_input()
838 status = vid_blk_read_word(dev, DIF_MISC_CTRL, &value); cx231xx_set_decoder_video_input()
844 status = vid_blk_write_word(dev, DIF_MISC_CTRL, value); cx231xx_set_decoder_video_input()
847 status = vid_blk_read_word(dev, DFE_CTRL1, &value); cx231xx_set_decoder_video_input()
857 status = vid_blk_write_word(dev, DFE_CTRL1, value); cx231xx_set_decoder_video_input()
866 status = vid_blk_write_word(dev, DFE_CTRL1, value); cx231xx_set_decoder_video_input()
869 status = vid_blk_read_word(dev, PIN_CTRL, &value); cx231xx_set_decoder_video_input()
873 status = vid_blk_write_word(dev, PIN_CTRL, value); cx231xx_set_decoder_video_input()
876 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_set_decoder_video_input()
882 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_set_decoder_video_input()
888 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_set_decoder_video_input()
899 status = vid_blk_read_word(dev, AFE_CTRL, &value); cx231xx_set_decoder_video_input()
907 status = vid_blk_write_word(dev, AFE_CTRL, value); cx231xx_set_decoder_video_input()
910 status = vid_blk_read_word(dev, PIN_CTRL, cx231xx_set_decoder_video_input()
912 status = vid_blk_write_word(dev, PIN_CTRL, cx231xx_set_decoder_video_input()
923 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_set_decoder_video_input()
928 status = vid_blk_read_word(dev, OUT_CTRL1, &value); cx231xx_set_decoder_video_input()
931 status = vid_blk_write_word(dev, OUT_CTRL1, value); cx231xx_set_decoder_video_input()
934 return status; cx231xx_set_decoder_video_input()
973 int status = 0; cx231xx_do_mode_ctrl_overrides() local
979 status = vid_blk_write_word(dev, DFE_CTRL3, 0xCD3F0280); cx231xx_do_mode_ctrl_overrides()
986 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_do_mode_ctrl_overrides()
990 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_do_mode_ctrl_overrides()
995 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_do_mode_ctrl_overrides()
1001 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_do_mode_ctrl_overrides()
1010 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_do_mode_ctrl_overrides()
1014 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_do_mode_ctrl_overrides()
1021 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_do_mode_ctrl_overrides()
1029 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_do_mode_ctrl_overrides()
1037 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_do_mode_ctrl_overrides()
1041 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_do_mode_ctrl_overrides()
1048 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_do_mode_ctrl_overrides()
1056 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_do_mode_ctrl_overrides()
1065 return status; cx231xx_do_mode_ctrl_overrides()
1086 int status = 0; cx231xx_set_audio_input() local
1094 status = cx231xx_i2s_blk_set_audio_input(dev, input); cx231xx_set_audio_input()
1101 status = cx231xx_set_audio_decoder_input(dev, ainput); cx231xx_set_audio_input()
1103 return status; cx231xx_set_audio_input()
1110 int status; cx231xx_set_audio_decoder_input() local
1115 status = vid_blk_read_byte(dev, GENERAL_CTL, &gen_ctrl); cx231xx_set_audio_decoder_input()
1117 status = vid_blk_write_byte(dev, GENERAL_CTL, gen_ctrl); cx231xx_set_audio_decoder_input()
1124 status = vid_blk_write_word(dev, AUD_IO_CTRL, value); cx231xx_set_audio_decoder_input()
1129 status = vid_blk_read_word(dev, AC97_CTL, &dwval); cx231xx_set_audio_decoder_input()
1131 status = vid_blk_write_word(dev, AC97_CTL, cx231xx_set_audio_decoder_input()
1135 status = vid_blk_write_word(dev, BAND_OUT_SEL, cx231xx_set_audio_decoder_input()
1142 status = vid_blk_write_word(dev, DL_CTL, 0x3000001); cx231xx_set_audio_decoder_input()
1143 status = vid_blk_write_word(dev, PATH1_CTL1, 0x00063073); cx231xx_set_audio_decoder_input()
1146 status = vid_blk_read_word(dev, PATH1_VOL_CTL, &dwval); cx231xx_set_audio_decoder_input()
1147 status = vid_blk_write_word(dev, PATH1_VOL_CTL, cx231xx_set_audio_decoder_input()
1151 status = vid_blk_read_word(dev, PATH1_SC_CTL, &dwval); cx231xx_set_audio_decoder_input()
1152 status = vid_blk_write_word(dev, PATH1_SC_CTL, cx231xx_set_audio_decoder_input()
1158 status = stopAudioFirmware(dev); cx231xx_set_audio_decoder_input()
1160 status = vid_blk_write_word(dev, BAND_OUT_SEL, cx231xx_set_audio_decoder_input()
1176 status = vid_blk_write_word(dev, AUD_IO_CTRL, cx231xx_set_audio_decoder_input()
1183 status = vid_blk_write_word(dev, PATH1_CTL1, 0x1F063870); cx231xx_set_audio_decoder_input()
1186 status = vid_blk_write_word(dev, PATH1_CTL1, 0x00063870); cx231xx_set_audio_decoder_input()
1188 status = restartAudioFirmware(dev); cx231xx_set_audio_decoder_input()
1193 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_set_audio_decoder_input()
1201 status = cx231xx_read_modify_write_i2c_dword(dev, cx231xx_set_audio_decoder_input()
1225 status = vid_blk_write_word(dev, PATH1_CTL1, 0x1F011012); cx231xx_set_audio_decoder_input()
1230 status = vid_blk_read_byte(dev, GENERAL_CTL, &gen_ctrl); cx231xx_set_audio_decoder_input()
1232 status = vid_blk_write_byte(dev, GENERAL_CTL, gen_ctrl); cx231xx_set_audio_decoder_input()
1234 return status; cx231xx_set_audio_decoder_input()
1243 int status = 0; cx231xx_init_ctrl_pin_status() local
1245 status = vid_blk_read_word(dev, PIN_CTRL, &value); cx231xx_init_ctrl_pin_status()
1247 status = vid_blk_write_word(dev, PIN_CTRL, value); cx231xx_init_ctrl_pin_status()
1249 return status; cx231xx_init_ctrl_pin_status()
1255 int status = 0; cx231xx_set_agc_analog_digital_mux_select() local
1258 status = cx231xx_set_gpio_direction(dev, cx231xx_set_agc_analog_digital_mux_select()
1263 status = cx231xx_set_gpio_value(dev, cx231xx_set_agc_analog_digital_mux_select()
1267 return status; cx231xx_set_agc_analog_digital_mux_select()
1273 int status = 0; cx231xx_enable_i2c_port_3() local
1283 status = cx231xx_read_ctrl_reg(dev, VRT_GET_REGISTER, cx231xx_enable_i2c_port_3()
1285 if (status < 0) cx231xx_enable_i2c_port_3()
1286 return status; cx231xx_enable_i2c_port_3()
1299 status = cx231xx_write_ctrl_reg(dev, VRT_SET_REGISTER, cx231xx_enable_i2c_port_3()
1302 /* remember status of the switch for usage in is_tuner */ cx231xx_enable_i2c_port_3()
1303 if (status >= 0) cx231xx_enable_i2c_port_3()
1306 return status; cx231xx_enable_i2c_port_3()
1314 u8 status = 0; update_HH_register_after_set_DIF()
1321 status = vid_blk_read_word(dev, AFE_CTRL_C2HH_SRC_CTRL, &value); update_HH_register_after_set_DIF()
1323 status = vid_blk_read_word(dev, AFE_CTRL_C2HH_SRC_CTRL, &value); update_HH_register_after_set_DIF()
1640 int status = 0; cx231xx_dif_configure_C2HH_for_low_IF() local
1646 status = cx231xx_reg_mask_write(dev, cx231xx_dif_configure_C2HH_for_low_IF()
1650 status = cx231xx_reg_mask_write(dev, cx231xx_dif_configure_C2HH_for_low_IF()
1654 status = cx231xx_reg_mask_write(dev, cx231xx_dif_configure_C2HH_for_low_IF()
1658 status = cx231xx_reg_mask_write(dev, cx231xx_dif_configure_C2HH_for_low_IF()
1664 status = cx231xx_reg_mask_write(dev, cx231xx_dif_configure_C2HH_for_low_IF()
1668 status = cx231xx_reg_mask_write(dev, cx231xx_dif_configure_C2HH_for_low_IF()
1673 status = cx231xx_reg_mask_write(dev, cx231xx_dif_configure_C2HH_for_low_IF()
1677 status = cx231xx_reg_mask_write(dev, cx231xx_dif_configure_C2HH_for_low_IF()
1681 status = cx231xx_reg_mask_write(dev, cx231xx_dif_configure_C2HH_for_low_IF()
1689 status = cx231xx_reg_mask_write(dev, cx231xx_dif_configure_C2HH_for_low_IF()
1693 status = cx231xx_reg_mask_write(dev, cx231xx_dif_configure_C2HH_for_low_IF()
1698 status = cx231xx_reg_mask_write(dev, cx231xx_dif_configure_C2HH_for_low_IF()
1702 status = cx231xx_reg_mask_write(dev, cx231xx_dif_configure_C2HH_for_low_IF()
1709 status = cx231xx_reg_mask_write(dev, cx231xx_dif_configure_C2HH_for_low_IF()
1713 status = cx231xx_reg_mask_write(dev, cx231xx_dif_configure_C2HH_for_low_IF()
1718 status = cx231xx_reg_mask_write(dev, cx231xx_dif_configure_C2HH_for_low_IF()
1722 status = cx231xx_reg_mask_write(dev, cx231xx_dif_configure_C2HH_for_low_IF()
1728 return status; cx231xx_dif_configure_C2HH_for_low_IF()
1733 int status = 0; cx231xx_dif_set_standard() local
1739 status = vid_blk_read_word(dev, DIF_MISC_CTRL, &dif_misc_ctrl_value); cx231xx_dif_set_standard()
1763 status = cx231xx_dif_configure_C2HH_for_low_IF(dev, dev->active_mode, cx231xx_dif_set_standard()
1769 status = vid_blk_write_word(dev, DIF_SRC_PHASE_INC, 0xDF7DF83); cx231xx_dif_set_standard()
1770 status = vid_blk_read_word(dev, DIF_MISC_CTRL, cx231xx_dif_set_standard()
1773 status = vid_blk_write_word(dev, DIF_MISC_CTRL, cx231xx_dif_set_standard()
1776 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1778 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1780 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1782 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1784 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1786 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1788 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1790 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1792 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1795 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1798 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1801 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1804 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1806 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1809 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1812 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1815 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1821 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1823 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1825 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1827 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1829 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1831 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1833 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1835 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1837 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1840 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1843 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1846 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1849 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1851 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1854 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1857 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1860 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1867 status = vid_blk_write_word(dev, DIF_PLL_CTRL, 0xFF01FF0C); cx231xx_dif_set_standard()
1868 status = vid_blk_write_word(dev, DIF_PLL_CTRL1, 0xbd038c85); cx231xx_dif_set_standard()
1869 status = vid_blk_write_word(dev, DIF_PLL_CTRL2, 0x1db4640a); cx231xx_dif_set_standard()
1870 status = vid_blk_write_word(dev, DIF_PLL_CTRL3, 0x00008800); cx231xx_dif_set_standard()
1871 status = vid_blk_write_word(dev, DIF_AGC_IF_REF, 0x444C1380); cx231xx_dif_set_standard()
1872 status = vid_blk_write_word(dev, DIF_AGC_IF_INT_CURRENT, cx231xx_dif_set_standard()
1874 status = vid_blk_write_word(dev, DIF_AGC_RF_CURRENT, cx231xx_dif_set_standard()
1876 status = vid_blk_write_word(dev, DIF_VIDEO_AGC_CTRL, cx231xx_dif_set_standard()
1878 status = vid_blk_write_word(dev, DIF_VID_AUD_OVERRIDE, cx231xx_dif_set_standard()
1880 status = vid_blk_write_word(dev, DIF_AV_SEP_CTRL, 0x012c405d); cx231xx_dif_set_standard()
1881 status = vid_blk_write_word(dev, DIF_COMP_FLT_CTRL, cx231xx_dif_set_standard()
1883 status = vid_blk_write_word(dev, DIF_SRC_PHASE_INC, cx231xx_dif_set_standard()
1885 status = vid_blk_write_word(dev, DIF_SRC_GAIN_CONTROL, cx231xx_dif_set_standard()
1887 status = vid_blk_write_word(dev, DIF_SOFT_RST_CTRL_REVB, cx231xx_dif_set_standard()
1894 status = vid_blk_write_word(dev, DIF_PLL_CTRL, 0xFF01FF0C); cx231xx_dif_set_standard()
1895 status = vid_blk_write_word(dev, DIF_PLL_CTRL1, 0xbd038c85); cx231xx_dif_set_standard()
1896 status = vid_blk_write_word(dev, DIF_PLL_CTRL2, 0x1db4640a); cx231xx_dif_set_standard()
1897 status = vid_blk_write_word(dev, DIF_PLL_CTRL3, 0x00008800); cx231xx_dif_set_standard()
1898 status = vid_blk_write_word(dev, DIF_AGC_IF_REF, 0x444C1380); cx231xx_dif_set_standard()
1899 status = vid_blk_write_word(dev, DIF_AGC_IF_INT_CURRENT, cx231xx_dif_set_standard()
1901 status = vid_blk_write_word(dev, DIF_AGC_RF_CURRENT, cx231xx_dif_set_standard()
1903 status = vid_blk_write_word(dev, DIF_VIDEO_AGC_CTRL, cx231xx_dif_set_standard()
1905 status = vid_blk_write_word(dev, DIF_VID_AUD_OVERRIDE, cx231xx_dif_set_standard()
1907 status = vid_blk_write_word(dev, DIF_AV_SEP_CTRL, cx231xx_dif_set_standard()
1909 status = vid_blk_write_word(dev, DIF_COMP_FLT_CTRL, cx231xx_dif_set_standard()
1911 status = vid_blk_write_word(dev, DIF_SRC_PHASE_INC, cx231xx_dif_set_standard()
1913 status = vid_blk_write_word(dev, DIF_SRC_GAIN_CONTROL, cx231xx_dif_set_standard()
1915 status = vid_blk_write_word(dev, DIF_SOFT_RST_CTRL_REVB, cx231xx_dif_set_standard()
1924 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1926 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1928 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1930 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1932 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1934 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1936 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1938 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1940 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1943 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1946 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1949 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1951 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1954 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1957 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1960 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1962 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1971 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1973 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1975 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1977 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1979 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1981 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1983 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1985 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1987 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1990 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1993 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1996 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
1998 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
2001 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
2004 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
2007 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
2009 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
2027 status = vid_blk_write_word(dev, DIF_PLL_CTRL, 0x6503BC0C); cx231xx_dif_set_standard()
2028 status = vid_blk_write_word(dev, DIF_PLL_CTRL1, 0xBD038C85); cx231xx_dif_set_standard()
2029 status = vid_blk_write_word(dev, DIF_PLL_CTRL2, 0x1DB4640A); cx231xx_dif_set_standard()
2030 status = vid_blk_write_word(dev, DIF_PLL_CTRL3, 0x00008800); cx231xx_dif_set_standard()
2031 status = vid_blk_write_word(dev, DIF_AGC_IF_REF, 0x444C0380); cx231xx_dif_set_standard()
2032 status = vid_blk_write_word(dev, DIF_AGC_IF_INT_CURRENT, cx231xx_dif_set_standard()
2034 status = vid_blk_write_word(dev, DIF_AGC_RF_CURRENT, cx231xx_dif_set_standard()
2036 status = vid_blk_write_word(dev, DIF_VIDEO_AGC_CTRL, cx231xx_dif_set_standard()
2038 status = vid_blk_write_word(dev, DIF_VID_AUD_OVERRIDE, cx231xx_dif_set_standard()
2040 status = vid_blk_write_word(dev, DIF_AV_SEP_CTRL, 0x01296e1f); cx231xx_dif_set_standard()
2042 status = vid_blk_write_word(dev, DIF_COMP_FLT_CTRL, cx231xx_dif_set_standard()
2044 status = vid_blk_write_word(dev, DIF_SRC_PHASE_INC, cx231xx_dif_set_standard()
2046 status = vid_blk_write_word(dev, DIF_SRC_GAIN_CONTROL, cx231xx_dif_set_standard()
2049 status = vid_blk_write_word(dev, DIF_AGC_CTRL_IF, 0xC2262600); cx231xx_dif_set_standard()
2050 status = vid_blk_write_word(dev, DIF_AGC_CTRL_INT, cx231xx_dif_set_standard()
2052 status = vid_blk_write_word(dev, DIF_AGC_CTRL_RF, 0xC2262600); cx231xx_dif_set_standard()
2059 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
2061 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
2063 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
2065 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
2067 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
2069 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
2071 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
2073 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
2075 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
2078 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
2081 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
2084 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
2087 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
2089 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
2092 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
2095 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
2098 status = cx231xx_reg_mask_write(dev, VID_BLK_I2C_ADDRESS, 32, cx231xx_dif_set_standard()
2116 status = vid_blk_write_word(dev, DIF_MISC_CTRL, dif_misc_ctrl_value); cx231xx_dif_set_standard()
2118 return status; cx231xx_dif_set_standard()
2123 int status = 0; cx231xx_tuner_pre_channel_change() local
2127 status = vid_blk_read_word(dev, DIF_AGC_IF_REF, &dwval); cx231xx_tuner_pre_channel_change()
2131 status = vid_blk_write_word(dev, DIF_AGC_IF_REF, dwval); cx231xx_tuner_pre_channel_change()
2133 return status; cx231xx_tuner_pre_channel_change()
2138 int status = 0; cx231xx_tuner_post_channel_change() local
2144 status = vid_blk_read_word(dev, DIF_AGC_IF_REF, &dwval); cx231xx_tuner_post_channel_change()
2162 status = vid_blk_write_word(dev, DIF_AGC_IF_REF, dwval); cx231xx_tuner_post_channel_change()
2164 return status == sizeof(dwval) ? 0 : -EIO; cx231xx_tuner_post_channel_change()
2172 int status = 0; cx231xx_i2s_blk_initialize() local
2175 status = cx231xx_read_i2c_data(dev, I2S_BLK_DEVICE_ADDRESS, cx231xx_i2s_blk_initialize()
2179 status = cx231xx_write_i2c_data(dev, I2S_BLK_DEVICE_ADDRESS, cx231xx_i2s_blk_initialize()
2182 status = cx231xx_write_i2c_data(dev, I2S_BLK_DEVICE_ADDRESS, cx231xx_i2s_blk_initialize()
2185 return status; cx231xx_i2s_blk_initialize()
2191 int status = 0; cx231xx_i2s_blk_update_power_control() local
2195 status = cx231xx_read_i2c_data(dev, I2S_BLK_DEVICE_ADDRESS, cx231xx_i2s_blk_update_power_control()
2198 status = cx231xx_write_i2c_data(dev, I2S_BLK_DEVICE_ADDRESS, cx231xx_i2s_blk_update_power_control()
2201 status = cx231xx_write_i2c_data(dev, I2S_BLK_DEVICE_ADDRESS, cx231xx_i2s_blk_update_power_control()
2205 return status; cx231xx_i2s_blk_update_power_control()
2211 int status = 0; cx231xx_i2s_blk_set_audio_input() local
2215 status = cx231xx_write_i2c_data(dev, I2S_BLK_DEVICE_ADDRESS, cx231xx_i2s_blk_set_audio_input()
2217 status = cx231xx_write_i2c_data(dev, I2S_BLK_DEVICE_ADDRESS, cx231xx_i2s_blk_set_audio_input()
2227 return status; cx231xx_i2s_blk_set_audio_input()
2237 int status = 0; cx231xx_set_power_mode() local
2247 status = cx231xx_read_ctrl_reg(dev, VRT_GET_REGISTER, PWR_CTL_EN, value, cx231xx_set_power_mode()
2249 if (status < 0) cx231xx_set_power_mode()
2250 return status; cx231xx_set_power_mode()
2264 status = cx231xx_write_ctrl_reg(dev, VRT_SET_REGISTER, cx231xx_set_power_mode()
2273 status = cx231xx_set_power_mode()
2283 status = cx231xx_write_ctrl_reg(dev, VRT_SET_REGISTER, cx231xx_set_power_mode()
2297 status = cx231xx_write_ctrl_reg(dev, VRT_SET_REGISTER, cx231xx_set_power_mode()
2307 status = cx231xx_write_ctrl_reg(dev, VRT_SET_REGISTER, cx231xx_set_power_mode()
2318 status = cx231xx_write_ctrl_reg(dev, VRT_SET_REGISTER, cx231xx_set_power_mode()
2328 status = cx231xx_write_ctrl_reg(dev, VRT_SET_REGISTER, cx231xx_set_power_mode()
2339 status = cx231xx_write_ctrl_reg(dev, VRT_SET_REGISTER, cx231xx_set_power_mode()
2362 status = cx231xx_write_ctrl_reg(dev, VRT_SET_REGISTER, cx231xx_set_power_mode()
2372 status = cx231xx_write_ctrl_reg(dev, VRT_SET_REGISTER, cx231xx_set_power_mode()
2382 status = cx231xx_write_ctrl_reg(dev, VRT_SET_REGISTER, cx231xx_set_power_mode()
2393 status = cx231xx_write_ctrl_reg(dev, VRT_SET_REGISTER, cx231xx_set_power_mode()
2403 status = cx231xx_write_ctrl_reg(dev, VRT_SET_REGISTER, cx231xx_set_power_mode()
2432 status = cx231xx_write_ctrl_reg(dev, VRT_SET_REGISTER, cx231xx_set_power_mode()
2438 status = cx231xx_afe_update_power_control(dev, mode); cx231xx_set_power_mode()
2441 status = cx231xx_i2s_blk_update_power_control(dev, mode); cx231xx_set_power_mode()
2443 status = cx231xx_read_ctrl_reg(dev, VRT_GET_REGISTER, PWR_CTL_EN, value, cx231xx_set_power_mode()
2446 return status; cx231xx_set_power_mode()
2453 int status = 0; cx231xx_power_suspend() local
2455 status = cx231xx_read_ctrl_reg(dev, VRT_GET_REGISTER, PWR_CTL_EN, cx231xx_power_suspend()
2457 if (status > 0) cx231xx_power_suspend()
2458 return status; cx231xx_power_suspend()
2467 status = cx231xx_write_ctrl_reg(dev, VRT_SET_REGISTER, PWR_CTL_EN, cx231xx_power_suspend()
2470 return status; cx231xx_power_suspend()
2480 int status = 0; cx231xx_start_stream() local
2483 status = cx231xx_read_ctrl_reg(dev, VRT_GET_REGISTER, EP_MODE_SET, cx231xx_start_stream()
2485 if (status < 0) cx231xx_start_stream()
2486 return status; cx231xx_start_stream()
2495 status = cx231xx_write_ctrl_reg(dev, VRT_SET_REGISTER, EP_MODE_SET, cx231xx_start_stream()
2498 return status; cx231xx_start_stream()
2505 int status = 0; cx231xx_stop_stream() local
2508 status = cx231xx_stop_stream()
2510 if (status < 0) cx231xx_stop_stream()
2511 return status; cx231xx_stop_stream()
2520 status = cx231xx_write_ctrl_reg(dev, VRT_SET_REGISTER, EP_MODE_SET, cx231xx_stop_stream()
2523 return status; cx231xx_stop_stream()
2528 int status = 0; cx231xx_initialize_stream_xfer() local
2537 status = cx231xx_initialize_stream_xfer()
2544 status = cx231xx_mode_register(dev, TS_MODE_REG, 0x300); cx231xx_initialize_stream_xfer()
2550 status = cx231xx_initialize_stream_xfer()
2557 status = cx231xx_mode_register(dev, TS_MODE_REG, 0x100); cx231xx_initialize_stream_xfer()
2570 status = cx231xx_mode_register(dev, cx231xx_initialize_stream_xfer()
2577 status = cx231xx_write_ctrl_reg(dev, cx231xx_initialize_stream_xfer()
2585 status = cx231xx_write_ctrl_reg(dev, cx231xx_initialize_stream_xfer()
2590 status = cx231xx_mode_register(dev, cx231xx_initialize_stream_xfer()
2592 status = cx231xx_mode_register(dev, cx231xx_initialize_stream_xfer()
2601 status = cx231xx_mode_register(dev, TS_MODE_REG, 0x100); cx231xx_initialize_stream_xfer()
2602 status = cx231xx_mode_register(dev, TS1_CFG_REG, 0x400); cx231xx_initialize_stream_xfer()
2606 status = cx231xx_mode_register(dev, TS_MODE_REG, 0x101); cx231xx_initialize_stream_xfer()
2609 return status; cx231xx_initialize_stream_xfer()
2669 int status = 0; cx231xx_set_gpio_bit() local
2672 status = cx231xx_send_gpio_cmd(dev, gpio_bit, (u8 *)&gpio_val, 4, 0, 0); cx231xx_set_gpio_bit()
2674 return status; cx231xx_set_gpio_bit()
2680 int status = 0; cx231xx_get_gpio_bit() local
2682 status = cx231xx_send_gpio_cmd(dev, gpio_bit, (u8 *)&tmp, 4, 0, 1); cx231xx_get_gpio_bit()
2685 return status; cx231xx_get_gpio_bit()
2702 int status = 0; cx231xx_set_gpio_direction() local
2715 status = cx231xx_set_gpio_bit(dev, value, dev->gpio_val); cx231xx_set_gpio_direction()
2720 return status; cx231xx_set_gpio_direction()
2736 int status = 0; cx231xx_set_gpio_value() local
2748 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, cx231xx_set_gpio_value()
2762 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, dev->gpio_val); cx231xx_set_gpio_value()
2764 return status; cx231xx_set_gpio_value()
2772 int status = 0; cx231xx_gpio_i2c_start() local
2780 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, dev->gpio_val); cx231xx_gpio_i2c_start()
2781 if (status < 0) cx231xx_gpio_i2c_start()
2788 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, dev->gpio_val); cx231xx_gpio_i2c_start()
2789 if (status < 0) cx231xx_gpio_i2c_start()
2796 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, dev->gpio_val); cx231xx_gpio_i2c_start()
2797 if (status < 0) cx231xx_gpio_i2c_start()
2800 return status; cx231xx_gpio_i2c_start()
2805 int status = 0; cx231xx_gpio_i2c_end() local
2814 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, dev->gpio_val); cx231xx_gpio_i2c_end()
2815 if (status < 0) cx231xx_gpio_i2c_end()
2822 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, dev->gpio_val); cx231xx_gpio_i2c_end()
2823 if (status < 0) cx231xx_gpio_i2c_end()
2831 status = cx231xx_gpio_i2c_end()
2833 if (status < 0) cx231xx_gpio_i2c_end()
2836 return status; cx231xx_gpio_i2c_end()
2841 int status = 0; cx231xx_gpio_i2c_write_byte() local
2853 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, cx231xx_gpio_i2c_write_byte()
2858 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, cx231xx_gpio_i2c_write_byte()
2863 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, cx231xx_gpio_i2c_write_byte()
2869 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, cx231xx_gpio_i2c_write_byte()
2874 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, cx231xx_gpio_i2c_write_byte()
2879 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, cx231xx_gpio_i2c_write_byte()
2883 return status; cx231xx_gpio_i2c_write_byte()
2889 int status = 0; cx231xx_gpio_i2c_read_byte() local
2898 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, cx231xx_gpio_i2c_read_byte()
2903 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, cx231xx_gpio_i2c_read_byte()
2908 status = cx231xx_get_gpio_bit(dev, dev->gpio_dir, cx231xx_gpio_i2c_read_byte()
2920 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, dev->gpio_val); cx231xx_gpio_i2c_read_byte()
2925 return status; cx231xx_gpio_i2c_read_byte()
2930 int status = 0; cx231xx_gpio_i2c_read_ack() local
2941 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, dev->gpio_val); cx231xx_gpio_i2c_read_ack()
2945 status = cx231xx_get_gpio_bit(dev, dev->gpio_dir, cx231xx_gpio_i2c_read_ack()
2962 status = cx231xx_get_gpio_bit(dev, dev->gpio_dir, &dev->gpio_val); cx231xx_gpio_i2c_read_ack()
2967 status = 0; cx231xx_gpio_i2c_read_ack()
2978 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, dev->gpio_val); cx231xx_gpio_i2c_read_ack()
2980 return status; cx231xx_gpio_i2c_read_ack()
2985 int status = 0; cx231xx_gpio_i2c_write_ack() local
2989 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, dev->gpio_val); cx231xx_gpio_i2c_write_ack()
2994 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, dev->gpio_val); cx231xx_gpio_i2c_write_ack()
2998 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, dev->gpio_val); cx231xx_gpio_i2c_write_ack()
3002 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, dev->gpio_val); cx231xx_gpio_i2c_write_ack()
3006 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, dev->gpio_val); cx231xx_gpio_i2c_write_ack()
3008 return status; cx231xx_gpio_i2c_write_ack()
3013 int status = 0; cx231xx_gpio_i2c_write_nak() local
3018 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, dev->gpio_val); cx231xx_gpio_i2c_write_nak()
3022 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, dev->gpio_val); cx231xx_gpio_i2c_write_nak()
3026 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, dev->gpio_val); cx231xx_gpio_i2c_write_nak()
3028 return status; cx231xx_gpio_i2c_write_nak()
3039 int status = 0; cx231xx_gpio_i2c_read() local
3046 status = cx231xx_gpio_i2c_start(dev); cx231xx_gpio_i2c_read()
3049 status = cx231xx_gpio_i2c_write_byte(dev, (dev_addr << 1) + 1); cx231xx_gpio_i2c_read()
3052 status = cx231xx_gpio_i2c_read_ack(dev); cx231xx_gpio_i2c_read()
3058 status = cx231xx_gpio_i2c_read_byte(dev, &buf[i]); cx231xx_gpio_i2c_read()
3062 status = cx231xx_gpio_i2c_write_ack(dev); cx231xx_gpio_i2c_read()
3067 status = cx231xx_gpio_i2c_write_nak(dev); cx231xx_gpio_i2c_read()
3070 status = cx231xx_gpio_i2c_end(dev); cx231xx_gpio_i2c_read()
3075 return status; cx231xx_gpio_i2c_read()
/linux-4.4.14/drivers/infiniband/hw/usnic/
H A Dusnic_fwd.c45 int status; usnic_fwd_devcmd_locked() local
50 status = enic_api_devcmd_proxy_by_index(netdev, usnic_fwd_devcmd_locked()
55 if (status) { usnic_fwd_devcmd_locked()
56 if (status == ERR_EINVAL && cmd == CMD_DEL_FILTER) { usnic_fwd_devcmd_locked()
60 usnic_err("Dev %s vnic idx %u cmd %u failed with status %d\n", usnic_fwd_devcmd_locked()
62 status); usnic_fwd_devcmd_locked()
69 return status; usnic_fwd_devcmd_locked()
75 int status; usnic_fwd_devcmd() local
78 status = usnic_fwd_devcmd_locked(ufdev, vnic_idx, cmd, a0, a1); usnic_fwd_devcmd()
81 return status; usnic_fwd_devcmd()
115 int status; usnic_fwd_add_ipaddr() local
120 status = 0; usnic_fwd_add_ipaddr()
122 status = -EFAULT; usnic_fwd_add_ipaddr()
126 return status; usnic_fwd_add_ipaddr()
215 int status; usnic_fwd_alloc_flow() local
228 status = -ENOMEM; usnic_fwd_alloc_flow()
235 status = usnic_fwd_dev_ready_locked(ufdev); usnic_fwd_alloc_flow()
236 if (status) { usnic_fwd_alloc_flow()
237 usnic_err("Forwarding dev %s not ready with status %d\n", usnic_fwd_alloc_flow()
238 ufdev->name, status); usnic_fwd_alloc_flow()
242 status = validate_filter_locked(ufdev, filter); usnic_fwd_alloc_flow()
243 if (status) { usnic_fwd_alloc_flow()
244 usnic_err("Failed to validate filter with status %d\n", usnic_fwd_alloc_flow()
245 status); usnic_fwd_alloc_flow()
252 status = usnic_fwd_devcmd_locked(ufdev, uaction->vnic_idx, usnic_fwd_alloc_flow()
254 if (status) { usnic_fwd_alloc_flow()
255 usnic_err("VF %s Filter add failed with status:%d", usnic_fwd_alloc_flow()
256 ufdev->name, status); usnic_fwd_alloc_flow()
257 status = -EFAULT; usnic_fwd_alloc_flow()
270 if (!status) usnic_fwd_alloc_flow()
274 return ERR_PTR(status); usnic_fwd_alloc_flow()
279 int status; usnic_fwd_dealloc_flow() local
284 status = usnic_fwd_devcmd(flow->ufdev, flow->vnic_idx, usnic_fwd_dealloc_flow()
286 if (status) { usnic_fwd_dealloc_flow()
287 if (status == ERR_EINVAL) { usnic_fwd_dealloc_flow()
288 usnic_dbg("Filter %u already deleted for VF Idx %u pf: %s status: %d", usnic_fwd_dealloc_flow()
290 flow->ufdev->name, status); usnic_fwd_dealloc_flow()
292 usnic_err("PF %s VF Idx %u Filter: %u FILTER DELETE failed with status %d", usnic_fwd_dealloc_flow()
294 flow->flow_id, status); usnic_fwd_dealloc_flow()
296 status = 0; usnic_fwd_dealloc_flow()
309 return status; usnic_fwd_dealloc_flow()
314 int status; usnic_fwd_enable_qp() local
322 status = usnic_fwd_devcmd(ufdev, vnic_idx, CMD_QP_ENABLE, usnic_fwd_enable_qp()
324 if (status) { usnic_fwd_enable_qp()
325 usnic_err("PF %s VNIC Index %u RQ Index: %u ENABLE Failed with status %d", usnic_fwd_enable_qp()
329 status); usnic_fwd_enable_qp()
336 return status; usnic_fwd_enable_qp()
341 int status; usnic_fwd_disable_qp() local
349 status = usnic_fwd_devcmd(ufdev, vnic_idx, CMD_QP_DISABLE, usnic_fwd_disable_qp()
351 if (status) { usnic_fwd_disable_qp()
352 usnic_err("PF %s VNIC Index %u RQ Index: %u DISABLE Failed with status %d", usnic_fwd_disable_qp()
356 status); usnic_fwd_disable_qp()
364 return status; usnic_fwd_disable_qp()
/linux-4.4.14/drivers/pnp/pnpbios/
H A Dbioscalls.c86 u16 status; call_pnp_bios() local
128 "popl %%ebp\n\t":"=a"(status) call_pnp_bios()
150 return status; call_pnp_bios()
153 void pnpbios_print_status(const char *module, u16 status) pnpbios_print_status() argument
155 switch (status) { pnpbios_print_status()
226 printk(KERN_ERR "PnPBIOS: %s: unexpected status 0x%x\n", module, pnpbios_print_status()
227 status); pnpbios_print_status()
255 u16 status; __pnp_bios_dev_node_info() local
259 status = call_pnp_bios(PNP_GET_NUM_SYS_DEV_NODES, 0, PNP_TS1, 2, __pnp_bios_dev_node_info()
263 return status; __pnp_bios_dev_node_info()
268 int status = __pnp_bios_dev_node_info(data); pnp_bios_dev_node_info() local
270 if (status) pnp_bios_dev_node_info()
271 pnpbios_print_status("dev_node_info", status); pnp_bios_dev_node_info()
272 return status; pnp_bios_dev_node_info()
292 u16 status; __pnp_bios_get_dev_node() local
300 status = call_pnp_bios(PNP_GET_SYS_DEV_NODE, 0, PNP_TS1, 0, PNP_TS2, __pnp_bios_get_dev_node()
304 return status; __pnp_bios_get_dev_node()
309 int status; pnp_bios_get_dev_node() local
311 status = __pnp_bios_get_dev_node(nodenum, boot, data); pnp_bios_get_dev_node()
312 if (status) pnp_bios_get_dev_node()
313 pnpbios_print_status("get_dev_node", status); pnp_bios_get_dev_node()
314 return status; pnp_bios_get_dev_node()
326 u16 status; __pnp_bios_set_dev_node() local
332 status = call_pnp_bios(PNP_SET_SYS_DEV_NODE, nodenum, 0, PNP_TS1, __pnp_bios_set_dev_node()
335 return status; __pnp_bios_set_dev_node()
340 int status; pnp_bios_set_dev_node() local
342 status = __pnp_bios_set_dev_node(nodenum, boot, data); pnp_bios_set_dev_node()
343 if (status) { pnp_bios_set_dev_node()
344 pnpbios_print_status("set_dev_node", status); pnp_bios_set_dev_node()
345 return status; pnp_bios_set_dev_node()
348 status = pnp_bios_get_dev_node(&nodenum, boot, data); pnp_bios_set_dev_node()
349 if (status) pnp_bios_set_dev_node()
350 return status; pnp_bios_set_dev_node()
352 return status; pnp_bios_set_dev_node()
360 u16 status; pnp_bios_dock_station_info() local
364 status = call_pnp_bios(PNP_GET_DOCKING_STATION_INFORMATION, 0, PNP_TS1, pnp_bios_dock_station_info()
368 return status; pnp_bios_dock_station_info()
377 u16 status; __pnp_bios_get_stat_res() local
381 status = call_pnp_bios(PNP_GET_STATIC_ALLOCED_RES_INFO, 0, PNP_TS1, __pnp_bios_get_stat_res()
383 return status; __pnp_bios_get_stat_res()
388 int status; pnp_bios_get_stat_res() local
390 status = __pnp_bios_get_stat_res(info); pnp_bios_get_stat_res()
391 if (status) pnp_bios_get_stat_res()
392 pnpbios_print_status("get_stat_res", status); pnp_bios_get_stat_res()
393 return status; pnp_bios_get_stat_res()
401 u16 status; __pnp_bios_isapnp_config() local
405 status = call_pnp_bios(PNP_GET_PNP_ISA_CONFIG_STRUC, 0, PNP_TS1, PNP_DS, __pnp_bios_isapnp_config()
408 return status; __pnp_bios_isapnp_config()
413 int status; pnp_bios_isapnp_config() local
415 status = __pnp_bios_isapnp_config(data); pnp_bios_isapnp_config()
416 if (status) pnp_bios_isapnp_config()
417 pnpbios_print_status("isapnp_config", status); pnp_bios_isapnp_config()
418 return status; pnp_bios_isapnp_config()
426 u16 status; __pnp_bios_escd_info() local
430 status = call_pnp_bios(PNP_GET_ESCD_INFO, 0, PNP_TS1, 2, PNP_TS1, 4, __pnp_bios_escd_info()
433 return status; __pnp_bios_escd_info()
438 int status; pnp_bios_escd_info() local
440 status = __pnp_bios_escd_info(data); pnp_bios_escd_info()
441 if (status) pnp_bios_escd_info()
442 pnpbios_print_status("escd_info", status); pnp_bios_escd_info()
443 return status; pnp_bios_escd_info()
452 u16 status; __pnp_bios_read_escd() local
456 status = call_pnp_bios(PNP_READ_ESCD, 0, PNP_TS1, PNP_TS2, PNP_DS, 0, 0, __pnp_bios_read_escd()
458 return status; __pnp_bios_read_escd()
463 int status; pnp_bios_read_escd() local
465 status = __pnp_bios_read_escd(data, nvram_base); pnp_bios_read_escd()
466 if (status) pnp_bios_read_escd()
467 pnpbios_print_status("read_escd", status); pnp_bios_read_escd()
468 return status; pnp_bios_read_escd()
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_x550.c65 * Returns status code
79 * Returns status code
98 s32 status; ixgbe_check_cs4227_reg() local
103 status = ixgbe_write_cs4227(hw, reg, reg_val); ixgbe_check_cs4227_reg()
104 if (status) ixgbe_check_cs4227_reg()
105 return status; ixgbe_check_cs4227_reg()
115 return status; ixgbe_check_cs4227_reg()
122 * ixgbe_get_cs4227_status - Return CS4227 status
131 s32 status; ixgbe_get_cs4227_status() local
135 status = ixgbe_read_cs4227(hw, IXGBE_CS4227_SCRATCH, &value); ixgbe_get_cs4227_status()
136 if (status) ixgbe_get_cs4227_status()
137 return status; ixgbe_get_cs4227_status()
142 status = ixgbe_check_cs4227_reg(hw, IXGBE_CS4227_LINE_SPARE24_LSB); ixgbe_get_cs4227_status()
143 if (status) ixgbe_get_cs4227_status()
144 return status; ixgbe_get_cs4227_status()
146 status = ixgbe_check_cs4227_reg(hw, IXGBE_CS4227_HOST_SPARE24_LSB); ixgbe_get_cs4227_status()
147 if (status) ixgbe_get_cs4227_status()
148 return status; ixgbe_get_cs4227_status()
151 status = ixgbe_check_cs4227_reg(hw, IXGBE_CS4227_LINE_SPARE24_LSB + ixgbe_get_cs4227_status()
153 if (status) ixgbe_get_cs4227_status()
154 return status; ixgbe_get_cs4227_status()
166 * Returns status code
170 s32 status; ixgbe_read_pe() local
172 status = ixgbe_read_i2c_byte_generic_unlocked(hw, reg, IXGBE_PE, value); ixgbe_read_pe()
173 if (status) ixgbe_read_pe()
174 hw_err(hw, "port expander access failed with %d\n", status); ixgbe_read_pe()
175 return status; ixgbe_read_pe()
184 * Returns status code
188 s32 status; ixgbe_write_pe() local
190 status = ixgbe_write_i2c_byte_generic_unlocked(hw, reg, IXGBE_PE, ixgbe_write_pe()
192 if (status) ixgbe_write_pe()
193 hw_err(hw, "port expander access failed with %d\n", status); ixgbe_write_pe()
194 return status; ixgbe_write_pe()
206 s32 status; ixgbe_reset_cs4227() local
212 status = ixgbe_read_pe(hw, IXGBE_PE_OUTPUT, &reg); ixgbe_reset_cs4227()
213 if (status) ixgbe_reset_cs4227()
214 return status; ixgbe_reset_cs4227()
216 status = ixgbe_write_pe(hw, IXGBE_PE_OUTPUT, reg); ixgbe_reset_cs4227()
217 if (status) ixgbe_reset_cs4227()
218 return status; ixgbe_reset_cs4227()
220 status = ixgbe_read_pe(hw, IXGBE_PE_CONFIG, &reg); ixgbe_reset_cs4227()
221 if (status) ixgbe_reset_cs4227()
222 return status; ixgbe_reset_cs4227()
224 status = ixgbe_write_pe(hw, IXGBE_PE_CONFIG, reg); ixgbe_reset_cs4227()
225 if (status) ixgbe_reset_cs4227()
226 return status; ixgbe_reset_cs4227()
228 status = ixgbe_read_pe(hw, IXGBE_PE_OUTPUT, &reg); ixgbe_reset_cs4227()
229 if (status) ixgbe_reset_cs4227()
230 return status; ixgbe_reset_cs4227()
232 status = ixgbe_write_pe(hw, IXGBE_PE_OUTPUT, reg); ixgbe_reset_cs4227()
233 if (status) ixgbe_reset_cs4227()
234 return status; ixgbe_reset_cs4227()
238 status = ixgbe_read_pe(hw, IXGBE_PE_OUTPUT, &reg); ixgbe_reset_cs4227()
239 if (status) ixgbe_reset_cs4227()
240 return status; ixgbe_reset_cs4227()
242 status = ixgbe_write_pe(hw, IXGBE_PE_OUTPUT, reg); ixgbe_reset_cs4227()
243 if (status) ixgbe_reset_cs4227()
244 return status; ixgbe_reset_cs4227()
249 status = ixgbe_read_cs4227(hw, IXGBE_CS4227_EFUSE_STATUS, ixgbe_reset_cs4227()
251 if (!status && value == IXGBE_CS4227_EEPROM_LOAD_OK) ixgbe_reset_cs4227()
260 status = ixgbe_read_cs4227(hw, IXGBE_CS4227_EEPROM_STATUS, &value); ixgbe_reset_cs4227()
261 if (status || !(value & IXGBE_CS4227_EEPROM_LOAD_OK)) { ixgbe_reset_cs4227()
276 s32 status; ixgbe_check_cs4227() local
281 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask); ixgbe_check_cs4227()
282 if (status) { ixgbe_check_cs4227()
283 hw_err(hw, "semaphore failed with %d\n", status); ixgbe_check_cs4227()
288 /* Get status of reset flow. */ ixgbe_check_cs4227()
289 status = ixgbe_read_cs4227(hw, IXGBE_CS4227_SCRATCH, &value); ixgbe_check_cs4227()
290 if (!status && value == IXGBE_CS4227_RESET_COMPLETE) ixgbe_check_cs4227()
293 if (status || value != IXGBE_CS4227_RESET_PENDING) ixgbe_check_cs4227()
302 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask); ixgbe_check_cs4227()
303 if (status) { ixgbe_check_cs4227()
304 hw_err(hw, "semaphore failed with %d\n", status); ixgbe_check_cs4227()
310 status = ixgbe_reset_cs4227(hw); ixgbe_check_cs4227()
311 if (status) { ixgbe_check_cs4227()
312 hw_err(hw, "CS4227 reset failed: %d", status); ixgbe_check_cs4227()
323 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask); ixgbe_check_cs4227()
324 if (status) { ixgbe_check_cs4227()
325 hw_err(hw, "semaphore failed with %d", status); ixgbe_check_cs4227()
330 status = ixgbe_get_cs4227_status(hw); ixgbe_check_cs4227()
331 if (status) { ixgbe_check_cs4227()
332 hw_err(hw, "CS4227 status failed: %d", status); ixgbe_check_cs4227()
337 status = ixgbe_write_cs4227(hw, IXGBE_CS4227_SCRATCH, ixgbe_check_cs4227()
420 * Return: failing status on timeout
504 s32 status; ixgbe_read_ee_hostif_data_X550() local
517 status = ixgbe_host_interface_command(hw, (u32 *)&buffer, ixgbe_read_ee_hostif_data_X550()
520 if (status) ixgbe_read_ee_hostif_data_X550()
521 return status; ixgbe_read_ee_hostif_data_X550()
543 s32 status; ixgbe_read_ee_hostif_buffer_X550() local
547 status = hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM); ixgbe_read_ee_hostif_buffer_X550()
548 if (status) { ixgbe_read_ee_hostif_buffer_X550()
550 return status; ixgbe_read_ee_hostif_buffer_X550()
568 status = ixgbe_host_interface_command(hw, (u32 *)&buffer, ixgbe_read_ee_hostif_buffer_X550()
572 if (status) { ixgbe_read_ee_hostif_buffer_X550()
596 return status; ixgbe_read_ee_hostif_buffer_X550()
605 * Returns error status for any failure
612 s32 status; ixgbe_checksum_ptr_x550() local
620 status = ixgbe_read_ee_hostif_buffer_X550(hw, ptr, bufsz, buf); ixgbe_checksum_ptr_x550()
621 if (status) { ixgbe_checksum_ptr_x550()
623 return status; ixgbe_checksum_ptr_x550()
656 status = ixgbe_read_ee_hostif_buffer_X550(hw, ptr, ixgbe_checksum_ptr_x550()
658 if (status) { ixgbe_checksum_ptr_x550()
660 return status; ixgbe_checksum_ptr_x550()
680 s32 status; ixgbe_calc_checksum_X550() local
688 status = ixgbe_read_ee_hostif_buffer_X550(hw, 0, ixgbe_calc_checksum_X550()
691 if (status) { ixgbe_calc_checksum_X550()
693 return status; ixgbe_calc_checksum_X550()
736 status = ixgbe_checksum_ptr_x550(hw, pointer, size, &checksum, ixgbe_calc_checksum_X550()
738 if (status) ixgbe_calc_checksum_X550()
739 return status; ixgbe_calc_checksum_X550()
766 s32 status = 0; ixgbe_read_ee_hostif_X550() local
769 status = ixgbe_read_ee_hostif_data_X550(hw, offset, data); ixgbe_read_ee_hostif_X550()
772 status = IXGBE_ERR_SWFW_SYNC; ixgbe_read_ee_hostif_X550()
775 return status; ixgbe_read_ee_hostif_X550()
788 s32 status; ixgbe_validate_eeprom_checksum_X550() local
796 status = hw->eeprom.ops.read(hw, 0, &checksum); ixgbe_validate_eeprom_checksum_X550()
797 if (status) { ixgbe_validate_eeprom_checksum_X550()
799 return status; ixgbe_validate_eeprom_checksum_X550()
802 status = hw->eeprom.ops.calc_checksum(hw); ixgbe_validate_eeprom_checksum_X550()
803 if (status < 0) ixgbe_validate_eeprom_checksum_X550()
804 return status; ixgbe_validate_eeprom_checksum_X550()
806 checksum = (u16)(status & 0xffff); ixgbe_validate_eeprom_checksum_X550()
808 status = ixgbe_read_ee_hostif_X550(hw, IXGBE_EEPROM_CHECKSUM, ixgbe_validate_eeprom_checksum_X550()
810 if (status) ixgbe_validate_eeprom_checksum_X550()
811 return status; ixgbe_validate_eeprom_checksum_X550()
817 status = IXGBE_ERR_EEPROM_CHECKSUM; ixgbe_validate_eeprom_checksum_X550()
825 return status; ixgbe_validate_eeprom_checksum_X550()
838 s32 status; ixgbe_write_ee_hostif_data_X550() local
851 status = ixgbe_host_interface_command(hw, (u32 *)&buffer, ixgbe_write_ee_hostif_data_X550()
854 return status; ixgbe_write_ee_hostif_data_X550()
866 s32 status = 0; ixgbe_write_ee_hostif_X550() local
869 status = ixgbe_write_ee_hostif_data_X550(hw, offset, data); ixgbe_write_ee_hostif_X550()
873 status = IXGBE_ERR_SWFW_SYNC; ixgbe_write_ee_hostif_X550()
876 return status; ixgbe_write_ee_hostif_X550()
886 s32 status = 0; ixgbe_update_flash_X550() local
894 status = ixgbe_host_interface_command(hw, (u32 *)&buffer, ixgbe_update_flash_X550()
897 return status; ixgbe_update_flash_X550()
925 s32 status; ixgbe_disable_rx_x550() local
944 status = ixgbe_host_interface_command(hw, (u32 *)&fw_cmd, ixgbe_disable_rx_x550()
949 if (status) { ixgbe_disable_rx_x550()
968 s32 status; ixgbe_update_eeprom_checksum_X550() local
975 status = ixgbe_read_ee_hostif_X550(hw, 0, &checksum); ixgbe_update_eeprom_checksum_X550()
976 if (status) { ixgbe_update_eeprom_checksum_X550()
978 return status; ixgbe_update_eeprom_checksum_X550()
981 status = ixgbe_calc_eeprom_checksum_X550(hw); ixgbe_update_eeprom_checksum_X550()
982 if (status < 0) ixgbe_update_eeprom_checksum_X550()
983 return status; ixgbe_update_eeprom_checksum_X550()
985 checksum = (u16)(status & 0xffff); ixgbe_update_eeprom_checksum_X550()
987 status = ixgbe_write_ee_hostif_X550(hw, IXGBE_EEPROM_CHECKSUM, ixgbe_update_eeprom_checksum_X550()
989 if (status) ixgbe_update_eeprom_checksum_X550()
990 return status; ixgbe_update_eeprom_checksum_X550()
992 status = ixgbe_update_flash_X550(hw); ixgbe_update_eeprom_checksum_X550()
994 return status; ixgbe_update_eeprom_checksum_X550()
1010 s32 status = 0; ixgbe_write_ee_hostif_buffer_X550() local
1014 status = hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM); ixgbe_write_ee_hostif_buffer_X550()
1015 if (status) { ixgbe_write_ee_hostif_buffer_X550()
1017 return status; ixgbe_write_ee_hostif_buffer_X550()
1021 status = ixgbe_write_ee_hostif_data_X550(hw, offset + i, ixgbe_write_ee_hostif_buffer_X550()
1023 if (status) { ixgbe_write_ee_hostif_buffer_X550()
1031 return status; ixgbe_write_ee_hostif_buffer_X550()
1089 s32 status; ixgbe_setup_ixfi_x550em() local
1093 status = ixgbe_read_iosf_sb_reg_x550(hw, ixgbe_setup_ixfi_x550em()
1096 if (status) ixgbe_setup_ixfi_x550em()
1097 return status; ixgbe_setup_ixfi_x550em()
1115 status = ixgbe_write_iosf_sb_reg_x550(hw, ixgbe_setup_ixfi_x550em()
1118 if (status) ixgbe_setup_ixfi_x550em()
1119 return status; ixgbe_setup_ixfi_x550em()
1122 status = ixgbe_read_iosf_sb_reg_x550(hw, ixgbe_setup_ixfi_x550em()
1125 if (status) ixgbe_setup_ixfi_x550em()
1126 return status; ixgbe_setup_ixfi_x550em()
1129 status = ixgbe_write_iosf_sb_reg_x550(hw, ixgbe_setup_ixfi_x550em()
1132 if (status) ixgbe_setup_ixfi_x550em()
1133 return status; ixgbe_setup_ixfi_x550em()
1136 status = ixgbe_read_iosf_sb_reg_x550(hw, ixgbe_setup_ixfi_x550em()
1139 if (status) ixgbe_setup_ixfi_x550em()
1140 return status; ixgbe_setup_ixfi_x550em()
1145 status = ixgbe_write_iosf_sb_reg_x550(hw, ixgbe_setup_ixfi_x550em()
1148 if (status) ixgbe_setup_ixfi_x550em()
1149 return status; ixgbe_setup_ixfi_x550em()
1151 status = ixgbe_read_iosf_sb_reg_x550(hw, ixgbe_setup_ixfi_x550em()
1154 if (status) ixgbe_setup_ixfi_x550em()
1155 return status; ixgbe_setup_ixfi_x550em()
1160 status = ixgbe_write_iosf_sb_reg_x550(hw, ixgbe_setup_ixfi_x550em()
1163 if (status) ixgbe_setup_ixfi_x550em()
1164 return status; ixgbe_setup_ixfi_x550em()
1167 status = ixgbe_read_iosf_sb_reg_x550(hw, ixgbe_setup_ixfi_x550em()
1170 if (status) ixgbe_setup_ixfi_x550em()
1171 return status; ixgbe_setup_ixfi_x550em()
1177 status = ixgbe_write_iosf_sb_reg_x550(hw, ixgbe_setup_ixfi_x550em()
1180 if (status) ixgbe_setup_ixfi_x550em()
1181 return status; ixgbe_setup_ixfi_x550em()
1184 status = ixgbe_read_iosf_sb_reg_x550(hw, ixgbe_setup_ixfi_x550em()
1187 if (status) ixgbe_setup_ixfi_x550em()
1188 return status; ixgbe_setup_ixfi_x550em()
1191 status = ixgbe_write_iosf_sb_reg_x550(hw, ixgbe_setup_ixfi_x550em()
1195 return status; ixgbe_setup_ixfi_x550em()
1243 s32 status; ixgbe_setup_mac_link_sfp_x550em() local
1248 status = ixgbe_supported_sfp_modules_X550em(hw, &setup_linear); ixgbe_setup_mac_link_sfp_x550em()
1254 if (status == IXGBE_ERR_SFP_NOT_PRESENT) ixgbe_setup_mac_link_sfp_x550em()
1257 if (status) ixgbe_setup_mac_link_sfp_x550em()
1258 return status; ixgbe_setup_mac_link_sfp_x550em()
1263 status = ixgbe_write_i2c_combined_generic(hw, IXGBE_CS4227, slice, ixgbe_setup_mac_link_sfp_x550em()
1270 status = ixgbe_write_i2c_combined_generic(hw, IXGBE_CS4227, slice, ixgbe_setup_mac_link_sfp_x550em()
1278 status = ixgbe_write_i2c_combined_generic(hw, IXGBE_CS4227, slice, ixgbe_setup_mac_link_sfp_x550em()
1283 status = ixgbe_setup_ixfi_x550em(hw, &speed); ixgbe_setup_mac_link_sfp_x550em()
1285 return status; ixgbe_setup_mac_link_sfp_x550em()
1297 * Returns error status for any failure
1303 s32 status; ixgbe_setup_mac_link_t_X550em() local
1316 status = ixgbe_setup_ixfi_x550em(hw, &force_speed); ixgbe_setup_mac_link_t_X550em()
1318 if (status) ixgbe_setup_mac_link_t_X550em()
1319 return status; ixgbe_setup_mac_link_t_X550em()
1325 /** ixgbe_check_link_t_X550em - Determine link and speed status
1338 u32 status; ixgbe_check_link_t_X550em() local
1344 status = ixgbe_check_mac_link_generic(hw, speed, link_up, ixgbe_check_link_t_X550em()
1348 if (status || !(*link_up)) ixgbe_check_link_t_X550em()
1349 return status; ixgbe_check_link_t_X550em()
1352 * Read this twice back to back to indicate current status. ixgbe_check_link_t_X550em()
1354 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_STATUS, ixgbe_check_link_t_X550em()
1357 if (status) ixgbe_check_link_t_X550em()
1358 return status; ixgbe_check_link_t_X550em()
1401 s32 status; ixgbe_setup_sfp_modules_X550em() local
1405 status = ixgbe_supported_sfp_modules_X550em(hw, &linear); ixgbe_setup_sfp_modules_X550em()
1406 if (status) ixgbe_setup_sfp_modules_X550em()
1407 return status; ixgbe_setup_sfp_modules_X550em()
1456 * failure alarm or link status change.
1459 * failure alarm, else return PHY access status.
1463 u32 status; ixgbe_get_lasi_ext_t_x550em() local
1469 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_CHIP_STD_INT_FLAG, ixgbe_get_lasi_ext_t_x550em()
1473 if (status || !(reg & IXGBE_MDIO_GLOBAL_VEN_ALM_INT_EN)) ixgbe_get_lasi_ext_t_x550em()
1474 return status; ixgbe_get_lasi_ext_t_x550em()
1477 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_VEN_FLAG, ixgbe_get_lasi_ext_t_x550em()
1481 if (status || !(reg & (IXGBE_MDIO_GLOBAL_AN_VEN_ALM_INT_EN | ixgbe_get_lasi_ext_t_x550em()
1483 return status; ixgbe_get_lasi_ext_t_x550em()
1486 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_ALARM_1, ixgbe_get_lasi_ext_t_x550em()
1490 if (status) ixgbe_get_lasi_ext_t_x550em()
1491 return status; ixgbe_get_lasi_ext_t_x550em()
1501 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_CHIP_STD_INT_FLAG, ixgbe_get_lasi_ext_t_x550em()
1504 if (status || !(reg & IXGBE_MDIO_GLOBAL_STD_ALM2_INT)) ixgbe_get_lasi_ext_t_x550em()
1505 return status; ixgbe_get_lasi_ext_t_x550em()
1508 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_VENDOR_TX_ALARM2, ixgbe_get_lasi_ext_t_x550em()
1511 if (status) ixgbe_get_lasi_ext_t_x550em()
1512 return status; ixgbe_get_lasi_ext_t_x550em()
1525 * Enable link status change and temperature failure alarm for the external
1528 * Returns PHY access status
1532 u32 status; ixgbe_enable_lasi_ext_t_x550em() local
1537 status = ixgbe_get_lasi_ext_t_x550em(hw, &lsc); ixgbe_enable_lasi_ext_t_x550em()
1539 /* Enable link status change alarm */ ixgbe_enable_lasi_ext_t_x550em()
1540 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_PMA_TX_VEN_LASI_INT_MASK, ixgbe_enable_lasi_ext_t_x550em()
1542 if (status) ixgbe_enable_lasi_ext_t_x550em()
1543 return status; ixgbe_enable_lasi_ext_t_x550em()
1547 status = hw->phy.ops.write_reg(hw, IXGBE_MDIO_PMA_TX_VEN_LASI_INT_MASK, ixgbe_enable_lasi_ext_t_x550em()
1549 if (status) ixgbe_enable_lasi_ext_t_x550em()
1550 return status; ixgbe_enable_lasi_ext_t_x550em()
1553 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_MASK, ixgbe_enable_lasi_ext_t_x550em()
1556 if (status) ixgbe_enable_lasi_ext_t_x550em()
1557 return status; ixgbe_enable_lasi_ext_t_x550em()
1561 status = hw->phy.ops.write_reg(hw, IXGBE_MDIO_GLOBAL_INT_MASK, ixgbe_enable_lasi_ext_t_x550em()
1564 if (status) ixgbe_enable_lasi_ext_t_x550em()
1565 return status; ixgbe_enable_lasi_ext_t_x550em()
1568 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_VEN_MASK, ixgbe_enable_lasi_ext_t_x550em()
1571 if (status) ixgbe_enable_lasi_ext_t_x550em()
1572 return status; ixgbe_enable_lasi_ext_t_x550em()
1577 status = hw->phy.ops.write_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_VEN_MASK, ixgbe_enable_lasi_ext_t_x550em()
1580 if (status) ixgbe_enable_lasi_ext_t_x550em()
1581 return status; ixgbe_enable_lasi_ext_t_x550em()
1584 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_STD_MASK, ixgbe_enable_lasi_ext_t_x550em()
1587 if (status) ixgbe_enable_lasi_ext_t_x550em()
1588 return status; ixgbe_enable_lasi_ext_t_x550em()
1592 status = hw->phy.ops.write_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_STD_MASK, ixgbe_enable_lasi_ext_t_x550em()
1596 return status; ixgbe_enable_lasi_ext_t_x550em()
1604 * failure alarm then return error, else if link status change
1608 * failure alarm, else return PHY access status.
1614 u32 status; ixgbe_handle_lasi_ext_t_x550em() local
1616 status = ixgbe_get_lasi_ext_t_x550em(hw, &lsc); ixgbe_handle_lasi_ext_t_x550em()
1617 if (status) ixgbe_handle_lasi_ext_t_x550em()
1618 return status; ixgbe_handle_lasi_ext_t_x550em()
1636 s32 status; ixgbe_setup_kr_speed_x550em() local
1639 status = ixgbe_read_iosf_sb_reg_x550(hw, ixgbe_setup_kr_speed_x550em()
1642 if (status) ixgbe_setup_kr_speed_x550em()
1643 return status; ixgbe_setup_kr_speed_x550em()
1661 status = ixgbe_write_iosf_sb_reg_x550(hw, ixgbe_setup_kr_speed_x550em()
1665 return status; ixgbe_setup_kr_speed_x550em()
1675 s32 status; ixgbe_setup_kx4_x550em() local
1678 status = ixgbe_read_iosf_sb_reg_x550(hw, IXGBE_KX4_LINK_CNTL_1, ixgbe_setup_kx4_x550em()
1681 if (status) ixgbe_setup_kx4_x550em()
1682 return status; ixgbe_setup_kx4_x550em()
1699 status = ixgbe_write_iosf_sb_reg_x550(hw, IXGBE_KX4_LINK_CNTL_1, ixgbe_setup_kx4_x550em()
1703 return status; ixgbe_setup_kx4_x550em()
1716 /** ixgbe_ext_phy_t_x550em_get_link - Get ext phy link status
1718 * @link_up: address of boolean to indicate link status
1720 * Returns error code if unable to get link status.
1729 /* read this twice back to back to indicate current status */ ixgbe_ext_phy_t_x550em_get_link()
1751 * The driver will call this function when it gets a link status change
1762 u32 status; ixgbe_setup_internal_phy_t_x550em() local
1769 status = ixgbe_ext_phy_t_x550em_get_link(hw, &link_up); ixgbe_setup_internal_phy_t_x550em()
1770 if (status) ixgbe_setup_internal_phy_t_x550em()
1771 return status; ixgbe_setup_internal_phy_t_x550em()
1776 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_VENDOR_STAT, ixgbe_setup_internal_phy_t_x550em()
1779 if (status) ixgbe_setup_internal_phy_t_x550em()
1780 return status; ixgbe_setup_internal_phy_t_x550em()
1783 status = ixgbe_ext_phy_t_x550em_get_link(hw, &link_up); ixgbe_setup_internal_phy_t_x550em()
1784 if (status) ixgbe_setup_internal_phy_t_x550em()
1785 return status; ixgbe_setup_internal_phy_t_x550em()
1813 s32 status; ixgbe_reset_phy_t_X550em() local
1815 status = ixgbe_reset_phy_generic(hw); ixgbe_reset_phy_t_X550em()
1817 if (status) ixgbe_reset_phy_t_X550em()
1818 return status; ixgbe_reset_phy_t_X550em()
1834 s32 status; ixgbe_get_lcd_t_x550em() local
1839 status = hw->phy.ops.read_reg(hw, IXGBE_AUTO_NEG_LP_STATUS, ixgbe_get_lcd_t_x550em()
1842 if (status) ixgbe_get_lcd_t_x550em()
1843 return status; ixgbe_get_lcd_t_x550em()
1848 return status; ixgbe_get_lcd_t_x550em()
1854 return status; ixgbe_get_lcd_t_x550em()
1858 return status; ixgbe_get_lcd_t_x550em()
1871 s32 status; ixgbe_enter_lplu_t_x550em() local
1884 status = ixgbe_ext_phy_t_x550em_get_link(hw, &link_up); ixgbe_enter_lplu_t_x550em()
1885 if (status) ixgbe_enter_lplu_t_x550em()
1886 return status; ixgbe_enter_lplu_t_x550em()
1888 status = hw->eeprom.ops.read(hw, NVM_INIT_CTRL_3, ixgbe_enter_lplu_t_x550em()
1890 if (status) ixgbe_enter_lplu_t_x550em()
1891 return status; ixgbe_enter_lplu_t_x550em()
1902 status = ixgbe_get_lcd_t_x550em(hw, &lcd_speed); ixgbe_enter_lplu_t_x550em()
1903 if (status) ixgbe_enter_lplu_t_x550em()
1904 return status; ixgbe_enter_lplu_t_x550em()
1910 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_VENDOR_STAT, ixgbe_enter_lplu_t_x550em()
1913 if (status) ixgbe_enter_lplu_t_x550em()
1914 return status; ixgbe_enter_lplu_t_x550em()
1917 status = ixgbe_ext_phy_t_x550em_get_link(hw, &link_up); ixgbe_enter_lplu_t_x550em()
1918 if (status) ixgbe_enter_lplu_t_x550em()
1929 return status; ixgbe_enter_lplu_t_x550em()
1932 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_VENDOR_TX_ALARM, ixgbe_enter_lplu_t_x550em()
1935 if (status) ixgbe_enter_lplu_t_x550em()
1936 return status; ixgbe_enter_lplu_t_x550em()
1938 status = hw->phy.ops.read_reg(hw, IXGBE_MII_10GBASE_T_AUTONEG_CTRL_REG, ixgbe_enter_lplu_t_x550em()
1941 if (status) ixgbe_enter_lplu_t_x550em()
1942 return status; ixgbe_enter_lplu_t_x550em()
1944 status = hw->phy.ops.read_reg(hw, ixgbe_enter_lplu_t_x550em()
1948 if (status) ixgbe_enter_lplu_t_x550em()
1949 return status; ixgbe_enter_lplu_t_x550em()
1954 status = hw->mac.ops.setup_link(hw, lcd_speed, false); ixgbe_enter_lplu_t_x550em()
1959 return status; ixgbe_enter_lplu_t_x550em()
2082 s32 status; ixgbe_init_ext_t_x550em() local
2085 status = hw->phy.ops.read_reg(hw, ixgbe_init_ext_t_x550em()
2089 if (status) ixgbe_init_ext_t_x550em()
2090 return status; ixgbe_init_ext_t_x550em()
2096 status = hw->phy.ops.read_reg(hw, ixgbe_init_ext_t_x550em()
2100 if (status) ixgbe_init_ext_t_x550em()
2101 return status; ixgbe_init_ext_t_x550em()
2105 status = hw->phy.ops.write_reg(hw, ixgbe_init_ext_t_x550em()
2109 if (status) ixgbe_init_ext_t_x550em()
2110 return status; ixgbe_init_ext_t_x550em()
2113 return status; ixgbe_init_ext_t_x550em()
2126 s32 status; ixgbe_reset_hw_X550em() local
2133 status = hw->mac.ops.stop_adapter(hw); ixgbe_reset_hw_X550em()
2134 if (status) ixgbe_reset_hw_X550em()
2135 return status; ixgbe_reset_hw_X550em()
2143 status = hw->phy.ops.init(hw); ixgbe_reset_hw_X550em()
2147 status = ixgbe_init_ext_t_x550em(hw); ixgbe_reset_hw_X550em()
2148 if (status) ixgbe_reset_hw_X550em()
2149 return status; ixgbe_reset_hw_X550em()
2154 status = hw->mac.ops.setup_sfp(hw); ixgbe_reset_hw_X550em()
2189 status = IXGBE_ERR_RESET_FAILED; ixgbe_reset_hw_X550em()
2223 return status; ixgbe_reset_hw_X550em()
2304 s32 status; ixgbe_acquire_swfw_sync_X550em() local
2306 status = ixgbe_acquire_swfw_sync_X540(hw, mask); ixgbe_acquire_swfw_sync_X550em()
2307 if (status) ixgbe_acquire_swfw_sync_X550em()
2308 return status; ixgbe_acquire_swfw_sync_X550em()
/linux-4.4.14/drivers/media/tuners/
H A Dmxl5005s.c1756 u16 status = 0; MXL_OverwriteICDefault() local
1758 status += MXL_ControlWrite(fe, OVERRIDE_1, 1); MXL_OverwriteICDefault()
1759 status += MXL_ControlWrite(fe, OVERRIDE_2, 1); MXL_OverwriteICDefault()
1760 status += MXL_ControlWrite(fe, OVERRIDE_3, 1); MXL_OverwriteICDefault()
1761 status += MXL_ControlWrite(fe, OVERRIDE_4, 1); MXL_OverwriteICDefault()
1763 return status; MXL_OverwriteICDefault()
1769 u16 status = 0; MXL_BlockInit() local
1771 status += MXL_OverwriteICDefault(fe); MXL_BlockInit()
1774 status += MXL_ControlWrite(fe, DN_IQTN_AMP_CUT, state->Mode ? 1 : 0); MXL_BlockInit()
1777 status += MXL_ControlWrite(fe, BB_MODE, state->Mode ? 0 : 1); MXL_BlockInit()
1778 status += MXL_ControlWrite(fe, BB_BUF, state->Mode ? 3 : 2); MXL_BlockInit()
1779 status += MXL_ControlWrite(fe, BB_BUF_OA, state->Mode ? 1 : 0); MXL_BlockInit()
1780 status += MXL_ControlWrite(fe, BB_IQSWAP, state->Mode ? 0 : 1); MXL_BlockInit()
1781 status += MXL_ControlWrite(fe, BB_INITSTATE_DLPF_TUNE, 0); MXL_BlockInit()
1787 status += MXL_ControlWrite(fe, BB_DLPF_BANDSEL, 0); MXL_BlockInit()
1790 status += MXL_ControlWrite(fe, BB_DLPF_BANDSEL, 2); MXL_BlockInit()
1793 status += MXL_ControlWrite(fe, MXL_BlockInit()
1800 status += MXL_ControlWrite(fe, BB_ALPF_BANDSELECT, MXL_BlockInit()
1804 status += MXL_ControlWrite(fe, BB_ALPF_BANDSELECT, MXL_BlockInit()
1808 status += MXL_ControlWrite(fe, BB_ALPF_BANDSELECT, MXL_BlockInit()
1815 status += MXL_ControlWrite(fe, RFSYN_CHP_GAIN, state->Mode ? 5 : 8); MXL_BlockInit()
1816 status += MXL_ControlWrite(fe, MXL_BlockInit()
1818 status += MXL_ControlWrite(fe, EN_CHP_LIN_B, state->Mode ? 0 : 0); MXL_BlockInit()
1822 status += MXL_ControlWrite(fe, AGC_IF, 15); MXL_BlockInit()
1823 status += MXL_ControlWrite(fe, AGC_RF, 15); MXL_BlockInit()
1825 status += MXL_ControlWrite(fe, AGC_RF, state->Mode ? 15 : 12); MXL_BlockInit()
1828 status += MXL_ControlWrite(fe, AGC_IF, 0x0); MXL_BlockInit()
1831 status += MXL_ControlWrite(fe, AGC_IF, 0x1); MXL_BlockInit()
1834 status += MXL_ControlWrite(fe, AGC_IF, 0x2); MXL_BlockInit()
1837 status += MXL_ControlWrite(fe, AGC_IF, 0x3); MXL_BlockInit()
1840 status += MXL_ControlWrite(fe, AGC_IF, 0x4); MXL_BlockInit()
1843 status += MXL_ControlWrite(fe, AGC_IF, 0x5); MXL_BlockInit()
1846 status += MXL_ControlWrite(fe, AGC_IF, 0x6); MXL_BlockInit()
1849 status += MXL_ControlWrite(fe, AGC_IF, 0x7); MXL_BlockInit()
1852 status += MXL_ControlWrite(fe, AGC_IF, 0x9); MXL_BlockInit()
1855 status += MXL_ControlWrite(fe, AGC_IF, 0xA); MXL_BlockInit()
1858 status += MXL_ControlWrite(fe, AGC_IF, 0xB); MXL_BlockInit()
1861 status += MXL_ControlWrite(fe, AGC_IF, 0xC); MXL_BlockInit()
1864 status += MXL_ControlWrite(fe, AGC_IF, 0xD); MXL_BlockInit()
1867 status += MXL_ControlWrite(fe, AGC_IF, 0xE); MXL_BlockInit()
1870 status += MXL_ControlWrite(fe, AGC_IF, 0xF); MXL_BlockInit()
1873 status += MXL_IFSynthInit(fe); MXL_BlockInit()
1877 status += MXL_ControlWrite(fe, DRV_RES_SEL, 6); MXL_BlockInit()
1878 status += MXL_ControlWrite(fe, I_DRIVER, 2); MXL_BlockInit()
1881 status += MXL_ControlWrite(fe, DRV_RES_SEL, 4); MXL_BlockInit()
1882 status += MXL_ControlWrite(fe, I_DRIVER, 1); MXL_BlockInit()
1890 status += MXL_ControlWrite(fe, EN_AAF, 1); MXL_BlockInit()
1891 status += MXL_ControlWrite(fe, EN_3P, 1); MXL_BlockInit()
1892 status += MXL_ControlWrite(fe, EN_AUX_3P, 1); MXL_BlockInit()
1893 status += MXL_ControlWrite(fe, SEL_AAF_BAND, 0); MXL_BlockInit()
1897 status += MXL_ControlWrite(fe, EN_AAF, 1); MXL_BlockInit()
1898 status += MXL_ControlWrite(fe, EN_3P, 1); MXL_BlockInit()
1899 status += MXL_ControlWrite(fe, EN_AUX_3P, 1); MXL_BlockInit()
1900 status += MXL_ControlWrite(fe, SEL_AAF_BAND, 1); MXL_BlockInit()
1903 status += MXL_ControlWrite(fe, EN_AAF, 0); MXL_BlockInit()
1904 status += MXL_ControlWrite(fe, EN_3P, 1); MXL_BlockInit()
1905 status += MXL_ControlWrite(fe, EN_AUX_3P, 1); MXL_BlockInit()
1906 status += MXL_ControlWrite(fe, SEL_AAF_BAND, 1); MXL_BlockInit()
1910 status += MXL_ControlWrite(fe, EN_AAF, 1); MXL_BlockInit()
1911 status += MXL_ControlWrite(fe, EN_3P, 1); MXL_BlockInit()
1912 status += MXL_ControlWrite(fe, EN_AUX_3P, 1); MXL_BlockInit()
1913 status += MXL_ControlWrite(fe, SEL_AAF_BAND, 0); MXL_BlockInit()
1916 status += MXL_ControlWrite(fe, EN_AAF, 0); MXL_BlockInit()
1917 status += MXL_ControlWrite(fe, EN_3P, 0); MXL_BlockInit()
1918 status += MXL_ControlWrite(fe, EN_AUX_3P, 0); MXL_BlockInit()
1919 status += MXL_ControlWrite(fe, SEL_AAF_BAND, 0); MXL_BlockInit()
1925 status += MXL_ControlWrite(fe, SEQ_ENCLK16_CLK_OUT, 1); MXL_BlockInit()
1927 status += MXL_ControlWrite(fe, SEQ_ENCLK16_CLK_OUT, 0); MXL_BlockInit()
1930 status += MXL_ControlWrite(fe, SEQ_SEL4_16B, 1); MXL_BlockInit()
1932 status += MXL_ControlWrite(fe, SEQ_SEL4_16B, 0); MXL_BlockInit()
1936 status += MXL_ControlWrite(fe, XTAL_CAPSELECT, 1); MXL_BlockInit()
1938 status += MXL_ControlWrite(fe, XTAL_CAPSELECT, 0); MXL_BlockInit()
1941 status += MXL_ControlWrite(fe, IF_SEL_DBL, 1); MXL_BlockInit()
1943 status += MXL_ControlWrite(fe, IF_SEL_DBL, 0); MXL_BlockInit()
1946 status += MXL_ControlWrite(fe, RFSYN_R_DIV, 3); MXL_BlockInit()
1948 status += MXL_ControlWrite(fe, RFSYN_R_DIV, 0); MXL_BlockInit()
1952 status += MXL_ControlWrite(fe, SEQ_EXTIQFSMPULSE, 0); MXL_BlockInit()
1954 status += MXL_ControlWrite(fe, SEQ_EXTIQFSMPULSE, 1); MXL_BlockInit()
1956 /* status += MXL_ControlRead(fe, IF_DIVVAL, &IF_DIVVAL_Val); */ MXL_BlockInit()
1959 status += MXL_ControlWrite(fe, TG_R_DIV, MXL_BlockInit()
1966 status += MXL_ControlWrite(fe, SEQ_EXTSYNTHCALIF, 1); MXL_BlockInit()
1967 status += MXL_ControlWrite(fe, SEQ_EXTDCCAL, 1); MXL_BlockInit()
1968 status += MXL_ControlWrite(fe, AGC_EN_RSSI, 1); MXL_BlockInit()
1969 status += MXL_ControlWrite(fe, RFA_ENCLKRFAGC, 1); MXL_BlockInit()
1972 status += MXL_ControlWrite(fe, RFA_RSSI_REF, 2); MXL_BlockInit()
1973 status += MXL_ControlWrite(fe, RFA_RSSI_REFH, 3); MXL_BlockInit()
1974 status += MXL_ControlWrite(fe, RFA_RSSI_REFL, 1); MXL_BlockInit()
1977 status += MXL_ControlWrite(fe, RFA_FLR, 0); MXL_BlockInit()
1978 status += MXL_ControlWrite(fe, RFA_CEIL, 12); MXL_BlockInit()
1988 status += MXL_ControlWrite(fe, SEQ_EXTSYNTHCALIF, 1); MXL_BlockInit()
1989 status += MXL_ControlWrite(fe, SEQ_EXTDCCAL, 1); MXL_BlockInit()
1990 status += MXL_ControlWrite(fe, AGC_EN_RSSI, 1); MXL_BlockInit()
1991 status += MXL_ControlWrite(fe, RFA_ENCLKRFAGC, 1); MXL_BlockInit()
1994 status += MXL_ControlWrite(fe, RFA_RSSI_REF, 3); MXL_BlockInit()
1995 status += MXL_ControlWrite(fe, RFA_RSSI_REFH, 5); MXL_BlockInit()
1996 status += MXL_ControlWrite(fe, RFA_RSSI_REFL, 1); MXL_BlockInit()
1999 status += MXL_ControlWrite(fe, RFA_FLR, 2); MXL_BlockInit()
2000 status += MXL_ControlWrite(fe, RFA_CEIL, 13); MXL_BlockInit()
2002 status += MXL_ControlWrite(fe, BB_IQSWAP, 0); MXL_BlockInit()
2004 status += MXL_ControlWrite(fe, BB_IQSWAP, 1); MXL_BlockInit()
2011 status += MXL_ControlWrite(fe, SEQ_EXTSYNTHCALIF, 1); MXL_BlockInit()
2012 status += MXL_ControlWrite(fe, SEQ_EXTDCCAL, 1); MXL_BlockInit()
2013 status += MXL_ControlWrite(fe, AGC_EN_RSSI, 1); MXL_BlockInit()
2014 status += MXL_ControlWrite(fe, RFA_ENCLKRFAGC, 1); MXL_BlockInit()
2017 status += MXL_ControlWrite(fe, RFA_RSSI_REF, 2); MXL_BlockInit()
2018 status += MXL_ControlWrite(fe, RFA_RSSI_REFH, 4); MXL_BlockInit()
2019 status += MXL_ControlWrite(fe, RFA_RSSI_REFL, 1); MXL_BlockInit()
2022 status += MXL_ControlWrite(fe, RFA_FLR, 2); MXL_BlockInit()
2023 status += MXL_ControlWrite(fe, RFA_CEIL, 13); MXL_BlockInit()
2024 status += MXL_ControlWrite(fe, BB_INITSTATE_DLPF_TUNE, 1); MXL_BlockInit()
2026 status += MXL_ControlWrite(fe, RFSYN_CHP_GAIN, 5); MXL_BlockInit()
2029 status += MXL_ControlWrite(fe, BB_IQSWAP, 0); MXL_BlockInit()
2031 status += MXL_ControlWrite(fe, BB_IQSWAP, 1); MXL_BlockInit()
2039 status += MXL_ControlWrite(fe, SEQ_EXTSYNTHCALIF, 1); MXL_BlockInit()
2040 status += MXL_ControlWrite(fe, SEQ_EXTDCCAL, 1); MXL_BlockInit()
2041 status += MXL_ControlWrite(fe, AGC_EN_RSSI, 0); MXL_BlockInit()
2042 status += MXL_ControlWrite(fe, RFA_ENCLKRFAGC, 1); MXL_BlockInit()
2045 status += MXL_ControlWrite(fe, RFA_RSSI_REFH, 5); MXL_BlockInit()
2046 status += MXL_ControlWrite(fe, RFA_RSSI_REF, 3); MXL_BlockInit()
2047 status += MXL_ControlWrite(fe, RFA_RSSI_REFL, 2); MXL_BlockInit()
2049 status += MXL_ControlWrite(fe, RFSYN_CHP_GAIN, 3); MXL_BlockInit()
2052 status += MXL_ControlWrite(fe, BB_IQSWAP, 0); MXL_BlockInit()
2054 status += MXL_ControlWrite(fe, BB_IQSWAP, 1); MXL_BlockInit()
2055 status += MXL_ControlWrite(fe, RFSYN_CHP_GAIN, 2); MXL_BlockInit()
2065 status += MXL_ControlWrite(fe, SEQ_EXTSYNTHCALIF, 1); MXL_BlockInit()
2066 status += MXL_ControlWrite(fe, SEQ_EXTDCCAL, 1); MXL_BlockInit()
2067 status += MXL_ControlWrite(fe, AGC_EN_RSSI, 0); MXL_BlockInit()
2068 status += MXL_ControlWrite(fe, RFA_ENCLKRFAGC, 1); MXL_BlockInit()
2070 status += MXL_ControlWrite(fe, AGC_IF, 1); MXL_BlockInit()
2071 status += MXL_ControlWrite(fe, AGC_RF, 15); MXL_BlockInit()
2072 status += MXL_ControlWrite(fe, BB_IQSWAP, 1); MXL_BlockInit()
2080 status += MXL_ControlWrite(fe, SEQ_EXTSYNTHCALIF, 1); MXL_BlockInit()
2081 status += MXL_ControlWrite(fe, SEQ_EXTDCCAL, 1); MXL_BlockInit()
2082 status += MXL_ControlWrite(fe, AGC_EN_RSSI, 1); MXL_BlockInit()
2083 status += MXL_ControlWrite(fe, RFA_ENCLKRFAGC, 1); MXL_BlockInit()
2086 status += MXL_ControlWrite(fe, RFA_RSSI_REFH, 5); MXL_BlockInit()
2087 status += MXL_ControlWrite(fe, RFA_RSSI_REF, 3); MXL_BlockInit()
2088 status += MXL_ControlWrite(fe, RFA_RSSI_REFL, 2); MXL_BlockInit()
2089 status += MXL_ControlWrite(fe, RFSYN_CHP_GAIN, 3); MXL_BlockInit()
2090 status += MXL_ControlWrite(fe, BB_IQSWAP, 1); MXL_BlockInit()
2095 status += MXL_ControlWrite(fe, SEQ_EXTSYNTHCALIF, 1); MXL_BlockInit()
2096 status += MXL_ControlWrite(fe, SEQ_EXTDCCAL, 1); MXL_BlockInit()
2097 status += MXL_ControlWrite(fe, AGC_EN_RSSI, 0); MXL_BlockInit()
2098 status += MXL_ControlWrite(fe, RFA_ENCLKRFAGC, 1); MXL_BlockInit()
2101 return status; MXL_BlockInit()
2107 u16 status = 0 ; MXL_IFSynthInit() local
2121 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x08); MXL_IFSynthInit()
2122 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x0C); MXL_IFSynthInit()
2126 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x08); MXL_IFSynthInit()
2127 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2131 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x10); MXL_IFSynthInit()
2132 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x0C); MXL_IFSynthInit()
2136 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x10); MXL_IFSynthInit()
2137 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2141 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x08); MXL_IFSynthInit()
2142 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x0C); MXL_IFSynthInit()
2146 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x08); MXL_IFSynthInit()
2147 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x0C); MXL_IFSynthInit()
2151 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x08); MXL_IFSynthInit()
2152 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x0C); MXL_IFSynthInit()
2156 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x08); MXL_IFSynthInit()
2157 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x0C); MXL_IFSynthInit()
2164 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x10); MXL_IFSynthInit()
2165 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2169 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x08); MXL_IFSynthInit()
2170 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2174 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x08); MXL_IFSynthInit()
2175 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2179 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x04); MXL_IFSynthInit()
2180 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2184 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x04); MXL_IFSynthInit()
2185 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2189 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x04); MXL_IFSynthInit()
2190 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2194 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x04); MXL_IFSynthInit()
2195 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2199 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x04); MXL_IFSynthInit()
2200 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2204 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x07); MXL_IFSynthInit()
2205 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2209 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x09); MXL_IFSynthInit()
2210 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2214 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x06); MXL_IFSynthInit()
2215 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2219 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x06); MXL_IFSynthInit()
2220 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2224 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x05); MXL_IFSynthInit()
2225 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2229 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x10); MXL_IFSynthInit()
2230 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2234 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x08); MXL_IFSynthInit()
2235 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2239 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x08); MXL_IFSynthInit()
2240 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2244 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x04); MXL_IFSynthInit()
2245 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2249 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x04); MXL_IFSynthInit()
2250 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2254 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x04); MXL_IFSynthInit()
2255 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2259 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x07); MXL_IFSynthInit()
2260 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2264 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x07); MXL_IFSynthInit()
2265 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x0C); MXL_IFSynthInit()
2269 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x07); MXL_IFSynthInit()
2270 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x0C); MXL_IFSynthInit()
2274 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x09); MXL_IFSynthInit()
2275 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2279 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x09); MXL_IFSynthInit()
2280 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2284 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x06); MXL_IFSynthInit()
2285 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2289 status += MXL_ControlWrite(fe, IF_DIVVAL, 0x05); MXL_IFSynthInit()
2290 status += MXL_ControlWrite(fe, IF_VCO_BIAS, 0x08); MXL_IFSynthInit()
2297 status += MXL_ControlWrite(fe, CHCAL_INT_MOD_IF, intModVal); MXL_IFSynthInit()
2303 status += MXL_ControlWrite(fe, CHCAL_FRAC_MOD_IF, fracModVal); MXL_IFSynthInit()
2305 return status ; MXL_IFSynthInit()
2311 u16 status = 0; MXL_TuneRF() local
2343 status += MXL_ControlWrite(fe, DN_POLY, 2); MXL_TuneRF()
2344 status += MXL_ControlWrite(fe, DN_RFGAIN, 3); MXL_TuneRF()
2345 status += MXL_ControlWrite(fe, DN_CAP_RFLPF, 423); MXL_TuneRF()
2346 status += MXL_ControlWrite(fe, DN_EN_VHFUHFBAR, 1); MXL_TuneRF()
2347 status += MXL_ControlWrite(fe, DN_GAIN_ADJUST, 1); MXL_TuneRF()
2350 status += MXL_ControlWrite(fe, DN_POLY, 3); MXL_TuneRF()
2351 status += MXL_ControlWrite(fe, DN_RFGAIN, 3); MXL_TuneRF()
2352 status += MXL_ControlWrite(fe, DN_CAP_RFLPF, 222); MXL_TuneRF()
2353 status += MXL_ControlWrite(fe, DN_EN_VHFUHFBAR, 1); MXL_TuneRF()
2354 status += MXL_ControlWrite(fe, DN_GAIN_ADJUST, 1); MXL_TuneRF()
2357 status += MXL_ControlWrite(fe, DN_POLY, 3); MXL_TuneRF()
2358 status += MXL_ControlWrite(fe, DN_RFGAIN, 3); MXL_TuneRF()
2359 status += MXL_ControlWrite(fe, DN_CAP_RFLPF, 147); MXL_TuneRF()
2360 status += MXL_ControlWrite(fe, DN_EN_VHFUHFBAR, 1); MXL_TuneRF()
2361 status += MXL_ControlWrite(fe, DN_GAIN_ADJUST, 2); MXL_TuneRF()
2364 status += MXL_ControlWrite(fe, DN_POLY, 3); MXL_TuneRF()
2365 status += MXL_ControlWrite(fe, DN_RFGAIN, 3); MXL_TuneRF()
2366 status += MXL_ControlWrite(fe, DN_CAP_RFLPF, 9); MXL_TuneRF()
2367 status += MXL_ControlWrite(fe, DN_EN_VHFUHFBAR, 1); MXL_TuneRF()
2368 status += MXL_ControlWrite(fe, DN_GAIN_ADJUST, 2); MXL_TuneRF()
2371 status += MXL_ControlWrite(fe, DN_POLY, 3); MXL_TuneRF()
2372 status += MXL_ControlWrite(fe, DN_RFGAIN, 3); MXL_TuneRF()
2373 status += MXL_ControlWrite(fe, DN_CAP_RFLPF, 0); MXL_TuneRF()
2374 status += MXL_ControlWrite(fe, DN_EN_VHFUHFBAR, 1); MXL_TuneRF()
2375 status += MXL_ControlWrite(fe, DN_GAIN_ADJUST, 3); MXL_TuneRF()
2378 status += MXL_ControlWrite(fe, DN_POLY, 3); MXL_TuneRF()
2379 status += MXL_ControlWrite(fe, DN_RFGAIN, 1); MXL_TuneRF()
2380 status += MXL_ControlWrite(fe, DN_CAP_RFLPF, 0); MXL_TuneRF()
2381 status += MXL_ControlWrite(fe, DN_EN_VHFUHFBAR, 0); MXL_TuneRF()
2382 status += MXL_ControlWrite(fe, DN_GAIN_ADJUST, 3); MXL_TuneRF()
2385 status += MXL_ControlWrite(fe, DN_POLY, 3); MXL_TuneRF()
2386 status += MXL_ControlWrite(fe, DN_RFGAIN, 2); MXL_TuneRF()
2387 status += MXL_ControlWrite(fe, DN_CAP_RFLPF, 0); MXL_TuneRF()
2388 status += MXL_ControlWrite(fe, DN_EN_VHFUHFBAR, 0); MXL_TuneRF()
2389 status += MXL_ControlWrite(fe, DN_GAIN_ADJUST, 3); MXL_TuneRF()
2397 status += MXL_ControlWrite(fe, DN_IQTNBUF_AMP, 1); MXL_TuneRF()
2398 status += MXL_ControlWrite(fe, DN_IQTNGNBFBIAS_BST, 0); MXL_TuneRF()
2401 status += MXL_ControlWrite(fe, DN_IQTNBUF_AMP, 1); MXL_TuneRF()
2402 status += MXL_ControlWrite(fe, DN_IQTNGNBFBIAS_BST, 0); MXL_TuneRF()
2405 status += MXL_ControlWrite(fe, DN_IQTNBUF_AMP, 1); MXL_TuneRF()
2406 status += MXL_ControlWrite(fe, DN_IQTNGNBFBIAS_BST, 0); MXL_TuneRF()
2409 status += MXL_ControlWrite(fe, DN_IQTNBUF_AMP, 1); MXL_TuneRF()
2410 status += MXL_ControlWrite(fe, DN_IQTNGNBFBIAS_BST, 0); MXL_TuneRF()
2413 status += MXL_ControlWrite(fe, DN_IQTNBUF_AMP, 1); MXL_TuneRF()
2414 status += MXL_ControlWrite(fe, DN_IQTNGNBFBIAS_BST, 0); MXL_TuneRF()
2417 status += MXL_ControlWrite(fe, DN_IQTNBUF_AMP, 1); MXL_TuneRF()
2418 status += MXL_ControlWrite(fe, DN_IQTNGNBFBIAS_BST, 0); MXL_TuneRF()
2421 status += MXL_ControlWrite(fe, DN_IQTNBUF_AMP, 1); MXL_TuneRF()
2422 status += MXL_ControlWrite(fe, DN_IQTNGNBFBIAS_BST, 0); MXL_TuneRF()
2425 status += MXL_ControlWrite(fe, DN_IQTNBUF_AMP, 1); MXL_TuneRF()
2426 status += MXL_ControlWrite(fe, DN_IQTNGNBFBIAS_BST, 0); MXL_TuneRF()
2429 status += MXL_ControlWrite(fe, DN_IQTNBUF_AMP, 1); MXL_TuneRF()
2430 status += MXL_ControlWrite(fe, DN_IQTNGNBFBIAS_BST, 0); MXL_TuneRF()
2433 status += MXL_ControlWrite(fe, DN_IQTNBUF_AMP, 1); MXL_TuneRF()
2434 status += MXL_ControlWrite(fe, DN_IQTNGNBFBIAS_BST, 0); MXL_TuneRF()
2437 status += MXL_ControlWrite(fe, DN_IQTNBUF_AMP, 1); MXL_TuneRF()
2438 status += MXL_ControlWrite(fe, DN_IQTNGNBFBIAS_BST, 0); MXL_TuneRF()
2441 status += MXL_ControlWrite(fe, DN_IQTNBUF_AMP, 1); MXL_TuneRF()
2442 status += MXL_ControlWrite(fe, DN_IQTNGNBFBIAS_BST, 0); MXL_TuneRF()
2445 status += MXL_ControlWrite(fe, DN_IQTNBUF_AMP, 1); MXL_TuneRF()
2446 status += MXL_ControlWrite(fe, DN_IQTNGNBFBIAS_BST, 0); MXL_TuneRF()
2449 status += MXL_ControlWrite(fe, DN_IQTNBUF_AMP, 1); MXL_TuneRF()
2450 status += MXL_ControlWrite(fe, DN_IQTNGNBFBIAS_BST, 0); MXL_TuneRF()
2453 status += MXL_ControlWrite(fe, DN_IQTNBUF_AMP, 10); MXL_TuneRF()
2454 status += MXL_ControlWrite(fe, DN_IQTNGNBFBIAS_BST, 1); MXL_TuneRF()
2457 status += MXL_ControlWrite(fe, DN_IQTNBUF_AMP, 10); MXL_TuneRF()
2458 status += MXL_ControlWrite(fe, DN_IQTNGNBFBIAS_BST, 1); MXL_TuneRF()
2477 status += MXL_ControlWrite(fe, RFSYN_EN_OUTMUX, 1); MXL_TuneRF()
2478 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_OUT, 0); MXL_TuneRF()
2479 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 0); MXL_TuneRF()
2480 status += MXL_ControlWrite(fe, RFSYN_SEL_DIVM, 0); MXL_TuneRF()
2481 status += MXL_ControlWrite(fe, RFSYN_RF_DIV_BIAS, 1); MXL_TuneRF()
2482 status += MXL_ControlWrite(fe, DN_SEL_FREQ, 1); MXL_TuneRF()
2490 status += MXL_ControlWrite(fe, RFSYN_EN_OUTMUX, 1); MXL_TuneRF()
2491 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_OUT, 0); MXL_TuneRF()
2492 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 1); MXL_TuneRF()
2493 status += MXL_ControlWrite(fe, RFSYN_SEL_DIVM, 0); MXL_TuneRF()
2494 status += MXL_ControlWrite(fe, RFSYN_RF_DIV_BIAS, 1); MXL_TuneRF()
2495 status += MXL_ControlWrite(fe, DN_SEL_FREQ, 1); MXL_TuneRF()
2503 status += MXL_ControlWrite(fe, RFSYN_EN_OUTMUX, 0); MXL_TuneRF()
2504 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_OUT, 1); MXL_TuneRF()
2505 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 0); MXL_TuneRF()
2506 status += MXL_ControlWrite(fe, RFSYN_SEL_DIVM, 0); MXL_TuneRF()
2507 status += MXL_ControlWrite(fe, RFSYN_RF_DIV_BIAS, 1); MXL_TuneRF()
2508 status += MXL_ControlWrite(fe, DN_SEL_FREQ, 1); MXL_TuneRF()
2516 status += MXL_ControlWrite(fe, RFSYN_EN_OUTMUX, 0); MXL_TuneRF()
2517 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_OUT, 1); MXL_TuneRF()
2518 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 1); MXL_TuneRF()
2519 status += MXL_ControlWrite(fe, RFSYN_SEL_DIVM, 0); MXL_TuneRF()
2520 status += MXL_ControlWrite(fe, RFSYN_RF_DIV_BIAS, 1); MXL_TuneRF()
2521 status += MXL_ControlWrite(fe, DN_SEL_FREQ, 1); MXL_TuneRF()
2529 status += MXL_ControlWrite(fe, RFSYN_EN_OUTMUX, 0); MXL_TuneRF()
2530 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_OUT, 1); MXL_TuneRF()
2531 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 0); MXL_TuneRF()
2532 status += MXL_ControlWrite(fe, RFSYN_SEL_DIVM, 0); MXL_TuneRF()
2533 status += MXL_ControlWrite(fe, RFSYN_RF_DIV_BIAS, 1); MXL_TuneRF()
2534 status += MXL_ControlWrite(fe, DN_SEL_FREQ, 2); MXL_TuneRF()
2542 status += MXL_ControlWrite(fe, RFSYN_EN_OUTMUX, 0); MXL_TuneRF()
2543 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_OUT, 1); MXL_TuneRF()
2544 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 1); MXL_TuneRF()
2545 status += MXL_ControlWrite(fe, RFSYN_SEL_DIVM, 0); MXL_TuneRF()
2546 status += MXL_ControlWrite(fe, RFSYN_RF_DIV_BIAS, 1); MXL_TuneRF()
2547 status += MXL_ControlWrite(fe, DN_SEL_FREQ, 2); MXL_TuneRF()
2555 status += MXL_ControlWrite(fe, RFSYN_EN_OUTMUX, 0); MXL_TuneRF()
2556 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_OUT, 1); MXL_TuneRF()
2557 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 0); MXL_TuneRF()
2558 status += MXL_ControlWrite(fe, RFSYN_SEL_DIVM, 0); MXL_TuneRF()
2559 status += MXL_ControlWrite(fe, RFSYN_RF_DIV_BIAS, 1); MXL_TuneRF()
2560 status += MXL_ControlWrite(fe, DN_SEL_FREQ, 4); MXL_TuneRF()
2568 status += MXL_ControlWrite(fe, RFSYN_EN_OUTMUX, 1); MXL_TuneRF()
2569 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_OUT, 0); MXL_TuneRF()
2570 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 0); MXL_TuneRF()
2571 status += MXL_ControlWrite(fe, RFSYN_SEL_DIVM, 0); MXL_TuneRF()
2572 status += MXL_ControlWrite(fe, RFSYN_RF_DIV_BIAS, 1); MXL_TuneRF()
2573 status += MXL_ControlWrite(fe, DN_SEL_FREQ, 0); MXL_TuneRF()
2581 status += MXL_ControlWrite(fe, RFSYN_EN_OUTMUX, 1); MXL_TuneRF()
2582 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_OUT, 0); MXL_TuneRF()
2583 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 1); MXL_TuneRF()
2584 status += MXL_ControlWrite(fe, RFSYN_SEL_DIVM, 0); MXL_TuneRF()
2585 status += MXL_ControlWrite(fe, RFSYN_RF_DIV_BIAS, 2); MXL_TuneRF()
2586 status += MXL_ControlWrite(fe, DN_SEL_FREQ, 0); MXL_TuneRF()
2594 status += MXL_ControlWrite(fe, RFSYN_EN_OUTMUX, 0); MXL_TuneRF()
2595 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_OUT, 1); MXL_TuneRF()
2596 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 0); MXL_TuneRF()
2597 status += MXL_ControlWrite(fe, RFSYN_SEL_DIVM, 1); MXL_TuneRF()
2598 status += MXL_ControlWrite(fe, RFSYN_RF_DIV_BIAS, 1); MXL_TuneRF()
2599 status += MXL_ControlWrite(fe, DN_SEL_FREQ, 0); MXL_TuneRF()
2607 status += MXL_ControlWrite(fe, RFSYN_EN_OUTMUX, 0); MXL_TuneRF()
2608 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_OUT, 1); MXL_TuneRF()
2609 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 1); MXL_TuneRF()
2610 status += MXL_ControlWrite(fe, RFSYN_SEL_DIVM, 1); MXL_TuneRF()
2611 status += MXL_ControlWrite(fe, RFSYN_RF_DIV_BIAS, 1); MXL_TuneRF()
2612 status += MXL_ControlWrite(fe, DN_SEL_FREQ, 0); MXL_TuneRF()
2625 status += MXL_ControlWrite(fe, RFSYN_VCO_BIAS, E3); MXL_TuneRF()
2636 status += MXL_ControlWrite(fe, CHCAL_FRAC_MOD_RF, E5); MXL_TuneRF()
2640 status += MXL_ControlWrite(fe, RFSYN_LPF_R, E5A); MXL_TuneRF()
2643 status += MXL_ControlWrite(fe, CHCAL_EN_INT_RF, ((E5 == 0) ? 1 : 0)); MXL_TuneRF()
2645 * status += MXL_ControlWrite(fe, CHCAL_EN_INT_RF, 1); MXL_TuneRF()
2647 * status += MXL_ControlWrite(fe, CHCAL_FRAC_MOD_RF, E5); MXL_TuneRF()
2665 status += MXL_ControlWrite(fe, TG_LO_DIVVAL, 0x6); MXL_TuneRF()
2666 status += MXL_ControlWrite(fe, TG_LO_SELVAL, 0x0); MXL_TuneRF()
2674 status += MXL_ControlWrite(fe, TG_LO_DIVVAL, 0x1); MXL_TuneRF()
2675 status += MXL_ControlWrite(fe, TG_LO_SELVAL, 0x0); MXL_TuneRF()
2683 status += MXL_ControlWrite(fe, TG_LO_DIVVAL, 0xC); MXL_TuneRF()
2684 status += MXL_ControlWrite(fe, TG_LO_SELVAL, 0x2); MXL_TuneRF()
2692 status += MXL_ControlWrite(fe, TG_LO_DIVVAL, 0x8); MXL_TuneRF()
2693 status += MXL_ControlWrite(fe, TG_LO_SELVAL, 0x2); MXL_TuneRF()
2701 status += MXL_ControlWrite(fe, TG_LO_DIVVAL, 0x0); MXL_TuneRF()
2702 status += MXL_ControlWrite(fe, TG_LO_SELVAL, 0x2); MXL_TuneRF()
2710 status += MXL_ControlWrite(fe, TG_LO_DIVVAL, 0x8); MXL_TuneRF()
2711 status += MXL_ControlWrite(fe, TG_LO_SELVAL, 0x3); MXL_TuneRF()
2719 status += MXL_ControlWrite(fe, TG_LO_DIVVAL, 0x0); MXL_TuneRF()
2720 status += MXL_ControlWrite(fe, TG_LO_SELVAL, 0x3); MXL_TuneRF()
2728 status += MXL_ControlWrite(fe, TG_LO_DIVVAL, 0x8); MXL_TuneRF()
2729 status += MXL_ControlWrite(fe, TG_LO_SELVAL, 0x7); MXL_TuneRF()
2737 status += MXL_ControlWrite(fe, TG_LO_DIVVAL, 0x0); MXL_TuneRF()
2738 status += MXL_ControlWrite(fe, TG_LO_SELVAL, 0x7); MXL_TuneRF()
2749 status += MXL_ControlWrite(fe, TG_DIV_VAL, tg_divval); MXL_TuneRF()
2752 status += MXL_ControlWrite(fe, TG_DIV_VAL, tg_divval + 1); MXL_TuneRF()
2785 status += MXL_ControlWrite(fe, TG_VCO_BIAS , tg_lo); MXL_TuneRF()
2790 status += MXL_ControlWrite(fe, RFSYN_CHP_GAIN, MXL_TuneRF()
2793 status += MXL_ControlWrite(fe, RFSYN_CHP_GAIN, 3); MXL_TuneRF()
2795 status += MXL_ControlWrite(fe, RFSYN_CHP_GAIN, 2); MXL_TuneRF()
2801 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 0); MXL_TuneRF()
2802 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
2803 status += MXL_SetGPIO(fe, 3, 1); /* Bank1 Off */ MXL_TuneRF()
2804 status += MXL_SetGPIO(fe, 1, 1); /* Bank2 Off */ MXL_TuneRF()
2805 status += MXL_SetGPIO(fe, 4, 1); /* Bank3 Off */ MXL_TuneRF()
2809 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 1); MXL_TuneRF()
2810 status += MXL_ControlWrite(fe, DAC_DIN_A, 0); MXL_TuneRF()
2813 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 0); MXL_TuneRF()
2814 status += MXL_ControlWrite(fe, DAC_DIN_B, 0); MXL_TuneRF()
2815 status += MXL_SetGPIO(fe, 3, 0); MXL_TuneRF()
2816 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
2817 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
2820 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 0); MXL_TuneRF()
2821 status += MXL_ControlWrite(fe, DAC_DIN_B, 0); MXL_TuneRF()
2822 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
2823 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
2824 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
2827 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 0); MXL_TuneRF()
2828 status += MXL_ControlWrite(fe, DAC_DIN_B, 0); MXL_TuneRF()
2829 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
2830 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
2831 status += MXL_SetGPIO(fe, 4, 0); MXL_TuneRF()
2834 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 0); MXL_TuneRF()
2835 status += MXL_ControlWrite(fe, DAC_DIN_B, 0); MXL_TuneRF()
2836 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
2837 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
2838 status += MXL_SetGPIO(fe, 4, 0); MXL_TuneRF()
2841 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 1); MXL_TuneRF()
2842 status += MXL_ControlWrite(fe, DAC_DIN_B, 29); MXL_TuneRF()
2843 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
2844 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
2845 status += MXL_SetGPIO(fe, 4, 0); MXL_TuneRF()
2848 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 1); MXL_TuneRF()
2849 status += MXL_ControlWrite(fe, DAC_DIN_B, 0); MXL_TuneRF()
2850 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
2851 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
2852 status += MXL_SetGPIO(fe, 4, 0); MXL_TuneRF()
2855 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 1); MXL_TuneRF()
2856 status += MXL_ControlWrite(fe, DAC_DIN_B, 16); MXL_TuneRF()
2857 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
2858 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
2859 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
2862 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 1); MXL_TuneRF()
2863 status += MXL_ControlWrite(fe, DAC_DIN_B, 7); MXL_TuneRF()
2864 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
2865 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
2866 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
2869 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 1); MXL_TuneRF()
2870 status += MXL_ControlWrite(fe, DAC_DIN_B, 0); MXL_TuneRF()
2871 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
2872 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
2873 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
2880 status += MXL_ControlWrite(fe, DAC_DIN_A, 0); MXL_TuneRF()
2883 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 0); MXL_TuneRF()
2884 status += MXL_SetGPIO(fe, 4, 0); MXL_TuneRF()
2885 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
2886 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
2889 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 0); MXL_TuneRF()
2890 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
2891 status += MXL_SetGPIO(fe, 3, 0); MXL_TuneRF()
2892 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
2895 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 0); MXL_TuneRF()
2896 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
2897 status += MXL_SetGPIO(fe, 3, 0); MXL_TuneRF()
2898 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
2901 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 0); MXL_TuneRF()
2902 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
2903 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
2904 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
2907 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 1); MXL_TuneRF()
2908 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
2909 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
2910 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
2913 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 1); MXL_TuneRF()
2914 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
2915 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
2916 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
2919 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 1); MXL_TuneRF()
2920 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
2921 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
2922 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
2925 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 1); MXL_TuneRF()
2926 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
2927 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
2928 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
2931 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 1); MXL_TuneRF()
2932 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
2933 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
2934 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
2940 status += MXL_ControlWrite(fe, DAC_DIN_B, 0); MXL_TuneRF()
2943 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
2944 status += MXL_SetGPIO(fe, 4, 0); MXL_TuneRF()
2945 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
2946 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
2949 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
2950 status += MXL_SetGPIO(fe, 4, 0); MXL_TuneRF()
2951 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
2952 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
2955 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
2956 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
2957 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
2958 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
2961 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
2962 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
2963 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
2964 status += MXL_SetGPIO(fe, 3, 0); MXL_TuneRF()
2967 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
2968 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
2969 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
2970 status += MXL_SetGPIO(fe, 3, 0); MXL_TuneRF()
2973 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 1); MXL_TuneRF()
2974 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
2975 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
2976 status += MXL_SetGPIO(fe, 3, 0); MXL_TuneRF()
2979 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 1); MXL_TuneRF()
2980 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
2981 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
2982 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
2989 status += MXL_ControlWrite(fe, DAC_DIN_A, 0); MXL_TuneRF()
2995 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
2996 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
2997 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
2998 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 0); MXL_TuneRF()
2999 status += MXL_ControlWrite(fe, AGC_IF, 10); MXL_TuneRF()
3005 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 0); MXL_TuneRF()
3006 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3007 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3008 status += MXL_SetGPIO(fe, 3, 0); MXL_TuneRF()
3012 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 0); MXL_TuneRF()
3013 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3014 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
3015 status += MXL_SetGPIO(fe, 3, 0); MXL_TuneRF()
3019 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 0); MXL_TuneRF()
3020 status += MXL_SetGPIO(fe, 4, 0); MXL_TuneRF()
3021 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3022 status += MXL_SetGPIO(fe, 3, 0); MXL_TuneRF()
3026 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 0); MXL_TuneRF()
3027 status += MXL_SetGPIO(fe, 4, 0); MXL_TuneRF()
3028 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
3029 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3033 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 1); MXL_TuneRF()
3034 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3035 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
3036 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3040 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 1); MXL_TuneRF()
3041 status += MXL_SetGPIO(fe, 4, 0); MXL_TuneRF()
3042 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
3043 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3047 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 0); MXL_TuneRF()
3048 status += MXL_SetGPIO(fe, 4, 0); MXL_TuneRF()
3049 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3050 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3054 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 1); MXL_TuneRF()
3055 status += MXL_SetGPIO(fe, 4, 0); MXL_TuneRF()
3056 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3057 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3061 status += MXL_ControlWrite(fe, DAC_A_ENABLE, 1); MXL_TuneRF()
3062 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3063 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3064 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3071 status += MXL_ControlWrite(fe, DAC_DIN_B, 0); MXL_TuneRF()
3074 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3075 status += MXL_SetGPIO(fe, 4, 0); MXL_TuneRF()
3076 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3077 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3080 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3081 status += MXL_SetGPIO(fe, 4, 0); MXL_TuneRF()
3082 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
3083 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3086 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3087 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3088 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
3089 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3092 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3093 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3094 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
3095 status += MXL_SetGPIO(fe, 3, 0); MXL_TuneRF()
3098 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3099 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3100 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3101 status += MXL_SetGPIO(fe, 3, 0); MXL_TuneRF()
3104 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 1); MXL_TuneRF()
3105 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3106 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3107 status += MXL_SetGPIO(fe, 3, 0); MXL_TuneRF()
3110 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 1); MXL_TuneRF()
3111 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3112 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3113 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3120 status += MXL_ControlWrite(fe, DAC_DIN_B, 0); MXL_TuneRF()
3123 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3124 status += MXL_SetGPIO(fe, 4, 0); MXL_TuneRF()
3125 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3126 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3129 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3130 status += MXL_SetGPIO(fe, 4, 0); MXL_TuneRF()
3131 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
3132 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3135 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3136 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3137 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
3138 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3141 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3142 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3143 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
3144 status += MXL_SetGPIO(fe, 3, 0); MXL_TuneRF()
3147 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3148 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3149 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3150 status += MXL_SetGPIO(fe, 3, 0); MXL_TuneRF()
3153 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 1); MXL_TuneRF()
3154 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3155 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3156 status += MXL_SetGPIO(fe, 3, 0); MXL_TuneRF()
3159 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 1); MXL_TuneRF()
3160 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3161 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3162 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3169 status += MXL_ControlWrite(fe, DAC_DIN_B, 0); MXL_TuneRF()
3172 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3173 status += MXL_SetGPIO(fe, 4, 0); MXL_TuneRF()
3174 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3175 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3178 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3179 status += MXL_SetGPIO(fe, 4, 0); MXL_TuneRF()
3180 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
3181 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3184 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3185 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3186 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
3187 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3190 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3191 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3192 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
3193 status += MXL_SetGPIO(fe, 3, 0); MXL_TuneRF()
3196 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3197 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3198 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3199 status += MXL_SetGPIO(fe, 3, 0); MXL_TuneRF()
3202 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 1); MXL_TuneRF()
3203 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3204 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3205 status += MXL_SetGPIO(fe, 3, 0); MXL_TuneRF()
3208 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 1); MXL_TuneRF()
3209 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3210 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3211 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3218 status += MXL_ControlWrite(fe, DAC_DIN_B, 0); MXL_TuneRF()
3222 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3223 status += MXL_SetGPIO(fe, 4, 0); MXL_TuneRF()
3224 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3225 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3228 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3229 status += MXL_SetGPIO(fe, 4, 0); MXL_TuneRF()
3230 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
3231 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3234 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3235 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3236 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
3237 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3240 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3241 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3242 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
3243 status += MXL_SetGPIO(fe, 3, 0); MXL_TuneRF()
3246 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 1); MXL_TuneRF()
3247 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3248 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
3249 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3252 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3253 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3254 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3255 status += MXL_SetGPIO(fe, 3, 0); MXL_TuneRF()
3258 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 1); MXL_TuneRF()
3259 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3260 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3261 status += MXL_SetGPIO(fe, 3, 0); MXL_TuneRF()
3264 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 1); MXL_TuneRF()
3265 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3266 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3267 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3274 status += MXL_ControlWrite(fe, DAC_DIN_B, 0); MXL_TuneRF()
3281 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3282 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3283 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3284 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3287 status += MXL_ControlWrite(fe, SEQ_EXTSYNTHCALIF, 1); MXL_TuneRF()
3288 status += MXL_ControlWrite(fe, SEQ_EXTDCCAL, 1); MXL_TuneRF()
3289 status += MXL_ControlWrite(fe, AGC_EN_RSSI, 1); MXL_TuneRF()
3290 status += MXL_ControlWrite(fe, RFA_ENCLKRFAGC, 1); MXL_TuneRF()
3293 status += MXL_ControlWrite(fe, RFA_RSSI_REFH, 5); MXL_TuneRF()
3294 status += MXL_ControlWrite(fe, RFA_RSSI_REF, 3); MXL_TuneRF()
3295 status += MXL_ControlWrite(fe, RFA_RSSI_REFL, 2); MXL_TuneRF()
3299 status += MXL_ControlWrite(fe, RFSYN_CHP_GAIN, 3); MXL_TuneRF()
3304 status += MXL_ControlWrite(fe, AGC_EN_RSSI, 0); MXL_TuneRF()
3307 status += MXL_ControlWrite(fe, RFSYN_CHP_GAIN, 5); MXL_TuneRF()
3312 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3313 status += MXL_SetGPIO(fe, 4, 0); MXL_TuneRF()
3314 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3315 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3318 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3319 status += MXL_SetGPIO(fe, 4, 0); MXL_TuneRF()
3320 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
3321 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3324 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3325 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3326 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
3327 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3330 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3331 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3332 status += MXL_SetGPIO(fe, 1, 0); MXL_TuneRF()
3333 status += MXL_SetGPIO(fe, 3, 0); MXL_TuneRF()
3336 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 0); MXL_TuneRF()
3337 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3338 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3339 status += MXL_SetGPIO(fe, 3, 0); MXL_TuneRF()
3342 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 1); MXL_TuneRF()
3343 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3344 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3345 status += MXL_SetGPIO(fe, 3, 0); MXL_TuneRF()
3348 status += MXL_ControlWrite(fe, DAC_B_ENABLE, 1); MXL_TuneRF()
3349 status += MXL_SetGPIO(fe, 4, 1); MXL_TuneRF()
3350 status += MXL_SetGPIO(fe, 1, 1); MXL_TuneRF()
3351 status += MXL_SetGPIO(fe, 3, 1); MXL_TuneRF()
3355 return status ; MXL_TuneRF()
3360 u16 status = 0; MXL_SetGPIO() local
3363 status += MXL_ControlWrite(fe, GPIO_1B, GPIO_Val ? 0 : 1); MXL_SetGPIO()
3369 status += MXL_ControlWrite(fe, GPIO_3, 0); MXL_SetGPIO()
3370 status += MXL_ControlWrite(fe, GPIO_3B, 0); MXL_SetGPIO()
3373 status += MXL_ControlWrite(fe, GPIO_3, 1); MXL_SetGPIO()
3374 status += MXL_ControlWrite(fe, GPIO_3B, 1); MXL_SetGPIO()
3377 status += MXL_ControlWrite(fe, GPIO_3, 0); MXL_SetGPIO()
3378 status += MXL_ControlWrite(fe, GPIO_3B, 1); MXL_SetGPIO()
3383 status += MXL_ControlWrite(fe, GPIO_4, 0); MXL_SetGPIO()
3384 status += MXL_ControlWrite(fe, GPIO_4B, 0); MXL_SetGPIO()
3387 status += MXL_ControlWrite(fe, GPIO_4, 1); MXL_SetGPIO()
3388 status += MXL_ControlWrite(fe, GPIO_4B, 1); MXL_SetGPIO()
3391 status += MXL_ControlWrite(fe, GPIO_4, 0); MXL_SetGPIO()
3392 status += MXL_ControlWrite(fe, GPIO_4B, 1); MXL_SetGPIO()
3396 return status; MXL_SetGPIO()
3401 u16 status = 0; MXL_ControlWrite() local
3405 status += MXL_ControlWrite_Group(fe, ControlNum, value, 1); MXL_ControlWrite()
3407 status += MXL_ControlWrite_Group(fe, ControlNum, value, 2); MXL_ControlWrite()
3410 status += MXL_ControlWrite_Group(fe, ControlNum, value, 3); MXL_ControlWrite()
3412 return status; MXL_ControlWrite()
3593 u16 status = 0; MXL_GetInitRegister() local
3603 status += MXL_BlockInit(fe); MXL_GetInitRegister()
3607 status += MXL_RegRead(fe, RegNum[i], &RegVal[i]); MXL_GetInitRegister()
3610 return status; MXL_GetInitRegister()
3616 u16 status = 0; MXL_GetCHRegister() local
3637 status += MXL_RegRead(fe, RegNum[i], &RegVal[i]); MXL_GetCHRegister()
3640 return status; MXL_GetCHRegister()
3646 u16 status = 0; MXL_GetCHRegister_ZeroIF() local
3655 status += MXL_RegRead(fe, RegNum[i], &RegVal[i]); MXL_GetCHRegister_ZeroIF()
3658 return status; MXL_GetCHRegister_ZeroIF()
3679 u16 status = 0 ; MXL_VCORange_Test() local
3682 status += MXL_ControlWrite(fe, RFSYN_EN_DIV, 1); MXL_VCORange_Test()
3683 status += MXL_ControlWrite(fe, RFSYN_EN_OUTMUX, 0); MXL_VCORange_Test()
3684 status += MXL_ControlWrite(fe, RFSYN_SEL_DIVM, 0); MXL_VCORange_Test()
3685 status += MXL_ControlWrite(fe, RFSYN_DIVM, 1); MXL_VCORange_Test()
3686 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_OUT, 1); MXL_VCORange_Test()
3687 status += MXL_ControlWrite(fe, RFSYN_RF_DIV_BIAS, 1); MXL_VCORange_Test()
3688 status += MXL_ControlWrite(fe, DN_SEL_FREQ, 0); MXL_VCORange_Test()
3691 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 1); MXL_VCORange_Test()
3692 status += MXL_ControlWrite(fe, RFSYN_VCO_BIAS, 8); MXL_VCORange_Test()
3693 status += MXL_ControlWrite(fe, CHCAL_INT_MOD_RF, 56); MXL_VCORange_Test()
3694 status += MXL_ControlWrite(fe, MXL_VCORange_Test()
3699 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 1); MXL_VCORange_Test()
3700 status += MXL_ControlWrite(fe, RFSYN_VCO_BIAS, 8); MXL_VCORange_Test()
3701 status += MXL_ControlWrite(fe, CHCAL_INT_MOD_RF, 56); MXL_VCORange_Test()
3702 status += MXL_ControlWrite(fe, MXL_VCORange_Test()
3706 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 1); MXL_VCORange_Test()
3707 status += MXL_ControlWrite(fe, RFSYN_VCO_BIAS, 8); MXL_VCORange_Test()
3708 status += MXL_ControlWrite(fe, CHCAL_INT_MOD_RF, 56); MXL_VCORange_Test()
3709 status += MXL_ControlWrite(fe, MXL_VCORange_Test()
3715 status += MXL_ControlWrite(fe, RFSYN_EN_DIV, 1); MXL_VCORange_Test()
3716 status += MXL_ControlWrite(fe, RFSYN_EN_OUTMUX, 0); MXL_VCORange_Test()
3717 status += MXL_ControlWrite(fe, RFSYN_SEL_DIVM, 0); MXL_VCORange_Test()
3718 status += MXL_ControlWrite(fe, RFSYN_DIVM, 1); MXL_VCORange_Test()
3719 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_OUT, 1); MXL_VCORange_Test()
3720 status += MXL_ControlWrite(fe, RFSYN_RF_DIV_BIAS, 1); MXL_VCORange_Test()
3721 status += MXL_ControlWrite(fe, DN_SEL_FREQ, 0); MXL_VCORange_Test()
3722 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 1); MXL_VCORange_Test()
3723 status += MXL_ControlWrite(fe, RFSYN_VCO_BIAS, 40); MXL_VCORange_Test()
3724 status += MXL_ControlWrite(fe, CHCAL_INT_MOD_RF, 41); MXL_VCORange_Test()
3727 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 1); MXL_VCORange_Test()
3728 status += MXL_ControlWrite(fe, RFSYN_VCO_BIAS, 40); MXL_VCORange_Test()
3729 status += MXL_ControlWrite(fe, CHCAL_INT_MOD_RF, 42); MXL_VCORange_Test()
3730 status += MXL_ControlWrite(fe, MXL_VCORange_Test()
3735 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 1); MXL_VCORange_Test()
3736 status += MXL_ControlWrite(fe, RFSYN_VCO_BIAS, 40); MXL_VCORange_Test()
3737 status += MXL_ControlWrite(fe, CHCAL_INT_MOD_RF, 42); MXL_VCORange_Test()
3738 status += MXL_ControlWrite(fe, MXL_VCORange_Test()
3742 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 1); MXL_VCORange_Test()
3743 status += MXL_ControlWrite(fe, RFSYN_VCO_BIAS, 40); MXL_VCORange_Test()
3744 status += MXL_ControlWrite(fe, CHCAL_INT_MOD_RF, 41); MXL_VCORange_Test()
3745 status += MXL_ControlWrite(fe, MXL_VCORange_Test()
3751 status += MXL_ControlWrite(fe, RFSYN_EN_DIV, 1); MXL_VCORange_Test()
3752 status += MXL_ControlWrite(fe, RFSYN_EN_OUTMUX, 0); MXL_VCORange_Test()
3753 status += MXL_ControlWrite(fe, RFSYN_SEL_DIVM, 0); MXL_VCORange_Test()
3754 status += MXL_ControlWrite(fe, RFSYN_DIVM, 1); MXL_VCORange_Test()
3755 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_OUT, 1); MXL_VCORange_Test()
3756 status += MXL_ControlWrite(fe, RFSYN_RF_DIV_BIAS, 1); MXL_VCORange_Test()
3757 status += MXL_ControlWrite(fe, DN_SEL_FREQ, 0); MXL_VCORange_Test()
3758 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 0); MXL_VCORange_Test()
3759 status += MXL_ControlWrite(fe, RFSYN_VCO_BIAS, 8); MXL_VCORange_Test()
3760 status += MXL_ControlWrite(fe, CHCAL_INT_MOD_RF, 42); MXL_VCORange_Test()
3763 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 0); MXL_VCORange_Test()
3764 status += MXL_ControlWrite(fe, RFSYN_VCO_BIAS, 8); MXL_VCORange_Test()
3765 status += MXL_ControlWrite(fe, CHCAL_INT_MOD_RF, 44); MXL_VCORange_Test()
3766 status += MXL_ControlWrite(fe, MXL_VCORange_Test()
3771 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 0); MXL_VCORange_Test()
3772 status += MXL_ControlWrite(fe, RFSYN_VCO_BIAS, 8); MXL_VCORange_Test()
3773 status += MXL_ControlWrite(fe, CHCAL_INT_MOD_RF, 44); MXL_VCORange_Test()
3774 status += MXL_ControlWrite(fe, MXL_VCORange_Test()
3778 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 0); MXL_VCORange_Test()
3779 status += MXL_ControlWrite(fe, RFSYN_VCO_BIAS, 8); MXL_VCORange_Test()
3780 status += MXL_ControlWrite(fe, CHCAL_INT_MOD_RF, 42); MXL_VCORange_Test()
3781 status += MXL_ControlWrite(fe, MXL_VCORange_Test()
3787 status += MXL_ControlWrite(fe, RFSYN_EN_DIV, 1); MXL_VCORange_Test()
3788 status += MXL_ControlWrite(fe, RFSYN_EN_OUTMUX, 0); MXL_VCORange_Test()
3789 status += MXL_ControlWrite(fe, RFSYN_SEL_DIVM, 0); MXL_VCORange_Test()
3790 status += MXL_ControlWrite(fe, RFSYN_DIVM, 1); MXL_VCORange_Test()
3791 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_OUT, 1); MXL_VCORange_Test()
3792 status += MXL_ControlWrite(fe, RFSYN_RF_DIV_BIAS, 1); MXL_VCORange_Test()
3793 status += MXL_ControlWrite(fe, DN_SEL_FREQ, 0); MXL_VCORange_Test()
3794 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 0); MXL_VCORange_Test()
3795 status += MXL_ControlWrite(fe, RFSYN_VCO_BIAS, 40); MXL_VCORange_Test()
3796 status += MXL_ControlWrite(fe, CHCAL_INT_MOD_RF, 27); MXL_VCORange_Test()
3799 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 0); MXL_VCORange_Test()
3800 status += MXL_ControlWrite(fe, RFSYN_VCO_BIAS, 40); MXL_VCORange_Test()
3801 status += MXL_ControlWrite(fe, CHCAL_INT_MOD_RF, 27); MXL_VCORange_Test()
3802 status += MXL_ControlWrite(fe, MXL_VCORange_Test()
3807 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 0); MXL_VCORange_Test()
3808 status += MXL_ControlWrite(fe, RFSYN_VCO_BIAS, 40); MXL_VCORange_Test()
3809 status += MXL_ControlWrite(fe, CHCAL_INT_MOD_RF, 27); MXL_VCORange_Test()
3810 status += MXL_ControlWrite(fe, MXL_VCORange_Test()
3814 status += MXL_ControlWrite(fe, RFSYN_SEL_VCO_HI, 0); MXL_VCORange_Test()
3815 status += MXL_ControlWrite(fe, RFSYN_VCO_BIAS, 40); MXL_VCORange_Test()
3816 status += MXL_ControlWrite(fe, CHCAL_INT_MOD_RF, 27); MXL_VCORange_Test()
3817 status += MXL_ControlWrite(fe, MXL_VCORange_Test()
3822 return status; MXL_VCORange_Test()
3828 u16 status = 0; MXL_Hystersis_Test() local
3831 status += MXL_ControlWrite(fe, DN_BYPASS_AGC_I2C, 1); MXL_Hystersis_Test()
3833 return status; MXL_Hystersis_Test()
/linux-4.4.14/drivers/acpi/acpica/
H A Dutxfinit.c74 acpi_status status; acpi_initialize_subsystem() local
83 status = acpi_os_initialize(); acpi_initialize_subsystem()
84 if (ACPI_FAILURE(status)) { acpi_initialize_subsystem()
85 ACPI_EXCEPTION((AE_INFO, status, "During OSL initialization")); acpi_initialize_subsystem()
86 return_ACPI_STATUS(status); acpi_initialize_subsystem()
91 status = acpi_ut_init_globals(); acpi_initialize_subsystem()
92 if (ACPI_FAILURE(status)) { acpi_initialize_subsystem()
93 ACPI_EXCEPTION((AE_INFO, status, acpi_initialize_subsystem()
95 return_ACPI_STATUS(status); acpi_initialize_subsystem()
100 status = acpi_ut_mutex_initialize(); acpi_initialize_subsystem()
101 if (ACPI_FAILURE(status)) { acpi_initialize_subsystem()
102 ACPI_EXCEPTION((AE_INFO, status, acpi_initialize_subsystem()
104 return_ACPI_STATUS(status); acpi_initialize_subsystem()
111 status = acpi_ns_root_initialize(); acpi_initialize_subsystem()
112 if (ACPI_FAILURE(status)) { acpi_initialize_subsystem()
113 ACPI_EXCEPTION((AE_INFO, status, acpi_initialize_subsystem()
115 return_ACPI_STATUS(status); acpi_initialize_subsystem()
120 status = acpi_ut_initialize_interfaces(); acpi_initialize_subsystem()
121 if (ACPI_FAILURE(status)) { acpi_initialize_subsystem()
122 ACPI_EXCEPTION((AE_INFO, status, acpi_initialize_subsystem()
124 return_ACPI_STATUS(status); acpi_initialize_subsystem()
146 acpi_status status = AE_OK; ACPI_EXPORT_SYMBOL_INIT() local
160 status = acpi_enable(); ACPI_EXPORT_SYMBOL_INIT()
161 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL_INIT()
163 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL_INIT()
172 status = acpi_tb_initialize_facs(); ACPI_EXPORT_SYMBOL_INIT()
173 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL_INIT()
175 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL_INIT()
189 status = acpi_ev_install_region_handlers(); ACPI_EXPORT_SYMBOL_INIT()
190 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL_INIT()
191 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL_INIT()
213 status = acpi_ev_initialize_events(); ACPI_EXPORT_SYMBOL_INIT()
214 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL_INIT()
215 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL_INIT()
227 status = acpi_ev_install_xrupt_handlers(); ACPI_EXPORT_SYMBOL_INIT()
228 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL_INIT()
229 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL_INIT()
234 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL_INIT()
253 acpi_status status = AE_OK; ACPI_EXPORT_SYMBOL_INIT() local
268 status = acpi_ev_initialize_op_regions(); ACPI_EXPORT_SYMBOL_INIT()
269 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL_INIT()
270 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL_INIT()
300 status = acpi_ns_initialize_objects(); ACPI_EXPORT_SYMBOL_INIT()
301 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL_INIT()
302 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL_INIT()
314 status = acpi_ns_initialize_devices(); ACPI_EXPORT_SYMBOL_INIT()
315 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL_INIT()
316 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL_INIT()
325 status = acpi_purge_cached_objects(); ACPI_EXPORT_SYMBOL_INIT()
328 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL_INIT()
H A Dhwsleep.c72 acpi_status status; acpi_hw_legacy_sleep() local
81 /* Clear wake status */ acpi_hw_legacy_sleep()
83 status = acpi_hw_legacy_sleep()
85 if (ACPI_FAILURE(status)) { acpi_hw_legacy_sleep()
86 return_ACPI_STATUS(status); acpi_hw_legacy_sleep()
89 /* Clear all fixed and general purpose status bits */ acpi_hw_legacy_sleep()
91 status = acpi_hw_clear_acpi_status(); acpi_hw_legacy_sleep()
92 if (ACPI_FAILURE(status)) { acpi_hw_legacy_sleep()
93 return_ACPI_STATUS(status); acpi_hw_legacy_sleep()
100 status = acpi_hw_disable_all_gpes(); acpi_hw_legacy_sleep()
101 if (ACPI_FAILURE(status)) { acpi_hw_legacy_sleep()
102 return_ACPI_STATUS(status); acpi_hw_legacy_sleep()
106 status = acpi_hw_enable_all_wakeup_gpes(); acpi_hw_legacy_sleep()
107 if (ACPI_FAILURE(status)) { acpi_hw_legacy_sleep()
108 return_ACPI_STATUS(status); acpi_hw_legacy_sleep()
113 status = acpi_hw_register_read(ACPI_REGISTER_PM1_CONTROL, acpi_hw_legacy_sleep()
115 if (ACPI_FAILURE(status)) { acpi_hw_legacy_sleep()
116 return_ACPI_STATUS(status); acpi_hw_legacy_sleep()
141 status = acpi_hw_write_pm1_control(pm1a_control, pm1b_control); acpi_hw_legacy_sleep()
142 if (ACPI_FAILURE(status)) { acpi_hw_legacy_sleep()
143 return_ACPI_STATUS(status); acpi_hw_legacy_sleep()
155 status = acpi_os_prepare_sleep(sleep_state, pm1a_control, acpi_hw_legacy_sleep()
157 if (ACPI_SKIP(status)) acpi_hw_legacy_sleep()
159 if (ACPI_FAILURE(status)) acpi_hw_legacy_sleep()
160 return_ACPI_STATUS(status); acpi_hw_legacy_sleep()
163 status = acpi_hw_write_pm1_control(pm1a_control, pm1b_control); acpi_hw_legacy_sleep()
164 if (ACPI_FAILURE(status)) { acpi_hw_legacy_sleep()
165 return_ACPI_STATUS(status); acpi_hw_legacy_sleep()
182 status = acpi_hw_register_write(ACPI_REGISTER_PM1_CONTROL, acpi_hw_legacy_sleep()
185 if (ACPI_FAILURE(status)) { acpi_hw_legacy_sleep()
186 return_ACPI_STATUS(status); acpi_hw_legacy_sleep()
193 status = acpi_hw_legacy_sleep()
195 if (ACPI_FAILURE(status)) { acpi_hw_legacy_sleep()
196 return_ACPI_STATUS(status); acpi_hw_legacy_sleep()
220 acpi_status status; acpi_hw_legacy_wake_prep() local
233 status = acpi_get_sleep_type_data(ACPI_STATE_S0, acpi_hw_legacy_wake_prep()
236 if (ACPI_SUCCESS(status)) { acpi_hw_legacy_wake_prep()
244 status = acpi_hw_register_read(ACPI_REGISTER_PM1_CONTROL, acpi_hw_legacy_wake_prep()
246 if (ACPI_SUCCESS(status)) { acpi_hw_legacy_wake_prep()
269 return_ACPI_STATUS(status); acpi_hw_legacy_wake_prep()
287 acpi_status status; acpi_hw_legacy_wake() local
304 status = acpi_hw_disable_all_gpes(); acpi_hw_legacy_wake()
305 if (ACPI_FAILURE(status)) { acpi_hw_legacy_wake()
306 return_ACPI_STATUS(status); acpi_hw_legacy_wake()
309 status = acpi_hw_enable_all_runtime_gpes(); acpi_hw_legacy_wake()
310 if (ACPI_FAILURE(status)) { acpi_hw_legacy_wake()
311 return_ACPI_STATUS(status); acpi_hw_legacy_wake()
342 return_ACPI_STATUS(status); acpi_hw_legacy_wake()
H A Dhwgpe.c101 acpi_status status; acpi_hw_low_set_gpe() local
116 status = acpi_hw_read(&enable_mask, &gpe_register_info->enable_address); acpi_hw_low_set_gpe()
117 if (ACPI_FAILURE(status)) { acpi_hw_low_set_gpe()
118 return (status); acpi_hw_low_set_gpe()
153 status = acpi_hw_write(enable_mask, &gpe_register_info->enable_address); acpi_hw_low_set_gpe()
154 return (status); acpi_hw_low_set_gpe()
165 * DESCRIPTION: Clear the status bit for a single GPE.
172 acpi_status status; acpi_hw_clear_gpe() local
185 * Write a one to the appropriate bit in the status register to acpi_hw_clear_gpe()
190 status = acpi_hw_write(register_bit, acpi_hw_clear_gpe()
193 return (status); acpi_hw_clear_gpe()
201 * event_status - Where the GPE status is returned
205 * DESCRIPTION: Return the status of a single GPE.
217 acpi_status status; acpi_hw_get_gpe_status() local
254 status = acpi_hw_read(&in_byte, &gpe_register_info->enable_address); acpi_hw_get_gpe_status()
255 if (ACPI_FAILURE(status)) { acpi_hw_get_gpe_status()
256 return (status); acpi_hw_get_gpe_status()
263 /* GPE currently active (status bit == 1)? */ acpi_hw_get_gpe_status()
265 status = acpi_hw_read(&in_byte, &gpe_register_info->status_address); acpi_hw_get_gpe_status()
266 if (ACPI_FAILURE(status)) { acpi_hw_get_gpe_status()
267 return (status); acpi_hw_get_gpe_status()
297 acpi_status status; acpi_hw_gpe_enable_write() local
300 status = acpi_hw_write(enable_mask, &gpe_register_info->enable_address); acpi_hw_gpe_enable_write()
301 return (status); acpi_hw_gpe_enable_write()
322 acpi_status status; acpi_hw_disable_gpe_block() local
330 status = acpi_hw_disable_gpe_block()
333 if (ACPI_FAILURE(status)) { acpi_hw_disable_gpe_block()
334 return (status); acpi_hw_disable_gpe_block()
350 * DESCRIPTION: Clear status bits for all GPEs within a single GPE block
359 acpi_status status; acpi_hw_clear_gpe_block() local
365 /* Clear status on all GPEs in this register */ acpi_hw_clear_gpe_block()
367 status = acpi_hw_clear_gpe_block()
370 if (ACPI_FAILURE(status)) { acpi_hw_clear_gpe_block()
371 return (status); acpi_hw_clear_gpe_block()
398 acpi_status status; acpi_hw_enable_runtime_gpe_block() local
413 status = acpi_hw_enable_runtime_gpe_block()
416 if (ACPI_FAILURE(status)) { acpi_hw_enable_runtime_gpe_block()
417 return (status); acpi_hw_enable_runtime_gpe_block()
444 acpi_status status; acpi_hw_enable_wakeup_gpe_block() local
457 status = acpi_hw_enable_wakeup_gpe_block()
460 if (ACPI_FAILURE(status)) { acpi_hw_enable_wakeup_gpe_block()
461 return (status); acpi_hw_enable_wakeup_gpe_block()
482 acpi_status status; acpi_hw_disable_all_gpes() local
486 status = acpi_ev_walk_gpe_list(acpi_hw_disable_gpe_block, NULL); acpi_hw_disable_all_gpes()
487 status = acpi_ev_walk_gpe_list(acpi_hw_clear_gpe_block, NULL); acpi_hw_disable_all_gpes()
488 return_ACPI_STATUS(status); acpi_hw_disable_all_gpes()
505 acpi_status status; acpi_hw_enable_all_runtime_gpes() local
509 status = acpi_ev_walk_gpe_list(acpi_hw_enable_runtime_gpe_block, NULL); acpi_hw_enable_all_runtime_gpes()
510 return_ACPI_STATUS(status); acpi_hw_enable_all_runtime_gpes()
527 acpi_status status; acpi_hw_enable_all_wakeup_gpes() local
531 status = acpi_ev_walk_gpe_list(acpi_hw_enable_wakeup_gpe_block, NULL); acpi_hw_enable_all_wakeup_gpes()
532 return_ACPI_STATUS(status); acpi_hw_enable_all_wakeup_gpes()
H A Devxfevnt.c67 acpi_status status; acpi_enable() local
94 status = acpi_hw_set_mode(ACPI_SYS_MODE_ACPI); acpi_enable()
95 if (ACPI_FAILURE(status)) { acpi_enable()
98 return_ACPI_STATUS(status); acpi_enable()
132 acpi_status status = AE_OK; ACPI_EXPORT_SYMBOL() local
148 status = acpi_hw_set_mode(ACPI_SYS_MODE_LEGACY); ACPI_EXPORT_SYMBOL()
150 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
153 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
159 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
178 acpi_status status = AE_OK; ACPI_EXPORT_SYMBOL() local
193 status = ACPI_EXPORT_SYMBOL()
196 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
197 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
202 status = ACPI_EXPORT_SYMBOL()
205 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
206 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
216 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
235 acpi_status status = AE_OK; ACPI_EXPORT_SYMBOL() local
250 status = ACPI_EXPORT_SYMBOL()
253 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
254 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
257 status = ACPI_EXPORT_SYMBOL()
260 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
261 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
271 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
289 acpi_status status = AE_OK; ACPI_EXPORT_SYMBOL() local
300 * Clear the requested fixed event (By writing a one to the status ACPI_EXPORT_SYMBOL()
303 status = ACPI_EXPORT_SYMBOL()
307 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
317 * event_status - Where the current status of the event will ACPI_EXPORT_SYMBOL()
322 * DESCRIPTION: Obtains and returns the current status of the event ACPI_EXPORT_SYMBOL()
327 acpi_status status; ACPI_EXPORT_SYMBOL() local
351 status = ACPI_EXPORT_SYMBOL()
354 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
355 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
365 status = ACPI_EXPORT_SYMBOL()
368 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
369 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
H A Dhwregs.c4 * control and status registers.
159 acpi_status status; acpi_hw_read() local
165 status = acpi_hw_validate_register(reg, 32, &address); acpi_hw_read()
166 if (ACPI_FAILURE(status)) { acpi_hw_read()
167 return (status); acpi_hw_read()
179 status = acpi_os_read_memory((acpi_physical_address) acpi_hw_read()
185 status = acpi_hw_read_port((acpi_io_address) acpi_hw_read()
194 return (status); acpi_hw_read()
215 acpi_status status; acpi_hw_write() local
221 status = acpi_hw_validate_register(reg, 32, &address); acpi_hw_write()
222 if (ACPI_FAILURE(status)) { acpi_hw_write()
223 return (status); acpi_hw_write()
231 status = acpi_os_write_memory((acpi_physical_address) acpi_hw_write()
236 status = acpi_hw_write_port((acpi_io_address) acpi_hw_write()
245 return (status); acpi_hw_write()
257 * DESCRIPTION: Clears all fixed and general purpose status bits
263 acpi_status status; acpi_hw_clear_acpi_status() local
276 status = acpi_hw_register_write(ACPI_REGISTER_PM1_STATUS, acpi_hw_clear_acpi_status()
281 if (ACPI_FAILURE(status)) { acpi_hw_clear_acpi_status()
287 status = acpi_ev_walk_gpe_list(acpi_hw_clear_gpe_block, NULL); acpi_hw_clear_acpi_status()
290 return_ACPI_STATUS(status); acpi_hw_clear_acpi_status()
328 * different than than the PM1 A/B status and enable registers
337 acpi_status status; acpi_hw_write_pm1_control() local
341 status = acpi_hw_write_pm1_control()
343 if (ACPI_FAILURE(status)) { acpi_hw_write_pm1_control()
344 return_ACPI_STATUS(status); acpi_hw_write_pm1_control()
348 status = acpi_hw_write_pm1_control()
352 return_ACPI_STATUS(status); acpi_hw_write_pm1_control()
370 acpi_status status; acpi_hw_register_read() local
377 status = acpi_hw_read_multiple(&value, acpi_hw_register_read()
384 status = acpi_hw_read_multiple(&value, acpi_hw_register_read()
391 status = acpi_hw_read_multiple(&value, acpi_hw_register_read()
407 status = acpi_hw_register_read()
413 status = acpi_hw_read(&value, &acpi_gbl_FADT.xpm_timer_block); acpi_hw_register_read()
418 status = acpi_hw_register_read()
425 status = AE_BAD_PARAMETER; acpi_hw_register_read()
429 if (ACPI_SUCCESS(status)) { acpi_hw_register_read()
433 return_ACPI_STATUS(status); acpi_hw_register_read()
464 acpi_status status; acpi_hw_register_write() local
475 * preserving a bit in the status register is different. Writing a acpi_hw_register_write()
476 * one clears the status, and writing a zero preserves the status. acpi_hw_register_write()
483 status = acpi_hw_write_multiple(value, acpi_hw_register_write()
490 status = acpi_hw_write_multiple(value, acpi_hw_register_write()
500 status = acpi_hw_read_multiple(&read_value, acpi_hw_register_write()
505 if (ACPI_FAILURE(status)) { acpi_hw_register_write()
516 status = acpi_hw_write_multiple(value, acpi_hw_register_write()
528 status = acpi_hw_register_write()
531 if (ACPI_FAILURE(status)) { acpi_hw_register_write()
540 status = acpi_hw_register_write()
546 status = acpi_hw_write(value, &acpi_gbl_FADT.xpm_timer_block); acpi_hw_register_write()
553 status = acpi_hw_register_write()
560 status = AE_BAD_PARAMETER; acpi_hw_register_write()
565 return_ACPI_STATUS(status); acpi_hw_register_write()
589 acpi_status status; acpi_hw_read_multiple() local
593 status = acpi_hw_read(&value_a, register_a); acpi_hw_read_multiple()
594 if (ACPI_FAILURE(status)) { acpi_hw_read_multiple()
595 return (status); acpi_hw_read_multiple()
601 status = acpi_hw_read(&value_b, register_b); acpi_hw_read_multiple()
602 if (ACPI_FAILURE(status)) { acpi_hw_read_multiple()
603 return (status); acpi_hw_read_multiple()
640 acpi_status status; acpi_hw_write_multiple() local
644 status = acpi_hw_write(value, register_a); acpi_hw_write_multiple()
645 if (ACPI_FAILURE(status)) { acpi_hw_write_multiple()
646 return (status); acpi_hw_write_multiple()
662 status = acpi_hw_write(value, register_b); acpi_hw_write_multiple()
665 return (status); acpi_hw_write_multiple()
H A Devxfgpe.c79 acpi_status status; acpi_update_all_gpes() local
83 status = acpi_ut_acquire_mutex(ACPI_MTX_EVENTS); acpi_update_all_gpes()
84 if (ACPI_FAILURE(status)) { acpi_update_all_gpes()
85 return_ACPI_STATUS(status); acpi_update_all_gpes()
92 status = acpi_ev_walk_gpe_list(acpi_ev_initialize_gpe_block, NULL); acpi_update_all_gpes()
93 if (ACPI_SUCCESS(status)) { acpi_update_all_gpes()
100 return_ACPI_STATUS(status); acpi_update_all_gpes()
120 acpi_status status = AE_BAD_PARAMETER; ACPI_EXPORT_SYMBOL() local
137 status = acpi_ev_add_gpe_reference(gpe_event_info); ACPI_EXPORT_SYMBOL()
139 status = AE_NO_HANDLER; ACPI_EXPORT_SYMBOL()
144 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
165 acpi_status status = AE_BAD_PARAMETER; ACPI_EXPORT_SYMBOL() local
177 status = acpi_ev_remove_gpe_reference(gpe_event_info) ; ACPI_EXPORT_SYMBOL()
181 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
217 acpi_status status; ACPI_EXPORT_SYMBOL() local
228 status = AE_BAD_PARAMETER; ACPI_EXPORT_SYMBOL()
237 status = acpi_hw_low_set_gpe(gpe_event_info, ACPI_GPE_ENABLE); ACPI_EXPORT_SYMBOL()
242 status = acpi_hw_low_set_gpe(gpe_event_info, ACPI_GPE_DISABLE); ACPI_EXPORT_SYMBOL()
247 status = AE_BAD_PARAMETER; ACPI_EXPORT_SYMBOL()
253 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
281 acpi_status status = AE_BAD_PARAMETER; ACPI_EXPORT_SYMBOL() local
296 status = AE_OK; ACPI_EXPORT_SYMBOL()
300 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
327 acpi_status status; ACPI_EXPORT_SYMBOL() local
377 status = AE_BAD_PARAMETER; ACPI_EXPORT_SYMBOL()
409 status = AE_ALREADY_EXISTS; ACPI_EXPORT_SYMBOL()
426 status = AE_OK; ACPI_EXPORT_SYMBOL()
436 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
458 acpi_status status = AE_OK; ACPI_EXPORT_SYMBOL() local
474 status = AE_BAD_PARAMETER; ACPI_EXPORT_SYMBOL()
479 status = AE_TYPE; ACPI_EXPORT_SYMBOL()
485 status = AE_NOT_EXIST; ACPI_EXPORT_SYMBOL()
509 status = AE_BAD_PARAMETER; ACPI_EXPORT_SYMBOL()
515 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
534 acpi_status status = AE_OK; ACPI_EXPORT_SYMBOL() local
546 status = AE_BAD_PARAMETER; ACPI_EXPORT_SYMBOL()
550 status = acpi_hw_clear_gpe(gpe_event_info); ACPI_EXPORT_SYMBOL()
554 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
565 * event_status - Where the current status of the event ACPI_EXPORT_SYMBOL()
570 * DESCRIPTION: Get the current status of a GPE (signalled/not_signalled) ACPI_EXPORT_SYMBOL()
577 acpi_status status = AE_OK; ACPI_EXPORT_SYMBOL() local
589 status = AE_BAD_PARAMETER; ACPI_EXPORT_SYMBOL()
593 /* Obtain status on the requested GPE number */ ACPI_EXPORT_SYMBOL()
595 status = acpi_hw_get_gpe_status(gpe_event_info, event_status); ACPI_EXPORT_SYMBOL()
599 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
623 acpi_status status; ACPI_EXPORT_SYMBOL() local
634 status = AE_BAD_PARAMETER; ACPI_EXPORT_SYMBOL()
638 status = acpi_ev_finish_gpe(gpe_event_info); ACPI_EXPORT_SYMBOL()
642 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
661 acpi_status status; ACPI_EXPORT_SYMBOL() local
665 status = acpi_ut_acquire_mutex(ACPI_MTX_EVENTS); ACPI_EXPORT_SYMBOL()
666 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
667 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
670 status = acpi_hw_disable_all_gpes(); ACPI_EXPORT_SYMBOL()
673 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
692 acpi_status status; ACPI_EXPORT_SYMBOL() local
696 status = acpi_ut_acquire_mutex(ACPI_MTX_EVENTS); ACPI_EXPORT_SYMBOL()
697 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
698 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
701 status = acpi_hw_enable_all_runtime_gpes(); ACPI_EXPORT_SYMBOL()
704 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
723 acpi_status status; ACPI_EXPORT_SYMBOL() local
727 status = acpi_ut_acquire_mutex(ACPI_MTX_EVENTS); ACPI_EXPORT_SYMBOL()
728 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
729 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
732 status = acpi_hw_enable_all_wakeup_gpes(); ACPI_EXPORT_SYMBOL()
735 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
760 acpi_status status; ACPI_EXPORT_SYMBOL() local
771 status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE); ACPI_EXPORT_SYMBOL()
772 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
773 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
778 status = AE_BAD_PARAMETER; ACPI_EXPORT_SYMBOL()
785 status = AE_TYPE; ACPI_EXPORT_SYMBOL()
790 status = AE_ALREADY_EXISTS; ACPI_EXPORT_SYMBOL()
798 status = acpi_ev_create_gpe_block(node, gpe_block_address->address, ACPI_EXPORT_SYMBOL()
802 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
817 status = AE_NO_MEMORY; ACPI_EXPORT_SYMBOL()
821 status = ACPI_EXPORT_SYMBOL()
828 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
839 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
858 acpi_status status; ACPI_EXPORT_SYMBOL() local
867 status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE); ACPI_EXPORT_SYMBOL()
868 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
869 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
874 status = AE_BAD_PARAMETER; ACPI_EXPORT_SYMBOL()
881 status = AE_TYPE; ACPI_EXPORT_SYMBOL()
894 status = acpi_ev_delete_gpe_block(obj_desc->device.gpe_block); ACPI_EXPORT_SYMBOL()
895 if (ACPI_SUCCESS(status)) { ACPI_EXPORT_SYMBOL()
901 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
923 acpi_status status; ACPI_EXPORT_SYMBOL() local
938 info.status = AE_NOT_EXIST; ACPI_EXPORT_SYMBOL()
942 status = acpi_ev_walk_gpe_list(acpi_ev_get_gpe_device, &info); ACPI_EXPORT_SYMBOL()
943 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
944 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
948 return_ACPI_STATUS(info.status); ACPI_EXPORT_SYMBOL()
H A Devxface.c99 acpi_status status; acpi_install_notify_handler() local
111 status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE); acpi_install_notify_handler()
112 if (ACPI_FAILURE(status)) { acpi_install_notify_handler()
113 return_ACPI_STATUS(status); acpi_install_notify_handler()
127 status = AE_ALREADY_EXISTS; acpi_install_notify_handler()
149 status = AE_TYPE; acpi_install_notify_handler()
162 status = AE_NO_MEMORY; acpi_install_notify_handler()
168 status = acpi_ns_attach_object(device, obj_desc, node->type); acpi_install_notify_handler()
170 if (ACPI_FAILURE(status)) { acpi_install_notify_handler()
182 status = AE_ALREADY_EXISTS; acpi_install_notify_handler()
195 status = AE_NO_MEMORY; acpi_install_notify_handler()
223 return_ACPI_STATUS(status); acpi_install_notify_handler()
253 acpi_status status = AE_OK; ACPI_EXPORT_SYMBOL() local
270 status = ACPI_EXPORT_SYMBOL()
272 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
273 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
279 status = AE_NOT_EXIST; ACPI_EXPORT_SYMBOL()
317 status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE); ACPI_EXPORT_SYMBOL()
318 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
319 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
334 status = AE_NOT_EXIST; ACPI_EXPORT_SYMBOL()
358 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
362 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
382 acpi_status status; ACPI_EXPORT_SYMBOL() local
386 status = acpi_ut_acquire_mutex(ACPI_MTX_EVENTS); ACPI_EXPORT_SYMBOL()
387 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
388 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
394 status = AE_ALREADY_EXISTS; ACPI_EXPORT_SYMBOL()
404 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
428 acpi_status status; ACPI_EXPORT_SYMBOL() local
446 status = acpi_ut_acquire_mutex(ACPI_MTX_EVENTS); ACPI_EXPORT_SYMBOL()
447 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
460 status = AE_ALREADY_EXISTS; ACPI_EXPORT_SYMBOL()
478 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
481 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
502 acpi_status status; ACPI_EXPORT_SYMBOL() local
510 status = acpi_ut_acquire_mutex(ACPI_MTX_EVENTS); ACPI_EXPORT_SYMBOL()
511 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
512 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
543 status = AE_NOT_EXIST; ACPI_EXPORT_SYMBOL()
547 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
570 acpi_status status; ACPI_EXPORT_SYMBOL() local
580 status = acpi_ut_acquire_mutex(ACPI_MTX_EVENTS); ACPI_EXPORT_SYMBOL()
581 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
582 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
588 status = AE_ALREADY_EXISTS; ACPI_EXPORT_SYMBOL()
597 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
621 acpi_status status; ACPI_EXPORT_SYMBOL() local
631 status = acpi_ut_acquire_mutex(ACPI_MTX_EVENTS); ACPI_EXPORT_SYMBOL()
632 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
633 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
639 status = AE_ALREADY_EXISTS; ACPI_EXPORT_SYMBOL()
648 status = acpi_clear_event(event); ACPI_EXPORT_SYMBOL()
649 if (ACPI_SUCCESS(status)) ACPI_EXPORT_SYMBOL()
650 status = acpi_enable_event(event, 0); ACPI_EXPORT_SYMBOL()
651 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
669 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
689 acpi_status status = AE_OK; ACPI_EXPORT_SYMBOL() local
699 status = acpi_ut_acquire_mutex(ACPI_MTX_EVENTS); ACPI_EXPORT_SYMBOL()
700 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
701 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
706 status = acpi_disable_event(event, 0); ACPI_EXPORT_SYMBOL()
713 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
724 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
758 acpi_status status; acpi_ev_install_gpe_handler() local
769 status = acpi_ut_acquire_mutex(ACPI_MTX_EVENTS); acpi_ev_install_gpe_handler()
770 if (ACPI_FAILURE(status)) { acpi_ev_install_gpe_handler()
771 return_ACPI_STATUS(status); acpi_ev_install_gpe_handler()
778 status = AE_NO_MEMORY; acpi_ev_install_gpe_handler()
788 status = AE_BAD_PARAMETER; acpi_ev_install_gpe_handler()
798 status = AE_ALREADY_EXISTS; acpi_ev_install_gpe_handler()
847 return_ACPI_STATUS(status); acpi_ev_install_gpe_handler()
878 acpi_status status; acpi_install_gpe_handler() local
882 status = acpi_install_gpe_handler()
886 return_ACPI_STATUS(status); acpi_install_gpe_handler()
913 acpi_status status; ACPI_EXPORT_SYMBOL() local
917 status = acpi_ev_install_gpe_handler(gpe_device, gpe_number, type, TRUE, ACPI_EXPORT_SYMBOL()
920 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
945 acpi_status status; ACPI_EXPORT_SYMBOL() local
956 status = acpi_ut_acquire_mutex(ACPI_MTX_EVENTS); ACPI_EXPORT_SYMBOL()
957 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
958 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
967 status = AE_BAD_PARAMETER; ACPI_EXPORT_SYMBOL()
977 status = AE_NOT_EXIST; ACPI_EXPORT_SYMBOL()
984 status = AE_BAD_PARAMETER; ACPI_EXPORT_SYMBOL()
1022 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
1028 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
1054 acpi_status status; ACPI_EXPORT_SYMBOL() local
1064 status = acpi_ex_acquire_mutex_object(timeout, ACPI_EXPORT_SYMBOL()
1068 if (ACPI_SUCCESS(status)) { ACPI_EXPORT_SYMBOL()
1076 return (status); ACPI_EXPORT_SYMBOL()
1094 acpi_status status; ACPI_EXPORT_SYMBOL() local
1100 status = acpi_ex_release_mutex_object(acpi_gbl_global_lock_mutex); ACPI_EXPORT_SYMBOL()
1101 return (status); ACPI_EXPORT_SYMBOL()
H A Dhwxfsleep.c188 acpi_status status; ACPI_EXPORT_SYMBOL() local
192 status = acpi_set_firmware_waking_vectors((acpi_physical_address) ACPI_EXPORT_SYMBOL()
195 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
217 acpi_status status; ACPI_EXPORT_SYMBOL() local
221 status = acpi_set_firmware_waking_vectors(0, ACPI_EXPORT_SYMBOL()
225 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
245 acpi_status status; ACPI_EXPORT_SYMBOL() local
249 /* Clear the wake status bit (PM1) */ ACPI_EXPORT_SYMBOL()
251 status = ACPI_EXPORT_SYMBOL()
253 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
254 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
257 status = acpi_hw_clear_acpi_status(); ACPI_EXPORT_SYMBOL()
258 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
259 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
266 status = acpi_hw_disable_all_gpes(); ACPI_EXPORT_SYMBOL()
267 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
268 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
272 status = acpi_hw_enable_all_wakeup_gpes(); ACPI_EXPORT_SYMBOL()
273 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
274 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
279 status = acpi_hw_write_port(acpi_gbl_FADT.smi_command, ACPI_EXPORT_SYMBOL()
284 status = ACPI_EXPORT_SYMBOL()
286 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
287 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
311 acpi_status status; acpi_hw_sleep_dispatch() local
324 status = sleep_functions->extended_function(sleep_state); acpi_hw_sleep_dispatch()
328 status = sleep_functions->legacy_function(sleep_state); acpi_hw_sleep_dispatch()
331 return (status); acpi_hw_sleep_dispatch()
338 status = sleep_functions->extended_function(sleep_state); acpi_hw_sleep_dispatch()
339 return (status); acpi_hw_sleep_dispatch()
361 acpi_status status; acpi_enter_sleep_state_prep() local
368 status = acpi_get_sleep_type_data(sleep_state, acpi_enter_sleep_state_prep()
371 if (ACPI_FAILURE(status)) { acpi_enter_sleep_state_prep()
372 return_ACPI_STATUS(status); acpi_enter_sleep_state_prep()
382 status = acpi_enter_sleep_state_prep()
384 if (ACPI_FAILURE(status) && status != AE_NOT_FOUND) { acpi_enter_sleep_state_prep()
385 return_ACPI_STATUS(status); acpi_enter_sleep_state_prep()
438 acpi_status status; ACPI_EXPORT_SYMBOL() local
449 status = acpi_hw_sleep_dispatch(sleep_state, ACPI_SLEEP_FUNCTION_ID); ACPI_EXPORT_SYMBOL()
450 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
471 acpi_status status; ACPI_EXPORT_SYMBOL() local
475 status = ACPI_EXPORT_SYMBOL()
477 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
496 acpi_status status; ACPI_EXPORT_SYMBOL() local
500 status = acpi_hw_sleep_dispatch(sleep_state, ACPI_WAKE_FUNCTION_ID); ACPI_EXPORT_SYMBOL()
501 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
H A Dutxface.c66 acpi_status status; acpi_terminate() local
80 status = acpi_os_terminate(); acpi_terminate()
81 return_ACPI_STATUS(status); acpi_terminate()
120 * RETURN: status - the status of the call ACPI_EXPORT_SYMBOL()
126 * If the function fails an appropriate status will be returned ACPI_EXPORT_SYMBOL()
133 acpi_status status; ACPI_EXPORT_SYMBOL() local
139 status = acpi_ut_validate_buffer(out_buffer); ACPI_EXPORT_SYMBOL()
140 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
141 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
146 status = ACPI_EXPORT_SYMBOL()
149 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
150 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
193 * RETURN: status - the status of the call ACPI_EXPORT_SYMBOL()
296 acpi_status status; ACPI_EXPORT_SYMBOL() local
305 status = acpi_os_acquire_mutex(acpi_gbl_osi_mutex, ACPI_WAIT_FOREVER); ACPI_EXPORT_SYMBOL()
306 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
307 return (status); ACPI_EXPORT_SYMBOL()
320 status = AE_OK; ACPI_EXPORT_SYMBOL()
322 status = AE_ALREADY_EXISTS; ACPI_EXPORT_SYMBOL()
327 status = acpi_ut_install_interface(interface_name); ACPI_EXPORT_SYMBOL()
331 return (status); ACPI_EXPORT_SYMBOL()
349 acpi_status status; ACPI_EXPORT_SYMBOL() local
357 status = acpi_os_acquire_mutex(acpi_gbl_osi_mutex, ACPI_WAIT_FOREVER); ACPI_EXPORT_SYMBOL()
358 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
359 return (status); ACPI_EXPORT_SYMBOL()
362 status = acpi_ut_remove_interface(interface_name); ACPI_EXPORT_SYMBOL()
365 return (status); ACPI_EXPORT_SYMBOL()
386 acpi_status status; ACPI_EXPORT_SYMBOL() local
388 status = acpi_os_acquire_mutex(acpi_gbl_osi_mutex, ACPI_WAIT_FOREVER); ACPI_EXPORT_SYMBOL()
389 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
390 return (status); ACPI_EXPORT_SYMBOL()
394 status = AE_ALREADY_EXISTS; ACPI_EXPORT_SYMBOL()
400 return (status); ACPI_EXPORT_SYMBOL()
420 acpi_status status; ACPI_EXPORT_SYMBOL() local
422 status = acpi_os_acquire_mutex(acpi_gbl_osi_mutex, ACPI_WAIT_FOREVER); ACPI_EXPORT_SYMBOL()
423 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
424 return (status); ACPI_EXPORT_SYMBOL()
427 status = acpi_ut_update_interfaces(action); ACPI_EXPORT_SYMBOL()
430 return (status); ACPI_EXPORT_SYMBOL()
455 acpi_status status; acpi_check_address_range() local
457 status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE); acpi_check_address_range()
458 if (ACPI_FAILURE(status)) { acpi_check_address_range()
H A Ddswload2.c74 acpi_status status; acpi_ds_load2_begin_op() local
92 status = acpi_ds_exec_begin_op(walk_state, out_op); acpi_ds_load2_begin_op()
93 return_ACPI_STATUS(status); acpi_ds_load2_begin_op()
143 status = AE_OK; acpi_ds_load2_begin_op()
152 status = acpi_ds_load2_begin_op()
165 status = acpi_ds_load2_begin_op()
168 if (ACPI_FAILURE(status)) { acpi_ds_load2_begin_op()
169 return_ACPI_STATUS(status); acpi_ds_load2_begin_op()
177 status = acpi_ds_load2_begin_op()
182 if (ACPI_FAILURE(status)) { acpi_ds_load2_begin_op()
184 if (status == AE_NOT_FOUND) { acpi_ds_load2_begin_op()
185 status = AE_OK; acpi_ds_load2_begin_op()
188 status); acpi_ds_load2_begin_op()
191 ACPI_ERROR_NAMESPACE(buffer_ptr, status); acpi_ds_load2_begin_op()
193 return_ACPI_STATUS(status); acpi_ds_load2_begin_op()
272 status = acpi_ds_load2_begin_op()
275 if (ACPI_FAILURE(status)) { acpi_ds_load2_begin_op()
276 return_ACPI_STATUS(status); acpi_ds_load2_begin_op()
296 status = AE_OK; acpi_ds_load2_begin_op()
316 status = acpi_ds_load2_begin_op()
321 if (ACPI_SUCCESS(status) && (flags & ACPI_NS_TEMPORARY)) { acpi_ds_load2_begin_op()
329 if (ACPI_FAILURE(status)) { acpi_ds_load2_begin_op()
330 ACPI_ERROR_NAMESPACE(buffer_ptr, status); acpi_ds_load2_begin_op()
331 return_ACPI_STATUS(status); acpi_ds_load2_begin_op()
356 return_ACPI_STATUS(status); acpi_ds_load2_begin_op()
375 acpi_status status = AE_OK; acpi_ds_load2_end_op() local
426 status = acpi_ds_scope_stack_pop(walk_state); acpi_ds_load2_end_op()
427 if (ACPI_FAILURE(status)) { acpi_ds_load2_end_op()
477 status = acpi_ds_create_buffer_field(op, walk_state); acpi_ds_load2_end_op()
485 status = acpi_ds_init_field_objects(op, walk_state); acpi_ds_load2_end_op()
491 status = acpi_ds_load2_end_op()
499 status = acpi_ds_load2_end_op()
506 status = acpi_ds_load2_end_op()
520 status = acpi_ds_create_operands(walk_state, arg); acpi_ds_load2_end_op()
521 if (ACPI_FAILURE(status)) { acpi_ds_load2_end_op()
528 status = acpi_ex_create_processor(walk_state); acpi_ds_load2_end_op()
533 status = acpi_ex_create_power_resource(walk_state); acpi_ds_load2_end_op()
538 status = acpi_ex_create_mutex(walk_state); acpi_ds_load2_end_op()
543 status = acpi_ex_create_event(walk_state); acpi_ds_load2_end_op()
548 status = acpi_ex_create_alias(walk_state); acpi_ds_load2_end_op()
555 status = AE_OK; acpi_ds_load2_end_op()
601 status = acpi_ds_load2_end_op()
606 if (ACPI_FAILURE(status)) { acpi_ds_load2_end_op()
607 return_ACPI_STATUS(status); acpi_ds_load2_end_op()
613 status = acpi_ds_load2_end_op()
620 if (ACPI_FAILURE(status)) { acpi_ds_load2_end_op()
626 if (AE_NOT_EXIST == status) { acpi_ds_load2_end_op()
627 status = AE_OK; acpi_ds_load2_end_op()
634 status = acpi_ds_create_node(walk_state, node, op); acpi_ds_load2_end_op()
655 status = acpi_ds_load2_end_op()
659 if (ACPI_SUCCESS(status)) { acpi_ds_load2_end_op()
660 status = acpi_ds_load2_end_op()
670 if (ACPI_FAILURE(status)) { acpi_ds_load2_end_op()
671 return_ACPI_STATUS(status); acpi_ds_load2_end_op()
699 status = acpi_ds_load2_end_op()
706 if (ACPI_SUCCESS(status)) { acpi_ds_load2_end_op()
713 status = AE_AML_OPERAND_TYPE; acpi_ds_load2_end_op()
722 ACPI_ERROR_NAMESPACE(arg->common.value.string, status); acpi_ds_load2_end_op()
737 return_ACPI_STATUS(status); acpi_ds_load2_end_op()
H A Dexconfig.c87 acpi_status status; acpi_ex_add_table() local
111 status = acpi_ns_load_table(table_index, parent_node); acpi_ex_add_table()
112 if (ACPI_FAILURE(status)) { acpi_ex_add_table()
115 return_ACPI_STATUS(status); acpi_ex_add_table()
129 status = acpi_tb_get_owner_id(table_index, &owner_id); acpi_ex_add_table()
130 if (ACPI_SUCCESS(status)) { acpi_ex_add_table()
154 acpi_status status; acpi_ex_load_table_op() local
167 status = acpi_tb_find_table(operand[0]->string.pointer, acpi_ex_load_table_op()
170 if (ACPI_FAILURE(status)) { acpi_ex_load_table_op()
171 if (status != AE_NOT_FOUND) { acpi_ex_load_table_op()
172 return_ACPI_STATUS(status); acpi_ex_load_table_op()
198 status = acpi_ex_load_table_op()
201 if (ACPI_FAILURE(status)) { acpi_ex_load_table_op()
202 return_ACPI_STATUS(status); acpi_ex_load_table_op()
220 status = acpi_ex_load_table_op()
223 if (ACPI_FAILURE(status)) { acpi_ex_load_table_op()
224 return_ACPI_STATUS(status); acpi_ex_load_table_op()
230 status = acpi_ex_add_table(table_index, parent_node, &ddb_handle); acpi_ex_load_table_op()
231 if (ACPI_FAILURE(status)) { acpi_ex_load_table_op()
232 return_ACPI_STATUS(status); acpi_ex_load_table_op()
241 status = acpi_ex_store(operand[5], acpi_ex_load_table_op()
245 if (ACPI_FAILURE(status)) { acpi_ex_load_table_op()
249 return_ACPI_STATUS(status); acpi_ex_load_table_op()
253 status = acpi_get_table_by_index(table_index, &table); acpi_ex_load_table_op()
254 if (ACPI_SUCCESS(status)) { acpi_ex_load_table_op()
267 return_ACPI_STATUS(status); acpi_ex_load_table_op()
288 acpi_status status; acpi_ex_region_read() local
296 status = acpi_ex_region_read()
299 if (ACPI_FAILURE(status)) { acpi_ex_region_read()
300 return (status); acpi_ex_region_read()
341 acpi_status status; acpi_ex_load_op() local
365 status = acpi_ds_get_region_arguments(obj_desc); acpi_ex_load_op()
366 if (ACPI_FAILURE(status)) { acpi_ex_load_op()
367 return_ACPI_STATUS(status); acpi_ex_load_op()
378 status = acpi_ex_load_op()
385 if (ACPI_FAILURE(status)) { acpi_ex_load_op()
386 return_ACPI_STATUS(status); acpi_ex_load_op()
420 status = acpi_ex_region_read(obj_desc, length, acpi_ex_load_op()
422 if (ACPI_FAILURE(status)) { acpi_ex_load_op()
424 return_ACPI_STATUS(status); acpi_ex_load_op()
478 status = acpi_tb_install_standard_table(ACPI_PTR_TO_PHYSADDR(table), acpi_ex_load_op()
483 if (ACPI_FAILURE(status)) { acpi_ex_load_op()
488 return_ACPI_STATUS(status); acpi_ex_load_op()
495 status = acpi_ex_load_op()
498 if (ACPI_FAILURE(status)) { acpi_ex_load_op()
499 return_ACPI_STATUS(status); acpi_ex_load_op()
509 status = acpi_ex_load_op()
511 if (ACPI_FAILURE(status)) { acpi_ex_load_op()
515 return_ACPI_STATUS(status); acpi_ex_load_op()
520 status = acpi_ex_store(ddb_handle, target, walk_state); acpi_ex_load_op()
521 if (ACPI_FAILURE(status)) { acpi_ex_load_op()
527 return_ACPI_STATUS(status); acpi_ex_load_op()
541 return_ACPI_STATUS(status); acpi_ex_load_op()
558 acpi_status status = AE_OK; acpi_ex_unload_table() local
602 status = acpi_get_table_by_index(table_index, &table); acpi_ex_unload_table()
603 if (ACPI_SUCCESS(status)) { acpi_ex_unload_table()
612 status = acpi_tb_delete_namespace_by_owner(table_index); acpi_ex_unload_table()
613 if (ACPI_FAILURE(status)) { acpi_ex_unload_table()
614 return_ACPI_STATUS(status); acpi_ex_unload_table()
H A Dnsprepkg.c87 acpi_status status = AE_OK; acpi_ns_check_package() local
159 status = acpi_ns_check_package_elements(info, elements, acpi_ns_check_package()
176 status = acpi_ns_check_object_type(info, elements, acpi_ns_check_package()
179 if (ACPI_FAILURE(status)) { acpi_ns_check_package()
180 return (status); acpi_ns_check_package()
206 status = acpi_ns_check_package()
212 if (ACPI_FAILURE(status)) { acpi_ns_check_package()
213 return (status); acpi_ns_check_package()
218 status = acpi_ns_check_package()
224 if (ACPI_FAILURE(status)) { acpi_ns_check_package()
225 return (status); acpi_ns_check_package()
236 status = acpi_ns_check_object_type(info, elements, acpi_ns_check_package()
238 if (ACPI_FAILURE(status)) { acpi_ns_check_package()
239 return (status); acpi_ns_check_package()
247 status = acpi_ns_check_package()
255 status = acpi_ns_check_object_type(info, elements, acpi_ns_check_package()
257 if (ACPI_FAILURE(status)) { acpi_ns_check_package()
258 return (status); acpi_ns_check_package()
275 status = acpi_ns_check_package()
299 status = acpi_ns_check_package()
302 if (ACPI_FAILURE(status)) { acpi_ns_check_package()
303 return (status); acpi_ns_check_package()
315 status = acpi_ns_check_package()
336 status = acpi_ns_check_object_type(info, elements, acpi_ns_check_package()
339 if (ACPI_FAILURE(status)) { acpi_ns_check_package()
340 return (status); acpi_ns_check_package()
353 status = acpi_ns_check_object_type(info, elements + 1, acpi_ns_check_package()
356 if (ACPI_FAILURE(status)) { acpi_ns_check_package()
357 return (status); acpi_ns_check_package()
377 return (status); acpi_ns_check_package()
413 acpi_status status; acpi_ns_check_package_list() local
432 status = acpi_ns_check_object_type(info, &sub_package, acpi_ns_check_package_list()
434 if (ACPI_FAILURE(status)) { acpi_ns_check_package_list()
435 return (status); acpi_ns_check_package_list()
454 status = acpi_ns_check_package_list()
464 if (ACPI_FAILURE(status)) { acpi_ns_check_package_list()
465 return (status); acpi_ns_check_package_list()
480 status = acpi_ns_check_package_list()
492 if (ACPI_FAILURE(status)) { acpi_ns_check_package_list()
493 return (status); acpi_ns_check_package_list()
515 status = acpi_ns_check_package_list()
522 if (ACPI_FAILURE(status)) { acpi_ns_check_package_list()
523 return (status); acpi_ns_check_package_list()
539 status = acpi_ns_check_package_list()
545 if (ACPI_FAILURE(status)) { acpi_ns_check_package_list()
546 return (status); acpi_ns_check_package_list()
555 status = acpi_ns_check_object_type(info, sub_elements, acpi_ns_check_package_list()
558 if (ACPI_FAILURE(status)) { acpi_ns_check_package_list()
559 return (status); acpi_ns_check_package_list()
588 status = acpi_ns_check_package_list()
595 if (ACPI_FAILURE(status)) { acpi_ns_check_package_list()
596 return (status); acpi_ns_check_package_list()
648 acpi_status status; acpi_ns_check_package_elements() local
657 status = acpi_ns_check_object_type(info, this_element, acpi_ns_check_package_elements()
659 if (ACPI_FAILURE(status)) { acpi_ns_check_package_elements()
660 return (status); acpi_ns_check_package_elements()
666 status = acpi_ns_check_object_type(info, this_element, acpi_ns_check_package_elements()
669 if (ACPI_FAILURE(status)) { acpi_ns_check_package_elements()
670 return (status); acpi_ns_check_package_elements()
H A Dpsobject.c178 acpi_status status = AE_OK; acpi_ps_build_named_op() local
193 status = acpi_ps_build_named_op()
198 if (ACPI_FAILURE(status)) { acpi_ps_build_named_op()
199 return_ACPI_STATUS(status); acpi_ps_build_named_op()
223 status = walk_state->descending_callback(walk_state, op); acpi_ps_build_named_op()
224 if (ACPI_FAILURE(status)) { acpi_ps_build_named_op()
225 if (status != AE_CTRL_TERMINATE) { acpi_ps_build_named_op()
226 ACPI_EXCEPTION((AE_INFO, status, acpi_ps_build_named_op()
229 return_ACPI_STATUS(status); acpi_ps_build_named_op()
236 status = acpi_ps_next_parse_state(walk_state, *op, status); acpi_ps_build_named_op()
237 if (ACPI_FAILURE(status)) { acpi_ps_build_named_op()
238 if (status == AE_CTRL_PENDING) { acpi_ps_build_named_op()
239 status = AE_CTRL_PARSE_PENDING; acpi_ps_build_named_op()
241 return_ACPI_STATUS(status); acpi_ps_build_named_op()
283 acpi_status status = AE_OK; acpi_ps_create_op() local
292 status = acpi_ps_get_aml_opcode(walk_state); acpi_ps_create_op()
293 if (status == AE_CTRL_PARSE_CONTINUE) { acpi_ps_create_op()
306 status = acpi_ps_create_op()
310 if (ACPI_FAILURE(status)) { acpi_ps_create_op()
311 return_ACPI_STATUS(status); acpi_ps_create_op()
363 status = walk_state->descending_callback(walk_state, &op); acpi_ps_create_op()
364 status = acpi_ps_next_parse_state(walk_state, op, status); acpi_ps_create_op()
365 if (status == AE_CTRL_PENDING) { acpi_ps_create_op()
366 status = AE_CTRL_PARSE_PENDING; acpi_ps_create_op()
370 return_ACPI_STATUS(status); acpi_ps_create_op()
379 * status - Parse status before complete Op
389 union acpi_parse_object **op, acpi_status status) acpi_ps_complete_op()
409 switch (status) { acpi_ps_complete_op()
420 return_ACPI_STATUS(status); acpi_ps_complete_op()
434 status = walk_state->ascending_callback(walk_state); acpi_ps_complete_op()
435 status = acpi_ps_complete_op()
436 acpi_ps_next_parse_state(walk_state, *op, status); acpi_ps_complete_op()
444 status = AE_OK; acpi_ps_complete_op()
465 status = walk_state->ascending_callback(walk_state); acpi_ps_complete_op()
466 status = acpi_ps_next_parse_state(walk_state, *op, status); acpi_ps_complete_op()
473 status = AE_OK; acpi_ps_complete_op()
500 default: /* All other non-AE_OK status */ acpi_ps_complete_op()
529 return_ACPI_STATUS(status); acpi_ps_complete_op()
552 * status - Current parse status before complete last
563 union acpi_parse_object *op, acpi_status status) acpi_ps_complete_final_op()
586 status = acpi_ps_complete_final_op()
588 status = acpi_ps_complete_final_op()
590 status); acpi_ps_complete_final_op()
591 if (status == AE_CTRL_PENDING) { acpi_ps_complete_final_op()
592 status = acpi_ps_complete_final_op()
595 if (ACPI_FAILURE(status)) { acpi_ps_complete_final_op()
596 return_ACPI_STATUS(status); acpi_ps_complete_final_op()
600 if (status == AE_CTRL_TERMINATE) { acpi_ps_complete_final_op()
601 status = AE_OK; acpi_ps_complete_final_op()
627 return_ACPI_STATUS(status); acpi_ps_complete_final_op()
630 else if (ACPI_FAILURE(status)) { acpi_ps_complete_final_op()
637 return_ACPI_STATUS(status); acpi_ps_complete_final_op()
653 return_ACPI_STATUS(status); acpi_ps_complete_final_op()
388 acpi_ps_complete_op(struct acpi_walk_state *walk_state, union acpi_parse_object **op, acpi_status status) acpi_ps_complete_op() argument
562 acpi_ps_complete_final_op(struct acpi_walk_state *walk_state, union acpi_parse_object *op, acpi_status status) acpi_ps_complete_final_op() argument
H A Dutmutex.c71 acpi_status status; acpi_ut_mutex_initialize() local
78 status = acpi_ut_create_mutex(i); acpi_ut_mutex_initialize()
79 if (ACPI_FAILURE(status)) { acpi_ut_mutex_initialize()
80 return_ACPI_STATUS(status); acpi_ut_mutex_initialize()
86 status = acpi_os_create_lock (&acpi_gbl_gpe_lock); acpi_ut_mutex_initialize()
87 if (ACPI_FAILURE (status)) { acpi_ut_mutex_initialize()
88 return_ACPI_STATUS (status); acpi_ut_mutex_initialize()
91 status = acpi_os_create_lock (&acpi_gbl_hardware_lock); acpi_ut_mutex_initialize()
92 if (ACPI_FAILURE (status)) { acpi_ut_mutex_initialize()
93 return_ACPI_STATUS (status); acpi_ut_mutex_initialize()
96 status = acpi_os_create_lock(&acpi_gbl_reference_count_lock); acpi_ut_mutex_initialize()
97 if (ACPI_FAILURE(status)) { acpi_ut_mutex_initialize()
98 return_ACPI_STATUS(status); acpi_ut_mutex_initialize()
103 status = acpi_os_create_mutex(&acpi_gbl_osi_mutex); acpi_ut_mutex_initialize()
104 if (ACPI_FAILURE(status)) { acpi_ut_mutex_initialize()
105 return_ACPI_STATUS(status); acpi_ut_mutex_initialize()
110 status = acpi_ut_create_rw_lock(&acpi_gbl_namespace_rw_lock); acpi_ut_mutex_initialize()
111 if (ACPI_FAILURE(status)) { acpi_ut_mutex_initialize()
112 return_ACPI_STATUS(status); acpi_ut_mutex_initialize()
118 status = acpi_os_create_mutex(&acpi_gbl_db_command_ready); acpi_ut_mutex_initialize()
119 if (ACPI_FAILURE(status)) { acpi_ut_mutex_initialize()
120 return_ACPI_STATUS(status); acpi_ut_mutex_initialize()
123 status = acpi_os_create_mutex(&acpi_gbl_db_command_complete); acpi_ut_mutex_initialize()
126 return_ACPI_STATUS(status); acpi_ut_mutex_initialize()
188 acpi_status status = AE_OK; acpi_ut_create_mutex() local
193 status = acpi_ut_create_mutex()
200 return_ACPI_STATUS(status); acpi_ut_create_mutex()
242 acpi_status status; acpi_ut_acquire_mutex() local
293 status = acpi_os_acquire_mutex(acpi_gbl_mutex_info[mutex_id].mutex, acpi_ut_acquire_mutex()
295 if (ACPI_SUCCESS(status)) { acpi_ut_acquire_mutex()
304 ACPI_EXCEPTION((AE_INFO, status, acpi_ut_acquire_mutex()
309 return (status); acpi_ut_acquire_mutex()
H A Ddbcmds.c184 acpi_status status; acpi_db_do_one_sleep_state() local
201 status = acpi_db_do_one_sleep_state()
203 if (ACPI_FAILURE(status)) { acpi_db_do_one_sleep_state()
206 acpi_format_exception(status)); acpi_db_do_one_sleep_state()
218 status = acpi_enter_sleep_state_prep(sleep_state); acpi_db_do_one_sleep_state()
219 if (ACPI_FAILURE(status)) { acpi_db_do_one_sleep_state()
224 status = acpi_enter_sleep_state(sleep_state); acpi_db_do_one_sleep_state()
225 if (ACPI_FAILURE(status)) { acpi_db_do_one_sleep_state()
231 status = acpi_leave_sleep_state_prep(sleep_state); acpi_db_do_one_sleep_state()
232 if (ACPI_FAILURE(status)) { acpi_db_do_one_sleep_state()
238 status = acpi_leave_sleep_state(sleep_state); acpi_db_do_one_sleep_state()
239 if (ACPI_FAILURE(status)) { acpi_db_do_one_sleep_state()
246 ACPI_EXCEPTION((AE_INFO, status, "During invocation of sleep state S%d", acpi_db_do_one_sleep_state()
290 acpi_status status; acpi_db_display_table_info() local
338 status = acpi_tb_validate_table(table_desc); acpi_db_display_table_info()
339 if (ACPI_FAILURE(status)) { acpi_db_display_table_info()
374 acpi_status status; acpi_db_unload_acpi_table() local
383 status = acpi_unload_parent_table(ACPI_CAST_PTR(acpi_handle, node)); acpi_db_unload_acpi_table()
384 if (ACPI_SUCCESS(status)) { acpi_db_unload_acpi_table()
389 acpi_format_exception(status), object_name); acpi_db_unload_acpi_table()
410 acpi_status status; acpi_db_send_notify() local
422 status = acpi_ev_queue_notify_request(node, value); acpi_db_send_notify()
423 if (ACPI_FAILURE(status)) { acpi_db_send_notify()
451 acpi_status status; acpi_db_display_interfaces() local
487 status = acpi_install_interface(interface_name_arg); acpi_db_display_interfaces()
488 if (ACPI_FAILURE(status)) { acpi_db_display_interfaces()
490 acpi_format_exception(status), acpi_db_display_interfaces()
500 status = acpi_remove_interface(interface_name_arg); acpi_db_display_interfaces()
501 if (ACPI_FAILURE(status)) { acpi_db_display_interfaces()
503 acpi_format_exception(status), acpi_db_display_interfaces()
530 acpi_status status; acpi_db_display_template() local
555 status = acpi_rs_create_resource_list(node->object, &return_buffer); acpi_db_display_template()
560 if (ACPI_FAILURE(status)) { acpi_db_display_template()
563 buffer_arg, acpi_format_exception(status)); acpi_db_display_template()
697 acpi_status status; acpi_dm_test_resource_conversion() local
711 status = acpi_evaluate_object(node, name, NULL, &return_buffer); acpi_dm_test_resource_conversion()
712 if (ACPI_FAILURE(status)) { acpi_dm_test_resource_conversion()
714 name, acpi_format_exception(status)); acpi_dm_test_resource_conversion()
715 return (status); acpi_dm_test_resource_conversion()
720 status = acpi_get_current_resources(node, &resource_buffer); acpi_dm_test_resource_conversion()
721 if (ACPI_FAILURE(status)) { acpi_dm_test_resource_conversion()
723 acpi_format_exception(status)); acpi_dm_test_resource_conversion()
729 status = acpi_rs_create_aml_resources(&resource_buffer, &new_aml); acpi_dm_test_resource_conversion()
730 if (ACPI_FAILURE(status)) { acpi_dm_test_resource_conversion()
732 acpi_format_exception(status)); acpi_dm_test_resource_conversion()
752 return (status); acpi_dm_test_resource_conversion()
798 acpi_status status; acpi_db_device_resources() local
833 status = acpi_db_device_resources()
835 if (ACPI_FAILURE(status)) { acpi_db_device_resources()
837 acpi_format_exception(status)); acpi_db_device_resources()
844 status = acpi_get_irq_routing_table(node, &return_buffer); acpi_db_device_resources()
845 if (ACPI_FAILURE(status)) { acpi_db_device_resources()
847 acpi_format_exception(status)); acpi_db_device_resources()
863 status = acpi_db_device_resources()
865 if (ACPI_FAILURE(status)) { acpi_db_device_resources()
867 acpi_format_exception(status)); acpi_db_device_resources()
873 status = acpi_walk_resources(node, METHOD_NAME__CRS, acpi_db_device_resources()
875 if (ACPI_FAILURE(status)) { acpi_db_device_resources()
877 acpi_format_exception(status)); acpi_db_device_resources()
886 status = acpi_get_current_resources(node, &return_buffer); acpi_db_device_resources()
887 if (ACPI_FAILURE(status)) { acpi_db_device_resources()
889 acpi_format_exception(status)); acpi_db_device_resources()
895 status = acpi_walk_resource_buffer(&return_buffer, acpi_db_device_resources()
898 if (ACPI_FAILURE(status)) { acpi_db_device_resources()
900 acpi_format_exception(status)); acpi_db_device_resources()
921 status = acpi_set_current_resources(node, &return_buffer); acpi_db_device_resources()
922 if (ACPI_FAILURE(status)) { acpi_db_device_resources()
924 acpi_format_exception(status)); acpi_db_device_resources()
941 status = acpi_db_device_resources()
943 if (ACPI_FAILURE(status)) { acpi_db_device_resources()
945 acpi_format_exception(status)); acpi_db_device_resources()
952 status = acpi_get_possible_resources(node, &return_buffer); acpi_db_device_resources()
953 if (ACPI_FAILURE(status)) { acpi_db_device_resources()
955 acpi_format_exception(status)); acpi_db_device_resources()
973 status = acpi_db_device_resources()
975 if (ACPI_FAILURE(status)) { acpi_db_device_resources()
977 acpi_format_exception(status)); acpi_db_device_resources()
984 status = acpi_get_event_resources(node, &return_buffer); acpi_db_device_resources()
985 if (ACPI_FAILURE(status)) { acpi_db_device_resources()
987 acpi_format_exception(status)); acpi_db_device_resources()
H A Dutlock.c64 acpi_status status; acpi_ut_create_rw_lock() local
67 status = acpi_os_create_mutex(&lock->reader_mutex); acpi_ut_create_rw_lock()
68 if (ACPI_FAILURE(status)) { acpi_ut_create_rw_lock()
69 return (status); acpi_ut_create_rw_lock()
72 status = acpi_os_create_mutex(&lock->writer_mutex); acpi_ut_create_rw_lock()
73 return (status); acpi_ut_create_rw_lock()
107 acpi_status status; acpi_ut_acquire_read_lock() local
109 status = acpi_os_acquire_mutex(lock->reader_mutex, ACPI_WAIT_FOREVER); acpi_ut_acquire_read_lock()
110 if (ACPI_FAILURE(status)) { acpi_ut_acquire_read_lock()
111 return (status); acpi_ut_acquire_read_lock()
118 status = acpi_ut_acquire_read_lock()
124 return (status); acpi_ut_acquire_read_lock()
129 acpi_status status; acpi_ut_release_read_lock() local
131 status = acpi_os_acquire_mutex(lock->reader_mutex, ACPI_WAIT_FOREVER); acpi_ut_release_read_lock()
132 if (ACPI_FAILURE(status)) { acpi_ut_release_read_lock()
133 return (status); acpi_ut_release_read_lock()
144 return (status); acpi_ut_release_read_lock()
165 acpi_status status; acpi_ut_acquire_write_lock() local
167 status = acpi_os_acquire_mutex(lock->writer_mutex, ACPI_WAIT_FOREVER); acpi_ut_acquire_write_lock()
168 return (status); acpi_ut_acquire_write_lock()
H A Dtbxfload.c67 acpi_status status; acpi_load_tables() local
73 status = acpi_tb_load_namespace(); acpi_load_tables()
77 if (status == AE_CTRL_TERMINATE) { acpi_load_tables()
78 status = AE_OK; acpi_load_tables()
81 if (ACPI_FAILURE(status)) { acpi_load_tables()
82 ACPI_EXCEPTION((AE_INFO, status, acpi_load_tables()
86 return_ACPI_STATUS(status); acpi_load_tables()
105 acpi_status status; ACPI_EXPORT_SYMBOL_INIT() local
125 status = AE_NO_ACPI_TABLES; ACPI_EXPORT_SYMBOL_INIT()
161 status = acpi_ns_load_table(acpi_gbl_dsdt_index, acpi_gbl_root_node); ACPI_EXPORT_SYMBOL_INIT()
162 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL_INIT()
163 ACPI_EXCEPTION((AE_INFO, status, "[DSDT] table load failed")); ACPI_EXPORT_SYMBOL_INIT()
188 status = acpi_ns_load_table(i, acpi_gbl_root_node); ACPI_EXPORT_SYMBOL_INIT()
189 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL_INIT()
190 ACPI_EXCEPTION((AE_INFO, status, ACPI_EXPORT_SYMBOL_INIT()
218 status = AE_CTRL_TERMINATE; ACPI_EXPORT_SYMBOL_INIT()
223 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL_INIT()
245 acpi_status status; acpi_install_table() local
257 status = acpi_tb_install_standard_table(address, flags, acpi_install_table()
260 return_ACPI_STATUS(status); acpi_install_table()
283 acpi_status status; ACPI_EXPORT_SYMBOL_INIT() local
296 status = acpi_ut_acquire_mutex(ACPI_MTX_INTERPRETER); ACPI_EXPORT_SYMBOL_INIT()
297 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL_INIT()
298 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL_INIT()
306 status = acpi_tb_install_standard_table(ACPI_PTR_TO_PHYSADDR(table), ACPI_EXPORT_SYMBOL_INIT()
311 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL_INIT()
319 status = ACPI_EXPORT_SYMBOL_INIT()
322 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL_INIT()
326 status = acpi_ns_load_table(table_index, acpi_gbl_root_node); ACPI_EXPORT_SYMBOL_INIT()
337 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL_INIT()
361 acpi_status status = AE_NOT_EXIST; ACPI_EXPORT_SYMBOL() local
387 status = acpi_ut_acquire_mutex(ACPI_MTX_INTERPRETER); ACPI_EXPORT_SYMBOL()
388 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
389 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
408 status = AE_TYPE; ACPI_EXPORT_SYMBOL()
415 status = AE_NOT_EXIST; ACPI_EXPORT_SYMBOL()
434 status = acpi_tb_delete_namespace_by_owner(i); ACPI_EXPORT_SYMBOL()
435 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
439 status = acpi_tb_release_owner_id(i); ACPI_EXPORT_SYMBOL()
445 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
H A Dhwxface.c69 acpi_status status; acpi_reset() local
94 status = acpi_reset()
101 status = acpi_hw_write(acpi_gbl_FADT.reset_value, reset_reg); acpi_reset()
104 return_ACPI_STATUS(status); acpi_reset()
133 acpi_status status; ACPI_EXPORT_SYMBOL() local
143 status = acpi_hw_validate_register(reg, 64, &address); ACPI_EXPORT_SYMBOL()
144 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
145 return (status); ACPI_EXPORT_SYMBOL()
153 status = acpi_os_read_memory((acpi_physical_address) ACPI_EXPORT_SYMBOL()
156 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
157 return (status); ACPI_EXPORT_SYMBOL()
169 status = acpi_hw_read_port((acpi_io_address) ACPI_EXPORT_SYMBOL()
171 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
172 return (status); ACPI_EXPORT_SYMBOL()
179 status = acpi_hw_read_port((acpi_io_address) ACPI_EXPORT_SYMBOL()
182 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
183 return (status); ACPI_EXPORT_SYMBOL()
187 /* Set the return value only if status is AE_OK */ ACPI_EXPORT_SYMBOL()
219 acpi_status status; ACPI_EXPORT_SYMBOL() local
225 status = acpi_hw_validate_register(reg, 64, &address); ACPI_EXPORT_SYMBOL()
226 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
227 return (status); ACPI_EXPORT_SYMBOL()
235 status = acpi_os_write_memory((acpi_physical_address) ACPI_EXPORT_SYMBOL()
237 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
238 return (status); ACPI_EXPORT_SYMBOL()
247 status = acpi_hw_write_port((acpi_io_address) ACPI_EXPORT_SYMBOL()
250 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
251 return (status); ACPI_EXPORT_SYMBOL()
255 status = acpi_hw_write_port((acpi_io_address) ACPI_EXPORT_SYMBOL()
258 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
259 return (status); ACPI_EXPORT_SYMBOL()
270 return (status); ACPI_EXPORT_SYMBOL()
305 acpi_status status; ACPI_EXPORT_SYMBOL() local
318 status = acpi_hw_register_read(bit_reg_info->parent_register, ACPI_EXPORT_SYMBOL()
320 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
321 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
366 acpi_status status = AE_OK; ACPI_EXPORT_SYMBOL() local
390 status = acpi_hw_register_read(bit_reg_info->parent_register, ACPI_EXPORT_SYMBOL()
392 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
405 status = acpi_hw_register_write(bit_reg_info->parent_register, ACPI_EXPORT_SYMBOL()
425 status = ACPI_EXPORT_SYMBOL()
439 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
484 acpi_status status; ACPI_EXPORT_SYMBOL() local
509 status = acpi_ns_evaluate(info); ACPI_EXPORT_SYMBOL()
510 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
519 status = AE_AML_NO_RETURN_VALUE; ACPI_EXPORT_SYMBOL()
528 status = AE_AML_OPERAND_TYPE; ACPI_EXPORT_SYMBOL()
541 status = AE_AML_PACKAGE_LIMIT; ACPI_EXPORT_SYMBOL()
547 status = AE_AML_OPERAND_TYPE; ACPI_EXPORT_SYMBOL()
562 status = AE_AML_OPERAND_TYPE; ACPI_EXPORT_SYMBOL()
577 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
578 ACPI_EXCEPTION((AE_INFO, status, ACPI_EXPORT_SYMBOL()
584 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
H A Ddswexec.c92 acpi_status status = AE_OK; acpi_ds_get_predicate_value() local
101 status = acpi_ds_result_pop(&obj_desc, walk_state); acpi_ds_get_predicate_value()
102 if (ACPI_FAILURE(status)) { acpi_ds_get_predicate_value()
103 ACPI_EXCEPTION((AE_INFO, status, acpi_ds_get_predicate_value()
106 return_ACPI_STATUS(status); acpi_ds_get_predicate_value()
109 status = acpi_ds_create_operand(walk_state, walk_state->op, 0); acpi_ds_get_predicate_value()
110 if (ACPI_FAILURE(status)) { acpi_ds_get_predicate_value()
111 return_ACPI_STATUS(status); acpi_ds_get_predicate_value()
114 status = acpi_ds_get_predicate_value()
117 if (ACPI_FAILURE(status)) { acpi_ds_get_predicate_value()
118 return_ACPI_STATUS(status); acpi_ds_get_predicate_value()
136 status = acpi_ex_convert_to_integer(obj_desc, &local_obj_desc, 16); acpi_ds_get_predicate_value()
137 if (ACPI_FAILURE(status)) { acpi_ds_get_predicate_value()
146 status = AE_AML_OPERAND_TYPE; acpi_ds_get_predicate_value()
166 status = AE_CTRL_FALSE; acpi_ds_get_predicate_value()
194 return_ACPI_STATUS(status); acpi_ds_get_predicate_value()
217 acpi_status status = AE_OK; acpi_ds_exec_begin_op() local
224 status = acpi_ds_load2_begin_op(walk_state, out_op); acpi_ds_exec_begin_op()
225 if (ACPI_FAILURE(status)) { acpi_ds_exec_begin_op()
243 status = acpi_ds_scope_stack_pop(walk_state); acpi_ds_exec_begin_op()
244 if (ACPI_FAILURE(status)) { acpi_ds_exec_begin_op()
292 status = acpi_ds_exec_begin_control_op(walk_state, op); acpi_ds_exec_begin_op()
310 status = acpi_ds_exec_begin_op()
313 status = acpi_ds_exec_begin_op()
317 if (ACPI_FAILURE(status)) { acpi_ds_exec_begin_op()
318 return_ACPI_STATUS(status); acpi_ds_exec_begin_op()
336 return_ACPI_STATUS(status); acpi_ds_exec_begin_op()
339 status = acpi_ds_method_error(status, walk_state); acpi_ds_exec_begin_op()
340 return_ACPI_STATUS(status); acpi_ds_exec_begin_op()
360 acpi_status status = AE_OK; acpi_ds_exec_end_op() local
389 ACPI_DEBUGGER_EXEC(status = acpi_ds_exec_end_op()
391 ACPI_DEBUGGER_EXEC(if (ACPI_FAILURE(status)) { acpi_ds_exec_end_op()
392 return_ACPI_STATUS(status);} acpi_ds_exec_end_op()
401 status = acpi_ds_evaluate_name_path(walk_state); acpi_ds_exec_end_op()
402 if (ACPI_FAILURE(status)) { acpi_ds_exec_end_op()
412 status = acpi_ds_create_operands(walk_state, first_arg); acpi_ds_exec_end_op()
413 if (ACPI_FAILURE(status)) { acpi_ds_exec_end_op()
425 status = acpi_ex_resolve_operands(walk_state->opcode, acpi_ds_exec_end_op()
433 if (ACPI_SUCCESS(status)) { acpi_ds_exec_end_op()
439 status = acpi_ds_exec_end_op()
446 if ((status == AE_AML_UNINITIALIZED_LOCAL) && acpi_ds_exec_end_op()
456 status = AE_OK; acpi_ds_exec_end_op()
458 ACPI_EXCEPTION((AE_INFO, status, acpi_ds_exec_end_op()
473 if (ACPI_SUCCESS(status) && walk_state->result_obj) { acpi_ds_exec_end_op()
474 status = acpi_ds_exec_end_op()
487 status = acpi_ds_exec_end_control_op(walk_state, op); acpi_ds_exec_end_op()
531 status = acpi_ds_create_operands(walk_state, next_op); acpi_ds_exec_end_op()
532 if (ACPI_FAILURE(status)) { acpi_ds_exec_end_op()
541 status = acpi_ds_resolve_operands(walk_state); acpi_ds_exec_end_op()
542 if (ACPI_FAILURE(status)) { acpi_ds_exec_end_op()
554 status = AE_CTRL_TRANSFER; acpi_ds_exec_end_op()
560 return_ACPI_STATUS(status); acpi_ds_exec_end_op()
568 status = acpi_ds_load2_end_op(walk_state); acpi_ds_exec_end_op()
569 if (ACPI_FAILURE(status)) { acpi_ds_exec_end_op()
573 status = acpi_ds_exec_end_op()
593 status = acpi_ds_create_node(walk_state, acpi_ds_exec_end_op()
597 if (ACPI_FAILURE(status)) { acpi_ds_exec_end_op()
606 status = acpi_ds_exec_end_op()
616 status = acpi_ds_exec_end_op()
627 status = acpi_ds_exec_end_op()
638 status = acpi_ds_load2_end_op(walk_state); acpi_ds_exec_end_op()
639 if (ACPI_FAILURE(status)) { acpi_ds_exec_end_op()
648 status = acpi_ds_exec_end_op()
651 if (ACPI_FAILURE(status)) { acpi_ds_exec_end_op()
659 status = acpi_ds_exec_end_op()
662 if (ACPI_FAILURE(status)) { acpi_ds_exec_end_op()
670 status = acpi_ds_exec_end_op()
673 if (ACPI_FAILURE(status)) { acpi_ds_exec_end_op()
699 status = AE_NOT_IMPLEMENTED; acpi_ds_exec_end_op()
714 if ((ACPI_SUCCESS(status)) && acpi_ds_exec_end_op()
719 status = acpi_ds_exec_end_op()
751 if (ACPI_FAILURE(status)) { acpi_ds_exec_end_op()
752 status = acpi_ds_method_error(status, walk_state); acpi_ds_exec_end_op()
758 return_ACPI_STATUS(status); acpi_ds_exec_end_op()
H A Dpsloop.c89 acpi_status status = AE_OK; acpi_ps_get_arguments() local
112 status = acpi_ps_get_arguments()
116 if (ACPI_FAILURE(status)) { acpi_ps_get_arguments()
117 return_ACPI_STATUS(status); acpi_ps_get_arguments()
131 status = acpi_ps_get_arguments()
136 if (ACPI_FAILURE(status)) { acpi_ps_get_arguments()
137 return_ACPI_STATUS(status); acpi_ps_get_arguments()
401 acpi_status status = AE_OK; acpi_ps_parse_loop() local
439 status = acpi_ps_parse_loop()
443 if (ACPI_FAILURE(status) acpi_ps_parse_loop()
444 && ((status & AE_CODE_MASK) != acpi_ps_parse_loop()
446 if (status == AE_AML_NO_RETURN_VALUE) { acpi_ps_parse_loop()
447 ACPI_EXCEPTION((AE_INFO, status, acpi_ps_parse_loop()
451 ACPI_EXCEPTION((AE_INFO, status, acpi_ps_parse_loop()
453 return_ACPI_STATUS(status); acpi_ps_parse_loop()
456 status = acpi_ps_parse_loop()
458 status); acpi_ps_parse_loop()
481 status = acpi_ps_parse_loop()
483 if (ACPI_FAILURE(status)) { acpi_ps_parse_loop()
484 if (status == AE_CTRL_PARSE_CONTINUE) { acpi_ps_parse_loop()
488 if (status == AE_CTRL_PARSE_PENDING) { acpi_ps_parse_loop()
489 status = AE_OK; acpi_ps_parse_loop()
492 if (status == AE_CTRL_TERMINATE) { acpi_ps_parse_loop()
493 return_ACPI_STATUS(status); acpi_ps_parse_loop()
496 status = acpi_ps_parse_loop()
498 status); acpi_ps_parse_loop()
499 if (ACPI_FAILURE(status)) { acpi_ps_parse_loop()
500 return_ACPI_STATUS(status); acpi_ps_parse_loop()
521 status = acpi_ps_parse_loop()
523 if (ACPI_FAILURE(status)) { acpi_ps_parse_loop()
524 status = acpi_ps_parse_loop()
526 status); acpi_ps_parse_loop()
527 if (ACPI_FAILURE(status)) { acpi_ps_parse_loop()
528 return_ACPI_STATUS(status); acpi_ps_parse_loop()
542 status = acpi_ps_push_scope(parser_state, op, acpi_ps_parse_loop()
545 if (ACPI_FAILURE(status)) { acpi_ps_parse_loop()
546 status = acpi_ps_parse_loop()
548 status); acpi_ps_parse_loop()
549 if (ACPI_FAILURE(status)) { acpi_ps_parse_loop()
550 return_ACPI_STATUS(status); acpi_ps_parse_loop()
609 status = walk_state->ascending_callback(walk_state); acpi_ps_parse_loop()
610 status = acpi_ps_parse_loop()
611 acpi_ps_next_parse_state(walk_state, op, status); acpi_ps_parse_loop()
612 if (status == AE_CTRL_PENDING) { acpi_ps_parse_loop()
613 status = AE_OK; acpi_ps_parse_loop()
617 status = acpi_ps_complete_op(walk_state, &op, status); acpi_ps_parse_loop()
618 if (ACPI_FAILURE(status)) { acpi_ps_parse_loop()
619 return_ACPI_STATUS(status); acpi_ps_parse_loop()
624 status = acpi_ps_complete_final_op(walk_state, op, status); acpi_ps_parse_loop()
625 return_ACPI_STATUS(status); acpi_ps_parse_loop()
H A Devevent.c70 acpi_status status; acpi_ev_initialize_events() local
85 status = acpi_ev_fixed_event_initialize(); acpi_ev_initialize_events()
86 if (ACPI_FAILURE(status)) { acpi_ev_initialize_events()
87 ACPI_EXCEPTION((AE_INFO, status, acpi_ev_initialize_events()
89 return_ACPI_STATUS(status); acpi_ev_initialize_events()
92 status = acpi_ev_gpe_initialize(); acpi_ev_initialize_events()
93 if (ACPI_FAILURE(status)) { acpi_ev_initialize_events()
94 ACPI_EXCEPTION((AE_INFO, status, acpi_ev_initialize_events()
96 return_ACPI_STATUS(status); acpi_ev_initialize_events()
99 return_ACPI_STATUS(status); acpi_ev_initialize_events()
116 acpi_status status; acpi_ev_install_xrupt_handlers() local
128 status = acpi_ev_install_sci_handler(); acpi_ev_install_xrupt_handlers()
129 if (ACPI_FAILURE(status)) { acpi_ev_install_xrupt_handlers()
130 ACPI_EXCEPTION((AE_INFO, status, acpi_ev_install_xrupt_handlers()
132 return_ACPI_STATUS(status); acpi_ev_install_xrupt_handlers()
137 status = acpi_ev_init_global_lock_handler(); acpi_ev_install_xrupt_handlers()
138 if (ACPI_FAILURE(status)) { acpi_ev_install_xrupt_handlers()
139 ACPI_EXCEPTION((AE_INFO, status, acpi_ev_install_xrupt_handlers()
141 return_ACPI_STATUS(status); acpi_ev_install_xrupt_handlers()
145 return_ACPI_STATUS(status); acpi_ev_install_xrupt_handlers()
163 acpi_status status; acpi_ev_fixed_event_initialize() local
176 status = acpi_ev_fixed_event_initialize()
180 if (ACPI_FAILURE(status)) { acpi_ev_fixed_event_initialize()
181 return (status); acpi_ev_fixed_event_initialize()
197 * DESCRIPTION: Checks the PM status register for active fixed events
211 * Read the fixed feature status and enable registers, as all the cases acpi_ev_fixed_event_detect()
226 /* Both the status and enable bits must be on for this event */ acpi_ev_fixed_event_detect()
258 * DESCRIPTION: Clears the status bit for the requested event, calls the
270 /* Clear the status bit */ acpi_ev_fixed_event_dispatch()
H A Dexsystem.c67 acpi_status status; acpi_ex_system_wait_semaphore() local
71 status = acpi_os_wait_semaphore(semaphore, 1, ACPI_DO_NOT_WAIT); acpi_ex_system_wait_semaphore()
72 if (ACPI_SUCCESS(status)) { acpi_ex_system_wait_semaphore()
73 return_ACPI_STATUS(status); acpi_ex_system_wait_semaphore()
76 if (status == AE_TIME) { acpi_ex_system_wait_semaphore()
82 status = acpi_os_wait_semaphore(semaphore, 1, timeout); acpi_ex_system_wait_semaphore()
86 acpi_format_exception(status))); acpi_ex_system_wait_semaphore()
93 return_ACPI_STATUS(status); acpi_ex_system_wait_semaphore()
113 acpi_status status; acpi_ex_system_wait_mutex() local
117 status = acpi_os_acquire_mutex(mutex, ACPI_DO_NOT_WAIT); acpi_ex_system_wait_mutex()
118 if (ACPI_SUCCESS(status)) { acpi_ex_system_wait_mutex()
119 return_ACPI_STATUS(status); acpi_ex_system_wait_mutex()
122 if (status == AE_TIME) { acpi_ex_system_wait_mutex()
128 status = acpi_os_acquire_mutex(mutex, timeout); acpi_ex_system_wait_mutex()
132 acpi_format_exception(status))); acpi_ex_system_wait_mutex()
139 return_ACPI_STATUS(status); acpi_ex_system_wait_mutex()
161 acpi_status status = AE_OK; acpi_ex_system_do_stall() local
174 status = AE_AML_OPERAND_VALUE; acpi_ex_system_do_stall()
179 return (status); acpi_ex_system_do_stall()
234 acpi_status status = AE_OK; acpi_ex_system_signal_event() local
239 status = acpi_ex_system_signal_event()
243 return_ACPI_STATUS(status); acpi_ex_system_signal_event()
265 acpi_status status = AE_OK; acpi_ex_system_wait_event() local
270 status = acpi_ex_system_wait_event()
276 return_ACPI_STATUS(status); acpi_ex_system_wait_event()
293 acpi_status status = AE_OK; acpi_ex_system_reset_event() local
302 status = acpi_ex_system_reset_event()
304 if (ACPI_SUCCESS(status)) { acpi_ex_system_reset_event()
309 return (status); acpi_ex_system_reset_event()
H A Ddbtest.c204 acpi_status status; acpi_db_test_all_objects() local
209 status = acpi_install_method(read_method_code); acpi_db_test_all_objects()
210 if (ACPI_FAILURE(status)) { acpi_db_test_all_objects()
213 acpi_format_exception(status)); acpi_db_test_all_objects()
217 status = acpi_db_test_all_objects()
219 if (ACPI_FAILURE(status)) { acpi_db_test_all_objects()
230 status = acpi_install_method(write_method_code); acpi_db_test_all_objects()
231 if (ACPI_FAILURE(status)) { acpi_db_test_all_objects()
234 acpi_format_exception(status)); acpi_db_test_all_objects()
238 status = acpi_db_test_all_objects()
240 if (ACPI_FAILURE(status)) { acpi_db_test_all_objects()
281 acpi_status status = AE_OK; acpi_db_test_one_object() local
385 status = acpi_db_test_integer_type(node, bit_length); acpi_db_test_one_object()
390 status = acpi_db_test_string_type(node, byte_length); acpi_db_test_one_object()
395 status = acpi_db_test_buffer_type(node, bit_length); acpi_db_test_one_object()
419 return (status); acpi_db_test_one_object()
447 acpi_status status; acpi_db_test_integer_type() local
457 status = acpi_db_read_from_object(node, ACPI_TYPE_INTEGER, &temp1); acpi_db_test_integer_type()
458 if (ACPI_FAILURE(status)) { acpi_db_test_integer_type()
459 return (status); acpi_db_test_integer_type()
475 status = acpi_db_write_to_object(node, &write_value); acpi_db_test_integer_type()
476 if (ACPI_FAILURE(status)) { acpi_db_test_integer_type()
482 status = acpi_db_read_from_object(node, ACPI_TYPE_INTEGER, &temp2); acpi_db_test_integer_type()
483 if (ACPI_FAILURE(status)) { acpi_db_test_integer_type()
496 status = acpi_db_write_to_object(node, &write_value); acpi_db_test_integer_type()
497 if (ACPI_FAILURE(status)) { acpi_db_test_integer_type()
503 status = acpi_db_read_from_object(node, ACPI_TYPE_INTEGER, &temp3); acpi_db_test_integer_type()
504 if (ACPI_FAILURE(status)) { acpi_db_test_integer_type()
550 acpi_status status; acpi_db_test_buffer_type() local
570 status = acpi_db_read_from_object(node, ACPI_TYPE_BUFFER, &temp1); acpi_db_test_buffer_type()
571 if (ACPI_FAILURE(status)) { acpi_db_test_buffer_type()
601 status = acpi_db_write_to_object(node, &write_value); acpi_db_test_buffer_type()
602 if (ACPI_FAILURE(status)) { acpi_db_test_buffer_type()
608 status = acpi_db_read_from_object(node, ACPI_TYPE_BUFFER, &temp2); acpi_db_test_buffer_type()
609 if (ACPI_FAILURE(status)) { acpi_db_test_buffer_type()
622 status = acpi_db_write_to_object(node, &write_value); acpi_db_test_buffer_type()
623 if (ACPI_FAILURE(status)) { acpi_db_test_buffer_type()
629 status = acpi_db_read_from_object(node, ACPI_TYPE_BUFFER, &temp3); acpi_db_test_buffer_type()
630 if (ACPI_FAILURE(status)) { acpi_db_test_buffer_type()
649 return (status); acpi_db_test_buffer_type()
675 acpi_status status; acpi_db_test_string_type() local
679 status = acpi_db_read_from_object(node, ACPI_TYPE_STRING, &temp1); acpi_db_test_string_type()
680 if (ACPI_FAILURE(status)) { acpi_db_test_string_type()
681 return (status); acpi_db_test_string_type()
693 status = acpi_db_write_to_object(node, &write_value); acpi_db_test_string_type()
694 if (ACPI_FAILURE(status)) { acpi_db_test_string_type()
700 status = acpi_db_read_from_object(node, ACPI_TYPE_STRING, &temp2); acpi_db_test_string_type()
701 if (ACPI_FAILURE(status)) { acpi_db_test_string_type()
715 status = acpi_db_write_to_object(node, &write_value); acpi_db_test_string_type()
716 if (ACPI_FAILURE(status)) { acpi_db_test_string_type()
722 status = acpi_db_read_from_object(node, ACPI_TYPE_STRING, &temp3); acpi_db_test_string_type()
723 if (ACPI_FAILURE(status)) { acpi_db_test_string_type()
742 return (status); acpi_db_test_string_type()
771 acpi_status status; acpi_db_read_from_object() local
783 status = acpi_evaluate_object(read_handle, NULL, acpi_db_read_from_object()
787 if (ACPI_FAILURE(status)) { acpi_db_read_from_object()
789 acpi_format_exception(status)); acpi_db_read_from_object()
790 return (status); acpi_db_read_from_object()
825 return (status); acpi_db_read_from_object()
850 acpi_status status; acpi_db_write_to_object() local
864 status = acpi_evaluate_object(write_handle, NULL, &param_objects, NULL); acpi_db_write_to_object()
867 if (ACPI_FAILURE(status)) { acpi_db_write_to_object()
869 acpi_format_exception(status)); acpi_db_write_to_object()
872 return (status); acpi_db_write_to_object()
939 acpi_status status; acpi_db_evaluate_one_predefined_name() local
963 status = acpi_get_object_info(obj_handle, &obj_info); acpi_db_evaluate_one_predefined_name()
964 if (ACPI_FAILURE(status)) { acpi_db_evaluate_one_predefined_name()
966 return (status); acpi_db_evaluate_one_predefined_name()
1038 status = acpi_evaluate_object(node, NULL, &param_objects, &return_obj); acpi_db_evaluate_one_predefined_name()
1041 pathname, acpi_format_exception(status)); acpi_db_evaluate_one_predefined_name()
1045 /* Ignore status from method execution */ acpi_db_evaluate_one_predefined_name()
1047 status = AE_OK; acpi_db_evaluate_one_predefined_name()
1053 status = AE_CTRL_TERMINATE; acpi_db_evaluate_one_predefined_name()
1056 return (status); acpi_db_evaluate_one_predefined_name()
H A Dexoparg1.c89 acpi_status status = AE_OK; acpi_ex_opcode_0A_0T_1R() local
105 status = AE_NO_MEMORY; acpi_ex_opcode_0A_0T_1R()
114 status = AE_AML_BAD_OPCODE; acpi_ex_opcode_0A_0T_1R()
122 if ((ACPI_FAILURE(status)) || walk_state->result_obj) { acpi_ex_opcode_0A_0T_1R()
131 return_ACPI_STATUS(status); acpi_ex_opcode_0A_0T_1R()
150 acpi_status status = AE_OK; acpi_ex_opcode_1A_0T_0R() local
160 status = acpi_ex_release_mutex(operand[0], walk_state); acpi_ex_opcode_1A_0T_0R()
165 status = acpi_ex_system_reset_event(operand[0]); acpi_ex_opcode_1A_0T_0R()
170 status = acpi_ex_system_signal_event(operand[0]); acpi_ex_opcode_1A_0T_0R()
175 status = acpi_ex_system_do_sleep(operand[0]->integer.value); acpi_ex_opcode_1A_0T_0R()
180 status = acpi_ex_opcode_1A_0T_0R()
186 status = acpi_ex_unload_table(operand[0]); acpi_ex_opcode_1A_0T_0R()
193 status = AE_AML_BAD_OPCODE; acpi_ex_opcode_1A_0T_0R()
197 return_ACPI_STATUS(status); acpi_ex_opcode_1A_0T_0R()
215 acpi_status status = AE_OK; acpi_ex_opcode_1A_1T_0R() local
226 status = acpi_ex_load_op(operand[0], operand[1], walk_state); acpi_ex_opcode_1A_1T_0R()
233 status = AE_AML_BAD_OPCODE; acpi_ex_opcode_1A_1T_0R()
239 return_ACPI_STATUS(status); acpi_ex_opcode_1A_1T_0R()
257 acpi_status status = AE_OK; acpi_ex_opcode_1A_1T_1R() local
283 status = AE_NO_MEMORY; acpi_ex_opcode_1A_1T_1R()
356 status = AE_AML_NUMERIC_OVERFLOW; acpi_ex_opcode_1A_1T_1R()
403 status = AE_AML_NUMERIC_OVERFLOW; acpi_ex_opcode_1A_1T_1R()
426 status = acpi_ex_get_object_reference(operand[0], acpi_ex_opcode_1A_1T_1R()
429 if (ACPI_FAILURE(status)) { acpi_ex_opcode_1A_1T_1R()
433 status = acpi_ex_opcode_1A_1T_1R()
456 status = acpi_ex_store(operand[0], operand[1], walk_state); acpi_ex_opcode_1A_1T_1R()
457 if (ACPI_FAILURE(status)) { acpi_ex_opcode_1A_1T_1R()
458 return_ACPI_STATUS(status); acpi_ex_opcode_1A_1T_1R()
473 return_ACPI_STATUS(status); acpi_ex_opcode_1A_1T_1R()
480 status = acpi_ex_opcode_1A_1T_1R()
487 status = acpi_ex_convert_to_string(operand[0], &return_desc, acpi_ex_opcode_1A_1T_1R()
498 status = acpi_ex_convert_to_string(operand[0], &return_desc, acpi_ex_opcode_1A_1T_1R()
509 status = acpi_ex_convert_to_buffer(operand[0], &return_desc); acpi_ex_opcode_1A_1T_1R()
519 status = acpi_ex_convert_to_integer(operand[0], &return_desc, acpi_ex_opcode_1A_1T_1R()
536 status = AE_SUPPORT; acpi_ex_opcode_1A_1T_1R()
543 status = AE_AML_BAD_OPCODE; acpi_ex_opcode_1A_1T_1R()
547 if (ACPI_SUCCESS(status)) { acpi_ex_opcode_1A_1T_1R()
551 status = acpi_ex_store(return_desc, operand[1], walk_state); acpi_ex_opcode_1A_1T_1R()
558 if (ACPI_FAILURE(status)) { acpi_ex_opcode_1A_1T_1R()
568 return_ACPI_STATUS(status); acpi_ex_opcode_1A_1T_1R()
588 acpi_status status = AE_OK; acpi_ex_opcode_1A_0T_1R() local
602 status = AE_NO_MEMORY; acpi_ex_opcode_1A_0T_1R()
623 status = AE_NO_MEMORY; acpi_ex_opcode_1A_0T_1R()
647 status = acpi_ex_opcode_1A_0T_1R()
650 if (ACPI_FAILURE(status)) { acpi_ex_opcode_1A_0T_1R()
651 ACPI_EXCEPTION((AE_INFO, status, acpi_ex_opcode_1A_0T_1R()
679 status = acpi_ex_store(return_desc, operand[0], walk_state); acpi_ex_opcode_1A_0T_1R()
692 status = acpi_ex_opcode_1A_0T_1R()
695 if (ACPI_FAILURE(status)) { acpi_ex_opcode_1A_0T_1R()
703 status = AE_NO_MEMORY; acpi_ex_opcode_1A_0T_1R()
716 status = acpi_ex_resolve_multiple(walk_state, acpi_ex_opcode_1A_0T_1R()
719 if (ACPI_FAILURE(status)) { acpi_ex_opcode_1A_0T_1R()
747 status = acpi_ds_get_buffer_arguments(temp_desc); acpi_ex_opcode_1A_0T_1R()
755 status = acpi_ds_get_package_arguments(temp_desc); acpi_ex_opcode_1A_0T_1R()
764 status = AE_AML_OPERAND_TYPE; acpi_ex_opcode_1A_0T_1R()
768 if (ACPI_FAILURE(status)) { acpi_ex_opcode_1A_0T_1R()
778 status = AE_NO_MEMORY; acpi_ex_opcode_1A_0T_1R()
785 status = acpi_ex_opcode_1A_0T_1R()
788 if (ACPI_FAILURE(status)) { acpi_ex_opcode_1A_0T_1R()
810 status = AE_AML_OPERAND_TYPE; acpi_ex_opcode_1A_0T_1R()
827 status = acpi_ex_opcode_1A_0T_1R()
832 if (ACPI_FAILURE(status)) { acpi_ex_opcode_1A_0T_1R()
867 status = AE_AML_OPERAND_TYPE; acpi_ex_opcode_1A_0T_1R()
883 status = acpi_ex_opcode_1A_0T_1R()
892 if (ACPI_FAILURE(status)) { acpi_ex_opcode_1A_0T_1R()
896 status = acpi_ex_opcode_1A_0T_1R()
953 status = AE_NO_MEMORY; acpi_ex_opcode_1A_0T_1R()
984 status = AE_AML_OPERAND_TYPE; acpi_ex_opcode_1A_0T_1R()
1014 status = acpi_ex_opcode_1A_0T_1R()
1018 if (ACPI_FAILURE(status)) { acpi_ex_opcode_1A_0T_1R()
1043 status = AE_TYPE; acpi_ex_opcode_1A_0T_1R()
1053 status = AE_AML_BAD_OPCODE; acpi_ex_opcode_1A_0T_1R()
1061 if (ACPI_FAILURE(status)) { acpi_ex_opcode_1A_0T_1R()
1071 return_ACPI_STATUS(status); acpi_ex_opcode_1A_0T_1R()
H A Ddbexec.c131 acpi_status status; acpi_db_execute_method() local
155 status = acpi_db_convert_to_object(info->types[i], acpi_db_execute_method()
158 if (ACPI_FAILURE(status)) { acpi_db_execute_method()
159 ACPI_EXCEPTION((AE_INFO, status, acpi_db_execute_method()
177 status = acpi_evaluate_object(NULL, info->pathname, acpi_db_execute_method()
183 if (ACPI_FAILURE(status)) { acpi_db_execute_method()
184 ACPI_EXCEPTION((AE_INFO, status, acpi_db_execute_method()
188 if (status == AE_BUFFER_OVERFLOW) { acpi_db_execute_method()
199 return_ACPI_STATUS(status); acpi_db_execute_method()
216 acpi_status status; acpi_db_execute_setup() local
226 status = AE_BUFFER_OVERFLOW; acpi_db_execute_setup()
233 status = AE_BUFFER_OVERFLOW; acpi_db_execute_setup()
257 ACPI_EXCEPTION((AE_INFO, status, "During setup for method execution")); acpi_db_execute_setup()
258 return (status); acpi_db_execute_setup()
320 acpi_status status; acpi_db_execution_walk() local
337 status = acpi_evaluate_object(node, NULL, NULL, &return_obj); acpi_db_execution_walk()
341 acpi_format_exception(status)); acpi_db_execution_walk()
366 acpi_status status; acpi_db_execute() local
414 status = acpi_db_execute_setup(&acpi_gbl_db_method_info); acpi_db_execute()
415 if (ACPI_FAILURE(status)) { acpi_db_execute()
422 status = acpi_get_handle(NULL, acpi_gbl_db_method_info.pathname, acpi_db_execute()
424 if (ACPI_SUCCESS(status)) { acpi_db_execute()
425 status = acpi_db_execute()
454 if (ACPI_FAILURE(status)) { acpi_db_execute()
455 acpi_os_printf("Evaluation of %s failed with status %s\n", acpi_db_execute()
457 acpi_format_exception(status)); acpi_db_execute()
504 acpi_status status; acpi_db_method_thread() local
544 status = acpi_db_execute_method(&local_info, &return_obj); acpi_db_method_thread()
545 if (ACPI_FAILURE(status)) { acpi_db_method_thread()
548 acpi_format_exception(status), info->pathname, i); acpi_db_method_thread()
549 if (status == AE_ABORT_METHOD) { acpi_db_method_thread()
585 status = acpi_os_signal_semaphore(info->main_thread_gate, 1); acpi_db_method_thread()
586 if (ACPI_FAILURE(status)) { acpi_db_method_thread()
589 acpi_format_exception(status)); acpi_db_method_thread()
612 acpi_status status; acpi_db_create_execution_threads() local
636 status = acpi_os_create_semaphore(1, 0, &main_thread_gate); acpi_db_create_execution_threads()
637 if (ACPI_FAILURE(status)) { acpi_db_create_execution_threads()
640 acpi_format_exception(status)); acpi_db_create_execution_threads()
648 status = acpi_os_create_semaphore(1, 1, &thread_complete_gate); acpi_db_create_execution_threads()
649 if (ACPI_FAILURE(status)) { acpi_db_create_execution_threads()
652 acpi_format_exception(status)); acpi_db_create_execution_threads()
658 status = acpi_os_create_semaphore(1, 1, &info_gate); acpi_db_create_execution_threads()
659 if (ACPI_FAILURE(status)) { acpi_db_create_execution_threads()
662 acpi_format_exception(status)); acpi_db_create_execution_threads()
715 status = acpi_db_execute_setup(&acpi_gbl_db_method_info); acpi_db_create_execution_threads()
716 if (ACPI_FAILURE(status)) { acpi_db_create_execution_threads()
722 status = acpi_get_handle(NULL, acpi_gbl_db_method_info.pathname, acpi_db_create_execution_threads()
724 if (ACPI_FAILURE(status)) { acpi_db_create_execution_threads()
726 acpi_format_exception(status), acpi_db_create_execution_threads()
737 status = acpi_db_create_execution_threads()
741 if (ACPI_FAILURE(status)) { acpi_db_create_execution_threads()
H A Dexoparg2.c94 acpi_status status = AE_OK; acpi_ex_opcode_2A_0T_0R() local
119 status = AE_AML_OPERAND_TYPE; acpi_ex_opcode_2A_0T_0R()
130 status = acpi_ev_queue_notify_request(node, value); acpi_ex_opcode_2A_0T_0R()
137 status = AE_AML_BAD_OPCODE; acpi_ex_opcode_2A_0T_0R()
140 return_ACPI_STATUS(status); acpi_ex_opcode_2A_0T_0R()
161 acpi_status status; acpi_ex_opcode_2A_2T_1R() local
176 status = AE_NO_MEMORY; acpi_ex_opcode_2A_2T_1R()
183 status = AE_NO_MEMORY; acpi_ex_opcode_2A_2T_1R()
189 status = acpi_ut_divide(operand[0]->integer.value, acpi_ex_opcode_2A_2T_1R()
193 if (ACPI_FAILURE(status)) { acpi_ex_opcode_2A_2T_1R()
202 status = AE_AML_BAD_OPCODE; acpi_ex_opcode_2A_2T_1R()
208 status = acpi_ex_store(return_desc2, operand[2], walk_state); acpi_ex_opcode_2A_2T_1R()
209 if (ACPI_FAILURE(status)) { acpi_ex_opcode_2A_2T_1R()
213 status = acpi_ex_store(return_desc1, operand[3], walk_state); acpi_ex_opcode_2A_2T_1R()
214 if (ACPI_FAILURE(status)) { acpi_ex_opcode_2A_2T_1R()
225 if (ACPI_FAILURE(status)) { acpi_ex_opcode_2A_2T_1R()
238 return_ACPI_STATUS(status); acpi_ex_opcode_2A_2T_1R()
259 acpi_status status = AE_OK; acpi_ex_opcode_2A_1T_1R() local
273 status = AE_NO_MEMORY; acpi_ex_opcode_2A_1T_1R()
289 status = AE_NO_MEMORY; acpi_ex_opcode_2A_1T_1R()
295 status = acpi_ut_divide(operand[0]->integer.value, acpi_ex_opcode_2A_1T_1R()
302 status = acpi_ex_do_concatenate(operand[0], operand[1], acpi_ex_opcode_2A_1T_1R()
332 status = AE_NO_MEMORY; acpi_ex_opcode_2A_1T_1R()
348 status = acpi_ex_concat_template(operand[0], operand[1], acpi_ex_opcode_2A_1T_1R()
359 status = AE_NO_MEMORY; acpi_ex_opcode_2A_1T_1R()
378 status = AE_AML_STRING_LIMIT; acpi_ex_opcode_2A_1T_1R()
391 status = AE_AML_BUFFER_LIMIT; acpi_ex_opcode_2A_1T_1R()
404 status = AE_AML_PACKAGE_LIMIT; acpi_ex_opcode_2A_1T_1R()
414 status = AE_AML_INTERNAL; acpi_ex_opcode_2A_1T_1R()
420 if (ACPI_FAILURE(status)) { acpi_ex_opcode_2A_1T_1R()
421 ACPI_EXCEPTION((AE_INFO, status, acpi_ex_opcode_2A_1T_1R()
437 status = acpi_ex_store(return_desc, operand[2], walk_state); acpi_ex_opcode_2A_1T_1R()
448 status = AE_AML_BAD_OPCODE; acpi_ex_opcode_2A_1T_1R()
454 if (ACPI_SUCCESS(status)) { acpi_ex_opcode_2A_1T_1R()
459 status = acpi_ex_store(return_desc, operand[2], walk_state); acpi_ex_opcode_2A_1T_1R()
460 if (ACPI_FAILURE(status)) { acpi_ex_opcode_2A_1T_1R()
473 if (ACPI_FAILURE(status)) { acpi_ex_opcode_2A_1T_1R()
478 return_ACPI_STATUS(status); acpi_ex_opcode_2A_1T_1R()
497 acpi_status status = AE_OK; acpi_ex_opcode_2A_0T_1R() local
507 status = AE_NO_MEMORY; acpi_ex_opcode_2A_0T_1R()
517 status = acpi_ex_do_logical_numeric_op(walk_state->opcode, acpi_ex_opcode_2A_0T_1R()
527 status = acpi_ex_do_logical_op(walk_state->opcode, operand[0], acpi_ex_opcode_2A_0T_1R()
535 status = acpi_ex_opcode_2A_0T_1R()
537 if (status == AE_TIME) { acpi_ex_opcode_2A_0T_1R()
539 status = AE_OK; acpi_ex_opcode_2A_0T_1R()
545 status = acpi_ex_system_wait_event(operand[1], operand[0]); acpi_ex_opcode_2A_0T_1R()
546 if (status == AE_TIME) { acpi_ex_opcode_2A_0T_1R()
548 status = AE_OK; acpi_ex_opcode_2A_0T_1R()
556 status = AE_AML_BAD_OPCODE; acpi_ex_opcode_2A_0T_1R()
573 if (ACPI_FAILURE(status)) { acpi_ex_opcode_2A_0T_1R()
583 return_ACPI_STATUS(status); acpi_ex_opcode_2A_0T_1R()
H A Dnsload.c77 acpi_status status; acpi_ns_load_table() local
90 status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE); acpi_ns_load_table()
91 if (ACPI_FAILURE(status)) { acpi_ns_load_table()
92 return_ACPI_STATUS(status); acpi_ns_load_table()
98 status = AE_ALREADY_EXISTS; acpi_ns_load_table()
105 status = acpi_tb_allocate_owner_id(table_index); acpi_ns_load_table()
106 if (ACPI_FAILURE(status)) { acpi_ns_load_table()
110 status = acpi_ns_parse_table(table_index, node); acpi_ns_load_table()
111 if (ACPI_SUCCESS(status)) { acpi_ns_load_table()
128 return_ACPI_STATUS(status); acpi_ns_load_table()
134 if (ACPI_FAILURE(status)) { acpi_ns_load_table()
135 return_ACPI_STATUS(status); acpi_ns_load_table()
147 status = acpi_ds_initialize_objects(table_index, node); acpi_ns_load_table()
152 return_ACPI_STATUS(status); acpi_ns_load_table()
171 acpi_status status; acpi_ns_load_namespace() local
186 status = acpi_ns_load_table_by_type(ACPI_TABLE_ID_DSDT); acpi_ns_load_namespace()
187 if (ACPI_FAILURE(status)) { acpi_ns_load_namespace()
188 return_ACPI_STATUS(status); acpi_ns_load_namespace()
200 return_ACPI_STATUS(status); acpi_ns_load_namespace()
223 acpi_status status; acpi_ns_delete_subtree() local
244 status = acpi_get_next_object(ACPI_TYPE_ANY, parent_handle, acpi_ns_delete_subtree()
251 if (ACPI_SUCCESS(status)) { acpi_ns_delete_subtree()
278 status = acpi_get_parent(parent_handle, &parent_handle); acpi_ns_delete_subtree()
279 if (ACPI_FAILURE(status)) { acpi_ns_delete_subtree()
280 return_ACPI_STATUS(status); acpi_ns_delete_subtree()
307 acpi_status status; acpi_ns_unload_namespace() local
323 status = acpi_ns_delete_subtree(handle); acpi_ns_unload_namespace()
325 return_ACPI_STATUS(status); acpi_ns_unload_namespace()
H A Devgpeblk.c80 acpi_status status; acpi_ev_install_gpe_block() local
85 status = acpi_ut_acquire_mutex(ACPI_MTX_EVENTS); acpi_ev_install_gpe_block()
86 if (ACPI_FAILURE(status)) { acpi_ev_install_gpe_block()
87 return_ACPI_STATUS(status); acpi_ev_install_gpe_block()
90 status = acpi_ev_install_gpe_block()
92 if (ACPI_FAILURE(status)) { acpi_ev_install_gpe_block()
116 return_ACPI_STATUS(status); acpi_ev_install_gpe_block()
133 acpi_status status; acpi_ev_delete_gpe_block() local
138 status = acpi_ut_acquire_mutex(ACPI_MTX_EVENTS); acpi_ev_delete_gpe_block()
139 if (ACPI_FAILURE(status)) { acpi_ev_delete_gpe_block()
140 return_ACPI_STATUS(status); acpi_ev_delete_gpe_block()
145 status = acpi_ev_delete_gpe_block()
152 status = acpi_ev_delete_gpe_xrupt(gpe_block->xrupt_block); acpi_ev_delete_gpe_block()
153 if (ACPI_FAILURE(status)) { acpi_ev_delete_gpe_block()
182 status = acpi_ut_release_mutex(ACPI_MTX_EVENTS); acpi_ev_delete_gpe_block()
183 return_ACPI_STATUS(status); acpi_ev_delete_gpe_block()
207 acpi_status status; acpi_ev_create_gpe_info_blocks() local
233 status = AE_NO_MEMORY; acpi_ev_create_gpe_info_blocks()
245 * sets in a given GPE hardware block, the status registers occupy the acpi_ev_create_gpe_info_blocks()
284 status = acpi_hw_write(0x00, &this_register->enable_address); acpi_ev_create_gpe_info_blocks()
285 if (ACPI_FAILURE(status)) { acpi_ev_create_gpe_info_blocks()
291 status = acpi_hw_write(0xFF, &this_register->status_address); acpi_ev_create_gpe_info_blocks()
292 if (ACPI_FAILURE(status)) { acpi_ev_create_gpe_info_blocks()
309 return_ACPI_STATUS(status); acpi_ev_create_gpe_info_blocks()
340 acpi_status status; acpi_ev_create_gpe_block() local
371 status = acpi_ev_create_gpe_info_blocks(gpe_block); acpi_ev_create_gpe_block()
372 if (ACPI_FAILURE(status)) { acpi_ev_create_gpe_block()
374 return_ACPI_STATUS(status); acpi_ev_create_gpe_block()
379 status = acpi_ev_install_gpe_block(gpe_block, interrupt_number); acpi_ev_create_gpe_block()
380 if (ACPI_FAILURE(status)) { acpi_ev_create_gpe_block()
384 return_ACPI_STATUS(status); acpi_ev_create_gpe_block()
395 status = acpi_ns_walk_namespace(ACPI_TYPE_METHOD, gpe_device, acpi_ev_create_gpe_block()
441 acpi_status status; acpi_ev_initialize_gpe_block() local
487 status = acpi_ev_add_gpe_reference(gpe_event_info); acpi_ev_initialize_gpe_block()
488 if (ACPI_FAILURE(status)) { acpi_ev_initialize_gpe_block()
489 ACPI_EXCEPTION((AE_INFO, status, acpi_ev_initialize_gpe_block()
H A Duteval.c77 acpi_status status; acpi_ut_evaluate_object() local
94 status = acpi_ns_evaluate(info); acpi_ut_evaluate_object()
95 if (ACPI_FAILURE(status)) { acpi_ut_evaluate_object()
96 if (status == AE_NOT_FOUND) { acpi_ut_evaluate_object()
103 prefix_node, path, status); acpi_ut_evaluate_object()
116 status = AE_NOT_EXIST; acpi_ut_evaluate_object()
176 status = AE_TYPE; acpi_ut_evaluate_object()
186 return_ACPI_STATUS(status); acpi_ut_evaluate_object()
212 acpi_status status; acpi_ut_evaluate_numeric_object() local
216 status = acpi_ut_evaluate_object(device_node, object_name, acpi_ut_evaluate_numeric_object()
218 if (ACPI_FAILURE(status)) { acpi_ut_evaluate_numeric_object()
219 return_ACPI_STATUS(status); acpi_ut_evaluate_numeric_object()
229 return_ACPI_STATUS(status); acpi_ut_evaluate_numeric_object()
237 * flags - Where the status flags are returned
253 acpi_status status; acpi_ut_execute_STA() local
257 status = acpi_ut_evaluate_object(device_node, METHOD_NAME__STA, acpi_ut_execute_STA()
259 if (ACPI_FAILURE(status)) { acpi_ut_execute_STA()
260 if (AE_NOT_FOUND == status) { acpi_ut_execute_STA()
271 status = AE_OK; acpi_ut_execute_STA()
274 return_ACPI_STATUS(status); acpi_ut_execute_STA()
277 /* Extract the status flags */ acpi_ut_execute_STA()
284 return_ACPI_STATUS(status); acpi_ut_execute_STA()
311 acpi_status status; acpi_ut_execute_power_methods() local
322 status = acpi_ut_evaluate_object(device_node, acpi_ut_execute_power_methods()
326 if (ACPI_SUCCESS(status)) { acpi_ut_execute_power_methods()
337 if (status == AE_NOT_FOUND) { acpi_ut_execute_power_methods()
345 acpi_format_exception(status))); acpi_ut_execute_power_methods()
H A Ddsfield.c96 acpi_status status; acpi_ds_create_external_region() local
109 status = acpi_ns_lookup(walk_state->scope_info, path, ACPI_TYPE_REGION, acpi_ds_create_external_region()
112 if (ACPI_FAILURE(status)) { acpi_ds_create_external_region()
113 return (status); acpi_ds_create_external_region()
124 status = acpi_ns_attach_object(*node, obj_desc, ACPI_TYPE_REGION); acpi_ds_create_external_region()
125 return (status); acpi_ds_create_external_region()
154 acpi_status status; acpi_ds_create_buffer_field() local
181 status = AE_OK; acpi_ds_create_buffer_field()
205 status = acpi_ds_create_buffer_field()
210 if (ACPI_FAILURE(status)) { acpi_ds_create_buffer_field()
211 ACPI_ERROR_NAMESPACE(arg->common.value.string, status); acpi_ds_create_buffer_field()
212 return_ACPI_STATUS(status); acpi_ds_create_buffer_field()
242 status = AE_NO_MEMORY; acpi_ds_create_buffer_field()
257 status = acpi_ns_attach_object(node, obj_desc, ACPI_TYPE_BUFFER_FIELD); acpi_ds_create_buffer_field()
258 if (ACPI_FAILURE(status)) { acpi_ds_create_buffer_field()
267 return_ACPI_STATUS(status); acpi_ds_create_buffer_field()
290 acpi_status status; acpi_ds_get_field_names() local
377 status = acpi_ns_lookup(walk_state->scope_info, acpi_ds_get_field_names()
384 if (ACPI_FAILURE(status)) { acpi_ds_get_field_names()
387 status); acpi_ds_get_field_names()
388 return_ACPI_STATUS(status); acpi_ds_get_field_names()
397 status = acpi_ns_lookup(walk_state->scope_info, acpi_ds_get_field_names()
403 if (ACPI_FAILURE(status)) { acpi_ds_get_field_names()
405 status); acpi_ds_get_field_names()
406 return_ACPI_STATUS(status); acpi_ds_get_field_names()
419 status = acpi_ex_prep_field_value(info); acpi_ds_get_field_names()
420 if (ACPI_FAILURE(status)) { acpi_ds_get_field_names()
421 return_ACPI_STATUS(status); acpi_ds_get_field_names()
477 acpi_status status; acpi_ds_create_field() local
488 status = acpi_ds_create_field()
494 status = acpi_ds_create_external_region(status, arg, acpi_ds_create_field()
499 if (ACPI_FAILURE(status)) { acpi_ds_create_field()
500 ACPI_ERROR_NAMESPACE(arg->common.value.name, status); acpi_ds_create_field()
501 return_ACPI_STATUS(status); acpi_ds_create_field()
518 status = acpi_ds_get_field_names(&info, walk_state, arg->common.next); acpi_ds_create_field()
519 return_ACPI_STATUS(status); acpi_ds_create_field()
541 acpi_status status; acpi_ds_init_field_objects() local
614 status = acpi_ns_lookup(walk_state->scope_info, acpi_ds_init_field_objects()
618 if (ACPI_FAILURE(status)) { acpi_ds_init_field_objects()
620 status); acpi_ds_init_field_objects()
621 if (status != AE_ALREADY_EXISTS) { acpi_ds_init_field_objects()
622 return_ACPI_STATUS(status); acpi_ds_init_field_objects()
627 status = AE_OK; acpi_ds_init_field_objects()
660 acpi_status status; acpi_ds_create_bank_field() local
670 status = acpi_ds_create_bank_field()
676 status = acpi_ds_create_external_region(status, arg, acpi_ds_create_bank_field()
681 if (ACPI_FAILURE(status)) { acpi_ds_create_bank_field()
682 ACPI_ERROR_NAMESPACE(arg->common.value.name, status); acpi_ds_create_bank_field()
683 return_ACPI_STATUS(status); acpi_ds_create_bank_field()
690 status = acpi_ds_create_bank_field()
695 if (ACPI_FAILURE(status)) { acpi_ds_create_bank_field()
696 ACPI_ERROR_NAMESPACE(arg->common.value.string, status); acpi_ds_create_bank_field()
697 return_ACPI_STATUS(status); acpi_ds_create_bank_field()
727 status = acpi_ds_get_field_names(&info, walk_state, arg->common.next); acpi_ds_create_bank_field()
728 return_ACPI_STATUS(status); acpi_ds_create_bank_field()
750 acpi_status status; acpi_ds_create_index_field() local
759 status = acpi_ds_create_index_field()
764 if (ACPI_FAILURE(status)) { acpi_ds_create_index_field()
765 ACPI_ERROR_NAMESPACE(arg->common.value.string, status); acpi_ds_create_index_field()
766 return_ACPI_STATUS(status); acpi_ds_create_index_field()
772 status = acpi_ds_create_index_field()
777 if (ACPI_FAILURE(status)) { acpi_ds_create_index_field()
778 ACPI_ERROR_NAMESPACE(arg->common.value.string, status); acpi_ds_create_index_field()
779 return_ACPI_STATUS(status); acpi_ds_create_index_field()
792 status = acpi_ds_get_field_names(&info, walk_state, arg->common.next); acpi_ds_create_index_field()
793 return_ACPI_STATUS(status); acpi_ds_create_index_field()
H A Ddsopcode.c81 acpi_status status; acpi_ds_initialize_region() local
87 status = acpi_ev_initialize_region(obj_desc, FALSE); acpi_ds_initialize_region()
88 return (status); acpi_ds_initialize_region()
120 acpi_status status; acpi_ds_init_buffer_field() local
131 status = AE_AML_OPERAND_TYPE; acpi_ds_init_buffer_field()
146 status = AE_AML_OPERAND_TYPE; acpi_ds_init_buffer_field()
169 status = AE_AML_OPERAND_VALUE; acpi_ds_init_buffer_field()
224 status = AE_AML_BAD_OPCODE; acpi_ds_init_buffer_field()
237 status = AE_AML_BUFFER_LIMIT; acpi_ds_init_buffer_field()
246 status = acpi_ex_prep_common_field_object(obj_desc, field_flags, 0, acpi_ds_init_buffer_field()
248 if (ACPI_FAILURE(status)) { acpi_ds_init_buffer_field()
273 if (ACPI_FAILURE(status)) { acpi_ds_init_buffer_field()
281 return_ACPI_STATUS(status); acpi_ds_init_buffer_field()
302 acpi_status status; acpi_ds_eval_buffer_field_operands() local
321 status = acpi_ds_create_operands(walk_state, next_op); acpi_ds_eval_buffer_field_operands()
322 if (ACPI_FAILURE(status)) { acpi_ds_eval_buffer_field_operands()
323 return_ACPI_STATUS(status); acpi_ds_eval_buffer_field_operands()
333 status = acpi_ex_resolve_operands(op->common.aml_opcode, acpi_ds_eval_buffer_field_operands()
335 if (ACPI_FAILURE(status)) { acpi_ds_eval_buffer_field_operands()
336 ACPI_ERROR((AE_INFO, "(%s) bad operand(s), status 0x%X", acpi_ds_eval_buffer_field_operands()
338 status)); acpi_ds_eval_buffer_field_operands()
340 return_ACPI_STATUS(status); acpi_ds_eval_buffer_field_operands()
349 status = acpi_ds_eval_buffer_field_operands()
358 status = acpi_ds_eval_buffer_field_operands()
365 return_ACPI_STATUS(status); acpi_ds_eval_buffer_field_operands()
386 acpi_status status; acpi_ds_eval_region_operands() local
410 status = acpi_ds_create_operands(walk_state, next_op); acpi_ds_eval_region_operands()
411 if (ACPI_FAILURE(status)) { acpi_ds_eval_region_operands()
412 return_ACPI_STATUS(status); acpi_ds_eval_region_operands()
417 status = acpi_ex_resolve_operands(op->common.aml_opcode, acpi_ds_eval_region_operands()
419 if (ACPI_FAILURE(status)) { acpi_ds_eval_region_operands()
420 return_ACPI_STATUS(status); acpi_ds_eval_region_operands()
456 return_ACPI_STATUS(status); acpi_ds_eval_region_operands()
478 acpi_status status; acpi_ds_eval_table_region_operands() local
502 status = acpi_ds_create_operands(walk_state, next_op); acpi_ds_eval_table_region_operands()
503 if (ACPI_FAILURE(status)) { acpi_ds_eval_table_region_operands()
504 return_ACPI_STATUS(status); acpi_ds_eval_table_region_operands()
513 status = acpi_ex_resolve_operands(op->common.aml_opcode, acpi_ds_eval_table_region_operands()
515 if (ACPI_FAILURE(status)) { acpi_ds_eval_table_region_operands()
521 status = acpi_tb_find_table(operand[0]->string.pointer, acpi_ds_eval_table_region_operands()
524 if (ACPI_FAILURE(status)) { acpi_ds_eval_table_region_operands()
525 if (status == AE_NOT_FOUND) { acpi_ds_eval_table_region_operands()
535 status = acpi_get_table_by_index(table_index, &table); acpi_ds_eval_table_region_operands()
536 if (ACPI_FAILURE(status)) { acpi_ds_eval_table_region_operands()
542 status = AE_NOT_EXIST; acpi_ds_eval_table_region_operands()
563 return_ACPI_STATUS(status); acpi_ds_eval_table_region_operands()
586 acpi_status status; acpi_ds_eval_data_object_operands() local
600 status = acpi_ds_create_operand(walk_state, op->common.value.arg, 1); acpi_ds_eval_data_object_operands()
601 if (ACPI_FAILURE(status)) { acpi_ds_eval_data_object_operands()
602 return_ACPI_STATUS(status); acpi_ds_eval_data_object_operands()
605 status = acpi_ex_resolve_operands(walk_state->opcode, acpi_ds_eval_data_object_operands()
609 if (ACPI_FAILURE(status)) { acpi_ds_eval_data_object_operands()
610 return_ACPI_STATUS(status); acpi_ds_eval_data_object_operands()
620 status = acpi_ds_obj_stack_pop(1, walk_state); acpi_ds_eval_data_object_operands()
621 if (ACPI_FAILURE(status)) { acpi_ds_eval_data_object_operands()
622 return_ACPI_STATUS(status); acpi_ds_eval_data_object_operands()
633 status = acpi_ds_eval_data_object_operands()
641 status = acpi_ds_eval_data_object_operands()
651 if (ACPI_SUCCESS(status)) { acpi_ds_eval_data_object_operands()
667 return_ACPI_STATUS(status); acpi_ds_eval_data_object_operands()
688 acpi_status status; acpi_ds_eval_bank_field_operands() local
722 status = acpi_ds_create_operand(walk_state, next_op, 0); acpi_ds_eval_bank_field_operands()
723 if (ACPI_FAILURE(status)) { acpi_ds_eval_bank_field_operands()
724 return_ACPI_STATUS(status); acpi_ds_eval_bank_field_operands()
727 status = acpi_ex_resolve_to_value(&walk_state->operands[0], walk_state); acpi_ds_eval_bank_field_operands()
728 if (ACPI_FAILURE(status)) { acpi_ds_eval_bank_field_operands()
729 return_ACPI_STATUS(status); acpi_ds_eval_bank_field_operands()
765 return_ACPI_STATUS(status); acpi_ds_eval_bank_field_operands()
H A Ddsargs.c81 acpi_status status; acpi_ds_execute_arguments() local
102 status = AE_NO_MEMORY; acpi_ds_execute_arguments()
106 status = acpi_ds_init_aml_walk(walk_state, op, NULL, aml_start, acpi_ds_execute_arguments()
108 if (ACPI_FAILURE(status)) { acpi_ds_execute_arguments()
120 status = acpi_ps_parse_aml(walk_state); acpi_ds_execute_arguments()
121 if (ACPI_FAILURE(status)) { acpi_ds_execute_arguments()
143 status = AE_NO_MEMORY; acpi_ds_execute_arguments()
149 status = acpi_ds_init_aml_walk(walk_state, op, NULL, aml_start, acpi_ds_execute_arguments()
151 if (ACPI_FAILURE(status)) { acpi_ds_execute_arguments()
159 status = acpi_ps_parse_aml(walk_state); acpi_ds_execute_arguments()
163 return_ACPI_STATUS(status); acpi_ds_execute_arguments()
184 acpi_status status; acpi_ds_get_buffer_field_arguments() local
205 status = acpi_ds_execute_arguments(node, node->parent, acpi_ds_get_buffer_field_arguments()
208 return_ACPI_STATUS(status); acpi_ds_get_buffer_field_arguments()
229 acpi_status status; acpi_ds_get_bank_field_arguments() local
250 status = acpi_ds_execute_arguments(node, node->parent, acpi_ds_get_bank_field_arguments()
253 if (ACPI_FAILURE(status)) { acpi_ds_get_bank_field_arguments()
254 return_ACPI_STATUS(status); acpi_ds_get_bank_field_arguments()
257 status = acpi_ut_add_address_range(obj_desc->region.space_id, acpi_ds_get_bank_field_arguments()
260 return_ACPI_STATUS(status); acpi_ds_get_bank_field_arguments()
279 acpi_status status; acpi_ds_get_buffer_arguments() local
301 status = acpi_ds_execute_arguments(node, node, acpi_ds_get_buffer_arguments()
304 return_ACPI_STATUS(status); acpi_ds_get_buffer_arguments()
323 acpi_status status; acpi_ds_get_package_arguments() local
345 status = acpi_ds_execute_arguments(node, node, acpi_ds_get_package_arguments()
348 return_ACPI_STATUS(status); acpi_ds_get_package_arguments()
367 acpi_status status; acpi_ds_get_region_arguments() local
394 status = acpi_ds_execute_arguments(node, extra_desc->extra.scope_node, acpi_ds_get_region_arguments()
397 if (ACPI_FAILURE(status)) { acpi_ds_get_region_arguments()
398 return_ACPI_STATUS(status); acpi_ds_get_region_arguments()
401 status = acpi_ut_add_address_range(obj_desc->region.space_id, acpi_ds_get_region_arguments()
404 return_ACPI_STATUS(status); acpi_ds_get_region_arguments()
H A Drsxface.c97 acpi_status status; acpi_rs_validate_parameters() local
125 status = acpi_ut_validate_buffer(buffer); acpi_rs_validate_parameters()
126 if (ACPI_FAILURE(status)) { acpi_rs_validate_parameters()
127 return_ACPI_STATUS(status); acpi_rs_validate_parameters()
149 * If the function fails an appropriate status will be returned
161 acpi_status status; acpi_get_irq_routing_table() local
168 status = acpi_rs_validate_parameters(device_handle, ret_buffer, &node); acpi_get_irq_routing_table()
169 if (ACPI_FAILURE(status)) { acpi_get_irq_routing_table()
170 return_ACPI_STATUS(status); acpi_get_irq_routing_table()
173 status = acpi_rs_get_prt_method_data(node, ret_buffer); acpi_get_irq_routing_table()
174 return_ACPI_STATUS(status); acpi_get_irq_routing_table()
195 * If the function fails an appropriate status will be returned ACPI_EXPORT_SYMBOL()
206 acpi_status status; ACPI_EXPORT_SYMBOL() local
213 status = acpi_rs_validate_parameters(device_handle, ret_buffer, &node); ACPI_EXPORT_SYMBOL()
214 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
215 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
218 status = acpi_rs_get_crs_method_data(node, ret_buffer); ACPI_EXPORT_SYMBOL()
219 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
240 * If the function fails an appropriate status will be returned ACPI_EXPORT_SYMBOL()
248 acpi_status status; ACPI_EXPORT_SYMBOL() local
255 status = acpi_rs_validate_parameters(device_handle, ret_buffer, &node); ACPI_EXPORT_SYMBOL()
256 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
257 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
260 status = acpi_rs_get_prs_method_data(node, ret_buffer); ACPI_EXPORT_SYMBOL()
261 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
287 acpi_status status; ACPI_EXPORT_SYMBOL() local
300 status = acpi_rs_validate_parameters(device_handle, in_buffer, &node); ACPI_EXPORT_SYMBOL()
301 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
302 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
305 status = acpi_rs_set_srs_method_data(node, in_buffer); ACPI_EXPORT_SYMBOL()
306 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
333 acpi_status status; ACPI_EXPORT_SYMBOL() local
340 status = acpi_rs_validate_parameters(device_handle, ret_buffer, &node); ACPI_EXPORT_SYMBOL()
341 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
342 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
345 status = acpi_rs_get_aei_method_data(node, ret_buffer); ACPI_EXPORT_SYMBOL()
346 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
440 acpi_status status; ACPI_EXPORT_SYMBOL() local
450 info.status = AE_NOT_EXIST; ACPI_EXPORT_SYMBOL()
454 status = ACPI_EXPORT_SYMBOL()
457 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
458 return (status); ACPI_EXPORT_SYMBOL()
461 return (info.status); ACPI_EXPORT_SYMBOL()
483 acpi_status status; acpi_rs_match_vendor_resource() local
509 status = acpi_ut_initialize_buffer(buffer, resource->length); acpi_rs_match_vendor_resource()
510 if (ACPI_FAILURE(status)) { acpi_rs_match_vendor_resource()
511 return (status); acpi_rs_match_vendor_resource()
521 info->status = AE_OK; acpi_rs_match_vendor_resource()
546 acpi_status status = AE_OK; acpi_walk_resource_buffer() local
571 status = AE_AML_INVALID_RESOURCE_TYPE; acpi_walk_resource_buffer()
583 status = user_function(resource, context); acpi_walk_resource_buffer()
584 if (ACPI_FAILURE(status)) { acpi_walk_resource_buffer()
585 if (status == AE_CTRL_TERMINATE) { acpi_walk_resource_buffer()
589 status = AE_OK; acpi_walk_resource_buffer()
605 return_ACPI_STATUS(status); acpi_walk_resource_buffer()
634 acpi_status status; ACPI_EXPORT_SYMBOL() local
651 status = acpi_rs_get_method_data(device_handle, name, &buffer); ACPI_EXPORT_SYMBOL()
652 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
653 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
658 status = acpi_walk_resource_buffer(&buffer, user_function, context); ACPI_EXPORT_SYMBOL()
660 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
H A Drscreate.c70 acpi_status status; acpi_buffer_to_resource() local
84 status = acpi_rs_get_list_length(aml_buffer, aml_buffer_length, acpi_buffer_to_resource()
86 if (status == AE_AML_NO_RESOURCE_END_TAG) { acpi_buffer_to_resource()
87 status = AE_OK; acpi_buffer_to_resource()
89 if (ACPI_FAILURE(status)) { acpi_buffer_to_resource()
90 return_ACPI_STATUS(status); acpi_buffer_to_resource()
103 status = acpi_ut_walk_aml_resources(NULL, aml_buffer, aml_buffer_length, acpi_buffer_to_resource()
106 if (status == AE_AML_NO_RESOURCE_END_TAG) { acpi_buffer_to_resource()
107 status = AE_OK; acpi_buffer_to_resource()
109 if (ACPI_FAILURE(status)) { acpi_buffer_to_resource()
115 return_ACPI_STATUS(status); acpi_buffer_to_resource()
142 acpi_status status; ACPI_EXPORT_SYMBOL() local
161 status = acpi_rs_get_list_length(aml_start, aml_buffer_length, ACPI_EXPORT_SYMBOL()
165 status, (u32) list_size_needed)); ACPI_EXPORT_SYMBOL()
166 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
167 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
172 status = acpi_ut_initialize_buffer(output_buffer, list_size_needed); ACPI_EXPORT_SYMBOL()
173 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
174 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
180 status = acpi_ut_walk_aml_resources(NULL, aml_start, aml_buffer_length, ACPI_EXPORT_SYMBOL()
183 if (ACPI_FAILURE(status)) { ACPI_EXPORT_SYMBOL()
184 return_ACPI_STATUS(status); ACPI_EXPORT_SYMBOL()
226 acpi_status status; acpi_rs_create_pci_routing_table() local
235 status = acpi_rs_get_pci_routing_table_length(package_object, acpi_rs_create_pci_routing_table()
237 if (ACPI_FAILURE(status)) { acpi_rs_create_pci_routing_table()
238 return_ACPI_STATUS(status); acpi_rs_create_pci_routing_table()
246 status = acpi_ut_initialize_buffer(output_buffer, buffer_size_needed); acpi_rs_create_pci_routing_table()
247 if (ACPI_FAILURE(status)) { acpi_rs_create_pci_routing_table()
248 return_ACPI_STATUS(status); acpi_rs_create_pci_routing_table()
348 status = acpi_rs_create_pci_routing_table()
442 acpi_status status; acpi_rs_create_aml_resources() local
454 status = acpi_rs_get_aml_length(resource_list->pointer, acpi_rs_create_aml_resources()
459 (u32)aml_size_needed, acpi_format_exception(status))); acpi_rs_create_aml_resources()
460 if (ACPI_FAILURE(status)) { acpi_rs_create_aml_resources()
461 return_ACPI_STATUS(status); acpi_rs_create_aml_resources()
466 status = acpi_ut_initialize_buffer(output_buffer, aml_size_needed); acpi_rs_create_aml_resources()
467 if (ACPI_FAILURE(status)) { acpi_rs_create_aml_resources()
468 return_ACPI_STATUS(status); acpi_rs_create_aml_resources()
473 status = acpi_rs_convert_resources_to_aml(resource_list->pointer, acpi_rs_create_aml_resources()
476 if (ACPI_FAILURE(status)) { acpi_rs_create_aml_resources()
477 return_ACPI_STATUS(status); acpi_rs_create_aml_resources()
H A Devglock.c69 acpi_status status; acpi_ev_init_global_lock_handler() local
81 status = acpi_install_fixed_event_handler(ACPI_EVENT_GLOBAL, acpi_ev_init_global_lock_handler()
92 if (status == AE_NO_HARDWARE_RESPONSE) { acpi_ev_init_global_lock_handler()
99 status = acpi_os_create_lock(&acpi_gbl_global_lock_pending_lock); acpi_ev_init_global_lock_handler()
100 if (ACPI_FAILURE(status)) { acpi_ev_init_global_lock_handler()
101 return_ACPI_STATUS(status); acpi_ev_init_global_lock_handler()
106 return_ACPI_STATUS(status); acpi_ev_init_global_lock_handler()
123 acpi_status status; acpi_ev_remove_global_lock_handler() local
128 status = acpi_remove_fixed_event_handler(ACPI_EVENT_GLOBAL, acpi_ev_remove_global_lock_handler()
132 return_ACPI_STATUS(status); acpi_ev_remove_global_lock_handler()
151 acpi_status status; acpi_ev_global_lock_handler() local
169 status = acpi_os_signal_semaphore(acpi_gbl_global_lock_semaphore, 1); acpi_ev_global_lock_handler()
170 if (ACPI_FAILURE(status)) { acpi_ev_global_lock_handler()
207 acpi_status status; acpi_ev_acquire_global_lock() local
216 status = acpi_ev_acquire_global_lock()
219 if (ACPI_FAILURE(status)) { acpi_ev_acquire_global_lock()
220 return_ACPI_STATUS(status); acpi_ev_acquire_global_lock()
274 status = acpi_ev_acquire_global_lock()
280 } while (ACPI_SUCCESS(status)); acpi_ev_acquire_global_lock()
285 return_ACPI_STATUS(status); acpi_ev_acquire_global_lock()
303 acpi_status status = AE_OK; acpi_ev_release_global_lock() local
326 status = acpi_ev_release_global_lock()
341 return_ACPI_STATUS(status); acpi_ev_release_global_lock()
/linux-4.4.14/drivers/net/ethernet/qlogic/qlge/
H A Dqlge_mpi.c54 int status; ql_read_mpi_reg() local
56 status = ql_wait_reg_rdy(qdev, PROC_ADDR, PROC_ADDR_RDY, PROC_ADDR_ERR); ql_read_mpi_reg()
57 if (status) ql_read_mpi_reg()
62 status = ql_wait_reg_rdy(qdev, PROC_ADDR, PROC_ADDR_RDY, PROC_ADDR_ERR); ql_read_mpi_reg()
63 if (status) ql_read_mpi_reg()
68 return status; ql_read_mpi_reg()
73 int status = 0; ql_write_mpi_reg() local
75 status = ql_wait_reg_rdy(qdev, PROC_ADDR, PROC_ADDR_RDY, PROC_ADDR_ERR); ql_write_mpi_reg()
76 if (status) ql_write_mpi_reg()
83 status = ql_wait_reg_rdy(qdev, PROC_ADDR, PROC_ADDR_RDY, PROC_ADDR_ERR); ql_write_mpi_reg()
84 if (status) ql_write_mpi_reg()
87 return status; ql_write_mpi_reg()
92 int status; ql_soft_reset_mpi_risc() local
93 status = ql_write_mpi_reg(qdev, 0x00001010, 1); ql_soft_reset_mpi_risc()
94 return status; ql_soft_reset_mpi_risc()
128 int i, status; ql_get_mb_sts() local
130 status = ql_sem_spinlock(qdev, SEM_PROC_REG_MASK); ql_get_mb_sts()
131 if (status) ql_get_mb_sts()
134 status = ql_get_mb_sts()
137 if (status) { ql_get_mb_sts()
143 return status; ql_get_mb_sts()
168 int i, status; ql_exec_mb_cmd() local
177 status = ql_sem_spinlock(qdev, SEM_PROC_REG_MASK); ql_exec_mb_cmd()
178 if (status) ql_exec_mb_cmd()
179 return status; ql_exec_mb_cmd()
185 status = ql_write_mpi_reg(qdev, qdev->mailbox_in + i, ql_exec_mb_cmd()
187 if (status) ql_exec_mb_cmd()
196 return status; ql_exec_mb_cmd()
208 int status; ql_idc_req_aen() local
212 /* Get the status data and start up a thread to ql_idc_req_aen()
217 status = ql_get_mb_sts(qdev, mbcp); ql_idc_req_aen()
218 if (status) { ql_idc_req_aen()
230 return status; ql_idc_req_aen()
238 int status; ql_idc_cmplt_aen() local
241 status = ql_get_mb_sts(qdev, mbcp); ql_idc_cmplt_aen()
242 if (status) { ql_idc_cmplt_aen()
252 return status; ql_idc_cmplt_aen()
257 int status; ql_link_up() local
260 status = ql_get_mb_sts(qdev, mbcp); ql_link_up()
261 if (status) { ql_link_up()
263 "%s: Could not get mailbox status.\n", __func__); ql_link_up()
274 status = ql_cam_route_initialize(qdev); ql_link_up()
275 if (status) { ql_link_up()
304 int status; ql_link_down() local
308 status = ql_get_mb_sts(qdev, mbcp); ql_link_down()
309 if (status) ql_link_down()
317 int status; ql_sfp_in() local
321 status = ql_get_mb_sts(qdev, mbcp); ql_sfp_in()
322 if (status) ql_sfp_in()
327 return status; ql_sfp_in()
332 int status; ql_sfp_out() local
336 status = ql_get_mb_sts(qdev, mbcp); ql_sfp_out()
337 if (status) ql_sfp_out()
342 return status; ql_sfp_out()
347 int status; ql_aen_lost() local
351 status = ql_get_mb_sts(qdev, mbcp); ql_aen_lost()
352 if (status) ql_aen_lost()
363 return status; ql_aen_lost()
368 int status; ql_init_fw_done() local
372 status = ql_get_mb_sts(qdev, mbcp); ql_init_fw_done()
373 if (status) { ql_init_fw_done()
379 status = ql_cam_route_initialize(qdev); ql_init_fw_done()
380 if (status) ql_init_fw_done()
394 int status; ql_mpi_handler() local
399 status = ql_get_mb_sts(qdev, mbcp); ql_mpi_handler()
400 if (status) { ql_mpi_handler()
420 /* We can only get mailbox status if we're polling from an ql_mpi_handler()
421 * unfinished command. Get the rest of the status data and ql_mpi_handler()
427 status = ql_get_mb_sts(qdev, mbcp); ql_mpi_handler()
428 return status; ql_mpi_handler()
436 status = ql_idc_req_aen(qdev); ql_mpi_handler()
446 status = ql_idc_cmplt_aen(qdev); ql_mpi_handler()
459 * then convert the status to normal mailbox status. ql_mpi_handler()
463 status = ql_get_mb_sts(qdev, mbcp); ql_mpi_handler()
465 return status; ql_mpi_handler()
483 * then convert the status to normal mailbox status. ql_mpi_handler()
487 status = ql_get_mb_sts(qdev, mbcp); ql_mpi_handler()
489 return status; ql_mpi_handler()
493 status = -EIO; ql_mpi_handler()
500 status = -EIO; ql_mpi_handler()
513 /* Clear the MPI firmware status. */ ql_mpi_handler()
524 return status; ql_mpi_handler()
534 int status; ql_mailbox_command() local
543 status = ql_exec_mb_cmd(qdev, mbcp); ql_mailbox_command()
544 if (status) ql_mailbox_command()
562 status = ql_wait_mbx_cmd_cmplt(qdev); ql_mailbox_command()
563 if (status) ql_mailbox_command()
571 status = ql_mpi_handler(qdev, mbcp); ql_mailbox_command()
572 if (status) ql_mailbox_command()
588 status = -ETIMEDOUT; ql_mailbox_command()
594 * and look at our status. ql_mailbox_command()
602 status = -EIO; ql_mailbox_command()
608 return status; ql_mailbox_command()
619 int status = 0; ql_mb_about_fw() local
628 status = ql_mailbox_command(qdev, mbcp); ql_mb_about_fw()
629 if (status) ql_mb_about_fw()
630 return status; ql_mb_about_fw()
635 status = -EIO; ql_mb_about_fw()
641 return status; ql_mb_about_fw()
651 int status = 0; ql_mb_get_fw_state() local
660 status = ql_mailbox_command(qdev, mbcp); ql_mb_get_fw_state()
661 if (status) ql_mb_get_fw_state()
662 return status; ql_mb_get_fw_state()
667 status = -EIO; ql_mb_get_fw_state()
677 status = -EIO; ql_mb_get_fw_state()
680 return status; ql_mb_get_fw_state()
690 int status = 0; ql_mb_idc_ack() local
703 status = ql_mailbox_command(qdev, mbcp); ql_mb_idc_ack()
704 if (status) ql_mb_idc_ack()
705 return status; ql_mb_idc_ack()
709 status = -EIO; ql_mb_idc_ack()
711 return status; ql_mb_idc_ack()
722 int status = 0; ql_mb_set_port_cfg() local
734 status = ql_mailbox_command(qdev, mbcp); ql_mb_set_port_cfg()
735 if (status) ql_mb_set_port_cfg()
736 return status; ql_mb_set_port_cfg()
744 status = -EIO; ql_mb_set_port_cfg()
746 return status; ql_mb_set_port_cfg()
752 int status = 0; ql_mb_dump_ram() local
772 status = ql_mailbox_command(qdev, mbcp); ql_mb_dump_ram()
773 if (status) ql_mb_dump_ram()
774 return status; ql_mb_dump_ram()
778 status = -EIO; ql_mb_dump_ram()
780 return status; ql_mb_dump_ram()
787 int status; ql_dump_risc_ram_area() local
796 status = ql_mb_dump_ram(qdev, buf_dma, ram_addr, word_count); ql_dump_risc_ram_area()
797 if (!status) ql_dump_risc_ram_area()
802 return status; ql_dump_risc_ram_area()
813 int status = 0; ql_mb_get_port_cfg() local
822 status = ql_mailbox_command(qdev, mbcp); ql_mb_get_port_cfg()
823 if (status) ql_mb_get_port_cfg()
824 return status; ql_mb_get_port_cfg()
829 status = -EIO; ql_mb_get_port_cfg()
836 return status; ql_mb_get_port_cfg()
843 int status; ql_mb_wol_mode() local
854 status = ql_mailbox_command(qdev, mbcp); ql_mb_wol_mode()
855 if (status) ql_mb_wol_mode()
856 return status; ql_mb_wol_mode()
860 status = -EIO; ql_mb_wol_mode()
862 return status; ql_mb_wol_mode()
869 int status; ql_mb_wol_set_magic() local
896 status = ql_mailbox_command(qdev, mbcp); ql_mb_wol_set_magic()
897 if (status) ql_mb_wol_set_magic()
898 return status; ql_mb_wol_set_magic()
902 status = -EIO; ql_mb_wol_set_magic()
904 return status; ql_mb_wol_set_magic()
916 int status = -ETIMEDOUT; ql_idc_wait() local
940 status = 0; ql_idc_wait()
946 status = -EIO; ql_idc_wait()
951 return status; ql_idc_wait()
958 int status; ql_mb_set_led_cfg() local
969 status = ql_mailbox_command(qdev, mbcp); ql_mb_set_led_cfg()
970 if (status) ql_mb_set_led_cfg()
971 return status; ql_mb_set_led_cfg()
976 status = -EIO; ql_mb_set_led_cfg()
979 return status; ql_mb_set_led_cfg()
986 int status; ql_mb_get_led_cfg() local
995 status = ql_mailbox_command(qdev, mbcp); ql_mb_get_led_cfg()
996 if (status) ql_mb_get_led_cfg()
997 return status; ql_mb_get_led_cfg()
1002 status = -EIO; ql_mb_get_led_cfg()
1006 return status; ql_mb_get_led_cfg()
1013 int status; ql_mb_set_mgmnt_traffic_ctl() local
1023 status = ql_mailbox_command(qdev, mbcp); ql_mb_set_mgmnt_traffic_ctl()
1024 if (status) ql_mb_set_mgmnt_traffic_ctl()
1025 return status; ql_mb_set_mgmnt_traffic_ctl()
1028 return status; ql_mb_set_mgmnt_traffic_ctl()
1033 status = -EINVAL; ql_mb_set_mgmnt_traffic_ctl()
1042 return status; ql_mb_set_mgmnt_traffic_ctl()
1045 /* Returns a negative error code or the mailbox command status. */ ql_mb_get_mgmnt_traffic_ctl()
1050 int status; ql_mb_get_mgmnt_traffic_ctl() local
1060 status = ql_mailbox_command(qdev, mbcp); ql_mb_get_mgmnt_traffic_ctl()
1061 if (status) ql_mb_get_mgmnt_traffic_ctl()
1062 return status; ql_mb_get_mgmnt_traffic_ctl()
1066 return status; ql_mb_get_mgmnt_traffic_ctl()
1072 status = -EINVAL; ql_mb_get_mgmnt_traffic_ctl()
1076 status = -EIO; ql_mb_get_mgmnt_traffic_ctl()
1078 return status; ql_mb_get_mgmnt_traffic_ctl()
1103 int status; ql_set_port_cfg() local
1104 status = ql_mb_set_port_cfg(qdev); ql_set_port_cfg()
1105 if (status) ql_set_port_cfg()
1106 return status; ql_set_port_cfg()
1107 status = ql_idc_wait(qdev); ql_set_port_cfg()
1108 return status; ql_set_port_cfg()
1123 int status; ql_mpi_port_cfg_work() local
1125 status = ql_mb_get_port_cfg(qdev); ql_mpi_port_cfg_work()
1126 if (status) { ql_mpi_port_cfg_work()
1139 status = ql_set_port_cfg(qdev); ql_mpi_port_cfg_work()
1140 if (status) { ql_mpi_port_cfg_work()
1163 int status; ql_mpi_idc_work() local
1187 status = ql_mb_idc_ack(qdev); ql_mpi_idc_work()
1188 if (status) ql_mpi_idc_work()
1194 status = 0; /* success */ ql_mpi_idc_work()
1220 status = ql_mb_idc_ack(qdev); ql_mpi_idc_work()
1221 if (status) ql_mpi_idc_work()
1227 status = 0; /* success */ ql_mpi_idc_work()
H A Dqlge_dbg.c13 unsigned int status = 0; ql_read_other_func_reg() local
19 status = ql_read_mpi_reg(qdev, register_to_read, &reg_val); ql_read_other_func_reg()
20 if (status != 0) ql_read_other_func_reg()
31 int status = 0; ql_write_other_func_reg() local
37 status = ql_write_mpi_reg(qdev, register_to_read, reg_val); ql_write_other_func_reg()
39 return status; ql_write_other_func_reg()
65 int status; ql_read_other_func_serdes_reg() local
68 status = ql_wait_other_func_reg_rdy(qdev, XG_SERDES_ADDR / 4, ql_read_other_func_serdes_reg()
70 if (status) ql_read_other_func_serdes_reg()
77 status = ql_wait_other_func_reg_rdy(qdev, XG_SERDES_ADDR / 4, ql_read_other_func_serdes_reg()
79 if (status) ql_read_other_func_serdes_reg()
85 return status; ql_read_other_func_serdes_reg()
91 int status; ql_read_serdes_reg() local
94 status = ql_wait_reg_rdy(qdev, XG_SERDES_ADDR, XG_SERDES_ADDR_RDY, 0); ql_read_serdes_reg()
95 if (status) ql_read_serdes_reg()
102 status = ql_wait_reg_rdy(qdev, XG_SERDES_ADDR, XG_SERDES_ADDR_RDY, 0); ql_read_serdes_reg()
103 if (status) ql_read_serdes_reg()
109 return status; ql_read_serdes_reg()
116 unsigned int status; ql_get_both_serdes() local
118 status = 1; ql_get_both_serdes()
120 status = ql_read_serdes_reg(qdev, addr, direct_ptr); ql_get_both_serdes()
122 if (status) ql_get_both_serdes()
125 status = 1; ql_get_both_serdes()
127 status = ql_read_other_func_serdes_reg( ql_get_both_serdes()
130 if (status) ql_get_both_serdes()
137 int status; ql_get_serdes_regs() local
149 status = ql_read_other_func_serdes_reg(qdev, ql_get_serdes_regs()
151 if (status) ql_get_serdes_regs()
157 status = ql_read_serdes_reg(qdev, ql_get_serdes_regs()
159 if (status) ql_get_serdes_regs()
167 status = ql_read_other_func_serdes_reg(qdev, ql_get_serdes_regs()
169 if (status) ql_get_serdes_regs()
175 status = ql_read_serdes_reg(qdev, ql_get_serdes_regs()
177 if (status) ql_get_serdes_regs()
188 status = ql_read_serdes_reg(qdev, XG_SERDES_ADDR_STS, &temp); ql_get_serdes_regs()
189 if (status) ql_get_serdes_regs()
341 int status = 0; ql_read_other_func_xgmac_reg() local
344 status = ql_wait_other_func_reg_rdy(qdev, XGMAC_ADDR / 4, ql_read_other_func_xgmac_reg()
346 if (status) ql_read_other_func_xgmac_reg()
353 status = ql_wait_other_func_reg_rdy(qdev, XGMAC_ADDR / 4, ql_read_other_func_xgmac_reg()
355 if (status) ql_read_other_func_xgmac_reg()
361 return status; ql_read_other_func_xgmac_reg()
370 int status = 0; ql_get_xgmac_regs() local
395 status = ql_get_xgmac_regs()
398 status = ql_read_xgmac_reg(qdev, i, buf); ql_get_xgmac_regs()
400 if (status) ql_get_xgmac_regs()
405 return status; ql_get_xgmac_regs()
410 int status = 0; ql_get_ets_regs() local
423 return status; ql_get_ets_regs()
439 int i, status; ql_get_cam_entries() local
442 status = ql_sem_spinlock(qdev, SEM_MAC_ADDR_MASK); ql_get_cam_entries()
443 if (status) ql_get_cam_entries()
444 return status; ql_get_cam_entries()
447 status = ql_get_mac_addr_reg(qdev, ql_get_cam_entries()
449 if (status) { ql_get_cam_entries()
459 status = ql_get_mac_addr_reg(qdev, ql_get_cam_entries()
461 if (status) { ql_get_cam_entries()
471 return status; ql_get_cam_entries()
476 int status; ql_get_routing_entries() local
479 status = ql_sem_spinlock(qdev, SEM_RT_IDX_MASK); ql_get_routing_entries()
480 if (status) ql_get_routing_entries()
481 return status; ql_get_routing_entries()
484 status = ql_get_routing_reg(qdev, i, &value); ql_get_routing_entries()
485 if (status) { ql_get_routing_entries()
495 return status; ql_get_routing_entries()
502 int status; ql_get_mpi_shadow_regs() local
505 status = ql_write_mpi_reg(qdev, RISC_124, ql_get_mpi_shadow_regs()
507 if (status) ql_get_mpi_shadow_regs()
509 status = ql_read_mpi_reg(qdev, RISC_127, buf); ql_get_mpi_shadow_regs()
510 if (status) ql_get_mpi_shadow_regs()
514 return status; ql_get_mpi_shadow_regs()
521 int i, status = 0; ql_get_mpi_regs() local
523 status = ql_read_mpi_reg(qdev, offset + i, buf); ql_get_mpi_regs()
524 if (status) ql_get_mpi_regs()
525 return status; ql_get_mpi_regs()
527 return status; ql_get_mpi_regs()
581 int status; ql_get_routing_index_registers() local
587 status = ql_sem_spinlock(qdev, SEM_RT_IDX_MASK); ql_get_routing_index_registers()
588 if (status) ql_get_routing_index_registers()
589 return status; ql_get_routing_index_registers()
616 return status; ql_get_routing_index_registers()
703 int status; ql_get_sem_registers() local
709 status = ql_read_mpi_reg(qdev, reg, &reg_val); ql_get_sem_registers()
712 if (!status) ql_get_sem_registers()
739 int status; ql_core_dump() local
753 status = ql_pause_mpi_risc(qdev); ql_core_dump()
754 if (status) { ql_core_dump()
756 "Failed RISC pause. Status = 0x%.08x\n", status); ql_core_dump()
915 status = ql_get_serdes_regs(qdev, mpi_coredump); ql_core_dump()
916 if (status) { ql_core_dump()
919 status); ql_core_dump()
931 status = ql_get_mpi_regs(qdev, &mpi_coredump->mpi_core_regs[0], ql_core_dump()
933 if (status) ql_core_dump()
936 status = ql_get_mpi_shadow_regs(qdev, ql_core_dump()
938 if (status) ql_core_dump()
947 status = ql_get_mpi_regs(qdev, &mpi_coredump->test_logic_regs[0], ql_core_dump()
949 if (status) ql_core_dump()
958 status = ql_get_mpi_regs(qdev, &mpi_coredump->rmii_regs[0], ql_core_dump()
960 if (status) ql_core_dump()
969 status = ql_get_mpi_regs(qdev, &mpi_coredump->fcmac1_regs[0], ql_core_dump()
971 if (status) ql_core_dump()
982 status = ql_get_mpi_regs(qdev, &mpi_coredump->fcmac2_regs[0], ql_core_dump()
984 if (status) ql_core_dump()
993 status = ql_get_mpi_regs(qdev, &mpi_coredump->fc1_mbx_regs[0], ql_core_dump()
995 if (status) ql_core_dump()
1004 status = ql_get_mpi_regs(qdev, &mpi_coredump->ide_regs[0], ql_core_dump()
1006 if (status) ql_core_dump()
1015 status = ql_get_mpi_regs(qdev, &mpi_coredump->nic1_mbx_regs[0], ql_core_dump()
1017 if (status) ql_core_dump()
1026 status = ql_get_mpi_regs(qdev, &mpi_coredump->smbus_regs[0], ql_core_dump()
1028 if (status) ql_core_dump()
1037 status = ql_get_mpi_regs(qdev, &mpi_coredump->fc2_mbx_regs[0], ql_core_dump()
1039 if (status) ql_core_dump()
1048 status = ql_get_mpi_regs(qdev, &mpi_coredump->nic2_mbx_regs[0], ql_core_dump()
1050 if (status) ql_core_dump()
1059 status = ql_get_mpi_regs(qdev, &mpi_coredump->i2c_regs[0], ql_core_dump()
1061 if (status) ql_core_dump()
1070 status = ql_get_mpi_regs(qdev, &mpi_coredump->memc_regs[0], ql_core_dump()
1072 if (status) ql_core_dump()
1081 status = ql_get_mpi_regs(qdev, &mpi_coredump->pbus_regs[0], ql_core_dump()
1083 if (status) ql_core_dump()
1092 status = ql_get_mpi_regs(qdev, &mpi_coredump->mde_regs[0], ql_core_dump()
1094 if (status) ql_core_dump()
1121 status = ql_get_cam_entries(qdev, &mpi_coredump->cam_entries[0]); ql_core_dump()
1122 if (status) ql_core_dump()
1130 status = ql_get_routing_entries(qdev, ql_core_dump()
1132 if (status) ql_core_dump()
1141 status = ql_get_ets_regs(qdev, &mpi_coredump->ets[0]); ql_core_dump()
1142 if (status) ql_core_dump()
1157 status = ql_get_routing_index_registers(qdev, ql_core_dump()
1159 if (status) ql_core_dump()
1181 status = ql_unpause_mpi_risc(qdev); ql_core_dump()
1182 if (status) { ql_core_dump()
1184 "Failed RISC unpause. Status = 0x%.08x\n", status); ql_core_dump()
1189 status = ql_hard_reset_mpi_risc(qdev); ql_core_dump()
1190 if (status) { ql_core_dump()
1192 "Failed RISC reset. Status = 0x%.08x\n", status); ql_core_dump()
1201 status = ql_dump_risc_ram_area(qdev, &mpi_coredump->code_ram[0], ql_core_dump()
1203 if (status) { ql_core_dump()
1206 status); ql_core_dump()
1216 status = ql_dump_risc_ram_area(qdev, &mpi_coredump->memc_ram[0], ql_core_dump()
1218 if (status) { ql_core_dump()
1221 status); ql_core_dump()
1226 return status; ql_core_dump()
1248 int i, status; ql_gen_reg_dump() local
1297 status = ql_get_cam_entries(qdev, &mpi_coredump->cam_entries[0]); ql_gen_reg_dump()
1298 if (status) ql_gen_reg_dump()
1306 status = ql_get_routing_entries(qdev, ql_gen_reg_dump()
1308 if (status) ql_gen_reg_dump()
1317 status = ql_get_ets_regs(qdev, &mpi_coredump->ets[0]); ql_gen_reg_dump()
1318 if (status) ql_gen_reg_dump()
/linux-4.4.14/arch/sh/mm/
H A Dtlb-urb.c22 unsigned long status, flags; tlb_wire_entry() local
27 status = __raw_readl(MMUCR); tlb_wire_entry()
28 urb = (status & MMUCR_URB) >> MMUCR_URB_SHIFT; tlb_wire_entry()
29 status &= ~MMUCR_URC; tlb_wire_entry()
42 status |= (urb << MMUCR_URC_SHIFT); tlb_wire_entry()
43 __raw_writel(status, MMUCR); tlb_wire_entry()
50 status = __raw_readl(MMUCR); tlb_wire_entry()
52 status &= ~MMUCR_URB; tlb_wire_entry()
53 status |= (urb << MMUCR_URB_SHIFT); tlb_wire_entry()
55 __raw_writel(status, MMUCR); tlb_wire_entry()
71 unsigned long status, flags; tlb_unwire_entry() local
76 status = __raw_readl(MMUCR); tlb_unwire_entry()
77 urb = (status & MMUCR_URB) >> MMUCR_URB_SHIFT; tlb_unwire_entry()
78 status &= ~MMUCR_URB; tlb_unwire_entry()
88 status |= (urb << MMUCR_URB_SHIFT); tlb_unwire_entry()
89 __raw_writel(status, MMUCR); tlb_unwire_entry()
/linux-4.4.14/drivers/net/wireless/ti/wl1251/
H A Drx.c48 struct ieee80211_rx_status *status, wl1251_rx_status()
54 memset(status, 0, sizeof(struct ieee80211_rx_status)); wl1251_rx_status()
56 status->band = IEEE80211_BAND_2GHZ; wl1251_rx_status()
57 status->mactime = desc->timestamp; wl1251_rx_status()
60 * The rx status timestamp is a 32 bits value while the TSF is a wl1251_rx_status()
70 status->mactime = mactime; wl1251_rx_status()
73 status->signal = desc->rssi; wl1251_rx_status()
81 status->freq = ieee80211_channel_to_frequency(desc->channel, wl1251_rx_status()
82 status->band); wl1251_rx_status()
84 status->flag |= RX_FLAG_MACTIME_START; wl1251_rx_status()
87 status->flag |= RX_FLAG_IV_STRIPPED | RX_FLAG_MMIC_STRIPPED; wl1251_rx_status()
90 status->flag |= RX_FLAG_DECRYPTED; wl1251_rx_status()
93 status->flag |= RX_FLAG_MMIC_ERROR; wl1251_rx_status()
97 status->flag |= RX_FLAG_FAILED_FCS_CRC; wl1251_rx_status()
102 status->rate_idx = 1; wl1251_rx_status()
105 status->rate_idx = 2; wl1251_rx_status()
108 status->rate_idx = 3; wl1251_rx_status()
111 status->rate_idx = 4; wl1251_rx_status()
114 status->rate_idx = 5; wl1251_rx_status()
117 status->rate_idx = 7; wl1251_rx_status()
120 status->rate_idx = 8; wl1251_rx_status()
123 status->rate_idx = 9; wl1251_rx_status()
126 status->rate_idx = 10; wl1251_rx_status()
129 status->rate_idx = 11; wl1251_rx_status()
137 status->rate_idx = 0; wl1251_rx_status()
140 status->rate_idx = 6; wl1251_rx_status()
144 status->flag |= RX_FLAG_SHORTPRE; wl1251_rx_status()
151 struct ieee80211_rx_status status; wl1251_rx_body() local
190 wl1251_rx_status(wl, desc, &status, beacon); wl1251_rx_body()
195 memcpy(IEEE80211_SKB_RXCB(skb), &status, sizeof(status)); wl1251_rx_body() local
46 wl1251_rx_status(struct wl1251 *wl, struct wl1251_rx_descriptor *desc, struct ieee80211_rx_status *status, u8 beacon) wl1251_rx_status() argument
/linux-4.4.14/net/nfc/nci/
H A Drsp.c44 pr_debug("status 0x%x\n", rsp->status); nci_core_reset_rsp_packet()
46 if (rsp->status == NCI_STATUS_OK) { nci_core_reset_rsp_packet()
52 nci_req_complete(ndev, rsp->status); nci_core_reset_rsp_packet()
60 pr_debug("status 0x%x\n", rsp_1->status); nci_core_init_rsp_packet()
62 if (rsp_1->status != NCI_STATUS_OK) nci_core_init_rsp_packet()
118 nci_req_complete(ndev, rsp_1->status); nci_core_init_rsp_packet()
126 pr_debug("status 0x%x\n", rsp->status); nci_core_set_config_rsp_packet()
128 nci_req_complete(ndev, rsp->status); nci_core_set_config_rsp_packet()
134 __u8 status = skb->data[0]; nci_rf_disc_map_rsp_packet() local
136 pr_debug("status 0x%x\n", status); nci_rf_disc_map_rsp_packet()
138 nci_req_complete(ndev, status); nci_rf_disc_map_rsp_packet()
144 __u8 status = skb->data[0]; nci_rf_disc_rsp_packet() local
146 pr_debug("status 0x%x\n", status); nci_rf_disc_rsp_packet()
148 if (status == NCI_STATUS_OK) { nci_rf_disc_rsp_packet()
157 status = NCI_STATUS_REJECTED; nci_rf_disc_rsp_packet()
168 nci_req_complete(ndev, status); nci_rf_disc_rsp_packet()
174 __u8 status = skb->data[0]; nci_rf_disc_select_rsp_packet() local
176 pr_debug("status 0x%x\n", status); nci_rf_disc_select_rsp_packet()
179 if (status != NCI_STATUS_OK) nci_rf_disc_select_rsp_packet()
180 nci_req_complete(ndev, status); nci_rf_disc_select_rsp_packet()
186 __u8 status = skb->data[0]; nci_rf_deactivate_rsp_packet() local
188 pr_debug("status 0x%x\n", status); nci_rf_deactivate_rsp_packet()
191 if ((status != NCI_STATUS_OK) || nci_rf_deactivate_rsp_packet()
195 nci_req_complete(ndev, status); nci_rf_deactivate_rsp_packet()
211 if (discover_rsp->status != NCI_STATUS_OK || nci_nfcee_discover_rsp_packet()
213 nci_req_complete(ndev, discover_rsp->status); nci_nfcee_discover_rsp_packet()
219 __u8 status = skb->data[0]; nci_nfcee_mode_set_rsp_packet() local
221 pr_debug("status 0x%x\n", status); nci_nfcee_mode_set_rsp_packet()
222 nci_req_complete(ndev, status); nci_nfcee_mode_set_rsp_packet()
228 __u8 status = skb->data[0]; nci_core_conn_create_rsp_packet() local
232 pr_debug("status 0x%x\n", status); nci_core_conn_create_rsp_packet()
234 if (status == NCI_STATUS_OK) { nci_core_conn_create_rsp_packet()
240 status = NCI_STATUS_REJECTED; nci_core_conn_create_rsp_packet()
263 nci_req_complete(ndev, status); nci_core_conn_create_rsp_packet()
270 __u8 status = skb->data[0]; nci_core_conn_close_rsp_packet() local
272 pr_debug("status 0x%x\n", status); nci_core_conn_close_rsp_packet()
273 if (status == NCI_STATUS_OK) { nci_core_conn_close_rsp_packet()
280 nci_req_complete(ndev, status); nci_core_conn_close_rsp_packet()
/linux-4.4.14/arch/x86/boot/compressed/
H A Deboot.c60 efi_status_t status; __file_size32() local
64 status = efi_early->call((unsigned long)fh->open, fh, &h, filename_16, __file_size32()
66 if (status != EFI_SUCCESS) { __file_size32()
70 return status; __file_size32()
76 status = efi_early->call((unsigned long)h->get_info, h, &info_guid, __file_size32()
78 if (status != EFI_BUFFER_TOO_SMALL) { __file_size32()
80 return status; __file_size32()
84 status = efi_call_early(allocate_pool, EFI_LOADER_DATA, __file_size32()
86 if (status != EFI_SUCCESS) { __file_size32()
88 return status; __file_size32()
91 status = efi_early->call((unsigned long)h->get_info, h, &info_guid, __file_size32()
93 if (status == EFI_BUFFER_TOO_SMALL) { __file_size32()
101 if (status != EFI_SUCCESS) __file_size32()
104 return status; __file_size32()
113 efi_status_t status; __file_size64() local
117 status = efi_early->call((unsigned long)fh->open, fh, &h, filename_16, __file_size64()
119 if (status != EFI_SUCCESS) { __file_size64()
123 return status; __file_size64()
129 status = efi_early->call((unsigned long)h->get_info, h, &info_guid, __file_size64()
131 if (status != EFI_BUFFER_TOO_SMALL) { __file_size64()
133 return status; __file_size64()
137 status = efi_call_early(allocate_pool, EFI_LOADER_DATA, __file_size64()
139 if (status != EFI_SUCCESS) { __file_size64()
141 return status; __file_size64()
144 status = efi_early->call((unsigned long)h->get_info, h, &info_guid, __file_size64()
146 if (status == EFI_BUFFER_TOO_SMALL) { __file_size64()
154 if (status != EFI_SUCCESS) __file_size64()
157 return status; __file_size64()
206 efi_status_t status; __open_volume32() local
210 status = efi_call_early(handle_protocol, handle, __open_volume32()
212 if (status != EFI_SUCCESS) { __open_volume32()
214 return status; __open_volume32()
218 status = efi_early->call(func, io, &fh); __open_volume32()
219 if (status != EFI_SUCCESS) __open_volume32()
223 return status; __open_volume32()
232 efi_status_t status; __open_volume64() local
236 status = efi_call_early(handle_protocol, handle, __open_volume64()
238 if (status != EFI_SUCCESS) { __open_volume64()
240 return status; __open_volume64()
244 status = efi_early->call(func, io, &fh); __open_volume64()
245 if (status != EFI_SUCCESS) __open_volume64()
249 return status; __open_volume64()
316 efi_status_t status; __setup_efi_pci32() local
320 status = efi_early->call(pci->attributes, pci, __setup_efi_pci32()
323 if (status != EFI_SUCCESS) __setup_efi_pci32()
324 return status; __setup_efi_pci32()
331 status = efi_call_early(allocate_pool, EFI_LOADER_DATA, size, &rom); __setup_efi_pci32()
332 if (status != EFI_SUCCESS) { __setup_efi_pci32()
334 return status; __setup_efi_pci32()
345 status = efi_early->call(pci->pci.read, pci, EfiPciIoWidthUint16, __setup_efi_pci32()
348 if (status != EFI_SUCCESS) { __setup_efi_pci32()
353 status = efi_early->call(pci->pci.read, pci, EfiPciIoWidthUint16, __setup_efi_pci32()
356 if (status != EFI_SUCCESS) { __setup_efi_pci32()
361 status = efi_early->call(pci->get_location, pci, &(rom->segment), __setup_efi_pci32()
364 if (status != EFI_SUCCESS) __setup_efi_pci32()
368 return status; __setup_efi_pci32()
372 return status; __setup_efi_pci32()
382 efi_status_t status; setup_efi_pci32() local
397 status = efi_call_early(handle_protocol, h, setup_efi_pci32()
400 if (status != EFI_SUCCESS) setup_efi_pci32()
406 status = __setup_efi_pci32(pci, &rom); setup_efi_pci32()
407 if (status != EFI_SUCCESS) setup_efi_pci32()
424 efi_status_t status; __setup_efi_pci64() local
428 status = efi_early->call(pci->attributes, pci, __setup_efi_pci64()
431 if (status != EFI_SUCCESS) __setup_efi_pci64()
432 return status; __setup_efi_pci64()
439 status = efi_call_early(allocate_pool, EFI_LOADER_DATA, size, &rom); __setup_efi_pci64()
440 if (status != EFI_SUCCESS) { __setup_efi_pci64()
442 return status; __setup_efi_pci64()
451 status = efi_early->call(pci->pci.read, pci, EfiPciIoWidthUint16, __setup_efi_pci64()
454 if (status != EFI_SUCCESS) { __setup_efi_pci64()
459 status = efi_early->call(pci->pci.read, pci, EfiPciIoWidthUint16, __setup_efi_pci64()
462 if (status != EFI_SUCCESS) { __setup_efi_pci64()
467 status = efi_early->call(pci->get_location, pci, &(rom->segment), __setup_efi_pci64()
470 if (status != EFI_SUCCESS) __setup_efi_pci64()
474 return status; __setup_efi_pci64()
478 return status; __setup_efi_pci64()
489 efi_status_t status; setup_efi_pci64() local
504 status = efi_call_early(handle_protocol, h, setup_efi_pci64()
507 if (status != EFI_SUCCESS) setup_efi_pci64()
513 status = __setup_efi_pci64(pci, &rom); setup_efi_pci64()
514 if (status != EFI_SUCCESS) setup_efi_pci64()
528 * There's no way to return an informative status from this function,
538 efi_status_t status; setup_efi_pci() local
543 status = efi_call_early(locate_handle, setup_efi_pci()
547 if (status == EFI_BUFFER_TOO_SMALL) { setup_efi_pci()
548 status = efi_call_early(allocate_pool, setup_efi_pci()
552 if (status != EFI_SUCCESS) { setup_efi_pci()
557 status = efi_call_early(locate_handle, setup_efi_pci()
562 if (status != EFI_SUCCESS) setup_efi_pci()
630 efi_status_t status; __gop_query32() local
636 status = efi_early->call(gop32->query_mode, gop32, __gop_query32()
638 if (status != EFI_SUCCESS) __gop_query32()
639 return status; __gop_query32()
642 return status; __gop_query32()
657 efi_status_t status; setup_gop32() local
673 status = efi_call_early(handle_protocol, h, setup_gop32()
675 if (status != EFI_SUCCESS) setup_gop32()
678 status = efi_call_early(handle_protocol, h, setup_gop32()
680 if (status == EFI_SUCCESS) setup_gop32()
683 status = __gop_query32(gop32, &info, &size, &current_fb_base); setup_gop32()
684 if (status == EFI_SUCCESS && (!first_gop || conout_found)) { setup_gop32()
734 return status; setup_gop32()
743 efi_status_t status; __gop_query64() local
749 status = efi_early->call(gop64->query_mode, gop64, __gop_query64()
751 if (status != EFI_SUCCESS) __gop_query64()
752 return status; __gop_query64()
755 return status; __gop_query64()
770 efi_status_t status; setup_gop64() local
786 status = efi_call_early(handle_protocol, h, setup_gop64()
788 if (status != EFI_SUCCESS) setup_gop64()
791 status = efi_call_early(handle_protocol, h, setup_gop64()
793 if (status == EFI_SUCCESS) setup_gop64()
796 status = __gop_query64(gop64, &info, &size, &current_fb_base); setup_gop64()
797 if (status == EFI_SUCCESS && (!first_gop || conout_found)) { setup_gop64()
847 return status; setup_gop64()
856 efi_status_t status; setup_gop() local
859 status = efi_call_early(allocate_pool, EFI_LOADER_DATA, setup_gop()
861 if (status != EFI_SUCCESS) setup_gop()
862 return status; setup_gop()
864 status = efi_call_early(locate_handle, setup_gop()
867 if (status != EFI_SUCCESS) setup_gop()
871 status = setup_gop64(si, proto, size, gop_handle); setup_gop()
873 status = setup_gop32(si, proto, size, gop_handle); setup_gop()
877 return status; setup_gop()
887 efi_status_t status; setup_uga32() local
898 status = efi_call_early(handle_protocol, handle, setup_uga32()
900 if (status != EFI_SUCCESS) setup_uga32()
905 status = efi_early->call((unsigned long)uga->get_mode, uga, setup_uga32()
907 if (status == EFI_SUCCESS && (!first_uga || pciio)) { setup_uga32()
922 return status; setup_uga32()
932 efi_status_t status; setup_uga64() local
943 status = efi_call_early(handle_protocol, handle, setup_uga64()
945 if (status != EFI_SUCCESS) setup_uga64()
950 status = efi_early->call((unsigned long)uga->get_mode, uga, setup_uga64()
952 if (status == EFI_SUCCESS && (!first_uga || pciio)) { setup_uga64()
967 return status; setup_uga64()
976 efi_status_t status; setup_uga() local
980 status = efi_call_early(allocate_pool, EFI_LOADER_DATA, setup_uga()
982 if (status != EFI_SUCCESS) setup_uga()
983 return status; setup_uga()
985 status = efi_call_early(locate_handle, setup_uga()
988 if (status != EFI_SUCCESS) setup_uga()
995 status = setup_uga64(uga_handle, size, &width, &height); setup_uga()
997 status = setup_uga32(uga_handle, size, &width, &height); setup_uga()
1020 return status; setup_uga()
1028 efi_status_t status; setup_graphics() local
1037 status = efi_call_early(locate_handle, setup_graphics()
1040 if (status == EFI_BUFFER_TOO_SMALL) setup_graphics()
1041 status = setup_gop(si, &graphics_proto, size); setup_graphics()
1043 if (status != EFI_SUCCESS) { setup_graphics()
1045 status = efi_call_early(locate_handle, setup_graphics()
1048 if (status == EFI_BUFFER_TOO_SMALL) setup_graphics()
1071 efi_status_t status; make_boot_params() local
1092 status = efi_call_early(handle_protocol, handle, make_boot_params()
1094 if (status != EFI_SUCCESS) { make_boot_params()
1099 status = efi_low_alloc(sys_table, 0x4000, 1, make_boot_params()
1101 if (status != EFI_SUCCESS) { make_boot_params()
1139 status = efi_parse_options(cmdline_ptr); make_boot_params()
1140 if (status != EFI_SUCCESS) make_boot_params()
1143 status = handle_cmdline_files(sys_table, image, make_boot_params()
1148 if (status != EFI_SUCCESS && make_boot_params()
1151 status = handle_cmdline_files(sys_table, image, make_boot_params()
1157 if (status != EFI_SUCCESS) make_boot_params()
1176 efi_status_t status; add_e820ext() local
1295 efi_status_t status; alloc_e820ext() local
1307 status = efi_call_early(allocate_pool, EFI_LOADER_DATA, alloc_e820ext()
1309 if (status == EFI_SUCCESS) alloc_e820ext()
1312 return status; alloc_e820ext()
1325 efi_status_t status; exit_boot() local
1336 status = efi_get_memory_map(sys_table, &mem_map, &map_sz, &desc_size, exit_boot()
1339 if (status != EFI_SUCCESS) exit_boot()
1340 return status; exit_boot()
1348 status = alloc_e820ext(nr_e820ext, &e820ext, &e820ext_size); exit_boot()
1349 if (status != EFI_SUCCESS) exit_boot()
1371 status = efi_call_early(exit_boot_services, handle, key); exit_boot()
1372 if (status != EFI_SUCCESS) { exit_boot()
1391 status = setup_e820(boot_params, e820ext, e820ext_size); exit_boot()
1392 if (status != EFI_SUCCESS) exit_boot()
1393 return status; exit_boot()
1399 return status; exit_boot()
1412 efi_status_t status; efi_main() local
1439 status = efi_call_early(allocate_pool, EFI_LOADER_DATA, efi_main()
1441 if (status != EFI_SUCCESS) { efi_main()
1447 status = efi_low_alloc(sys_table, gdt->size, 8, efi_main()
1449 if (status != EFI_SUCCESS) { efi_main()
1460 status = efi_relocate_kernel(sys_table, &bzimage_addr, efi_main()
1464 if (status != EFI_SUCCESS) { efi_main()
1473 status = exit_boot(boot_params, handle, is64); efi_main()
1474 if (status != EFI_SUCCESS) { efi_main()
/linux-4.4.14/drivers/scsi/bfa/
H A Dbfad_bsg.h161 bfa_status_t status; member in struct:bfa_bsg_gen_s
167 bfa_status_t status; member in struct:bfa_bsg_portlogctl_s
175 bfa_status_t status; member in struct:bfa_bsg_fcpim_profile_s
181 bfa_status_t status; member in struct:bfa_bsg_itnim_ioprofile_s
190 bfa_status_t status; member in struct:bfa_bsg_fcport_stats_s
197 bfa_status_t status; member in struct:bfa_bsg_ioc_name_s
204 bfa_status_t status; member in struct:bfa_bsg_ioc_info_s
230 bfa_status_t status; member in struct:bfa_bsg_ioc_attr_s
237 bfa_status_t status; member in struct:bfa_bsg_ioc_stats_s
244 bfa_status_t status; member in struct:bfa_bsg_ioc_fwstats_s
253 bfa_status_t status; member in struct:bfa_bsg_iocfc_attr_s
260 bfa_status_t status; member in struct:bfa_bsg_iocfc_intr_s
267 bfa_status_t status; member in struct:bfa_bsg_port_attr_s
274 bfa_status_t status; member in struct:bfa_bsg_port_cfg_s
282 bfa_status_t status; member in struct:bfa_bsg_port_cfg_maxfrsize_s
288 bfa_status_t status; member in struct:bfa_bsg_port_stats_s
297 bfa_status_t status; member in struct:bfa_bsg_lport_attr_s
305 bfa_status_t status; member in struct:bfa_bsg_lport_stats_s
313 bfa_status_t status; member in struct:bfa_bsg_lport_iostats_s
321 bfa_status_t status; member in struct:bfa_bsg_lport_get_rports_s
331 bfa_status_t status; member in struct:bfa_bsg_rport_attr_s
342 bfa_status_t status; member in struct:bfa_bsg_rport_stats_s
351 bfa_status_t status; member in struct:bfa_bsg_rport_scsi_addr_s
363 bfa_status_t status; member in struct:bfa_bsg_rport_reset_stats_s
371 bfa_status_t status; member in struct:bfa_bsg_rport_set_speed_s
381 bfa_status_t status; member in struct:bfa_bsg_vport_attr_s
389 bfa_status_t status; member in struct:bfa_bsg_vport_stats_s
397 bfa_status_t status; member in struct:bfa_bsg_reset_stats_s
404 bfa_status_t status; member in struct:bfa_bsg_fabric_get_lports_s
413 bfa_status_t status; member in struct:bfa_bsg_trl_speed_s
420 bfa_status_t status; member in struct:bfa_bsg_fcpim_s
426 bfa_status_t status; member in struct:bfa_bsg_fcpim_modstats_s
432 bfa_status_t status; member in struct:bfa_bsg_fcpim_del_itn_stats_s
438 bfa_status_t status; member in struct:bfa_bsg_fcpim_modstatsclr_s
443 bfa_status_t status; member in struct:bfa_bsg_itnim_attr_s
452 bfa_status_t status; member in struct:bfa_bsg_itnim_iostats_s
461 bfa_status_t status; member in struct:bfa_bsg_itnim_itnstats_s
470 bfa_status_t status; member in struct:bfa_bsg_pcifn_cfg_s
477 bfa_status_t status; member in struct:bfa_bsg_pcifn_s
488 bfa_status_t status; member in struct:bfa_bsg_adapter_cfg_mode_s
495 bfa_status_t status; member in struct:bfa_bsg_port_cfg_mode_s
502 bfa_status_t status; member in struct:bfa_bsg_bbcr_enable_s
509 bfa_status_t status; member in struct:bfa_bsg_bbcr_attr_s
516 bfa_status_t status; member in struct:bfa_bsg_faa_attr_s
523 bfa_status_t status; member in struct:bfa_bsg_cee_attr_s
532 bfa_status_t status; member in struct:bfa_bsg_cee_stats_s
541 bfa_status_t status; member in struct:bfa_bsg_sfp_media_s
548 bfa_status_t status; member in struct:bfa_bsg_sfp_speed_s
555 bfa_status_t status; member in struct:bfa_bsg_flash_attr_s
562 bfa_status_t status; member in struct:bfa_bsg_flash_s
572 bfa_status_t status; member in struct:bfa_bsg_diag_get_temp_s
579 bfa_status_t status; member in struct:bfa_bsg_diag_memtest_s
588 bfa_status_t status; member in struct:bfa_bsg_diag_loopback_s
599 bfa_status_t status; member in struct:bfa_bsg_diag_dport_show_s
606 bfa_status_t status; member in struct:bfa_bsg_dport_enable_s
614 bfa_status_t status; member in struct:bfa_bsg_diag_fwping_s
623 bfa_status_t status; member in struct:bfa_bsg_diag_qtest_s
632 bfa_status_t status; member in struct:bfa_bsg_sfp_show_s
639 bfa_status_t status; member in struct:bfa_bsg_diag_led_s
646 bfa_status_t status; member in struct:bfa_bsg_diag_beacon_s
655 bfa_status_t status; member in struct:bfa_bsg_diag_lb_stat_s
661 bfa_status_t status; member in struct:bfa_bsg_phy_attr_s
668 bfa_status_t status; member in struct:bfa_bsg_phy_s
676 bfa_status_t status; member in struct:bfa_bsg_debug_s
686 bfa_status_t status; member in struct:bfa_bsg_phy_stats_s
693 bfa_status_t status; member in struct:bfa_bsg_vhba_attr_s
700 bfa_status_t status; member in struct:bfa_bsg_boot_s
707 bfa_status_t status; member in struct:bfa_bsg_preboot_s
714 bfa_status_t status; member in struct:bfa_bsg_ethboot_s
721 bfa_status_t status; member in struct:bfa_bsg_trunk_attr_s
728 bfa_status_t status; member in struct:bfa_bsg_qos_attr_s
735 bfa_status_t status; member in struct:bfa_bsg_qos_vc_attr_s
742 bfa_status_t status; member in struct:bfa_bsg_qos_bw_s
749 bfa_status_t status; member in struct:bfa_bsg_vf_stats_s
756 bfa_status_t status; member in struct:bfa_bsg_vf_reset_stats_s
762 bfa_status_t status; member in struct:bfa_bsg_fcpim_lunmask_query_s
768 bfa_status_t status; member in struct:bfa_bsg_fcpim_lunmask_s
777 bfa_status_t status; member in struct:bfa_bsg_fcpim_throttle_s
787 bfa_status_t status; member in struct:bfa_bsg_tfru_s
796 bfa_status_t status; member in struct:bfa_bsg_fruvpd_s
807 bfa_status_t status; member in struct:bfa_bsg_fruvpd_max_size_s
814 bfa_status_t status; member in struct:bfa_bsg_fcpt_s
H A Dbfad_bsg.c35 iocmd->status = BFA_STATUS_OK; bfad_iocmd_ioc_enable()
41 iocmd->status = BFA_STATUS_OK; bfad_iocmd_ioc_enable()
57 iocmd->status = BFA_STATUS_OK; bfad_iocmd_ioc_disable()
73 iocmd->status = BFA_STATUS_OK; bfad_iocmd_ioc_disable()
113 iocmd->status = BFA_STATUS_OK; bfad_iocmd_ioc_get_info()
142 iocmd->status = BFA_STATUS_OK; bfad_iocmd_ioc_get_attr()
152 iocmd->status = BFA_STATUS_OK; bfad_iocmd_ioc_get_stats()
168 iocmd->status = BFA_STATUS_VERSION_FAIL; bfad_iocmd_ioc_get_fwstats()
174 iocmd->status = bfa_ioc_fw_stats_get(&bfad->bfa.ioc, iocmd_bufptr); bfad_iocmd_ioc_get_fwstats()
177 if (iocmd->status != BFA_STATUS_OK) { bfad_iocmd_ioc_get_fwstats()
178 bfa_trc(bfad, iocmd->status); bfad_iocmd_ioc_get_fwstats()
194 iocmd->status = BFA_STATUS_OK; bfad_iocmd_ioc_reset_stats()
197 iocmd->status = bfa_ioc_fw_stats_clear(&bfad->bfa.ioc); bfad_iocmd_ioc_reset_stats()
214 iocmd->status = BFA_STATUS_OK; bfad_iocmd_ioc_set_name()
223 iocmd->status = BFA_STATUS_OK; bfad_iocmd_iocfc_get_attr()
236 iocmd->status = bfa_ioc_fwsig_invalidate(&bfad->bfa.ioc); bfad_iocmd_ioc_fw_sig_inv()
248 iocmd->status = bfa_iocfc_israttr_set(&bfad->bfa, &iocmd->attr); bfad_iocmd_iocfc_set_intr()
263 iocmd->status = bfa_port_enable(&bfad->bfa.modules.port, bfad_iocmd_port_enable()
266 if (iocmd->status != BFA_STATUS_OK) { bfad_iocmd_port_enable()
267 bfa_trc(bfad, iocmd->status); bfad_iocmd_port_enable()
271 iocmd->status = fcomp.status; bfad_iocmd_port_enable()
284 iocmd->status = bfa_port_disable(&bfad->bfa.modules.port, bfad_iocmd_port_disable()
288 if (iocmd->status != BFA_STATUS_OK) { bfad_iocmd_port_disable()
289 bfa_trc(bfad, iocmd->status); bfad_iocmd_port_disable()
293 iocmd->status = fcomp.status; bfad_iocmd_port_disable()
321 iocmd->status = BFA_STATUS_OK; bfad_iocmd_port_get_attr()
337 iocmd->status = BFA_STATUS_VERSION_FAIL; bfad_iocmd_port_get_stats()
345 iocmd->status = bfa_port_get_stats(&bfad->bfa.modules.port, bfad_iocmd_port_get_stats()
348 if (iocmd->status != BFA_STATUS_OK) { bfad_iocmd_port_get_stats()
349 bfa_trc(bfad, iocmd->status); bfad_iocmd_port_get_stats()
354 iocmd->status = fcomp.status; bfad_iocmd_port_get_stats()
368 iocmd->status = bfa_port_clear_stats(&bfad->bfa.modules.port, bfad_iocmd_port_reset_stats()
371 if (iocmd->status != BFA_STATUS_OK) { bfad_iocmd_port_reset_stats()
372 bfa_trc(bfad, iocmd->status); bfad_iocmd_port_reset_stats()
376 iocmd->status = fcomp.status; bfad_iocmd_port_reset_stats()
388 cmd->status = bfa_fcport_cfg_topology(&bfad->bfa, cmd->param); bfad_iocmd_set_port_cfg()
390 cmd->status = bfa_fcport_cfg_speed(&bfad->bfa, cmd->param); bfad_iocmd_set_port_cfg()
392 cmd->status = bfa_fcport_cfg_hardalpa(&bfad->bfa, cmd->param); bfad_iocmd_set_port_cfg()
394 cmd->status = bfa_fcport_clr_hardalpa(&bfad->bfa); bfad_iocmd_set_port_cfg()
408 iocmd->status = bfa_fcport_cfg_maxfrsize(&bfad->bfa, iocmd->maxfrsize); bfad_iocmd_port_cfg_maxfrsize()
433 iocmd->status = rc; bfad_iocmd_port_cfg_bbcr()
444 iocmd->status = bfad_iocmd_port_get_bbcr_attr()
464 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; bfad_iocmd_lport_get_attr()
470 iocmd->status = BFA_STATUS_OK; bfad_iocmd_lport_get_attr()
488 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; bfad_iocmd_lport_get_stats()
494 iocmd->status = BFA_STATUS_OK; bfad_iocmd_lport_get_stats()
515 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; bfad_iocmd_lport_reset_stats()
528 iocmd->status = BFA_STATUS_OK; bfad_iocmd_lport_reset_stats()
546 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; bfad_iocmd_lport_get_iostats()
553 iocmd->status = BFA_STATUS_OK; bfad_iocmd_lport_get_iostats()
575 iocmd->status = BFA_STATUS_VERSION_FAIL; bfad_iocmd_lport_get_rports()
587 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; bfad_iocmd_lport_get_rports()
595 iocmd->status = BFA_STATUS_OK; bfad_iocmd_lport_get_rports()
614 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; bfad_iocmd_rport_get_attr()
626 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; bfad_iocmd_rport_get_attr()
632 iocmd->status = BFA_STATUS_OK; bfad_iocmd_rport_get_attr()
653 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; bfad_iocmd_rport_get_addr()
661 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; bfad_iocmd_rport_get_addr()
672 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; bfad_iocmd_rport_get_addr()
681 iocmd->status = BFA_STATUS_OK; bfad_iocmd_rport_get_addr()
701 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; bfad_iocmd_rport_get_stats()
709 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; bfad_iocmd_rport_get_stats()
722 iocmd->status = BFA_STATUS_OK; bfad_iocmd_rport_get_stats()
742 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; bfad_iocmd_rport_clr_stats()
749 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; bfad_iocmd_rport_clr_stats()
758 iocmd->status = BFA_STATUS_OK; bfad_iocmd_rport_clr_stats()
777 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; bfad_iocmd_rport_set_speed()
784 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; bfad_iocmd_rport_set_speed()
794 iocmd->status = BFA_STATUS_OK; bfad_iocmd_rport_set_speed()
811 iocmd->status = BFA_STATUS_UNKNOWN_VWWN; bfad_iocmd_vport_get_attr()
817 iocmd->status = BFA_STATUS_OK; bfad_iocmd_vport_get_attr()
835 iocmd->status = BFA_STATUS_UNKNOWN_VWWN; bfad_iocmd_vport_get_stats()
845 iocmd->status = BFA_STATUS_OK; bfad_iocmd_vport_get_stats()
863 iocmd->status = BFA_STATUS_UNKNOWN_VWWN; bfad_iocmd_vport_clr_stats()
870 iocmd->status = BFA_STATUS_OK; bfad_iocmd_vport_clr_stats()
887 iocmd->status = BFA_STATUS_EINVAL; bfad_iocmd_fabric_get_lports()
894 iocmd->status = BFA_STATUS_VERSION_FAIL; bfad_iocmd_fabric_get_lports()
905 iocmd->status = BFA_STATUS_UNKNOWN_VFID; bfad_iocmd_fabric_get_lports()
912 iocmd->status = BFA_STATUS_OK; bfad_iocmd_fabric_get_lports()
924 iocmd->status = bfa_fcport_set_qos_bw(&bfad->bfa, &iocmd->qos_bw); bfad_iocmd_qos_set_bw()
941 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; bfad_iocmd_ratelim()
951 iocmd->status = BFA_STATUS_OK; bfad_iocmd_ratelim()
971 iocmd->status = BFA_STATUS_UNSUPP_SPEED; bfad_iocmd_ratelim_speed()
978 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; bfad_iocmd_ratelim_speed()
981 iocmd->status = BFA_STATUS_OK; bfad_iocmd_ratelim_speed()
997 iocmd->status = BFA_STATUS_OK; bfad_iocmd_cfg_fcpim()
1019 iocmd->status = BFA_STATUS_OK; bfad_iocmd_fcpim_get_modstats()
1041 iocmd->status = BFA_STATUS_OK; bfad_iocmd_fcpim_clr_modstats()
1058 iocmd->status = BFA_STATUS_OK; bfad_iocmd_fcpim_get_del_itn_stats()
1073 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; bfad_iocmd_itnim_get_attr()
1075 iocmd->status = bfa_fcs_itnim_attr_get(fcs_port, bfad_iocmd_itnim_get_attr()
1094 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; bfad_iocmd_itnim_get_iostats()
1099 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; bfad_iocmd_itnim_get_iostats()
1101 iocmd->status = BFA_STATUS_OK; bfad_iocmd_itnim_get_iostats()
1125 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; bfad_iocmd_itnim_reset_stats()
1129 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; bfad_iocmd_itnim_reset_stats()
1131 iocmd->status = BFA_STATUS_OK; bfad_iocmd_itnim_reset_stats()
1154 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; bfad_iocmd_itnim_get_itnstats()
1159 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; bfad_iocmd_itnim_get_itnstats()
1161 iocmd->status = BFA_STATUS_OK; bfad_iocmd_itnim_get_itnstats()
1177 iocmd->status = bfa_fcport_enable(&bfad->bfa); bfad_iocmd_fcport_enable()
1190 iocmd->status = bfa_fcport_disable(&bfad->bfa); bfad_iocmd_fcport_disable()
1205 iocmd->status = bfa_ablk_query(&bfad->bfa.modules.ablk, bfad_iocmd_ioc_get_pcifn_cfg()
1209 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_ioc_get_pcifn_cfg()
1213 iocmd->status = fcomp.status; bfad_iocmd_ioc_get_pcifn_cfg()
1227 iocmd->status = bfa_ablk_pf_create(&bfad->bfa.modules.ablk, bfad_iocmd_pcifn_create()
1232 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_pcifn_create()
1236 iocmd->status = fcomp.status; bfad_iocmd_pcifn_create()
1250 iocmd->status = bfa_ablk_pf_delete(&bfad->bfa.modules.ablk, bfad_iocmd_pcifn_delete()
1254 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_pcifn_delete()
1258 iocmd->status = fcomp.status; bfad_iocmd_pcifn_delete()
1272 iocmd->status = bfa_ablk_pf_update(&bfad->bfa.modules.ablk, bfad_iocmd_pcifn_bw()
1276 bfa_trc(bfad, iocmd->status); bfad_iocmd_pcifn_bw()
1277 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_pcifn_bw()
1281 iocmd->status = fcomp.status; bfad_iocmd_pcifn_bw()
1282 bfa_trc(bfad, iocmd->status); bfad_iocmd_pcifn_bw()
1297 iocmd->status = bfa_ablk_adapter_config(&bfad->bfa.modules.ablk, bfad_iocmd_adapter_cfg_mode()
1301 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_adapter_cfg_mode()
1305 iocmd->status = fcomp.status; bfad_iocmd_adapter_cfg_mode()
1320 iocmd->status = bfa_ablk_port_config(&bfad->bfa.modules.ablk, bfad_iocmd_port_cfg_mode()
1325 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_port_cfg_mode()
1329 iocmd->status = fcomp.status; bfad_iocmd_port_cfg_mode()
1344 iocmd->status = bfa_ablk_optrom_en(&bfad->bfa.modules.ablk, bfad_iocmd_ablk_optrom()
1347 iocmd->status = bfa_ablk_optrom_dis(&bfad->bfa.modules.ablk, bfad_iocmd_ablk_optrom()
1351 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_ablk_optrom()
1355 iocmd->status = fcomp.status; bfad_iocmd_ablk_optrom()
1368 iocmd->status = BFA_STATUS_OK; bfad_iocmd_faa_query()
1370 iocmd->status = bfa_faa_query(&bfad->bfa, &iocmd->faa_attr, bfad_iocmd_faa_query()
1374 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_faa_query()
1378 iocmd->status = fcomp.status; bfad_iocmd_faa_query()
1395 iocmd->status = BFA_STATUS_VERSION_FAIL; bfad_iocmd_cee_attr()
1401 cee_comp.status = 0; bfad_iocmd_cee_attr()
1405 iocmd->status = bfa_cee_get_attr(&bfad->bfa.modules.cee, iocmd_bufptr, bfad_iocmd_cee_attr()
1408 if (iocmd->status != BFA_STATUS_OK) { bfad_iocmd_cee_attr()
1432 iocmd->status = BFA_STATUS_VERSION_FAIL; bfad_iocmd_cee_get_stats()
1438 cee_comp.status = 0; bfad_iocmd_cee_get_stats()
1442 iocmd->status = bfa_cee_get_stats(&bfad->bfa.modules.cee, iocmd_bufptr, bfad_iocmd_cee_get_stats()
1445 if (iocmd->status != BFA_STATUS_OK) { bfad_iocmd_cee_get_stats()
1463 iocmd->status = bfa_cee_reset_stats(&bfad->bfa.modules.cee, NULL, NULL); bfad_iocmd_cee_reset_stats()
1465 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_cee_reset_stats()
1479 iocmd->status = bfa_sfp_media(BFA_SFP_MOD(&bfad->bfa), &iocmd->media, bfad_iocmd_sfp_media()
1482 bfa_trc(bfad, iocmd->status); bfad_iocmd_sfp_media()
1483 if (iocmd->status != BFA_STATUS_SFP_NOT_READY) bfad_iocmd_sfp_media()
1487 iocmd->status = fcomp.status; bfad_iocmd_sfp_media()
1501 iocmd->status = bfa_sfp_speed(BFA_SFP_MOD(&bfad->bfa), iocmd->speed, bfad_iocmd_sfp_speed()
1504 bfa_trc(bfad, iocmd->status); bfad_iocmd_sfp_speed()
1505 if (iocmd->status != BFA_STATUS_SFP_NOT_READY) bfad_iocmd_sfp_speed()
1508 iocmd->status = fcomp.status; bfad_iocmd_sfp_speed()
1523 iocmd->status = bfa_flash_get_attr(BFA_FLASH(&bfad->bfa), &iocmd->attr, bfad_iocmd_flash_get_attr()
1526 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_flash_get_attr()
1529 iocmd->status = fcomp.status; bfad_iocmd_flash_get_attr()
1543 iocmd->status = bfa_flash_erase_part(BFA_FLASH(&bfad->bfa), iocmd->type, bfad_iocmd_flash_erase_part()
1546 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_flash_erase_part()
1549 iocmd->status = fcomp.status; bfad_iocmd_flash_erase_part()
1566 iocmd->status = BFA_STATUS_VERSION_FAIL; bfad_iocmd_flash_update_part()
1574 iocmd->status = bfa_flash_update_part(BFA_FLASH(&bfad->bfa), bfad_iocmd_flash_update_part()
1578 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_flash_update_part()
1581 iocmd->status = fcomp.status; bfad_iocmd_flash_update_part()
1598 iocmd->status = BFA_STATUS_VERSION_FAIL; bfad_iocmd_flash_read_part()
1606 iocmd->status = bfa_flash_read_part(BFA_FLASH(&bfad->bfa), iocmd->type, bfad_iocmd_flash_read_part()
1610 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_flash_read_part()
1613 iocmd->status = fcomp.status; bfad_iocmd_flash_read_part()
1628 iocmd->status = bfa_diag_tsensor_query(BFA_DIAG_MOD(&bfad->bfa), bfad_iocmd_diag_temp()
1631 bfa_trc(bfad, iocmd->status); bfad_iocmd_diag_temp()
1632 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_diag_temp()
1635 iocmd->status = fcomp.status; bfad_iocmd_diag_temp()
1650 iocmd->status = bfa_diag_memtest(BFA_DIAG_MOD(&bfad->bfa), bfad_iocmd_diag_memtest()
1654 bfa_trc(bfad, iocmd->status); bfad_iocmd_diag_memtest()
1655 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_diag_memtest()
1658 iocmd->status = fcomp.status; bfad_iocmd_diag_memtest()
1673 iocmd->status = bfa_fcdiag_loopback(&bfad->bfa, iocmd->opmode, bfad_iocmd_diag_loopback()
1677 bfa_trc(bfad, iocmd->status); bfad_iocmd_diag_loopback()
1678 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_diag_loopback()
1681 iocmd->status = fcomp.status; bfad_iocmd_diag_loopback()
1696 iocmd->status = bfa_diag_fwping(BFA_DIAG_MOD(&bfad->bfa), iocmd->cnt, bfad_iocmd_diag_fwping()
1700 bfa_trc(bfad, iocmd->status); bfad_iocmd_diag_fwping()
1701 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_diag_fwping()
1705 iocmd->status = fcomp.status; bfad_iocmd_diag_fwping()
1719 iocmd->status = bfa_fcdiag_queuetest(&bfad->bfa, iocmd->force, bfad_iocmd_diag_queuetest()
1723 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_diag_queuetest()
1726 iocmd->status = fcomp.status; bfad_iocmd_diag_queuetest()
1741 iocmd->status = bfa_sfp_show(BFA_SFP_MOD(&bfad->bfa), &iocmd->sfp, bfad_iocmd_diag_sfp()
1744 bfa_trc(bfad, iocmd->status); bfad_iocmd_diag_sfp()
1745 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_diag_sfp()
1748 iocmd->status = fcomp.status; bfad_iocmd_diag_sfp()
1749 bfa_trc(bfad, iocmd->status); bfad_iocmd_diag_sfp()
1761 iocmd->status = bfa_diag_ledtest(BFA_DIAG_MOD(&bfad->bfa), bfad_iocmd_diag_led()
1775 iocmd->status = bfa_diag_beacon_port(BFA_DIAG_MOD(&bfad->bfa), bfad_iocmd_diag_beacon_lport()
1790 iocmd->status = bfa_fcdiag_lb_is_running(&bfad->bfa); bfad_iocmd_diag_lb_stat()
1792 bfa_trc(bfad, iocmd->status); bfad_iocmd_diag_lb_stat()
1807 iocmd->status = bfa_dport_enable(&bfad->bfa, iocmd->lpcnt, bfad_iocmd_diag_dport_enable()
1810 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_diag_dport_enable()
1811 bfa_trc(bfad, iocmd->status); bfad_iocmd_diag_dport_enable()
1814 iocmd->status = fcomp.status; bfad_iocmd_diag_dport_enable()
1828 iocmd->status = bfa_dport_disable(&bfad->bfa, bfad_hcb_comp, &fcomp); bfad_iocmd_diag_dport_disable()
1830 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_diag_dport_disable()
1831 bfa_trc(bfad, iocmd->status); bfad_iocmd_diag_dport_disable()
1834 iocmd->status = fcomp.status; bfad_iocmd_diag_dport_disable()
1849 iocmd->status = bfa_dport_start(&bfad->bfa, iocmd->lpcnt, bfad_iocmd_diag_dport_start()
1854 if (iocmd->status != BFA_STATUS_OK) { bfad_iocmd_diag_dport_start()
1855 bfa_trc(bfad, iocmd->status); bfad_iocmd_diag_dport_start()
1858 iocmd->status = fcomp.status; bfad_iocmd_diag_dport_start()
1872 iocmd->status = bfa_dport_show(&bfad->bfa, &iocmd->result); bfad_iocmd_diag_dport_show()
1889 iocmd->status = bfa_phy_get_attr(BFA_PHY(&bfad->bfa), iocmd->instance, bfad_iocmd_phy_get_attr()
1892 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_phy_get_attr()
1895 iocmd->status = fcomp.status; bfad_iocmd_phy_get_attr()
1910 iocmd->status = bfa_phy_get_stats(BFA_PHY(&bfad->bfa), iocmd->instance, bfad_iocmd_phy_get_stats()
1913 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_phy_get_stats()
1916 iocmd->status = fcomp.status; bfad_iocmd_phy_get_stats()
1932 iocmd->status = BFA_STATUS_VERSION_FAIL; bfad_iocmd_phy_read()
1939 iocmd->status = bfa_phy_read(BFA_PHY(&bfad->bfa), bfad_iocmd_phy_read()
1943 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_phy_read()
1946 iocmd->status = fcomp.status; bfad_iocmd_phy_read()
1947 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_phy_read()
1967 iocmd->status = BFA_STATUS_OK; bfad_iocmd_vhba_query()
1983 iocmd->status = BFA_STATUS_VERSION_FAIL; bfad_iocmd_phy_update()
1990 iocmd->status = bfa_phy_update(BFA_PHY(&bfad->bfa), bfad_iocmd_phy_update()
1994 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_phy_update()
1997 iocmd->status = fcomp.status; bfad_iocmd_phy_update()
2010 iocmd->status = BFA_STATUS_EINVAL; bfad_iocmd_porglog_get()
2014 iocmd->status = BFA_STATUS_OK; bfad_iocmd_porglog_get()
2033 iocmd->status = BFA_STATUS_VERSION_FAIL; bfad_iocmd_debug_fw_core()
2041 iocmd->status = BFA_STATUS_EINVAL; bfad_iocmd_debug_fw_core()
2048 iocmd->status = bfa_ioc_debug_fwcore(&bfad->bfa.ioc, iocmd_bufptr, bfad_iocmd_debug_fw_core()
2073 iocmd->status = BFA_STATUS_OK; bfad_iocmd_debug_ctl()
2087 iocmd->status = BFA_STATUS_OK; bfad_iocmd_porglog_ctl()
2102 iocmd->status = bfa_fcpim_profile_on(&bfad->bfa, tv.tv_sec); bfad_iocmd_fcpim_cfg_profile()
2104 iocmd->status = bfa_fcpim_profile_off(&bfad->bfa); bfad_iocmd_fcpim_cfg_profile()
2123 iocmd->status = BFA_STATUS_UNKNOWN_LWWN; bfad_iocmd_itnim_get_ioprofile()
2127 iocmd->status = BFA_STATUS_UNKNOWN_RWWN; bfad_iocmd_itnim_get_ioprofile()
2129 iocmd->status = bfa_itnim_get_ioprofile( bfad_iocmd_itnim_get_ioprofile()
2150 iocmd->status = bfa_fcport_get_stats(&bfad->bfa, &cb_qe); bfad_iocmd_fcport_get_stats()
2152 if (iocmd->status != BFA_STATUS_OK) { bfad_iocmd_fcport_get_stats()
2153 bfa_trc(bfad, iocmd->status); bfad_iocmd_fcport_get_stats()
2157 iocmd->status = fcomp.status; bfad_iocmd_fcport_get_stats()
2174 iocmd->status = bfa_fcport_clear_stats(&bfad->bfa, &cb_qe); bfad_iocmd_fcport_reset_stats()
2176 if (iocmd->status != BFA_STATUS_OK) { bfad_iocmd_fcport_reset_stats()
2177 bfa_trc(bfad, iocmd->status); bfad_iocmd_fcport_reset_stats()
2181 iocmd->status = fcomp.status; bfad_iocmd_fcport_reset_stats()
2195 iocmd->status = bfa_flash_update_part(BFA_FLASH(&bfad->bfa), bfad_iocmd_boot_cfg()
2200 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_boot_cfg()
2203 iocmd->status = fcomp.status; bfad_iocmd_boot_cfg()
2217 iocmd->status = bfa_flash_read_part(BFA_FLASH(&bfad->bfa), bfad_iocmd_boot_query()
2222 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_boot_query()
2225 iocmd->status = fcomp.status; bfad_iocmd_boot_query()
2243 iocmd->status = BFA_STATUS_OK; bfad_iocmd_preboot_query()
2258 iocmd->status = bfa_flash_update_part(BFA_FLASH(&bfad->bfa), bfad_iocmd_ethboot_cfg()
2264 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_ethboot_cfg()
2267 iocmd->status = fcomp.status; bfad_iocmd_ethboot_cfg()
2281 iocmd->status = bfa_flash_read_part(BFA_FLASH(&bfad->bfa), bfad_iocmd_ethboot_query()
2287 if (iocmd->status != BFA_STATUS_OK) bfad_iocmd_ethboot_query()
2290 iocmd->status = fcomp.status; bfad_iocmd_ethboot_query()
2312 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; bfad_iocmd_cfg_trunk()
2327 iocmd->status = BFA_STATUS_OK; bfad_iocmd_cfg_trunk()
2346 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; bfad_iocmd_trunk_get_attr()
2351 iocmd->status = BFA_STATUS_OK; bfad_iocmd_trunk_get_attr()
2369 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; bfad_iocmd_qos()
2396 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; bfad_iocmd_qos_get_attr()
2405 iocmd->status = BFA_STATUS_OK; bfad_iocmd_qos_get_attr()
2440 iocmd->status = BFA_STATUS_OK; bfad_iocmd_qos_get_vc_attr()
2462 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; bfad_iocmd_qos_get_stats()
2464 iocmd->status = bfa_fcport_get_stats(&bfad->bfa, &cb_qe); bfad_iocmd_qos_get_stats()
2466 if (iocmd->status != BFA_STATUS_OK) { bfad_iocmd_qos_get_stats()
2467 bfa_trc(bfad, iocmd->status); bfad_iocmd_qos_get_stats()
2471 iocmd->status = fcomp.status; bfad_iocmd_qos_get_stats()
2493 iocmd->status = BFA_STATUS_TOPOLOGY_LOOP; bfad_iocmd_qos_reset_stats()
2495 iocmd->status = bfa_fcport_clear_stats(&bfad->bfa, &cb_qe); bfad_iocmd_qos_reset_stats()
2497 if (iocmd->status != BFA_STATUS_OK) { bfad_iocmd_qos_reset_stats()
2498 bfa_trc(bfad, iocmd->status); bfad_iocmd_qos_reset_stats()
2502 iocmd->status = fcomp.status; bfad_iocmd_qos_reset_stats()
2519 iocmd->status = BFA_STATUS_UNKNOWN_VFID; bfad_iocmd_vf_get_stats()
2525 iocmd->status = BFA_STATUS_OK; bfad_iocmd_vf_get_stats()
2542 iocmd->status = BFA_STATUS_UNKNOWN_VFID; bfad_iocmd_vf_clr_stats()
2547 iocmd->status = BFA_STATUS_OK; bfad_iocmd_vf_clr_stats()
2575 iocmd->status = bfa_fcpim_lunmask_update(&bfad->bfa, BFA_TRUE); bfad_iocmd_lunmask()
2577 if (iocmd->status == BFA_STATUS_OK) bfad_iocmd_lunmask()
2580 iocmd->status = bfa_fcpim_lunmask_update(&bfad->bfa, BFA_FALSE); bfad_iocmd_lunmask()
2582 if (iocmd->status == BFA_STATUS_OK) bfad_iocmd_lunmask()
2585 iocmd->status = bfa_fcpim_lunmask_clear(&bfad->bfa); bfad_iocmd_lunmask()
2599 iocmd->status = bfa_fcpim_lunmask_query(&bfad->bfa, lun_mask); bfad_iocmd_fcpim_lunmask_query()
2613 iocmd->status = bfa_fcpim_lunmask_add(&bfad->bfa, iocmd->vf_id, bfad_iocmd_fcpim_cfg_lunmask()
2616 iocmd->status = bfa_fcpim_lunmask_delete(&bfad->bfa, bfad_iocmd_fcpim_cfg_lunmask()
2631 iocmd->status = bfa_fcpim_throttle_get(&bfad->bfa, bfad_iocmd_fcpim_throttle_query()
2646 iocmd->status = bfa_fcpim_throttle_set(&bfad->bfa, bfad_iocmd_fcpim_throttle_set()
2663 iocmd->status = bfa_tfru_read(BFA_FRU(&bfad->bfa), bfad_iocmd_tfru_read()
2667 if (iocmd->status == BFA_STATUS_OK) { bfad_iocmd_tfru_read()
2669 iocmd->status = fcomp.status; bfad_iocmd_tfru_read()
2685 iocmd->status = bfa_tfru_write(BFA_FRU(&bfad->bfa), bfad_iocmd_tfru_write()
2689 if (iocmd->status == BFA_STATUS_OK) { bfad_iocmd_tfru_write()
2691 iocmd->status = fcomp.status; bfad_iocmd_tfru_write()
2707 iocmd->status = bfa_fruvpd_read(BFA_FRU(&bfad->bfa), bfad_iocmd_fruvpd_read()
2711 if (iocmd->status == BFA_STATUS_OK) { bfad_iocmd_fruvpd_read()
2713 iocmd->status = fcomp.status; bfad_iocmd_fruvpd_read()
2729 iocmd->status = bfa_fruvpd_update(BFA_FRU(&bfad->bfa), bfad_iocmd_fruvpd_update()
2733 if (iocmd->status == BFA_STATUS_OK) { bfad_iocmd_fruvpd_update()
2735 iocmd->status = fcomp.status; bfad_iocmd_fruvpd_update()
2749 iocmd->status = bfa_fruvpd_get_max_size(BFA_FRU(&bfad->bfa), bfad_iocmd_fruvpd_get_max_size()
3408 bsg_fcpt->status = BFA_STATUS_UNKNOWN_LWWN; bfad_im_bsg_els_ct_request()
3415 bsg_fcpt->status = BFA_STATUS_PORT_OFFLINE; bfad_im_bsg_els_ct_request()
3437 bsg_fcpt->status = BFA_STATUS_UNKNOWN_RWWN; bfad_im_bsg_els_ct_request()
3510 bsg_fcpt->status = drv_fcxp->req_status; bfad_im_bsg_els_ct_request()
3512 bsg_fcpt->status = rc; bfad_im_bsg_els_ct_request()
3520 job->reply->reply_data.ctels_reply.status = FC_CTELS_STATUS_OK; bfad_im_bsg_els_ct_request()
3525 job->reply->reply_data.ctels_reply.status = bfad_im_bsg_els_ct_request()
/linux-4.4.14/arch/powerpc/boot/
H A Dmv64x60_i2c.c63 int status; mv64x60_i2c_wait_for_status() local
67 status = in_le32((u32 *)(ctlr_base + MV64x60_I2C_REG_STATUS)) mv64x60_i2c_wait_for_status()
69 if (status == wanted) mv64x60_i2c_wait_for_status()
70 return status; mv64x60_i2c_wait_for_status()
72 return -status; mv64x60_i2c_wait_for_status()
75 static int mv64x60_i2c_control(int control, int status) mv64x60_i2c_control() argument
78 return mv64x60_i2c_wait_for_status(status); mv64x60_i2c_control()
81 static int mv64x60_i2c_read_byte(int control, int status) mv64x60_i2c_read_byte() argument
84 if (mv64x60_i2c_wait_for_status(status) < 0) mv64x60_i2c_read_byte()
89 static int mv64x60_i2c_write_byte(int data, int control, int status) mv64x60_i2c_write_byte() argument
93 return mv64x60_i2c_wait_for_status(status); mv64x60_i2c_write_byte()
102 int status; mv64x60_i2c_read() local
119 status = MV64x60_I2C_STATUS_MAST_START; mv64x60_i2c_read()
120 if (mv64x60_i2c_control(control, status) < 0) mv64x60_i2c_read()
126 status = MV64x60_I2C_STATUS_MAST_WR_ADDR_ACK; mv64x60_i2c_read()
127 if (mv64x60_i2c_write_byte(data, control, status) < 0) mv64x60_i2c_read()
132 status = MV64x60_I2C_STATUS_MAST_WR_ACK; mv64x60_i2c_read()
134 if (mv64x60_i2c_write_byte(offset >> 8, control, status) < 0) mv64x60_i2c_read()
137 if (mv64x60_i2c_write_byte(offset, control, status) < 0) mv64x60_i2c_read()
142 status = MV64x60_I2C_STATUS_MAST_REPEAT_START; mv64x60_i2c_read()
143 if (mv64x60_i2c_control(control, status) < 0) mv64x60_i2c_read()
149 status = MV64x60_I2C_STATUS_MAST_RD_ADDR_ACK; mv64x60_i2c_read()
150 if (mv64x60_i2c_write_byte(data, control, status) < 0) mv64x60_i2c_read()
155 status = MV64x60_I2C_STATUS_MAST_RD_DATA_ACK; mv64x60_i2c_read()
158 data = mv64x60_i2c_read_byte(control, status); mv64x60_i2c_read()
168 status = MV64x60_I2C_STATUS_MAST_RD_DATA_NO_ACK; mv64x60_i2c_read()
169 data = mv64x60_i2c_read_byte(control, status); mv64x60_i2c_read()
176 status = MV64x60_I2C_STATUS_NO_STATUS; mv64x60_i2c_read()
177 if (mv64x60_i2c_control(control, status) < 0) mv64x60_i2c_read()
/linux-4.4.14/drivers/isdn/sc/
H A Dioctl.c22 int status; sc_ioctl() local
71 status = send_and_receive(card, CMPID, cmReqType2, cmReqClass0, cmReqLoadProc, sc_ioctl()
76 if (status) { sc_ioctl()
77 pr_debug("%s: SCIOCLOAD: command failed, status = %d\n", sc_ioctl()
78 sc_adapter[card]->devicename, status); sc_ioctl()
120 status = send_and_receive(card, CEPID, ceReqTypeCall, ceReqClass0, ceReqCallSetSwitchType, sc_ioctl()
122 if (!status && !(rcvmsg->rsp_status)) { sc_ioctl()
129 pr_debug("%s: SCIOCSETSWITCH: command failed (status = %d)\n", sc_ioctl()
130 sc_adapter[card]->devicename, status); sc_ioctl()
132 return status; sc_ioctl()
144 status = send_and_receive(card, CEPID, ceReqTypeCall, ceReqClass0, sc_ioctl()
146 if (!status && !(rcvmsg->rsp_status)) { sc_ioctl()
151 pr_debug("%s: SCIOCGETSWITCH: command failed (status = %d)\n", sc_ioctl()
152 sc_adapter[card]->devicename, status); sc_ioctl()
154 return status; sc_ioctl()
185 status = send_and_receive(card, CEPID, ceReqTypeCall, ceReqClass0, ceReqCallGetSPID, sc_ioctl()
187 if (!status) { sc_ioctl()
191 pr_debug("%s: SCIOCGETSPID: command failed (status = %d)\n", sc_ioctl()
192 sc_adapter[card]->devicename, status); sc_ioctl()
195 return status; sc_ioctl()
229 status = send_and_receive(card, CEPID, ceReqTypeCall, sc_ioctl()
232 if (!status && !(rcvmsg->rsp_status)) { sc_ioctl()
240 pr_debug("%s: SCIOCSETSPID: command failed (status = %d)\n", sc_ioctl()
241 sc_adapter[card]->devicename, status); sc_ioctl()
244 return status; sc_ioctl()
256 status = send_and_receive(card, CEPID, ceReqTypeCall, ceReqClass0, ceReqCallGetMyNumber, sc_ioctl()
258 if (!status) { sc_ioctl()
263 pr_debug("%s: SCIOCGETDN: command failed (status = %d)\n", sc_ioctl()
264 sc_adapter[card]->devicename, status); sc_ioctl()
266 return status; sc_ioctl()
304 status = send_and_receive(card, CEPID, ceReqTypeCall, sc_ioctl()
307 if (!status && !(rcvmsg->rsp_status)) { sc_ioctl()
315 pr_debug("%s: SCIOCSETDN: command failed (status = %d)\n", sc_ioctl()
316 sc_adapter[card]->devicename, status); sc_ioctl()
319 return status; sc_ioctl()
366 status = send_and_receive(card, CEPID, ceReqTypeCall, ceReqClass0, sc_ioctl()
368 if (!status && !(rcvmsg->rsp_status)) { sc_ioctl()
373 pr_debug("%s: SCIOCGETSPEED: command failed (status = %d)\n", sc_ioctl()
374 sc_adapter[card]->devicename, status); sc_ioctl()
376 return status; sc_ioctl()
415 int i, status; GetStatus() local
434 status = send_and_receive(card, CEPID, ceReqTypePhy, ceReqClass2, GetStatus()
436 if (!status) { GetStatus()
440 bi->status.bristats[i].phy_stat = GetStatus()
447 bi->status.pristats[i].phy_stat = GetStatus()
456 status = send_and_receive(card, CEPID, ceReqTypeCall, ceReqClass0, GetStatus()
458 if (!status) { GetStatus()
460 bi->status.pristats[i].call_type = GetStatus()
464 bi->status.bristats[i].call_type = GetStatus()
477 status = send_and_receive(card, CEPID, ceReqTypeStat, ceReqClass2, GetStatus()
479 if (!status) { GetStatus()
481 bi->status.pristats[i].call_state = GetStatus()
488 status = send_and_receive(card, CEPID, ceReqTypeStat, ceReqClass2, GetStatus()
490 if (!status) { GetStatus()
492 bi->status.pristats[i].serv_state = GetStatus()
500 status = send_and_receive(card, CEPID, ceReqTypeLnk, ceReqClass0, GetStatus()
502 if (!status) { GetStatus()
503 bi->status.pristats[i - 1].link_stats.tx_good = GetStatus()
505 bi->status.pristats[i - 1].link_stats.tx_bad = GetStatus()
507 bi->status.pristats[i - 1].link_stats.rx_good = GetStatus()
509 bi->status.pristats[i - 1].link_stats.rx_bad = GetStatus()
517 status = send_and_receive(card, CEPID, ceReqTypeLnk, ceReqClass0, GetStatus()
519 if (!status) { GetStatus()
536 status = send_and_receive(card, CEPID, ceReqTypeLnk, ceReqClass0, GetStatus()
538 if (!status) { GetStatus()
543 bi->status.bristats[0].link_stats.tx_good = GetStatus()
545 bi->status.bristats[0].link_stats.tx_bad = GetStatus()
547 bi->status.bristats[0].link_stats.rx_good = GetStatus()
549 bi->status.bristats[0].link_stats.rx_bad = GetStatus()
551 bi->status.bristats[1].link_stats.tx_good = GetStatus()
553 bi->status.bristats[1].link_stats.tx_bad = GetStatus()
555 bi->status.bristats[1].link_stats.rx_good = GetStatus()
557 bi->status.bristats[1].link_stats.rx_bad = GetStatus()
565 status = send_and_receive(card, CEPID, ceReqTypeCall, ceReqClass0, GetStatus()
567 if (!status) GetStatus()
568 strcpy(bi->status.bristats[i].spid, rcvmsg.msg_data.byte_array); GetStatus()
575 status = send_and_receive(card, CEPID, ceReqTypeCall, ceReqClass0, GetStatus()
577 if (!status) GetStatus()
578 strcpy(bi->status.bristats[i].dn, rcvmsg.msg_data.byte_array); GetStatus()
/linux-4.4.14/arch/s390/pci/
H A Dpci_insn.c16 static inline void zpci_err_insn(u8 cc, u8 status, u64 req, u64 offset) zpci_err_insn() argument
22 u8 status; zpci_err_insn() member in struct:__anon2556
23 } __packed data = {req, offset, cc, status}; zpci_err_insn()
29 static inline u8 __mpcifc(u64 req, struct zpci_fib *fib, u8 *status) __mpcifc() argument
39 *status = req >> 24 & 0xff; __mpcifc()
45 u8 cc, status; zpci_mod_fc() local
48 cc = __mpcifc(req, fib, &status); zpci_mod_fc()
54 zpci_err_insn(cc, status, req, 0); zpci_mod_fc()
60 static inline u8 __rpcit(u64 fn, u64 addr, u64 range, u8 *status) __rpcit() argument
73 *status = fn >> 24 & 0xff; __rpcit()
79 u8 cc, status; zpci_refresh_trans() local
82 cc = __rpcit(fn, addr, range, &status); zpci_refresh_trans()
88 zpci_err_insn(cc, status, addr, range); zpci_refresh_trans()
102 static inline int __pcilg(u64 *data, u64 req, u64 offset, u8 *status) __pcilg() argument
118 *status = __req >> 24 & 0xff; __pcilg()
127 u8 status; zpci_load() local
131 cc = __pcilg(data, req, offset, &status); zpci_load()
137 zpci_err_insn(cc, status, req, offset); zpci_load()
144 static inline int __pcistg(u64 data, u64 req, u64 offset, u8 *status) __pcistg() argument
159 *status = __req >> 24 & 0xff; __pcistg()
165 u8 status; zpci_store() local
169 cc = __pcistg(data, req, offset, &status); zpci_store()
175 zpci_err_insn(cc, status, req, offset); zpci_store()
182 static inline int __pcistb(const u64 *data, u64 req, u64 offset, u8 *status) __pcistb() argument
195 *status = req >> 24 & 0xff; __pcistb()
201 u8 status; zpci_store_block() local
205 cc = __pcistb(data, req, offset, &status); zpci_store_block()
211 zpci_err_insn(cc, status, req, offset); zpci_store_block()
/linux-4.4.14/drivers/staging/media/cxd2099/
H A Dcxd2099.c119 int status; read_block() local
121 status = i2c_write_reg(ci->i2c, ci->cfg.adr, 0, adr); read_block()
122 if (!status) { read_block()
124 status = i2c_read(ci->i2c, ci->cfg.adr, 1, data, n); read_block()
126 return status; read_block()
137 int status; read_pccard() local
140 status = i2c_write(ci->i2c, ci->cfg.adr, addr, 3); read_pccard()
141 if (!status) read_pccard()
142 status = i2c_read(ci->i2c, ci->cfg.adr, 3, data, n); read_pccard()
143 return status; read_pccard()
148 int status; write_pccard() local
151 status = i2c_write(ci->i2c, ci->cfg.adr, addr, 3); write_pccard()
152 if (!status) { write_pccard()
156 status = i2c_write(ci->i2c, ci->cfg.adr, buf, n+1); write_pccard()
158 return status; write_pccard()
163 int status; read_io() local
166 status = i2c_write(ci->i2c, ci->cfg.adr, addr, 3); read_io()
167 if (!status) read_io()
168 status = i2c_read(ci->i2c, ci->cfg.adr, 3, val, 1); read_io()
169 return status; read_io()
174 int status; write_io() local
178 status = i2c_write(ci->i2c, ci->cfg.adr, addr, 3); write_io()
179 if (!status) write_io()
180 status = i2c_write(ci->i2c, ci->cfg.adr, buf, 2); write_io()
181 return status; write_io()
187 int status;
190 status = i2c_write(ci->i2c, ci->cfg.adr, addr, 3);
191 if (!status)
192 status = i2c_read(ci->i2c, ci->cfg.adr, 3, data, n);
198 int status;
201 status = i2c_write(ci->i2c, ci->cfg.adr, addr, 3);
202 if (!status) {
206 status = i2c_write(ci->i2c, ci->cfg.adr, buf, n + 1);
214 int status; write_regm() local
216 status = i2c_write_reg(ci->i2c, ci->cfg.adr, 0, reg); write_regm()
217 if (!status && reg >= 6 && reg <= 8 && mask != 0xff) write_regm()
218 status = i2c_read_reg(ci->i2c, ci->cfg.adr, 1, &ci->regs[reg]); write_regm()
220 if (!status) { write_regm()
222 status = i2c_write_reg(ci->i2c, ci->cfg.adr, 1, ci->regs[reg]); write_regm()
226 return status; write_regm()
237 int status; write_block() local
240 status = i2c_write_reg(ci->i2c, ci->cfg.adr, 0, adr); write_block()
241 if (!status) { write_block()
244 status = i2c_write(ci->i2c, ci->cfg.adr, buf, n + 1); write_block()
246 return status; write_block()
299 int status; init() local
304 status = write_reg(ci, 0x00, 0x00); init()
305 if (status < 0) init()
307 status = write_reg(ci, 0x01, 0x00); init()
308 if (status < 0) init()
310 status = write_reg(ci, 0x02, 0x10); init()
311 if (status < 0) init()
313 status = write_reg(ci, 0x03, 0x00); init()
314 if (status < 0) init()
316 status = write_reg(ci, 0x05, 0xFF); init()
317 if (status < 0) init()
319 status = write_reg(ci, 0x06, 0x1F); init()
320 if (status < 0) init()
322 status = write_reg(ci, 0x07, 0x1F); init()
323 if (status < 0) init()
325 status = write_reg(ci, 0x08, 0x28); init()
326 if (status < 0) init()
328 status = write_reg(ci, 0x14, 0x20); init()
329 if (status < 0) init()
334 status = write_reg(ci, 0x09, 0x4D); init()
335 if (status < 0) init()
340 status = write_reg(ci, 0x0A, 0xA7); init()
341 if (status < 0) init()
344 status = write_reg(ci, 0x0B, 0x33); init()
345 if (status < 0) init()
347 status = write_reg(ci, 0x0C, 0x33); init()
348 if (status < 0) init()
351 status = write_regm(ci, 0x14, 0x00, 0x0F); init()
352 if (status < 0) init()
354 status = write_reg(ci, 0x15, ci->clk_reg_b); init()
355 if (status < 0) init()
357 status = write_regm(ci, 0x16, 0x00, 0x0F); init()
358 if (status < 0) init()
360 status = write_reg(ci, 0x17, ci->clk_reg_f); init()
361 if (status < 0) init()
366 status = write_reg(ci, 0x09, 0x6f); init()
367 if (status < 0) init()
370 status = write_reg(ci, 0x09, 0x6d); init()
371 if (status < 0) init()
374 status = write_reg(ci, 0x20, 0x68); init()
375 if (status < 0) init()
377 status = write_reg(ci, 0x21, 0x00); init()
378 if (status < 0) init()
380 status = write_reg(ci, 0x22, 0x02); init()
381 if (status < 0) init()
385 status = write_reg(ci, 0x09, 0x4f); init()
386 if (status < 0) init()
389 status = write_reg(ci, 0x09, 0x4d); init()
390 if (status < 0) init()
394 status = write_reg(ci, 0x20, 0x28); init()
395 if (status < 0) init()
397 status = write_reg(ci, 0x21, 0x00); init()
398 if (status < 0) init()
400 status = write_reg(ci, 0x22, 0x07); init()
401 if (status < 0) init()
405 status = write_regm(ci, 0x20, 0x80, 0x80); init()
406 if (status < 0) init()
408 status = write_regm(ci, 0x03, 0x02, 0x02); init()
409 if (status < 0) init()
411 status = write_reg(ci, 0x01, 0x04); init()
412 if (status < 0) init()
414 status = write_reg(ci, 0x00, 0x31); init()
415 if (status < 0) init()
419 status = write_regm(ci, 0x09, 0x08, 0x08); init()
420 if (status < 0) init()
/linux-4.4.14/drivers/usb/serial/
H A Df81232.c65 int status; f81232_get_register() local
73 status = usb_control_msg(dev, f81232_get_register()
82 if (status != sizeof(*val)) { f81232_get_register()
83 dev_err(&port->dev, "%s failed status: %d\n", __func__, status); f81232_get_register()
85 if (status < 0) f81232_get_register()
86 status = usb_translate_errors(status); f81232_get_register()
88 status = -EIO; f81232_get_register()
90 status = 0; f81232_get_register()
95 return status; f81232_get_register()
100 int status; f81232_set_register() local
110 status = usb_control_msg(dev, f81232_set_register()
119 if (status != sizeof(val)) { f81232_set_register()
120 dev_err(&port->dev, "%s failed status: %d\n", __func__, status); f81232_set_register()
122 if (status < 0) f81232_set_register()
123 status = usb_translate_errors(status); f81232_set_register()
125 status = -EIO; f81232_set_register()
127 status = 0; f81232_set_register()
131 return status; f81232_set_register()
136 int status; f81232_read_msr() local
142 status = f81232_get_register(port, MODEM_STATUS_REGISTER, f81232_read_msr()
144 if (status) { f81232_read_msr()
145 dev_err(&port->dev, "%s fail, status: %d\n", __func__, status); f81232_read_msr()
182 int status; f81232_set_mctrl() local
210 status = f81232_set_register(port, MODEM_CONTROL_REGISTER, val); f81232_set_mctrl()
211 if (status) { f81232_set_mctrl()
212 dev_err(&port->dev, "%s set MCR status < 0\n", __func__); f81232_set_mctrl()
214 return status; f81232_set_mctrl()
253 int status = urb->status; f81232_read_int_callback() local
256 switch (status) { f81232_read_int_callback()
264 dev_dbg(&port->dev, "%s - urb shutting down with status: %d\n", f81232_read_int_callback()
265 __func__, status); f81232_read_int_callback()
268 dev_dbg(&port->dev, "%s - nonzero urb status received: %d\n", f81232_read_int_callback()
269 __func__, status); f81232_read_int_callback()
353 int status = 0; f81232_set_baudrate() local
357 status = f81232_get_register(port, LINE_CONTROL_REGISTER, f81232_set_baudrate()
359 if (status) { f81232_set_baudrate()
361 __func__, status); f81232_set_baudrate()
365 status = f81232_set_register(port, LINE_CONTROL_REGISTER, f81232_set_baudrate()
367 if (status) { f81232_set_baudrate()
369 __func__, status); f81232_set_baudrate()
373 status = f81232_set_register(port, RECEIVE_BUFFER_REGISTER, f81232_set_baudrate()
375 if (status) { f81232_set_baudrate()
377 __func__, status); f81232_set_baudrate()
381 status = f81232_set_register(port, INTERRUPT_ENABLE_REGISTER, f81232_set_baudrate()
383 if (status) { f81232_set_baudrate()
385 __func__, status); f81232_set_baudrate()
389 status = f81232_set_register(port, LINE_CONTROL_REGISTER, f81232_set_baudrate()
391 if (status) { f81232_set_baudrate()
393 __func__, status); f81232_set_baudrate()
400 int status; f81232_port_enable() local
406 status = f81232_set_register(port, FIFO_CONTROL_REGISTER, val); f81232_port_enable()
407 if (status) { f81232_port_enable()
409 __func__, status); f81232_port_enable()
410 return status; f81232_port_enable()
414 status = f81232_set_register(port, INTERRUPT_ENABLE_REGISTER, f81232_port_enable()
416 if (status) { f81232_port_enable()
418 __func__, status); f81232_port_enable()
419 return status; f81232_port_enable()
427 int status; f81232_port_disable() local
429 status = f81232_set_register(port, INTERRUPT_ENABLE_REGISTER, 0); f81232_port_disable()
430 if (status) { f81232_port_disable()
432 __func__, status); f81232_port_disable()
433 return status; f81232_port_disable()
443 int status = 0; f81232_set_termios() local
493 status = f81232_set_register(port, LINE_CONTROL_REGISTER, new_lcr); f81232_set_termios()
494 if (status) { f81232_set_termios()
496 __func__, status); f81232_set_termios()
H A Dti_usb_3410_5052.c295 int status; ti_startup() local
320 status = ti_download_firmware(tdev); ti_startup()
322 if (status != 0) ti_startup()
331 status = -ENODEV; ti_startup()
337 status = usb_driver_set_configuration(dev, TI_ACTIVE_CONFIG); ti_startup()
338 status = status ? status : -ENODEV; ti_startup()
347 return status; ti_startup()
400 int status; ti_open() local
426 status = -EINVAL; ti_open()
430 status = usb_submit_urb(urb, GFP_KERNEL); ti_open()
431 if (status) { ti_open()
432 dev_err(&port->dev, "%s - submit interrupt urb failed, %d\n", __func__, status); ti_open()
441 status = ti_command_out_sync(tdev, TI_OPEN_PORT, ti_open()
443 if (status) { ti_open()
445 __func__, status); ti_open()
450 status = ti_command_out_sync(tdev, TI_START_PORT, ti_open()
452 if (status) { ti_open()
454 __func__, status); ti_open()
459 status = ti_command_out_sync(tdev, TI_PURGE_PORT, ti_open()
461 if (status) { ti_open()
463 __func__, status); ti_open()
466 status = ti_command_out_sync(tdev, TI_PURGE_PORT, ti_open()
468 if (status) { ti_open()
470 __func__, status); ti_open()
483 status = ti_command_out_sync(tdev, TI_OPEN_PORT, ti_open()
485 if (status) { ti_open()
487 __func__, status); ti_open()
492 status = ti_command_out_sync(tdev, TI_START_PORT, ti_open()
494 if (status) { ti_open()
496 __func__, status); ti_open()
505 status = -EINVAL; ti_open()
510 status = usb_submit_urb(urb, GFP_KERNEL); ti_open()
511 if (status) { ti_open()
513 __func__, status); ti_open()
527 dev_dbg(&port->dev, "%s - exit %d\n", __func__, status); ti_open()
528 return status; ti_open()
537 int status; ti_close() local
558 status = ti_command_out_sync(tdev, TI_CLOSE_PORT, ti_close()
560 if (status) ti_close()
563 , __func__, status); ti_close()
667 int status; ti_unthrottle() local
673 status = ti_restart_read(tport, tty); ti_unthrottle()
674 if (status) ti_unthrottle()
676 __func__, status); ti_unthrottle()
710 int status; ti_set_termios() local
815 status = ti_command_out_sync(tport->tp_tdev, TI_SET_CONFIG, ti_set_termios()
818 if (status) ti_set_termios()
820 __func__, port_number, status); ti_set_termios()
827 status = ti_set_mcr(tport, mcr); ti_set_termios()
828 if (status) ti_set_termios()
831 __func__, port_number, status); ti_set_termios()
905 int status; ti_break() local
912 status = ti_write_byte(port, tport->tp_tdev, ti_break()
916 if (status) ti_break()
917 dev_dbg(&port->dev, "%s - error setting break, %d\n", __func__, status); ti_break()
932 int status = urb->status; ti_interrupt_callback() local
936 switch (status) { ti_interrupt_callback()
942 dev_dbg(dev, "%s - urb shutting down, %d\n", __func__, status); ti_interrupt_callback()
946 dev_err(dev, "%s - nonzero urb status, %d\n", __func__, status); ti_interrupt_callback()
1010 int status = urb->status; ti_bulk_in_callback() local
1013 switch (status) { ti_bulk_in_callback()
1019 dev_dbg(dev, "%s - urb shutting down, %d\n", __func__, status); ti_bulk_in_callback()
1023 dev_err(dev, "%s - nonzero urb status, %d\n", ti_bulk_in_callback()
1024 __func__, status); ti_bulk_in_callback()
1028 if (status == -EPIPE) ti_bulk_in_callback()
1031 if (status) { ti_bulk_in_callback()
1069 int status = urb->status; ti_bulk_out_callback() local
1073 switch (status) { ti_bulk_out_callback()
1079 dev_dbg(&port->dev, "%s - urb shutting down, %d\n", __func__, status); ti_bulk_out_callback()
1083 dev_err_console(port, "%s - nonzero urb status, %d\n", ti_bulk_out_callback()
1084 __func__, status); ti_bulk_out_callback()
1169 int status; ti_set_mcr() local
1171 status = ti_write_byte(tport->tp_port, tport->tp_tdev, ti_set_mcr()
1176 if (!status) ti_set_mcr()
1180 return status; ti_set_mcr()
1186 int size, status; ti_get_lsr() local
1197 status = ti_command_in_sync(tdev, TI_GET_PORT_STATUS, ti_get_lsr()
1199 if (status) { ti_get_lsr()
1201 "%s - get port status command failed, %d\n", ti_get_lsr()
1202 __func__, status); ti_get_lsr()
1212 return status; ti_get_lsr()
1318 int status = 0; ti_restart_read() local
1328 status = usb_submit_urb(urb, GFP_KERNEL); ti_restart_read()
1334 return status; ti_restart_read()
1341 int status; ti_command_out_sync() local
1343 status = usb_control_msg(tdev->td_serial->dev, ti_command_out_sync()
1348 if (status == size) ti_command_out_sync()
1349 status = 0; ti_command_out_sync()
1351 if (status > 0) ti_command_out_sync()
1352 status = -ECOMM; ti_command_out_sync()
1354 return status; ti_command_out_sync()
1361 int status; ti_command_in_sync() local
1363 status = usb_control_msg(tdev->td_serial->dev, ti_command_in_sync()
1368 if (status == size) ti_command_in_sync()
1369 status = 0; ti_command_in_sync()
1371 if (status > 0) ti_command_in_sync()
1372 status = -ECOMM; ti_command_in_sync()
1374 return status; ti_command_in_sync()
1382 int status; ti_write_byte() local
1402 status = ti_command_out_sync(tdev, TI_WRITE_DATA, TI_RAM_PORT, 0, ti_write_byte()
1405 if (status < 0) ti_write_byte()
1406 dev_err(&port->dev, "%s - failed, %d\n", __func__, status); ti_write_byte()
1410 return status; ti_write_byte()
1420 int status = 0; ti_do_download() local
1434 status = usb_bulk_msg(dev, pipe, buffer + pos, len, ti_do_download()
1436 if (status) ti_do_download()
1439 return status; ti_do_download()
1444 int status; ti_download_firmware() local
1457 status = request_firmware(&fw_p, buf, &dev->dev); ti_download_firmware()
1459 if (status != 0) { ti_download_firmware()
1488 status = request_firmware(&fw_p, buf, &dev->dev); ti_download_firmware()
1490 if (status) { ti_download_firmware()
1505 status = ti_do_download(dev, pipe, buffer, fw_p->size); ti_download_firmware()
1508 status = -ENOMEM; ti_download_firmware()
1511 if (status) { ti_download_firmware()
1513 __func__, status); ti_download_firmware()
1514 return status; ti_download_firmware()
H A Dmos7840.c454 int status = urb->status; mos7840_control_callback() local
458 switch (status) { mos7840_control_callback()
466 dev_dbg(dev, "%s - urb shutting down with status: %d\n", __func__, status); mos7840_control_callback()
469 dev_dbg(dev, "%s - nonzero urb status received: %d\n", __func__, status); mos7840_control_callback()
517 switch (urb->status) { mos7840_set_led_callback()
526 __func__, urb->status); mos7840_set_led_callback()
529 dev_dbg(&urb->dev->dev, "%s - nonzero urb status: %d\n", mos7840_set_led_callback()
530 __func__, urb->status); mos7840_set_led_callback()
607 int status = urb->status; mos7840_interrupt_callback() local
609 switch (status) { mos7840_interrupt_callback()
617 dev_dbg(&urb->dev->dev, "%s - urb shutting down with status: %d\n", mos7840_interrupt_callback()
618 __func__, status); mos7840_interrupt_callback()
621 dev_dbg(&urb->dev->dev, "%s - nonzero urb status received: %d\n", mos7840_interrupt_callback()
622 __func__, status); mos7840_interrupt_callback()
636 * Byte 5 FIFO status for both */ mos7840_interrupt_callback()
658 dev_dbg(&urb->dev->dev, "Serial Port %d: Receiver status error or \n", i); mos7840_interrupt_callback()
664 dev_dbg(&urb->dev->dev, "Serial Port %d: Modem status change\n", i); mos7840_interrupt_callback()
744 int status = urb->status; mos7840_bulk_in_callback() local
750 if (status) { mos7840_bulk_in_callback()
751 dev_dbg(&urb->dev->dev, "nonzero read bulk status received: %d\n", status); mos7840_bulk_in_callback()
807 int status = urb->status; mos7840_bulk_out_data_callback() local
821 if (status) { mos7840_bulk_out_data_callback()
822 dev_dbg(&port->dev, "nonzero write bulk status received:%d\n", status); mos7840_bulk_out_data_callback()
852 int status; mos7840_open() local
905 status = mos7840_get_reg_sync(port, mos7840_port->SpRegOffset, &Data); mos7840_open()
906 if (status < 0) { mos7840_open()
911 status = mos7840_set_reg_sync(port, mos7840_port->SpRegOffset, Data); mos7840_open()
912 if (status < 0) { mos7840_open()
918 status = mos7840_set_reg_sync(port, mos7840_port->SpRegOffset, Data); mos7840_open()
919 if (status < 0) { mos7840_open()
926 status = mos7840_get_reg_sync(port, mos7840_port->ControlRegOffset, mos7840_open()
928 if (status < 0) { mos7840_open()
934 status = mos7840_set_reg_sync(port, mos7840_open()
936 if (status < 0) { mos7840_open()
946 status = mos7840_set_uart_reg(port, INTERRUPT_ENABLE_REGISTER, Data); mos7840_open()
947 if (status < 0) { mos7840_open()
953 status = mos7840_set_uart_reg(port, FIFO_CONTROL_REGISTER, Data); mos7840_open()
954 if (status < 0) { mos7840_open()
960 status = mos7840_set_uart_reg(port, FIFO_CONTROL_REGISTER, Data); mos7840_open()
961 if (status < 0) { mos7840_open()
967 status = mos7840_set_uart_reg(port, LINE_CONTROL_REGISTER, Data); mos7840_open()
971 status = mos7840_set_uart_reg(port, MODEM_CONTROL_REGISTER, Data); mos7840_open()
975 status = mos7840_get_uart_reg(port, LINE_CONTROL_REGISTER, &Data); mos7840_open()
979 status = mos7840_set_uart_reg(port, LINE_CONTROL_REGISTER, Data); mos7840_open()
982 status = mos7840_set_uart_reg(port, DIVISOR_LATCH_LSB, Data); mos7840_open()
985 status = mos7840_set_uart_reg(port, DIVISOR_LATCH_MSB, Data); mos7840_open()
988 status = mos7840_get_uart_reg(port, LINE_CONTROL_REGISTER, &Data); mos7840_open()
991 status = mos7840_set_uart_reg(port, LINE_CONTROL_REGISTER, Data); mos7840_open()
996 status = mos7840_get_reg_sync(port, mos7840_port->SpRegOffset, &Data); mos7840_open()
999 status = mos7840_set_reg_sync(port, mos7840_port->SpRegOffset, Data); mos7840_open()
1002 status = mos7840_set_reg_sync(port, mos7840_port->SpRegOffset, Data); mos7840_open()
1005 status = mos7840_set_uart_reg(port, INTERRUPT_ENABLE_REGISTER, Data); mos7840_open()
1009 status = mos7840_get_reg_sync(port, mos7840_port->ControlRegOffset, mos7840_open()
1012 status = mos7840_set_reg_sync(port, mos7840_port->ControlRegOffset, mos7840_open()
1017 status = mos7840_get_reg_sync(port, mos7840_port->ControlRegOffset, mos7840_open()
1020 status = mos7840_set_reg_sync(port, mos7840_port->ControlRegOffset, mos7840_open()
1111 return status; mos7840_open()
1299 int status; mos7840_write() local
1378 status = usb_submit_urb(urb, GFP_ATOMIC); mos7840_write()
1380 if (status) { mos7840_write()
1383 "with status = %d\n", __func__, status); mos7840_write()
1384 bytes_sent = status; mos7840_write()
1405 int status; mos7840_throttle() local
1423 status = mos7840_write(tty, port, &stop_char, 1); mos7840_throttle()
1424 if (status <= 0) mos7840_throttle()
1430 status = mos7840_set_uart_reg(port, MODEM_CONTROL_REGISTER, mos7840_throttle()
1432 if (status < 0) mos7840_throttle()
1446 int status; mos7840_unthrottle() local
1463 status = mos7840_write(tty, port, &start_char, 1); mos7840_unthrottle()
1464 if (status <= 0) mos7840_unthrottle()
1471 status = mos7840_set_uart_reg(port, MODEM_CONTROL_REGISTER, mos7840_unthrottle()
1473 if (status < 0) mos7840_unthrottle()
1485 int status; mos7840_tiocmget() local
1491 status = mos7840_get_uart_reg(port, MODEM_STATUS_REGISTER, &msr); mos7840_tiocmget()
1492 if (status != 1) mos7840_tiocmget()
1494 status = mos7840_get_uart_reg(port, MODEM_CONTROL_REGISTER, &mcr); mos7840_tiocmget()
1495 if (status != 1) mos7840_tiocmget()
1516 int status; mos7840_tiocmset() local
1541 status = mos7840_set_uart_reg(port, MODEM_CONTROL_REGISTER, mcr); mos7840_tiocmset()
1542 if (status < 0) { mos7840_tiocmset()
1544 return status; mos7840_tiocmset()
1600 int status; mos7840_send_cmd_write_baud_rate() local
1626 status = mos7840_set_uart_reg(port, MODEM_CONTROL_REGISTER, mos7840_send_cmd_write_baud_rate()
1628 if (status < 0) { mos7840_send_cmd_write_baud_rate()
1639 status = mos7840_set_uart_reg(port, MODEM_CONTROL_REGISTER, mos7840_send_cmd_write_baud_rate()
1641 if (status < 0) { mos7840_send_cmd_write_baud_rate()
1652 status = mos7840_calc_baud_rate_divisor(port, baudRate, &divisor, mos7840_send_cmd_write_baud_rate()
1654 status = mos7840_get_reg_sync(port, mos7840_port->SpRegOffset, mos7840_send_cmd_write_baud_rate()
1656 if (status < 0) { mos7840_send_cmd_write_baud_rate()
1661 status = mos7840_set_reg_sync(port, mos7840_port->SpRegOffset, mos7840_send_cmd_write_baud_rate()
1663 if (status < 0) { mos7840_send_cmd_write_baud_rate()
1669 if (status) { mos7840_send_cmd_write_baud_rate()
1671 return status; mos7840_send_cmd_write_baud_rate()
1693 return status; mos7840_send_cmd_write_baud_rate()
1711 int status; mos7840_change_port_settings() local
1839 status = mos7840_send_cmd_write_baud_rate(mos7840_port, baud); mos7840_change_port_settings()
1847 status = usb_submit_urb(mos7840_port->read_urb, GFP_KERNEL); mos7840_change_port_settings()
1848 if (status) { mos7840_change_port_settings()
1849 dev_dbg(&port->dev, "usb_submit_urb(read bulk) failed, status = %d\n", mos7840_change_port_settings()
1850 status); mos7840_change_port_settings()
1868 int status; mos7840_set_termios() local
1911 status = usb_submit_urb(mos7840_port->read_urb, GFP_KERNEL); mos7840_set_termios()
1912 if (status) { mos7840_set_termios()
1913 dev_dbg(&port->dev, "usb_submit_urb(read bulk) failed, status = %d\n", mos7840_set_termios()
1914 status); mos7840_set_termios()
1921 * mos7840_get_lsr_info - get line status register info
2124 int status; mos7840_port_probe() local
2178 status = mos7840_get_reg_sync(port, mos7840_port_probe()
2180 if (status < 0) { mos7840_port_probe()
2181 dev_dbg(&port->dev, "Reading ControlReg failed status-0x%x\n", status); mos7840_port_probe()
2184 dev_dbg(&port->dev, "ControlReg Reading success val is %x, status%d\n", Data, status); mos7840_port_probe()
2187 modem status reg */ mos7840_port_probe()
2190 status = mos7840_set_reg_sync(port, mos7840_port_probe()
2192 if (status < 0) { mos7840_port_probe()
2193 dev_dbg(&port->dev, "Writing ControlReg failed(rx_disable) status-0x%x\n", status); mos7840_port_probe()
2196 dev_dbg(&port->dev, "ControlReg Writing success(rx_disable) status%d\n", status); mos7840_port_probe()
2201 status = mos7840_set_reg_sync(port, mos7840_port_probe()
2203 if (status < 0) { mos7840_port_probe()
2204 dev_dbg(&port->dev, "Writing DCR0 failed status-0x%x\n", status); mos7840_port_probe()
2207 dev_dbg(&port->dev, "DCR0 Writing success status%d\n", status); mos7840_port_probe()
2210 status = mos7840_set_reg_sync(port, mos7840_port_probe()
2212 if (status < 0) { mos7840_port_probe()
2213 dev_dbg(&port->dev, "Writing DCR1 failed status-0x%x\n", status); mos7840_port_probe()
2216 dev_dbg(&port->dev, "DCR1 Writing success status%d\n", status); mos7840_port_probe()
2219 status = mos7840_set_reg_sync(port, mos7840_port_probe()
2221 if (status < 0) { mos7840_port_probe()
2222 dev_dbg(&port->dev, "Writing DCR2 failed status-0x%x\n", status); mos7840_port_probe()
2225 dev_dbg(&port->dev, "DCR2 Writing success status%d\n", status); mos7840_port_probe()
2229 status = mos7840_set_reg_sync(port, CLK_START_VALUE_REGISTER, Data); mos7840_port_probe()
2230 if (status < 0) { mos7840_port_probe()
2231 dev_dbg(&port->dev, "Writing CLK_START_VALUE_REGISTER failed status-0x%x\n", status); mos7840_port_probe()
2234 dev_dbg(&port->dev, "CLK_START_VALUE_REGISTER Writing success status%d\n", status); mos7840_port_probe()
2237 status = mos7840_set_reg_sync(port, CLK_MULTI_REGISTER, Data); mos7840_port_probe()
2238 if (status < 0) { mos7840_port_probe()
2239 dev_dbg(&port->dev, "Writing CLK_MULTI_REGISTER failed status-0x%x\n", status); mos7840_port_probe()
2242 dev_dbg(&port->dev, "CLK_MULTI_REGISTER Writing success status%d\n", status); mos7840_port_probe()
2246 status = mos7840_set_uart_reg(port, SCRATCH_PAD_REGISTER, Data); mos7840_port_probe()
2247 if (status < 0) { mos7840_port_probe()
2248 dev_dbg(&port->dev, "Writing SCRATCH_PAD_REGISTER failed status-0x%x\n", status); mos7840_port_probe()
2251 dev_dbg(&port->dev, "SCRATCH_PAD_REGISTER Writing success status%d\n", status); mos7840_port_probe()
2256 status = mos7840_set_reg_sync(port, mos7840_port_probe()
2261 if (status < 0) { mos7840_port_probe()
2262 dev_dbg(&port->dev, "Writing ZLP_REG%d failed status-0x%x\n", pnum + 2, status); mos7840_port_probe()
2265 dev_dbg(&port->dev, "ZLP_REG%d Writing success status%d\n", pnum + 2, status); mos7840_port_probe()
2268 status = mos7840_set_reg_sync(port, mos7840_port_probe()
2273 if (status < 0) { mos7840_port_probe()
2274 dev_dbg(&port->dev, "Writing ZLP_REG%d failed status-0x%x\n", pnum + 1, status); mos7840_port_probe()
2277 dev_dbg(&port->dev, "ZLP_REG%d Writing success status%d\n", pnum + 1, status); mos7840_port_probe()
2286 status = -ENOMEM; mos7840_port_probe()
2300 status = -ENOMEM; mos7840_port_probe()
2320 status = mos7840_set_reg_sync(serial->port[0], ZLP_REG5, Data); mos7840_port_probe()
2321 if (status < 0) { mos7840_port_probe()
2322 dev_dbg(&port->dev, "Writing ZLP_REG5 failed status-0x%x\n", status); mos7840_port_probe()
2325 dev_dbg(&port->dev, "ZLP_REG5 Writing success status%d\n", status); mos7840_port_probe()
2341 return status; mos7840_port_probe()
H A Dquatech2.c51 /* status bytes for the device */
53 #define QT2_LINE_STATUS 0x00 /* following 1 byte is line status */
54 #define QT2_MODEM_STATUS 0x01 /* following 1 byte is modem status */
225 int status; update_mctrl() local
240 status = qt2_setregister(dev, port_priv->device_port, UART_MCR, update_mctrl()
242 if (status < 0) update_mctrl()
245 status); update_mctrl()
246 return status; update_mctrl()
276 int status; qt2_set_termios() local
307 status = qt2_set_port_config(dev, port_priv->device_port, baud, qt2_set_termios()
309 if (status < 0) qt2_set_termios()
311 __func__, status); qt2_set_termios()
314 status = qt2_control_msg(dev, QT_HW_FLOW_CONTROL_MASK, qt2_set_termios()
318 status = qt2_control_msg(dev, QT_HW_FLOW_CONTROL_MASK, qt2_set_termios()
320 if (status < 0) qt2_set_termios()
322 __func__, status); qt2_set_termios()
327 status = qt2_control_msg(dev, QT_SW_FLOW_CONTROL_MASK, qt2_set_termios()
330 status = qt2_control_msg(dev, QT_SW_FLOW_CONTROL_MASK, qt2_set_termios()
333 if (status < 0) qt2_set_termios()
335 __func__, status); qt2_set_termios()
345 int status; qt2_open() local
355 status = qt2_control_msg(serial->dev, QT2_GET_SET_QMCR, qt2_open()
357 if (status < 0) { qt2_open()
360 __func__, device_port, status); qt2_open()
361 return status; qt2_open()
369 status = usb_control_msg(serial->dev, qt2_open()
375 if (status < 0) { qt2_open()
377 status); qt2_open()
379 return status; qt2_open()
390 status = qt2_set_port_config(serial->dev, device_port, qt2_open()
392 if (status < 0) { qt2_open()
395 return status; qt2_open()
559 "%s - status message too short\n", qt2_process_read_urb()
651 int status; qt2_read_bulk_callback() local
653 if (urb->status) { qt2_read_bulk_callback()
655 "%s - non-zero urb status: %i\n", __func__, qt2_read_bulk_callback()
656 urb->status); qt2_read_bulk_callback()
662 status = usb_submit_urb(urb, GFP_ATOMIC); qt2_read_bulk_callback()
663 if (status != 0) qt2_read_bulk_callback()
666 __func__, status); qt2_read_bulk_callback()
673 int status; qt2_setup_urbs() local
689 status = usb_submit_urb(serial_priv->read_urb, GFP_KERNEL); qt2_setup_urbs()
690 if (status != 0) { qt2_setup_urbs()
692 "%s - submit read urb failed %i\n", __func__, status); qt2_setup_urbs()
694 return status; qt2_setup_urbs()
703 int status; qt2_attach() local
706 status = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), qt2_attach()
709 if (status < 0) { qt2_attach()
711 "%s - failed to power on unit: %i\n", __func__, status); qt2_attach()
712 return status; qt2_attach()
721 status = -ENOMEM; qt2_attach()
727 status = qt2_setup_urbs(serial); qt2_attach()
728 if (status != 0) qt2_attach()
737 return status; qt2_attach()
836 int status; qt2_break_ctl() local
843 status = qt2_control_msg(port->serial->dev, QT2_BREAK_CONTROL, qt2_break_ctl()
845 if (status < 0) qt2_break_ctl()
848 status); qt2_break_ctl()
962 int status; qt2_write() local
991 status = usb_submit_urb(write_urb, GFP_ATOMIC); qt2_write()
992 if (status == 0) { qt2_write()
/linux-4.4.14/drivers/net/ethernet/emulex/benet/
H A Dbe_cmds.c27 "Unknown port SFP status"
161 enum mcc_base_status base_status = base_status(compl->status); be_async_cmd_process()
184 adapter->flash_status = compl->status; be_async_cmd_process()
222 /* Just swap the status to host endian; mcc tag is opaquely copied be_mcc_compl_process()
226 base_status = base_status(compl->status); be_mcc_compl_process()
227 addl_status = addl_status(compl->status); be_mcc_compl_process()
245 "opcode %d-%d failed:status %d-%d\n", be_mcc_compl_process()
249 return compl->status; be_mcc_compl_process()
259 /* When link status changes, link speed must be re-queried from FW */ be_async_link_state_process()
262 /* On BEx the FW does not send a separate link status be_async_link_state_process()
265 * status notification be_async_link_state_process()
271 /* For the initial link status do not rely on the ASYNC event as be_async_link_state_process()
488 int num = 0, status = 0; be_process_mcc() local
497 status = be_mcc_compl_process(adapter, compl); be_process_mcc()
508 return status; be_process_mcc()
515 int i, status = 0; be_mcc_wait_compl() local
523 status = be_process_mcc(adapter); be_mcc_wait_compl()
535 return status; be_mcc_wait_compl()
541 int status; be_mcc_notify_wait() local
552 status = be_mcc_notify(adapter); be_mcc_notify_wait()
553 if (status) be_mcc_notify_wait()
556 status = be_mcc_wait_compl(adapter); be_mcc_notify_wait()
557 if (status == -EIO) be_mcc_notify_wait()
560 status = (resp->base_status | be_mcc_notify_wait()
564 return status; be_mcc_notify_wait()
604 int status; be_mbox_notify_wait() local
612 status = be_mbox_db_ready_wait(adapter, db); be_mbox_notify_wait()
613 if (status != 0) be_mbox_notify_wait()
614 return status; be_mbox_notify_wait()
622 status = be_mbox_db_ready_wait(adapter, db); be_mbox_notify_wait()
623 if (status != 0) be_mbox_notify_wait()
624 return status; be_mbox_notify_wait()
631 status = be_mbox_db_ready_wait(adapter, db); be_mbox_notify_wait()
632 if (status != 0) be_mbox_notify_wait()
633 return status; be_mbox_notify_wait()
637 status = be_mcc_compl_process(adapter, &mbox->compl); be_mbox_notify_wait()
639 if (status) be_mbox_notify_wait()
640 return status; be_mbox_notify_wait()
685 int status, timeout = 0; be_fw_wait_ready() local
689 status = lancer_wait_ready(adapter); be_fw_wait_ready()
690 if (status) { be_fw_wait_ready()
691 stage = status; be_fw_wait_ready()
847 int status; be_cmd_notify_wait() local
849 status = be_cmd_lock(adapter); be_cmd_notify_wait()
850 if (status) be_cmd_notify_wait()
851 return status; be_cmd_notify_wait()
855 status = -EBUSY; be_cmd_notify_wait()
860 status = be_mcc_notify_wait(adapter); be_cmd_notify_wait()
862 status = be_mbox_notify_wait(adapter); be_cmd_notify_wait()
864 if (!status) be_cmd_notify_wait()
869 return status; be_cmd_notify_wait()
878 int status; be_cmd_fw_init() local
896 status = be_mbox_notify_wait(adapter); be_cmd_fw_init()
899 return status; be_cmd_fw_init()
908 int status; be_cmd_fw_clean() local
926 status = be_mbox_notify_wait(adapter); be_cmd_fw_clean()
929 return status; be_cmd_fw_clean()
937 int status, ver = 0; be_cmd_eq_create() local
965 status = be_mbox_notify_wait(adapter); be_cmd_eq_create()
966 if (!status) { be_cmd_eq_create()
976 return status; be_cmd_eq_create()
985 int status; be_cmd_mac_addr_query() local
991 status = -EBUSY; be_cmd_mac_addr_query()
1008 status = be_mcc_notify_wait(adapter); be_cmd_mac_addr_query()
1009 if (!status) { be_cmd_mac_addr_query()
1017 return status; be_cmd_mac_addr_query()
1026 int status; be_cmd_pmac_add() local
1032 status = -EBUSY; be_cmd_pmac_add()
1045 status = be_mcc_notify_wait(adapter); be_cmd_pmac_add()
1046 if (!status) { be_cmd_pmac_add()
1055 if (status == MCC_STATUS_UNAUTHORIZED_REQUEST) be_cmd_pmac_add()
1056 status = -EPERM; be_cmd_pmac_add()
1058 return status; be_cmd_pmac_add()
1066 int status; be_cmd_pmac_del() local
1075 status = -EBUSY; be_cmd_pmac_del()
1088 status = be_mcc_notify_wait(adapter); be_cmd_pmac_del()
1092 return status; be_cmd_pmac_del()
1103 int status; be_cmd_cq_create() local
1151 status = be_mbox_notify_wait(adapter); be_cmd_cq_create()
1152 if (!status) { be_cmd_cq_create()
1161 return status; be_cmd_cq_create()
1181 int status; be_cmd_mccq_ext_create() local
1226 status = be_mbox_notify_wait(adapter); be_cmd_mccq_ext_create()
1227 if (!status) { be_cmd_mccq_ext_create()
1235 return status; be_cmd_mccq_ext_create()
1246 int status; be_cmd_mccq_org_create() local
1270 status = be_mbox_notify_wait(adapter); be_cmd_mccq_org_create()
1271 if (!status) { be_cmd_mccq_org_create()
1279 return status; be_cmd_mccq_org_create()
1285 int status; be_cmd_mccq_create() local
1287 status = be_cmd_mccq_ext_create(adapter, mccq, cq); be_cmd_mccq_create()
1288 if (status && BEx_chip(adapter)) { be_cmd_mccq_create()
1292 status = be_cmd_mccq_org_create(adapter, mccq, cq); be_cmd_mccq_create()
1294 return status; be_cmd_mccq_create()
1304 int status, ver = 0; be_cmd_txq_create() local
1329 status = be_cmd_notify_wait(adapter, &wrb); be_cmd_txq_create()
1330 if (!status) { be_cmd_txq_create()
1341 return status; be_cmd_txq_create()
1352 int status; be_cmd_rxq_create() local
1358 status = -EBUSY; be_cmd_rxq_create()
1374 status = be_mcc_notify_wait(adapter); be_cmd_rxq_create()
1375 if (!status) { be_cmd_rxq_create()
1385 return status; be_cmd_rxq_create()
1397 int status; be_cmd_q_destroy() local
1434 status = be_mbox_notify_wait(adapter); be_cmd_q_destroy()
1438 return status; be_cmd_q_destroy()
1446 int status; be_cmd_rxq_destroy() local
1452 status = -EBUSY; be_cmd_rxq_destroy()
1461 status = be_mcc_notify_wait(adapter); be_cmd_rxq_destroy()
1466 return status; be_cmd_rxq_destroy()
1477 int status; be_cmd_if_create() local
1488 status = be_cmd_notify_wait(adapter, &wrb); be_cmd_if_create()
1489 if (!status) { be_cmd_if_create()
1498 return status; be_cmd_if_create()
1506 int status; be_cmd_if_destroy() local
1515 status = -EBUSY; be_cmd_if_destroy()
1526 status = be_mcc_notify_wait(adapter); be_cmd_if_destroy()
1529 return status; be_cmd_if_destroy()
1540 int status = 0; be_cmd_get_stats() local
1546 status = -EBUSY; be_cmd_get_stats()
1563 status = be_mcc_notify(adapter); be_cmd_get_stats()
1564 if (status) be_cmd_get_stats()
1571 return status; be_cmd_get_stats()
1580 int status = 0; lancer_cmd_get_pport_stats() local
1590 status = -EBUSY; lancer_cmd_get_pport_stats()
1602 status = be_mcc_notify(adapter); lancer_cmd_get_pport_stats()
1603 if (status) lancer_cmd_get_pport_stats()
1610 return status; lancer_cmd_get_pport_stats()
1644 int status; be_cmd_link_status_query() local
1653 status = -EBUSY; be_cmd_link_status_query()
1668 status = be_mcc_notify_wait(adapter); be_cmd_link_status_query()
1669 if (!status) { be_cmd_link_status_query()
1686 return status; be_cmd_link_status_query()
1694 int status = 0; be_cmd_get_die_temperature() local
1700 status = -EBUSY; be_cmd_get_die_temperature()
1709 status = be_mcc_notify(adapter); be_cmd_get_die_temperature()
1712 return status; be_cmd_get_die_temperature()
1720 int status; be_cmd_get_reg_len() local
1726 status = -EBUSY; be_cmd_get_reg_len()
1735 status = be_mcc_notify_wait(adapter); be_cmd_get_reg_len()
1736 if (!status) { be_cmd_get_reg_len()
1745 return status; be_cmd_get_reg_len()
1755 int status = 0; be_cmd_get_regs() local
1780 status = -EBUSY; be_cmd_get_regs()
1795 status = be_mcc_notify_wait(adapter); be_cmd_get_regs()
1796 if (!status) { be_cmd_get_regs()
1813 return status; be_cmd_get_regs()
1821 int status; be_cmd_get_fw_ver() local
1827 status = -EBUSY; be_cmd_get_fw_ver()
1836 status = be_mcc_notify_wait(adapter); be_cmd_get_fw_ver()
1837 if (!status) { be_cmd_get_fw_ver()
1847 return status; be_cmd_get_fw_ver()
1858 int status = 0, i; __be_cmd_modify_eqd() local
1864 status = -EBUSY; __be_cmd_modify_eqd()
1881 status = be_mcc_notify(adapter); __be_cmd_modify_eqd()
1884 return status; __be_cmd_modify_eqd()
1908 int status; be_cmd_vlan_config() local
1914 status = -EBUSY; be_cmd_vlan_config()
1930 status = be_mcc_notify_wait(adapter); be_cmd_vlan_config()
1933 return status; be_cmd_vlan_config()
1941 int status; __be_cmd_rx_filter() local
1947 status = -EBUSY; __be_cmd_rx_filter()
1974 status = be_mcc_notify_wait(adapter); __be_cmd_rx_filter()
1977 return status; __be_cmd_rx_filter()
2001 int status; be_cmd_set_flow_control() local
2011 status = -EBUSY; be_cmd_set_flow_control()
2024 status = be_mcc_notify_wait(adapter); be_cmd_set_flow_control()
2029 if (base_status(status) == MCC_STATUS_FEATURE_NOT_SUPPORTED) be_cmd_set_flow_control()
2032 return status; be_cmd_set_flow_control()
2040 int status; be_cmd_get_flow_control() local
2050 status = -EBUSY; be_cmd_get_flow_control()
2059 status = be_mcc_notify_wait(adapter); be_cmd_get_flow_control()
2060 if (!status) { be_cmd_get_flow_control()
2070 return status; be_cmd_get_flow_control()
2078 int status; be_cmd_query_fw_cfg() local
2090 status = be_mbox_notify_wait(adapter); be_cmd_query_fw_cfg()
2091 if (!status) { be_cmd_query_fw_cfg()
2104 return status; be_cmd_query_fw_cfg()
2112 int status; be_cmd_reset_function() local
2117 status = lancer_wait_ready(adapter); be_cmd_reset_function()
2118 if (status) be_cmd_reset_function()
2121 return status; be_cmd_reset_function()
2134 status = be_mbox_notify_wait(adapter); be_cmd_reset_function()
2137 return status; be_cmd_reset_function()
2145 int status; be_cmd_rss_config() local
2154 status = -EBUSY; be_cmd_rss_config()
2173 status = be_mcc_notify_wait(adapter); be_cmd_rss_config()
2176 return status; be_cmd_rss_config()
2185 int status; be_cmd_set_beacon_state() local
2191 status = -EBUSY; be_cmd_set_beacon_state()
2205 status = be_mcc_notify_wait(adapter); be_cmd_set_beacon_state()
2209 return status; be_cmd_set_beacon_state()
2217 int status; be_cmd_get_beacon_state() local
2223 status = -EBUSY; be_cmd_get_beacon_state()
2234 status = be_mcc_notify_wait(adapter); be_cmd_get_beacon_state()
2235 if (!status) { be_cmd_get_beacon_state()
2244 return status; be_cmd_get_beacon_state()
2254 int status; be_cmd_read_port_transceiver_data() local
2271 status = -EBUSY; be_cmd_read_port_transceiver_data()
2282 status = be_mcc_notify_wait(adapter); be_cmd_read_port_transceiver_data()
2283 if (!status) { be_cmd_read_port_transceiver_data()
2291 return status; be_cmd_read_port_transceiver_data()
2303 int status; lancer_cmd_write_object() local
2310 status = -EBUSY; lancer_cmd_write_object()
2343 status = be_mcc_notify(adapter); lancer_cmd_write_object()
2344 if (status) lancer_cmd_write_object()
2351 status = -ETIMEDOUT; lancer_cmd_write_object()
2353 status = adapter->flash_status; lancer_cmd_write_object()
2356 if (!status) { lancer_cmd_write_object()
2363 return status; lancer_cmd_write_object()
2367 return status; lancer_cmd_write_object()
2373 int status; be_cmd_query_cable_type() local
2375 status = be_cmd_read_port_transceiver_data(adapter, TR_PAGE_A0, be_cmd_query_cable_type()
2377 if (!status) { be_cmd_query_cable_type()
2392 return status; be_cmd_query_cable_type()
2398 int status; be_cmd_query_sfp_info() local
2400 status = be_cmd_read_port_transceiver_data(adapter, TR_PAGE_A0, be_cmd_query_sfp_info()
2402 if (!status) { be_cmd_query_sfp_info()
2410 return status; be_cmd_query_sfp_info()
2417 int status; lancer_cmd_delete_object() local
2423 status = -EBUSY; lancer_cmd_delete_object()
2435 status = be_mcc_notify_wait(adapter); lancer_cmd_delete_object()
2438 return status; lancer_cmd_delete_object()
2448 int status; lancer_cmd_read_object() local
2454 status = -EBUSY; lancer_cmd_read_object()
2473 status = be_mcc_notify_wait(adapter); lancer_cmd_read_object()
2476 if (!status) { lancer_cmd_read_object()
2485 return status; lancer_cmd_read_object()
2494 int status; be_cmd_write_flashrom() local
2501 status = -EBUSY; be_cmd_write_flashrom()
2517 status = be_mcc_notify(adapter); be_cmd_write_flashrom()
2518 if (status) be_cmd_write_flashrom()
2525 status = -ETIMEDOUT; be_cmd_write_flashrom()
2527 status = adapter->flash_status; be_cmd_write_flashrom()
2529 return status; be_cmd_write_flashrom()
2533 return status; be_cmd_write_flashrom()
2541 int status; be_cmd_get_flash_crc() local
2547 status = -EBUSY; be_cmd_get_flash_crc()
2565 status = be_mcc_notify_wait(adapter); be_cmd_get_flash_crc()
2566 if (!status) be_cmd_get_flash_crc()
2571 return status; be_cmd_get_flash_crc()
2579 int status; be_cmd_enable_magic_wol() local
2585 status = -EBUSY; be_cmd_enable_magic_wol()
2595 status = be_mcc_notify_wait(adapter); be_cmd_enable_magic_wol()
2599 return status; be_cmd_enable_magic_wol()
2607 int status; be_cmd_set_loopback() local
2613 status = -EBUSY; be_cmd_set_loopback()
2628 status = be_mcc_notify(adapter); be_cmd_set_loopback()
2629 if (status) be_cmd_set_loopback()
2636 status = -ETIMEDOUT; be_cmd_set_loopback()
2638 return status; be_cmd_set_loopback()
2642 return status; be_cmd_set_loopback()
2652 int status; be_cmd_loopback_test() local
2658 status = -EBUSY; be_cmd_loopback_test()
2676 status = be_mcc_notify(adapter); be_cmd_loopback_test()
2677 if (status) be_cmd_loopback_test()
2684 status = le32_to_cpu(resp->status); be_cmd_loopback_test()
2686 return status; be_cmd_loopback_test()
2689 return status; be_cmd_loopback_test()
2697 int status; be_cmd_ddr_dma_test() local
2704 status = -EBUSY; be_cmd_ddr_dma_test()
2721 status = be_mcc_notify_wait(adapter); be_cmd_ddr_dma_test()
2723 if (!status) { be_cmd_ddr_dma_test()
2729 status = -1; be_cmd_ddr_dma_test()
2735 return status; be_cmd_ddr_dma_test()
2743 int status; be_cmd_get_seeprom_data() local
2749 status = -EBUSY; be_cmd_get_seeprom_data()
2758 status = be_mcc_notify_wait(adapter); be_cmd_get_seeprom_data()
2762 return status; be_cmd_get_seeprom_data()
2770 int status; be_cmd_get_phy_info() local
2780 status = -EBUSY; be_cmd_get_phy_info()
2788 status = -ENOMEM; be_cmd_get_phy_info()
2798 status = be_mcc_notify_wait(adapter); be_cmd_get_phy_info()
2799 if (!status) { be_cmd_get_phy_info()
2822 return status; be_cmd_get_phy_info()
2829 int status; be_cmd_set_qos() local
2835 status = -EBUSY; be_cmd_set_qos()
2848 status = be_mcc_notify_wait(adapter); be_cmd_set_qos()
2852 return status; be_cmd_set_qos()
2860 int status, i; be_cmd_get_cntl_attributes() local
2876 status = -ENOMEM; be_cmd_get_cntl_attributes()
2882 status = -EBUSY; be_cmd_get_cntl_attributes()
2891 status = be_mbox_notify_wait(adapter); be_cmd_get_cntl_attributes()
2892 if (!status) { be_cmd_get_cntl_attributes()
2907 return status; be_cmd_get_cntl_attributes()
2915 int status; be_cmd_req_native_mode() local
2922 status = -EBUSY; be_cmd_req_native_mode()
2936 status = be_mbox_notify_wait(adapter); be_cmd_req_native_mode()
2937 if (!status) { be_cmd_req_native_mode()
2948 return status; be_cmd_req_native_mode()
2957 int status; be_cmd_get_fn_privileges() local
2963 status = -EBUSY; be_cmd_get_fn_privileges()
2975 status = be_mcc_notify_wait(adapter); be_cmd_get_fn_privileges()
2976 if (!status) { be_cmd_get_fn_privileges()
2992 return status; be_cmd_get_fn_privileges()
3001 int status; be_cmd_set_fn_privileges() local
3007 status = -EBUSY; be_cmd_set_fn_privileges()
3021 status = be_mcc_notify_wait(adapter); be_cmd_set_fn_privileges()
3024 return status; be_cmd_set_fn_privileges()
3037 int status; be_cmd_get_mac_from_list() local
3059 status = -EBUSY; be_cmd_get_mac_from_list()
3078 status = be_mcc_notify_wait(adapter); be_cmd_get_mac_from_list()
3079 if (!status) { be_cmd_get_mac_from_list()
3122 return status; be_cmd_get_mac_from_list()
3143 int status; be_cmd_get_perm_mac() local
3150 status = be_cmd_mac_addr_query(adapter, mac, true, 0, be_cmd_get_perm_mac()
3153 status = be_cmd_mac_addr_query(adapter, mac, false, be_cmd_get_perm_mac()
3156 status = be_cmd_get_mac_from_list(adapter, mac, &pmac_valid, be_cmd_get_perm_mac()
3160 return status; be_cmd_get_perm_mac()
3169 int status; be_cmd_set_mac_list() local
3183 status = -EBUSY; be_cmd_set_mac_list()
3197 status = be_mcc_notify_wait(adapter); be_cmd_set_mac_list()
3202 return status; be_cmd_set_mac_list()
3214 int status; be_cmd_set_mac() local
3216 status = be_cmd_get_mac_from_list(adapter, old_mac, &active_mac, be_cmd_set_mac()
3219 if (!status && active_mac) be_cmd_set_mac()
3231 int status; be_cmd_set_hsw_config() local
3237 status = -EBUSY; be_cmd_set_hsw_config()
3271 status = be_mcc_notify_wait(adapter); be_cmd_set_hsw_config()
3275 return status; be_cmd_set_hsw_config()
3285 int status; be_cmd_get_hsw_config() local
3292 status = -EBUSY; be_cmd_get_hsw_config()
3315 status = be_mcc_notify_wait(adapter); be_cmd_get_hsw_config()
3316 if (!status) { be_cmd_get_hsw_config()
3336 return status; be_cmd_get_hsw_config()
3361 int status = 0; be_cmd_get_acpi_wol_cap() local
3369 return status; be_cmd_get_acpi_wol_cap()
3380 status = -ENOMEM; be_cmd_get_acpi_wol_cap()
3386 status = -EBUSY; be_cmd_get_acpi_wol_cap()
3399 status = be_mbox_notify_wait(adapter); be_cmd_get_acpi_wol_cap()
3400 if (!status) { be_cmd_get_acpi_wol_cap()
3414 return status; be_cmd_get_acpi_wol_cap()
3422 int status; be_cmd_set_fw_log_level() local
3433 status = be_cmd_get_ext_fat_capabilites(adapter, &extfat_cmd); be_cmd_set_fw_log_level()
3434 if (status) be_cmd_set_fw_log_level()
3449 status = be_cmd_set_ext_fat_capabilites(adapter, &extfat_cmd, cfgs); be_cmd_set_fw_log_level()
3453 return status; be_cmd_set_fw_log_level()
3460 int status, j; be_cmd_get_fw_log_level() local
3475 status = be_cmd_get_ext_fat_capabilites(adapter, &extfat_cmd); be_cmd_get_fw_log_level()
3476 if (!status) { be_cmd_get_fw_log_level()
3496 int status; be_cmd_get_ext_fat_capabilites() local
3503 status = -EBUSY; be_cmd_get_ext_fat_capabilites()
3513 status = be_mbox_notify_wait(adapter); be_cmd_get_ext_fat_capabilites()
3516 return status; be_cmd_get_ext_fat_capabilites()
3525 int status; be_cmd_set_ext_fat_capabilites() local
3531 status = -EBUSY; be_cmd_set_ext_fat_capabilites()
3541 status = be_mcc_notify_wait(adapter); be_cmd_set_ext_fat_capabilites()
3544 return status; be_cmd_set_ext_fat_capabilites()
3551 int status; be_cmd_query_port_name() local
3565 status = be_mbox_notify_wait(adapter); be_cmd_query_port_name()
3566 if (!status) { be_cmd_query_port_name()
3575 return status; be_cmd_query_port_name()
3676 int status; be_cmd_get_func_config() local
3688 status = -ENOMEM; be_cmd_get_func_config()
3694 status = -EBUSY; be_cmd_get_func_config()
3707 status = be_mbox_notify_wait(adapter); be_cmd_get_func_config()
3708 if (!status) { be_cmd_get_func_config()
3715 status = -EINVAL; be_cmd_get_func_config()
3726 return status; be_cmd_get_func_config()
3745 int status; be_cmd_get_profile_config() local
3776 status = be_cmd_notify_wait(adapter, &wrb); be_cmd_get_profile_config()
3777 if (status) be_cmd_get_profile_config()
3803 return status; be_cmd_get_profile_config()
3813 int status; be_cmd_set_profile_config() local
3831 status = be_cmd_notify_wait(adapter, &wrb); be_cmd_set_profile_config()
3836 return status; be_cmd_set_profile_config()
4010 int status; be_cmd_manage_iface() local
4019 status = -EBUSY; be_cmd_manage_iface()
4030 status = be_mcc_notify_wait(adapter); be_cmd_manage_iface()
4033 return status; be_cmd_manage_iface()
4064 int status; be_cmd_get_if_id() local
4070 status = -EBUSY; be_cmd_get_if_id()
4080 status = be_mcc_notify_wait(adapter); be_cmd_get_if_id()
4081 if (!status) { be_cmd_get_if_id()
4088 return status; be_cmd_get_if_id()
4095 int status = 0, i; lancer_wait_idle() local
4106 status = -1; lancer_wait_idle()
4108 return status; lancer_wait_idle()
4113 int status = 0; lancer_physdev_ctrl() local
4115 status = lancer_wait_idle(adapter); lancer_physdev_ctrl()
4116 if (status) lancer_physdev_ctrl()
4117 return status; lancer_physdev_ctrl()
4121 return status; lancer_physdev_ctrl()
4136 int status; lancer_initiate_dump() local
4144 status = lancer_physdev_ctrl(adapter, PHYSDEV_CONTROL_FW_RESET_MASK | lancer_initiate_dump()
4146 if (status < 0) { lancer_initiate_dump()
4148 return status; lancer_initiate_dump()
4151 status = lancer_wait_idle(adapter); lancer_initiate_dump()
4152 if (status) lancer_initiate_dump()
4153 return status; lancer_initiate_dump()
4165 int status; lancer_delete_dump() local
4167 status = lancer_cmd_delete_object(adapter, LANCER_FW_DUMP_FILE); lancer_delete_dump()
4168 return be_cmd_status(status); lancer_delete_dump()
4176 int status; be_cmd_enable_vf() local
4185 status = -EBUSY; be_cmd_enable_vf()
4197 status = be_mcc_notify_wait(adapter); be_cmd_enable_vf()
4200 return status; be_cmd_enable_vf()
4207 int status; be_cmd_intr_set() local
4222 status = be_mbox_notify_wait(adapter); be_cmd_intr_set()
4225 return status; be_cmd_intr_set()
4233 int status; be_cmd_get_active_profile() local
4240 status = -EBUSY; be_cmd_get_active_profile()
4250 status = be_mbox_notify_wait(adapter); be_cmd_get_active_profile()
4251 if (!status) { be_cmd_get_active_profile()
4260 return status; be_cmd_get_active_profile()
4268 int status; be_cmd_set_logical_link_config() local
4277 status = -EBUSY; be_cmd_set_logical_link_config()
4296 status = be_mcc_notify_wait(adapter); be_cmd_set_logical_link_config()
4299 return status; be_cmd_set_logical_link_config()
4310 int status; be_roce_mcc_cmd() local
4316 status = -EBUSY; be_roce_mcc_cmd()
4327 status = be_mcc_notify_wait(adapter); be_roce_mcc_cmd()
4329 *cmd_status = (status & 0xffff); be_roce_mcc_cmd()
4336 return status; be_roce_mcc_cmd()
H A Dbe_main.c176 int status = 0; be_intr_set() local
185 status = be_cmd_intr_set(adapter, enable); be_intr_set()
186 if (status) be_intr_set()
263 int status; be_mac_addr_set() local
286 status = be_cmd_pmac_add(adapter, (u8 *)addr->sa_data, be_mac_addr_set()
288 if (!status) { be_mac_addr_set()
302 status = be_cmd_get_active_mac(adapter, curr_pmac_id, mac, be_mac_addr_set()
304 if (status) be_mac_addr_set()
311 status = -EPERM; be_mac_addr_set()
320 return status; be_mac_addr_set()
1370 int status; be_set_vlan_promisc() local
1375 status = be_cmd_rx_filter(adapter, BE_IF_FLAGS_VLAN_PROMISCUOUS, ON); be_set_vlan_promisc()
1376 if (!status) { be_set_vlan_promisc()
1382 return status; be_set_vlan_promisc()
1388 int status; be_clear_vlan_promisc() local
1390 status = be_cmd_rx_filter(adapter, BE_IF_FLAGS_VLAN_PROMISCUOUS, OFF); be_clear_vlan_promisc()
1391 if (!status) { be_clear_vlan_promisc()
1395 return status; be_clear_vlan_promisc()
1407 int status = 0; be_vid_config() local
1420 status = be_cmd_vlan_config(adapter, adapter->if_handle, vids, num, 0); be_vid_config()
1421 if (status) { be_vid_config()
1424 if (addl_status(status) == MCC_ADDL_STATUS_INSUFFICIENT_VLANS || be_vid_config()
1425 addl_status(status) == be_vid_config()
1429 status = be_clear_vlan_promisc(adapter); be_vid_config()
1431 return status; be_vid_config()
1437 int status = 0; be_vlan_add_vid() local
1441 return status; be_vlan_add_vid()
1444 return status; be_vlan_add_vid()
1449 status = be_vid_config(adapter); be_vlan_add_vid()
1450 if (status) { be_vlan_add_vid()
1455 return status; be_vlan_add_vid()
1486 int status; be_set_mc_promisc() local
1491 status = be_cmd_rx_filter(adapter, BE_IF_FLAGS_MCAST_PROMISCUOUS, ON); be_set_mc_promisc()
1492 if (!status) be_set_mc_promisc()
1498 int status; be_set_mc_list() local
1500 status = be_cmd_rx_filter(adapter, BE_IF_FLAGS_MULTICAST, ON); be_set_mc_list()
1501 if (!status) be_set_mc_list()
1571 int status; be_set_vf_mac() local
1589 status = be_cmd_pmac_add(adapter, mac, vf_cfg->if_handle, be_set_vf_mac()
1592 status = be_cmd_set_mac(adapter, mac, vf_cfg->if_handle, be_set_vf_mac()
1596 if (status) { be_set_vf_mac()
1598 mac, vf, status); be_set_vf_mac()
1599 return be_cmd_status(status); be_set_vf_mac()
1636 int status; be_set_vf_tvt() local
1639 status = be_cmd_set_hsw_config(adapter, vlan, vf + 1, vf_if_id, 0, 0); be_set_vf_tvt()
1640 if (status) be_set_vf_tvt()
1641 return status; be_set_vf_tvt()
1645 status = be_cmd_vlan_config(adapter, vf_if_id, vids, 1, vf + 1); be_set_vf_tvt()
1646 if (!status) be_set_vf_tvt()
1652 status = be_cmd_set_fn_privileges(adapter, vf_cfg->privileges & be_set_vf_tvt()
1654 if (!status) be_set_vf_tvt()
1664 int status; be_clear_vf_tvt() local
1667 status = be_cmd_set_hsw_config(adapter, BE_RESET_VLAN_TAG_ID, vf + 1, be_clear_vf_tvt()
1669 if (status) be_clear_vf_tvt()
1670 return status; be_clear_vf_tvt()
1674 status = be_cmd_set_fn_privileges(adapter, vf_cfg->privileges | be_clear_vf_tvt()
1676 if (!status) { be_clear_vf_tvt()
1691 int status; be_set_vf_vlan() local
1701 status = be_set_vf_tvt(adapter, vf, vlan); be_set_vf_vlan()
1703 status = be_clear_vf_tvt(adapter, vf); be_set_vf_vlan()
1706 if (status) { be_set_vf_vlan()
1709 status); be_set_vf_vlan()
1710 return be_cmd_status(status); be_set_vf_vlan()
1722 int percent_rate, status = 0; be_set_vf_tx_rate() local
1738 status = be_cmd_link_status_query(adapter, &link_speed, be_set_vf_tx_rate()
1740 if (status) be_set_vf_tx_rate()
1745 status = -ENETDOWN; be_set_vf_tx_rate()
1752 status = -EINVAL; be_set_vf_tx_rate()
1761 status = -EINVAL; be_set_vf_tx_rate()
1766 status = be_cmd_config_qos(adapter, max_tx_rate, link_speed, vf + 1); be_set_vf_tx_rate()
1767 if (status) be_set_vf_tx_rate()
1776 return be_cmd_status(status); be_set_vf_tx_rate()
1783 int status; be_set_vf_link_state() local
1791 status = be_cmd_set_logical_link_config(adapter, link_state, vf+1); be_set_vf_link_state()
1792 if (status) { be_set_vf_link_state()
1794 "Link state change on VF %d failed: %#x\n", vf, status); be_set_vf_link_state()
1795 return be_cmd_status(status); be_set_vf_link_state()
1808 int status; be_set_vf_spoofchk() local
1824 status = be_cmd_set_hsw_config(adapter, 0, vf + 1, vf_cfg->if_handle, be_set_vf_spoofchk()
1826 if (status) { be_set_vf_spoofchk()
1828 "Spoofchk change on VF %d failed: %#x\n", vf, status); be_set_vf_spoofchk()
1829 return be_cmd_status(status); be_set_vf_spoofchk()
2390 txcp->status = GET_TX_COMPL_BITS(status, compl); be_tx_compl_get()
2711 int status, i; be_tx_qs_create() local
2717 status = be_queue_alloc(adapter, cq, TX_CQ_LEN, for_all_tx_queues()
2719 if (status) for_all_tx_queues()
2720 return status; for_all_tx_queues()
2729 status = be_cmd_cq_create(adapter, cq, &eqo->q, false, 3); for_all_tx_queues()
2730 if (status) for_all_tx_queues()
2731 return status; for_all_tx_queues()
2733 status = be_queue_alloc(adapter, &txo->q, TX_Q_LEN, for_all_tx_queues()
2735 if (status) for_all_tx_queues()
2736 return status; for_all_tx_queues()
2738 status = be_cmd_txq_create(adapter, txo); for_all_tx_queues()
2739 if (status) for_all_tx_queues()
2740 return status; for_all_tx_queues()
2913 static inline void be_update_tx_err(struct be_tx_obj *txo, u8 status) be_update_tx_err() argument
2915 switch (status) { be_update_tx_err()
2928 static inline void lancer_update_tx_err(struct be_tx_obj *txo, u8 status) lancer_update_tx_err() argument
2930 switch (status) { lancer_update_tx_err()
2960 if (txcp->status) { be_process_tx()
2962 lancer_update_tx_err(txo, txcp->status); be_process_tx()
2964 be_update_tx_err(txo, txcp->status); be_process_tx()
2988 bool status = true; be_lock_napi() local
2994 status = false; be_lock_napi()
2999 return status; be_lock_napi()
3014 bool status = true; be_lock_busy_poll() local
3019 status = false; be_lock_busy_poll()
3024 return status; be_lock_busy_poll()
3180 dev_err(dev, "ERR: sliport status 0x%x\n", be_detect_error()
3288 int status, i, vec; be_msix_register() local
3293 status = request_irq(vec, be_msix, 0, eqo->desc, eqo); for_all_evt_queues()
3294 if (status) for_all_evt_queues()
3307 status);
3309 return status;
3315 int status; be_irq_register() local
3318 status = be_msix_register(adapter); be_irq_register()
3319 if (status == 0) be_irq_register()
3323 return status; be_irq_register()
3328 status = request_irq(netdev->irq, be_intx, IRQF_SHARED, netdev->name, be_irq_register()
3330 if (status) { be_irq_register()
3332 "INTx request IRQ failed - err %d\n", status); be_irq_register()
3333 return status; be_irq_register()
3540 int status; be_enable_if_filters() local
3542 status = be_cmd_rx_filter(adapter, BE_IF_EN_FLAGS, ON); be_enable_if_filters()
3543 if (status) be_enable_if_filters()
3544 return status; be_enable_if_filters()
3548 status = be_cmd_pmac_add(adapter, adapter->netdev->dev_addr, be_enable_if_filters()
3551 if (status) be_enable_if_filters()
3552 return status; be_enable_if_filters()
3570 int status, i; be_open() local
3572 status = be_rx_qs_create(adapter); be_open()
3573 if (status) be_open()
3576 status = be_enable_if_filters(adapter); be_open()
3577 if (status) be_open()
3580 status = be_irq_register(adapter); be_open()
3581 if (status) be_open()
3599 status = be_cmd_link_status_query(adapter, NULL, &link_status, 0); be_open()
3600 if (!status) be_open()
3620 int status; be_setup_wol() local
3630 status = pci_write_config_dword(adapter->pdev, be_setup_wol()
3633 if (status) { be_setup_wol()
3641 status = be_cmd_enable_magic_wol(adapter, mac, &cmd); be_setup_wol()
3646 return status; be_setup_wol()
3671 int status = 0; be_vf_eth_addr_config() local
3679 status = be_cmd_pmac_add(adapter, mac, for_all_vfs()
3683 status = be_cmd_set_mac(adapter, mac, vf_cfg->if_handle, for_all_vfs()
3686 if (status) for_all_vfs()
3695 return status;
3700 int status, vf; be_vfs_mac_query() local
3705 status = be_cmd_get_active_mac(adapter, vf_cfg->pmac_id, for_all_vfs()
3708 if (status) for_all_vfs()
3709 return status; for_all_vfs()
3859 int status; be_vfs_if_create() local
3867 status = be_cmd_get_profile_config(adapter, &res, for_all_vfs()
3870 if (!status) { for_all_vfs()
3883 status = be_cmd_if_create(adapter, cap_flags, en_flags, for_all_vfs()
3885 if (status) for_all_vfs()
3886 return status; for_all_vfs()
3913 int status, old_vfs, vf; be_vf_setup() local
3918 status = be_vf_setup_init(adapter); be_vf_setup()
3919 if (status) be_vf_setup()
3924 status = be_cmd_get_if_id(adapter, vf_cfg, vf); for_all_vfs()
3925 if (status) for_all_vfs()
3929 status = be_vfs_mac_query(adapter);
3930 if (status)
3933 status = be_vfs_if_create(adapter);
3934 if (status)
3937 status = be_vf_eth_addr_config(adapter);
3938 if (status)
3944 status = be_cmd_get_fn_privileges(adapter, &vf_cfg->privileges, for_all_vfs()
3946 if (!status && !(vf_cfg->privileges & BE_PRIV_FILTMGMT)) { for_all_vfs()
3947 status = be_cmd_set_fn_privileges(adapter, for_all_vfs()
3951 if (!status) { for_all_vfs()
3962 status = be_cmd_get_hsw_config(adapter, NULL, vf + 1, for_all_vfs()
3965 if (!status) for_all_vfs()
3977 status = pci_enable_sriov(adapter->pdev, adapter->num_vfs);
3978 if (status) {
3990 return status;
4129 int status; be_alloc_sriov_res() local
4143 status = be_cmd_set_sriov_config(adapter, adapter->pool_res, 0, be_alloc_sriov_res()
4145 if (status) be_alloc_sriov_res()
4155 int status; be_get_resources() local
4167 status = be_cmd_get_func_config(adapter, &res); be_get_resources()
4168 if (status) be_get_resources()
4169 return status; be_get_resources()
4204 int status, level; be_get_config() local
4207 status = be_cmd_query_fw_cfg(adapter); be_get_config()
4208 if (status) be_get_config()
4209 return status; be_get_config()
4222 status = be_cmd_get_active_profile(adapter, &profile_id); be_get_config()
4223 if (!status) be_get_config()
4228 status = be_get_resources(adapter); be_get_config()
4229 if (status) be_get_config()
4230 return status; be_get_config()
4243 int status; be_mac_setup() local
4246 status = be_cmd_get_perm_mac(adapter, mac); be_mac_setup()
4247 if (status) be_mac_setup()
4248 return status; be_mac_setup()
4273 int status; be_setup_queues() local
4275 status = be_evt_queues_create(adapter); be_setup_queues()
4276 if (status) be_setup_queues()
4279 status = be_tx_qs_create(adapter); be_setup_queues()
4280 if (status) be_setup_queues()
4283 status = be_rx_cqs_create(adapter); be_setup_queues()
4284 if (status) be_setup_queues()
4287 status = be_mcc_queues_create(adapter); be_setup_queues()
4288 if (status) be_setup_queues()
4291 status = netif_set_real_num_rx_queues(netdev, adapter->num_rx_qs); be_setup_queues()
4292 if (status) be_setup_queues()
4295 status = netif_set_real_num_tx_queues(netdev, adapter->num_tx_qs); be_setup_queues()
4296 if (status) be_setup_queues()
4302 return status; be_setup_queues()
4308 int status; be_update_queues() local
4324 status = be_msix_enable(adapter); be_update_queues()
4325 if (status) be_update_queues()
4326 return status; be_update_queues()
4329 status = be_setup_queues(adapter); be_update_queues()
4330 if (status) be_update_queues()
4331 return status; be_update_queues()
4336 status = be_open(netdev); be_update_queues()
4338 return status; be_update_queues()
4361 int status; be_func_init() local
4363 status = be_fw_wait_ready(adapter); be_func_init()
4364 if (status) be_func_init()
4365 return status; be_func_init()
4368 status = be_cmd_reset_function(adapter); be_func_init()
4369 if (status) be_func_init()
4370 return status; be_func_init()
4380 status = be_cmd_fw_init(adapter); be_func_init()
4381 if (status) be_func_init()
4382 return status; be_func_init()
4394 int status; be_setup() local
4396 status = be_func_init(adapter); be_setup()
4397 if (status) be_setup()
4398 return status; be_setup()
4406 status = be_cmd_get_cntl_attributes(adapter); be_setup()
4407 if (status) be_setup()
4408 return status; be_setup()
4413 status = be_get_config(adapter); be_setup()
4414 if (status) be_setup()
4417 status = be_msix_enable(adapter); be_setup()
4418 if (status) be_setup()
4424 status = be_cmd_if_create(adapter, be_if_cap_flags(adapter), en_flags, be_setup()
4426 if (status) be_setup()
4431 status = be_setup_queues(adapter); be_setup()
4433 if (status) be_setup()
4438 status = be_mac_setup(adapter); be_setup()
4439 if (status) be_setup()
4451 status = be_cmd_set_flow_control(adapter, adapter->tx_fc, be_setup()
4453 if (status) be_setup()
4467 status = be_cmd_get_phy_info(adapter); be_setup()
4468 if (!status && be_pause_supported(adapter)) be_setup()
4476 return status; be_setup()
4545 int status; be_check_flash_crc() local
4548 status = be_cmd_get_flash_crc(adapter, crc, img_optype, img_offset, be_check_flash_crc()
4550 if (status) be_check_flash_crc()
4551 return status; be_check_flash_crc()
4561 return status; be_check_flash_crc()
4570 int status; be_flash() local
4591 status = be_cmd_write_flashrom(adapter, flash_cmd, optype, be_flash()
4594 if (base_status(status) == MCC_STATUS_ILLEGAL_REQUEST && be_flash()
4597 else if (status) be_flash()
4598 return status; be_flash()
4613 int status, i, filehdr_size, num_comp; be_flash_BEx() local
4690 status = be_check_flash_crc(adapter, fw->data, be_flash_BEx()
4696 if (status) { be_flash_BEx()
4712 status = be_flash(adapter, p, flash_cmd, pflashcomp[i].optype, be_flash_BEx()
4714 if (status) { be_flash_BEx()
4717 return status; be_flash_BEx()
4785 int status, i, filehdr_size; be_flash_skyhawk() local
4817 status = be_check_flash_crc(adapter, fw->data, img_offset, be_flash_skyhawk()
4821 if (base_status(status) == MCC_STATUS_ILLEGAL_REQUEST || be_flash_skyhawk()
4822 base_status(status) == MCC_STATUS_ILLEGAL_FIELD) { be_flash_skyhawk()
4842 } else if (status) { be_flash_skyhawk()
4856 status = be_flash(adapter, p, flash_cmd, flash_optype, img_size, be_flash_skyhawk()
4863 if (base_status(status) == MCC_STATUS_ILLEGAL_FIELD && be_flash_skyhawk()
4873 (base_status(status) == MCC_STATUS_ILLEGAL_FIELD || be_flash_skyhawk()
4875 base_status(status) == MCC_STATUS_FAILED))) { be_flash_skyhawk()
4877 } else if (status) { be_flash_skyhawk()
4899 int status = 0; lancer_fw_download() local
4926 status = lancer_cmd_write_object(adapter, &flash_cmd, lancer_fw_download()
4931 if (status) lancer_fw_download()
4939 if (!status) { lancer_fw_download()
4941 status = lancer_cmd_write_object(adapter, &flash_cmd, lancer_fw_download()
4949 if (status) { lancer_fw_download()
4951 return be_cmd_status(status); lancer_fw_download()
4958 status = lancer_physdev_ctrl(adapter, lancer_fw_download()
4960 if (status) { lancer_fw_download()
5018 int status = 0, i, num_imgs; be_fw_download() local
5043 status = be_flash_skyhawk(adapter, fw, &flash_cmd, be_fw_download()
5046 status = be_flash_BEx(adapter, fw, &flash_cmd, be_fw_download()
5051 if (!status) be_fw_download()
5054 return status; be_fw_download()
5060 int status; be_load_fw() local
5068 status = request_firmware(&fw, fw_file, &adapter->pdev->dev); be_load_fw()
5069 if (status) be_load_fw()
5075 status = lancer_fw_download(adapter, fw); be_load_fw()
5077 status = be_fw_download(adapter, fw); be_load_fw()
5079 if (!status) be_load_fw()
5084 return status; be_load_fw()
5093 int status = 0; be_ndo_bridge_setlink() local
5114 status = be_cmd_set_hsw_config(adapter, 0, 0, nla_for_each_nested()
5119 if (status) nla_for_each_nested()
5125 return status; nla_for_each_nested()
5131 return status;
5139 int status = 0; be_ndo_bridge_getlink() local
5146 status = be_cmd_get_hsw_config(adapter, NULL, 0, be_ndo_bridge_getlink()
5149 if (status) be_ndo_bridge_getlink()
5182 int status; be_add_vxlan_port() local
5203 status = be_cmd_manage_iface(adapter, adapter->if_handle, be_add_vxlan_port()
5205 if (status) { be_add_vxlan_port()
5210 status = be_cmd_set_vxlan_port(adapter, port); be_add_vxlan_port()
5211 if (status) { be_add_vxlan_port()
5395 int status; be_resume() local
5397 status = be_setup(adapter); be_resume()
5398 if (status) be_resume()
5399 return status; be_resume()
5402 status = be_open(netdev); be_resume()
5403 if (status) be_resume()
5404 return status; be_resume()
5415 int status; be_err_recover() local
5417 status = be_resume(adapter); be_err_recover()
5418 if (status) be_err_recover()
5429 return status; be_err_recover()
5437 int status = 0; be_err_detection_task() local
5446 status = be_err_recover(adapter); be_err_detection_task()
5450 if (!status || be_virtfn(adapter)) be_err_detection_task()
5456 int status; be_log_sfp_info() local
5458 status = be_cmd_query_sfp_info(adapter); be_log_sfp_info()
5459 if (!status) { be_log_sfp_info()
5613 int status = 0; be_drv_init() local
5630 status = -ENOMEM; be_drv_init()
5645 status = -ENOMEM; be_drv_init()
5673 return status; be_drv_init()
5789 int status = 0; be_probe() local
5793 status = pci_enable_device(pdev); be_probe()
5794 if (status) be_probe()
5797 status = pci_request_regions(pdev, DRV_NAME); be_probe()
5798 if (status) be_probe()
5804 status = -ENOMEM; be_probe()
5813 status = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)); be_probe()
5814 if (!status) { be_probe()
5817 status = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); be_probe()
5818 if (status) { be_probe()
5824 status = pci_enable_pcie_error_reporting(pdev); be_probe()
5825 if (!status) be_probe()
5828 status = be_map_pci_bars(adapter); be_probe()
5829 if (status) be_probe()
5832 status = be_drv_init(adapter); be_probe()
5833 if (status) be_probe()
5836 status = be_setup(adapter); be_probe()
5837 if (status) be_probe()
5841 status = register_netdev(netdev); be_probe()
5842 if (status != 0) be_probe()
5878 return status; be_probe()
5902 int status = 0; be_pci_resume() local
5904 status = pci_enable_device(pdev); be_pci_resume()
5905 if (status) be_pci_resume()
5906 return status; be_pci_resume()
5910 status = be_resume(adapter); be_pci_resume()
5911 if (status) be_pci_resume()
5912 return status; be_pci_resume()
5978 int status; be_eeh_reset() local
5982 status = pci_enable_device(pdev); be_eeh_reset()
5983 if (status) be_eeh_reset()
5992 status = be_fw_wait_ready(adapter); be_eeh_reset()
5993 if (status) be_eeh_reset()
6003 int status = 0; be_eeh_resume() local
6010 status = be_resume(adapter); be_eeh_resume()
6011 if (status) be_eeh_resume()
6024 int status; be_pci_sriov_configure() local
6047 status = be_cmd_set_sriov_config(adapter, adapter->pool_res, be_pci_sriov_configure()
6049 if (status) be_pci_sriov_configure()
6054 status = be_get_resources(adapter); be_pci_sriov_configure()
6055 if (status) be_pci_sriov_configure()
6056 return be_cmd_status(status); be_pci_sriov_configure()
6060 status = be_update_queues(adapter); be_pci_sriov_configure()
6062 if (status) be_pci_sriov_configure()
6063 return be_cmd_status(status); be_pci_sriov_configure()
6066 status = be_vf_setup(adapter); be_pci_sriov_configure()
6068 if (!status) be_pci_sriov_configure()
/linux-4.4.14/arch/alpha/include/asm/
H A Dthread_info.h24 unsigned int status; /* thread-synchronous flags */ member in struct:thread_info
96 ti->status |= TS_RESTORE_SIGMASK; set_restore_sigmask()
101 current_thread_info()->status &= ~TS_RESTORE_SIGMASK; clear_restore_sigmask()
105 return current_thread_info()->status & TS_RESTORE_SIGMASK; test_restore_sigmask()
110 if (!(ti->status & TS_RESTORE_SIGMASK)) test_and_clear_restore_sigmask()
112 ti->status &= ~TS_RESTORE_SIGMASK; test_and_clear_restore_sigmask()
118 __u32 status = task_thread_info(task)->status & ~UAC_BITMASK; \
120 status |= TS_UAC_NOPRINT; \
122 status |= TS_UAC_SIGBUS; \
124 status |= TS_UAC_NOFIX; \
125 task_thread_info(task)->status = status; \
129 __u32 status = task_thread_info(task)->status & ~UAC_BITMASK; \
131 if (status & TS_UAC_NOPRINT) \
133 if (status & TS_UAC_SIGBUS) \
135 if (status & TS_UAC_NOFIX) \
/linux-4.4.14/tools/testing/selftests/membarrier/
H A Dmembarrier_test.c59 enum test_membarrier_status status; test_membarrier() local
61 status = test_membarrier_cmd_fail(); test_membarrier()
62 if (status) test_membarrier()
63 return status; test_membarrier()
64 status = test_membarrier_flags_fail(); test_membarrier()
65 if (status) test_membarrier()
66 return status; test_membarrier()
67 status = test_membarrier_success(); test_membarrier()
68 if (status) test_membarrier()
69 return status; test_membarrier()
/linux-4.4.14/drivers/net/wireless/ath/ath10k/
H A Dhtt.c146 int status; ath10k_htt_connect() local
157 status = ath10k_htc_connect_service(&htt->ar->htc, &conn_req, ath10k_htt_connect()
160 if (status) ath10k_htt_connect()
161 return status; ath10k_htt_connect()
233 int status; ath10k_htt_setup() local
237 status = ath10k_htt_h2t_ver_req_msg(htt); ath10k_htt_setup()
238 if (status) ath10k_htt_setup()
239 return status; ath10k_htt_setup()
241 status = wait_for_completion_timeout(&htt->target_version_received, ath10k_htt_setup()
243 if (status == 0) { ath10k_htt_setup()
248 status = ath10k_htt_verify_version(htt); ath10k_htt_setup()
249 if (status) { ath10k_htt_setup()
251 status); ath10k_htt_setup()
252 return status; ath10k_htt_setup()
255 status = ath10k_htt_send_frag_desc_bank_cfg(htt); ath10k_htt_setup()
256 if (status) ath10k_htt_setup()
257 return status; ath10k_htt_setup()
259 status = ath10k_htt_send_rx_ring_cfg_ll(htt); ath10k_htt_setup()
260 if (status) { ath10k_htt_setup()
262 status); ath10k_htt_setup()
263 return status; ath10k_htt_setup()
266 status = ath10k_htt_h2t_aggr_cfg_msg(htt, ath10k_htt_setup()
269 if (status) { ath10k_htt_setup()
271 status); ath10k_htt_setup()
272 return status; ath10k_htt_setup()
/linux-4.4.14/drivers/firmware/efi/
H A Druntime-wrappers.c101 efi_status_t status; virt_efi_get_time() local
105 status = efi_call_virt(get_time, tm, tc); virt_efi_get_time()
108 return status; virt_efi_get_time()
114 efi_status_t status; virt_efi_set_time() local
118 status = efi_call_virt(set_time, tm); virt_efi_set_time()
121 return status; virt_efi_set_time()
129 efi_status_t status; virt_efi_get_wakeup_time() local
133 status = efi_call_virt(get_wakeup_time, enabled, pending, tm); virt_efi_get_wakeup_time()
136 return status; virt_efi_get_wakeup_time()
142 efi_status_t status; virt_efi_set_wakeup_time() local
146 status = efi_call_virt(set_wakeup_time, enabled, tm); virt_efi_set_wakeup_time()
149 return status; virt_efi_set_wakeup_time()
159 efi_status_t status; virt_efi_get_variable() local
162 status = efi_call_virt(get_variable, name, vendor, attr, data_size, virt_efi_get_variable()
165 return status; virt_efi_get_variable()
173 efi_status_t status; virt_efi_get_next_variable() local
176 status = efi_call_virt(get_next_variable, name_size, name, vendor); virt_efi_get_next_variable()
178 return status; virt_efi_get_next_variable()
188 efi_status_t status; virt_efi_set_variable() local
191 status = efi_call_virt(set_variable, name, vendor, attr, data_size, virt_efi_set_variable()
194 return status; virt_efi_set_variable()
203 efi_status_t status; virt_efi_set_variable_nonblocking() local
208 status = efi_call_virt(set_variable, name, vendor, attr, data_size, virt_efi_set_variable_nonblocking()
211 return status; virt_efi_set_variable_nonblocking()
221 efi_status_t status; virt_efi_query_variable_info() local
227 status = efi_call_virt(query_variable_info, attr, storage_space, virt_efi_query_variable_info()
230 return status; virt_efi_query_variable_info()
236 efi_status_t status; virt_efi_get_next_high_mono_count() local
239 status = efi_call_virt(get_next_high_mono_count, count); virt_efi_get_next_high_mono_count()
241 return status; virt_efi_get_next_high_mono_count()
245 efi_status_t status, virt_efi_reset_system()
252 __efi_call_virt(reset_system, reset_type, status, data_size, data); virt_efi_reset_system()
261 efi_status_t status; virt_efi_update_capsule() local
267 status = efi_call_virt(update_capsule, capsules, count, sg_list); virt_efi_update_capsule()
269 return status; virt_efi_update_capsule()
278 efi_status_t status; virt_efi_query_capsule_caps() local
284 status = efi_call_virt(query_capsule_caps, capsules, count, max_size, virt_efi_query_capsule_caps()
287 return status; virt_efi_query_capsule_caps()
244 virt_efi_reset_system(int reset_type, efi_status_t status, unsigned long data_size, efi_char16_t *data) virt_efi_reset_system() argument
/linux-4.4.14/include/linux/
H A Dphy_fixed.h16 struct fixed_phy_status *status,
19 struct fixed_phy_status *status,
27 const struct fixed_phy_status *status,
31 struct fixed_phy_status *status, fixed_phy_add()
37 struct fixed_phy_status *status, fixed_phy_register()
54 const struct fixed_phy_status *status, fixed_phy_update_state()
30 fixed_phy_add(unsigned int irq, int phy_id, struct fixed_phy_status *status, int link_gpio) fixed_phy_add() argument
36 fixed_phy_register(unsigned int irq, struct fixed_phy_status *status, int gpio_link, struct device_node *np) fixed_phy_register() argument
53 fixed_phy_update_state(struct phy_device *phydev, const struct fixed_phy_status *status, const struct fixed_phy_status *changed) fixed_phy_update_state() argument
/linux-4.4.14/arch/mips/jazz/
H A Dreset.c14 int status; jazz_write_output() local
17 status = jazz_kh->command; jazz_write_output()
18 } while (status & KBD_STAT_IBF); jazz_write_output()
24 int status; jazz_write_command() local
27 status = jazz_kh->command; jazz_write_command()
28 } while (status & KBD_STAT_IBF); jazz_write_command()
/linux-4.4.14/fs/lockd/
H A Dclntproc.c158 int status; nlmclnt_proc() local
176 status = nlmclnt_lock(call, fl); nlmclnt_proc()
178 status = nlmclnt_unlock(call, fl); nlmclnt_proc()
180 status = nlmclnt_test(call, fl); nlmclnt_proc()
182 status = -EINVAL; nlmclnt_proc()
186 dprintk("lockd: clnt proc returns %d\n", status); nlmclnt_proc()
187 return status; nlmclnt_proc()
232 int status = -EINTR; nlm_wait_on_grace() local
239 status = 0; nlm_wait_on_grace()
242 return status; nlm_wait_on_grace()
260 int status; nlmclnt_call() local
275 if ((status = rpc_call_sync(clnt, &msg, 0)) < 0) { nlmclnt_call()
276 dprintk("lockd: rpc_call returned error %d\n", -status); nlmclnt_call()
277 switch (status) { nlmclnt_call()
279 status = -EINVAL; nlmclnt_call()
285 status = -EAGAIN; nlmclnt_call()
288 return signalled () ? -EINTR : status; nlmclnt_call()
294 if (resp->status == nlm_lck_denied_grace_period) { nlmclnt_call()
306 dprintk("lockd: server returns status %d\n", nlmclnt_call()
307 ntohl(resp->status)); nlmclnt_call()
318 status = nlm_wait_on_grace(&host->h_gracewait); nlmclnt_call()
319 } while (status == 0); nlmclnt_call()
321 return status; nlmclnt_call()
418 int status; nlmclnt_test() local
420 status = nlmclnt_call(nfs_file_cred(fl->fl_file), req, NLMPROC_TEST); nlmclnt_test()
421 if (status < 0) nlmclnt_test()
424 switch (req->a_res.status) { nlmclnt_test()
438 status = nlm_stat_to_errno(req->a_res.status); nlmclnt_test()
442 return status; nlmclnt_test()
509 int status = -ENOLCK; nlmclnt_lock() local
516 status = do_vfs_lock(fl); nlmclnt_lock()
518 if (status < 0) nlmclnt_lock()
524 * Initialise resp->status to a valid non-zero value, nlmclnt_lock()
527 resp->status = nlm_lck_blocked; nlmclnt_lock()
531 status = nlmclnt_call(cred, req, NLMPROC_LOCK); nlmclnt_lock()
532 if (status < 0) nlmclnt_lock()
535 if (resp->status == nlm_lck_denied_grace_period) nlmclnt_lock()
537 if (resp->status != nlm_lck_blocked) nlmclnt_lock()
540 status = nlmclnt_block(block, req, NLMCLNT_POLL_TIMEOUT); nlmclnt_lock()
541 if (status < 0) nlmclnt_lock()
543 if (resp->status != nlm_lck_blocked) nlmclnt_lock()
550 if (resp->status == nlm_lck_blocked) { nlmclnt_lock()
557 if (resp->status == nlm_granted) { nlmclnt_lock()
570 status = 0; nlmclnt_lock()
572 if (status < 0) nlmclnt_lock()
579 if (resp->status == nlm_lck_denied && (fl_flags & FL_SLEEP)) nlmclnt_lock()
580 status = -ENOLCK; nlmclnt_lock()
582 status = nlm_stat_to_errno(resp->status); nlmclnt_lock()
587 return status; nlmclnt_lock()
601 return status; nlmclnt_lock()
611 int status; nlmclnt_reclaim() local
622 status = nlmclnt_call(nfs_file_cred(fl->fl_file), req, NLMPROC_LOCK); nlmclnt_reclaim()
623 if (status >= 0 && req->a_res.status == nlm_granted) nlmclnt_reclaim()
627 "(errno %d, status %d)\n", fl->fl_pid, nlmclnt_reclaim()
628 status, ntohl(req->a_res.status)); nlmclnt_reclaim()
653 int status; nlmclnt_unlock() local
663 status = do_vfs_lock(fl); nlmclnt_unlock()
666 if (status == -ENOENT) { nlmclnt_unlock()
667 status = 0; nlmclnt_unlock()
672 status = nlmclnt_async_call(nfs_file_cred(fl->fl_file), req, nlmclnt_unlock()
674 if (status < 0) nlmclnt_unlock()
677 if (resp->status == nlm_granted) nlmclnt_unlock()
680 if (resp->status != nlm_lck_denied_nolocks) nlmclnt_unlock()
681 printk("lockd: unexpected unlock status: %d\n", nlmclnt_unlock()
682 ntohl(resp->status)); nlmclnt_unlock()
684 status = -ENOLCK; nlmclnt_unlock()
687 return status; nlmclnt_unlock()
693 u32 status = ntohl(req->a_res.status); nlmclnt_unlock_callback() local
708 if (status == NLM_LCK_DENIED_GRACE_PERIOD) { nlmclnt_unlock_callback()
712 if (status != NLM_LCK_GRANTED) nlmclnt_unlock_callback()
713 printk(KERN_WARNING "lockd: unexpected unlock status: %d\n", status); nlmclnt_unlock_callback()
735 int status; nlmclnt_cancel() local
749 status = nlmclnt_async_call(nfs_file_cred(fl->fl_file), req, nlmclnt_cancel()
751 if (status == 0 && req->a_res.status == nlm_lck_denied) nlmclnt_cancel()
752 status = -ENOLCK; nlmclnt_cancel()
754 return status; nlmclnt_cancel()
760 u32 status = ntohl(req->a_res.status); nlmclnt_cancel_callback() local
771 dprintk("lockd: cancel status %u (task %u)\n", nlmclnt_cancel_callback()
772 status, task->tk_pid); nlmclnt_cancel_callback()
774 switch (status) { nlmclnt_cancel_callback()
785 status); nlmclnt_cancel_callback()
806 * Convert an NLM status code to a generic kernel errno
809 nlm_stat_to_errno(__be32 status) nlm_stat_to_errno() argument
811 switch(ntohl(status)) { nlm_stat_to_errno()
820 printk(KERN_NOTICE "lockd: unexpected status NLM_BLOCKED\n"); nlm_stat_to_errno()
835 printk(KERN_NOTICE "lockd: unexpected server status %d\n", nlm_stat_to_errno()
836 ntohl(status)); nlm_stat_to_errno()
H A Dsvcproc.c20 cast_to_nlm(__be32 status, u32 vers) cast_to_nlm() argument
22 /* Note: status is assumed to be in network byte order !!! */ cast_to_nlm()
24 switch (status) { cast_to_nlm()
33 status = nlm_lck_denied; cast_to_nlm()
36 status = nlm_lck_denied_nolocks; cast_to_nlm()
40 return (status); cast_to_nlm()
42 #define cast_status(status) (cast_to_nlm(status, rqstp->rq_vers))
44 #define cast_status(status) (status)
116 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) nlmsvc_proc_test()
117 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; nlmsvc_proc_test()
120 resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie)); nlmsvc_proc_test()
121 if (resp->status == nlm_drop_reply) nlmsvc_proc_test()
124 dprintk("lockd: TEST status %d vers %d\n", nlmsvc_proc_test()
125 ntohl(resp->status), rqstp->rq_vers); nlmsvc_proc_test()
145 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) nlmsvc_proc_lock()
146 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; nlmsvc_proc_lock()
156 resp->status = nlm_lck_denied_nolocks; nlmsvc_proc_lock()
161 resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock, nlmsvc_proc_lock()
164 if (resp->status == nlm_drop_reply) nlmsvc_proc_lock()
167 dprintk("lockd: LOCK status %d\n", ntohl(resp->status)); nlmsvc_proc_lock()
188 resp->status = nlm_lck_denied_grace_period; nlmsvc_proc_cancel()
193 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) nlmsvc_proc_cancel()
194 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; nlmsvc_proc_cancel()
197 resp->status = cast_status(nlmsvc_cancel_blocked(net, file, &argp->lock)); nlmsvc_proc_cancel()
199 dprintk("lockd: CANCEL status %d\n", ntohl(resp->status)); nlmsvc_proc_cancel()
222 resp->status = nlm_lck_denied_grace_period; nlmsvc_proc_unlock()
227 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) nlmsvc_proc_unlock()
228 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; nlmsvc_proc_unlock()
231 resp->status = cast_status(nlmsvc_unlock(net, file, &argp->lock)); nlmsvc_proc_unlock()
233 dprintk("lockd: UNLOCK status %d\n", ntohl(resp->status)); nlmsvc_proc_unlock()
250 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); nlmsvc_proc_granted()
251 dprintk("lockd: GRANTED status %d\n", ntohl(resp->status)); nlmsvc_proc_granted()
370 resp->status = nlm_lck_denied_grace_period; nlmsvc_proc_share()
375 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) nlmsvc_proc_share()
376 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; nlmsvc_proc_share()
379 resp->status = cast_status(nlmsvc_share_file(host, file, argp)); nlmsvc_proc_share()
381 dprintk("lockd: SHARE status %d\n", ntohl(resp->status)); nlmsvc_proc_share()
403 resp->status = nlm_lck_denied_grace_period; nlmsvc_proc_unshare()
408 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) nlmsvc_proc_unshare()
409 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; nlmsvc_proc_unshare()
412 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp)); nlmsvc_proc_unshare()
414 dprintk("lockd: UNSHARE status %d\n", ntohl(resp->status)); nlmsvc_proc_unshare()
483 nlmsvc_grant_reply(&argp->cookie, argp->status); nlmsvc_proc_granted_res()
518 #define St 1 /* status */
H A Dsvc4proc.c86 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) nlm4svc_proc_test()
87 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; nlm4svc_proc_test()
90 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); nlm4svc_proc_test()
91 if (resp->status == nlm_drop_reply) nlm4svc_proc_test()
94 dprintk("lockd: TEST4 status %d\n", ntohl(resp->status)); nlm4svc_proc_test()
114 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) nlm4svc_proc_lock()
115 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; nlm4svc_proc_lock()
125 resp->status = nlm_lck_denied_nolocks; nlm4svc_proc_lock()
130 resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock, nlm4svc_proc_lock()
133 if (resp->status == nlm_drop_reply) nlm4svc_proc_lock()
136 dprintk("lockd: LOCK status %d\n", ntohl(resp->status)); nlm4svc_proc_lock()
156 resp->status = nlm_lck_denied_grace_period; nlm4svc_proc_cancel()
161 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) nlm4svc_proc_cancel()
162 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; nlm4svc_proc_cancel()
165 resp->status = nlmsvc_cancel_blocked(SVC_NET(rqstp), file, &argp->lock); nlm4svc_proc_cancel()
167 dprintk("lockd: CANCEL status %d\n", ntohl(resp->status)); nlm4svc_proc_cancel()
189 resp->status = nlm_lck_denied_grace_period; nlm4svc_proc_unlock()
194 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) nlm4svc_proc_unlock()
195 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; nlm4svc_proc_unlock()
198 resp->status = nlmsvc_unlock(SVC_NET(rqstp), file, &argp->lock); nlm4svc_proc_unlock()
200 dprintk("lockd: UNLOCK status %d\n", ntohl(resp->status)); nlm4svc_proc_unlock()
217 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); nlm4svc_proc_granted()
218 dprintk("lockd: GRANTED status %d\n", ntohl(resp->status)); nlm4svc_proc_granted()
327 resp->status = nlm_lck_denied_grace_period; nlm4svc_proc_share()
332 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) nlm4svc_proc_share()
333 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; nlm4svc_proc_share()
336 resp->status = nlmsvc_share_file(host, file, argp); nlm4svc_proc_share()
338 dprintk("lockd: SHARE status %d\n", ntohl(resp->status)); nlm4svc_proc_share()
360 resp->status = nlm_lck_denied_grace_period; nlm4svc_proc_unshare()
365 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) nlm4svc_proc_unshare()
366 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; nlm4svc_proc_unshare()
369 resp->status = nlmsvc_unshare_file(host, file, argp); nlm4svc_proc_unshare()
371 dprintk("lockd: UNSHARE status %d\n", ntohl(resp->status)); nlm4svc_proc_unshare()
440 nlmsvc_grant_reply(&argp->cookie, argp->status); nlm4svc_proc_granted_res()
476 #define St 1 /* status */
/linux-4.4.14/arch/ia64/kernel/
H A Dacpi-ext.c34 acpi_status status; hp_ccsr_locate() local
39 status = acpi_get_vendor_resource(obj, METHOD_NAME__CRS, &hp_ccsr_uuid, hp_ccsr_locate()
45 if (ACPI_FAILURE(status) || vendor->byte_length < 16) { hp_ccsr_locate()
46 status = AE_NOT_FOUND; hp_ccsr_locate()
55 return status; hp_ccsr_locate()
67 acpi_status status; find_csr_space() local
69 status = acpi_resource_to_address64(resource, &addr); find_csr_space()
70 if (ACPI_SUCCESS(status) && find_csr_space()
96 acpi_status status; hp_acpi_csr_space() local
98 status = hp_ccsr_locate(obj, csr_base, csr_length); hp_acpi_csr_space()
99 if (ACPI_SUCCESS(status)) hp_acpi_csr_space()
100 return status; hp_acpi_csr_space()
H A Duncached.c38 atomic_t status; /* smp called function's return status*/ member in struct:uncached_pool
48 int status; uncached_ipi_visibility() local
51 status = ia64_pal_prefetch_visibility(PAL_VISIBILITY_PHYSICAL); uncached_ipi_visibility()
52 if ((status != PAL_VISIBILITY_OK) && uncached_ipi_visibility()
53 (status != PAL_VISIBILITY_OK_REMOTE_NEEDED)) uncached_ipi_visibility()
54 atomic_inc(&uc_pool->status); uncached_ipi_visibility()
60 int status; uncached_ipi_mc_drain() local
63 status = ia64_pal_mc_drain(); uncached_ipi_mc_drain()
64 if (status != PAL_STATUS_SUCCESS) uncached_ipi_mc_drain()
65 atomic_inc(&uc_pool->status); uncached_ipi_mc_drain()
81 int status, i, nchunks_added = uc_pool->nchunks_added; uncached_add_chunk() local
123 status = ia64_pal_prefetch_visibility(PAL_VISIBILITY_PHYSICAL); uncached_add_chunk()
124 if (status == PAL_VISIBILITY_OK_REMOTE_NEEDED) { uncached_add_chunk()
125 atomic_set(&uc_pool->status, 0); uncached_add_chunk()
126 status = smp_call_function(uncached_ipi_visibility, uc_pool, 1); uncached_add_chunk()
127 if (status || atomic_read(&uc_pool->status)) uncached_add_chunk()
129 } else if (status != PAL_VISIBILITY_OK) uncached_add_chunk()
144 status = ia64_pal_mc_drain(); uncached_add_chunk()
145 if (status != PAL_STATUS_SUCCESS) uncached_add_chunk()
147 atomic_set(&uc_pool->status, 0); uncached_add_chunk()
148 status = smp_call_function(uncached_ipi_mc_drain, uc_pool, 1); uncached_add_chunk()
149 if (status || atomic_read(&uc_pool->status)) uncached_add_chunk()
156 status = gen_pool_add(uc_pool->pool, uc_addr, IA64_GRANULE_SIZE, nid); uncached_add_chunk()
157 if (status) uncached_add_chunk()
/linux-4.4.14/drivers/staging/vt6656/
H A Dusbpipe.c52 int status = 0; vnt_control_out() local
59 status = usb_control_msg(priv->usb, vnt_control_out()
65 if (status < (int)length) vnt_control_out()
80 int status; vnt_control_in() local
87 status = usb_control_msg(priv->usb, vnt_control_in()
93 if (status < (int)length) vnt_control_in()
108 int status; vnt_start_interrupt_urb_complete() local
110 switch (urb->status) { vnt_start_interrupt_urb_complete()
123 status = urb->status; vnt_start_interrupt_urb_complete()
125 if (status != STATUS_SUCCESS) { vnt_start_interrupt_urb_complete()
128 dev_dbg(&priv->usb->dev, "%s status = %d\n", __func__, status); vnt_start_interrupt_urb_complete()
133 status = usb_submit_urb(priv->interrupt_urb, GFP_ATOMIC); vnt_start_interrupt_urb_complete()
134 if (status) vnt_start_interrupt_urb_complete()
135 dev_dbg(&priv->usb->dev, "Submit int URB failed %d\n", status); vnt_start_interrupt_urb_complete()
142 int status = STATUS_FAILURE; vnt_start_interrupt_urb() local
158 status = usb_submit_urb(priv->interrupt_urb, GFP_ATOMIC); vnt_start_interrupt_urb()
159 if (status) { vnt_start_interrupt_urb()
160 dev_dbg(&priv->usb->dev, "Submit int URB failed %d\n", status); vnt_start_interrupt_urb()
164 return status; vnt_start_interrupt_urb()
172 switch (urb->status) { vnt_submit_rx_urb_complete()
181 dev_dbg(&priv->usb->dev, "BULK In failed %d\n", urb->status); vnt_submit_rx_urb_complete()
213 int status = 0; vnt_submit_rx_urb() local
219 return status; vnt_submit_rx_urb()
230 status = usb_submit_urb(urb, GFP_ATOMIC); vnt_submit_rx_urb()
231 if (status != 0) { vnt_submit_rx_urb()
232 dev_dbg(&priv->usb->dev, "Submit Rx URB failed %d\n", status); vnt_submit_rx_urb()
238 return status; vnt_submit_rx_urb()
246 switch (urb->status) { vnt_tx_context_complete()
257 dev_dbg(&priv->usb->dev, "BULK Out failed %d\n", urb->status); vnt_tx_context_complete()
264 if (urb->status || context->type == CONTEXT_BEACON_PACKET) { vnt_tx_context_complete()
275 int status; vnt_tx_context() local
293 status = usb_submit_urb(urb, GFP_ATOMIC); vnt_tx_context()
294 if (status != 0) { vnt_tx_context()
295 dev_dbg(&priv->usb->dev, "Submit Tx URB failed %d\n", status); vnt_tx_context()
/linux-4.4.14/drivers/crypto/caam/
H A Derror.h10 void caam_jr_strstatus(struct device *jrdev, u32 status);
/linux-4.4.14/drivers/mtd/devices/
H A Dmtd_dataflash.c42 /* group B requests can run even while status reports "busy" */
111 * Return the status of the DataFlash device.
127 int status; dataflash_waitready() local
130 status = dataflash_status(spi); dataflash_waitready()
131 if (status < 0) { dataflash_waitready()
132 pr_debug("%s: status %d?\n", dataflash_waitready()
133 dev_name(&spi->dev), status); dataflash_waitready()
134 status = 0; dataflash_waitready()
137 if (status & (1 << 7)) /* RDY/nBSY */ dataflash_waitready()
138 return status; dataflash_waitready()
179 int status; dataflash_erase() local
199 status = spi_sync(spi, &msg); dataflash_erase()
202 if (status < 0) { dataflash_erase()
204 dev_name(&spi->dev), pageaddr, status); dataflash_erase()
243 int status; dataflash_read() local
279 status = spi_sync(priv->spi, &msg); dataflash_read()
282 if (status >= 0) { dataflash_read()
284 status = 0; dataflash_read()
289 status); dataflash_read()
290 return status; dataflash_read()
310 int status = -EINVAL; dataflash_write() local
362 status = spi_sync(spi, &msg); dataflash_write()
363 if (status < 0) dataflash_write()
365 dev_name(&spi->dev), addr, status); dataflash_write()
383 status = spi_sync(spi, &msg); dataflash_write()
385 if (status < 0) dataflash_write()
387 dev_name(&spi->dev), addr, writelen, status); dataflash_write()
404 status = spi_sync(spi, &msg); dataflash_write()
405 if (status < 0) dataflash_write()
407 dev_name(&spi->dev), addr, status); dataflash_write()
409 status = dataflash_waitready(priv->spi); dataflash_write()
412 if (status & (1 << 6)) { dataflash_write()
414 dev_name(&spi->dev), pageaddr, status); dataflash_write()
416 status = -EIO; dataflash_write()
419 status = 0; dataflash_write()
436 return status; dataflash_write()
464 int status; otp_read() local
492 status = spi_sync(spi, &m); otp_read()
493 if (status >= 0) { otp_read()
495 status = len; otp_read()
499 return status; otp_read()
506 int status; dataflash_read_fact_otp() local
510 status = otp_read(priv->spi, 64, buf, from, len); dataflash_read_fact_otp()
513 if (status < 0) dataflash_read_fact_otp()
514 return status; dataflash_read_fact_otp()
515 *retlen = status; dataflash_read_fact_otp()
523 int status; dataflash_read_user_otp() local
527 status = otp_read(priv->spi, 0, buf, from, len); dataflash_read_user_otp()
530 if (status < 0) dataflash_read_user_otp()
531 return status; dataflash_read_user_otp()
532 *retlen = status; dataflash_read_user_otp()
544 int status; dataflash_write_user_otp() local
580 status = spi_sync(priv->spi, &m); dataflash_write_user_otp()
585 if (status >= 0) { dataflash_write_user_otp()
586 status = 0; dataflash_write_user_otp()
589 return status; dataflash_write_user_otp()
747 int status; jedec_probe() local
782 status = dataflash_status(spi); jedec_probe()
783 if (status < 0) { jedec_probe()
784 pr_debug("%s: status error %d\n", jedec_probe()
785 dev_name(&spi->dev), status); jedec_probe()
786 return ERR_PTR(status); jedec_probe()
788 if (status & 0x1) { jedec_probe()
811 * or else the ID code embedded in the status bits:
825 int status; dataflash_probe() local
845 * capacity using bits in the status byte. dataflash_probe()
847 status = dataflash_status(spi); dataflash_probe()
848 if (status <= 0 || status == 0xff) { dataflash_probe()
849 pr_debug("%s: status error %d\n", dataflash_probe()
850 dev_name(&spi->dev), status); dataflash_probe()
851 if (status == 0 || status == 0xff) dataflash_probe()
852 status = -ENODEV; dataflash_probe()
853 return status; dataflash_probe()
860 switch (status & 0x3c) { dataflash_probe()
862 status = add_dataflash(spi, "AT45DB011B", 512, 264, 9); dataflash_probe()
865 status = add_dataflash(spi, "AT45DB021B", 1024, 264, 9); dataflash_probe()
868 status = add_dataflash(spi, "AT45DB041x", 2048, 264, 9); dataflash_probe()
871 status = add_dataflash(spi, "AT45DB081B", 4096, 264, 9); dataflash_probe()
874 status = add_dataflash(spi, "AT45DB161x", 4096, 528, 10); dataflash_probe()
877 status = add_dataflash(spi, "AT45DB321x", 8192, 528, 10); dataflash_probe()
881 status = add_dataflash(spi, "AT45DB642x", 8192, 1056, 11); dataflash_probe()
886 status & 0x3c); dataflash_probe()
887 status = -ENODEV; dataflash_probe()
890 if (status < 0) dataflash_probe()
892 status); dataflash_probe()
894 return status; dataflash_probe()
900 int status; dataflash_remove() local
904 status = mtd_device_unregister(&flash->mtd); dataflash_remove()
905 if (status == 0) dataflash_remove()
907 return status; dataflash_remove()
/linux-4.4.14/drivers/usb/gadget/legacy/
H A Dnokia.c155 int status = 0; nokia_bind_config() local
180 status = PTR_ERR(f_acm); nokia_bind_config()
186 status = PTR_ERR(f_ecm); nokia_bind_config()
192 status = PTR_ERR(f_msg); nokia_bind_config()
214 status = usb_add_function(c, f_acm); nokia_bind_config()
215 if (status) nokia_bind_config()
218 status = usb_add_function(c, f_ecm); nokia_bind_config()
219 if (status) { nokia_bind_config()
220 pr_debug("could not bind ecm config %d\n", status); nokia_bind_config()
224 status = usb_add_function(c, f_msg); nokia_bind_config()
225 if (status) nokia_bind_config()
244 return status; nokia_bind_config()
268 return status; nokia_bind_config()
276 int status; nokia_bind() local
278 status = usb_string_ids_tab(cdev, strings_dev); nokia_bind()
279 if (status < 0) nokia_bind()
283 status = strings_dev[STRING_DESCRIPTION_IDX].id; nokia_bind()
284 nokia_config_500ma_driver.iConfiguration = status; nokia_bind()
285 nokia_config_100ma_driver.iConfiguration = status; nokia_bind()
288 status = -ENODEV; nokia_bind()
306 status = PTR_ERR(fi_acm); nokia_bind()
312 status = PTR_ERR(fi_ecm); nokia_bind()
318 status = PTR_ERR(fi_msg); nokia_bind()
330 status = fsg_common_set_num_buffers(fsg_opts->common, fsg_num_buffers); nokia_bind()
331 if (status) nokia_bind()
334 status = fsg_common_set_cdev(fsg_opts->common, cdev, fsg_config.can_stall); nokia_bind()
335 if (status) nokia_bind()
340 status = fsg_common_create_luns(fsg_opts->common, &fsg_config); nokia_bind()
341 if (status) nokia_bind()
348 status = usb_add_config(cdev, &nokia_config_500ma_driver, nokia_bind()
350 if (status < 0) nokia_bind()
353 status = usb_add_config(cdev, &nokia_config_100ma_driver, nokia_bind()
355 if (status < 0) nokia_bind()
390 return status; nokia_bind()
H A Dacm_ms.c113 int status; acm_ms_do_config() local
128 status = PTR_ERR(f_msg); acm_ms_do_config()
132 status = usb_add_function(c, f_acm); acm_ms_do_config()
133 if (status < 0) acm_ms_do_config()
136 status = usb_add_function(c, f_msg); acm_ms_do_config()
137 if (status) acm_ms_do_config()
147 return status; acm_ms_do_config()
164 int status; acm_ms_bind() local
172 status = PTR_ERR(fi_msg); acm_ms_bind()
181 status = fsg_common_set_num_buffers(opts->common, fsg_num_buffers); acm_ms_bind()
182 if (status) acm_ms_bind()
185 status = fsg_common_set_cdev(opts->common, cdev, config.can_stall); acm_ms_bind()
186 if (status) acm_ms_bind()
190 status = fsg_common_create_luns(opts->common, &config); acm_ms_bind()
191 if (status) acm_ms_bind()
200 status = usb_string_ids_tab(cdev, strings_dev); acm_ms_bind()
201 if (status < 0) acm_ms_bind()
218 status = usb_add_config(cdev, &acm_ms_config_driver, acm_ms_do_config); acm_ms_bind()
219 if (status < 0) acm_ms_bind()
239 return status; acm_ms_bind()
H A Dhid.c97 int status = 0; do_config() local
108 status = usb_add_function(c, e->f); do_config()
109 if (status < 0) { do_config()
123 return status; do_config()
141 int status, funcs = 0; hid_bind() local
152 status = PTR_ERR(n->fi); hid_bind()
168 status = usb_string_ids_tab(cdev, strings_dev); hid_bind()
169 if (status < 0) hid_bind()
186 status = usb_add_config(cdev, &config_driver, do_config); hid_bind()
187 if (status < 0) hid_bind()
204 return status; hid_bind()
281 int status; hidg_init() local
283 status = platform_driver_probe(&hidg_plat_driver, hidg_init()
285 if (status < 0) hidg_init()
286 return status; hidg_init()
288 status = usb_composite_probe(&hidg_driver); hidg_init()
289 if (status < 0) hidg_init()
292 return status; hidg_init()
H A Dcdc2.c95 int status; cdc_do_config() local
104 status = PTR_ERR(f_ecm); cdc_do_config()
108 status = usb_add_function(c, f_ecm); cdc_do_config()
109 if (status) cdc_do_config()
114 status = PTR_ERR(f_acm); cdc_do_config()
118 status = usb_add_function(c, f_acm); cdc_do_config()
119 if (status) cdc_do_config()
130 return status; cdc_do_config()
146 int status; cdc_bind() local
168 status = PTR_ERR(fi_serial); cdc_bind()
176 status = usb_string_ids_tab(cdev, strings_dev); cdc_bind()
177 if (status < 0) cdc_bind()
194 status = usb_add_config(cdev, &cdc_config_driver, cdc_do_config); cdc_bind()
195 if (status < 0) cdc_bind()
211 return status; cdc_bind()
/linux-4.4.14/arch/mips/loongson64/lemote-2f/
H A Dec_kb3310b.c52 * This function is used for EC command writes and corresponding status queries.
57 unsigned char status; ec_query_seq() local
70 status = inb(EC_STS_PORT); ec_query_seq()
71 while (timeout-- && (status & (1 << 1))) { ec_query_seq()
72 status = inb(EC_STS_PORT); ec_query_seq()
83 "(%x/%d)ec issued command %d status : 0x%x\n", ec_query_seq()
84 timeout, EC_CMD_TIMEOUT - timeout, cmd, status); ec_query_seq()
109 unsigned char status; ec_get_event_num() local
112 status = inb(EC_STS_PORT); ec_get_event_num()
114 while (timeout-- && !(status & (1 << 0))) { ec_get_event_num()
115 status = inb(EC_STS_PORT); ec_get_event_num()
/linux-4.4.14/Documentation/spi/
H A Dspidev_fdx.c20 int status; do_read() local
29 status = read(fd, buf, len); do_read()
30 if (status < 0) { do_read()
34 if (status != len) { do_read()
39 printf("read(%2d, %2d): %02x %02x,", len, status, do_read()
41 status -= 2; do_read()
43 while (status-- > 0) do_read()
52 int status; do_msg() local
67 status = ioctl(fd, SPI_IOC_MESSAGE(2), xfer); do_msg()
68 if (status < 0) { do_msg()
73 printf("response(%2d, %2d): ", len, status); do_msg()
/linux-4.4.14/drivers/misc/altera-stapl/
H A Daltera.c134 static int altera_check_stack(int stack_ptr, int count, int *status) altera_check_stack() argument
137 *status = -EOVERFLOW; altera_check_stack()
228 int status = 0; altera_execute() local
300 status = -EIO; altera_execute()
310 status = -ENOMEM; altera_execute()
312 if (status == 0) { altera_execute()
316 status = -ENOMEM; altera_execute()
319 if (status == 0) { altera_execute()
323 status = -ENOMEM; altera_execute()
326 if ((status == 0) && (version > 0)) { altera_execute()
330 status = -ENOMEM; altera_execute()
333 if (status != 0) altera_execute()
375 status = -ENOMEM; altera_execute()
387 status = -EIO; altera_execute()
417 status = -ENOMEM; altera_execute()
433 if (status != 0) altera_execute()
447 status = -EINVAL; altera_execute()
466 status = -EINVAL; altera_execute()
471 if (status == 0) { altera_execute()
513 status = -ERANGE; altera_execute()
541 if (altera_check_stack(stack_ptr, 1, &status)) { altera_execute()
547 if (altera_check_stack(stack_ptr, 2, &status)) { altera_execute()
554 if (altera_check_stack(stack_ptr, 2, &status)) { altera_execute()
560 if (altera_check_stack(stack_ptr, 2, &status)) { altera_execute()
566 if (altera_check_stack(stack_ptr, 2, &status)) { altera_execute()
572 if (altera_check_stack(stack_ptr, 2, &status)) { altera_execute()
578 if (altera_check_stack(stack_ptr, 2, &status)) { altera_execute()
584 if (altera_check_stack(stack_ptr, 2, &status)) { altera_execute()
590 if (altera_check_stack(stack_ptr, 2, &status)) { altera_execute()
596 if (altera_check_stack(stack_ptr, 1, &status)) altera_execute()
601 if (altera_check_stack(stack_ptr, 2, &status)) { altera_execute()
607 if (altera_check_stack(stack_ptr, 2, &status)) { altera_execute()
613 if (altera_check_stack(stack_ptr, 2, &status)) { altera_execute()
619 if (!altera_check_stack(stack_ptr, 1, &status)) altera_execute()
624 if (!altera_check_stack(stack_ptr, 2, &status)) altera_execute()
633 if (!altera_check_stack(stack_ptr, 2, &status)) altera_execute()
669 status = -ERANGE; altera_execute()
673 if (altera_check_stack(stack_ptr, 1, &status)) { altera_execute()
677 status = -ERANGE; altera_execute()
690 if (altera_check_stack(stack_ptr, 4, &status)) { altera_execute()
697 status = -ERANGE; altera_execute()
712 if (!altera_check_stack(stack_ptr, 1, &status)) altera_execute()
730 if (!altera_check_stack(stack_ptr, 2, &status)) altera_execute()
735 status = altera_drscan(astate, count, charbuf, 0); altera_execute()
743 if (!altera_check_stack(stack_ptr, 2, &status)) altera_execute()
748 status = altera_swap_dr(astate, count, charbuf, altera_execute()
758 if (!altera_check_stack(stack_ptr, 2, &status)) altera_execute()
763 status = altera_irscan(astate, count, charbuf, 0); altera_execute()
771 if (!altera_check_stack(stack_ptr, 2, &status)) altera_execute()
776 status = altera_swap_ir(astate, count, charbuf, altera_execute()
781 if (!altera_check_stack(stack_ptr, 1, &status)) altera_execute()
784 status = altera_set_dr_pre(&astate->js, count, 0, NULL); altera_execute()
792 if (!altera_check_stack(stack_ptr, 2, &status)) altera_execute()
797 status = altera_set_dr_pre(&astate->js, count, 0, altera_execute()
805 if (altera_check_stack(stack_ptr, 1, &status)) { altera_execute()
807 status = altera_set_dr_post(&astate->js, count, altera_execute()
817 if (!altera_check_stack(stack_ptr, 2, &status)) altera_execute()
822 status = altera_set_dr_post(&astate->js, count, 0, altera_execute()
826 if (altera_check_stack(stack_ptr, 1, &status)) { altera_execute()
828 status = altera_set_ir_pre(&astate->js, count, altera_execute()
838 if (altera_check_stack(stack_ptr, 2, &status)) { altera_execute()
842 status = altera_set_ir_pre(&astate->js, count, altera_execute()
851 if (altera_check_stack(stack_ptr, 1, &status)) { altera_execute()
853 status = altera_set_ir_post(&astate->js, count, altera_execute()
863 if (!altera_check_stack(stack_ptr, 2, &status)) altera_execute()
868 status = altera_set_ir_post(&astate->js, count, 0, altera_execute()
872 if (altera_check_stack(stack_ptr, 1, &status)) { altera_execute()
889 if (altera_check_stack(stack_ptr, 1, &status)) altera_execute()
895 if (!altera_check_stack(stack_ptr, 2, &status)) altera_execute()
903 if (altera_check_stack(stack_ptr, 1, &status)) altera_execute()
908 if (!altera_check_stack(stack_ptr, 1, &status)) altera_execute()
929 if (altera_check_stack(stack_ptr, 2, &status)) { altera_execute()
937 if (altera_check_stack(stack_ptr, index, &status)) { altera_execute()
944 if (altera_check_stack(stack_ptr, 2, &status)) { altera_execute()
952 if (altera_check_stack(stack_ptr, index, &status)) { altera_execute()
960 if (altera_check_stack(stack_ptr, index, &status)) { altera_execute()
967 if (altera_check_stack(stack_ptr, index, &status)) { altera_execute()
974 if (altera_check_stack(stack_ptr, 2, &status)) { altera_execute()
982 if (altera_check_stack(stack_ptr, index, &status)) { altera_execute()
989 if (altera_check_stack(stack_ptr, index, &status)) { altera_execute()
1006 status = -ERANGE; altera_execute()
1012 status = -ERANGE; altera_execute()
1022 if (altera_check_stack(stack_ptr, 3, &status)) { altera_execute()
1042 status = -ERANGE; altera_execute()
1061 status = altera_goto_jstate(astate, args[0]); altera_execute()
1068 status = altera_goto_jstate(astate, args[0]); altera_execute()
1075 status = altera_set_irstop(&astate->js, args[0]); altera_execute()
1082 status = altera_set_drstop(&astate->js, args[0]); altera_execute()
1092 if (altera_check_stack(stack_ptr, index, &status)) { altera_execute()
1104 if (altera_check_stack(stack_ptr, index, &status)) { altera_execute()
1115 if (altera_check_stack(stack_ptr, 1, &status)) altera_execute()
1126 if (!altera_check_stack(stack_ptr, 2, &status)) altera_execute()
1144 status = -ENOMEM; altera_execute()
1169 status = -ERANGE; altera_execute()
1189 if (!altera_check_stack(stack_ptr, 3, &status)) altera_execute()
1208 status = -ENOMEM; altera_execute()
1249 status = -ERANGE; altera_execute()
1277 status = -ERANGE; altera_execute()
1289 status = -ERANGE; altera_execute()
1311 if (altera_check_stack(stack_ptr, 1, &status)) { altera_execute()
1316 status = -ERANGE; altera_execute()
1329 if (!altera_check_stack(stack_ptr, 2, &status)) altera_execute()
1360 status = -ENOMEM; altera_execute()
1381 status = altera_drscan(astate, long_count, altera_execute()
1384 status = altera_irscan(astate, long_count, altera_execute()
1398 if (!altera_check_stack(stack_ptr, 2, &status)) altera_execute()
1411 status = altera_set_dr_pre(&astate->js, count, index, altera_execute()
1421 if (!altera_check_stack(stack_ptr, 2, &status)) altera_execute()
1434 status = altera_set_dr_post(&astate->js, count, index, altera_execute()
1444 if (!altera_check_stack(stack_ptr, 2, &status)) altera_execute()
1457 status = altera_set_ir_pre(&astate->js, count, index, altera_execute()
1468 if (!altera_check_stack(stack_ptr, 2, &status)) altera_execute()
1481 status = altera_set_ir_post(&astate->js, count, index, altera_execute()
1491 if (altera_check_stack(stack_ptr, 1, &status)) { altera_execute()
1503 if (!altera_check_stack(stack_ptr, 1, &status)) altera_execute()
1520 status = -ERANGE; altera_execute()
1530 if (!altera_check_stack(stack_ptr, 2, &status)) altera_execute()
1536 status = -ERANGE; altera_execute()
1556 status = -ERANGE; altera_execute()
1576 if (!altera_check_stack(stack_ptr, 1, &status)) altera_execute()
1608 status = -ENOMEM; altera_execute()
1637 if (!altera_check_stack(stack_ptr, 3, &status)) altera_execute()
1651 status = -ERANGE; altera_execute()
1666 status = -ENOMEM; altera_execute()
1712 if (!altera_check_stack(stack_ptr, 3, &status)) altera_execute()
1762 status = -ERANGE; altera_execute()
1786 status = -ENOMEM; altera_execute()
1822 status = -ERANGE; altera_execute()
1827 status = -ERANGE; altera_execute()
1869 if (!altera_check_stack(stack_ptr, 3, &status)) altera_execute()
1907 status = -ENOMEM; altera_execute()
1947 status = -ERANGE; altera_execute()
1956 status = -ERANGE; altera_execute()
1960 if (status == 0) { altera_execute()
1962 status = altera_swap_dr(astate, altera_execute()
1969 status = altera_swap_ir(astate, altera_execute()
1988 if (!altera_check_stack(stack_ptr, 2, &status)) altera_execute()
1993 status = altera_wait_cycles(astate, long_tmp, altera_execute()
1998 if ((status == 0) && (long_tmp != 0L)) altera_execute()
1999 status = altera_wait_msecs(astate, altera_execute()
2003 if ((status == 0) && (args[1] != args[0])) altera_execute()
2004 status = altera_goto_jstate(astate, altera_execute()
2031 if (!altera_check_stack(stack_ptr, 4, &status)) altera_execute()
2068 status = -ERANGE; altera_execute()
2102 status = -ENOSYS; altera_execute()
2105 status = -EOVERFLOW; altera_execute()
2107 if (status != 0) { altera_execute()
2126 return status; altera_execute()
2141 int status = -ENODATA; altera_get_note() local
2167 return status; altera_get_note()
2175 (status != 0); ++i) { altera_get_note()
2181 status = 0; altera_get_note()
2201 status = 0; altera_get_note()
2219 return status; altera_get_note()
2224 int status = 0; altera_check_crc() local
2245 status = -EIO; altera_check_crc()
2248 status = -EIO; altera_check_crc()
2250 if (status == 0) { altera_check_crc()
2268 status = -EILSEQ; altera_check_crc()
2272 if (debug || status) { altera_check_crc()
2273 switch (status) { altera_check_crc()
2294 "code %d\n", __func__, status); altera_check_crc()
2299 return status; altera_check_crc()
2308 int status = -EIO; altera_get_file_info() local
2313 return status; altera_get_file_info()
2318 status = 0; altera_get_file_info()
2329 return status; altera_get_file_info()
2339 int status = -EIO; altera_get_act_info() local
2356 return status; altera_get_act_info()
2361 return status; altera_get_act_info()
2371 return status; altera_get_act_info()
2393 status = -ENOMEM; altera_get_act_info()
2414 return status; altera_get_act_info()
H A Daltera-jtag.c134 int status = 0; altera_set_dr_pre() local
142 status = -ENOMEM; altera_set_dr_pre()
148 if (status == 0) { altera_set_dr_pre()
166 return status; altera_set_dr_pre()
172 int status = 0; altera_set_ir_pre() local
180 status = -ENOMEM; altera_set_ir_pre()
187 if (status == 0) { altera_set_ir_pre()
204 return status; altera_set_ir_pre()
210 int status = 0; altera_set_dr_post() local
219 status = -ENOMEM; altera_set_dr_post()
226 if (status == 0) { altera_set_dr_post()
244 return status; altera_set_dr_post()
250 int status = 0; altera_set_ir_post() local
258 status = -ENOMEM; altera_set_ir_post()
265 if (status != 0) altera_set_ir_post()
266 return status; altera_set_ir_post()
283 return status; altera_set_ir_post()
305 int status = 0; altera_goto_jstate() local
346 status = -EREMOTEIO; altera_goto_jstate()
348 return status; altera_goto_jstate()
358 int status = 0; altera_wait_cycles() local
361 status = altera_goto_jstate(astate, wait_state); altera_wait_cycles()
363 if (status == 0) { altera_wait_cycles()
375 return status; altera_wait_cycles()
391 int status = 0; altera_wait_msecs() local
395 status = altera_goto_jstate(astate, wait_state); altera_wait_msecs()
397 if (status == 0) altera_wait_msecs()
401 return status; altera_wait_msecs()
456 int status = 1; alt_jtag_drscan() local
483 status = 0; alt_jtag_drscan()
486 if (status) { alt_jtag_drscan()
506 return status; alt_jtag_drscan()
517 int status = 1; alt_jtag_irscan() local
547 status = 0; alt_jtag_irscan()
550 if (status) { alt_jtag_irscan()
569 return status; alt_jtag_irscan()
607 int status = 0; altera_irscan() local
641 status = -EREMOTEIO; altera_irscan()
645 if (status == 0) altera_irscan()
647 status = altera_goto_jstate(astate, start_state); altera_irscan()
649 if (status == 0) { altera_irscan()
655 status = -ENOMEM; altera_irscan()
662 if (status == 0) { altera_irscan()
686 if (status == 0) altera_irscan()
688 status = altera_goto_jstate(astate, js->irstop_state); altera_irscan()
691 return status; altera_irscan()
706 int status = 0; altera_swap_ir() local
740 status = -EREMOTEIO; altera_swap_ir()
744 if (status == 0) altera_swap_ir()
746 status = altera_goto_jstate(astate, start_state); altera_swap_ir()
748 if (status == 0) { altera_swap_ir()
754 status = -ENOMEM; altera_swap_ir()
761 if (status == 0) { altera_swap_ir()
786 if (status == 0) altera_swap_ir()
788 status = altera_goto_jstate(astate, js->irstop_state); altera_swap_ir()
791 if (status == 0) altera_swap_ir()
797 return status; altera_swap_ir()
810 int status = 0; altera_drscan() local
844 status = -EREMOTEIO; altera_drscan()
848 if (status == 0) altera_drscan()
850 status = altera_goto_jstate(astate, start_state); altera_drscan()
852 if (status == 0) { altera_drscan()
858 status = -ENOMEM; altera_drscan()
865 if (status == 0) { altera_drscan()
885 if (status == 0) altera_drscan()
887 status = altera_goto_jstate(astate, js->drstop_state); altera_drscan()
889 return status; altera_drscan()
901 int status = 0; altera_swap_dr() local
935 status = -EREMOTEIO; altera_swap_dr()
939 if (status == 0) altera_swap_dr()
941 status = altera_goto_jstate(astate, start_state); altera_swap_dr()
943 if (status == 0) { altera_swap_dr()
950 status = -ENOMEM; altera_swap_dr()
957 if (status == 0) { altera_swap_dr()
982 if (status == 0) altera_swap_dr()
984 status = altera_goto_jstate(astate, js->drstop_state); altera_swap_dr()
986 if (status == 0) altera_swap_dr()
994 return status; altera_swap_dr()
/linux-4.4.14/arch/um/os-Linux/
H A Dstart_up.c95 int pid, n, status; start_ptraced_child() local
105 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED)); start_ptraced_child()
108 if (!WIFSTOPPED(status) || (WSTOPSIG(status) != SIGSTOP)) start_ptraced_child()
109 fatal("check_ptrace : expected SIGSTOP, got status = %d", start_ptraced_child()
110 status); start_ptraced_child()
123 int status, n, ret = 0; stop_ptraced_child() local
129 CATCH_EINTR(n = waitpid(pid, &status, 0)); stop_ptraced_child()
130 if (!WIFEXITED(status) || (WEXITSTATUS(status) != exitcode)) { stop_ptraced_child()
131 int exit_with = WEXITSTATUS(status); stop_ptraced_child()
133 non_fatal("check_ptrace : child exited with status 2. " stop_ptraced_child()
136 "expecting %d; status 0x%x\n", exit_with, stop_ptraced_child()
137 exitcode, status); stop_ptraced_child()
167 int pid, n, status, count=0; check_sysemu() local
176 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED)); check_sysemu()
179 if (!WIFSTOPPED(status) || (WSTOPSIG(status) != SIGTRAP)) check_sysemu()
180 fatal("check_sysemu : expected SIGTRAP, got status = %d\n", check_sysemu()
181 status); check_sysemu()
216 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED)); check_sysemu()
220 if (WIFSTOPPED(status) && check_sysemu()
221 (WSTOPSIG(status) == (SIGTRAP|0x80))) { check_sysemu()
234 else if (WIFSTOPPED(status) && (WSTOPSIG(status) == SIGTRAP)) check_sysemu()
238 "(SIGTRAP | 0x80), got status = %d\n", check_sysemu()
239 status); check_sysemu()
261 int pid, syscall, n, status; check_ptrace() local
274 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED)); check_ptrace()
278 if (!WIFSTOPPED(status) || check_ptrace()
279 (WSTOPSIG(status) != (SIGTRAP | 0x80))) check_ptrace()
281 "got status = %d", status); check_ptrace()
H A Dhelper.c117 int pid, status, err; run_helper_thread() local
132 CATCH_EINTR(pid = waitpid(pid, &status, __WALL)); run_helper_thread()
139 if (!WIFEXITED(status) || (WEXITSTATUS(status) != 0)) run_helper_thread()
141 "returned status 0x%x\n", status); run_helper_thread()
150 int ret, status; helper_wait() local
153 CATCH_EINTR(ret = waitpid(pid, &status, wflags)); helper_wait()
158 } else if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) { helper_wait()
160 "status 0x%x\n", pid, status); helper_wait()
/linux-4.4.14/drivers/staging/media/lirc/
H A Dlirc_parallel.h15 #define LIRC_PORT_TIMER LIRC_LP_STATUS /* status port */
17 #define LIRC_PORT_SIGNAL LIRC_LP_STATUS /* status port */
/linux-4.4.14/include/uapi/linux/
H A Dusbip.h10 /* usbip device status - exported in usbip device sysfs status */
/linux-4.4.14/drivers/s390/scsi/
H A Dzfcp_erp.c86 act->status |= ZFCP_STATUS_ERP_DISMISSED; zfcp_erp_action_dismiss()
95 if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_ERP_INUSE) zfcp_erp_action_dismiss_lun()
103 if (atomic_read(&port->status) & ZFCP_STATUS_COMMON_ERP_INUSE) zfcp_erp_action_dismiss_port()
118 if (atomic_read(&adapter->status) & ZFCP_STATUS_COMMON_ERP_INUSE) zfcp_erp_action_dismiss_adapter()
139 l_status = atomic_read(&zfcp_sdev->status); zfcp_erp_required_act()
142 p_status = atomic_read(&port->status); zfcp_erp_required_act()
150 p_status = atomic_read(&port->status); zfcp_erp_required_act()
155 p_status = atomic_read(&port->status); zfcp_erp_required_act()
158 a_status = atomic_read(&adapter->status); zfcp_erp_required_act()
168 a_status = atomic_read(&adapter->status); zfcp_erp_required_act()
194 &zfcp_sdev->status); zfcp_erp_setup_act()
199 if (!(atomic_read(&zfcp_sdev->status) & zfcp_erp_setup_act()
209 atomic_or(ZFCP_STATUS_COMMON_ERP_INUSE, &port->status); zfcp_erp_setup_act()
213 if (!(atomic_read(&port->status) & ZFCP_STATUS_COMMON_RUNNING)) zfcp_erp_setup_act()
220 atomic_or(ZFCP_STATUS_COMMON_ERP_INUSE, &adapter->status); zfcp_erp_setup_act()
223 if (!(atomic_read(&adapter->status) & zfcp_erp_setup_act()
234 erp_action->status = act_status; zfcp_erp_setup_act()
257 atomic_or(ZFCP_STATUS_ADAPTER_ERP_PENDING, &adapter->status); zfcp_erp_action_enqueue()
273 /* ensure propagation of failed status to new devices */ _zfcp_erp_adapter_reopen()
274 if (atomic_read(&adapter->status) & ZFCP_STATUS_COMMON_ERP_FAILED) { _zfcp_erp_adapter_reopen()
297 if (atomic_read(&adapter->status) & ZFCP_STATUS_COMMON_ERP_FAILED) zfcp_erp_adapter_reopen()
343 if (atomic_read(&port->status) & ZFCP_STATUS_COMMON_ERP_FAILED) _zfcp_erp_port_forced_reopen()
371 if (atomic_read(&port->status) & ZFCP_STATUS_COMMON_ERP_FAILED) { _zfcp_erp_port_reopen()
372 /* ensure propagation of failed status to new devices */ _zfcp_erp_port_reopen()
384 * @clear_mask: flags in port status to be cleared
416 if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_ERP_FAILED) _zfcp_erp_lun_reopen()
426 * @clear_mask: specifies flags in LUN status to be cleared
480 static int status_change_set(unsigned long mask, atomic_t *status) status_change_set() argument
482 return (atomic_read(status) ^ mask) & mask; status_change_set()
487 if (status_change_set(ZFCP_STATUS_COMMON_UNBLOCKED, &adapter->status)) zfcp_erp_adapter_unblock()
489 atomic_or(ZFCP_STATUS_COMMON_UNBLOCKED, &adapter->status); zfcp_erp_adapter_unblock()
494 if (status_change_set(ZFCP_STATUS_COMMON_UNBLOCKED, &port->status)) zfcp_erp_port_unblock()
496 atomic_or(ZFCP_STATUS_COMMON_UNBLOCKED, &port->status); zfcp_erp_port_unblock()
503 if (status_change_set(ZFCP_STATUS_COMMON_UNBLOCKED, &zfcp_sdev->status)) zfcp_erp_lun_unblock()
505 atomic_or(ZFCP_STATUS_COMMON_UNBLOCKED, &zfcp_sdev->status); zfcp_erp_lun_unblock()
525 if (act->status & (ZFCP_STATUS_ERP_DISMISSED | zfcp_erp_strategy_check_fsfreq()
527 req->status |= ZFCP_STATUS_FSFREQ_DISMISSED; zfcp_erp_strategy_check_fsfreq()
531 if (act->status & ZFCP_STATUS_ERP_TIMEDOUT) zfcp_erp_strategy_check_fsfreq()
533 if (req->status & ZFCP_STATUS_FSFREQ_DISMISSED) zfcp_erp_strategy_check_fsfreq()
543 * @set_mask: ERP action status flags to set.
552 erp_action->status |= set_mask; zfcp_erp_notify()
646 &adapter->status); zfcp_erp_wakeup()
668 atomic_andnot(ZFCP_STATUS_ADAPTER_XCONFIG_OK, &adapter->status); zfcp_erp_adapter_strat_fsf_xconf()
672 &adapter->status); zfcp_erp_adapter_strat_fsf_xconf()
678 &adapter->status); zfcp_erp_adapter_strat_fsf_xconf()
684 if (erp_action->status & ZFCP_STATUS_ERP_TIMEDOUT) zfcp_erp_adapter_strat_fsf_xconf()
687 if (!(atomic_read(&adapter->status) & zfcp_erp_adapter_strat_fsf_xconf()
696 &adapter->status); zfcp_erp_adapter_strat_fsf_xconf()
698 if (!(atomic_read(&adapter->status) & ZFCP_STATUS_ADAPTER_XCONFIG_OK)) zfcp_erp_adapter_strat_fsf_xconf()
726 if (act->status & ZFCP_STATUS_ERP_TIMEDOUT) zfcp_erp_adapter_strategy_open_fsf_xport()
768 ZFCP_STATUS_ADAPTER_LINK_UNPLUGGED, &adapter->status); zfcp_erp_adapter_strategy_close()
778 &adapter->status); zfcp_erp_adapter_strategy_open()
787 atomic_or(ZFCP_STATUS_COMMON_OPEN, &adapter->status); zfcp_erp_adapter_strategy_open()
796 if (atomic_read(&adapter->status) & ZFCP_STATUS_COMMON_OPEN) { zfcp_erp_adapter_strategy()
798 if (act->status & ZFCP_STATUS_ERP_CLOSE_ONLY) zfcp_erp_adapter_strategy()
827 int status = atomic_read(&port->status); zfcp_erp_port_forced_strategy() local
831 if ((status & ZFCP_STATUS_PORT_PHYS_OPEN) && zfcp_erp_port_forced_strategy()
832 (status & ZFCP_STATUS_COMMON_OPEN)) zfcp_erp_port_forced_strategy()
838 if (!(status & ZFCP_STATUS_PORT_PHYS_OPEN)) zfcp_erp_port_forced_strategy()
887 int p_status = atomic_read(&port->status); zfcp_erp_port_strategy_open_common()
922 int p_status = atomic_read(&port->status); zfcp_erp_port_strategy()
941 if (erp_action->status & ZFCP_STATUS_ERP_CLOSE_ONLY) zfcp_erp_port_strategy()
952 &zfcp_sdev->status); zfcp_erp_lun_strategy_clearstati()
985 if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_OPEN) zfcp_erp_lun_strategy()
989 if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_OPEN) zfcp_erp_lun_strategy()
991 if (erp_action->status & ZFCP_STATUS_ERP_CLOSE_ONLY) zfcp_erp_lun_strategy()
996 if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_OPEN) zfcp_erp_lun_strategy()
1025 if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_ERP_FAILED) { zfcp_erp_strategy_check_lun()
1041 if (atomic_read(&port->status) & ZFCP_STATUS_COMMON_NOESC) { zfcp_erp_strategy_check_port()
1056 if (atomic_read(&port->status) & ZFCP_STATUS_COMMON_ERP_FAILED) { zfcp_erp_strategy_check_port()
1084 if (atomic_read(&adapter->status) & ZFCP_STATUS_COMMON_ERP_FAILED) { zfcp_erp_strategy_check_adapter()
1118 int status = atomic_read(target_status); zfcp_erp_strat_change_det() local
1120 if ((status & ZFCP_STATUS_COMMON_RUNNING) && zfcp_erp_strat_change_det()
1124 if (!(status & ZFCP_STATUS_COMMON_RUNNING) && zfcp_erp_strat_change_det()
1138 u32 erp_status = act->status; zfcp_erp_strategy_statechange()
1142 if (zfcp_erp_strat_change_det(&adapter->status, erp_status)) { zfcp_erp_strategy_statechange()
1152 if (zfcp_erp_strat_change_det(&port->status, erp_status)) { zfcp_erp_strategy_statechange()
1162 if (zfcp_erp_strat_change_det(&zfcp_sdev->status, erp_status)) { zfcp_erp_strategy_statechange()
1179 if (erp_action->status & ZFCP_STATUS_ERP_LOWMEM) { zfcp_erp_action_dequeue()
1181 erp_action->status &= ~ZFCP_STATUS_ERP_LOWMEM; zfcp_erp_action_dequeue()
1191 &zfcp_sdev->status); zfcp_erp_action_dequeue()
1197 &erp_action->port->status); zfcp_erp_action_dequeue()
1202 &erp_action->adapter->status); zfcp_erp_action_dequeue()
1215 if (!(act->status & ZFCP_STATUS_ERP_NO_REF)) zfcp_erp_action_cleanup()
1266 if (erp_action->status & ZFCP_STATUS_ERP_DISMISSED) { zfcp_erp_strategy()
1272 if (erp_action->status & ZFCP_STATUS_ERP_TIMEDOUT) { zfcp_erp_strategy()
1284 if (erp_action->status & ZFCP_STATUS_ERP_DISMISSED) zfcp_erp_strategy()
1289 if (!(erp_action->status & ZFCP_STATUS_ERP_LOWMEM)) { zfcp_erp_strategy()
1291 erp_action->status |= ZFCP_STATUS_ERP_LOWMEM; zfcp_erp_strategy()
1302 if (erp_action->status & ZFCP_STATUS_ERP_LOWMEM) { zfcp_erp_strategy()
1304 erp_action->status &= ~ZFCP_STATUS_ERP_LOWMEM; zfcp_erp_strategy()
1407 !(atomic_read(&adapter->status) & zfcp_erp_wait()
1412 * zfcp_erp_set_adapter_status - set adapter status bits
1413 * @adapter: adapter to change the status
1414 * @mask: status bits to change
1416 * Changes in common status bits are propagated to attached ports and LUNs.
1425 atomic_or(mask, &adapter->status); zfcp_erp_set_adapter_status()
1432 atomic_or(common_mask, &port->status); zfcp_erp_set_adapter_status()
1437 atomic_or(common_mask, &sdev_to_zfcp(sdev)->status); zfcp_erp_set_adapter_status()
1442 * zfcp_erp_clear_adapter_status - clear adapter status bits
1443 * @adapter: adapter to change the status
1444 * @mask: status bits to change
1446 * Changes in common status bits are propagated to attached ports and LUNs.
1456 atomic_andnot(mask, &adapter->status); zfcp_erp_clear_adapter_status()
1466 atomic_andnot(common_mask, &port->status); zfcp_erp_clear_adapter_status()
1474 atomic_andnot(common_mask, &sdev_to_zfcp(sdev)->status); zfcp_erp_clear_adapter_status()
1482 * zfcp_erp_set_port_status - set port status bits
1483 * @port: port to change the status
1484 * @mask: status bits to change
1486 * Changes in common status bits are propagated to attached LUNs.
1494 atomic_or(mask, &port->status); zfcp_erp_set_port_status()
1503 &sdev_to_zfcp(sdev)->status); zfcp_erp_set_port_status()
1508 * zfcp_erp_clear_port_status - clear port status bits
1509 * @port: adapter to change the status
1510 * @mask: status bits to change
1512 * Changes in common status bits are propagated to attached LUNs.
1521 atomic_andnot(mask, &port->status); zfcp_erp_clear_port_status()
1533 &sdev_to_zfcp(sdev)->status); zfcp_erp_clear_port_status()
1541 * zfcp_erp_set_lun_status - set lun status bits
1542 * @sdev: SCSI device / lun to set the status bits
1543 * @mask: status bits to change
1549 atomic_or(mask, &zfcp_sdev->status); zfcp_erp_set_lun_status()
1553 * zfcp_erp_clear_lun_status - clear lun status bits
1554 * @sdev: SCSi device / lun to clear the status bits
1555 * @mask: status bits to change
1561 atomic_andnot(mask, &zfcp_sdev->status); zfcp_erp_clear_lun_status()
/linux-4.4.14/drivers/staging/rtl8723au/os_dep/
H A Dusb_ops_linux.c72 if (purb->status) { usb_write_port23a_complete()
74 "usb_write_port23a_complete : purb->status(%d) != 0\n", usb_write_port23a_complete()
75 purb->status); usb_write_port23a_complete()
76 DBG_8723A("###=> urb_write_port_complete status(%d)\n", usb_write_port23a_complete()
77 purb->status); usb_write_port23a_complete()
78 if (purb->status == -EPIPE || purb->status == -EPROTO) { usb_write_port23a_complete()
79 } else if (purb->status == -EINPROGRESS) { usb_write_port23a_complete()
83 } else if (purb->status == -ENOENT) { usb_write_port23a_complete()
86 } else if (purb->status == -ECONNRESET) { usb_write_port23a_complete()
89 } else if (purb->status == -ESHUTDOWN) { usb_write_port23a_complete()
110 purb->status ? RTW_SCTX_DONE_WRITE_PORT_ERR : usb_write_port23a_complete()
129 int status; rtl8723au_write_port() local
179 status = usb_submit_urb(purb, GFP_ATOMIC); rtl8723au_write_port()
180 if (!status) { rtl8723au_write_port()
186 DBG_8723A("usb_write_port23a, status =%d\n", status); rtl8723au_write_port()
188 "usb_write_port23a(): usb_submit_urb, status =%x\n", rtl8723au_write_port()
189 status); rtl8723au_write_port()
191 switch (status) { rtl8723au_write_port()
/linux-4.4.14/drivers/net/ethernet/amd/
H A Dhplance.h8 #define HPLANCE_STATUS 0x03 /* DIO register: interrupt enable/status */
10 /* Control and status bits for the status register */
13 #define LE_LOCK 0x08 /* lock status register */
16 /* We can also extract the IPL from the status register with the standard
/linux-4.4.14/samples/bpf/
H A Dtracex6_user.c20 int status, i; test_bpf_perf_event() local
43 status = system("ls > /dev/null"); test_bpf_perf_event()
44 if (status) test_bpf_perf_event()
46 status = system("sleep 2"); test_bpf_perf_event()
47 if (status) test_bpf_perf_event()
/linux-4.4.14/tools/testing/selftests/powerpc/pmu/ebb/
H A Dreg.h29 #define SPRN_BESCR 806 /* Branch event status & control register */
30 #define SPRN_BESCRS 800 /* Branch event status & control set (1 bits set to 1) */
31 #define SPRN_BESCRSU 801 /* Branch event status & control set upper */
32 #define SPRN_BESCRR 802 /* Branch event status & control REset (1 bits set to 0) */
33 #define SPRN_BESCRRU 803 /* Branch event status & control REset upper */
/linux-4.4.14/drivers/platform/x86/
H A Dmxm-wmi.c52 acpi_status status; mxm_wmi_call_mxds() local
56 status = wmi_evaluate_method(MXM_WMMX_GUID, 0x1, adapter, &input, mxm_wmi_call_mxds()
59 if (ACPI_FAILURE(status)) mxm_wmi_call_mxds()
60 return status; mxm_wmi_call_mxds()
62 printk("mux switched %d\n", status); mxm_wmi_call_mxds()
77 acpi_status status; mxm_wmi_call_mxmx() local
81 status = wmi_evaluate_method(MXM_WMMX_GUID, 0x1, adapter, &input, mxm_wmi_call_mxmx()
84 if (ACPI_FAILURE(status)) mxm_wmi_call_mxmx()
85 return status; mxm_wmi_call_mxmx()
87 printk("mux mutex set switched %d\n", status); mxm_wmi_call_mxmx()
H A Dintel-rst.c33 acpi_status status; irst_show_wakeup_events() local
37 status = acpi_evaluate_integer(acpi->handle, "GFFS", NULL, &value); irst_show_wakeup_events()
38 if (ACPI_FAILURE(status)) irst_show_wakeup_events()
49 acpi_status status; irst_store_wakeup_events() local
60 status = acpi_execute_simple_method(acpi->handle, "SFFS", value); irst_store_wakeup_events()
62 if (ACPI_FAILURE(status)) irst_store_wakeup_events()
79 acpi_status status; irst_show_wakeup_time() local
83 status = acpi_evaluate_integer(acpi->handle, "GFTV", NULL, &value); irst_show_wakeup_time()
84 if (ACPI_FAILURE(status)) irst_show_wakeup_time()
95 acpi_status status; irst_store_wakeup_time() local
106 status = acpi_execute_simple_method(acpi->handle, "SFTV", value); irst_store_wakeup_time()
108 if (ACPI_FAILURE(status)) irst_store_wakeup_time()
H A Dtoshiba-wmi.c48 acpi_status status; toshiba_wmi_notify() local
50 status = wmi_get_event_data(value, &response); toshiba_wmi_notify()
51 if (ACPI_FAILURE(status)) { toshiba_wmi_notify()
52 pr_err("Bad event status 0x%x\n", status); toshiba_wmi_notify()
68 acpi_status status; toshiba_wmi_input_setup() local
84 status = wmi_install_notify_handler(TOSHIBA_WMI_EVENT_GUID, toshiba_wmi_input_setup()
86 if (ACPI_FAILURE(status)) { toshiba_wmi_input_setup()
H A Dintel_menlow.c71 acpi_status status = AE_OK; memory_get_max_bandwidth() local
77 status = acpi_evaluate_integer(handle, MEMORY_GET_BANDWIDTH, memory_get_max_bandwidth()
79 if (ACPI_FAILURE(status)) memory_get_max_bandwidth()
97 acpi_status status = AE_OK; memory_get_cur_bandwidth() local
103 status = acpi_evaluate_integer(handle, MEMORY_GET_BANDWIDTH, memory_get_cur_bandwidth()
105 if (ACPI_FAILURE(status)) memory_get_cur_bandwidth()
119 acpi_status status; memory_set_cur_bandwidth() local
134 status = memory_set_cur_bandwidth()
138 pr_info("Bandwidth value was %ld: status is %d\n", state, status); memory_set_cur_bandwidth()
139 if (ACPI_FAILURE(status)) memory_set_cur_bandwidth()
255 acpi_status status; sensor_get_auxtrip() local
260 status = acpi_evaluate_integer(handle, index ? GET_AUX1 : GET_AUX0, sensor_get_auxtrip()
262 if (ACPI_FAILURE(status)) sensor_get_auxtrip()
276 acpi_status status; sensor_set_auxtrip() local
288 status = acpi_evaluate_integer(handle, index ? GET_AUX0 : GET_AUX1, sensor_set_auxtrip()
290 if (ACPI_FAILURE(status)) sensor_set_auxtrip()
296 status = acpi_evaluate_integer(handle, index ? SET_AUX1 : SET_AUX0, sensor_set_auxtrip()
298 if (ACPI_FAILURE(status)) sensor_set_auxtrip()
376 acpi_status status; bios_enabled_show() local
379 status = acpi_evaluate_integer(NULL, BIOS_ENABLED, NULL, &bios_enabled); bios_enabled_show()
380 if (ACPI_FAILURE(status)) bios_enabled_show()
421 acpi_status status; intel_menlow_register_sensor() local
431 status = acpi_get_handle(handle, GET_AUX0, &dummy); intel_menlow_register_sensor()
432 if (ACPI_FAILURE(status)) intel_menlow_register_sensor()
433 return (status == AE_NOT_FOUND) ? AE_OK : status; intel_menlow_register_sensor()
435 status = acpi_get_handle(handle, SET_AUX0, &dummy); intel_menlow_register_sensor()
436 if (ACPI_FAILURE(status)) intel_menlow_register_sensor()
437 return (status == AE_NOT_FOUND) ? AE_OK : status; intel_menlow_register_sensor()
445 status = acpi_get_handle(handle, GET_AUX1, &dummy); intel_menlow_register_sensor()
446 if (ACPI_FAILURE(status)) intel_menlow_register_sensor()
449 status = acpi_get_handle(handle, SET_AUX1, &dummy); intel_menlow_register_sensor()
450 if (ACPI_FAILURE(status)) intel_menlow_register_sensor()
477 if (status == AE_NOT_FOUND) intel_menlow_register_sensor()
481 return status; intel_menlow_register_sensor()
502 acpi_status status; intel_menlow_module_init() local
509 status = acpi_evaluate_integer(NULL, BIOS_ENABLED, NULL, &enable); intel_menlow_module_init()
510 if (ACPI_FAILURE(status) || !enable) intel_menlow_module_init()
519 status = acpi_walk_namespace(ACPI_TYPE_THERMAL, ACPI_ROOT_OBJECT, intel_menlow_module_init()
522 if (ACPI_FAILURE(status)) { intel_menlow_module_init()
/linux-4.4.14/drivers/video/fbdev/
H A Dsmscufx.c37 #define check_warn(status, fmt, args...) \
38 ({ if (status < 0) pr_warn(fmt, ##args); })
40 #define check_warn_return(status, fmt, args...) \
41 ({ if (status < 0) { pr_warn(fmt, ##args); return status; } })
43 #define check_warn_goto_error(status, fmt, args...) \
44 ({ if (status < 0) { pr_warn(fmt, ##args); goto error; } })
201 int status = ufx_reg_read(dev, index, &data); ufx_reg_clear_and_set_bits() local
202 check_warn_return(status, "ufx_reg_clear_and_set_bits error reading " ufx_reg_clear_and_set_bits()
208 status = ufx_reg_write(dev, index, data); ufx_reg_clear_and_set_bits()
209 check_warn_return(status, "ufx_reg_clear_and_set_bits error writing " ufx_reg_clear_and_set_bits()
227 int status; ufx_lite_reset() local
230 status = ufx_reg_write(dev, 0x3008, 0x00000001); ufx_lite_reset()
231 check_warn_return(status, "ufx_lite_reset error writing 0x3008"); ufx_lite_reset()
233 status = ufx_reg_read(dev, 0x3008, &value); ufx_lite_reset()
234 check_warn_return(status, "ufx_lite_reset error reading 0x3008"); ufx_lite_reset()
245 int status = ufx_reg_read(dev, 0x2004, &dc_sts); ufx_blank() local
246 check_warn_return(status, "ufx_blank error reading 0x2004"); ufx_blank()
248 status = ufx_reg_read(dev, 0x2000, &dc_ctrl); ufx_blank()
249 check_warn_return(status, "ufx_blank error reading 0x2000"); ufx_blank()
257 status = ufx_reg_write(dev, 0x2000, dc_ctrl); ufx_blank()
258 check_warn_return(status, "ufx_blank error writing 0x2000"); ufx_blank()
265 status = ufx_reg_read(dev, 0x2004, &dc_sts); ufx_blank()
266 check_warn_return(status, "ufx_blank error reading 0x2004"); ufx_blank()
282 int status = ufx_reg_read(dev, 0x2004, &dc_sts); ufx_unblank() local
283 check_warn_return(status, "ufx_unblank error reading 0x2004"); ufx_unblank()
285 status = ufx_reg_read(dev, 0x2000, &dc_ctrl); ufx_unblank()
286 check_warn_return(status, "ufx_unblank error reading 0x2000"); ufx_unblank()
294 status = ufx_reg_write(dev, 0x2000, dc_ctrl); ufx_unblank()
295 check_warn_return(status, "ufx_unblank error writing 0x2000"); ufx_unblank()
302 status = ufx_reg_read(dev, 0x2004, &dc_sts); ufx_unblank()
303 check_warn_return(status, "ufx_unblank error reading 0x2004"); ufx_unblank()
319 int status = ufx_reg_read(dev, 0x2004, &dc_sts); ufx_disable() local
320 check_warn_return(status, "ufx_disable error reading 0x2004"); ufx_disable()
322 status = ufx_reg_read(dev, 0x2000, &dc_ctrl); ufx_disable()
323 check_warn_return(status, "ufx_disable error reading 0x2000"); ufx_disable()
331 status = ufx_reg_write(dev, 0x2000, dc_ctrl); ufx_disable()
332 check_warn_return(status, "ufx_disable error writing 0x2000"); ufx_disable()
339 status = ufx_reg_read(dev, 0x2004, &dc_sts); ufx_disable()
340 check_warn_return(status, "ufx_disable error reading 0x2004"); ufx_disable()
356 int status = ufx_reg_read(dev, 0x2004, &dc_sts); ufx_enable() local
357 check_warn_return(status, "ufx_enable error reading 0x2004"); ufx_enable()
359 status = ufx_reg_read(dev, 0x2000, &dc_ctrl); ufx_enable()
360 check_warn_return(status, "ufx_enable error reading 0x2000"); ufx_enable()
368 status = ufx_reg_write(dev, 0x2000, dc_ctrl); ufx_enable()
369 check_warn_return(status, "ufx_enable error writing 0x2000"); ufx_enable()
376 status = ufx_reg_read(dev, 0x2004, &dc_sts); ufx_enable()
377 check_warn_return(status, "ufx_enable error reading 0x2004"); ufx_enable()
389 int status = ufx_reg_write(dev, 0x700C, 0x8000000F); ufx_config_sys_clk() local
390 check_warn_return(status, "error writing 0x700C"); ufx_config_sys_clk()
392 status = ufx_reg_write(dev, 0x7014, 0x0010024F); ufx_config_sys_clk()
393 check_warn_return(status, "error writing 0x7014"); ufx_config_sys_clk()
395 status = ufx_reg_write(dev, 0x7010, 0x00000000); ufx_config_sys_clk()
396 check_warn_return(status, "error writing 0x7010"); ufx_config_sys_clk()
398 status = ufx_reg_clear_bits(dev, 0x700C, 0x0000000A); ufx_config_sys_clk()
399 check_warn_return(status, "error clearing PLL1 bypass in 0x700C"); ufx_config_sys_clk()
402 status = ufx_reg_clear_bits(dev, 0x700C, 0x80000000); ufx_config_sys_clk()
403 check_warn_return(status, "error clearing output gate in 0x700C"); ufx_config_sys_clk()
410 int status, i = 0; ufx_config_ddr2() local
413 status = ufx_reg_write(dev, 0x0004, 0x001F0F77); ufx_config_ddr2()
414 check_warn_return(status, "error writing 0x0004"); ufx_config_ddr2()
416 status = ufx_reg_write(dev, 0x0008, 0xFFF00000); ufx_config_ddr2()
417 check_warn_return(status, "error writing 0x0008"); ufx_config_ddr2()
419 status = ufx_reg_write(dev, 0x000C, 0x0FFF2222); ufx_config_ddr2()
420 check_warn_return(status, "error writing 0x000C"); ufx_config_ddr2()
422 status = ufx_reg_write(dev, 0x0010, 0x00030814); ufx_config_ddr2()
423 check_warn_return(status, "error writing 0x0010"); ufx_config_ddr2()
425 status = ufx_reg_write(dev, 0x0014, 0x00500019); ufx_config_ddr2()
426 check_warn_return(status, "error writing 0x0014"); ufx_config_ddr2()
428 status = ufx_reg_write(dev, 0x0018, 0x020D0F15); ufx_config_ddr2()
429 check_warn_return(status, "error writing 0x0018"); ufx_config_ddr2()
431 status = ufx_reg_write(dev, 0x001C, 0x02532305); ufx_config_ddr2()
432 check_warn_return(status, "error writing 0x001C"); ufx_config_ddr2()
434 status = ufx_reg_write(dev, 0x0020, 0x0B030905); ufx_config_ddr2()
435 check_warn_return(status, "error writing 0x0020"); ufx_config_ddr2()
437 status = ufx_reg_write(dev, 0x0024, 0x00000827); ufx_config_ddr2()
438 check_warn_return(status, "error writing 0x0024"); ufx_config_ddr2()
440 status = ufx_reg_write(dev, 0x0028, 0x00000000); ufx_config_ddr2()
441 check_warn_return(status, "error writing 0x0028"); ufx_config_ddr2()
443 status = ufx_reg_write(dev, 0x002C, 0x00000042); ufx_config_ddr2()
444 check_warn_return(status, "error writing 0x002C"); ufx_config_ddr2()
446 status = ufx_reg_write(dev, 0x0030, 0x09520000); ufx_config_ddr2()
447 check_warn_return(status, "error writing 0x0030"); ufx_config_ddr2()
449 status = ufx_reg_write(dev, 0x0034, 0x02223314); ufx_config_ddr2()
450 check_warn_return(status, "error writing 0x0034"); ufx_config_ddr2()
452 status = ufx_reg_write(dev, 0x0038, 0x00430043); ufx_config_ddr2()
453 check_warn_return(status, "error writing 0x0038"); ufx_config_ddr2()
455 status = ufx_reg_write(dev, 0x003C, 0xF00F000F); ufx_config_ddr2()
456 check_warn_return(status, "error writing 0x003C"); ufx_config_ddr2()
458 status = ufx_reg_write(dev, 0x0040, 0xF380F00F); ufx_config_ddr2()
459 check_warn_return(status, "error writing 0x0040"); ufx_config_ddr2()
461 status = ufx_reg_write(dev, 0x0044, 0xF00F0496); ufx_config_ddr2()
462 check_warn_return(status, "error writing 0x0044"); ufx_config_ddr2()
464 status = ufx_reg_write(dev, 0x0048, 0x03080406); ufx_config_ddr2()
465 check_warn_return(status, "error writing 0x0048"); ufx_config_ddr2()
467 status = ufx_reg_write(dev, 0x004C, 0x00001000); ufx_config_ddr2()
468 check_warn_return(status, "error writing 0x004C"); ufx_config_ddr2()
470 status = ufx_reg_write(dev, 0x005C, 0x00000007); ufx_config_ddr2()
471 check_warn_return(status, "error writing 0x005C"); ufx_config_ddr2()
473 status = ufx_reg_write(dev, 0x0100, 0x54F00012); ufx_config_ddr2()
474 check_warn_return(status, "error writing 0x0100"); ufx_config_ddr2()
476 status = ufx_reg_write(dev, 0x0104, 0x00004012); ufx_config_ddr2()
477 check_warn_return(status, "error writing 0x0104"); ufx_config_ddr2()
479 status = ufx_reg_write(dev, 0x0118, 0x40404040); ufx_config_ddr2()
480 check_warn_return(status, "error writing 0x0118"); ufx_config_ddr2()
482 status = ufx_reg_write(dev, 0x0000, 0x00000001); ufx_config_ddr2()
483 check_warn_return(status, "error writing 0x0000"); ufx_config_ddr2()
486 status = ufx_reg_read(dev, 0x0000, &tmp); ufx_config_ddr2()
487 check_warn_return(status, "error reading 0x0000"); ufx_config_ddr2()
620 int status; ufx_config_pix_clk() local
632 status = ufx_reg_write(dev, 0x7000, 0x8000000F); ufx_config_pix_clk()
633 check_warn_return(status, "error writing 0x7000"); ufx_config_pix_clk()
637 status = ufx_reg_write(dev, 0x7008, value); ufx_config_pix_clk()
638 check_warn_return(status, "error writing 0x7008"); ufx_config_pix_clk()
642 status = ufx_reg_write(dev, 0x7004, value); ufx_config_pix_clk()
643 check_warn_return(status, "error writing 0x7004"); ufx_config_pix_clk()
645 status = ufx_reg_clear_bits(dev, 0x7000, 0x00000005); ufx_config_pix_clk()
646 check_warn_return(status, ufx_config_pix_clk()
650 status = ufx_reg_clear_bits(dev, 0x7000, 0x0000000A); ufx_config_pix_clk()
651 check_warn_return(status, ufx_config_pix_clk()
655 status = ufx_reg_clear_bits(dev, 0x7000, 0x80000000); ufx_config_pix_clk()
656 check_warn_return(status, "error clearing gate bits in 0x7000"); ufx_config_pix_clk()
667 int status = ufx_reg_write(dev, 0x8028, 0); ufx_set_vid_mode() local
668 check_warn_return(status, "ufx_set_vid_mode error disabling RGB pad"); ufx_set_vid_mode()
670 status = ufx_reg_write(dev, 0x8024, 0); ufx_set_vid_mode()
671 check_warn_return(status, "ufx_set_vid_mode error disabling VDAC"); ufx_set_vid_mode()
674 status = ufx_blank(dev, true); ufx_set_vid_mode()
675 check_warn_return(status, "ufx_set_vid_mode error blanking display"); ufx_set_vid_mode()
677 status = ufx_disable(dev, true); ufx_set_vid_mode()
678 check_warn_return(status, "ufx_set_vid_mode error disabling display"); ufx_set_vid_mode()
680 status = ufx_config_pix_clk(dev, var->pixclock); ufx_set_vid_mode()
681 check_warn_return(status, "ufx_set_vid_mode error configuring pixclock"); ufx_set_vid_mode()
683 status = ufx_reg_write(dev, 0x2000, 0x00000104); ufx_set_vid_mode()
684 check_warn_return(status, "ufx_set_vid_mode error writing 0x2000"); ufx_set_vid_mode()
695 status = ufx_reg_write(dev, 0x2008, temp); ufx_set_vid_mode()
696 check_warn_return(status, "ufx_set_vid_mode error writing 0x2008"); ufx_set_vid_mode()
699 status = ufx_reg_write(dev, 0x200C, temp); ufx_set_vid_mode()
700 check_warn_return(status, "ufx_set_vid_mode error writing 0x200C"); ufx_set_vid_mode()
703 status = ufx_reg_write(dev, 0x2010, temp); ufx_set_vid_mode()
704 check_warn_return(status, "ufx_set_vid_mode error writing 0x2010"); ufx_set_vid_mode()
715 status = ufx_reg_write(dev, 0x2014, temp); ufx_set_vid_mode()
716 check_warn_return(status, "ufx_set_vid_mode error writing 0x2014"); ufx_set_vid_mode()
719 status = ufx_reg_write(dev, 0x2018, temp); ufx_set_vid_mode()
720 check_warn_return(status, "ufx_set_vid_mode error writing 0x2018"); ufx_set_vid_mode()
723 status = ufx_reg_write(dev, 0x201C, temp); ufx_set_vid_mode()
724 check_warn_return(status, "ufx_set_vid_mode error writing 0x201C"); ufx_set_vid_mode()
726 status = ufx_reg_write(dev, 0x2020, 0x00000000); ufx_set_vid_mode()
727 check_warn_return(status, "ufx_set_vid_mode error writing 0x2020"); ufx_set_vid_mode()
729 status = ufx_reg_write(dev, 0x2024, 0x00000000); ufx_set_vid_mode()
730 check_warn_return(status, "ufx_set_vid_mode error writing 0x2024"); ufx_set_vid_mode()
735 status = ufx_reg_write(dev, 0x2028, temp); ufx_set_vid_mode()
736 check_warn_return(status, "ufx_set_vid_mode error writing 0x2028"); ufx_set_vid_mode()
739 status = ufx_reg_write(dev, 0x2040, 0); ufx_set_vid_mode()
740 check_warn_return(status, "ufx_set_vid_mode error writing 0x2040"); ufx_set_vid_mode()
742 status = ufx_reg_write(dev, 0x2044, 0); ufx_set_vid_mode()
743 check_warn_return(status, "ufx_set_vid_mode error writing 0x2044"); ufx_set_vid_mode()
745 status = ufx_reg_write(dev, 0x2048, 0); ufx_set_vid_mode()
746 check_warn_return(status, "ufx_set_vid_mode error writing 0x2048"); ufx_set_vid_mode()
756 status = ufx_reg_write(dev, 0x2040, temp); ufx_set_vid_mode()
757 check_warn_return(status, "ufx_set_vid_mode error writing 0x2040"); ufx_set_vid_mode()
760 status = ufx_enable(dev, true); ufx_set_vid_mode()
761 check_warn_return(status, "ufx_set_vid_mode error enabling display"); ufx_set_vid_mode()
764 status = ufx_unblank(dev, true); ufx_set_vid_mode()
765 check_warn_return(status, "ufx_set_vid_mode error unblanking display"); ufx_set_vid_mode()
768 status = ufx_reg_write(dev, 0x8028, 0x00000003); ufx_set_vid_mode()
769 check_warn_return(status, "ufx_set_vid_mode error enabling RGB pad"); ufx_set_vid_mode()
772 status = ufx_reg_write(dev, 0x8024, 0x00000007); ufx_set_vid_mode()
773 check_warn_return(status, "ufx_set_vid_mode error enabling VDAC"); ufx_set_vid_mode()
856 int len, status, urb_lines, start_line = 0; ufx_handle_damage() local
887 status = ufx_submit_urb(dev, urb, len); ufx_handle_damage()
888 check_warn_return(status, "Error submitting URB"); ufx_handle_damage()
1341 int status = ufx_reg_write(dev, 0x106C, 0x00); ufx_i2c_init() local
1342 check_warn_return(status, "failed to disable I2C"); ufx_i2c_init()
1346 status = ufx_reg_write(dev, 0x1018, 12); ufx_i2c_init()
1347 check_warn_return(status, "error writing 0x1018"); ufx_i2c_init()
1350 status = ufx_reg_write(dev, 0x1014, 6); ufx_i2c_init()
1351 check_warn_return(status, "error writing 0x1014"); ufx_i2c_init()
1353 status = ufx_reg_read(dev, 0x1000, &tmp); ufx_i2c_init()
1354 check_warn_return(status, "error reading 0x1000"); ufx_i2c_init()
1366 status = ufx_reg_write(dev, 0x1000, tmp); ufx_i2c_init()
1367 check_warn_return(status, "error writing 0x1000"); ufx_i2c_init()
1370 status = ufx_reg_clear_and_set_bits(dev, 0x1004, 0xC00, 0x000); ufx_i2c_init()
1371 check_warn_return(status, "error setting TX mode bits in 0x1004"); ufx_i2c_init()
1374 status = ufx_reg_write(dev, 0x106C, 0x01); ufx_i2c_init()
1375 check_warn_return(status, "failed to enable I2C"); ufx_i2c_init()
1383 int status = ufx_reg_write(dev, 0x106C, 0x00); ufx_i2c_configure() local
1384 check_warn_return(status, "failed to disable I2C"); ufx_i2c_configure()
1386 status = ufx_reg_write(dev, 0x3010, 0x00000000); ufx_i2c_configure()
1387 check_warn_return(status, "failed to write 0x3010"); ufx_i2c_configure()
1390 status = ufx_reg_clear_and_set_bits(dev, 0x1004, 0x3FF, (0xA0 >> 1)); ufx_i2c_configure()
1391 check_warn_return(status, "failed to set TAR bits in 0x1004"); ufx_i2c_configure()
1393 status = ufx_reg_write(dev, 0x106C, 0x01); ufx_i2c_configure()
1394 check_warn_return(status, "failed to enable I2C"); ufx_i2c_configure()
1404 int i, status; ufx_i2c_wait_busy() local
1407 status = ufx_reg_read(dev, 0x1100, &tmp); ufx_i2c_wait_busy()
1408 check_warn_return(status, "0x1100 read failed"); ufx_i2c_wait_busy()
1426 status = ufx_reg_write(dev, 0x1100, 0x40000000); ufx_i2c_wait_busy()
1427 check_warn_return(status, "0x1100 write failed"); ufx_i2c_wait_busy()
1435 int i, j, status; ufx_read_edid() local
1440 status = ufx_i2c_configure(dev); ufx_read_edid()
1441 if (status < 0) { ufx_read_edid()
1443 return status; ufx_read_edid()
1451 status = ufx_reg_write(dev, 0x1100, temp); ufx_read_edid()
1452 check_warn_return(status, "Failed to write 0x1100"); ufx_read_edid()
1455 status = ufx_reg_write(dev, 0x1100, temp); ufx_read_edid()
1456 check_warn_return(status, "Failed to write 0x1100"); ufx_read_edid()
1458 status = ufx_i2c_wait_busy(dev); ufx_read_edid()
1459 check_warn_return(status, "Timeout waiting for I2C BUSY to clear"); ufx_read_edid()
1463 status = ufx_reg_read(dev, data_reg_addr, edid_u32++); ufx_read_edid()
1464 check_warn_return(status, "Error reading i2c data"); ufx_read_edid()
1805 if (urb->status) { ufx_urb_completion()
1806 if (!(urb->status == -ENOENT || ufx_urb_completion()
1807 urb->status == -ECONNRESET || ufx_urb_completion()
1808 urb->status == -ESHUTDOWN)) { ufx_urb_completion()
1809 pr_err("%s - nonzero write bulk status received: %d\n", ufx_urb_completion()
1810 __func__, urb->status); ufx_urb_completion()
/linux-4.4.14/drivers/media/pci/saa7134/
H A Dsaa7134-i2c.c73 DONE_WRITE_TO = 7, // see 5, and time out on status echo
74 DONE_READ_TO = 8, // see 6, and time out on status echo
80 ST_ERR = 14, // wrong status echoing
97 enum i2c_status status; i2c_get_status() local
99 status = saa_readb(SAA7134_I2C_ATTR_STATUS) & 0x0f; i2c_get_status()
100 i2c_dbg(2, "i2c stat <= %s\n", str_i2c_status[status]); i2c_get_status()
101 return status; i2c_get_status()
105 enum i2c_status status) i2c_set_status()
107 i2c_dbg(2, "i2c stat => %s\n", str_i2c_status[status]); i2c_set_status()
108 saa_andorb(SAA7134_I2C_ATTR_STATUS,0x0f,status); i2c_set_status()
117 static inline int i2c_is_error(enum i2c_status status) i2c_is_error() argument
119 switch (status) { i2c_is_error()
132 static inline int i2c_is_idle(enum i2c_status status) i2c_is_idle() argument
134 switch (status) { i2c_is_idle()
143 static inline int i2c_is_busy(enum i2c_status status) i2c_is_busy() argument
145 switch (status) { i2c_is_busy()
157 enum i2c_status status; i2c_is_busy_wait() local
161 status = i2c_get_status(dev); i2c_is_busy_wait()
162 if (!i2c_is_busy(status)) i2c_is_busy_wait()
173 enum i2c_status status; i2c_reset() local
177 status = i2c_get_status(dev); i2c_reset()
178 if (!i2c_is_error(status)) i2c_reset()
180 i2c_set_status(dev,status); i2c_reset()
183 status = i2c_get_status(dev); i2c_reset()
184 if (!i2c_is_error(status)) i2c_reset()
191 if (!i2c_is_idle(status)) i2c_reset()
202 enum i2c_status status; i2c_send_byte() local
218 status = i2c_get_status(dev); i2c_send_byte()
219 if (i2c_is_error(status)) i2c_send_byte()
226 enum i2c_status status; i2c_recv_byte() local
232 status = i2c_get_status(dev); i2c_recv_byte()
233 if (i2c_is_error(status)) i2c_recv_byte()
244 enum i2c_status status; saa7134_i2c_xfer() local
248 status = i2c_get_status(dev); saa7134_i2c_xfer()
249 if (!i2c_is_idle(status)) saa7134_i2c_xfer()
318 status = i2c_get_status(dev); saa7134_i2c_xfer()
319 if (i2c_is_error(status)) saa7134_i2c_xfer()
328 status = i2c_get_status(dev); saa7134_i2c_xfer()
329 i2c_cont(1, " ERROR: %s\n", str_i2c_status[status]); saa7134_i2c_xfer()
104 i2c_set_status(struct saa7134_dev *dev, enum i2c_status status) i2c_set_status() argument
/linux-4.4.14/drivers/media/usb/stkwebcam/
H A Dstk-webcam.h75 #define is_present(dev) ((dev)->status & S_PRESENT)
76 #define is_initialised(dev) ((dev)->status & S_INITIALISED)
77 #define is_streaming(dev) ((dev)->status & S_STREAMING)
78 #define is_memallocd(dev) ((dev)->status & S_MEMALLOCD)
79 #define set_present(dev) ((dev)->status = S_PRESENT)
80 #define unset_present(dev) ((dev)->status &= \
82 #define set_initialised(dev) ((dev)->status |= S_INITIALISED)
83 #define unset_initialised(dev) ((dev)->status &= ~S_INITIALISED)
84 #define set_memallocd(dev) ((dev)->status |= S_MEMALLOCD)
85 #define unset_memallocd(dev) ((dev)->status &= ~S_MEMALLOCD)
86 #define set_streaming(dev) ((dev)->status |= S_STREAMING)
87 #define unset_streaming(dev) ((dev)->status &= ~S_STREAMING)
112 enum stk_status status; member in struct:stk_camera
/linux-4.4.14/drivers/gpio/
H A Dgpiolib-sysfs.c61 ssize_t status; direction_show() local
66 status = sprintf(buf, "%s\n", direction_show()
72 return status; direction_show()
80 ssize_t status; direction_store() local
85 status = gpiod_direction_output_raw(desc, 1); direction_store()
87 status = gpiod_direction_output_raw(desc, 0); direction_store()
89 status = gpiod_direction_input(desc); direction_store()
91 status = -EINVAL; direction_store()
95 return status ? : size; direction_store()
104 ssize_t status; value_show() local
108 status = sprintf(buf, "%d\n", gpiod_get_value_cansleep(desc)); value_show()
112 return status; value_show()
120 ssize_t status; value_store() local
125 status = -EPERM; value_store()
129 status = kstrtol(buf, 0, &value); value_store()
130 if (status == 0) { value_store()
132 status = size; value_store()
138 return status; value_store()
233 ssize_t status = 0; edge_show() local
240 status = sprintf(buf, "%s\n", trigger_types[i].name); edge_show()
247 return status; edge_show()
255 ssize_t status = size; edge_store() local
271 status = size; edge_store()
279 status = gpio_sysfs_request_irq(dev, flags); edge_store()
280 if (!status) edge_store()
281 status = size; edge_store()
287 return status; edge_store()
296 int status = 0; gpio_sysfs_set_active_low() local
311 status = gpio_sysfs_request_irq(dev, flags); gpio_sysfs_set_active_low()
314 return status; gpio_sysfs_set_active_low()
322 ssize_t status; active_low_show() local
326 status = sprintf(buf, "%d\n", active_low_show()
331 return status; active_low_show()
338 ssize_t status; active_low_store() local
343 status = kstrtol(buf, 0, &value); active_low_store()
344 if (status == 0) active_low_store()
345 status = gpio_sysfs_set_active_low(dev, value); active_low_store()
349 return status ? : size; active_low_store()
447 int status; export_store() local
449 status = kstrtol(buf, 0, &gpio); export_store()
450 if (status < 0) export_store()
465 status = gpiod_request(desc, "sysfs"); export_store()
466 if (status < 0) { export_store()
467 if (status == -EPROBE_DEFER) export_store()
468 status = -ENODEV; export_store()
471 status = gpiod_export(desc, true); export_store()
472 if (status < 0) export_store()
478 if (status) export_store()
479 pr_debug("%s: status %d\n", __func__, status); export_store()
480 return status ? : len; export_store()
489 int status; unexport_store() local
491 status = kstrtol(buf, 0, &gpio); unexport_store()
492 if (status < 0) unexport_store()
502 status = -EINVAL; unexport_store()
509 status = 0; unexport_store()
513 if (status) unexport_store()
514 pr_debug("%s: status %d\n", __func__, status); unexport_store()
515 return status ? : len; unexport_store()
552 int status; gpiod_export() local
574 status = -ENODEV; gpiod_export()
586 status = -EPERM; gpiod_export()
593 status = -ENOMEM; gpiod_export()
613 status = PTR_ERR(dev); gpiod_export()
625 gpiod_dbg(desc, "%s: status %d\n", __func__, status); gpiod_export()
626 return status; gpiod_export()
771 int status; gpiolib_sysfs_init() local
775 status = class_register(&gpio_class); gpiolib_sysfs_init()
776 if (status < 0) gpiolib_sysfs_init()
777 return status; gpiolib_sysfs_init()
800 status = gpiochip_sysfs_register(chip); gpiolib_sysfs_init()
806 return status; gpiolib_sysfs_init()
H A Dgpio-pcf857x.c92 unsigned status; /* current status */ member in struct:pcf857x
119 int status; i2c_write_le16() local
121 status = i2c_master_send(client, buf, 2); i2c_write_le16()
122 return (status < 0) ? status : 0; i2c_write_le16()
128 int status; i2c_read_le16() local
130 status = i2c_master_recv(client, buf, 2); i2c_read_le16()
131 if (status < 0) i2c_read_le16()
132 return status; i2c_read_le16()
141 int status; pcf857x_input() local
145 status = gpio->write(gpio->client, gpio->out); pcf857x_input()
148 return status; pcf857x_input()
164 int status; pcf857x_output() local
171 status = gpio->write(gpio->client, gpio->out); pcf857x_output()
174 return status; pcf857x_output()
187 unsigned long change, i, status; pcf857x_irq() local
189 status = gpio->read(gpio->client); pcf857x_irq()
196 change = (gpio->status ^ status) & gpio->irq_enabled; pcf857x_irq()
197 gpio->status = status; pcf857x_irq()
278 int status; pcf857x_probe() local
321 status = -EIO; pcf857x_probe()
325 status = i2c_smbus_read_byte(client); pcf857x_probe()
338 status = -EIO; pcf857x_probe()
342 status = i2c_read_le16(client); pcf857x_probe()
346 status = -EINVAL; pcf857x_probe()
349 if (status < 0) pcf857x_probe()
373 gpio->status = gpio->out; pcf857x_probe()
375 status = gpiochip_add(&gpio->chip); pcf857x_probe()
376 if (status < 0) pcf857x_probe()
381 status = gpiochip_irqchip_add(&gpio->chip, &pcf857x_irq_chip, pcf857x_probe()
384 if (status) { pcf857x_probe()
389 status = devm_request_threaded_irq(&client->dev, client->irq, pcf857x_probe()
393 if (status) pcf857x_probe()
405 status = pdata->setup(client, pcf857x_probe()
408 if (status < 0) pcf857x_probe()
409 dev_warn(&client->dev, "setup --> %d\n", status); pcf857x_probe()
420 dev_dbg(&client->dev, "probe error %d for '%s'\n", status, pcf857x_probe()
423 return status; pcf857x_probe()
430 int status = 0; pcf857x_remove() local
433 status = pdata->teardown(client, pcf857x_remove()
436 if (status < 0) { pcf857x_remove()
438 "teardown", status); pcf857x_remove()
439 return status; pcf857x_remove()
444 return status; pcf857x_remove()
/linux-4.4.14/include/trace/events/
H A Dsunrpc.h25 __field(int, status)
31 __entry->status = task->tk_status;
34 TP_printk("task:%u@%u, status %d",
36 __entry->status)
52 TP_PROTO(struct rpc_task *task, int status),
54 TP_ARGS(task, status),
59 __field(int, status)
65 __entry->status = status;
68 TP_printk("task:%u@%u, status %d",
70 __entry->status)
84 __field(int, status)
93 __entry->status = task->tk_status;
97 TP_printk("task:%u@%d flags=%4.4x state=%4.4lx status=%d action=%pf",
101 __entry->status,
141 __field(int, status)
151 __entry->status = task->tk_status;
156 TP_printk("task:%u@%u flags=%4.4x state=%4.4lx status=%d timeout=%lu queue=%s",
160 __entry->status,
339 TP_PROTO(struct rpc_xprt *xprt, __be32 xid, int status),
341 TP_ARGS(xprt, xid, status),
345 __field(int, status)
352 __entry->status = status;
357 TP_printk("peer=[%s]:%s xid=0x%x status=%d", __get_str(addr),
359 __entry->status)
363 TP_PROTO(struct rpc_xprt *xprt, __be32 xid, int status),
364 TP_ARGS(xprt, xid, status));
367 TP_PROTO(struct rpc_xprt *xprt, __be32 xid, int status),
368 TP_ARGS(xprt, xid, status));
371 TP_PROTO(struct rpc_xprt *xprt, __be32 xid, int status),
372 TP_ARGS(xprt, xid, status));
453 TP_PROTO(struct svc_rqst *rqst, int status),
455 TP_ARGS(rqst, status),
460 __field(int, status)
466 __entry->xid = status > 0 ? rqst->rq_xid : 0;
467 __entry->status = status;
471 TP_printk("addr=%pIScp xid=0x%x status=%d flags=%s", __entry->addr,
472 be32_to_cpu(__entry->xid), __entry->status,
478 TP_PROTO(struct svc_rqst *rqst, int status),
480 TP_ARGS(rqst, status),
486 __field(int, status)
493 __entry->status = status;
497 TP_printk("addr=%pIScp rq_xid=0x%x status=%d flags=%s",
499 __entry->status, show_rqstp_flags(__entry->flags))
503 TP_PROTO(struct svc_rqst *rqst, int status),
504 TP_ARGS(rqst, status));
507 TP_PROTO(struct svc_rqst *rqst, int status),
508 TP_ARGS(rqst, status));
/linux-4.4.14/drivers/firmware/efi/libstub/
H A Darm-stub.c29 efi_status_t status; efi_secureboot_enabled() local
32 status = f_getvar((efi_char16_t *)var_name, (efi_guid_t *)&var_guid, efi_secureboot_enabled()
35 switch (status) { efi_secureboot_enabled()
52 efi_status_t status; efi_open_volume() local
55 status = sys_table_arg->boottime->handle_protocol(handle, efi_open_volume()
57 if (status != EFI_SUCCESS) { efi_open_volume()
59 return status; efi_open_volume()
62 status = io->open_volume(io, &fh); efi_open_volume()
63 if (status != EFI_SUCCESS) efi_open_volume()
67 return status; efi_open_volume()
92 efi_status_t status; efi_file_size() local
96 status = fh->open(fh, &h, filename_16, EFI_FILE_MODE_READ, (u64)0); efi_file_size()
97 if (status != EFI_SUCCESS) { efi_file_size()
101 return status; efi_file_size()
107 status = h->get_info(h, &info_guid, &info_sz, NULL); efi_file_size()
108 if (status != EFI_BUFFER_TOO_SMALL) { efi_file_size()
110 return status; efi_file_size()
114 status = sys_table_arg->boottime->allocate_pool(EFI_LOADER_DATA, efi_file_size()
116 if (status != EFI_SUCCESS) { efi_file_size()
118 return status; efi_file_size()
121 status = h->get_info(h, &info_guid, &info_sz, efi_file_size()
123 if (status == EFI_BUFFER_TOO_SMALL) { efi_file_size()
131 if (status != EFI_SUCCESS) efi_file_size()
134 return status; efi_file_size()
172 efi_status_t status; efi_entry() local
198 status = sys_table->boottime->handle_protocol(handle, efi_entry()
200 if (status != EFI_SUCCESS) { efi_entry()
210 status = handle_kernel_image(sys_table, image_addr, &image_size, efi_entry()
214 if (status != EFI_SUCCESS) { efi_entry()
230 status = efi_parse_options(cmdline_ptr); efi_entry()
231 if (status != EFI_SUCCESS) efi_entry()
241 status = handle_cmdline_files(sys_table, image, cmdline_ptr, efi_entry()
245 if (status != EFI_SUCCESS) { efi_entry()
263 status = handle_cmdline_files(sys_table, image, cmdline_ptr, efi_entry()
267 if (status != EFI_SUCCESS) efi_entry()
271 status = allocate_new_fdt_and_exit_boot(sys_table, handle, efi_entry()
281 if (status == EFI_SUCCESS) efi_entry()
H A Dfdt.c28 int status; update_fdt() local
49 status = fdt_open_into(orig_fdt, fdt, new_fdt_size); update_fdt()
51 status = fdt_create_empty_tree(fdt, new_fdt_size); update_fdt()
53 if (status != 0) update_fdt()
90 status = node; /* node is error code when negative */ update_fdt()
96 status = fdt_setprop(fdt, node, "bootargs", cmdline_ptr, update_fdt()
98 if (status) update_fdt()
107 status = fdt_setprop(fdt, node, "linux,initrd-start", update_fdt()
109 if (status) update_fdt()
112 status = fdt_setprop(fdt, node, "linux,initrd-end", update_fdt()
114 if (status) update_fdt()
121 status = fdt_setprop(fdt, node, "linux,uefi-system-table", update_fdt()
123 if (status) update_fdt()
127 status = fdt_setprop(fdt, node, "linux,uefi-mmap-start", update_fdt()
129 if (status) update_fdt()
133 status = fdt_setprop(fdt, node, "linux,uefi-mmap-size", update_fdt()
135 if (status) update_fdt()
139 status = fdt_setprop(fdt, node, "linux,uefi-mmap-desc-size", update_fdt()
141 if (status) update_fdt()
145 status = fdt_setprop(fdt, node, "linux,uefi-mmap-desc-ver", update_fdt()
147 if (status) update_fdt()
153 if (status == -FDT_ERR_NOSPACE) update_fdt()
191 efi_status_t status; allocate_new_fdt_and_exit_boot() local
200 status = efi_get_memory_map(sys_table, &runtime_map, &map_size, allocate_new_fdt_and_exit_boot()
202 if (status != EFI_SUCCESS) { allocate_new_fdt_and_exit_boot()
204 return status; allocate_new_fdt_and_exit_boot()
217 status = efi_high_alloc(sys_table, new_fdt_size, EFI_FDT_ALIGN, allocate_new_fdt_and_exit_boot()
219 if (status != EFI_SUCCESS) { allocate_new_fdt_and_exit_boot()
229 status = efi_get_memory_map(sys_table, &memory_map, &map_size, allocate_new_fdt_and_exit_boot()
231 if (status != EFI_SUCCESS) allocate_new_fdt_and_exit_boot()
234 status = update_fdt(sys_table, allocate_new_fdt_and_exit_boot()
241 if (status == EFI_SUCCESS) allocate_new_fdt_and_exit_boot()
244 if (status == EFI_BUFFER_TOO_SMALL) { allocate_new_fdt_and_exit_boot()
270 status = sys_table->boottime->exit_boot_services(handle, mmap_key); allocate_new_fdt_and_exit_boot()
272 if (status == EFI_SUCCESS) { allocate_new_fdt_and_exit_boot()
277 status = svam(runtime_entry_count * desc_size, desc_size, allocate_new_fdt_and_exit_boot()
285 if (status != EFI_SUCCESS) { allocate_new_fdt_and_exit_boot()
H A Defi-stub-helper.c74 efi_status_t status; efi_get_memory_map() local
85 status = efi_call_early(allocate_pool, EFI_LOADER_DATA, efi_get_memory_map()
87 if (status != EFI_SUCCESS) efi_get_memory_map()
92 status = efi_call_early(get_memory_map, map_size, m, efi_get_memory_map()
94 if (status == EFI_BUFFER_TOO_SMALL) { efi_get_memory_map()
99 if (status != EFI_SUCCESS) efi_get_memory_map()
102 if (key_ptr && status == EFI_SUCCESS) efi_get_memory_map()
104 if (desc_ver && status == EFI_SUCCESS) efi_get_memory_map()
109 return status; efi_get_memory_map()
115 efi_status_t status; get_dram_base() local
121 status = efi_get_memory_map(sys_table_arg, (efi_memory_desc_t **)&map.map, get_dram_base()
123 if (status != EFI_SUCCESS) get_dram_base()
147 efi_status_t status; efi_high_alloc() local
152 status = efi_get_memory_map(sys_table_arg, &map, &map_size, &desc_size, efi_high_alloc()
154 if (status != EFI_SUCCESS) efi_high_alloc()
205 status = EFI_NOT_FOUND; efi_high_alloc()
207 status = efi_call_early(allocate_pages, efi_high_alloc()
210 if (status != EFI_SUCCESS) { efi_high_alloc()
221 return status; efi_high_alloc()
233 efi_status_t status; efi_low_alloc() local
237 status = efi_get_memory_map(sys_table_arg, &map, &map_size, &desc_size, efi_low_alloc()
239 if (status != EFI_SUCCESS) efi_low_alloc()
279 status = efi_call_early(allocate_pages, efi_low_alloc()
282 if (status == EFI_SUCCESS) { efi_low_alloc()
289 status = EFI_NOT_FOUND; efi_low_alloc()
293 return status; efi_low_alloc()
369 efi_status_t status; handle_cmdline_files() local
408 status = efi_call_early(allocate_pool, EFI_LOADER_DATA, handle_cmdline_files()
410 if (status != EFI_SUCCESS) { handle_cmdline_files()
450 status = efi_open_volume(sys_table_arg, image, handle_cmdline_files()
452 if (status != EFI_SUCCESS) handle_cmdline_files()
456 status = efi_file_size(sys_table_arg, fh, filename_16, handle_cmdline_files()
458 if (status != EFI_SUCCESS) handle_cmdline_files()
472 status = efi_high_alloc(sys_table_arg, file_size_total, 0x1000, handle_cmdline_files()
474 if (status != EFI_SUCCESS) { handle_cmdline_files()
482 status = EFI_INVALID_PARAMETER; handle_cmdline_files()
498 status = efi_file_read(files[j].handle, handle_cmdline_files()
501 if (status != EFI_SUCCESS) { handle_cmdline_files()
519 return status; handle_cmdline_files()
533 return status; handle_cmdline_files()
554 efi_status_t status; efi_relocate_kernel() local
574 status = efi_call_early(allocate_pages, efi_relocate_kernel()
582 if (status != EFI_SUCCESS) { efi_relocate_kernel()
583 status = efi_low_alloc(sys_table_arg, alloc_size, alignment, efi_relocate_kernel()
586 if (status != EFI_SUCCESS) { efi_relocate_kernel()
588 return status; efi_relocate_kernel()
600 return status; efi_relocate_kernel()
668 efi_status_t status; efi_convert_cmdline() local
687 status = efi_low_alloc(sys_table_arg, options_bytes, 0, &cmdline_addr); efi_convert_cmdline()
688 if (status != EFI_SUCCESS) efi_convert_cmdline()
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/
H A Dhif.c53 int ath6kl_hif_rw_comp_handler(void *context, int status) ath6kl_hif_rw_comp_handler() argument
57 ath6kl_dbg(ATH6KL_DBG_HIF, "hif rw completion pkt 0x%p status %d\n", ath6kl_hif_rw_comp_handler()
58 packet, status); ath6kl_hif_rw_comp_handler()
60 packet->status = status; ath6kl_hif_rw_comp_handler()
148 int status = 0, i; ath6kl_hif_poll_mboxmsg_rx() local
153 status = hif_read_write_sync(dev->ar, HOST_INT_STATUS_ADDRESS, ath6kl_hif_poll_mboxmsg_rx()
158 if (status) { ath6kl_hif_poll_mboxmsg_rx()
160 return status; ath6kl_hif_poll_mboxmsg_rx()
185 status = -ETIME; ath6kl_hif_poll_mboxmsg_rx()
196 return status; ath6kl_hif_poll_mboxmsg_rx()
206 int status = 0; ath6kl_hif_rx_control() local
225 status = hif_read_write_sync(dev->ar, INT_STATUS_ENABLE_ADDRESS, ath6kl_hif_rx_control()
230 return status; ath6kl_hif_rx_control()
236 int status = 0; ath6kl_hif_submit_scat_req() local
257 status = ath6kl_hif_cp_scat_dma_buf(scat_req, false); ath6kl_hif_submit_scat_req()
258 if (status) { ath6kl_hif_submit_scat_req()
259 scat_req->status = status; ath6kl_hif_submit_scat_req()
265 status = ath6kl_hif_scat_req_rw(dev->ar, scat_req); ath6kl_hif_submit_scat_req()
269 scat_req->status = status; ath6kl_hif_submit_scat_req()
270 if (!status && scat_req->virt_scat) ath6kl_hif_submit_scat_req()
271 scat_req->status = ath6kl_hif_submit_scat_req()
275 return status; ath6kl_hif_submit_scat_req()
304 int status; ath6kl_hif_proc_err_intr() local
338 status = hif_read_write_sync(dev->ar, ERROR_INT_STATUS_ADDRESS, ath6kl_hif_proc_err_intr()
341 WARN_ON(status); ath6kl_hif_proc_err_intr()
343 return status; ath6kl_hif_proc_err_intr()
348 int status; ath6kl_hif_proc_cpu_intr() local
382 status = hif_read_write_sync(dev->ar, CPU_INT_STATUS_ADDRESS, ath6kl_hif_proc_cpu_intr()
385 WARN_ON(status); ath6kl_hif_proc_cpu_intr()
387 return status; ath6kl_hif_proc_cpu_intr()
394 int status = 0; proc_pending_irqs() local
416 * will yield us the value of different int status proc_pending_irqs()
429 status = hif_read_write_sync(dev->ar, HOST_INT_STATUS_ADDRESS, proc_pending_irqs()
433 if (status) proc_pending_irqs()
445 /* Look at mbox status */ proc_pending_irqs()
480 status = ath6kl_htc_rxmsg_pending_handler(dev->htc_cnxt, proc_pending_irqs()
482 if (status) proc_pending_irqs()
500 status = ath6kl_hif_proc_cpu_intr(dev); proc_pending_irqs()
501 if (status) proc_pending_irqs()
507 status = ath6kl_hif_proc_err_intr(dev); proc_pending_irqs()
508 if (status) proc_pending_irqs()
514 status = ath6kl_hif_proc_counter_intr(dev); proc_pending_irqs()
518 * An optimization to bypass reading the IRQ status registers proc_pending_irqs()
521 * taking another interrupt rather than re-checking the status proc_pending_irqs()
531 "bypassing irq status re-check, forcing done\n"); proc_pending_irqs()
537 "proc_pending_irqs: (done:%d, status=%d\n", *done, status); proc_pending_irqs()
539 return status; proc_pending_irqs()
547 int status = 0; ath6kl_hif_intr_bh_handler() local
551 * Reset counter used to flag a re-scan of IRQ status registers on ath6kl_hif_intr_bh_handler()
557 * IRQ processing is synchronous, interrupt status registers can be ath6kl_hif_intr_bh_handler()
562 status = proc_pending_irqs(dev, &done); ath6kl_hif_intr_bh_handler()
563 if (status) ath6kl_hif_intr_bh_handler()
567 return status; ath6kl_hif_intr_bh_handler()
574 int status; ath6kl_hif_enable_intrs() local
590 /* Set up the CPU Interrupt status Register */ ath6kl_hif_enable_intrs()
593 /* Set up the Error Interrupt status Register */ ath6kl_hif_enable_intrs()
599 * Enable Counter interrupt status register to get fatal errors for ath6kl_hif_enable_intrs()
608 status = hif_read_write_sync(dev->ar, INT_STATUS_ENABLE_ADDRESS, ath6kl_hif_enable_intrs()
612 if (status) ath6kl_hif_enable_intrs()
614 status); ath6kl_hif_enable_intrs()
616 return status; ath6kl_hif_enable_intrs()
640 int status = 0; ath6kl_hif_unmask_intrs() local
654 status = ath6kl_hif_enable_intrs(dev); ath6kl_hif_unmask_intrs()
656 return status; ath6kl_hif_unmask_intrs()
674 int status = 0; ath6kl_hif_setup() local
688 status = -EINVAL; ath6kl_hif_setup()
698 status = ath6kl_hif_disable_intrs(dev); ath6kl_hif_setup()
701 return status; ath6kl_hif_setup()
/linux-4.4.14/arch/alpha/kernel/
H A Derr_ev6.c24 int status = MCHK_DISPOSITION_REPORT; ev6_parse_ibox() local
33 return status; ev6_parse_ibox()
38 return status; ev6_parse_ibox()
44 int status = MCHK_DISPOSITION_REPORT; ev6_parse_mbox() local
64 return status; ev6_parse_mbox()
85 return status; ev6_parse_mbox()
99 int status = MCHK_DISPOSITION_REPORT; ev6_parse_cbox() local
133 return status; ev6_parse_cbox()
169 printk("%s Block status: %s%s%s%s\n", ev6_parse_cbox()
176 return status; ev6_parse_cbox()
190 int status = MCHK_DISPOSITION_UNKNOWN_ERROR; ev6_process_logout_frame() local
192 status |= ev6_parse_ibox(ev6mchk->I_STAT, print); ev6_process_logout_frame()
193 status |= ev6_parse_mbox(ev6mchk->MM_STAT, ev6mchk->DC_STAT, ev6_process_logout_frame()
195 status |= ev6_parse_cbox(ev6mchk->C_ADDR, ev6mchk->DC1_SYNDROME, ev6_process_logout_frame()
200 return status; ev6_process_logout_frame()
202 if (status != MCHK_DISPOSITION_DISMISS) { ev6_process_logout_frame()
216 if (status == MCHK_DISPOSITION_UNKNOWN_ERROR) { ev6_process_logout_frame()
229 return status; ev6_process_logout_frame()
H A Dgct.c16 int status = 0; gct6_find_nodes() local
40 status |= gct6_find_nodes(GCT_NODE_PTR(node->next), search); gct6_find_nodes()
44 status |= gct6_find_nodes(GCT_NODE_PTR(node->child), search); gct6_find_nodes()
46 return status; gct6_find_nodes()
/linux-4.4.14/drivers/staging/rtl8188eu/core/
H A Drtw_sreset.c37 u8 status = WIFI_STATUS_SUCCESS; sreset_get_wifi_status() local
50 status = psrtpriv->Wifi_Error_Status & (~(USB_READ_PORT_FAIL|USB_WRITE_PORT_FAIL)); sreset_get_wifi_status()
52 DBG_88E("==> %s wifi_status(0x%x)\n", __func__, status); sreset_get_wifi_status()
54 /* status restore */ sreset_get_wifi_status()
57 return status; sreset_get_wifi_status()
60 void sreset_set_wifi_error_status(struct adapter *padapter, u32 status) sreset_set_wifi_error_status() argument
63 pHalData->srestpriv.Wifi_Error_Status = status; sreset_set_wifi_error_status()
/linux-4.4.14/arch/cris/include/uapi/arch-v10/arch/
H A Dsvinto.h12 d_eop = (1 << 1), /* flags & status */
16 d_stop = (1 << 4), /* status */
17 d_ecp = (1 << 4), /* flags & status */
18 d_pri = (1 << 5), /* flags & status */
19 d_alignerr = (1 << 6), /* status */
20 d_crcerr = (1 << 7) /* status */
36 unsigned char status; /* 14 */ member in struct:etrax_dma_descr
/linux-4.4.14/fs/ocfs2/dlm/
H A Ddlmconvert.c81 enum dlm_status status; dlmconvert_master() local
89 status = __dlmconvert_master(dlm, res, lock, flags, type, dlmconvert_master()
95 if (status != DLM_NORMAL && status != DLM_NOTQUEUED) dlmconvert_master()
96 dlm_error(status); dlmconvert_master()
107 return status; dlmconvert_master()
125 enum dlm_status status = DLM_NORMAL; __dlmconvert_master() local
139 status = DLM_DENIED; __dlmconvert_master()
147 status = DLM_DENIED; __dlmconvert_master()
186 status = DLM_NORMAL; __dlmconvert_master()
208 lock->lksb->status = DLM_NORMAL; __dlmconvert_master()
215 status = DLM_NORMAL; __dlmconvert_master()
224 status = DLM_NOTQUEUED; __dlmconvert_master()
236 if (status == DLM_DENIED) { __dlmconvert_master()
239 if (status == DLM_NORMAL) __dlmconvert_master()
241 return status; __dlmconvert_master()
258 * returns: DLM_NORMAL, DLM_RECOVERING, status from remote node
264 enum dlm_status status; dlmconvert_remote() local
275 status = DLM_RECOVERING; dlmconvert_remote()
288 status = DLM_DENIED; dlmconvert_remote()
300 status = DLM_NORMAL; dlmconvert_remote()
328 status = dlm_send_remote_convert_request(dlm, res, lock, flags, type); dlmconvert_remote()
337 if (status != DLM_NORMAL) { dlmconvert_remote()
338 if (status != DLM_NOTQUEUED) dlmconvert_remote()
339 dlm_error(status); dlmconvert_remote()
345 status = DLM_RECOVERING; dlmconvert_remote()
354 return status; dlmconvert_remote()
362 * returns: DLM_NOLOCKMGR, status from remote node
371 int status = 0; dlm_send_remote_convert_request() local
396 vec, veclen, res->owner, &status); dlm_send_remote_convert_request()
399 ret = status; // this is already a dlm_status dlm_send_remote_convert_request()
438 * status from __dlmconvert_master
449 enum dlm_status status = DLM_NORMAL; dlm_convert_lock_handler() local
462 status = DLM_IVBUFLEN; dlm_convert_lock_handler()
463 dlm_error(status); dlm_convert_lock_handler()
472 status = DLM_BADARGS; dlm_convert_lock_handler()
479 status = DLM_IVLOCKID; dlm_convert_lock_handler()
482 dlm_error(status); dlm_convert_lock_handler()
487 status = __dlm_lockres_state_to_status(res); dlm_convert_lock_handler()
488 if (status != DLM_NORMAL) { dlm_convert_lock_handler()
490 dlm_error(status); dlm_convert_lock_handler()
503 status = DLM_IVLOCKID; dlm_convert_lock_handler()
526 status = __dlm_lockres_state_to_status(res); dlm_convert_lock_handler()
527 if (status == DLM_NORMAL) { dlm_convert_lock_handler()
531 status = __dlmconvert_master(dlm, res, lock, flags, dlm_convert_lock_handler()
541 if (status != DLM_NORMAL) { dlm_convert_lock_handler()
542 if (status != DLM_NOTQUEUED) dlm_convert_lock_handler()
543 dlm_error(status); dlm_convert_lock_handler()
565 return status; dlm_convert_lock_handler()
H A Ddlmlock.c124 enum dlm_status status = DLM_NORMAL; dlmlock_master() local
131 status = __dlm_lockres_state_to_status(res); dlmlock_master()
132 if (status != DLM_NORMAL && dlmlock_master()
136 dlm_error(status); dlmlock_master()
137 return status; dlmlock_master()
145 lock->lksb->status = DLM_NORMAL; dlmlock_master()
146 status = DLM_NORMAL; dlmlock_master()
168 status = DLM_NOTQUEUED; dlmlock_master()
176 status = DLM_NORMAL; dlmlock_master()
196 return status; dlmlock_master()
213 * returns: DLM_DENIED, DLM_RECOVERING, or net status
219 enum dlm_status status = DLM_DENIED; dlmlock_remote() local
246 status = dlm_send_remote_lock_request(dlm, res, lock, flags); dlmlock_remote()
251 if (status != DLM_NORMAL) { dlmlock_remote()
252 if (status == DLM_RECOVERING && dlmlock_remote()
261 } else if (status != DLM_NOTQUEUED) { dlmlock_remote()
269 dlm_error(status); dlmlock_remote()
290 return status; dlmlock_remote()
299 * returns: DLM_NOLOCKMGR, or net status
306 int tmpret, status = 0; dlm_send_remote_lock_request() local
318 sizeof(create), res->owner, &status); dlm_send_remote_lock_request()
320 ret = status; dlm_send_remote_lock_request()
466 enum dlm_status status = DLM_NORMAL; dlm_create_lock_handler() local
477 status = DLM_REJECTED; dlm_create_lock_handler()
482 dlm_error(status); dlm_create_lock_handler()
486 status = DLM_IVBUFLEN; dlm_create_lock_handler()
488 dlm_error(status); dlm_create_lock_handler()
492 status = DLM_SYSERR; dlm_create_lock_handler()
497 dlm_error(status); dlm_create_lock_handler()
508 status = DLM_IVLOCKID; dlm_create_lock_handler()
511 dlm_error(status); dlm_create_lock_handler()
516 status = __dlm_lockres_state_to_status(res); dlm_create_lock_handler()
519 if (status != DLM_NORMAL) { dlm_create_lock_handler()
526 status = dlmlock_master(dlm, res, newlock, be32_to_cpu(create->flags)); dlm_create_lock_handler()
528 if (status != DLM_NORMAL) dlm_create_lock_handler()
537 return status; dlm_create_lock_handler()
563 enum dlm_status status; dlmlock() local
576 status = DLM_BADPARAM; dlmlock()
578 dlm_error(status); dlmlock()
583 dlm_error(status); dlmlock()
592 dlm_error(status); dlmlock()
626 status = DLM_BADARGS; dlmlock()
638 status = dlmconvert_master(dlm, res, lock, flags, mode); dlmlock()
640 status = dlmconvert_remote(dlm, res, lock, flags, mode); dlmlock()
641 if (status == DLM_RECOVERING || status == DLM_MIGRATING || dlmlock()
642 status == DLM_FORWARD) { dlmlock()
656 status = DLM_BADARGS; dlmlock()
658 dlm_error(status); dlmlock()
662 status = DLM_IVBUFLEN; dlmlock()
664 dlm_error(status); dlmlock()
671 dlm_error(status); dlmlock()
681 status = DLM_IVLOCKID; dlmlock()
682 dlm_error(status); dlmlock()
709 status = dlmlock_master(dlm, res, lock, flags); dlmlock()
711 status = dlmlock_remote(dlm, res, lock, flags); dlmlock()
713 if (status == DLM_RECOVERING || status == DLM_MIGRATING || dlmlock()
714 status == DLM_FORWARD) { dlmlock()
717 if (status != DLM_RECOVERING) dlmlock()
738 if (status != DLM_NORMAL) { dlmlock()
740 if (status != DLM_NOTQUEUED) dlmlock()
741 dlm_error(status); dlmlock()
747 if (status != DLM_NORMAL) { dlmlock()
751 lksb->status = status; dlmlock()
759 return status; dlmlock()
H A Ddlmdomain.c581 int status; dlm_send_one_domain_exit() local
590 status = o2net_send_message(msg_type, dlm->key, &leave_msg, dlm_send_one_domain_exit()
592 if (status < 0) dlm_send_one_domain_exit()
594 "to node %u on domain %s\n", status, msg_type, node, dlm_send_one_domain_exit()
597 return status; dlm_send_one_domain_exit()
631 int node, clear_node, status; dlm_leave_domain() local
653 status = dlm_send_one_domain_exit(dlm, DLM_EXIT_DOMAIN_MSG, dlm_leave_domain()
655 if (status < 0 && dlm_leave_domain()
656 status != -ENOPROTOOPT && dlm_leave_domain()
657 status != -ENOTCONN) { dlm_leave_domain()
659 "to node %d\n", status, node); dlm_leave_domain()
780 * query_join's response is a status, and that status is treated as a u32
981 int status = 0; dlm_match_regions() local
988 status = -EINVAL; dlm_match_regions()
997 status = -EINVAL; dlm_match_regions()
1023 status = -EINVAL; dlm_match_regions()
1046 status = -EINVAL; dlm_match_regions()
1057 return status; dlm_match_regions()
1063 int status, ret = 0, i; dlm_send_regions() local
1098 i, &status); dlm_send_regions()
1100 ret = status; dlm_send_regions()
1119 int status = 0; dlm_query_region_handler() local
1131 status = -EINVAL; dlm_query_region_handler()
1159 status = dlm_match_regions(dlm, qr, local, sizeof(qr->qr_regions)); dlm_query_region_handler()
1169 return status; dlm_query_region_handler()
1177 int status = 0; dlm_match_nodes() local
1184 for (i = 0; i < O2NM_MAX_NODES && !status; ++i) { dlm_match_nodes()
1198 status = -EINVAL; dlm_match_nodes()
1200 if (!status && dlm_match_nodes()
1204 status = -EINVAL; dlm_match_nodes()
1206 if (status) { dlm_match_nodes()
1229 return status; dlm_match_nodes()
1236 int ret = 0, status, count, i; dlm_send_nodeinfo() local
1276 i, &status); dlm_send_nodeinfo()
1278 ret = status; dlm_send_nodeinfo()
1295 int locked = 0, status = -EINVAL; dlm_query_nodeinfo_handler() local
1329 status = dlm_match_nodes(dlm, qn); dlm_query_nodeinfo_handler()
1336 return status; dlm_query_nodeinfo_handler()
1371 int status; dlm_send_one_join_cancel() local
1379 status = o2net_send_message(DLM_CANCEL_JOIN_MSG, DLM_MOD_KEY, dlm_send_one_join_cancel()
1382 if (status < 0) { dlm_send_one_join_cancel()
1384 "node %u\n", status, DLM_CANCEL_JOIN_MSG, DLM_MOD_KEY, dlm_send_one_join_cancel()
1390 return status; dlm_send_one_join_cancel()
1398 int status, tmpstat; dlm_send_join_cancels() local
1409 status = 0; dlm_send_join_cancels()
1420 if (!status) dlm_send_join_cancels()
1421 status = tmpstat; dlm_send_join_cancels()
1425 if (status) dlm_send_join_cancels()
1426 mlog_errno(status); dlm_send_join_cancels()
1427 return status; dlm_send_join_cancels()
1434 int status; dlm_request_join() local
1451 status = o2net_send_message(DLM_QUERY_JOIN_MSG, DLM_MOD_KEY, &join_msg, dlm_request_join()
1453 if (status < 0 && status != -ENOPROTOOPT) { dlm_request_join()
1455 "node %u\n", status, DLM_QUERY_JOIN_MSG, DLM_MOD_KEY, dlm_request_join()
1465 if (status == -ENOPROTOOPT) { dlm_request_join()
1466 status = 0; dlm_request_join()
1485 status = -EPROTO; dlm_request_join()
1501 status = -EINVAL; dlm_request_join()
1510 mlog(0, "status %d, node %d response is %d\n", status, node, dlm_request_join()
1514 return status; dlm_request_join()
1520 int status; dlm_send_one_join_assert() local
1531 status = o2net_send_message(DLM_ASSERT_JOINED_MSG, DLM_MOD_KEY, dlm_send_one_join_assert()
1534 if (status < 0) dlm_send_one_join_assert()
1536 "node %u\n", status, DLM_ASSERT_JOINED_MSG, DLM_MOD_KEY, dlm_send_one_join_assert()
1539 status = ret; dlm_send_one_join_assert()
1541 return status; dlm_send_one_join_assert()
1547 int status, node, live; dlm_send_join_asserts() local
1549 status = 0; dlm_send_join_asserts()
1560 status = dlm_send_one_join_assert(dlm, node); dlm_send_join_asserts()
1566 if (status) { dlm_send_join_asserts()
1568 "join on node %d\n", status, node); dlm_send_join_asserts()
1574 } while (status && live); dlm_send_join_asserts()
1609 int status = 0, tmpstat, node; dlm_try_to_join_domain() local
1617 status = -ENOMEM; dlm_try_to_join_domain()
1618 mlog_errno(status); dlm_try_to_join_domain()
1640 status = dlm_request_join(dlm, node, &response); dlm_try_to_join_domain()
1641 if (status < 0) { dlm_try_to_join_domain()
1642 mlog_errno(status); dlm_try_to_join_domain()
1652 status = -EAGAIN; dlm_try_to_join_domain()
1672 status = dlm_send_nodeinfo(dlm, ctxt->yes_resp_map); dlm_try_to_join_domain()
1673 if (status) { dlm_try_to_join_domain()
1674 mlog_errno(status); dlm_try_to_join_domain()
1677 status = dlm_send_regions(dlm, ctxt->yes_resp_map); dlm_try_to_join_domain()
1678 if (status) { dlm_try_to_join_domain()
1679 mlog_errno(status); dlm_try_to_join_domain()
1698 if (!status) { dlm_try_to_join_domain()
1706 if (status < 0) { dlm_try_to_join_domain()
1716 mlog(0, "returning %d\n", status); dlm_try_to_join_domain()
1717 return status; dlm_try_to_join_domain()
1729 int status; dlm_register_domain_handlers() local
1738 status = o2hb_register_callback(dlm->name, &dlm->dlm_hb_down); dlm_register_domain_handlers()
1739 if (status) dlm_register_domain_handlers()
1742 status = o2hb_register_callback(dlm->name, &dlm->dlm_hb_up); dlm_register_domain_handlers()
1743 if (status) dlm_register_domain_handlers()
1746 status = o2net_register_handler(DLM_MASTER_REQUEST_MSG, dlm->key, dlm_register_domain_handlers()
1750 if (status) dlm_register_domain_handlers()
1753 status = o2net_register_handler(DLM_ASSERT_MASTER_MSG, dlm->key, dlm_register_domain_handlers()
1758 if (status) dlm_register_domain_handlers()
1761 status = o2net_register_handler(DLM_CREATE_LOCK_MSG, dlm->key, dlm_register_domain_handlers()
1765 if (status) dlm_register_domain_handlers()
1768 status = o2net_register_handler(DLM_CONVERT_LOCK_MSG, dlm->key, dlm_register_domain_handlers()
1772 if (status) dlm_register_domain_handlers()
1775 status = o2net_register_handler(DLM_UNLOCK_LOCK_MSG, dlm->key, dlm_register_domain_handlers()
1779 if (status) dlm_register_domain_handlers()
1782 status = o2net_register_handler(DLM_PROXY_AST_MSG, dlm->key, dlm_register_domain_handlers()
1786 if (status) dlm_register_domain_handlers()
1789 status = o2net_register_handler(DLM_EXIT_DOMAIN_MSG, dlm->key, dlm_register_domain_handlers()
1793 if (status) dlm_register_domain_handlers()
1796 status = o2net_register_handler(DLM_DEREF_LOCKRES_MSG, dlm->key, dlm_register_domain_handlers()
1800 if (status) dlm_register_domain_handlers()
1803 status = o2net_register_handler(DLM_MIGRATE_REQUEST_MSG, dlm->key, dlm_register_domain_handlers()
1807 if (status) dlm_register_domain_handlers()
1810 status = o2net_register_handler(DLM_MIG_LOCKRES_MSG, dlm->key, dlm_register_domain_handlers()
1814 if (status) dlm_register_domain_handlers()
1817 status = o2net_register_handler(DLM_MASTER_REQUERY_MSG, dlm->key, dlm_register_domain_handlers()
1821 if (status) dlm_register_domain_handlers()
1824 status = o2net_register_handler(DLM_LOCK_REQUEST_MSG, dlm->key, dlm_register_domain_handlers()
1828 if (status) dlm_register_domain_handlers()
1831 status = o2net_register_handler(DLM_RECO_DATA_DONE_MSG, dlm->key, dlm_register_domain_handlers()
1835 if (status) dlm_register_domain_handlers()
1838 status = o2net_register_handler(DLM_BEGIN_RECO_MSG, dlm->key, dlm_register_domain_handlers()
1842 if (status) dlm_register_domain_handlers()
1845 status = o2net_register_handler(DLM_FINALIZE_RECO_MSG, dlm->key, dlm_register_domain_handlers()
1849 if (status) dlm_register_domain_handlers()
1852 status = o2net_register_handler(DLM_BEGIN_EXIT_DOMAIN_MSG, dlm->key, dlm_register_domain_handlers()
1858 if (status) dlm_register_domain_handlers()
1861 return status; dlm_register_domain_handlers()
1866 int status; dlm_join_domain() local
1875 status = dlm_register_domain_handlers(dlm); dlm_join_domain()
1876 if (status) { dlm_join_domain()
1877 mlog_errno(status); dlm_join_domain()
1881 status = dlm_launch_thread(dlm); dlm_join_domain()
1882 if (status < 0) { dlm_join_domain()
1883 mlog_errno(status); dlm_join_domain()
1887 status = dlm_launch_recovery_thread(dlm); dlm_join_domain()
1888 if (status < 0) { dlm_join_domain()
1889 mlog_errno(status); dlm_join_domain()
1893 status = dlm_debug_init(dlm); dlm_join_domain()
1894 if (status < 0) { dlm_join_domain()
1895 mlog_errno(status); dlm_join_domain()
1902 status = -ENOMEM; dlm_join_domain()
1903 mlog_errno(status); dlm_join_domain()
1908 status = dlm_try_to_join_domain(dlm); dlm_join_domain()
1914 if (status == -EAGAIN) { dlm_join_domain()
1916 status = -ERESTARTSYS; dlm_join_domain()
1921 status = -ERESTARTSYS; dlm_join_domain()
1941 } while (status == -EAGAIN); dlm_join_domain()
1943 if (status < 0) { dlm_join_domain()
1944 mlog_errno(status); dlm_join_domain()
1948 status = 0; dlm_join_domain()
1952 if (status) { dlm_join_domain()
1960 return status; dlm_join_domain()
2233 int status = 0; dlm_register_net_handlers() local
2235 status = o2net_register_handler(DLM_QUERY_JOIN_MSG, DLM_MOD_KEY, dlm_register_net_handlers()
2239 if (status) dlm_register_net_handlers()
2242 status = o2net_register_handler(DLM_ASSERT_JOINED_MSG, DLM_MOD_KEY, dlm_register_net_handlers()
2246 if (status) dlm_register_net_handlers()
2249 status = o2net_register_handler(DLM_CANCEL_JOIN_MSG, DLM_MOD_KEY, dlm_register_net_handlers()
2253 if (status) dlm_register_net_handlers()
2256 status = o2net_register_handler(DLM_QUERY_REGION, DLM_MOD_KEY, dlm_register_net_handlers()
2261 if (status) dlm_register_net_handlers()
2264 status = o2net_register_handler(DLM_QUERY_NODEINFO, DLM_MOD_KEY, dlm_register_net_handlers()
2269 if (status < 0) dlm_register_net_handlers()
2272 return status; dlm_register_net_handlers()
2329 int status; dlm_init() local
2331 status = dlm_init_mle_cache(); dlm_init()
2332 if (status) { dlm_init()
2337 status = dlm_init_master_caches(); dlm_init()
2338 if (status) { dlm_init()
2344 status = dlm_init_lock_cache(); dlm_init()
2345 if (status) { dlm_init()
2350 status = dlm_register_net_handlers(); dlm_init()
2351 if (status) { dlm_init()
2356 status = dlm_create_debugfs_root(); dlm_init()
2357 if (status) dlm_init()
H A Ddlmunlock.c95 * returns: DLM_NORMAL, DLM_NOLOCKMGR, status from network
105 enum dlm_status status; dlmunlock_common() local
144 status = DLM_RECOVERING; dlmunlock_common()
149 status = DLM_MIGRATING; dlmunlock_common()
156 status = dlm_get_cancel_actions(dlm, res, lock, lksb, &actions); dlmunlock_common()
158 status = dlm_get_unlock_actions(dlm, res, lock, lksb, &actions); dlmunlock_common()
160 if (status != DLM_NORMAL && (status != DLM_CANCELGRANT || !master_node)) dlmunlock_common()
182 status = dlm_send_remote_unlock_request(dlm, res, lock, lksb, dlmunlock_common()
188 if (status == DLM_CANCELGRANT) { dlmunlock_common()
192 } else if (status == DLM_RECOVERING || dlmunlock_common()
193 status == DLM_MIGRATING || dlmunlock_common()
194 status == DLM_FORWARD || dlmunlock_common()
195 status == DLM_NOLOCKMGR dlmunlock_common()
203 status==DLM_RECOVERING?"recovering": dlmunlock_common()
204 (status==DLM_MIGRATING?"migrating": dlmunlock_common()
205 (status == DLM_FORWARD ? "forward" : dlmunlock_common()
261 if (status == DLM_NORMAL) dlmunlock_common()
264 return status; dlmunlock_common()
307 * returns: DLM_NORMAL, DLM_NOLOCKMGR, status from network
319 int status = 0; dlm_send_remote_unlock_request() local
353 vec, veclen, owner, &status); dlm_send_remote_unlock_request()
356 if (status == DLM_FORWARD) dlm_send_remote_unlock_request()
358 ret = status; dlm_send_remote_unlock_request()
398 enum dlm_status status = DLM_NORMAL; dlm_unlock_lock_handler() local
437 status = DLM_FORWARD; dlm_unlock_lock_handler()
447 status = DLM_RECOVERING; dlm_unlock_lock_handler()
454 status = DLM_MIGRATING; dlm_unlock_lock_handler()
461 status = DLM_FORWARD; dlm_unlock_lock_handler()
481 status = DLM_IVLOCKID;
499 status = dlmunlock_master(dlm, res, lock, lksb, flags, &ignore);
500 if (status == DLM_FORWARD)
524 return status;
534 enum dlm_status status; dlm_get_cancel_actions() local
538 status = DLM_NORMAL; dlm_get_cancel_actions()
543 status = DLM_NORMAL; dlm_get_cancel_actions()
550 status = DLM_CANCELGRANT; dlm_get_cancel_actions()
554 status = DLM_IVLOCKID; dlm_get_cancel_actions()
557 return status; dlm_get_cancel_actions()
566 enum dlm_status status; dlm_get_unlock_actions() local
570 status = DLM_DENIED; dlm_get_unlock_actions()
571 dlm_error(status); dlm_get_unlock_actions()
575 status = DLM_NORMAL; dlm_get_unlock_actions()
580 return status; dlm_get_unlock_actions()
590 enum dlm_status status; dlmunlock() local
634 status = dlmunlock_master(dlm, res, lock, lksb, flags, dlmunlock()
637 "call_ast is %d\n", status, call_ast); dlmunlock()
639 status = dlmunlock_remote(dlm, res, lock, lksb, flags, dlmunlock()
642 "call_ast is %d\n", status, call_ast); dlmunlock()
645 if (status == DLM_RECOVERING || dlmunlock()
646 status == DLM_MIGRATING || dlmunlock()
647 status == DLM_FORWARD || dlmunlock()
648 status == DLM_NOLOCKMGR) { dlmunlock()
666 mlog(0, "calling unlockast(%p, %d)\n", data, status); dlmunlock()
678 (*unlockast)(data, status); dlmunlock()
681 if (status == DLM_CANCELGRANT) dlmunlock()
682 status = DLM_NORMAL; dlmunlock()
684 if (status == DLM_NORMAL) { dlmunlock()
688 dlm_error(status); dlmunlock()
694 mlog(0, "returning status=%d!\n", status); dlmunlock()
695 return status; dlmunlock()
/linux-4.4.14/drivers/thermal/
H A Dintel_soc_dts_iosf.c50 /* Mask for two trips in status bits */
85 int status; sys_get_trip_temp() local
93 status = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ, sys_get_trip_temp()
96 if (status) sys_get_trip_temp()
97 return status; sys_get_trip_temp()
112 int status; update_trip_temp() local
127 status = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ, update_trip_temp()
129 if (status) update_trip_temp()
130 return status; update_trip_temp()
134 status = iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE, update_trip_temp()
136 if (status) update_trip_temp()
137 return status; update_trip_temp()
140 status = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ, update_trip_temp()
142 if (status) update_trip_temp()
147 status = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ, update_trip_temp()
150 if (status) update_trip_temp()
170 status = iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE, update_trip_temp()
172 if (status) update_trip_temp()
175 status = iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE, update_trip_temp()
178 if (status) update_trip_temp()
195 return status; update_trip_temp()
203 int status; sys_set_trip_temp() local
209 status = update_trip_temp(tzd->devdata, trip, temp, sys_set_trip_temp()
213 return status; sys_set_trip_temp()
231 int status; sys_get_curr_temp() local
238 status = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ, sys_get_curr_temp()
240 if (status) sys_get_curr_temp()
241 return status; sys_get_curr_temp()
298 /* Store status to restor on exit */ add_dts_thermal_zone()
371 int status; intel_soc_dts_iosf_interrupt_handler() local
377 status = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ, intel_soc_dts_iosf_interrupt_handler()
380 status = iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE, intel_soc_dts_iosf_interrupt_handler()
383 status = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ, intel_soc_dts_iosf_interrupt_handler()
385 pr_debug("status %d PTTSS %x\n", status, sticky_out); intel_soc_dts_iosf_interrupt_handler()
389 status = iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE, intel_soc_dts_iosf_interrupt_handler()
/linux-4.4.14/drivers/mfd/
H A Ddm355evm_msp.c114 * this status, for 0 and 1 instance respectively. The pdf also
116 * However on the EVM bit 2 and 4 gives this status,for 0 and 1
142 int reg, status; msp_gpio_get() local
145 status = dm355evm_msp_read(reg); msp_gpio_get()
146 if (status < 0) msp_gpio_get()
147 return status; msp_gpio_get()
149 msp_led_cache = status; msp_gpio_get()
150 return status & MSP_GPIO_MASK(offset); msp_gpio_get()
199 int status; add_child() local
204 status = -ENOMEM; add_child()
212 status = platform_device_add_data(pdev, pdata, pdata_len); add_child()
213 if (status < 0) { add_child()
225 status = platform_device_add_resources(pdev, &r, 1); add_child()
226 if (status < 0) { add_child()
232 status = platform_device_add(pdev); add_child()
235 if (status < 0) { add_child()
238 return ERR_PTR(status); add_child()
258 int status; add_children() local
263 status = gpiochip_add(&dm355evm_msp_gpio); add_children()
264 if (status < 0) add_children()
265 return status; add_children()
347 int status; dm355evm_command() local
349 status = dm355evm_msp_write(command, DM355EVM_MSP_COMMAND); dm355evm_command()
350 if (status < 0) dm355evm_command()
352 command, status); dm355evm_command()
370 int status; dm355evm_msp_probe() local
377 /* display revision status; doubles as sanity check */ dm355evm_msp_probe()
378 status = dm355evm_msp_read(DM355EVM_MSP_FIRMREV); dm355evm_msp_probe()
379 if (status < 0) dm355evm_msp_probe()
382 status, video); dm355evm_msp_probe()
385 status = dm355evm_msp_write(msp_has_tvp() ? 0 : MSP_VIDEO_IMAGER, dm355evm_msp_probe()
387 if (status < 0) dm355evm_msp_probe()
389 status, video); dm355evm_msp_probe()
396 status = add_children(client); dm355evm_msp_probe()
397 if (status < 0) dm355evm_msp_probe()
408 return status; dm355evm_msp_probe()
/linux-4.4.14/arch/x86/platform/efi/
H A Defi-bgrt.c30 acpi_status status; efi_bgrt_init() local
38 status = acpi_get_table("BGRT", 0, efi_bgrt_init()
40 if (ACPI_FAILURE(status)) efi_bgrt_init()
53 if (bgrt_tab->status & 0xfe) { efi_bgrt_init()
54 pr_err("Ignoring BGRT: reserved status bits are non-zero %u\n", efi_bgrt_init()
55 bgrt_tab->status); efi_bgrt_init()
58 if (bgrt_tab->status != 1) { efi_bgrt_init()
59 pr_debug("Ignoring BGRT: invalid status %u (expected 1)\n", efi_bgrt_init()
60 bgrt_tab->status); efi_bgrt_init()
/linux-4.4.14/arch/cris/arch-v32/mm/
H A Dintmem.c25 char status; member in struct:intmem_allocation
44 alloc->status = STATUS_FREE; crisv32_intmem_init()
62 if (allocation->status == STATUS_FREE && crisv32_intmem_alloc()
67 alloc->status = STATUS_FREE; crisv32_intmem_alloc()
79 tmp->status = STATUS_FREE; crisv32_intmem_alloc()
85 allocation->status = STATUS_ALLOCATED; crisv32_intmem_alloc()
114 allocation->status = STATUS_FREE; crisv32_intmem_free()
117 (prev->status == STATUS_FREE)) { crisv32_intmem_free()
124 (next->status == STATUS_FREE)) { crisv32_intmem_free()
/linux-4.4.14/tools/testing/selftests/powerpc/
H A Dharness.c29 int rc, status; run_test() local
51 rc = waitpid(pid, &status, 0); run_test()
74 if (WIFEXITED(status)) run_test()
75 status = WEXITSTATUS(status); run_test()
77 if (WIFSIGNALED(status)) run_test()
78 printf("!! child died by signal %d\n", WTERMSIG(status)); run_test()
82 status = 1; /* Signal or other */ run_test()
85 return status; run_test()
/linux-4.4.14/net/bluetooth/
H A Dhci_event.c46 __u8 status = *((__u8 *) skb->data); hci_cc_inquiry_cancel() local
48 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_inquiry_cancel()
50 if (status) hci_cc_inquiry_cancel()
71 __u8 status = *((__u8 *) skb->data); hci_cc_periodic_inq() local
73 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_periodic_inq()
75 if (status) hci_cc_periodic_inq()
83 __u8 status = *((__u8 *) skb->data); hci_cc_exit_periodic_inq() local
85 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_exit_periodic_inq()
87 if (status) hci_cc_exit_periodic_inq()
106 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_role_discovery()
108 if (rp->status) hci_cc_role_discovery()
125 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_read_link_policy()
127 if (rp->status) hci_cc_read_link_policy()
145 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_write_link_policy()
147 if (rp->status) hci_cc_write_link_policy()
168 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_read_def_link_policy()
170 if (rp->status) hci_cc_read_def_link_policy()
179 __u8 status = *((__u8 *) skb->data); hci_cc_write_def_link_policy() local
182 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_write_def_link_policy()
184 if (status) hci_cc_write_def_link_policy()
196 __u8 status = *((__u8 *) skb->data); hci_cc_reset() local
198 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_reset()
202 if (status) hci_cc_reset()
232 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_read_stored_link_key()
238 if (!rp->status && sent->read_all == 0x01) { hci_cc_read_stored_link_key()
249 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_delete_stored_link_key()
251 if (rp->status) hci_cc_delete_stored_link_key()
262 __u8 status = *((__u8 *) skb->data); hci_cc_write_local_name() local
265 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_write_local_name()
274 mgmt_set_local_name_complete(hdev, sent, status); hci_cc_write_local_name()
275 else if (!status) hci_cc_write_local_name()
285 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_read_local_name()
287 if (rp->status) hci_cc_read_local_name()
297 __u8 status = *((__u8 *) skb->data); hci_cc_write_auth_enable() local
300 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_write_auth_enable()
308 if (!status) { hci_cc_write_auth_enable()
318 mgmt_auth_enable_complete(hdev, status); hci_cc_write_auth_enable()
325 __u8 status = *((__u8 *) skb->data); hci_cc_write_encrypt_mode() local
329 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_write_encrypt_mode()
331 if (status) hci_cc_write_encrypt_mode()
348 __u8 status = *((__u8 *) skb->data); hci_cc_write_scan_enable() local
352 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_write_scan_enable()
362 if (status) { hci_cc_write_scan_enable()
385 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_read_class_of_dev()
387 if (rp->status) hci_cc_read_class_of_dev()
398 __u8 status = *((__u8 *) skb->data); hci_cc_write_class_of_dev() local
401 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_write_class_of_dev()
409 if (status == 0) hci_cc_write_class_of_dev()
413 mgmt_set_class_of_dev_complete(hdev, sent, status); hci_cc_write_class_of_dev()
423 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_read_voice_setting()
425 if (rp->status) hci_cc_read_voice_setting()
444 __u8 status = *((__u8 *) skb->data); hci_cc_write_voice_setting() local
448 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_write_voice_setting()
450 if (status) hci_cc_write_voice_setting()
475 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_read_num_supported_iac()
477 if (rp->status) hci_cc_read_num_supported_iac()
487 __u8 status = *((__u8 *) skb->data); hci_cc_write_ssp_mode() local
490 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_write_ssp_mode()
498 if (!status) { hci_cc_write_ssp_mode()
506 mgmt_ssp_enable_complete(hdev, sent->mode, status); hci_cc_write_ssp_mode()
507 else if (!status) { hci_cc_write_ssp_mode()
519 u8 status = *((u8 *) skb->data); hci_cc_write_sc_support() local
522 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_write_sc_support()
530 if (!status) { hci_cc_write_sc_support()
537 if (!hci_dev_test_flag(hdev, HCI_MGMT) && !status) { hci_cc_write_sc_support()
551 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_read_local_version()
553 if (rp->status) hci_cc_read_local_version()
571 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_read_local_commands()
573 if (rp->status) hci_cc_read_local_commands()
586 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_read_local_features()
588 if (rp->status) hci_cc_read_local_features()
636 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_read_local_ext_features()
638 if (rp->status) hci_cc_read_local_ext_features()
653 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_read_flow_control_mode()
655 if (rp->status) hci_cc_read_flow_control_mode()
665 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_read_buffer_size()
667 if (rp->status) hci_cc_read_buffer_size()
691 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_read_bd_addr()
693 if (rp->status) hci_cc_read_bd_addr()
708 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_read_page_scan_activity()
710 if (rp->status) hci_cc_read_page_scan_activity()
722 u8 status = *((u8 *) skb->data); hci_cc_write_page_scan_activity() local
725 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_write_page_scan_activity()
727 if (status) hci_cc_write_page_scan_activity()
743 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_read_page_scan_type()
745 if (rp->status) hci_cc_read_page_scan_type()
755 u8 status = *((u8 *) skb->data); hci_cc_write_page_scan_type() local
758 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_write_page_scan_type()
760 if (status) hci_cc_write_page_scan_type()
773 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_read_data_block_size()
775 if (rp->status) hci_cc_read_data_block_size()
799 if (rp->status) hci_cc_read_clock()
828 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_read_local_amp_info()
830 if (rp->status) hci_cc_read_local_amp_info()
850 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_read_inq_rsp_tx_power()
852 if (rp->status) hci_cc_read_inq_rsp_tx_power()
864 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_pin_code_reply()
869 mgmt_pin_code_reply_complete(hdev, &rp->bdaddr, rp->status); hci_cc_pin_code_reply()
871 if (rp->status) hci_cc_pin_code_reply()
890 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_pin_code_neg_reply()
896 rp->status); hci_cc_pin_code_neg_reply()
906 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_le_read_buffer_size()
908 if (rp->status) hci_cc_le_read_buffer_size()
924 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_le_read_local_features()
926 if (rp->status) hci_cc_le_read_local_features()
937 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_le_read_adv_tx_power()
939 if (rp->status) hci_cc_le_read_adv_tx_power()
949 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_user_confirm_reply()
955 rp->status); hci_cc_user_confirm_reply()
965 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_user_confirm_neg_reply()
971 ACL_LINK, 0, rp->status); hci_cc_user_confirm_neg_reply()
980 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_user_passkey_reply()
986 0, rp->status); hci_cc_user_passkey_reply()
996 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_user_passkey_neg_reply()
1002 ACL_LINK, 0, rp->status); hci_cc_user_passkey_neg_reply()
1012 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_read_local_oob_data()
1020 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_read_local_oob_ext_data()
1025 __u8 status = *((__u8 *) skb->data); hci_cc_le_set_random_addr() local
1028 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_le_set_random_addr()
1030 if (status) hci_cc_le_set_random_addr()
1046 __u8 *sent, status = *((__u8 *) skb->data); hci_cc_le_set_adv_enable() local
1048 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_le_set_adv_enable()
1050 if (status) hci_cc_le_set_adv_enable()
1082 __u8 status = *((__u8 *) skb->data); hci_cc_le_set_scan_param() local
1084 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_le_set_scan_param()
1086 if (status) hci_cc_le_set_scan_param()
1133 __u8 status = *((__u8 *) skb->data); hci_cc_le_set_scan_enable() local
1135 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_le_set_scan_enable()
1137 if (status) hci_cc_le_set_scan_enable()
1203 BT_DBG("%s status 0x%2.2x size %u", hdev->name, rp->status, rp->size); hci_cc_le_read_white_list_size()
1205 if (rp->status) hci_cc_le_read_white_list_size()
1214 __u8 status = *((__u8 *) skb->data); hci_cc_le_clear_white_list() local
1216 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_le_clear_white_list()
1218 if (status) hci_cc_le_clear_white_list()
1228 __u8 status = *((__u8 *) skb->data); hci_cc_le_add_to_white_list() local
1230 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_le_add_to_white_list()
1232 if (status) hci_cc_le_add_to_white_list()
1247 __u8 status = *((__u8 *) skb->data); hci_cc_le_del_from_white_list() local
1249 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_le_del_from_white_list()
1251 if (status) hci_cc_le_del_from_white_list()
1267 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_le_read_supported_states()
1269 if (rp->status) hci_cc_le_read_supported_states()
1280 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_le_read_def_data_len()
1282 if (rp->status) hci_cc_le_read_def_data_len()
1293 __u8 status = *((__u8 *) skb->data); hci_cc_le_write_def_data_len() local
1295 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_le_write_def_data_len()
1297 if (status) hci_cc_le_write_def_data_len()
1313 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_le_read_max_data_len()
1315 if (rp->status) hci_cc_le_read_max_data_len()
1328 __u8 status = *((__u8 *) skb->data); hci_cc_write_le_host_supported() local
1330 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_write_le_host_supported()
1332 if (status) hci_cc_write_le_host_supported()
1361 u8 status = *((u8 *) skb->data); hci_cc_set_adv_param() local
1363 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_set_adv_param()
1365 if (status) hci_cc_set_adv_param()
1382 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_read_rssi()
1384 if (rp->status) hci_cc_read_rssi()
1402 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); hci_cc_read_tx_power()
1404 if (rp->status) hci_cc_read_tx_power()
1432 u8 status = *((u8 *) skb->data); hci_cc_write_ssp_debug_mode() local
1435 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cc_write_ssp_debug_mode()
1437 if (status) hci_cc_write_ssp_debug_mode()
1445 static void hci_cs_inquiry(struct hci_dev *hdev, __u8 status) hci_cs_inquiry() argument
1447 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cs_inquiry()
1449 if (status) { hci_cs_inquiry()
1457 static void hci_cs_create_conn(struct hci_dev *hdev, __u8 status) hci_cs_create_conn() argument
1462 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cs_create_conn()
1474 if (status) { hci_cs_create_conn()
1476 if (status != 0x0c || conn->attempt > 2) { hci_cs_create_conn()
1478 hci_connect_cfm(conn, status); hci_cs_create_conn()
1495 static void hci_cs_add_sco(struct hci_dev *hdev, __u8 status) hci_cs_add_sco() argument
1501 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cs_add_sco()
1503 if (!status) hci_cs_add_sco()
1522 hci_connect_cfm(sco, status); hci_cs_add_sco()
1530 static void hci_cs_auth_requested(struct hci_dev *hdev, __u8 status) hci_cs_auth_requested() argument
1535 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cs_auth_requested()
1537 if (!status) hci_cs_auth_requested()
1549 hci_connect_cfm(conn, status); hci_cs_auth_requested()
1557 static void hci_cs_set_conn_encrypt(struct hci_dev *hdev, __u8 status) hci_cs_set_conn_encrypt() argument
1562 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cs_set_conn_encrypt()
1564 if (!status) hci_cs_set_conn_encrypt()
1576 hci_connect_cfm(conn, status); hci_cs_set_conn_encrypt()
1690 static void hci_cs_remote_name_req(struct hci_dev *hdev, __u8 status) hci_cs_remote_name_req() argument
1695 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cs_remote_name_req()
1699 if (!status) hci_cs_remote_name_req()
1733 static void hci_cs_read_remote_features(struct hci_dev *hdev, __u8 status) hci_cs_read_remote_features() argument
1738 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cs_read_remote_features()
1740 if (!status) hci_cs_read_remote_features()
1752 hci_connect_cfm(conn, status); hci_cs_read_remote_features()
1760 static void hci_cs_read_remote_ext_features(struct hci_dev *hdev, __u8 status) hci_cs_read_remote_ext_features() argument
1765 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cs_read_remote_ext_features()
1767 if (!status) hci_cs_read_remote_ext_features()
1779 hci_connect_cfm(conn, status); hci_cs_read_remote_ext_features()
1787 static void hci_cs_setup_sync_conn(struct hci_dev *hdev, __u8 status) hci_cs_setup_sync_conn() argument
1793 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cs_setup_sync_conn()
1795 if (!status) hci_cs_setup_sync_conn()
1814 hci_connect_cfm(sco, status); hci_cs_setup_sync_conn()
1822 static void hci_cs_sniff_mode(struct hci_dev *hdev, __u8 status) hci_cs_sniff_mode() argument
1827 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cs_sniff_mode()
1829 if (!status) hci_cs_sniff_mode()
1843 hci_sco_setup(conn, status); hci_cs_sniff_mode()
1849 static void hci_cs_exit_sniff_mode(struct hci_dev *hdev, __u8 status) hci_cs_exit_sniff_mode() argument
1854 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cs_exit_sniff_mode()
1856 if (!status) hci_cs_exit_sniff_mode()
1870 hci_sco_setup(conn, status); hci_cs_exit_sniff_mode()
1876 static void hci_cs_disconnect(struct hci_dev *hdev, u8 status) hci_cs_disconnect() argument
1881 if (!status) hci_cs_disconnect()
1893 conn->dst_type, status); hci_cs_disconnect()
1898 static void hci_cs_le_create_conn(struct hci_dev *hdev, u8 status) hci_cs_le_create_conn() argument
1903 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cs_le_create_conn()
1909 if (status) hci_cs_le_create_conn()
1950 static void hci_cs_le_read_remote_features(struct hci_dev *hdev, u8 status) hci_cs_le_read_remote_features() argument
1955 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cs_le_read_remote_features()
1957 if (!status) hci_cs_le_read_remote_features()
1969 hci_connect_cfm(conn, status); hci_cs_le_read_remote_features()
1977 static void hci_cs_le_start_enc(struct hci_dev *hdev, u8 status) hci_cs_le_start_enc() argument
1982 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cs_le_start_enc()
1984 if (!status) hci_cs_le_start_enc()
2007 static void hci_cs_switch_role(struct hci_dev *hdev, u8 status) hci_cs_switch_role() argument
2012 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_cs_switch_role()
2014 if (!status) hci_cs_switch_role()
2032 __u8 status = *((__u8 *) skb->data); hci_inquiry_complete_evt() local
2036 BT_DBG("%s status 0x%2.2x", hdev->name, status); hci_inquiry_complete_evt()
2148 if (!ev->status) { hci_conn_complete_evt()
2194 conn->dst_type, ev->status); hci_conn_complete_evt()
2198 hci_sco_setup(conn, ev->status); hci_conn_complete_evt()
2200 if (ev->status) { hci_conn_complete_evt()
2201 hci_connect_cfm(conn, ev->status); hci_conn_complete_evt()
2204 hci_connect_cfm(conn, ev->status); hci_conn_complete_evt()
2341 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_disconn_complete_evt()
2349 if (ev->status) { hci_disconn_complete_evt()
2351 conn->dst_type, ev->status); hci_disconn_complete_evt()
2415 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_auth_complete_evt()
2423 if (!ev->status) { hci_auth_complete_evt()
2432 mgmt_auth_failed(conn, ev->status); hci_auth_complete_evt()
2439 if (!ev->status && hci_conn_ssp_enabled(conn)) { hci_auth_complete_evt()
2447 hci_connect_cfm(conn, ev->status); hci_auth_complete_evt()
2451 hci_auth_cfm(conn, ev->status); hci_auth_complete_evt()
2459 if (!ev->status) { hci_auth_complete_evt()
2467 hci_encrypt_cfm(conn, ev->status, 0x00); hci_auth_complete_evt()
2491 if (ev->status == 0) hci_remote_name_evt()
2517 static void read_enc_key_size_complete(struct hci_dev *hdev, u8 status, read_enc_key_size_complete() argument
2524 BT_DBG("%s status 0x%02x", hdev->name, status); read_enc_key_size_complete()
2545 if (rp->status) { read_enc_key_size_complete()
2579 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_encrypt_change_evt()
2587 if (!ev->status) { hci_encrypt_change_evt()
2610 if (ev->status && conn->type == LE_LINK) hci_encrypt_change_evt()
2615 if (ev->status && conn->state == BT_CONNECTED) { hci_encrypt_change_evt()
2634 if (!ev->status && ev->encrypt && conn->type == ACL_LINK) { hci_encrypt_change_evt()
2663 if (!ev->status) hci_encrypt_change_evt()
2666 hci_connect_cfm(conn, ev->status); hci_encrypt_change_evt()
2669 hci_encrypt_cfm(conn, ev->status, ev->encrypt); hci_encrypt_change_evt()
2681 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_change_link_key_complete_evt()
2687 if (!ev->status) hci_change_link_key_complete_evt()
2692 hci_key_change_cfm(conn, ev->status); hci_change_link_key_complete_evt()
2704 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_remote_features_evt()
2712 if (!ev->status) hci_remote_features_evt()
2718 if (!ev->status && lmp_ext_feat_capable(hdev) && hci_remote_features_evt()
2728 if (!ev->status && !test_bit(HCI_CONN_MGMT_CONNECTED, &conn->flags)) { hci_remote_features_evt()
2739 hci_connect_cfm(conn, ev->status); hci_remote_features_evt()
2748 u16 *opcode, u8 *status, hci_cmd_complete_evt()
2755 *status = skb->data[sizeof(*ev)]; hci_cmd_complete_evt()
3039 hci_req_cmd_complete(hdev, *opcode, *status, req_complete, hci_cmd_complete_evt()
3047 u16 *opcode, u8 *status, hci_cmd_status_evt()
3056 *status = ev->status; hci_cmd_status_evt()
3060 hci_cs_inquiry(hdev, ev->status); hci_cmd_status_evt()
3064 hci_cs_create_conn(hdev, ev->status); hci_cmd_status_evt()
3068 hci_cs_disconnect(hdev, ev->status); hci_cmd_status_evt()
3072 hci_cs_add_sco(hdev, ev->status); hci_cmd_status_evt()
3076 hci_cs_auth_requested(hdev, ev->status); hci_cmd_status_evt()
3080 hci_cs_set_conn_encrypt(hdev, ev->status); hci_cmd_status_evt()
3084 hci_cs_remote_name_req(hdev, ev->status); hci_cmd_status_evt()
3088 hci_cs_read_remote_features(hdev, ev->status); hci_cmd_status_evt()
3092 hci_cs_read_remote_ext_features(hdev, ev->status); hci_cmd_status_evt()
3096 hci_cs_setup_sync_conn(hdev, ev->status); hci_cmd_status_evt()
3100 hci_cs_sniff_mode(hdev, ev->status); hci_cmd_status_evt()
3104 hci_cs_exit_sniff_mode(hdev, ev->status); hci_cmd_status_evt()
3108 hci_cs_switch_role(hdev, ev->status); hci_cmd_status_evt()
3112 hci_cs_le_create_conn(hdev, ev->status); hci_cmd_status_evt()
3116 hci_cs_le_read_remote_features(hdev, ev->status); hci_cmd_status_evt()
3120 hci_cs_le_start_enc(hdev, ev->status); hci_cmd_status_evt()
3136 * command status we should try to flag the request as completed hci_cmd_status_evt()
3140 if (ev->status || hci_cmd_status_evt()
3142 hci_req_cmd_complete(hdev, *opcode, ev->status, req_complete, hci_cmd_status_evt()
3163 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_role_change_evt()
3169 if (!ev->status) hci_role_change_evt()
3174 hci_role_switch_cfm(conn, ev->status, ev->role); hci_role_change_evt()
3322 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_mode_change_evt()
3339 hci_sco_setup(conn, ev->status); hci_mode_change_evt()
3540 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_clock_offset_evt()
3545 if (conn && !ev->status) { hci_clock_offset_evt()
3563 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_pkt_type_change_evt()
3568 if (conn && !ev->status) hci_pkt_type_change_evt()
3673 if (!ev->status && ev->page == 0x01) { hci_remote_ext_features_evt()
3701 if (!ev->status && !test_bit(HCI_CONN_MGMT_CONNECTED, &conn->flags)) { hci_remote_ext_features_evt()
3712 hci_connect_cfm(conn, ev->status); hci_remote_ext_features_evt()
3726 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_sync_conn_complete_evt()
3749 switch (ev->status) { hci_sync_conn_complete_evt()
3779 hci_connect_cfm(conn, ev->status); hci_sync_conn_complete_evt()
3780 if (ev->status) hci_sync_conn_complete_evt()
3860 BT_DBG("%s status 0x%2.2x handle 0x%4.4x", hdev->name, ev->status, hci_key_refresh_complete_evt()
3875 if (!ev->status) hci_key_refresh_complete_evt()
3880 if (ev->status && conn->state == BT_CONNECTED) { hci_key_refresh_complete_evt()
3887 if (!ev->status) hci_key_refresh_complete_evt()
3890 hci_connect_cfm(conn, ev->status); hci_key_refresh_complete_evt()
3893 hci_auth_cfm(conn, ev->status); hci_key_refresh_complete_evt()
4220 if (!test_bit(HCI_CONN_AUTH_PEND, &conn->flags) && ev->status) hci_simple_pair_complete_evt()
4221 mgmt_auth_failed(conn, ev->status); hci_simple_pair_complete_evt()
4328 BT_DBG("%s handle 0x%2.2x status 0x%2.2x", hdev->name, ev->phy_handle, hci_phy_link_complete_evt()
4329 ev->status); hci_phy_link_complete_evt()
4339 if (ev->status) { hci_phy_link_complete_evt()
4369 BT_DBG("%s log_handle 0x%4.4x phy_handle 0x%2.2x status 0x%2.2x", hci_loglink_complete_evt()
4371 ev->status); hci_loglink_complete_evt()
4406 BT_DBG("%s log handle 0x%4.4x status 0x%2.2x", hdev->name, hci_disconn_loglink_complete_evt()
4407 le16_to_cpu(ev->handle), ev->status); hci_disconn_loglink_complete_evt()
4409 if (ev->status) hci_disconn_loglink_complete_evt()
4430 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_disconn_phylink_complete_evt()
4432 if (ev->status) hci_disconn_phylink_complete_evt()
4455 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_le_conn_complete_evt()
4535 if (ev->status) { hci_le_conn_complete_evt()
4536 hci_le_conn_failed(conn, ev->status); hci_le_conn_complete_evt()
4565 if (!ev->status) { hci_le_conn_complete_evt()
4587 hci_connect_cfm(conn, ev->status); hci_le_conn_complete_evt()
4590 hci_connect_cfm(conn, ev->status); hci_le_conn_complete_evt()
4615 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_le_conn_update_complete_evt()
4617 if (ev->status) hci_le_conn_update_complete_evt()
4927 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_le_remote_feat_complete_evt()
4933 if (!ev->status) hci_le_remote_feat_complete_evt()
4937 __u8 status; hci_le_remote_feat_complete_evt() local
4949 !conn->out && ev->status == 0x1a) hci_le_remote_feat_complete_evt()
4950 status = 0x00; hci_le_remote_feat_complete_evt()
4952 status = ev->status; hci_le_remote_feat_complete_evt()
4955 hci_connect_cfm(conn, status); hci_le_remote_feat_complete_evt()
5209 u8 status = 0, event = hdr->evt, req_evt = 0; hci_event_packet() local
5215 hci_req_cmd_complete(hdev, opcode, status, &req_complete, hci_event_packet()
5273 hci_cmd_complete_evt(hdev, skb, &opcode, &status, hci_event_packet()
5278 hci_cmd_status_evt(hdev, skb, &opcode, &status, &req_complete, hci_event_packet()
5414 req_complete(hdev, status, opcode); hci_event_packet()
5420 req_complete_skb(hdev, status, opcode, orig_skb); hci_event_packet()
2747 hci_cmd_complete_evt(struct hci_dev *hdev, struct sk_buff *skb, u16 *opcode, u8 *status, hci_req_complete_t *req_complete, hci_req_complete_skb_t *req_complete_skb) hci_cmd_complete_evt() argument
3046 hci_cmd_status_evt(struct hci_dev *hdev, struct sk_buff *skb, u16 *opcode, u8 *status, hci_req_complete_t *req_complete, hci_req_complete_skb_t *req_complete_skb) hci_cmd_status_evt() argument
/linux-4.4.14/drivers/scsi/isci/
H A Dremote_device.c126 enum sci_status status = SCI_SUCCESS; sci_remote_device_terminate_reqs_checkabort() local
135 status = s; sci_remote_device_terminate_reqs_checkabort()
137 return status; sci_remote_device_terminate_reqs_checkabort()
191 enum sci_status status = SCI_SUCCESS; isci_remote_device_terminate_requests() local
201 status = SCI_FAILURE; isci_remote_device_terminate_requests()
284 return status; isci_remote_device_terminate_requests()
445 enum sci_status status; sci_remote_device_frame_handler() local
471 status = sci_unsolicited_frame_control_get_header(&ihost->uf_control, sci_remote_device_frame_handler()
474 if (status != SCI_SUCCESS) sci_remote_device_frame_handler()
475 return status; sci_remote_device_frame_handler()
483 status = sci_io_request_frame_handler(ireq, frame_index); sci_remote_device_frame_handler()
495 status = sci_unsolicited_frame_control_get_header(&ihost->uf_control, sci_remote_device_frame_handler()
498 if (status != SCI_SUCCESS) sci_remote_device_frame_handler()
499 return status; sci_remote_device_frame_handler()
502 (hdr->status & ATA_ERR)) { sci_remote_device_frame_handler()
508 (hdr->status & ATA_ERR)) { sci_remote_device_frame_handler()
516 status = SCI_FAILURE; sci_remote_device_frame_handler()
527 status = sci_io_request_frame_handler(idev->working_request, frame_index); sci_remote_device_frame_handler()
531 return status; sci_remote_device_frame_handler()
570 enum sci_status status; sci_remote_device_event_handler() local
578 status = sci_remote_node_context_event_handler(&idev->rnc, event_code); sci_remote_device_event_handler()
582 status = SCI_SUCCESS; sci_remote_device_event_handler()
604 status = SCI_FAILURE_INVALID_STATE; sci_remote_device_event_handler()
608 if (status != SCI_SUCCESS) sci_remote_device_event_handler()
609 return status; sci_remote_device_event_handler()
632 status = sci_remote_node_context_resume(&idev->rnc, NULL, NULL); sci_remote_device_event_handler()
635 return status; sci_remote_device_event_handler()
640 enum sci_status status) sci_remote_device_start_request()
645 if (status != SCI_SUCCESS) sci_remote_device_start_request()
660 enum sci_status status; sci_remote_device_start_io() local
681 status = sci_port_start_io(iport, idev, ireq); sci_remote_device_start_io()
682 if (status != SCI_SUCCESS) sci_remote_device_start_io()
683 return status; sci_remote_device_start_io()
685 status = sci_remote_node_context_start_io(&idev->rnc, ireq); sci_remote_device_start_io()
686 if (status != SCI_SUCCESS) sci_remote_device_start_io()
689 status = sci_request_start(ireq); sci_remote_device_start_io()
703 status = sci_port_start_io(iport, idev, ireq); sci_remote_device_start_io()
704 if (status != SCI_SUCCESS) sci_remote_device_start_io()
705 return status; sci_remote_device_start_io()
707 status = sci_remote_node_context_start_io(&idev->rnc, ireq); sci_remote_device_start_io()
708 if (status != SCI_SUCCESS) sci_remote_device_start_io()
711 status = sci_request_start(ireq); sci_remote_device_start_io()
712 if (status != SCI_SUCCESS) sci_remote_device_start_io()
728 status = sci_port_start_io(iport, idev, ireq); sci_remote_device_start_io()
729 if (status != SCI_SUCCESS) sci_remote_device_start_io()
730 return status; sci_remote_device_start_io()
732 status = sci_remote_node_context_start_io(&idev->rnc, ireq); sci_remote_device_start_io()
733 if (status != SCI_SUCCESS) sci_remote_device_start_io()
736 status = sci_request_start(ireq); sci_remote_device_start_io()
744 status = sci_port_start_io(iport, idev, ireq); sci_remote_device_start_io()
745 if (status != SCI_SUCCESS) sci_remote_device_start_io()
746 return status; sci_remote_device_start_io()
748 status = sci_remote_node_context_start_io(&idev->rnc, ireq); sci_remote_device_start_io()
749 if (status != SCI_SUCCESS) sci_remote_device_start_io()
752 status = sci_request_start(ireq); sci_remote_device_start_io()
753 if (status != SCI_SUCCESS) sci_remote_device_start_io()
767 sci_remote_device_start_request(idev, ireq, status); sci_remote_device_start_io()
768 return status; sci_remote_device_start_io()
775 enum sci_status status; common_complete_io() local
777 status = sci_request_complete(ireq); common_complete_io()
778 if (status != SCI_SUCCESS) common_complete_io()
779 return status; common_complete_io()
781 status = sci_port_complete_io(iport, idev, ireq); common_complete_io()
782 if (status != SCI_SUCCESS) common_complete_io()
783 return status; common_complete_io()
786 return status; common_complete_io()
796 enum sci_status status; sci_remote_device_complete_io() local
813 status = common_complete_io(iport, idev, ireq); sci_remote_device_complete_io()
819 status = common_complete_io(iport, idev, ireq); sci_remote_device_complete_io()
820 if (status != SCI_SUCCESS) sci_remote_device_complete_io()
827 * status of "DEVICE_RESET_REQUIRED", instead of "INVALID STATE". sci_remote_device_complete_io()
834 status = common_complete_io(iport, idev, ireq); sci_remote_device_complete_io()
835 if (status != SCI_SUCCESS) sci_remote_device_complete_io()
840 status = common_complete_io(iport, idev, ireq); sci_remote_device_complete_io()
841 if (status != SCI_SUCCESS) sci_remote_device_complete_io()
851 if (status != SCI_SUCCESS) sci_remote_device_complete_io()
855 idev, ireq, status); sci_remote_device_complete_io() local
859 return status; sci_remote_device_complete_io()
878 enum sci_status status; sci_remote_device_start_task() local
899 status = sci_port_start_io(iport, idev, ireq); sci_remote_device_start_task()
900 if (status != SCI_SUCCESS) sci_remote_device_start_task()
901 return status; sci_remote_device_start_task()
903 status = sci_request_start(ireq); sci_remote_device_start_task()
904 if (status != SCI_SUCCESS) sci_remote_device_start_task()
924 status = sci_remote_node_context_start_task(&idev->rnc, ireq, sci_remote_device_start_task()
928 sci_remote_device_start_request(idev, ireq, status); sci_remote_device_start_task()
935 status = sci_port_start_io(iport, idev, ireq); sci_remote_device_start_task()
936 if (status != SCI_SUCCESS) sci_remote_device_start_task()
937 return status; sci_remote_device_start_task()
940 status = sci_remote_node_context_start_task(&idev->rnc, ireq, sci_remote_device_start_task()
942 if (status != SCI_SUCCESS) sci_remote_device_start_task()
945 status = sci_request_start(ireq); sci_remote_device_start_task()
948 sci_remote_device_start_request(idev, ireq, status); sci_remote_device_start_task()
950 return status; sci_remote_device_start_task()
1276 enum sci_status status; sci_remote_device_da_construct() local
1285 status = sci_controller_allocate_remote_node_context(iport->owning_controller, sci_remote_device_da_construct()
1289 if (status != SCI_SUCCESS) sci_remote_device_da_construct()
1290 return status; sci_remote_device_da_construct()
1313 enum sci_status status; sci_remote_device_ea_construct() local
1317 status = sci_controller_allocate_remote_node_context(iport->owning_controller, sci_remote_device_ea_construct()
1320 if (status != SCI_SUCCESS) sci_remote_device_ea_construct()
1321 return status; sci_remote_device_ea_construct()
1344 enum sci_status status; sci_remote_device_resume() local
1346 status = sci_remote_node_context_resume(&idev->rnc, cb_fn, cb_p); sci_remote_device_resume()
1347 if (status != SCI_SUCCESS) sci_remote_device_resume()
1349 __func__, status); sci_remote_device_resume() local
1350 return status; sci_remote_device_resume()
1413 enum sci_status status = SCI_SUCCESS; isci_remote_device_resume_from_abort() local
1426 status = sci_remote_device_resume( isci_remote_device_resume_from_abort()
1430 if (!destroyed && (status == SCI_SUCCESS)) isci_remote_device_resume_from_abort()
1435 return status; isci_remote_device_resume_from_abort()
1456 enum sci_status status; sci_remote_device_start() local
1464 status = sci_remote_device_resume(idev, remote_device_resume_done, sci_remote_device_start()
1466 if (status != SCI_SUCCESS) sci_remote_device_start()
1467 return status; sci_remote_device_start()
1479 enum sci_status status; isci_remote_device_construct() local
1482 status = sci_remote_device_ea_construct(iport, idev); isci_remote_device_construct()
1484 status = sci_remote_device_da_construct(iport, idev); isci_remote_device_construct()
1486 if (status != SCI_SUCCESS) { isci_remote_device_construct()
1488 __func__, status); isci_remote_device_construct()
1490 return status; isci_remote_device_construct()
1494 status = sci_remote_device_start(idev, ISCI_REMOTE_DEVICE_START_TIMEOUT); isci_remote_device_construct()
1496 if (status != SCI_SUCCESS) isci_remote_device_construct()
1498 status); isci_remote_device_construct()
1500 return status; isci_remote_device_construct()
1555 * The status of the ihost request to stop.
1559 enum sci_status status; isci_remote_device_stop() local
1570 status = sci_remote_device_stop(idev, 50); isci_remote_device_stop()
1574 if (WARN_ONCE(status != SCI_SUCCESS, "failed to stop device\n")) isci_remote_device_stop()
1582 return status; isci_remote_device_stop()
1611 * status, zero indicates success.
1618 enum sci_status status; isci_remote_device_found() local
1639 status = isci_remote_device_construct(isci_port, isci_device); isci_remote_device_found()
1645 if (status == SCI_SUCCESS) { isci_remote_device_found()
1655 return status == SCI_SUCCESS ? 0 : -ENODEV; isci_remote_device_found()
1664 enum sci_status status; isci_remote_device_suspend_terminate() local
1673 status = isci_remote_device_terminate_requests(ihost, idev, ireq); isci_remote_device_suspend_terminate()
1674 if (status != SCI_SUCCESS) isci_remote_device_suspend_terminate()
1678 __func__, idev, status); isci_remote_device_suspend_terminate()
1681 return status; isci_remote_device_suspend_terminate()
1701 enum sci_status status; isci_remote_device_reset_complete() local
1704 status = sci_remote_device_reset_complete(idev); isci_remote_device_reset_complete()
1707 return status; isci_remote_device_reset_complete()
638 sci_remote_device_start_request(struct isci_remote_device *idev, struct isci_request *ireq, enum sci_status status) sci_remote_device_start_request() argument
/linux-4.4.14/sound/core/
H A Dpcm_compat.c217 struct snd_pcm_status status; snd_pcm_status_user_compat() local
220 memset(&status, 0, sizeof(status)); snd_pcm_status_user_compat()
224 * ignore rest of status structure snd_pcm_status_user_compat()
226 if (ext && get_user(status.audio_tstamp_data, snd_pcm_status_user_compat()
229 err = snd_pcm_status(substream, &status); snd_pcm_status_user_compat()
235 if (put_user(status.state, &src->state) || snd_pcm_status_user_compat()
236 compat_put_timespec(&status.trigger_tstamp, &src->trigger_tstamp) || snd_pcm_status_user_compat()
237 compat_put_timespec(&status.tstamp, &src->tstamp) || snd_pcm_status_user_compat()
238 put_user(status.appl_ptr, &src->appl_ptr) || snd_pcm_status_user_compat()
239 put_user(status.hw_ptr, &src->hw_ptr) || snd_pcm_status_user_compat()
240 put_user(status.delay, &src->delay) || snd_pcm_status_user_compat()
241 put_user(status.avail, &src->avail) || snd_pcm_status_user_compat()
242 put_user(status.avail_max, &src->avail_max) || snd_pcm_status_user_compat()
243 put_user(status.overrange, &src->overrange) || snd_pcm_status_user_compat()
244 put_user(status.suspended_state, &src->suspended_state) || snd_pcm_status_user_compat()
245 put_user(status.audio_tstamp_data, &src->audio_tstamp_data) || snd_pcm_status_user_compat()
246 compat_put_timespec(&status.audio_tstamp, &src->audio_tstamp) || snd_pcm_status_user_compat()
247 compat_put_timespec(&status.driver_tstamp, &src->driver_tstamp) || snd_pcm_status_user_compat()
248 put_user(status.audio_tstamp_accuracy, &src->audio_tstamp_accuracy)) snd_pcm_status_user_compat()
281 struct snd_pcm_status status; snd_pcm_status_user_x32() local
284 memset(&status, 0, sizeof(status)); snd_pcm_status_user_x32()
288 * ignore rest of status structure snd_pcm_status_user_x32()
290 if (ext && get_user(status.audio_tstamp_data, snd_pcm_status_user_x32()
293 err = snd_pcm_status(substream, &status); snd_pcm_status_user_x32()
299 if (put_user(status.state, &src->state) || snd_pcm_status_user_x32()
300 put_timespec(&status.trigger_tstamp, &src->trigger_tstamp) || snd_pcm_status_user_x32()
301 put_timespec(&status.tstamp, &src->tstamp) || snd_pcm_status_user_x32()
302 put_user(status.appl_ptr, &src->appl_ptr) || snd_pcm_status_user_x32()
303 put_user(status.hw_ptr, &src->hw_ptr) || snd_pcm_status_user_x32()
304 put_user(status.delay, &src->delay) || snd_pcm_status_user_x32()
305 put_user(status.avail, &src->avail) || snd_pcm_status_user_x32()
306 put_user(status.avail_max, &src->avail_max) || snd_pcm_status_user_x32()
307 put_user(status.overrange, &src->overrange) || snd_pcm_status_user_x32()
308 put_user(status.suspended_state, &src->suspended_state) || snd_pcm_status_user_x32()
309 put_user(status.audio_tstamp_data, &src->audio_tstamp_data) || snd_pcm_status_user_x32()
310 put_timespec(&status.audio_tstamp, &src->audio_tstamp) || snd_pcm_status_user_x32()
311 put_timespec(&status.driver_tstamp, &src->driver_tstamp) || snd_pcm_status_user_x32()
312 put_user(status.audio_tstamp_accuracy, &src->audio_tstamp_accuracy)) snd_pcm_status_user_x32()
383 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) snd_pcm_ioctl_xferi_compat()
478 struct snd_pcm_mmap_status32 status; member in union:snd_pcm_sync_ptr32::__anon15204
491 volatile struct snd_pcm_mmap_status *status; snd_pcm_ioctl_sync_ptr_compat() local
511 status = runtime->status; snd_pcm_ioctl_sync_ptr_compat()
526 sstatus.state = status->state; snd_pcm_ioctl_sync_ptr_compat()
527 sstatus.hw_ptr = status->hw_ptr % boundary; snd_pcm_ioctl_sync_ptr_compat()
528 sstatus.tstamp = status->tstamp; snd_pcm_ioctl_sync_ptr_compat()
529 sstatus.suspended_state = status->suspended_state; snd_pcm_ioctl_sync_ptr_compat()
530 sstatus.audio_tstamp = status->audio_tstamp; snd_pcm_ioctl_sync_ptr_compat()
532 if (put_user(sstatus.state, &src->s.status.state) || snd_pcm_ioctl_sync_ptr_compat()
533 put_user(sstatus.hw_ptr, &src->s.status.hw_ptr) || snd_pcm_ioctl_sync_ptr_compat()
534 compat_put_timespec(&sstatus.tstamp, &src->s.status.tstamp) || snd_pcm_ioctl_sync_ptr_compat()
535 put_user(sstatus.suspended_state, &src->s.status.suspended_state) || snd_pcm_ioctl_sync_ptr_compat()
537 &src->s.status.audio_tstamp) || snd_pcm_ioctl_sync_ptr_compat()
566 struct snd_pcm_mmap_status_x32 status; member in union:snd_pcm_sync_ptr_x32::__anon15206
579 volatile struct snd_pcm_mmap_status *status; snd_pcm_ioctl_sync_ptr_x32() local
599 status = runtime->status; snd_pcm_ioctl_sync_ptr_x32()
614 sstatus.state = status->state; snd_pcm_ioctl_sync_ptr_x32()
615 sstatus.hw_ptr = status->hw_ptr % boundary; snd_pcm_ioctl_sync_ptr_x32()
616 sstatus.tstamp = status->tstamp; snd_pcm_ioctl_sync_ptr_x32()
617 sstatus.suspended_state = status->suspended_state; snd_pcm_ioctl_sync_ptr_x32()
618 sstatus.audio_tstamp = status->audio_tstamp; snd_pcm_ioctl_sync_ptr_x32()
620 if (put_user(sstatus.state, &src->s.status.state) || snd_pcm_ioctl_sync_ptr_x32()
621 put_user(sstatus.hw_ptr, &src->s.status.hw_ptr) || snd_pcm_ioctl_sync_ptr_x32()
622 put_timespec(&sstatus.tstamp, &src->s.status.tstamp) || snd_pcm_ioctl_sync_ptr_x32()
623 put_user(sstatus.suspended_state, &src->s.status.suspended_state) || snd_pcm_ioctl_sync_ptr_x32()
624 put_timespec(&sstatus.audio_tstamp, &src->s.status.audio_tstamp) || snd_pcm_ioctl_sync_ptr_x32()
673 * mmap of PCM status/control records because of the size snd_pcm_ioctl_compat()
H A Drawmidi_compat.c68 struct snd_rawmidi_status status; snd_rawmidi_ioctl_status_compat() local
72 if (get_user(status.stream, &src->stream)) snd_rawmidi_ioctl_status_compat()
75 switch (status.stream) { snd_rawmidi_ioctl_status_compat()
77 err = snd_rawmidi_output_status(rfile->output, &status); snd_rawmidi_ioctl_status_compat()
80 err = snd_rawmidi_input_status(rfile->input, &status); snd_rawmidi_ioctl_status_compat()
88 if (put_user(status.tstamp.tv_sec, &src->tstamp.tv_sec) || snd_rawmidi_ioctl_status_compat()
89 put_user(status.tstamp.tv_nsec, &src->tstamp.tv_nsec) || snd_rawmidi_ioctl_status_compat()
90 put_user(status.avail, &src->avail) || snd_rawmidi_ioctl_status_compat()
91 put_user(status.xruns, &src->xruns)) snd_rawmidi_ioctl_status_compat()
114 struct snd_rawmidi_status status; snd_rawmidi_ioctl_status_x32() local
118 if (get_user(status.stream, &src->stream)) snd_rawmidi_ioctl_status_x32()
121 switch (status.stream) { snd_rawmidi_ioctl_status_x32()
123 err = snd_rawmidi_output_status(rfile->output, &status); snd_rawmidi_ioctl_status_x32()
126 err = snd_rawmidi_input_status(rfile->input, &status); snd_rawmidi_ioctl_status_x32()
134 if (put_timespec(&status.tstamp, &src->tstamp) || snd_rawmidi_ioctl_status_x32()
135 put_user(status.avail, &src->avail) || snd_rawmidi_ioctl_status_x32()
136 put_user(status.xruns, &src->xruns)) snd_rawmidi_ioctl_status_x32()
H A Dtimer_compat.c73 struct snd_timer_status32 status; snd_timer_user_status_compat() local
78 memset(&status, 0, sizeof(status)); snd_timer_user_status_compat()
79 status.tstamp.tv_sec = tu->tstamp.tv_sec; snd_timer_user_status_compat()
80 status.tstamp.tv_nsec = tu->tstamp.tv_nsec; snd_timer_user_status_compat()
81 status.resolution = snd_timer_resolution(tu->timeri); snd_timer_user_status_compat()
82 status.lost = tu->timeri->lost; snd_timer_user_status_compat()
83 status.overrun = tu->overrun; snd_timer_user_status_compat()
85 status.queue = tu->qused; snd_timer_user_status_compat()
87 if (copy_to_user(_status, &status, sizeof(status))) snd_timer_user_status_compat()
/linux-4.4.14/drivers/infiniband/hw/ocrdma/
H A Docrdma_hw.c193 static int ocrdma_get_mbx_errno(u32 status) ocrdma_get_mbx_errno() argument
196 u8 mbox_status = (status & OCRDMA_MBX_RSP_STATUS_MASK) >> ocrdma_get_mbx_errno()
198 u8 add_status = (status & OCRDMA_MBX_RSP_ASTATUS_MASK) >> ocrdma_get_mbx_errno()
403 int status; ocrdma_mbx_delete_q() local
423 status = be_roce_mcc_cmd(dev->nic_info.netdev, ocrdma_mbx_delete_q()
425 if (!status) ocrdma_mbx_delete_q()
427 return status; ocrdma_mbx_delete_q()
432 int status; ocrdma_mbx_create_eq() local
447 status = be_roce_mcc_cmd(dev->nic_info.netdev, cmd, sizeof(*cmd), NULL, ocrdma_mbx_create_eq()
449 if (!status) { ocrdma_mbx_create_eq()
454 return status; ocrdma_mbx_create_eq()
460 int status; ocrdma_create_eq() local
462 status = ocrdma_alloc_q(dev, &eq->q, OCRDMA_EQ_LEN, ocrdma_create_eq()
464 if (status) ocrdma_create_eq()
465 return status; ocrdma_create_eq()
467 status = ocrdma_mbx_create_eq(dev, eq); ocrdma_create_eq()
468 if (status) ocrdma_create_eq()
476 return status; ocrdma_create_eq()
526 int status; ocrdma_mbx_mq_cq_create() local
543 status = be_roce_mcc_cmd(dev->nic_info.netdev, ocrdma_mbx_mq_cq_create()
545 if (!status) { ocrdma_mbx_mq_cq_create()
549 return status; ocrdma_mbx_mq_cq_create()
565 int num_pages, status; ocrdma_mbx_create_mq() local
592 status = be_roce_mcc_cmd(dev->nic_info.netdev, ocrdma_mbx_create_mq()
594 if (!status) { ocrdma_mbx_create_mq()
598 return status; ocrdma_mbx_create_mq()
603 int status; ocrdma_create_mq() local
606 status = ocrdma_alloc_q(dev, &dev->mq.cq, OCRDMA_MQ_CQ_LEN, ocrdma_create_mq()
608 if (status) ocrdma_create_mq()
612 status = ocrdma_mbx_mq_cq_create(dev, &dev->mq.cq, &dev->eq_tbl[0].q); ocrdma_create_mq()
613 if (status) ocrdma_create_mq()
621 status = ocrdma_alloc_q(dev, &dev->mq.sq, OCRDMA_MQ_LEN, ocrdma_create_mq()
623 if (status) ocrdma_create_mq()
625 status = ocrdma_mbx_create_mq(dev, &dev->mq.sq, &dev->mq.cq); ocrdma_create_mq()
626 if (status) ocrdma_create_mq()
638 return status; ocrdma_create_mq()
865 dev->mqe_ctx.cqe_status = (cqe->status & ocrdma_process_mcqe()
868 (cqe->status & OCRDMA_MCQE_ESTATUS_MASK) ocrdma_process_mcqe()
1053 long status; ocrdma_wait_mqe_cmpl() local
1055 status = wait_event_timeout(dev->mqe_ctx.cmd_wait, ocrdma_wait_mqe_cmpl()
1058 if (status) ocrdma_wait_mqe_cmpl()
1071 int status = 0; ocrdma_mbx_cmd() local
1080 status = ocrdma_wait_mqe_cmpl(dev); ocrdma_mbx_cmd()
1081 if (status) ocrdma_mbx_cmd()
1102 status = ocrdma_get_mbx_cqe_errno(cqe_status); ocrdma_mbx_cmd()
1106 if (rsp && (mqe->u.rsp.status & OCRDMA_MBX_RSP_STATUS_MASK)) ocrdma_mbx_cmd()
1107 status = ocrdma_get_mbx_errno(mqe->u.rsp.status); ocrdma_mbx_cmd()
1110 return status; ocrdma_mbx_cmd()
1116 int status = 0; ocrdma_nonemb_mbx_cmd() local
1123 status = ocrdma_mbx_cmd(dev, mqe); ocrdma_nonemb_mbx_cmd()
1124 if (!status) ocrdma_nonemb_mbx_cmd()
1128 if (rsp->status & OCRDMA_MBX_RSP_STATUS_MASK) ocrdma_nonemb_mbx_cmd()
1129 status = ocrdma_get_mbx_errno(rsp->status); ocrdma_nonemb_mbx_cmd()
1131 if (status) ocrdma_nonemb_mbx_cmd()
1137 return status; ocrdma_nonemb_mbx_cmd()
1233 int status = -ENOMEM; ocrdma_mbx_query_fw_ver() local
1244 status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); ocrdma_mbx_query_fw_ver()
1245 if (status) ocrdma_mbx_query_fw_ver()
1254 return status; ocrdma_mbx_query_fw_ver()
1260 int status = -ENOMEM; ocrdma_mbx_query_fw_config() local
1270 status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); ocrdma_mbx_query_fw_config()
1271 if (status) ocrdma_mbx_query_fw_config()
1274 status = ocrdma_check_fw_config(dev, rsp); ocrdma_mbx_query_fw_config()
1277 return status; ocrdma_mbx_query_fw_config()
1285 int status; ocrdma_mbx_rdma_stats() local
1311 status = ocrdma_nonemb_mbx_cmd(dev, mqe, dev->stats_mem.va); ocrdma_mbx_rdma_stats()
1312 if (status) ocrdma_mbx_rdma_stats()
1319 return status; ocrdma_mbx_rdma_stats()
1324 int status = -ENOMEM; ocrdma_mbx_get_ctrl_attribs() local
1332 return status; ocrdma_mbx_get_ctrl_attribs()
1354 status = ocrdma_nonemb_mbx_cmd(dev, mqe, dma.va); ocrdma_mbx_get_ctrl_attribs()
1355 if (!status) { ocrdma_mbx_get_ctrl_attribs()
1368 return status; ocrdma_mbx_get_ctrl_attribs()
1373 int status = -ENOMEM; ocrdma_mbx_query_dev() local
1379 return status; ocrdma_mbx_query_dev()
1380 status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); ocrdma_mbx_query_dev()
1381 if (status) ocrdma_mbx_query_dev()
1387 return status; ocrdma_mbx_query_dev()
1393 int status = -ENOMEM; ocrdma_mbx_get_link_speed() local
1400 return status; ocrdma_mbx_get_link_speed()
1407 status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); ocrdma_mbx_get_link_speed()
1408 if (status) ocrdma_mbx_get_link_speed()
1420 return status; ocrdma_mbx_get_link_speed()
1425 int status = -ENOMEM; ocrdma_mbx_get_phy_info() local
1431 return status; ocrdma_mbx_get_phy_info()
1437 status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); ocrdma_mbx_get_phy_info()
1438 if (status) ocrdma_mbx_get_phy_info()
1454 return status; ocrdma_mbx_get_phy_info()
1459 int status = -ENOMEM; ocrdma_mbx_alloc_pd() local
1465 return status; ocrdma_mbx_alloc_pd()
1468 status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); ocrdma_mbx_alloc_pd()
1469 if (status) ocrdma_mbx_alloc_pd()
1483 return status; ocrdma_mbx_alloc_pd()
1488 int status = -ENOMEM; ocrdma_mbx_dealloc_pd() local
1493 return status; ocrdma_mbx_dealloc_pd()
1495 status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); ocrdma_mbx_dealloc_pd()
1497 return status; ocrdma_mbx_dealloc_pd()
1503 int status = -ENOMEM; ocrdma_mbx_alloc_pd_range() local
1516 status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); ocrdma_mbx_alloc_pd_range()
1519 if (!status && (rsp->dpp_page_pdid & OCRDMA_ALLOC_PD_RSP_DPP) && ocrdma_mbx_alloc_pd_range()
1539 status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); ocrdma_mbx_alloc_pd_range()
1541 if (!status && rsp->pd_count) { ocrdma_mbx_alloc_pd_range()
1556 return status; ocrdma_mbx_alloc_pd_range()
1592 int status; ocrdma_alloc_pd_pool() local
1600 status = ocrdma_mbx_alloc_pd_range(dev); ocrdma_alloc_pd_pool()
1601 if (status) { ocrdma_alloc_pd_pool()
1642 int status = 0; ocrdma_mbx_create_ah_tbl() local
1652 return status; ocrdma_mbx_create_ah_tbl()
1697 status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); ocrdma_mbx_create_ah_tbl()
1698 if (status) ocrdma_mbx_create_ah_tbl()
1716 return status; ocrdma_mbx_create_ah_tbl()
1783 int status = -ENOMEM; int max_hw_cqe; ocrdma_mbx_create_cq() local
1818 status = -ENOMEM; ocrdma_mbx_create_cq()
1870 status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); ocrdma_mbx_create_cq()
1871 if (status) ocrdma_mbx_create_cq()
1883 return status; ocrdma_mbx_create_cq()
1888 int status = -ENOMEM; ocrdma_mbx_destroy_cq() local
1893 return status; ocrdma_mbx_destroy_cq()
1901 status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); ocrdma_mbx_destroy_cq()
1905 return status; ocrdma_mbx_destroy_cq()
1911 int status = -ENOMEM; ocrdma_mbx_alloc_lkey() local
1917 return status; ocrdma_mbx_alloc_lkey()
1932 status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); ocrdma_mbx_alloc_lkey()
1933 if (status) ocrdma_mbx_alloc_lkey()
1939 return status; ocrdma_mbx_alloc_lkey()
1944 int status = -ENOMEM; ocrdma_mbx_dealloc_lkey() local
1952 status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); ocrdma_mbx_dealloc_lkey()
1953 if (status) ocrdma_mbx_dealloc_lkey()
1957 return status; ocrdma_mbx_dealloc_lkey()
1963 int status = -ENOMEM; ocrdma_mbx_reg_mr() local
2001 status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); ocrdma_mbx_reg_mr()
2002 if (status) ocrdma_mbx_reg_mr()
2008 return status; ocrdma_mbx_reg_mr()
2015 int status = -ENOMEM; ocrdma_mbx_reg_mr_cont() local
2033 status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); ocrdma_mbx_reg_mr_cont()
2034 if (status) ocrdma_mbx_reg_mr_cont()
2038 return status; ocrdma_mbx_reg_mr_cont()
2044 int status; ocrdma_reg_mr() local
2054 status = ocrdma_mbx_reg_mr(dev, hwmr, pdid, ocrdma_reg_mr()
2056 if (status) { ocrdma_reg_mr()
2057 pr_err("%s() status=%d\n", __func__, status); ocrdma_reg_mr()
2058 return status; ocrdma_reg_mr()
2074 status = ocrdma_mbx_reg_mr_cont(dev, hwmr, cur_pbl_cnt, ocrdma_reg_mr()
2076 if (status) ocrdma_reg_mr()
2079 if (status) ocrdma_reg_mr()
2080 pr_err("%s() err. status=%d\n", __func__, status); ocrdma_reg_mr()
2082 return status; ocrdma_reg_mr()
2141 int status = 0; ocrdma_qp_state_change() local
2166 return status; ocrdma_qp_state_change()
2189 int status; ocrdma_set_create_qp_sq_cmd() local
2202 status = ocrdma_build_q_conf(&max_wqe_allocated, ocrdma_set_create_qp_sq_cmd()
2204 if (status) { ocrdma_set_create_qp_sq_cmd()
2245 int status; ocrdma_set_create_qp_rq_cmd() local
2253 status = ocrdma_build_q_conf(&max_rqe_allocated, dev->attr.rqe_size, ocrdma_set_create_qp_rq_cmd()
2255 if (status) { ocrdma_set_create_qp_rq_cmd()
2258 return status; ocrdma_set_create_qp_rq_cmd()
2378 int status = -ENOMEM; ocrdma_mbx_create_qp() local
2404 return status; ocrdma_mbx_create_qp()
2407 status = ocrdma_set_create_qp_sq_cmd(cmd, attrs, qp); ocrdma_mbx_create_qp()
2408 if (status) ocrdma_mbx_create_qp()
2417 status = ocrdma_set_create_qp_rq_cmd(cmd, attrs, qp); ocrdma_mbx_create_qp()
2418 if (status) ocrdma_mbx_create_qp()
2422 status = ocrdma_set_create_qp_ird_cmd(cmd, qp); ocrdma_mbx_create_qp()
2423 if (status) ocrdma_mbx_create_qp()
2453 status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); ocrdma_mbx_create_qp()
2454 if (status) ocrdma_mbx_create_qp()
2470 return status; ocrdma_mbx_create_qp()
2476 int status = -ENOMEM; ocrdma_mbx_query_qp() local
2482 return status; ocrdma_mbx_query_qp()
2484 status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); ocrdma_mbx_query_qp()
2485 if (status) ocrdma_mbx_query_qp()
2491 return status; ocrdma_mbx_query_qp()
2499 int status; ocrdma_set_av_params() local
2522 status = ib_get_cached_gid(&dev->ibdev, 1, ah_attr->grh.sgid_index, ocrdma_set_av_params()
2524 if (!status && sgid_attr.ndev) { ocrdma_set_av_params()
2536 status = ocrdma_resolve_dmac(dev, ah_attr, &mac_addr[0]); ocrdma_set_av_params()
2537 if (status) ocrdma_set_av_params()
2538 return status; ocrdma_set_av_params()
2569 int status = 0; ocrdma_set_qp_params() local
2583 status = ocrdma_set_av_params(qp, cmd, attrs, attr_mask); ocrdma_set_qp_params()
2584 if (status) ocrdma_set_qp_params()
2585 return status; ocrdma_set_qp_params()
2611 status = -EINVAL; ocrdma_set_qp_params()
2653 status = -EINVAL; ocrdma_set_qp_params()
2661 status = -EINVAL; ocrdma_set_qp_params()
2671 return status; ocrdma_set_qp_params()
2677 int status = -ENOMEM; ocrdma_mbx_modify_qp() local
2682 return status; ocrdma_mbx_modify_qp()
2698 status = ocrdma_set_qp_params(qp, cmd, attrs, attr_mask); ocrdma_mbx_modify_qp()
2699 if (status) ocrdma_mbx_modify_qp()
2701 status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); ocrdma_mbx_modify_qp()
2702 if (status) ocrdma_mbx_modify_qp()
2707 return status; ocrdma_mbx_modify_qp()
2712 int status = -ENOMEM; ocrdma_mbx_destroy_qp() local
2718 return status; ocrdma_mbx_destroy_qp()
2720 status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); ocrdma_mbx_destroy_qp()
2721 if (status) ocrdma_mbx_destroy_qp()
2732 return status; ocrdma_mbx_destroy_qp()
2739 int status = -ENOMEM; ocrdma_mbx_create_srq() local
2750 return status; ocrdma_mbx_create_srq()
2754 status = ocrdma_build_q_conf(&max_rqe_allocated, ocrdma_mbx_create_srq()
2757 if (status) { ocrdma_mbx_create_srq()
2760 status = -EINVAL; ocrdma_mbx_create_srq()
2766 status = -ENOMEM; ocrdma_mbx_create_srq()
2787 status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); ocrdma_mbx_create_srq()
2788 if (status) ocrdma_mbx_create_srq()
2807 return status; ocrdma_mbx_create_srq()
2812 int status = -ENOMEM; ocrdma_mbx_modify_srq() local
2819 return status; ocrdma_mbx_modify_srq()
2823 status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); ocrdma_mbx_modify_srq()
2825 return status; ocrdma_mbx_modify_srq()
2830 int status = -ENOMEM; ocrdma_mbx_query_srq() local
2836 return status; ocrdma_mbx_query_srq()
2838 status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); ocrdma_mbx_query_srq()
2839 if (status == 0) { ocrdma_mbx_query_srq()
2851 return status; ocrdma_mbx_query_srq()
2856 int status = -ENOMEM; ocrdma_mbx_destroy_srq() local
2861 return status; ocrdma_mbx_destroy_srq()
2863 status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); ocrdma_mbx_destroy_srq()
2868 return status; ocrdma_mbx_destroy_srq()
2874 int status = 0; ocrdma_mbx_get_dcbx_config() local
2888 status = -ENOMEM; ocrdma_mbx_get_dcbx_config()
2903 status = ocrdma_mbx_cmd(dev, &cmd); ocrdma_mbx_get_dcbx_config()
2904 if (status) ocrdma_mbx_get_dcbx_config()
2914 return status; ocrdma_mbx_get_dcbx_config()
2924 int status = -EINVAL, indx, slindx; ocrdma_parse_dcbxcfg_rsp() local
2980 status = 0; ocrdma_parse_dcbxcfg_rsp()
2993 return status; ocrdma_parse_dcbxcfg_rsp()
2998 int status = 0, indx; ocrdma_init_service_level() local
3004 status = ocrdma_mbx_get_dcbx_config(dev, ptype, &dcbxcfg); ocrdma_init_service_level()
3005 if (status) { ocrdma_init_service_level()
3006 pr_err("%s(): status=%d\n", __func__, status); ocrdma_init_service_level()
3011 status = ocrdma_parse_dcbxcfg_rsp(dev, ptype, ocrdma_init_service_level()
3013 if (status) { ocrdma_init_service_level()
3021 if (status) ocrdma_init_service_level()
3036 int status = -EINVAL; ocrdma_alloc_av() local
3047 status = 0; ocrdma_alloc_av()
3053 status = -EAGAIN; ocrdma_alloc_av()
3055 return status; ocrdma_alloc_av()
3069 int num_eq, i, status = 0; ocrdma_create_eqs() local
3090 status = ocrdma_create_eq(dev, &dev->eq_tbl[i], ocrdma_create_eqs()
3092 if (status) { ocrdma_create_eqs()
3093 status = -EINVAL; ocrdma_create_eqs()
3099 status = request_irq(irq, ocrdma_irq_handler, flags, ocrdma_create_eqs()
3102 if (status) ocrdma_create_eqs()
3110 return status; ocrdma_create_eqs()
3116 int i, status = -ENOMEM; ocrdma_mbx_modify_eqd() local
3121 return status; ocrdma_mbx_modify_eqd()
3133 status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); ocrdma_mbx_modify_eqd()
3134 if (status) ocrdma_mbx_modify_eqd()
3138 return status; ocrdma_mbx_modify_eqd()
3163 int i, num = 0, status = -EINVAL; ocrdma_eqd_set_task() local
3185 status = ocrdma_modify_eqd(dev, &dev->eq_tbl[0], num); ocrdma_eqd_set_task()
3191 int status; ocrdma_init_hw() local
3194 status = ocrdma_create_eqs(dev); ocrdma_init_hw()
3195 if (status) ocrdma_init_hw()
3197 status = ocrdma_create_mq(dev); ocrdma_init_hw()
3198 if (status) ocrdma_init_hw()
3200 status = ocrdma_mbx_query_fw_config(dev); ocrdma_init_hw()
3201 if (status) ocrdma_init_hw()
3203 status = ocrdma_mbx_query_dev(dev); ocrdma_init_hw()
3204 if (status) ocrdma_init_hw()
3206 status = ocrdma_mbx_query_fw_ver(dev); ocrdma_init_hw()
3207 if (status) ocrdma_init_hw()
3209 status = ocrdma_mbx_create_ah_tbl(dev); ocrdma_init_hw()
3210 if (status) ocrdma_init_hw()
3212 status = ocrdma_mbx_get_phy_info(dev); ocrdma_init_hw()
3213 if (status) ocrdma_init_hw()
3215 status = ocrdma_mbx_get_ctrl_attribs(dev); ocrdma_init_hw()
3216 if (status) ocrdma_init_hw()
3228 pr_err("%s() status=%d\n", __func__, status); ocrdma_init_hw()
3229 return status; ocrdma_init_hw()
H A Docrdma_verbs.c171 int status; get_link_speed_and_width() local
174 status = ocrdma_mbx_get_link_speed(dev, &speed, NULL); get_link_speed_and_width()
175 if (status) get_link_speed_and_width()
377 int status; ocrdma_put_pd_num() local
380 status = _ocrdma_pd_mgr_put_bitmap(dev, pd_id, dpp_pool); ocrdma_put_pd_num()
382 return status; ocrdma_put_pd_num()
388 int status = 0; ocrdma_get_pd_num() local
403 status = -EINVAL; ocrdma_get_pd_num()
410 status = -EINVAL; ocrdma_get_pd_num()
414 return status; ocrdma_get_pd_num()
422 int status = 0; _ocrdma_alloc_pd() local
437 status = ocrdma_get_pd_num(dev, pd); _ocrdma_alloc_pd()
438 if (status == 0) { _ocrdma_alloc_pd()
442 return ERR_PTR(status); _ocrdma_alloc_pd()
447 status = ocrdma_mbx_alloc_pd(dev, pd); _ocrdma_alloc_pd()
448 if (status) { _ocrdma_alloc_pd()
455 return ERR_PTR(status); _ocrdma_alloc_pd()
471 int status = 0; _ocrdma_dealloc_pd() local
474 status = ocrdma_put_pd_num(dev, pd->id, pd->dpp_enabled); _ocrdma_dealloc_pd()
476 status = ocrdma_mbx_dealloc_pd(dev, pd); _ocrdma_dealloc_pd()
479 return status; _ocrdma_dealloc_pd()
486 int status = 0; ocrdma_alloc_ucontext_pd() local
490 status = PTR_ERR(uctx->cntxt_pd); ocrdma_alloc_ucontext_pd()
498 return status; ocrdma_alloc_ucontext_pd()
539 int status; ocrdma_alloc_ucontext() local
567 status = ocrdma_add_mmap(ctx, resp.ah_tbl_page, resp.ah_tbl_len); ocrdma_alloc_ucontext()
568 if (status) ocrdma_alloc_ucontext()
571 status = ocrdma_alloc_ucontext_pd(dev, ctx, udata); ocrdma_alloc_ucontext()
572 if (status) ocrdma_alloc_ucontext()
582 status = ib_copy_to_udata(udata, &resp, sizeof(resp)); ocrdma_alloc_ucontext()
583 if (status) ocrdma_alloc_ucontext()
594 return ERR_PTR(status); ocrdma_alloc_ucontext()
599 int status = 0; ocrdma_dealloc_ucontext() local
605 status = ocrdma_dealloc_ucontext_pd(uctx); ocrdma_dealloc_ucontext()
616 return status; ocrdma_dealloc_ucontext()
626 int status = 0; ocrdma_mmap() local
642 status = io_remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, ocrdma_mmap()
653 status = io_remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, ocrdma_mmap()
656 status = remap_pfn_range(vma, vma->vm_start, ocrdma_mmap()
659 return status; ocrdma_mmap()
666 int status; ocrdma_copy_pd_uresp() local
679 status = ocrdma_add_mmap(uctx, db_page_addr, db_page_size); ocrdma_copy_pd_uresp()
680 if (status) ocrdma_copy_pd_uresp()
681 return status; ocrdma_copy_pd_uresp()
686 status = ocrdma_add_mmap(uctx, dpp_page_addr, ocrdma_copy_pd_uresp()
688 if (status) ocrdma_copy_pd_uresp()
694 status = ib_copy_to_udata(udata, &rsp, sizeof(rsp)); ocrdma_copy_pd_uresp()
695 if (status) ocrdma_copy_pd_uresp()
706 return status; ocrdma_copy_pd_uresp()
716 int status; ocrdma_alloc_pd() local
730 status = PTR_ERR(pd); ocrdma_alloc_pd()
736 status = ocrdma_copy_pd_uresp(dev, pd, context, udata); ocrdma_alloc_pd()
737 if (status) ocrdma_alloc_pd()
746 status = _ocrdma_dealloc_pd(dev, pd); ocrdma_alloc_pd()
749 return ERR_PTR(status); ocrdma_alloc_pd()
757 int status = 0; ocrdma_dealloc_pd() local
771 return status; ocrdma_dealloc_pd()
774 status = _ocrdma_dealloc_pd(dev, pd); ocrdma_dealloc_pd()
775 return status; ocrdma_dealloc_pd()
781 int status; ocrdma_alloc_lkey() local
792 status = ocrdma_mbx_alloc_lkey(dev, &mr->hwmr, pdid, addr_check); ocrdma_alloc_lkey()
793 if (status) ocrdma_alloc_lkey()
794 return status; ocrdma_alloc_lkey()
804 int status; ocrdma_get_dma_mr() local
818 status = ocrdma_alloc_lkey(dev, mr, pd->id, acc, 0, ocrdma_get_dma_mr()
820 if (status) { ocrdma_get_dma_mr()
822 return ERR_PTR(status); ocrdma_get_dma_mr()
852 int status = 0; ocrdma_get_pbl_info() local
858 status = -EFAULT; ocrdma_get_pbl_info()
869 return status; ocrdma_get_pbl_info()
874 int status = 0; ocrdma_build_pbl_tbl() local
891 status = -ENOMEM; ocrdma_build_pbl_tbl()
898 return status; ocrdma_build_pbl_tbl()
956 int status = -ENOMEM; ocrdma_reg_user_mr() local
969 return ERR_PTR(status); ocrdma_reg_user_mr()
972 status = -EFAULT; ocrdma_reg_user_mr()
976 status = ocrdma_get_pbl_info(dev, mr, num_pbes); ocrdma_reg_user_mr()
977 if (status) ocrdma_reg_user_mr()
989 status = ocrdma_build_pbl_tbl(dev, &mr->hwmr); ocrdma_reg_user_mr()
990 if (status) ocrdma_reg_user_mr()
993 status = ocrdma_reg_mr(dev, &mr->hwmr, pd->id, acc); ocrdma_reg_user_mr()
994 if (status) ocrdma_reg_user_mr()
1006 return ERR_PTR(status); ocrdma_reg_user_mr()
1036 int status; ocrdma_copy_cq_uresp() local
1049 status = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); ocrdma_copy_cq_uresp()
1050 if (status) { ocrdma_copy_cq_uresp()
1055 status = ocrdma_add_mmap(uctx, uresp.db_page_addr, uresp.db_page_size); ocrdma_copy_cq_uresp()
1056 if (status) ocrdma_copy_cq_uresp()
1058 status = ocrdma_add_mmap(uctx, uresp.page_addr[0], uresp.page_size); ocrdma_copy_cq_uresp()
1059 if (status) { ocrdma_copy_cq_uresp()
1065 return status; ocrdma_copy_cq_uresp()
1078 int status; ocrdma_create_cq() local
1104 status = ocrdma_mbx_create_cq(dev, cq, entries, ureq.dpp_cq, pd_id); ocrdma_create_cq()
1105 if (status) { ocrdma_create_cq()
1107 return ERR_PTR(status); ocrdma_create_cq()
1110 status = ocrdma_copy_cq_uresp(dev, cq, udata, ib_ctx); ocrdma_create_cq()
1111 if (status) ocrdma_create_cq()
1121 return ERR_PTR(status); ocrdma_create_cq()
1127 int status = 0; ocrdma_resize_cq() local
1131 status = -EINVAL; ocrdma_resize_cq()
1132 return status; ocrdma_resize_cq()
1135 return status; ocrdma_resize_cq()
1198 int status = -EINVAL; ocrdma_add_qpn_map() local
1202 status = 0; ocrdma_add_qpn_map()
1204 return status; ocrdma_add_qpn_map()
1289 int status = 0; ocrdma_copy_qp_uresp() local
1321 status = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); ocrdma_copy_qp_uresp()
1322 if (status) { ocrdma_copy_qp_uresp()
1326 status = ocrdma_add_mmap(pd->uctx, uresp.sq_page_addr[0], ocrdma_copy_qp_uresp()
1328 if (status) ocrdma_copy_qp_uresp()
1332 status = ocrdma_add_mmap(pd->uctx, uresp.rq_page_addr[0], ocrdma_copy_qp_uresp()
1334 if (status) ocrdma_copy_qp_uresp()
1337 return status; ocrdma_copy_qp_uresp()
1341 return status; ocrdma_copy_qp_uresp()
1411 int status; ocrdma_create_qp() local
1418 status = ocrdma_check_qp_params(ibpd, dev, attrs); ocrdma_create_qp()
1419 if (status) ocrdma_create_qp()
1429 status = -ENOMEM; ocrdma_create_qp()
1438 status = ocrdma_mbx_create_qp(qp, attrs, ureq.enable_dpp_cq, ocrdma_create_qp()
1441 if (status) ocrdma_create_qp()
1446 status = ocrdma_alloc_wr_id_tbl(qp); ocrdma_create_qp()
1447 if (status) ocrdma_create_qp()
1451 status = ocrdma_add_qpn_map(dev, qp); ocrdma_create_qp()
1452 if (status) ocrdma_create_qp()
1456 status = ocrdma_copy_qp_uresp(qp, udata, dpp_offset, ocrdma_create_qp()
1459 if (status) ocrdma_create_qp()
1476 pr_err("%s(%d) error=%d\n", __func__, dev->id, status); ocrdma_create_qp()
1478 return ERR_PTR(status); ocrdma_create_qp()
1484 int status = 0; _ocrdma_modify_qp() local
1492 status = ocrdma_qp_state_change(qp, attr->qp_state, &old_qps); _ocrdma_modify_qp()
1496 if (status < 0) _ocrdma_modify_qp()
1497 return status; _ocrdma_modify_qp()
1498 status = ocrdma_mbx_modify_qp(dev, qp, attr, attr_mask); _ocrdma_modify_qp()
1500 return status; _ocrdma_modify_qp()
1507 int status = -EINVAL; ocrdma_modify_qp() local
1535 status = _ocrdma_modify_qp(ibqp, attr, attr_mask); ocrdma_modify_qp()
1536 if (status > 0) ocrdma_modify_qp()
1537 status = 0; ocrdma_modify_qp()
1540 return status; ocrdma_modify_qp()
1576 int status; ocrdma_query_qp() local
1584 status = ocrdma_mbx_query_qp(dev, qp, &params); ocrdma_query_qp()
1586 if (status) ocrdma_query_qp()
1656 return status; ocrdma_query_qp()
1854 int status; ocrdma_copy_srq_uresp() local
1874 status = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); ocrdma_copy_srq_uresp()
1875 if (status) ocrdma_copy_srq_uresp()
1876 return status; ocrdma_copy_srq_uresp()
1877 status = ocrdma_add_mmap(srq->pd->uctx, uresp.rq_page_addr[0], ocrdma_copy_srq_uresp()
1879 if (status) ocrdma_copy_srq_uresp()
1880 return status; ocrdma_copy_srq_uresp()
1881 return status; ocrdma_copy_srq_uresp()
1888 int status = -ENOMEM; ocrdma_create_srq() local
1900 return ERR_PTR(status); ocrdma_create_srq()
1905 status = ocrdma_mbx_create_srq(dev, srq, init_attr, pd); ocrdma_create_srq()
1906 if (status) ocrdma_create_srq()
1926 status = ocrdma_mbx_modify_srq(srq, &init_attr->attr); ocrdma_create_srq()
1927 if (status) ocrdma_create_srq()
1932 status = ocrdma_copy_srq_uresp(dev, srq, udata); ocrdma_create_srq()
1933 if (status) ocrdma_create_srq()
1945 return ERR_PTR(status); ocrdma_create_srq()
1953 int status = 0; ocrdma_modify_srq() local
1958 status = -EINVAL; ocrdma_modify_srq()
1960 status = ocrdma_mbx_modify_srq(srq, srq_attr); ocrdma_modify_srq()
1961 return status; ocrdma_modify_srq()
1966 int status; ocrdma_query_srq() local
1970 status = ocrdma_mbx_query_srq(srq, srq_attr); ocrdma_query_srq()
1971 return status; ocrdma_query_srq()
1976 int status; ocrdma_destroy_srq() local
1982 status = ocrdma_mbx_destroy_srq(dev, srq); ocrdma_destroy_srq()
1991 return status; ocrdma_destroy_srq()
2083 int status; ocrdma_build_send() local
2095 status = ocrdma_build_inline_sges(qp, hdr, sge, wr, wqe_size); ocrdma_build_send()
2096 return status; ocrdma_build_send()
2102 int status; ocrdma_build_write() local
2107 status = ocrdma_build_inline_sges(qp, hdr, sge, wr, wqe_size); ocrdma_build_write()
2108 if (status) ocrdma_build_write()
2109 return status; ocrdma_build_write()
2212 int status = 0; ocrdma_post_send() local
2229 status = -EINVAL; ocrdma_post_send()
2235 status = -ENOMEM; ocrdma_post_send()
2261 status = ocrdma_build_send(qp, hdr, wr); ocrdma_post_send()
2268 status = ocrdma_build_write(qp, hdr, wr); ocrdma_post_send()
2282 status = ocrdma_build_reg(qp, hdr, reg_wr(wr)); ocrdma_post_send()
2285 status = -EINVAL; ocrdma_post_send()
2288 if (status) { ocrdma_post_send()
2309 return status; ocrdma_post_send()
2343 int status = 0; ocrdma_post_recv() local
2358 status = -ENOMEM; ocrdma_post_recv()
2376 return status; ocrdma_post_recv()
2415 int status = 0; ocrdma_post_srq_recv() local
2427 status = -ENOMEM; ocrdma_post_srq_recv()
2445 return status; ocrdma_post_srq_recv()
2448 static enum ib_wc_status ocrdma_to_ibwc_err(u16 status) ocrdma_to_ibwc_err() argument
2452 switch (status) { ocrdma_to_ibwc_err()
2554 ibwc->status = IB_WC_GENERAL_ERR; ocrdma_update_wc()
2594 struct ocrdma_qp *qp, int status) ocrdma_update_err_cqe()
2600 ibwc->status = ocrdma_to_ibwc_err(status); ocrdma_update_err_cqe()
2616 struct ocrdma_qp *qp, int status) ocrdma_update_err_rcqe()
2622 return ocrdma_update_err_cqe(ibwc, cqe, qp, status); ocrdma_update_err_rcqe()
2626 struct ocrdma_qp *qp, int status) ocrdma_update_err_scqe()
2631 return ocrdma_update_err_cqe(ibwc, cqe, qp, status); ocrdma_update_err_scqe()
2641 int status = (le32_to_cpu(cqe->flags_status_srcqpn) & ocrdma_poll_err_scqe() local
2643 if (status < OCRDMA_MAX_CQE_ERR) ocrdma_poll_err_scqe()
2644 atomic_inc(&dev->cqe_err_stats[status]); ocrdma_poll_err_scqe()
2655 status = OCRDMA_CQE_WR_FLUSH_ERR; ocrdma_poll_err_scqe()
2656 expand = ocrdma_update_err_rcqe(ibwc, cqe, qp, status); ocrdma_poll_err_scqe()
2674 expand = ocrdma_update_err_scqe(ibwc, cqe, qp, status); ocrdma_poll_err_scqe()
2690 ibwc->status = IB_WC_SUCCESS; ocrdma_poll_success_scqe()
2708 int status; ocrdma_poll_scqe() local
2711 status = (le32_to_cpu(cqe->flags_status_srcqpn) & ocrdma_poll_scqe()
2714 if (status == OCRDMA_CQE_SUCCESS) ocrdma_poll_scqe()
2723 int status; ocrdma_update_ud_rcqe() local
2725 status = (le32_to_cpu(cqe->flags_status_srcqpn) & ocrdma_update_ud_rcqe()
2734 return status; ocrdma_update_ud_rcqe()
2760 int status) ocrdma_poll_err_rcqe()
2765 if (status < OCRDMA_MAX_CQE_ERR) ocrdma_poll_err_rcqe()
2766 atomic_inc(&dev->cqe_err_stats[status]); ocrdma_poll_err_rcqe()
2774 status = OCRDMA_CQE_WR_FLUSH_ERR; ocrdma_poll_err_rcqe()
2775 expand = ocrdma_update_err_scqe(ibwc, cqe, qp, status); ocrdma_poll_err_rcqe()
2788 expand = ocrdma_update_err_rcqe(ibwc, cqe, qp, status); ocrdma_poll_err_rcqe()
2798 ibwc->status = IB_WC_SUCCESS; ocrdma_poll_success_rcqe()
2827 int status; ocrdma_poll_rcqe() local
2832 status = (le32_to_cpu(cqe->flags_status_srcqpn) & ocrdma_poll_rcqe()
2836 status = (le32_to_cpu(cqe->flags_status_srcqpn) & ocrdma_poll_rcqe()
2840 if (status == OCRDMA_CQE_SUCCESS) { ocrdma_poll_rcqe()
2845 status); ocrdma_poll_rcqe()
2943 ibwc->status = IB_WC_WR_FLUSH_ERR; ocrdma_add_err_cqe()
3019 int status; ocrdma_alloc_mr() local
3036 status = -ENOMEM; ocrdma_alloc_mr()
3040 status = ocrdma_get_pbl_info(dev, mr, max_num_sg); ocrdma_alloc_mr()
3041 if (status) ocrdma_alloc_mr()
3049 status = ocrdma_build_pbl_tbl(dev, &mr->hwmr); ocrdma_alloc_mr()
3050 if (status) ocrdma_alloc_mr()
3052 status = ocrdma_reg_mr(dev, &mr->hwmr, pd->id, 0); ocrdma_alloc_mr()
3053 if (status) ocrdma_alloc_mr()
3178 int status = -ENOMEM; ocrdma_reg_kernel_mr() local
3190 return ERR_PTR(status); ocrdma_reg_kernel_mr()
3194 status = -EINVAL; ocrdma_reg_kernel_mr()
3197 status = ocrdma_get_pbl_info(dev, mr, num_pbes); ocrdma_reg_kernel_mr()
3198 if (status) ocrdma_reg_kernel_mr()
3211 status = ocrdma_build_pbl_tbl(dev, &mr->hwmr); ocrdma_reg_kernel_mr()
3212 if (status) ocrdma_reg_kernel_mr()
3216 status = ocrdma_reg_mr(dev, &mr->hwmr, pd->id, acc); ocrdma_reg_kernel_mr()
3217 if (status) ocrdma_reg_kernel_mr()
3229 return ERR_PTR(status); ocrdma_reg_kernel_mr()
2593 ocrdma_update_err_cqe(struct ib_wc *ibwc, struct ocrdma_cqe *cqe, struct ocrdma_qp *qp, int status) ocrdma_update_err_cqe() argument
2615 ocrdma_update_err_rcqe(struct ib_wc *ibwc, struct ocrdma_cqe *cqe, struct ocrdma_qp *qp, int status) ocrdma_update_err_rcqe() argument
2625 ocrdma_update_err_scqe(struct ib_wc *ibwc, struct ocrdma_cqe *cqe, struct ocrdma_qp *qp, int status) ocrdma_update_err_scqe() argument
2758 ocrdma_poll_err_rcqe(struct ocrdma_qp *qp, struct ocrdma_cqe *cqe, struct ib_wc *ibwc, bool *polled, bool *stop, int status) ocrdma_poll_err_rcqe() argument
H A Docrdma_ah.c62 int status = 0; set_av_attr() local
92 status = ocrdma_resolve_dmac(dev, attr, &eth.dmac[0]); set_av_attr()
93 if (status) set_av_attr()
94 return status; set_av_attr()
111 return status; set_av_attr()
117 int status; ocrdma_create_ah() local
135 status = ocrdma_alloc_av(dev, ah); ocrdma_create_ah()
136 if (status) ocrdma_create_ah()
139 status = ib_get_cached_gid(&dev->ibdev, 1, attr->grh.sgid_index, &sgid, ocrdma_create_ah()
141 if (status) { ocrdma_create_ah()
142 pr_err("%s(): Failed to query sgid, status = %d\n", ocrdma_create_ah()
143 __func__, status); ocrdma_create_ah()
155 status = rdma_addr_find_dmac_by_grh(&sgid, &attr->grh.dgid, ocrdma_create_ah()
158 if (status) { ocrdma_create_ah()
160 "status = %d\n", __func__, status); ocrdma_create_ah()
165 status = set_av_attr(dev, ah, attr, &sgid, pd->id, &isvlan, vlan_tag); ocrdma_create_ah()
166 if (status) ocrdma_create_ah()
185 return ERR_PTR(status); ocrdma_create_ah()
236 int status; ocrdma_process_mad() local
249 status = IB_MAD_RESULT_SUCCESS | IB_MAD_RESULT_REPLY; ocrdma_process_mad()
251 status = IB_MAD_RESULT_SUCCESS; ocrdma_process_mad()
254 status = IB_MAD_RESULT_SUCCESS; ocrdma_process_mad()
257 return status; ocrdma_process_mad()
/linux-4.4.14/drivers/scsi/libsas/
H A Dsas_task.c15 tstat->stat = iu->status; sas_ssp_task_response()
25 if (iu->status != SAM_STAT_CHECK_CONDITION) sas_ssp_task_response()
30 iu->status); sas_ssp_task_response()
/linux-4.4.14/drivers/net/wireless/rsi/
H A Drsi_91x_sdio_ops.c28 * Return: status: 0 on success, -1 on failure.
35 int status = 0; rsi_sdio_master_access_msword() local
42 status = rsi_sdio_write_register(adapter, rsi_sdio_master_access_msword()
46 if (status) { rsi_sdio_master_access_msword()
56 status = rsi_sdio_write_register(adapter, rsi_sdio_master_access_msword()
60 return status; rsi_sdio_master_access_msword()
166 * Return: status: 0 on success, -1 on failure.
178 int status = 0; rsi_load_ta_instructions() local
197 status = request_firmware(&fw_entry, FIRMWARE_RSI9113, adapter->device); rsi_load_ta_instructions()
198 if (status < 0) { rsi_load_ta_instructions()
201 return status; rsi_load_ta_instructions()
207 status = -ENOMEM; rsi_load_ta_instructions()
220 status = rsi_copy_to_card(common, fw, len, num_blocks); rsi_load_ta_instructions()
225 return status; rsi_load_ta_instructions()
240 int status = 0; rsi_process_pkt() local
242 status = rsi_sdio_read_register(adapter, rsi_process_pkt()
246 if (status) { rsi_process_pkt()
250 return status; rsi_process_pkt()
261 status = rsi_sdio_host_intf_read_pkt(adapter, rsi_process_pkt()
264 if (status) { rsi_process_pkt()
270 status = rsi_read_pkt(common, rcv_pkt_len); rsi_process_pkt()
274 return status; rsi_process_pkt()
282 * Return: status: 0 on success, -1 on failure.
290 int status = 0; rsi_init_sdio_slave_regs() local
294 status = rsi_sdio_write_register(adapter, rsi_init_sdio_slave_regs()
298 if (status) { rsi_init_sdio_slave_regs()
310 status = rsi_sdio_write_register(adapter, rsi_init_sdio_slave_regs()
314 if (status) { rsi_init_sdio_slave_regs()
326 status = rsi_sdio_write_register(adapter, rsi_init_sdio_slave_regs()
330 if (status) { rsi_init_sdio_slave_regs()
339 status = rsi_sdio_write_register(adapter, rsi_init_sdio_slave_regs()
343 if (status) { rsi_init_sdio_slave_regs()
350 status = rsi_sdio_write_register(adapter, rsi_init_sdio_slave_regs()
354 if (status) { rsi_init_sdio_slave_regs()
374 int status; rsi_interrupt_handler() local
383 status = rsi_sdio_read_register(common->priv, rsi_interrupt_handler()
386 if (status) { rsi_interrupt_handler()
428 status = rsi_sdio_read_register(common->priv, rsi_interrupt_handler()
431 if (status) { rsi_interrupt_handler()
450 status = rsi_process_pkt(common); rsi_interrupt_handler()
451 if (status) { rsi_interrupt_handler()
498 * buffer status register and set
502 * @q_num: The Q number whose status is to be found.
504 * Return: status: -1 on failure or else queue full/stop is indicated.
512 int status = 0; rsi_sdio_read_buffer_status_register() local
514 status = rsi_sdio_read_register(common->priv, rsi_sdio_read_buffer_status_register()
518 if (status) { rsi_sdio_read_buffer_status_register()
520 "%s: Failed to read status register\n", __func__); rsi_sdio_read_buffer_status_register()
H A Drsi_91x_usb.c28 * Return: status: 0 on success, a negative error code on failure.
36 int status; rsi_usb_card_write() local
39 status = usb_bulk_msg(dev->usbdev, rsi_usb_card_write()
47 if (status < 0) { rsi_usb_card_write()
49 "Card write failed with error code :%10d\n", status); rsi_usb_card_write()
52 return status; rsi_usb_card_write()
150 * Return: status: 0 on success, a negative error code on failure.
158 int status = -ENOMEM; rsi_usb_reg_read() local
162 return status; rsi_usb_reg_read()
164 status = usb_control_msg(usbdev, rsi_usb_reg_read()
174 if (status < 0) { rsi_usb_reg_read()
177 __func__, status); rsi_usb_reg_read()
181 return status; rsi_usb_reg_read()
192 * Return: status: 0 on success, a negative error code on failure.
200 int status = -ENOMEM; rsi_usb_reg_write() local
204 return status; rsi_usb_reg_write()
211 status = usb_control_msg(usbdev, rsi_usb_reg_write()
220 if (status < 0) { rsi_usb_reg_write()
223 __func__, status); rsi_usb_reg_write()
227 return status; rsi_usb_reg_write()
242 if (urb->status) rsi_rx_done_handler()
258 int status; rsi_rx_urb_submit() local
269 status = usb_submit_urb(urb, GFP_KERNEL); rsi_rx_urb_submit()
270 if (status) rsi_rx_urb_submit()
273 return status; rsi_rx_urb_submit()
284 * Return: status: 0 on success, a negative error code on failure.
294 int status = 0; rsi_usb_write_register_multiple() local
303 status = usb_control_msg(dev->usbdev, rsi_usb_write_register_multiple()
312 if (status < 0) { rsi_usb_write_register_multiple()
315 status); rsi_usb_write_register_multiple()
379 int status; rsi_init_usb_interface() local
403 status = -ENOMEM; rsi_init_usb_interface()
408 status = -ENOMEM; rsi_init_usb_interface()
421 status = rsi_create_kthread(common, &rsi_dev->rx_thread, rsi_init_usb_interface()
423 if (status) { rsi_init_usb_interface()
442 return status; rsi_init_usb_interface()
460 int status; rsi_probe() local
471 status = rsi_init_usb_interface(adapter, pfunction); rsi_probe()
472 if (status) { rsi_probe()
482 status = rsi_usb_reg_read(dev->usbdev, FW_STATUS_REG, &fw_status, 2); rsi_probe()
483 if (status) rsi_probe()
489 status = rsi_usb_device_init(adapter->priv); rsi_probe()
490 if (status) { rsi_probe()
496 status = rsi_usb_reg_write(dev->usbdev, rsi_probe()
499 if (status) rsi_probe()
504 status = rsi_rx_urb_submit(adapter); rsi_probe()
505 if (status) rsi_probe()
514 return status; rsi_probe()
H A Drsi_91x_pkt.c25 * Return: status: 0 on success, -1 on failure.
34 int status = -EINVAL; rsi_send_data_pkt() local
54 status = -ENOSPC; rsi_send_data_pkt()
101 status = adapter->host_intf_write_pkt(common->priv, rsi_send_data_pkt()
104 if (status) rsi_send_data_pkt()
110 rsi_indicate_tx_status(common->priv, skb, status); rsi_send_data_pkt()
111 return status; rsi_send_data_pkt()
120 * Return: status: 0 on success, -1 on failure.
132 int status = -E2BIG; rsi_send_mgmt_pkt() local
149 status = adapter->host_intf_write_pkt(common->priv, rsi_send_mgmt_pkt()
152 if (status) { rsi_send_mgmt_pkt()
157 return status; rsi_send_mgmt_pkt()
204 status = adapter->host_intf_write_pkt(common->priv, rsi_send_mgmt_pkt()
207 if (status) rsi_send_mgmt_pkt()
211 rsi_indicate_tx_status(common->priv, skb, status); rsi_send_mgmt_pkt()
212 return status; rsi_send_mgmt_pkt()
/linux-4.4.14/arch/unicore32/include/mach/
H A Docd.h19 int status, i = 0x2000000; ocd_putc() local
25 asm volatile ("movc %0, p1.c0, #0" : "=r" (status)); ocd_putc()
26 } while (status & 2); ocd_putc()
/linux-4.4.14/arch/m68k/include/asm/
H A Dmac_baboon.h16 short mb_status; /* (0xD4) media bay status register:
20 * bit 2: bay status, 0 = full, 1 = empty
28 * bit 2: media bay status change interrupt
/linux-4.4.14/drivers/net/phy/
H A Dfixed_phy.c39 struct fixed_phy_status status; member in struct:fixed_phy
58 fp->status.link = !!gpio_get_value_cansleep(fp->link_gpio); fixed_phy_update_regs()
60 if (fp->status.duplex) { fixed_phy_update_regs()
61 switch (fp->status.speed) { fixed_phy_update_regs()
75 switch (fp->status.speed) { fixed_phy_update_regs()
90 if (fp->status.link) { fixed_phy_update_regs()
93 if (fp->status.duplex) { fixed_phy_update_regs()
96 switch (fp->status.speed) { fixed_phy_update_regs()
113 switch (fp->status.speed) { fixed_phy_update_regs()
131 if (fp->status.pause) fixed_phy_update_regs()
134 if (fp->status.asym_pause) fixed_phy_update_regs()
173 &fp->status); fixed_mdio_read()
217 const struct fixed_phy_status *status, fixed_phy_update_state()
229 fp->status.x = status->x fixed_phy_update_state()
246 struct fixed_phy_status *status, fixed_phy_add()
262 fp->status = *status; fixed_phy_add()
310 struct fixed_phy_status *status, fixed_phy_register()
328 ret = fixed_phy_add(irq, phy_addr, status, link_gpio); fixed_phy_register()
339 phy->link = status->link; fixed_phy_register()
340 if (status->link) { fixed_phy_register()
341 phy->speed = status->speed; fixed_phy_register()
342 phy->duplex = status->duplex; fixed_phy_register()
343 phy->pause = status->pause; fixed_phy_register()
344 phy->asym_pause = status->asym_pause; fixed_phy_register()
351 switch (status->speed) { fixed_phy_register()
216 fixed_phy_update_state(struct phy_device *phydev, const struct fixed_phy_status *status, const struct fixed_phy_status *changed) fixed_phy_update_state() argument
245 fixed_phy_add(unsigned int irq, int phy_addr, struct fixed_phy_status *status, int link_gpio) fixed_phy_add() argument
309 fixed_phy_register(unsigned int irq, struct fixed_phy_status *status, int link_gpio, struct device_node *np) fixed_phy_register() argument
/linux-4.4.14/drivers/usb/host/
H A Duhci-hub.c34 /* status change bits: nonzero writes will clear */
80 status = uhci_readw(uhci, port_addr); \
81 status &= ~(RWC_BITS|WZ_BITS); \
82 status &= ~(x); \
83 status |= RWC_BITS & (x); \
84 uhci_writew(uhci, status, port_addr)
87 status = uhci_readw(uhci, port_addr); \
88 status |= (x); \
89 status &= ~(RWC_BITS|WZ_BITS); \
90 uhci_writew(uhci, status, port_addr)
98 int status; uhci_finish_suspend() local
140 int status; uhci_check_ports() local
144 status = uhci_readw(uhci, port_addr); uhci_check_ports()
145 if (unlikely(status & USBPORTSC_PR)) { uhci_check_ports()
158 * status change. Clear these changes. */ uhci_check_ports()
163 if (unlikely(status & USBPORTSC_RD)) { uhci_check_ports()
189 int status = 0; uhci_hub_status_data() local
198 status = get_hub_status_data(uhci, buf); uhci_hub_status_data()
203 if (status || uhci->resuming_ports) { uhci_hub_status_data()
204 status = 1; uhci_hub_status_data()
211 if (status) uhci_hub_status_data()
238 return status; uhci_hub_status_data()
246 int status, lstatus, retval = 0; uhci_hub_control() local
267 status = uhci_readw(uhci, port_addr); uhci_hub_control()
274 status ^= USBPORTSC_OC; uhci_hub_control()
278 if (status & USBPORTSC_CSC) uhci_hub_control()
280 if (status & USBPORTSC_PEC) uhci_hub_control()
282 if ((status & USBPORTSC_OCC) && !ignore_oc) uhci_hub_control()
294 if (status & USBPORTSC_CCS) uhci_hub_control()
296 if (status & USBPORTSC_PE) { uhci_hub_control()
298 if (status & SUSPEND_BITS) uhci_hub_control()
301 if (status & USBPORTSC_OC) uhci_hub_control()
303 if (status & USBPORTSC_PR) uhci_hub_control()
305 if (status & USBPORTSC_LSDA) uhci_hub_control()
310 wIndex, status, lstatus); uhci_hub_control() local
H A Dfhci-q.c29 static int status_to_error(u32 status) status_to_error() argument
31 if (status == USB_TD_OK) status_to_error()
33 else if (status & USB_TD_RX_ER_CRC) status_to_error()
35 else if (status & USB_TD_RX_ER_NONOCT) status_to_error()
37 else if (status & USB_TD_RX_ER_OVERUN) status_to_error()
39 else if (status & USB_TD_RX_ER_BITSTUFF) status_to_error()
41 else if (status & USB_TD_RX_ER_PID) status_to_error()
43 else if (status & (USB_TD_TX_ER_NAK | USB_TD_TX_ER_TIMEOUT)) status_to_error()
45 else if (status & USB_TD_TX_ER_STALL) status_to_error()
47 else if (status & USB_TD_TX_ER_UNDERUN) status_to_error()
49 else if (status & USB_TD_RX_DATA_UNDERUN) status_to_error()
51 else if (status & USB_TD_RX_DATA_OVERUN) status_to_error()
197 if (urb->status == -EINPROGRESS) { fhci_urb_complete_free()
200 urb->status = -EREMOTEIO; fhci_urb_complete_free()
202 urb->status = 0; fhci_urb_complete_free()
209 usb_hcd_giveback_urb(fhci_to_hcd(fhci), urb, urb->status); fhci_urb_complete_free()
216 * Precondition: irqsafe(only for urb-?status locking)
221 u32 cc = td->status; fhci_done_td()
223 /* ISO...drivers see per-TD length/status */ fhci_done_td()
237 urb->iso_frame_desc[td->iso_index].status = fhci_done_td()
241 /* BULK,INT,CONTROL... drivers see aggregate length/status, fhci_done_td()
251 /* update packet status if needed(short may be ok) */ fhci_done_td()
258 if (urb->status == -EINPROGRESS) fhci_done_td()
259 urb->status = status_to_error(cc); fhci_done_td()
278 if (td->status != USB_TD_INPROGRESS) fhci_del_ed_list()
/linux-4.4.14/drivers/spi/
H A Dspi-xcomm.c145 int status = 0; spi_xcomm_transfer_one() local
153 status = -EINVAL; spi_xcomm_transfer_one()
157 status = spi_xcomm_setup_transfer(spi_xcomm, spi, t, &settings); spi_xcomm_transfer_one()
158 if (status < 0) spi_xcomm_transfer_one()
171 status = spi_xcomm_sync_config(spi_xcomm, t->len); spi_xcomm_transfer_one()
172 if (status < 0) spi_xcomm_transfer_one()
176 status = spi_xcomm_sync_config(spi_xcomm, 0); spi_xcomm_transfer_one()
177 if (status < 0) spi_xcomm_transfer_one()
182 status = spi_xcomm_txrx_bufs(spi_xcomm, spi, t); spi_xcomm_transfer_one()
184 if (status < 0) spi_xcomm_transfer_one()
187 if (status > 0) spi_xcomm_transfer_one()
188 msg->actual_length += status; spi_xcomm_transfer_one()
190 status = 0; spi_xcomm_transfer_one()
198 if (status != 0 || !cs_change) spi_xcomm_transfer_one()
201 msg->status = status; spi_xcomm_transfer_one()
204 return status; spi_xcomm_transfer_one()
/linux-4.4.14/drivers/media/usb/uvc/
H A Duvc_status.c84 uvc_trace(UVC_TRACE_STATUS, "Invalid streaming status event " uvc_event_streaming()
106 uvc_trace(UVC_TRACE_STATUS, "Invalid control status event " uvc_event_control()
120 switch (urb->status) { uvc_status_complete()
132 uvc_printk(KERN_WARNING, "Non-zero status (%d) in status " uvc_status_complete()
133 "completion handler.\n", urb->status); uvc_status_complete()
139 switch (dev->status[0] & 0x0f) { uvc_status_complete()
141 uvc_event_control(dev, dev->status, len); uvc_status_complete()
145 uvc_event_streaming(dev, dev->status, len); uvc_status_complete()
149 uvc_trace(UVC_TRACE_STATUS, "Unknown status event " uvc_status_complete()
150 "type %u.\n", dev->status[0]); uvc_status_complete()
158 uvc_printk(KERN_ERR, "Failed to resubmit status URB (%d).\n", uvc_status_complete()
174 dev->status = kzalloc(UVC_MAX_STATUS_SIZE, GFP_KERNEL); uvc_status_init()
175 if (dev->status == NULL) uvc_status_init()
180 kfree(dev->status); uvc_status_init()
195 dev->status, UVC_MAX_STATUS_SIZE, uvc_status_complete, uvc_status_init()
205 kfree(dev->status); uvc_status_cleanup()
/linux-4.4.14/fs/nfsd/
H A Dnfs4recover.c109 int status; nfs4_make_rec_clidname() local
116 status = PTR_ERR(desc.tfm); nfs4_make_rec_clidname()
123 status = -ENOMEM; nfs4_make_rec_clidname()
129 status = crypto_hash_digest(&desc, &sg, sg.length, cksum.data); nfs4_make_rec_clidname()
130 if (status) nfs4_make_rec_clidname()
135 status = 0; nfs4_make_rec_clidname()
140 return status; nfs4_make_rec_clidname()
173 int status; nfsd4_create_clid_dir() local
181 status = nfs4_make_rec_clidname(dname, &clp->cl_name); nfsd4_create_clid_dir()
182 if (status) nfsd4_create_clid_dir()
183 return legacy_recdir_name_error(clp, status); nfsd4_create_clid_dir()
185 status = nfs4_save_creds(&original_cred); nfsd4_create_clid_dir()
186 if (status < 0) nfsd4_create_clid_dir()
189 status = mnt_want_write_file(nn->rec_file); nfsd4_create_clid_dir()
190 if (status) nfsd4_create_clid_dir()
199 status = PTR_ERR(dentry); nfsd4_create_clid_dir()
212 status = vfs_mkdir(d_inode(dir), dentry, S_IRWXU); nfsd4_create_clid_dir()
217 if (status == 0) { nfsd4_create_clid_dir()
227 " and is writeable", status, nfsd4_create_clid_dir()
276 int status; nfsd4_list_rec_dir() local
278 status = nfs4_save_creds(&original_cred); nfsd4_list_rec_dir()
279 if (status < 0) nfsd4_list_rec_dir()
280 return status; nfsd4_list_rec_dir()
282 status = vfs_llseek(nn->rec_file, 0, SEEK_SET); nfsd4_list_rec_dir()
283 if (status < 0) { nfsd4_list_rec_dir()
285 return status; nfsd4_list_rec_dir()
288 status = iterate_dir(nn->rec_file, &ctx.ctx); nfsd4_list_rec_dir()
292 if (!status) { nfsd4_list_rec_dir()
296 status = PTR_ERR(dentry); nfsd4_list_rec_dir()
299 status = f(dir, dentry, nn); nfsd4_list_rec_dir()
313 return status; nfsd4_list_rec_dir()
320 int status; nfsd4_unlink_clid_dir() local
328 status = PTR_ERR(dentry); nfsd4_unlink_clid_dir()
331 status = -ENOENT; nfsd4_unlink_clid_dir()
334 status = vfs_rmdir(d_inode(dir), dentry); nfsd4_unlink_clid_dir()
339 return status; nfsd4_unlink_clid_dir()
348 int status; nfsd4_remove_clid_dir() local
354 status = nfs4_make_rec_clidname(dname, &clp->cl_name); nfsd4_remove_clid_dir()
355 if (status) nfsd4_remove_clid_dir()
356 return legacy_recdir_name_error(clp, status); nfsd4_remove_clid_dir()
358 status = mnt_want_write_file(nn->rec_file); nfsd4_remove_clid_dir()
359 if (status) nfsd4_remove_clid_dir()
363 status = nfs4_save_creds(&original_cred); nfsd4_remove_clid_dir()
364 if (status < 0) nfsd4_remove_clid_dir()
367 status = nfsd4_unlink_clid_dir(dname, HEXDIR_LEN-1, nn); nfsd4_remove_clid_dir()
369 if (status == 0) { nfsd4_remove_clid_dir()
381 if (status) nfsd4_remove_clid_dir()
389 int status; purge_old() local
394 status = vfs_rmdir(d_inode(parent), child); purge_old()
395 if (status) purge_old()
405 int status; nfsd4_recdir_purge_old() local
410 status = mnt_want_write_file(nn->rec_file); nfsd4_recdir_purge_old()
411 if (status) nfsd4_recdir_purge_old()
413 status = nfsd4_list_rec_dir(purge_old, nn); nfsd4_recdir_purge_old()
414 if (status == 0) nfsd4_recdir_purge_old()
419 if (status) nfsd4_recdir_purge_old()
439 int status; nfsd4_recdir_load() local
445 status = nfsd4_list_rec_dir(load_recdir, nn); nfsd4_recdir_load()
446 if (status) nfsd4_recdir_load()
449 return status; nfsd4_recdir_load()
461 int status; nfsd4_init_recdir() local
468 status = nfs4_save_creds(&original_cred); nfsd4_init_recdir()
469 if (status < 0) { nfsd4_init_recdir()
472 status); nfsd4_init_recdir()
473 return status; nfsd4_init_recdir()
480 status = PTR_ERR(nn->rec_file); nfsd4_init_recdir()
485 if (!status) nfsd4_init_recdir()
487 return status; nfsd4_init_recdir()
530 int status; nfsd4_load_reboot_recovery_data() local
532 status = nfsd4_init_recdir(net); nfsd4_load_reboot_recovery_data()
533 if (status) nfsd4_load_reboot_recovery_data()
534 return status; nfsd4_load_reboot_recovery_data()
536 status = nfsd4_recdir_load(net); nfsd4_load_reboot_recovery_data()
537 if (status) nfsd4_load_reboot_recovery_data()
540 return status; nfsd4_load_reboot_recovery_data()
546 int status; nfsd4_legacy_tracking_init() local
554 status = nfs4_legacy_state_init(net); nfsd4_legacy_tracking_init()
555 if (status) nfsd4_legacy_tracking_init()
556 return status; nfsd4_legacy_tracking_init()
558 status = nfsd4_load_reboot_recovery_data(net); nfsd4_legacy_tracking_init()
559 if (status) nfsd4_legacy_tracking_init()
565 return status; nfsd4_legacy_tracking_init()
584 int status; nfs4_reset_recoverydir() local
587 status = kern_path(recdir, LOOKUP_FOLLOW, &path); nfs4_reset_recoverydir()
588 if (status) nfs4_reset_recoverydir()
589 return status; nfs4_reset_recoverydir()
590 status = -ENOTDIR; nfs4_reset_recoverydir()
593 status = 0; nfs4_reset_recoverydir()
596 return status; nfs4_reset_recoverydir()
608 int status; nfsd4_check_legacy_client() local
617 status = nfs4_make_rec_clidname(dname, &clp->cl_name); nfsd4_check_legacy_client()
618 if (status) { nfsd4_check_legacy_client()
619 legacy_recdir_name_error(clp, status); nfsd4_check_legacy_client()
620 return status; nfsd4_check_legacy_client()
1409 int status; nfsd4_client_tracking_init() local
1422 status = nn->client_tracking_ops->init(net); nfsd4_client_tracking_init()
1423 if (!status) nfsd4_client_tracking_init()
1424 return status; nfsd4_client_tracking_init()
1431 status = kern_path(nfs4_recoverydir(), LOOKUP_FOLLOW, &path); nfsd4_client_tracking_init()
1432 if (!status) { nfsd4_client_tracking_init()
1433 status = d_is_dir(path.dentry); nfsd4_client_tracking_init()
1435 if (status) nfsd4_client_tracking_init()
1445 status = nn->client_tracking_ops->init(net); nfsd4_client_tracking_init()
1446 if (status) { nfsd4_client_tracking_init()
1448 "recovery tracking! (%d)\n", status); nfsd4_client_tracking_init()
1451 return status; nfsd4_client_tracking_init()
H A Dnfs4proc.c56 int status; nfsd4_security_inode_setsecctx() local
59 status = security_inode_setsecctx(resfh->fh_dentry, nfsd4_security_inode_setsecctx()
63 if (status) nfsd4_security_inode_setsecctx()
133 __be32 status = nfs_ok; nfsd4_check_open_attributes() local
138 status = check_attr_support(rqstp, cstate, nfsd4_check_open_attributes()
141 status = check_attr_support(rqstp, cstate, nfsd4_check_open_attributes()
145 return status; nfsd4_check_open_attributes()
165 __be32 status; do_set_nfs4_acl() local
167 status = nfsd4_set_nfs4_acl(rqstp, fhp, acl); do_set_nfs4_acl()
168 if (status) do_set_nfs4_acl()
190 __be32 status; do_open_permission() local
205 status = fh_verify(rqstp, current_fh, S_IFREG, accmode); do_open_permission()
207 return status; do_open_permission()
241 __be32 status; do_open_lookup() local
269 status = do_nfsd_create(rqstp, current_fh, open->op_fname.data, do_open_lookup()
275 if (!status && open->op_label.len) do_open_lookup()
283 if (nfsd_create_is_exclusive(open->op_createmode) && status == 0) do_open_lookup()
293 status = nfsd_lookup(rqstp, current_fh, do_open_lookup()
295 if (status) do_open_lookup()
297 status = nfsd_check_obj_isreg(*resfh); do_open_lookup()
298 if (status) do_open_lookup()
309 status = do_open_permission(rqstp, *resfh, open, accmode); do_open_lookup()
312 return status; do_open_lookup()
319 __be32 status; do_open_fhandle() local
344 status = do_open_permission(rqstp, current_fh, open, accmode); do_open_fhandle()
346 return status; do_open_fhandle()
363 __be32 status; nfsd4_open() local
391 status = nfsd4_process_open1(cstate, open, nn); nfsd4_open()
392 if (status == nfserr_replay_me) { nfsd4_open()
397 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); nfsd4_open()
398 if (status) nfsd4_open()
402 status = nfserr_replay_me; nfsd4_open()
404 if (status) nfsd4_open()
407 status = open->op_xdr_error; nfsd4_open()
411 status = nfsd4_check_open_attributes(rqstp, cstate, open); nfsd4_open()
412 if (status) nfsd4_open()
417 status = nfserr_grace; nfsd4_open()
420 status = nfserr_no_grace; nfsd4_open()
427 status = do_open_lookup(rqstp, cstate, open, &resfh); nfsd4_open()
428 if (status) nfsd4_open()
432 status = nfs4_check_open_reclaim(&open->op_clientid, nfsd4_open()
434 if (status) nfsd4_open()
439 status = do_open_fhandle(rqstp, cstate, open); nfsd4_open()
440 if (status) nfsd4_open()
448 status = nfserr_notsupp; nfsd4_open()
453 status = nfserr_inval; nfsd4_open()
461 status = nfsd4_process_open2(rqstp, resfh, open); nfsd4_open()
462 WARN(status && open->op_created, nfsd4_open()
463 "nfsd4_process_open2 failed to open newly-created file! status=%u\n", nfsd4_open()
464 be32_to_cpu(status)); nfsd4_open()
472 nfsd4_bump_seqid(cstate, status); nfsd4_open()
473 return status; nfsd4_open()
486 if (!seqid_mutating_err(ntohl(op->status))) nfsd4_open_omfg()
487 return op->status; nfsd4_open_omfg()
489 return op->status; nfsd4_open_omfg()
490 open->op_xdr_error = op->status; nfsd4_open_omfg()
523 __be32 status; nfsd4_putrootfh() local
526 status = exp_pseudoroot(rqstp, &cstate->current_fh); nfsd4_putrootfh()
527 return status; nfsd4_putrootfh()
603 __be32 status; nfsd4_create() local
608 status = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, nfsd4_create()
610 if (status) nfsd4_create()
611 return status; nfsd4_create()
613 status = check_attr_support(rqstp, cstate, create->cr_bmval, nfsd4_create()
615 if (status) nfsd4_create()
616 return status; nfsd4_create()
620 status = nfsd_symlink(rqstp, &cstate->current_fh, nfsd4_create()
630 status = nfsd_create(rqstp, &cstate->current_fh, nfsd4_create()
640 status = nfsd_create(rqstp, &cstate->current_fh, nfsd4_create()
646 status = nfsd_create(rqstp, &cstate->current_fh, nfsd4_create()
652 status = nfsd_create(rqstp, &cstate->current_fh, nfsd4_create()
659 status = nfsd_create(rqstp, &cstate->current_fh, nfsd4_create()
665 status = nfserr_badtype; nfsd4_create()
668 if (status) nfsd4_create()
683 return status; nfsd4_create()
690 __be32 status; nfsd4_getattr() local
692 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); nfsd4_getattr()
693 if (status) nfsd4_getattr()
694 return status; nfsd4_getattr()
711 __be32 status = nfserr_nofilehandle; nfsd4_link() local
714 return status; nfsd4_link()
715 status = nfsd_link(rqstp, &cstate->current_fh, nfsd4_link()
717 if (!status) nfsd4_link()
719 return status; nfsd4_link()
759 __be32 status; nfsd4_read() local
777 status = nfs4_preprocess_stateid_op(rqstp, cstate, &read->rd_stateid, nfsd4_read()
779 if (status) { nfsd4_read()
783 status = nfs_ok; nfsd4_read()
787 return status; nfsd4_read()
828 __be32 status; nfsd4_remove() local
832 status = nfsd_unlink(rqstp, &cstate->current_fh, 0, nfsd4_remove()
834 if (!status) { nfsd4_remove()
838 return status; nfsd4_remove()
845 __be32 status = nfserr_nofilehandle; nfsd4_rename() local
848 return status; nfsd4_rename()
852 status = nfsd_rename(rqstp, &cstate->save_fh, rename->rn_sname, nfsd4_rename()
855 if (status) nfsd4_rename()
856 return status; nfsd4_rename()
920 __be32 status = nfs_ok; nfsd4_setattr() local
924 status = nfs4_preprocess_stateid_op(rqstp, cstate, nfsd4_setattr()
926 if (status) { nfsd4_setattr()
928 return status; nfsd4_setattr()
934 status = nfs_ok; nfsd4_setattr()
936 status = check_attr_support(rqstp, cstate, setattr->sa_bmval, nfsd4_setattr()
938 if (status) nfsd4_setattr()
942 status = nfsd4_set_nfs4_acl(rqstp, &cstate->current_fh, nfsd4_setattr()
944 if (status) nfsd4_setattr()
947 status = nfsd4_set_nfs4_label(rqstp, &cstate->current_fh, nfsd4_setattr()
949 if (status) nfsd4_setattr()
951 status = nfsd_setattr(rqstp, &cstate->current_fh, &setattr->sa_iattr, nfsd4_setattr()
955 return status; nfsd4_setattr()
982 __be32 status = nfs_ok; nfsd4_write() local
989 status = nfs4_preprocess_stateid_op(rqstp, cstate, stateid, WR_STATE, nfsd4_write()
991 if (status) { nfsd4_write()
993 return status; nfsd4_write()
1003 status = nfsd_vfs_write(rqstp, &cstate->current_fh, filp, nfsd4_write()
1010 return status; nfsd4_write()
1017 __be32 status = nfserr_notsupp; nfsd4_fallocate() local
1020 status = nfs4_preprocess_stateid_op(rqstp, cstate, nfsd4_fallocate()
1023 if (status != nfs_ok) { nfsd4_fallocate()
1025 return status; nfsd4_fallocate()
1028 status = nfsd4_vfs_fallocate(rqstp, &cstate->current_fh, file, nfsd4_fallocate()
1033 return status; nfsd4_fallocate()
1056 __be32 status; nfsd4_seek() local
1059 status = nfs4_preprocess_stateid_op(rqstp, cstate, nfsd4_seek()
1062 if (status) { nfsd4_seek()
1064 return status; nfsd4_seek()
1075 status = nfserr_union_notsupp; nfsd4_seek()
1085 status = nfserrno(seek->seek_pos); nfsd4_seek()
1091 return status; nfsd4_seek()
1105 __be32 status; _nfsd4_verify() local
1107 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); _nfsd4_verify()
1108 if (status) _nfsd4_verify()
1109 return status; _nfsd4_verify()
1111 status = check_attr_support(rqstp, cstate, verify->ve_bmval, NULL); _nfsd4_verify()
1112 if (status) _nfsd4_verify()
1113 return status; _nfsd4_verify()
1130 status = nfsd4_encode_fattr_to_buf(&p, count, &cstate->current_fh, _nfsd4_verify()
1139 if (status == nfserr_resource) _nfsd4_verify()
1140 status = nfserr_not_same; _nfsd4_verify()
1141 if (status) _nfsd4_verify()
1146 status = nfserr_not_same; _nfsd4_verify()
1150 status = nfserr_same; _nfsd4_verify()
1154 return status; _nfsd4_verify()
1161 __be32 status; nfsd4_nverify() local
1163 status = _nfsd4_verify(rqstp, cstate, verify); nfsd4_nverify()
1164 return status == nfserr_not_same ? nfs_ok : status; nfsd4_nverify()
1171 __be32 status; nfsd4_verify() local
1173 status = _nfsd4_verify(rqstp, cstate, verify); nfsd4_verify()
1174 return status == nfserr_same ? nfs_ok : status; nfsd4_verify()
1517 if (op->status == nfserr_op_illegal) nfs41_check_op_ordering()
1606 __be32 status; nfsd4_proc_compound() local
1627 status = nfserr_minor_vers_mismatch; nfsd4_proc_compound()
1631 status = nfs41_check_op_ordering(args); nfsd4_proc_compound()
1632 if (status) { nfsd4_proc_compound()
1634 op->status = status; nfsd4_proc_compound()
1638 while (!status && resp->opcnt < args->opcnt) { nfsd4_proc_compound()
1645 * The XDR decode routines may have pre-set op->status; nfsd4_proc_compound()
1649 if (op->status) { nfsd4_proc_compound()
1651 op->status = nfsd4_open_omfg(rqstp, cstate, op); nfsd4_proc_compound()
1659 op->status = nfserr_nofilehandle; nfsd4_proc_compound()
1664 op->status = nfserr_moved; nfsd4_proc_compound()
1683 op->status = nfsd4_check_resp_size(resp, plen); nfsd4_proc_compound()
1686 if (op->status) nfsd4_proc_compound()
1691 op->status = opdesc->op_func(rqstp, cstate, &op->u); nfsd4_proc_compound()
1693 if (!op->status) { nfsd4_proc_compound()
1701 op->status = check_nfsd_access(current_fh->fh_export, rqstp); nfsd4_proc_compound()
1706 if (cstate->status == nfserr_replay_cache) { nfsd4_proc_compound()
1708 status = op->status; nfsd4_proc_compound()
1711 if (op->status == nfserr_replay_me) { nfsd4_proc_compound()
1714 status = op->status = op->replay->rp_status; nfsd4_proc_compound()
1717 status = op->status; nfsd4_proc_compound()
1720 dprintk("nfsv4 compound op %p opcnt %d #%d: %d: status %d\n", nfsd4_proc_compound()
1722 be32_to_cpu(status)); nfsd4_proc_compound()
1728 cstate->status = status; nfsd4_proc_compound()
1735 dprintk("nfsv4 compound returned %d\n", ntohl(status)); nfsd4_proc_compound()
1736 return status; nfsd4_proc_compound()
/linux-4.4.14/drivers/media/usb/dvb-usb/
H A DcinergyT2-fe.c145 enum fe_status *status) cinergyt2_fe_read_status()
157 *status = 0; cinergyt2_fe_read_status()
160 *status |= FE_HAS_SIGNAL; cinergyt2_fe_read_status()
162 *status |= FE_HAS_LOCK; cinergyt2_fe_read_status()
164 *status |= FE_HAS_SYNC; cinergyt2_fe_read_status()
166 *status |= FE_HAS_CARRIER; cinergyt2_fe_read_status()
168 *status |= FE_HAS_VITERBI; cinergyt2_fe_read_status()
170 if ((*status & (FE_HAS_CARRIER | FE_HAS_VITERBI | FE_HAS_SYNC)) != cinergyt2_fe_read_status()
172 *status &= ~FE_HAS_LOCK; cinergyt2_fe_read_status()
180 struct dvbt_get_status_msg status; cinergyt2_fe_read_ber() local
184 ret = dvb_usb_generic_rw(state->d, cmd, sizeof(cmd), (char *)&status, cinergyt2_fe_read_ber()
185 sizeof(status), 0); cinergyt2_fe_read_ber()
189 *ber = le32_to_cpu(status.viterbi_error_rate); cinergyt2_fe_read_ber()
196 struct dvbt_get_status_msg status; cinergyt2_fe_read_unc_blocks() local
200 ret = dvb_usb_generic_rw(state->d, cmd, sizeof(cmd), (u8 *)&status, cinergyt2_fe_read_unc_blocks()
201 sizeof(status), 0); cinergyt2_fe_read_unc_blocks()
207 *unc = le32_to_cpu(status.uncorrected_block_count); cinergyt2_fe_read_unc_blocks()
215 struct dvbt_get_status_msg status; cinergyt2_fe_read_signal_strength() local
219 ret = dvb_usb_generic_rw(state->d, cmd, sizeof(cmd), (char *)&status, cinergyt2_fe_read_signal_strength()
220 sizeof(status), 0); cinergyt2_fe_read_signal_strength()
226 *strength = (0xffff - le16_to_cpu(status.gain)); cinergyt2_fe_read_signal_strength()
233 struct dvbt_get_status_msg status; cinergyt2_fe_read_snr() local
237 ret = dvb_usb_generic_rw(state->d, cmd, sizeof(cmd), (char *)&status, cinergyt2_fe_read_snr()
238 sizeof(status), 0); cinergyt2_fe_read_snr()
243 *snr = (status.snr << 8) | status.snr; cinergyt2_fe_read_snr()
144 cinergyt2_fe_read_status(struct dvb_frontend *fe, enum fe_status *status) cinergyt2_fe_read_status() argument
/linux-4.4.14/security/integrity/ima/
H A Dima_appraise.c89 int func, enum integrity_status status) ima_set_cache_status()
93 iint->ima_mmap_status = status; ima_set_cache_status()
96 iint->ima_bprm_status = status; ima_set_cache_status()
99 iint->ima_module_status = status; ima_set_cache_status()
102 iint->ima_firmware_status = status; ima_set_cache_status()
106 iint->ima_file_status = status; ima_set_cache_status()
194 enum integrity_status status = INTEGRITY_UNKNOWN; ima_appraise_measurement() local
205 status = INTEGRITY_NOLABEL; ima_appraise_measurement()
208 status = INTEGRITY_PASS; ima_appraise_measurement()
213 status = evm_verifyxattr(dentry, XATTR_NAME_IMA, xattr_value, rc, iint); ima_appraise_measurement()
214 if ((status != INTEGRITY_PASS) && (status != INTEGRITY_UNKNOWN)) { ima_appraise_measurement()
215 if ((status == INTEGRITY_NOLABEL) ima_appraise_measurement()
216 || (status == INTEGRITY_NOXATTRS)) ima_appraise_measurement()
218 else if (status == INTEGRITY_FAIL) ima_appraise_measurement()
229 status = INTEGRITY_FAIL; ima_appraise_measurement()
244 status = INTEGRITY_FAIL; ima_appraise_measurement()
247 status = INTEGRITY_PASS; ima_appraise_measurement()
256 status = INTEGRITY_UNKNOWN; ima_appraise_measurement()
259 status = INTEGRITY_FAIL; ima_appraise_measurement()
261 status = INTEGRITY_PASS; ima_appraise_measurement()
265 status = INTEGRITY_UNKNOWN; ima_appraise_measurement()
271 if (status != INTEGRITY_PASS) { ima_appraise_measurement()
276 status = INTEGRITY_PASS; ima_appraise_measurement()
283 ima_set_cache_status(iint, func, status); ima_appraise_measurement()
284 return status; ima_appraise_measurement()
88 ima_set_cache_status(struct integrity_iint_cache *iint, int func, enum integrity_status status) ima_set_cache_status() argument
/linux-4.4.14/drivers/isdn/hisax/
H A Dst5481_usb.c134 if (unlikely(urb->status < 0)) { usb_ctrl_complete()
135 switch (urb->status) { usb_ctrl_complete()
139 DBG(1, "urb killed status %d", urb->status); usb_ctrl_complete()
142 WARNING("urb status %d", urb->status); usb_ctrl_complete()
181 int status; usb_int_complete() local
183 switch (urb->status) { usb_int_complete()
191 DBG(2, "urb shutting down with status: %d", urb->status); usb_int_complete()
194 WARNING("nonzero urb status received: %d", urb->status); usb_int_complete()
229 status = usb_submit_urb(urb, GFP_ATOMIC); usb_int_complete()
230 if (status) usb_int_complete()
231 WARNING("usb_submit_urb failed with result %d", status); usb_int_complete()
246 int status; st5481_setup_usb() local
252 if ((status = usb_reset_configuration(dev)) < 0) { st5481_setup_usb()
253 WARNING("reset_configuration failed,status=%d", status); st5481_setup_usb()
254 return status; st5481_setup_usb()
274 if ((status = usb_set_interface(dev, 0, 3)) < 0) { st5481_setup_usb()
275 WARNING("usb_set_interface failed,status=%d", status); st5481_setup_usb()
276 return status; st5481_setup_usb()
491 int len, count, status; usb_in_complete() local
493 if (unlikely(urb->status < 0)) { usb_in_complete()
494 switch (urb->status) { usb_in_complete()
498 DBG(1, "urb killed status %d", urb->status); usb_in_complete()
501 WARNING("urb status %d", urb->status); usb_in_complete()
513 status = len; usb_in_complete()
516 status = isdnhdlc_decode(&in->hdlc_state, ptr, len, &count, usb_in_complete()
522 if (status > 0) { usb_in_complete()
524 DBG(4, "count=%d", status); usb_in_complete()
525 DBG_PACKET(0x400, in->rcvbuf, status); usb_in_complete()
526 if (!(skb = dev_alloc_skb(status))) { usb_in_complete()
530 memcpy(skb_put(skb, status), in->rcvbuf, status); usb_in_complete() local
532 } else if (status == -HDLC_CRC_ERROR) { usb_in_complete()
534 } else if (status == -HDLC_FRAMING_ERROR) { usb_in_complete()
536 } else if (status == -HDLC_LENGTH_ERROR) { usb_in_complete()
592 if (urb->status < 0) { st5481_isoc_flatten()
593 return urb->status; st5481_isoc_flatten()
601 if (pipd->status < 0) { st5481_isoc_flatten()
602 return (pipd->status); st5481_isoc_flatten()
/linux-4.4.14/arch/powerpc/platforms/powernv/
H A Dopal-flash.c27 /* FLASH status codes */
31 /* Validate image status values */
35 /* Manage image status values */
38 /* Flash image status values */
83 /* Image status */
92 int status; member in struct:image_data_t
105 int status; /* Return status */ member in struct:validate_flash_t
112 int status; /* Return status */ member in struct:manage_flash_t
116 int status; /* Return status */ member in struct:update_flash_t
124 /* Initialize update_flash_data status to No Operation */
126 .status = FLASH_NO_OP,
143 validate_flash_data.status = ret; opal_flash_validate()
161 if (args_buf->status < VALIDATE_TMP_UPDATE) { validate_show()
162 len = sprintf(buf, "%d\n", args_buf->status); validate_show()
182 /* Set status to default */ validate_show()
183 args_buf->status = FLASH_NO_OP; validate_show()
205 if (image_data.status != IMAGE_READY || validate_store()
208 args_buf->status = VALIDATE_IMG_INCOMPLETE; validate_store()
215 args_buf->status = VALIDATE_IMG_READY; validate_store()
233 args_buf->status = opal_manage_flash(op); opal_flash_manage()
237 * Show manage flash status
245 rc = sprintf(buf, "%d\n", args_buf->status); manage_show()
246 /* Set status to default*/ manage_show()
247 args_buf->status = FLASH_NO_OP; manage_show()
326 if (update_flash_data.status != FLASH_IMG_READY) opal_flash_term_callback()
348 * Show candidate image status
354 return sprintf(buf, "%d\n", args_buf->status); update_show()
373 if (args_buf->status == FLASH_IMG_READY) update_store()
375 args_buf->status = FLASH_NO_OP; update_store()
379 if (image_data.status == IMAGE_READY) update_store()
380 args_buf->status = update_store()
383 args_buf->status = FLASH_INVALID_IMG; update_store()
410 image_data.status = IMAGE_INVALID; free_image_buf()
454 image_data.status = IMAGE_LOADING; alloc_image_buf()
479 if (update_flash_data.status == FLASH_IMG_READY) image_data_write()
488 if (image_data.status != IMAGE_LOADING) { image_data_write()
501 /* Set image status */ image_data_write()
504 image_data.status = IMAGE_READY; image_data_write()
579 /* Set default status */ opal_flash_update_init()
580 validate_flash_data.status = FLASH_NO_OP; opal_flash_update_init()
581 manage_flash_data.status = FLASH_NO_OP; opal_flash_update_init()
582 update_flash_data.status = FLASH_NO_OP; opal_flash_update_init()
583 image_data.status = IMAGE_INVALID; opal_flash_update_init()
/linux-4.4.14/drivers/scsi/be2iscsi/
H A Dbe_cmds.c82 u32 status; be_chk_reset_complete() local
89 status = readl((void *)mpu_sem); be_chk_reset_complete()
91 if ((status & 0x80000000) || (status & 0x0000FFFF) == 0xC000) be_chk_reset_complete()
97 if ((status & 0x80000000) || (!num_loop)) { be_chk_reset_complete()
100 "status = 0x%x\n", status); be_chk_reset_complete()
155 uint16_t status = 0, addl_status = 0, wrb_num = 0; beiscsi_mccq_compl() local
208 status = (mcc_tag_response & CQE_STATUS_MASK); beiscsi_mccq_compl()
224 if (status || addl_status) { beiscsi_mccq_compl()
233 status, addl_status); beiscsi_mccq_compl()
235 if (status == MCC_STATUS_INSUFFICIENT_BUFFER) { beiscsi_mccq_compl()
307 * be_mcc_compl_process()- Check the MBX comapletion status
309 * @compl: Completion status of MBX Command
311 * Check for the MBX completion status when BMBX method used
328 compl_status = (compl->status >> CQE_STATUS_COMPL_SHIFT) & be_mcc_compl_process()
331 extd_status = (compl->status >> CQE_STATUS_EXTD_SHIFT) & be_mcc_compl_process()
338 "status(compl/extd)=%d/%d\n", be_mcc_compl_process()
361 compl_status = (compl->status >> CQE_STATUS_COMPL_SHIFT) & be_mcc_compl_process_isr()
368 extd_status = (compl->status >> CQE_STATUS_EXTD_SHIFT) & be_mcc_compl_process_isr()
467 int num = 0, status = 0; beiscsi_process_mcc() local
510 status = be_mcc_compl_process(ctrl, compl); beiscsi_process_mcc()
521 return status; beiscsi_process_mcc()
537 int i, status; be_mcc_wait_compl() local
542 status = beiscsi_process_mcc(phba); be_mcc_wait_compl()
543 if (status) be_mcc_wait_compl()
544 return status; be_mcc_wait_compl()
578 * be_mbox_db_ready_wait()- Check ready status
581 * Check for the ready status of FW to send BMBX
646 int status; be_mbox_notify() local
654 status = be_mbox_db_ready_wait(ctrl); be_mbox_notify()
655 if (status) be_mbox_notify()
656 return status; be_mbox_notify()
663 status = be_mbox_db_ready_wait(ctrl); be_mbox_notify()
664 if (status) be_mbox_notify()
665 return status; be_mbox_notify()
673 status = be_mbox_db_ready_wait(ctrl); be_mbox_notify()
674 if (status) be_mbox_notify()
675 return status; be_mbox_notify()
678 status = be_mcc_compl_process(ctrl, &mbox->compl); be_mbox_notify()
680 if (status) { be_mbox_notify()
685 return status; be_mbox_notify()
703 int status; be_mbox_notify_wait() local
711 status = be_mbox_db_ready_wait(ctrl); be_mbox_notify_wait()
712 if (status) be_mbox_notify_wait()
713 return status; be_mbox_notify_wait()
721 status = be_mbox_db_ready_wait(ctrl); be_mbox_notify_wait()
722 if (status != 0) be_mbox_notify_wait()
723 return status; be_mbox_notify_wait()
730 status = be_mbox_db_ready_wait(ctrl); be_mbox_notify_wait()
731 if (status != 0) be_mbox_notify_wait()
732 return status; be_mbox_notify_wait()
736 status = be_mcc_compl_process(ctrl, &mbox->compl); be_mbox_notify_wait()
738 if (status) be_mbox_notify_wait()
739 return status; be_mbox_notify_wait()
834 int status; beiscsi_cmd_eq_create() local
858 status = be_mbox_notify(ctrl); beiscsi_cmd_eq_create()
859 if (!status) { beiscsi_cmd_eq_create()
864 return status; beiscsi_cmd_eq_create()
881 int status; be_cmd_fw_initialize() local
898 status = be_mbox_notify(ctrl); be_cmd_fw_initialize()
899 if (status) be_cmd_fw_initialize()
904 return status; be_cmd_fw_initialize()
921 int status; be_cmd_fw_uninit() local
939 status = be_mbox_notify(ctrl); be_cmd_fw_uninit()
940 if (status) be_cmd_fw_uninit()
945 return status; be_cmd_fw_uninit()
958 int status; beiscsi_cmd_cq_create() local
1001 status = be_mbox_notify(ctrl); beiscsi_cmd_cq_create()
1002 if (!status) { beiscsi_cmd_cq_create()
1007 "BC_%d : In be_cmd_cq_create, status=ox%08x\n", beiscsi_cmd_cq_create()
1008 status); beiscsi_cmd_cq_create()
1012 return status; beiscsi_cmd_cq_create()
1032 int status; beiscsi_cmd_mccq_create() local
1059 status = be_mbox_notify_wait(phba); beiscsi_cmd_mccq_create()
1060 if (!status) { beiscsi_cmd_mccq_create()
1067 return status; beiscsi_cmd_mccq_create()
1077 int status; beiscsi_cmd_q_destroy() local
1121 status = be_mbox_notify(ctrl); beiscsi_cmd_q_destroy()
1124 return status; beiscsi_cmd_q_destroy()
1156 int status; be_cmd_create_default_pdu_queue() local
1207 status = be_mbox_notify(ctrl); be_cmd_create_default_pdu_queue()
1208 if (!status) { be_cmd_create_default_pdu_queue()
1232 return status; be_cmd_create_default_pdu_queue()
1256 int status; be_cmd_wrbq_create() local
1275 status = be_mbox_notify(ctrl); be_cmd_wrbq_create()
1276 if (!status) { be_cmd_wrbq_create()
1290 return status; be_cmd_wrbq_create()
1298 int status; be_cmd_iscsi_post_template_hdr() local
1312 status = be_mbox_notify(ctrl); be_cmd_iscsi_post_template_hdr()
1314 return status; be_cmd_iscsi_post_template_hdr()
1321 int status; be_cmd_iscsi_remove_template_hdr() local
1333 status = be_mbox_notify(ctrl); be_cmd_iscsi_remove_template_hdr()
1335 return status; be_cmd_iscsi_remove_template_hdr()
1345 int status; be_cmd_iscsi_post_sgl_pages() local
1373 status = be_mbox_notify(ctrl); be_cmd_iscsi_post_sgl_pages()
1374 if (status) { be_cmd_iscsi_post_sgl_pages()
1383 if (status != 0) be_cmd_iscsi_post_sgl_pages()
1385 return status; be_cmd_iscsi_post_sgl_pages()
1393 int status; beiscsi_cmd_reset_function() local
1401 status = be_mbox_notify_wait(phba); beiscsi_cmd_reset_function()
1404 return status; beiscsi_cmd_reset_function()
/linux-4.4.14/drivers/edac/
H A Dppc4xx_edac.c174 * Various status data gathered and manipulated when checking and
175 * reporting ECC status.
274 * @status: A pointer to the ECC status structure to check for an
285 ppc4xx_edac_check_bank_error(const struct ppc4xx_ecc_status *status, ppc4xx_edac_check_bank_error() argument
290 return status->ecces & SDRAM_ECCES_BK0ER; ppc4xx_edac_check_bank_error()
292 return status->ecces & SDRAM_ECCES_BK1ER; ppc4xx_edac_check_bank_error()
299 * ppc4xx_edac_generate_bank_message - generate interpretted bank status message
302 * @status: A pointer to the ECC status structure to generate the
310 * field of the specified ECC status.
317 const struct ppc4xx_ecc_status *status, ppc4xx_edac_generate_bank_message()
334 if (ppc4xx_edac_check_bank_error(status, row)) { ppc4xx_edac_generate_bank_message()
364 * @status: A pointer to the ECC status structure to generate the
372 * field of the specified ECC status.
379 const struct ppc4xx_ecc_status *status, ppc4xx_edac_generate_checkbit_message()
386 switch (status->ecces & SDRAM_ECCES_CKBER_MASK) { ppc4xx_edac_generate_checkbit_message()
422 * @status: A pointer to the ECC status structure to generate the
430 * field of the specified ECC status.
437 const struct ppc4xx_ecc_status *status, ppc4xx_edac_generate_lane_message()
456 if ((status->ecces & SDRAM_ECCES_BNCE_ENCODE(lane)) != 0) { ppc4xx_edac_generate_lane_message()
484 * ppc4xx_edac_generate_ecc_message - generate interpretted ECC status message
487 * @status: A pointer to the ECC status structure to generate the
495 * the specified ECC status.
502 const struct ppc4xx_ecc_status *status, ppc4xx_edac_generate_ecc_message()
508 n = ppc4xx_edac_generate_bank_message(mci, status, buffer, size); ppc4xx_edac_generate_ecc_message()
517 n = ppc4xx_edac_generate_checkbit_message(mci, status, buffer, size); ppc4xx_edac_generate_ecc_message()
526 n = ppc4xx_edac_generate_lane_message(mci, status, buffer, size); ppc4xx_edac_generate_ecc_message()
540 * ppc4xx_edac_generate_plb_message - generate interpretted PLB status message
543 * @status: A pointer to the ECC status structure to generate the
551 * and/or WMIRQ registers of the specified ECC status.
558 const struct ppc4xx_ecc_status *status, ppc4xx_edac_generate_plb_message()
565 if ((status->besr & SDRAM_BESR_MASK) == 0) ppc4xx_edac_generate_plb_message()
568 if ((status->besr & SDRAM_BESR_M0ET_MASK) == SDRAM_BESR_M0ET_NONE) ppc4xx_edac_generate_plb_message()
571 read = ((status->besr & SDRAM_BESR_M0RW_MASK) == SDRAM_BESR_M0RW_READ); ppc4xx_edac_generate_plb_message()
573 master = SDRAM_BESR_M0ID_DECODE(status->besr); ppc4xx_edac_generate_plb_message()
585 * ppc4xx_edac_generate_message - generate interpretted status message
588 * @status: A pointer to the ECC status structure to generate the
595 * EDAC report message from the specified ECC status.
599 const struct ppc4xx_ecc_status *status, ppc4xx_edac_generate_message()
608 n = ppc4xx_edac_generate_ecc_message(mci, status, buffer, size); ppc4xx_edac_generate_message()
616 ppc4xx_edac_generate_plb_message(mci, status, buffer, size); ppc4xx_edac_generate_message()
621 * ppc4xx_ecc_dump_status - dump controller ECC status registers
623 * associated with the status being dumped.
624 * @status: A pointer to the ECC status structure to generate the
628 * interpretted specified ECC status.
632 const struct ppc4xx_ecc_status *status) ppc4xx_ecc_dump_status()
636 ppc4xx_edac_generate_message(mci, status, message, sizeof(message)); ppc4xx_ecc_dump_status()
645 status->ecces, ppc4xx_ecc_dump_status()
646 status->wmirq, ppc4xx_ecc_dump_status()
647 status->besr, ppc4xx_ecc_dump_status()
648 status->bearh, ppc4xx_ecc_dump_status()
649 status->bearl, ppc4xx_ecc_dump_status()
655 * ppc4xx_ecc_get_status - get controller ECC status
657 * associated with the status being retrieved.
658 * @status: A pointer to the ECC status structure to populate the
659 * ECC status with.
662 * status registers that deal with ibm,sdram-4xx-ddr2 ECC errors.
669 struct ppc4xx_ecc_status *status) ppc4xx_ecc_get_status()
674 status->ecces = mfsdram(dcr_host, SDRAM_ECCES) & SDRAM_ECCES_MASK; ppc4xx_ecc_get_status()
675 status->wmirq = mfsdram(dcr_host, SDRAM_WMIRQ) & SDRAM_WMIRQ_MASK; ppc4xx_ecc_get_status()
676 status->besr = mfsdram(dcr_host, SDRAM_BESR) & SDRAM_BESR_MASK; ppc4xx_ecc_get_status()
677 status->bearl = mfsdram(dcr_host, SDRAM_BEARL); ppc4xx_ecc_get_status()
678 status->bearh = mfsdram(dcr_host, SDRAM_BEARH); ppc4xx_ecc_get_status()
682 * ppc4xx_ecc_clear_status - clear controller ECC status
684 * associated with the status being cleared.
685 * @status: A pointer to the ECC status structure containing the
686 * values to write to clear the ECC status.
688 * This routine clears--by writing the masked (as appropriate) status
689 * values back to--the status registers that deal with
694 const struct ppc4xx_ecc_status *status) ppc4xx_ecc_clear_status()
699 mtsdram(dcr_host, SDRAM_ECCES, status->ecces & SDRAM_ECCES_MASK); ppc4xx_ecc_clear_status()
700 mtsdram(dcr_host, SDRAM_WMIRQ, status->wmirq & SDRAM_WMIRQ_MASK); ppc4xx_ecc_clear_status()
701 mtsdram(dcr_host, SDRAM_BESR, status->besr & SDRAM_BESR_MASK); ppc4xx_ecc_clear_status()
710 * @status: A pointer to the ECC status structure associated with
715 * enough status available to use the full EDAC correctable error
721 const struct ppc4xx_ecc_status *status) ppc4xx_edac_handle_ce()
726 ppc4xx_edac_generate_message(mci, status, message, sizeof(message)); ppc4xx_edac_handle_ce()
729 if (ppc4xx_edac_check_bank_error(status, row)) ppc4xx_edac_handle_ce()
741 * @status: A pointer to the ECC status structure associated with
749 const struct ppc4xx_ecc_status *status) ppc4xx_edac_handle_ue()
751 const u64 bear = ((u64)status->bearh << 32 | status->bearl); ppc4xx_edac_handle_ue()
757 ppc4xx_edac_generate_message(mci, status, message, sizeof(message)); ppc4xx_edac_handle_ue()
760 if (ppc4xx_edac_check_bank_error(status, row)) ppc4xx_edac_handle_ue()
783 struct ppc4xx_ecc_status status; ppc4xx_edac_check() local
785 ppc4xx_ecc_get_status(mci, &status); ppc4xx_edac_check()
789 ppc4xx_ecc_dump_status(mci, &status); ppc4xx_edac_check()
792 if (status.ecces & SDRAM_ECCES_UE) ppc4xx_edac_check()
793 ppc4xx_edac_handle_ue(mci, &status); ppc4xx_edac_check()
795 if (status.ecces & SDRAM_ECCES_CE) ppc4xx_edac_check()
796 ppc4xx_edac_handle_ce(mci, &status); ppc4xx_edac_check()
798 ppc4xx_ecc_clear_status(mci, &status); ppc4xx_edac_check()
810 * polling to check, report and clear the ECC status.
897 int status = 0; ppc4xx_edac_init_csrows() local
960 status = -EINVAL; ppc4xx_edac_init_csrows()
990 return status; ppc4xx_edac_init_csrows()
1015 int status = 0; ppc4xx_edac_mc_init() local
1079 status = ppc4xx_edac_init_csrows(mci, mcopt1); ppc4xx_edac_mc_init()
1081 if (status) ppc4xx_edac_mc_init()
1085 return status; ppc4xx_edac_mc_init()
1106 int status = 0; ppc4xx_edac_register_irq() local
1117 status = -ENODEV; ppc4xx_edac_register_irq()
1121 status = request_irq(ded_irq, ppc4xx_edac_register_irq()
1127 if (status < 0) { ppc4xx_edac_register_irq()
1131 status = -ENODEV; ppc4xx_edac_register_irq()
1135 status = request_irq(sec_irq, ppc4xx_edac_register_irq()
1141 if (status < 0) { ppc4xx_edac_register_irq()
1145 status = -ENODEV; ppc4xx_edac_register_irq()
1164 return status; ppc4xx_edac_register_irq()
1232 int status = 0; ppc4xx_edac_probe() local
1257 status = ppc4xx_edac_map_dcrs(np, &dcr_host); ppc4xx_edac_probe()
1259 if (status) ppc4xx_edac_probe()
1260 return status; ppc4xx_edac_probe()
1274 status = -ENODEV; ppc4xx_edac_probe()
1295 status = -ENOMEM; ppc4xx_edac_probe()
1299 status = ppc4xx_edac_mc_init(mci, op, &dcr_host, mcopt1); ppc4xx_edac_probe()
1301 if (status) { ppc4xx_edac_probe()
1316 status = -ENODEV; ppc4xx_edac_probe()
1321 status = ppc4xx_edac_register_irq(op, mci); ppc4xx_edac_probe()
1323 if (status) ppc4xx_edac_probe()
1338 return status; ppc4xx_edac_probe()
316 ppc4xx_edac_generate_bank_message(const struct mem_ctl_info *mci, const struct ppc4xx_ecc_status *status, char *buffer, size_t size) ppc4xx_edac_generate_bank_message() argument
378 ppc4xx_edac_generate_checkbit_message(const struct mem_ctl_info *mci, const struct ppc4xx_ecc_status *status, char *buffer, size_t size) ppc4xx_edac_generate_checkbit_message() argument
436 ppc4xx_edac_generate_lane_message(const struct mem_ctl_info *mci, const struct ppc4xx_ecc_status *status, char *buffer, size_t size) ppc4xx_edac_generate_lane_message() argument
501 ppc4xx_edac_generate_ecc_message(const struct mem_ctl_info *mci, const struct ppc4xx_ecc_status *status, char *buffer, size_t size) ppc4xx_edac_generate_ecc_message() argument
557 ppc4xx_edac_generate_plb_message(const struct mem_ctl_info *mci, const struct ppc4xx_ecc_status *status, char *buffer, size_t size) ppc4xx_edac_generate_plb_message() argument
598 ppc4xx_edac_generate_message(const struct mem_ctl_info *mci, const struct ppc4xx_ecc_status *status, char *buffer, size_t size) ppc4xx_edac_generate_message() argument
631 ppc4xx_ecc_dump_status(const struct mem_ctl_info *mci, const struct ppc4xx_ecc_status *status) ppc4xx_ecc_dump_status() argument
668 ppc4xx_ecc_get_status(const struct mem_ctl_info *mci, struct ppc4xx_ecc_status *status) ppc4xx_ecc_get_status() argument
693 ppc4xx_ecc_clear_status(const struct mem_ctl_info *mci, const struct ppc4xx_ecc_status *status) ppc4xx_ecc_clear_status() argument
720 ppc4xx_edac_handle_ce(struct mem_ctl_info *mci, const struct ppc4xx_ecc_status *status) ppc4xx_edac_handle_ce() argument
748 ppc4xx_edac_handle_ue(struct mem_ctl_info *mci, const struct ppc4xx_ecc_status *status) ppc4xx_edac_handle_ue() argument
/linux-4.4.14/drivers/isdn/hardware/eicon/
H A Dadapter.h13 dword status; member in struct:_diva_um_idi_adapter
/linux-4.4.14/drivers/net/ethernet/altera/
H A Daltera_msgdma.c43 msgdma_csroffs(status)); msgdma_reset()
49 if (tse_bit_is_clear(priv->rx_dma_csr, msgdma_csroffs(status), msgdma_reset()
59 /* clear all status bits */ msgdma_reset()
60 csrwr32(MSGDMA_CSR_STAT_MASK, priv->rx_dma_csr, msgdma_csroffs(status)); msgdma_reset()
64 msgdma_csroffs(status)); msgdma_reset()
71 if (tse_bit_is_clear(priv->tx_dma_csr, msgdma_csroffs(status), msgdma_reset()
81 /* clear all status bits */ msgdma_reset()
82 csrwr32(MSGDMA_CSR_STAT_MASK, priv->tx_dma_csr, msgdma_csroffs(status)); msgdma_reset()
111 csrwr32(MSGDMA_CSR_STAT_IRQ, priv->rx_dma_csr, msgdma_csroffs(status)); msgdma_clear_rxirq()
116 csrwr32(MSGDMA_CSR_STAT_IRQ, priv->tx_dma_csr, msgdma_csroffs(status)); msgdma_clear_txirq()
141 u32 status; msgdma_tx_completions() local
151 status = csrrd32(priv->tx_dma_csr, msgdma_csroffs(status)); msgdma_tx_completions()
152 if (status & MSGDMA_CSR_STAT_BUSY) msgdma_tx_completions()
186 /* status is returned on upper 16 bits,
200 msgdma_respoffs(status)); msgdma_rx_status()
/linux-4.4.14/arch/s390/include/asm/
H A Dsigp.h28 /* SIGP cpu status bits */
40 u32 *status) __pcpu_sigp()
50 if (status && cc == 1) __pcpu_sigp()
51 *status = reg1; __pcpu_sigp()
39 __pcpu_sigp(u16 addr, u8 order, unsigned long parm, u32 *status) __pcpu_sigp() argument
/linux-4.4.14/arch/mips/cavium-octeon/
H A Dcpu.c25 unsigned int status; cnmips_cu2_call() local
32 status = read_c0_status(); cnmips_cu2_call()
33 write_c0_status(status | ST0_CU2); cnmips_cu2_call()
35 write_c0_status(status & ~ST0_CU2); cnmips_cu2_call()
/linux-4.4.14/arch/m32r/kernel/
H A Dasm-offsets.c8 OFFSET(TI_STATUS, thread_info, status); foo()
/linux-4.4.14/arch/avr32/boards/merisc/
H A Dmerisc_sysfs.c55 int status; merisc_sysfs_init() local
57 status = class_register(&merisc_class); merisc_sysfs_init()
58 if (status < 0) merisc_sysfs_init()
59 return status; merisc_sysfs_init()
/linux-4.4.14/arch/arm/mach-pxa/include/mach/
H A Dregs-ost.h22 #define OSSR_M3 (1 << 3) /* Match status channel 3 */
23 #define OSSR_M2 (1 << 2) /* Match status channel 2 */
24 #define OSSR_M1 (1 << 1) /* Match status channel 1 */
25 #define OSSR_M0 (1 << 0) /* Match status channel 0 */
/linux-4.4.14/drivers/input/misc/
H A Dsgi_btns.c31 u8 status; button_status() local
33 status = readb(&sgioc->panel) ^ 0xa0; button_status()
34 return ((status & 0x80) >> 6) | ((status & 0x20) >> 5); button_status()
43 u64 status; button_status() local
45 status = readq(&mace->perif.audio.control); button_status()
46 writeq(status & ~(3U << 23), &mace->perif.audio.control); button_status()
48 return (status >> 23) & 3; button_status()
70 u8 status; handle_buttons() local
73 status = button_status(); handle_buttons()
76 if (status & (1U << i)) { handle_buttons()
/linux-4.4.14/drivers/pcmcia/
H A Dpxa2xx_mainstone.c60 unsigned long status, flip; mst_pcmcia_socket_state() local
62 status = (skt->nr == 0) ? MST_PCMCIA0 : MST_PCMCIA1; mst_pcmcia_socket_state()
63 flip = (status ^ mst_pcmcia_status[skt->nr]) & MST_PCMCIA_nSTSCHG_BVD1; mst_pcmcia_socket_state()
71 mst_pcmcia_status[skt->nr] = status; mst_pcmcia_socket_state()
72 if (status & MST_PCMCIA_nSTSCHG_BVD1) mst_pcmcia_socket_state()
80 state->detect = (status & MST_PCMCIA_nCD) ? 0 : 1; mst_pcmcia_socket_state()
81 state->ready = (status & MST_PCMCIA_nIRQ) ? 1 : 0; mst_pcmcia_socket_state()
82 state->bvd1 = (status & MST_PCMCIA_nSTSCHG_BVD1) ? 1 : 0; mst_pcmcia_socket_state()
83 state->bvd2 = (status & MST_PCMCIA_nSPKR_BVD2) ? 1 : 0; mst_pcmcia_socket_state()
84 state->vs_3v = (status & MST_PCMCIA_nVS1) ? 0 : 1; mst_pcmcia_socket_state()
85 state->vs_Xv = (status & MST_PCMCIA_nVS2) ? 0 : 1; mst_pcmcia_socket_state()
H A Dsa1111_generic.c69 unsigned long status = sa1111_readl(s->dev->mapbase + PCSR); sa1111_pcmcia_socket_state() local
73 state->detect = status & PCSR_S0_DETECT ? 0 : 1; sa1111_pcmcia_socket_state()
74 state->ready = status & PCSR_S0_READY ? 1 : 0; sa1111_pcmcia_socket_state()
75 state->bvd1 = status & PCSR_S0_BVD1 ? 1 : 0; sa1111_pcmcia_socket_state()
76 state->bvd2 = status & PCSR_S0_BVD2 ? 1 : 0; sa1111_pcmcia_socket_state()
77 state->wrprot = status & PCSR_S0_WP ? 1 : 0; sa1111_pcmcia_socket_state()
78 state->vs_3v = status & PCSR_S0_VS1 ? 0 : 1; sa1111_pcmcia_socket_state()
79 state->vs_Xv = status & PCSR_S0_VS2 ? 0 : 1; sa1111_pcmcia_socket_state()
83 state->detect = status & PCSR_S1_DETECT ? 0 : 1; sa1111_pcmcia_socket_state()
84 state->ready = status & PCSR_S1_READY ? 1 : 0; sa1111_pcmcia_socket_state()
85 state->bvd1 = status & PCSR_S1_BVD1 ? 1 : 0; sa1111_pcmcia_socket_state()
86 state->bvd2 = status & PCSR_S1_BVD2 ? 1 : 0; sa1111_pcmcia_socket_state()
87 state->wrprot = status & PCSR_S1_WP ? 1 : 0; sa1111_pcmcia_socket_state()
88 state->vs_3v = status & PCSR_S1_VS1 ? 0 : 1; sa1111_pcmcia_socket_state()
89 state->vs_Xv = status & PCSR_S1_VS2 ? 0 : 1; sa1111_pcmcia_socket_state()
/linux-4.4.14/tools/power/acpi/os_specific/service_layers/
H A Doslinuxtbl.c143 * PARAMETERS: default_status - Default error status to return
195 acpi_status status = AE_OK; acpi_os_get_table_by_address() local
199 status = osl_table_initialize(); acpi_os_get_table_by_address()
200 if (ACPI_FAILURE(status)) { acpi_os_get_table_by_address()
201 return (status); acpi_os_get_table_by_address()
206 status = osl_map_table(address, NULL, &mapped_table); acpi_os_get_table_by_address()
207 if (ACPI_FAILURE(status)) { acpi_os_get_table_by_address()
208 return (status); acpi_os_get_table_by_address()
215 status = AE_BAD_HEADER; acpi_os_get_table_by_address()
221 status = AE_NO_MEMORY; acpi_os_get_table_by_address()
230 return (status); acpi_os_get_table_by_address()
258 acpi_status status; acpi_os_get_table_by_name() local
262 status = osl_table_initialize(); acpi_os_get_table_by_name()
263 if (ACPI_FAILURE(status)) { acpi_os_get_table_by_name()
264 return (status); acpi_os_get_table_by_name()
273 status = acpi_os_get_table_by_name()
278 status = osl_get_customized_table(STATIC_TABLE_DIR, signature, acpi_os_get_table_by_name()
282 if (ACPI_FAILURE(status) && status == AE_LIMIT) { acpi_os_get_table_by_name()
287 status = acpi_os_get_table_by_name()
294 return (status); acpi_os_get_table_by_name()
387 acpi_status status; acpi_os_get_table_by_index() local
392 status = osl_table_initialize(); acpi_os_get_table_by_index()
393 if (ACPI_FAILURE(status)) { acpi_os_get_table_by_index()
394 return (status); acpi_os_get_table_by_index()
412 status = acpi_os_get_table_by_name(info->signature, info->instance, acpi_os_get_table_by_index()
415 if (ACPI_SUCCESS(status)) { acpi_os_get_table_by_index()
418 return (status); acpi_os_get_table_by_index()
578 acpi_status status; osl_table_initialize() local
589 status = osl_load_rsdp(); osl_table_initialize()
590 if (ACPI_FAILURE(status)) { osl_table_initialize()
591 return (status); osl_table_initialize()
603 status = osl_get_bios_table(ACPI_SIG_XSDT, 0, osl_table_initialize()
608 if (ACPI_FAILURE(status)) { osl_table_initialize()
609 return (status); osl_table_initialize()
621 status = osl_get_bios_table(ACPI_SIG_RSDT, 0, osl_table_initialize()
626 if (ACPI_FAILURE(status)) { osl_table_initialize()
627 return (status); osl_table_initialize()
638 status = osl_get_bios_table(ACPI_SIG_FADT, 0, osl_table_initialize()
643 if (ACPI_FAILURE(status)) { osl_table_initialize()
644 return (status); osl_table_initialize()
649 status = osl_add_table_to_list(ACPI_RSDP_NAME, 0); osl_table_initialize()
650 if (ACPI_FAILURE(status)) { osl_table_initialize()
651 return (status); osl_table_initialize()
654 status = osl_add_table_to_list(ACPI_SIG_RSDT, 0); osl_table_initialize()
655 if (ACPI_FAILURE(status)) { osl_table_initialize()
656 return (status); osl_table_initialize()
660 status = osl_add_table_to_list(ACPI_SIG_XSDT, 0); osl_table_initialize()
661 if (ACPI_FAILURE(status)) { osl_table_initialize()
662 return (status); osl_table_initialize()
666 status = osl_add_table_to_list(ACPI_SIG_DSDT, 0); osl_table_initialize()
667 if (ACPI_FAILURE(status)) { osl_table_initialize()
668 return (status); osl_table_initialize()
671 status = osl_add_table_to_list(ACPI_SIG_FACS, 0); osl_table_initialize()
672 if (ACPI_FAILURE(status)) { osl_table_initialize()
673 return (status); osl_table_initialize()
678 status = osl_list_bios_tables(); osl_table_initialize()
679 if (ACPI_FAILURE(status)) { osl_table_initialize()
680 return (status); osl_table_initialize()
685 status = osl_list_customized_tables(STATIC_TABLE_DIR); osl_table_initialize()
686 if (ACPI_FAILURE(status)) { osl_table_initialize()
687 return (status); osl_table_initialize()
695 status = osl_list_customized_tables(DYNAMIC_TABLE_DIR); osl_table_initialize()
696 if (ACPI_FAILURE(status)) { osl_table_initialize()
697 return (status); osl_table_initialize()
727 acpi_status status = AE_OK; osl_list_bios_tables() local
766 status = osl_map_table(table_address, NULL, &mapped_table); osl_list_bios_tables()
767 if (ACPI_FAILURE(status)) { osl_list_bios_tables()
768 return (status); osl_list_bios_tables()
813 acpi_status status = AE_OK; osl_get_bios_table() local
873 status = osl_map_table(table_address, signature, &mapped_table); osl_get_bios_table()
874 if (ACPI_FAILURE(status)) { osl_get_bios_table()
875 return (status); osl_get_bios_table()
921 status = osl_get_bios_table()
923 if (ACPI_FAILURE(status)) { osl_get_bios_table()
924 return (status); osl_get_bios_table()
955 status = AE_BAD_HEADER; osl_get_bios_table()
963 status = AE_NO_MEMORY; osl_get_bios_table()
973 return (status); osl_get_bios_table()
994 acpi_status status = AE_OK; osl_list_customized_tables() local
1009 status = osl_list_customized_tables()
1014 if (ACPI_FAILURE(status)) { osl_list_customized_tables()
1020 status = osl_add_table_to_list(temp_name, instance); osl_list_customized_tables()
1021 if (ACPI_FAILURE(status)) { osl_list_customized_tables()
1027 return (status); osl_list_customized_tables()
1201 acpi_status status = AE_OK; osl_read_table_from_file() local
1218 status = AE_BAD_HEADER; osl_read_table_from_file()
1230 status = AE_BAD_SIGNATURE; osl_read_table_from_file()
1237 status = AE_BAD_SIGNATURE; osl_read_table_from_file()
1244 status = AE_BAD_HEADER; osl_read_table_from_file()
1255 status = AE_NO_MEMORY; osl_read_table_from_file()
1265 status = AE_INVALID_TABLE_LENGTH; osl_read_table_from_file()
1276 return (status); osl_read_table_from_file()
1311 acpi_status status; osl_get_customized_table() local
1332 status = osl_get_customized_table()
1338 if (ACPI_FAILURE(status) || current_instance != instance) { osl_get_customized_table()
1363 status = osl_read_table_from_file(table_filename, 0, NULL, table); osl_get_customized_table()
1365 return (status); osl_get_customized_table()
/linux-4.4.14/include/linux/usb/
H A Dmusb-omap.h23 void omap_musb_mailbox(enum omap_musb_vbus_id_status status);
25 static inline void omap_musb_mailbox(enum omap_musb_vbus_id_status status) omap_musb_mailbox() argument
/linux-4.4.14/arch/parisc/math-emu/
H A Dfpudispatch.c293 u_int *status; decode_0c() local
301 status = &fpregs[0]; /* fp status register */ decode_0c()
384 &fpregs[t],status)); decode_0c()
387 &fpregs[t],status)); decode_0c()
396 &fpregs[t],status)); decode_0c()
399 &fpregs[t],status)); decode_0c()
428 &fpregs[t],status)); decode_0c()
431 &fpregs[t],status)); decode_0c()
439 &fpregs[t],status)); decode_0c()
442 &fpregs[t],status)); decode_0c()
445 &fpregs[t],status)); decode_0c()
448 &fpregs[t],status)); decode_0c()
454 &fpregs[t],status)); decode_0c()
457 &fpregs[t],status)); decode_0c()
460 &fpregs[t],status)); decode_0c()
463 &fpregs[t],status)); decode_0c()
469 &fpregs[t],status)); decode_0c()
472 &fpregs[t],status)); decode_0c()
475 &fpregs[t],status)); decode_0c()
478 &fpregs[t],status)); decode_0c()
484 &fpregs[t],status)); decode_0c()
487 &fpregs[t],status)); decode_0c()
490 &fpregs[t],status)); decode_0c()
493 &fpregs[t],status)); decode_0c()
499 &fpregs[t],status)); decode_0c()
502 &fpregs[t],status)); decode_0c()
505 &fpregs[t],status)); decode_0c()
508 &fpregs[t],status)); decode_0c()
514 &fpregs[t],status)); decode_0c()
517 &fpregs[t],status)); decode_0c()
520 &fpregs[t],status)); decode_0c()
523 &fpregs[t],status)); decode_0c()
561 update_status_cbit(status,local_status, decode_0c()
568 update_status_cbit(status,local_status, decode_0c()
592 update_status_cbit(status,local_status, decode_0c()
599 update_status_cbit(status,local_status, decode_0c()
641 &fpregs[t],status)); decode_0c()
644 &fpregs[t],status)); decode_0c()
653 &fpregs[t],status)); decode_0c()
656 &fpregs[t],status)); decode_0c()
665 &fpregs[t],status)); decode_0c()
668 &fpregs[t],status)); decode_0c()
677 &fpregs[t],status)); decode_0c()
680 &fpregs[t],status)); decode_0c()
689 &fpregs[t],status)); decode_0c()
692 &fpregs[t],status)); decode_0c()
712 u_int *status; decode_0e() local
716 status = &fpregs[0]; decode_0e()
793 &fpregs[t], status)); decode_0e()
796 &fpregs[t], status)); decode_0e()
805 &fpregs[t], status)); decode_0e()
808 &fpregs[t], status)); decode_0e()
835 &fpregs[t],status)); decode_0e()
838 &fpregs[t],status)); decode_0e()
846 &fpregs[t],status)); decode_0e()
849 &fpregs[t],status)); decode_0e()
852 &fpregs[t],status)); decode_0e()
855 &fpregs[t],status)); decode_0e()
861 &fpregs[t],status)); decode_0e()
864 &fpregs[t],status)); decode_0e()
867 &fpregs[t],status)); decode_0e()
870 &fpregs[t],status)); decode_0e()
876 &fpregs[t],status)); decode_0e()
879 &fpregs[t],status)); decode_0e()
882 &fpregs[t],status)); decode_0e()
885 &fpregs[t],status)); decode_0e()
891 &fpregs[t],status)); decode_0e()
894 &fpregs[t],status)); decode_0e()
897 &fpregs[t],status)); decode_0e()
900 &fpregs[t],status)); decode_0e()
906 &fpregs[t],status)); decode_0e()
909 &fpregs[t],status)); decode_0e()
912 &fpregs[t],status)); decode_0e()
915 &fpregs[t],status)); decode_0e()
921 &fpregs[t],status)); decode_0e()
924 &fpregs[t],status)); decode_0e()
927 &fpregs[t],status)); decode_0e()
930 &fpregs[t],status)); decode_0e()
965 update_status_cbit(status,local_status, decode_0e()
972 update_status_cbit(status,local_status, decode_0e()
997 update_status_cbit(status,local_status, decode_0e()
1004 update_status_cbit(status,local_status, decode_0e()
1037 &fpregs[t],status)); decode_0e()
1040 &fpregs[t],status)); decode_0e()
1046 &fpregs[t],status)); decode_0e()
1049 &fpregs[t],status)); decode_0e()
1081 &fpregs[r2],&fpregs[t],status)); decode_0e()
1084 &fpregs[r2],&fpregs[t],status)); decode_0e()
1091 &fpregs[t],status)); decode_0e()
1094 &fpregs[t],status)); decode_0e()
1100 &fpregs[t],status)); decode_0e()
1103 &fpregs[t],status)); decode_0e()
1124 u_int status; decode_06() local
1133 status = fpregs[0]; /* use a local copy of status reg */ decode_06()
1156 &mtmp.ints.i1,&status)) decode_06()
1159 &atmp.ints.i1,&atmp.ints.i1,&status)) decode_06()
1165 &status)) decode_06()
1168 &status)) decode_06()
1180 &status)) decode_06()
1183 &status)) decode_06()
1196 fpregs[0] = status; decode_06()
1227 &status)) decode_06()
1230 &atmp.ints.i1,&status)) decode_06()
1235 &status)) decode_06()
1238 &status)) decode_06()
1247 fpregs[0] = status; decode_06()
1264 u_int status; decode_26() local
1272 status = fpregs[0]; decode_26()
1291 if (dbl_fmpy(&fpregs[rm1],&fpregs[rm2],&mtmp.ints.i1,&status)) decode_26()
1293 if (dbl_fsub(&fpregs[ta], &fpregs[ra], &atmp.ints.i1,&status)) decode_26()
1303 fpregs[0] = status; decode_26()
1327 if (sgl_fmpy(&fpregs[rm1],&fpregs[rm2],&mtmp.ints.i1,&status)) decode_26()
1329 if (sgl_fsub(&fpregs[ta], &fpregs[ra], &atmp.ints.i1,&status)) decode_26()
1337 fpregs[0] = status; decode_26()
1406 * This routine returns the correct FP status register value in
1407 * *status, based on the C-bit & V-bit returned by the FCMP
1414 update_status_cbit(status, new_status, fpu_type, y_field) update_status_cbit()
1415 u_int *status, new_status; update_status_cbit()
1429 *status = ((*status & 0x04000000) >> 5) | /* old Cbit */ update_status_cbit()
1430 ((*status & 0x003ff000) >> 1) | /* old CQ */ update_status_cbit()
1433 *status = (*status & 0x04000000) | /* old Cbit */ update_status_cbit()
1441 *status = new_status; update_status_cbit()
/linux-4.4.14/drivers/nfc/s3fwrn5/
H A Dnci.h36 __u8 status; member in struct:nci_prop_set_rfreg_rsp
42 __u8 status; member in struct:nci_prop_get_rfreg_ver_rsp
53 __u8 status; member in struct:nci_prop_set_rfreg_ver_rsp
59 __u8 status; member in struct:nci_prop_start_rfreg_rsp
69 __u8 status; member in struct:nci_prop_stop_rfreg_rsp
81 __u8 status; member in struct:nci_prop_fw_cfg_rsp
/linux-4.4.14/arch/mips/cavium-octeon/crypto/
H A Docteon-crypto.c28 int status; octeon_crypto_enable() local
33 status = read_c0_status(); octeon_crypto_enable()
34 write_c0_status(status | ST0_CU2); octeon_crypto_enable()
38 status &= ~ST0_CU2; octeon_crypto_enable()
39 } else if (status & ST0_CU2) { octeon_crypto_enable()
43 return status & ST0_CU2; octeon_crypto_enable()
/linux-4.4.14/arch/arm/mach-davinci/
H A Dsram.c57 int status = 0; sram_init() local
64 status = -ENOMEM; sram_init()
71 status = gen_pool_add_virt(sram_pool, (unsigned long) addr, sram_init()
73 if (status < 0) sram_init()
77 WARN_ON(status < 0); sram_init()
78 return status; sram_init()
/linux-4.4.14/drivers/net/ethernet/neterion/vxge/
H A Dvxge-config.c25 status = __vxge_hw_vpath_stats_access(vpath, \
29 if (status != VXGE_HW_OK) \
30 return status; \
162 enum vxge_hw_status status; vxge_hw_vpath_fw_api() local
182 status = __vxge_hw_pio_mem_write64(val64, vxge_hw_vpath_fw_api()
195 while ((status != VXGE_HW_OK) && retry++ < max_retry) { vxge_hw_vpath_fw_api()
198 status = __vxge_hw_device_register_poll( vxge_hw_vpath_fw_api()
204 if (status != VXGE_HW_OK) vxge_hw_vpath_fw_api()
213 status = VXGE_HW_FAIL; vxge_hw_vpath_fw_api()
218 return status; vxge_hw_vpath_fw_api()
227 enum vxge_hw_status status; vxge_hw_upgrade_read_version() local
231 status = vxge_hw_vpath_fw_api(vpath, vxge_hw_upgrade_read_version()
236 if (status != VXGE_HW_OK) vxge_hw_upgrade_read_version()
237 return status; vxge_hw_upgrade_read_version()
243 return status; vxge_hw_upgrade_read_version()
250 enum vxge_hw_status status; vxge_hw_flash_fw() local
255 status = vxge_hw_vpath_fw_api(vpath, vxge_hw_flash_fw()
260 if (status != VXGE_HW_OK) { vxge_hw_flash_fw()
269 status = VXGE_HW_FAIL; vxge_hw_flash_fw()
273 return status; vxge_hw_flash_fw()
281 enum vxge_hw_status status; vxge_update_fw_image() local
287 status = vxge_hw_vpath_fw_api(vpath, vxge_update_fw_image()
292 if (status != VXGE_HW_OK) { vxge_update_fw_image()
295 return status; vxge_update_fw_image()
306 status = vxge_hw_vpath_fw_api(vpath, vxge_update_fw_image()
311 if (status != VXGE_HW_OK) { vxge_update_fw_image()
358 status = VXGE_HW_FAIL; vxge_update_fw_image()
362 status = VXGE_HW_FAIL; vxge_update_fw_image()
369 return status; vxge_update_fw_image()
378 enum vxge_hw_status status; vxge_hw_vpath_eprom_img_ver_get() local
387 status = vxge_hw_vpath_fw_api(vpath, vxge_hw_vpath_eprom_img_ver_get()
391 if (status != VXGE_HW_OK) vxge_hw_vpath_eprom_img_ver_get()
400 return status; vxge_hw_vpath_eprom_img_ver_get()
503 enum vxge_hw_status status; __vxge_hw_device_vpath_reset_in_prog_check() local
504 status = __vxge_hw_device_register_poll(vpath_rst_in_prog, __vxge_hw_device_vpath_reset_in_prog_check()
507 return status; __vxge_hw_device_vpath_reset_in_prog_check()
518 enum vxge_hw_status status = VXGE_HW_OK; __vxge_hw_legacy_swapper_set() local
526 return status; __vxge_hw_legacy_swapper_set()
559 status = VXGE_HW_ERR_SWAPPER_CTRL; __vxge_hw_legacy_swapper_set()
561 return status; __vxge_hw_legacy_swapper_set()
574 enum vxge_hw_status status; __vxge_hw_device_toc_get() local
579 status = __vxge_hw_legacy_swapper_set(legacy_reg); __vxge_hw_device_toc_get()
580 if (status != VXGE_HW_OK) __vxge_hw_device_toc_get()
600 enum vxge_hw_status status = VXGE_HW_OK; __vxge_hw_device_reg_addr_get() local
606 status = VXGE_HW_FAIL; __vxge_hw_device_reg_addr_get()
641 status = __vxge_hw_device_vpath_reset_in_prog_check( __vxge_hw_device_reg_addr_get()
644 return status; __vxge_hw_device_reg_addr_get()
785 enum vxge_hw_status status = VXGE_HW_OK; __vxge_hw_device_initialize() local
790 status = __vxge_hw_verify_pci_e_info(hldev); __vxge_hw_device_initialize()
791 if (status != VXGE_HW_OK) __vxge_hw_device_initialize()
796 return status; __vxge_hw_device_initialize()
812 enum vxge_hw_status status; __vxge_hw_vpath_fw_ver_get() local
814 status = vxge_hw_vpath_fw_api(vpath, __vxge_hw_vpath_fw_ver_get()
818 if (status != VXGE_HW_OK) __vxge_hw_vpath_fw_ver_get()
863 return status; __vxge_hw_vpath_fw_ver_get()
874 enum vxge_hw_status status; __vxge_hw_vpath_card_info_get() local
883 status = vxge_hw_vpath_fw_api(vpath, __vxge_hw_vpath_card_info_get()
887 if (status != VXGE_HW_OK) __vxge_hw_vpath_card_info_get()
888 return status; __vxge_hw_vpath_card_info_get()
896 status = vxge_hw_vpath_fw_api(vpath, __vxge_hw_vpath_card_info_get()
900 if (status != VXGE_HW_OK) __vxge_hw_vpath_card_info_get()
901 return status; __vxge_hw_vpath_card_info_get()
911 status = vxge_hw_vpath_fw_api(vpath, __vxge_hw_vpath_card_info_get()
915 if (status != VXGE_HW_OK) __vxge_hw_vpath_card_info_get()
916 return status; __vxge_hw_vpath_card_info_get()
922 return status; __vxge_hw_vpath_card_info_get()
934 enum vxge_hw_status status; __vxge_hw_vpath_pci_func_mode_get() local
938 status = vxge_hw_vpath_fw_api(vpath, __vxge_hw_vpath_pci_func_mode_get()
942 if (status != VXGE_HW_OK) __vxge_hw_vpath_pci_func_mode_get()
943 return status; __vxge_hw_vpath_pci_func_mode_get()
946 return status; __vxge_hw_vpath_pci_func_mode_get()
959 enum vxge_hw_status status; __vxge_hw_vpath_addr_get() local
963 status = vxge_hw_vpath_fw_api(vpath, action, __vxge_hw_vpath_addr_get()
966 if (status != VXGE_HW_OK) __vxge_hw_vpath_addr_get()
986 return status; __vxge_hw_vpath_addr_get()
1005 enum vxge_hw_status status; vxge_hw_device_hw_info_get() local
1012 status = VXGE_HW_ERR_CRITICAL; vxge_hw_device_hw_info_get()
1019 status = __vxge_hw_device_vpath_reset_in_prog_check( vxge_hw_device_hw_info_get()
1021 if (status != VXGE_HW_OK) vxge_hw_device_hw_info_get()
1058 status = __vxge_hw_vpath_pci_func_mode_get(&vpath, hw_info); vxge_hw_device_hw_info_get()
1059 if (status != VXGE_HW_OK) vxge_hw_device_hw_info_get()
1062 status = __vxge_hw_vpath_fw_ver_get(&vpath, hw_info); vxge_hw_device_hw_info_get()
1063 if (status != VXGE_HW_OK) vxge_hw_device_hw_info_get()
1066 status = __vxge_hw_vpath_card_info_get(&vpath, hw_info); vxge_hw_device_hw_info_get()
1067 if (status != VXGE_HW_OK) vxge_hw_device_hw_info_get()
1081 status = __vxge_hw_vpath_addr_get(&vpath, vxge_hw_device_hw_info_get()
1084 if (status != VXGE_HW_OK) vxge_hw_device_hw_info_get()
1088 return status; vxge_hw_device_hw_info_get()
1146 enum vxge_hw_status status = VXGE_HW_OK; __vxge_hw_blockpool_create() local
1149 status = VXGE_HW_FAIL; __vxge_hw_blockpool_create()
1167 status = VXGE_HW_ERR_OUT_OF_MEMORY; __vxge_hw_blockpool_create()
1181 status = VXGE_HW_ERR_OUT_OF_MEMORY; __vxge_hw_blockpool_create()
1191 status = VXGE_HW_ERR_OUT_OF_MEMORY; __vxge_hw_blockpool_create()
1217 status = VXGE_HW_ERR_OUT_OF_MEMORY; __vxge_hw_blockpool_create()
1223 return status; __vxge_hw_blockpool_create()
1247 enum vxge_hw_status status; __vxge_hw_device_vpath_config_check() local
1253 status = __vxge_hw_device_fifo_config_check(&vp_config->fifo); __vxge_hw_device_vpath_config_check()
1254 if (status != VXGE_HW_OK) __vxge_hw_device_vpath_config_check()
1255 return status; __vxge_hw_device_vpath_config_check()
1281 enum vxge_hw_status status; __vxge_hw_device_config_check() local
1294 status = __vxge_hw_device_vpath_config_check( __vxge_hw_device_config_check()
1296 if (status != VXGE_HW_OK) __vxge_hw_device_config_check()
1297 return status; __vxge_hw_device_config_check()
1321 enum vxge_hw_status status = VXGE_HW_OK; vxge_hw_device_initialize() local
1323 status = __vxge_hw_device_config_check(device_config); vxge_hw_device_initialize()
1324 if (status != VXGE_HW_OK) vxge_hw_device_initialize()
1329 status = VXGE_HW_ERR_OUT_OF_MEMORY; vxge_hw_device_initialize()
1348 status = __vxge_hw_device_reg_addr_get(hldev); vxge_hw_device_initialize()
1349 if (status != VXGE_HW_OK) { vxge_hw_device_initialize()
1379 status = VXGE_HW_ERR_OUT_OF_MEMORY; vxge_hw_device_initialize()
1383 status = __vxge_hw_device_initialize(hldev); vxge_hw_device_initialize()
1384 if (status != VXGE_HW_OK) { vxge_hw_device_initialize()
1391 return status; vxge_hw_device_initialize()
1417 enum vxge_hw_status status = VXGE_HW_OK; __vxge_hw_vpath_stats_access() local
1421 status = VXGE_HW_ERR_VPATH_NOT_OPEN; __vxge_hw_vpath_stats_access()
1431 status = __vxge_hw_pio_mem_write64(val64, __vxge_hw_vpath_stats_access()
1435 if ((status == VXGE_HW_OK) && (operation == VXGE_HW_STATS_OP_READ)) __vxge_hw_vpath_stats_access()
1441 return status; __vxge_hw_vpath_stats_access()
1454 enum vxge_hw_status status = VXGE_HW_OK; __vxge_hw_vpath_xmac_tx_stats_get() local
1459 status = VXGE_HW_ERR_VPATH_NOT_OPEN; __vxge_hw_vpath_xmac_tx_stats_get()
1464 status = __vxge_hw_vpath_stats_access(vpath, __vxge_hw_vpath_xmac_tx_stats_get()
1467 if (status != VXGE_HW_OK) __vxge_hw_vpath_xmac_tx_stats_get()
1473 return status; __vxge_hw_vpath_xmac_tx_stats_get()
1484 enum vxge_hw_status status = VXGE_HW_OK; __vxge_hw_vpath_xmac_rx_stats_get() local
1490 status = VXGE_HW_ERR_VPATH_NOT_OPEN; __vxge_hw_vpath_xmac_rx_stats_get()
1494 status = __vxge_hw_vpath_stats_access(vpath, __vxge_hw_vpath_xmac_rx_stats_get()
1497 if (status != VXGE_HW_OK) __vxge_hw_vpath_xmac_rx_stats_get()
1504 return status; __vxge_hw_vpath_xmac_rx_stats_get()
1515 enum vxge_hw_status status = VXGE_HW_OK; __vxge_hw_vpath_stats_get() local
1519 status = VXGE_HW_ERR_VPATH_NOT_OPEN; __vxge_hw_vpath_stats_get()
1582 status = __vxge_hw_vpath_xmac_tx_stats_get(vpath, &hw_stats->tx_stats); __vxge_hw_vpath_stats_get()
1583 if (status != VXGE_HW_OK) __vxge_hw_vpath_stats_get()
1586 status = __vxge_hw_vpath_xmac_rx_stats_get(vpath, &hw_stats->rx_stats); __vxge_hw_vpath_stats_get()
1587 if (status != VXGE_HW_OK) __vxge_hw_vpath_stats_get()
1641 return status; __vxge_hw_vpath_stats_get()
1653 enum vxge_hw_status status = VXGE_HW_OK; vxge_hw_device_stats_get() local
1665 status = __vxge_hw_vpath_stats_get( vxge_hw_device_stats_get()
1673 return status; vxge_hw_device_stats_get()
1700 enum vxge_hw_status status = VXGE_HW_OK; vxge_hw_mrpcim_stats_access() local
1702 status = __vxge_hw_device_is_privilaged(hldev->host_type, vxge_hw_mrpcim_stats_access()
1704 if (status != VXGE_HW_OK) vxge_hw_mrpcim_stats_access()
1712 status = __vxge_hw_pio_mem_write64(val64, vxge_hw_mrpcim_stats_access()
1717 if ((status == VXGE_HW_OK) && (operation == VXGE_HW_STATS_OP_READ)) vxge_hw_mrpcim_stats_access()
1722 return status; vxge_hw_mrpcim_stats_access()
1736 enum vxge_hw_status status = VXGE_HW_OK; vxge_hw_device_xmac_aggr_stats_get() local
1740 status = __vxge_hw_device_is_privilaged(hldev->host_type, vxge_hw_device_xmac_aggr_stats_get()
1742 if (status != VXGE_HW_OK) vxge_hw_device_xmac_aggr_stats_get()
1746 status = vxge_hw_mrpcim_stats_access(hldev, vxge_hw_device_xmac_aggr_stats_get()
1750 if (status != VXGE_HW_OK) vxge_hw_device_xmac_aggr_stats_get()
1757 return status; vxge_hw_device_xmac_aggr_stats_get()
1769 enum vxge_hw_status status = VXGE_HW_OK; vxge_hw_device_xmac_port_stats_get() local
1774 status = __vxge_hw_device_is_privilaged(hldev->host_type, vxge_hw_device_xmac_port_stats_get()
1776 if (status != VXGE_HW_OK) vxge_hw_device_xmac_port_stats_get()
1780 status = vxge_hw_mrpcim_stats_access(hldev, vxge_hw_device_xmac_port_stats_get()
1784 if (status != VXGE_HW_OK) vxge_hw_device_xmac_port_stats_get()
1792 return status; vxge_hw_device_xmac_port_stats_get()
1803 enum vxge_hw_status status = VXGE_HW_OK; vxge_hw_device_xmac_stats_get() local
1806 status = vxge_hw_device_xmac_aggr_stats_get(hldev, vxge_hw_device_xmac_stats_get()
1808 if (status != VXGE_HW_OK) vxge_hw_device_xmac_stats_get()
1811 status = vxge_hw_device_xmac_aggr_stats_get(hldev, vxge_hw_device_xmac_stats_get()
1813 if (status != VXGE_HW_OK) vxge_hw_device_xmac_stats_get()
1818 status = vxge_hw_device_xmac_port_stats_get(hldev, vxge_hw_device_xmac_stats_get()
1820 if (status != VXGE_HW_OK) vxge_hw_device_xmac_stats_get()
1829 status = __vxge_hw_vpath_xmac_tx_stats_get( vxge_hw_device_xmac_stats_get()
1832 if (status != VXGE_HW_OK) vxge_hw_device_xmac_stats_get()
1835 status = __vxge_hw_vpath_xmac_rx_stats_get( vxge_hw_device_xmac_stats_get()
1838 if (status != VXGE_HW_OK) vxge_hw_device_xmac_stats_get()
1842 return status; vxge_hw_device_xmac_stats_get()
1910 enum vxge_hw_status status = VXGE_HW_OK; vxge_hw_device_getpause_data() local
1913 status = VXGE_HW_ERR_INVALID_DEVICE; vxge_hw_device_getpause_data()
1918 status = VXGE_HW_ERR_INVALID_PORT; vxge_hw_device_getpause_data()
1923 status = VXGE_HW_ERR_PRIVILAGED_OPEARATION; vxge_hw_device_getpause_data()
1933 return status; vxge_hw_device_getpause_data()
1945 enum vxge_hw_status status = VXGE_HW_OK; vxge_hw_device_setpause_data() local
1948 status = VXGE_HW_ERR_INVALID_DEVICE; vxge_hw_device_setpause_data()
1953 status = VXGE_HW_ERR_INVALID_PORT; vxge_hw_device_setpause_data()
1957 status = __vxge_hw_device_is_privilaged(hldev->host_type, vxge_hw_device_setpause_data()
1959 if (status != VXGE_HW_OK) vxge_hw_device_setpause_data()
1974 return status; vxge_hw_device_setpause_data()
2153 enum vxge_hw_status status = VXGE_HW_OK; vxge_hw_ring_replenish() local
2159 status = vxge_hw_ring_rxd_reserve(ring, &rxd); vxge_hw_ring_replenish()
2161 vxge_assert(status == VXGE_HW_OK); vxge_hw_ring_replenish()
2164 status = ring->rxd_init(rxd, channel->userdata); vxge_hw_ring_replenish()
2165 if (status != VXGE_HW_OK) { vxge_hw_ring_replenish()
2173 status = VXGE_HW_OK; vxge_hw_ring_replenish()
2175 return status; vxge_hw_ring_replenish()
2263 enum vxge_hw_status status = VXGE_HW_OK; vxge_hw_blockpool_block_add() local
2270 status = VXGE_HW_FAIL; vxge_hw_blockpool_block_add()
2280 status = VXGE_HW_FAIL; vxge_hw_blockpool_block_add()
2303 status = VXGE_HW_OK; vxge_hw_blockpool_block_add()
2305 status = VXGE_HW_ERR_OUT_OF_MEMORY; vxge_hw_blockpool_block_add()
2361 enum vxge_hw_status status = VXGE_HW_OK; __vxge_hw_blockpool_malloc() local
2372 status = VXGE_HW_ERR_OUT_OF_MEMORY; __vxge_hw_blockpool_malloc()
2383 status = VXGE_HW_ERR_OUT_OF_MEMORY; __vxge_hw_blockpool_malloc()
2457 enum vxge_hw_status status = VXGE_HW_OK; __vxge_hw_blockpool_free() local
2488 status = VXGE_HW_OK; __vxge_hw_blockpool_free()
2490 status = VXGE_HW_ERR_OUT_OF_MEMORY; __vxge_hw_blockpool_free()
2492 if (status == VXGE_HW_OK) __vxge_hw_blockpool_free()
2546 enum vxge_hw_status status = VXGE_HW_OK; __vxge_hw_mempool_grow() local
2551 status = VXGE_HW_ERR_OUT_OF_MEMORY; __vxge_hw_mempool_grow()
2570 status = VXGE_HW_ERR_OUT_OF_MEMORY; __vxge_hw_mempool_grow()
2580 status = VXGE_HW_ERR_OUT_OF_MEMORY; __vxge_hw_mempool_grow()
2614 return status; __vxge_hw_mempool_grow()
2634 enum vxge_hw_status status = VXGE_HW_OK; __vxge_hw_mempool_create() local
2640 status = VXGE_HW_FAIL; __vxge_hw_mempool_create()
2646 status = VXGE_HW_ERR_OUT_OF_MEMORY; __vxge_hw_mempool_create()
2671 status = VXGE_HW_ERR_OUT_OF_MEMORY; __vxge_hw_mempool_create()
2681 status = VXGE_HW_ERR_OUT_OF_MEMORY; __vxge_hw_mempool_create()
2692 status = VXGE_HW_ERR_OUT_OF_MEMORY; __vxge_hw_mempool_create()
2701 status = VXGE_HW_ERR_OUT_OF_MEMORY; __vxge_hw_mempool_create()
2712 status = __vxge_hw_mempool_grow(mempool, memblocks_to_allocate, __vxge_hw_mempool_create()
2714 if (status != VXGE_HW_OK) { __vxge_hw_mempool_create()
2716 status = VXGE_HW_ERR_OUT_OF_MEMORY; __vxge_hw_mempool_create()
2760 enum vxge_hw_status status = VXGE_HW_OK; __vxge_hw_ring_reset() local
2767 status = __vxge_hw_channel_reset(channel); __vxge_hw_ring_reset()
2769 if (status != VXGE_HW_OK) __vxge_hw_ring_reset()
2773 status = vxge_hw_ring_replenish(ring); __vxge_hw_ring_reset()
2774 if (status != VXGE_HW_OK) __vxge_hw_ring_reset()
2778 return status; __vxge_hw_ring_reset()
2809 enum vxge_hw_status status = VXGE_HW_OK; __vxge_hw_ring_create() local
2820 status = VXGE_HW_FAIL; __vxge_hw_ring_create()
2838 status = VXGE_HW_ERR_OUT_OF_MEMORY; __vxge_hw_ring_create()
2885 status = __vxge_hw_channel_initialize(&ring->channel); __vxge_hw_ring_create()
2886 if (status != VXGE_HW_OK) { __vxge_hw_ring_create()
2899 status = vxge_hw_ring_replenish(ring); __vxge_hw_ring_create()
2900 if (status != VXGE_HW_OK) { __vxge_hw_ring_create()
2910 return status; __vxge_hw_ring_create()
3124 enum vxge_hw_status status = VXGE_HW_OK; vxge_hw_mgmt_reg_read() local
3127 status = VXGE_HW_ERR_INVALID_DEVICE; vxge_hw_mgmt_reg_read()
3134 status = VXGE_HW_ERR_INVALID_OFFSET; vxge_hw_mgmt_reg_read()
3141 status = VXGE_HW_ERR_INVALID_OFFSET; vxge_hw_mgmt_reg_read()
3148 status = VXGE_HW_ERR_INVALID_OFFSET; vxge_hw_mgmt_reg_read()
3156 status = VXGE_HW_ERR_PRIVILAGED_OPEARATION; vxge_hw_mgmt_reg_read()
3160 status = VXGE_HW_ERR_INVALID_OFFSET; vxge_hw_mgmt_reg_read()
3168 status = VXGE_HW_ERR_PRIVILAGED_OPEARATION; vxge_hw_mgmt_reg_read()
3172 status = VXGE_HW_ERR_INVALID_INDEX; vxge_hw_mgmt_reg_read()
3176 status = VXGE_HW_ERR_INVALID_OFFSET; vxge_hw_mgmt_reg_read()
3185 status = VXGE_HW_ERR_INVALID_INDEX; vxge_hw_mgmt_reg_read()
3189 status = VXGE_HW_ERR_INVALID_OFFSET; vxge_hw_mgmt_reg_read()
3198 status = VXGE_HW_ERR_INVALID_INDEX; vxge_hw_mgmt_reg_read()
3202 status = VXGE_HW_ERR_INVALID_INDEX; vxge_hw_mgmt_reg_read()
3206 status = VXGE_HW_ERR_INVALID_OFFSET; vxge_hw_mgmt_reg_read()
3213 status = VXGE_HW_ERR_INVALID_TYPE; vxge_hw_mgmt_reg_read()
3218 return status; vxge_hw_mgmt_reg_read()
3250 enum vxge_hw_status status = VXGE_HW_OK; vxge_hw_mgmt_reg_write() local
3253 status = VXGE_HW_ERR_INVALID_DEVICE; vxge_hw_mgmt_reg_write()
3260 status = VXGE_HW_ERR_INVALID_OFFSET; vxge_hw_mgmt_reg_write()
3267 status = VXGE_HW_ERR_INVALID_OFFSET; vxge_hw_mgmt_reg_write()
3274 status = VXGE_HW_ERR_INVALID_OFFSET; vxge_hw_mgmt_reg_write()
3282 status = VXGE_HW_ERR_PRIVILAGED_OPEARATION; vxge_hw_mgmt_reg_write()
3286 status = VXGE_HW_ERR_INVALID_OFFSET; vxge_hw_mgmt_reg_write()
3294 status = VXGE_HW_ERR_PRIVILAGED_OPEARATION; vxge_hw_mgmt_reg_write()
3298 status = VXGE_HW_ERR_INVALID_INDEX; vxge_hw_mgmt_reg_write()
3302 status = VXGE_HW_ERR_INVALID_OFFSET; vxge_hw_mgmt_reg_write()
3312 status = VXGE_HW_ERR_INVALID_INDEX; vxge_hw_mgmt_reg_write()
3316 status = VXGE_HW_ERR_INVALID_OFFSET; vxge_hw_mgmt_reg_write()
3325 status = VXGE_HW_ERR_INVALID_INDEX; vxge_hw_mgmt_reg_write()
3329 status = VXGE_HW_ERR_INVALID_OFFSET; vxge_hw_mgmt_reg_write()
3336 status = VXGE_HW_ERR_INVALID_TYPE; vxge_hw_mgmt_reg_write()
3340 return status; vxge_hw_mgmt_reg_write()
3377 enum vxge_hw_status status = VXGE_HW_OK; __vxge_hw_fifo_reset() local
3380 status = __vxge_hw_channel_reset(&fifo->channel); __vxge_hw_fifo_reset()
3382 return status; __vxge_hw_fifo_reset()
3456 enum vxge_hw_status status = VXGE_HW_OK; __vxge_hw_fifo_create() local
3464 status = VXGE_HW_ERR_INVALID_HANDLE; __vxge_hw_fifo_create()
3480 status = VXGE_HW_ERR_OUT_OF_MEMORY; __vxge_hw_fifo_create()
3539 status = VXGE_HW_ERR_INVALID_BLOCK_SIZE; __vxge_hw_fifo_create()
3557 status = VXGE_HW_ERR_OUT_OF_MEMORY; __vxge_hw_fifo_create()
3561 status = __vxge_hw_channel_initialize(&fifo->channel); __vxge_hw_fifo_create()
3562 if (status != VXGE_HW_OK) { __vxge_hw_fifo_create()
3569 return status; __vxge_hw_fifo_create()
3582 enum vxge_hw_status status = VXGE_HW_OK; __vxge_hw_vpath_pci_read() local
3596 status = __vxge_hw_device_register_poll( __vxge_hw_vpath_pci_read()
3600 if (status != VXGE_HW_OK) __vxge_hw_vpath_pci_read()
3606 status = VXGE_HW_FAIL; __vxge_hw_vpath_pci_read()
3611 return status; __vxge_hw_vpath_pci_read()
3626 enum vxge_hw_status status; vxge_hw_device_flick_link_led() local
3629 status = VXGE_HW_ERR_INVALID_DEVICE; vxge_hw_device_flick_link_led()
3636 status = vxge_hw_vpath_fw_api(vpath, vxge_hw_device_flick_link_led()
3641 return status; vxge_hw_device_flick_link_led()
3652 enum vxge_hw_status status; __vxge_hw_vpath_rts_table_get() local
3656 status = VXGE_HW_ERR_INVALID_HANDLE; __vxge_hw_vpath_rts_table_get()
3671 status = vxge_hw_vpath_fw_api(vp->vpath, action, rts_table, offset, __vxge_hw_vpath_rts_table_get()
3673 if (status != VXGE_HW_OK) __vxge_hw_vpath_rts_table_get()
3681 return status; __vxge_hw_vpath_rts_table_get()
3693 enum vxge_hw_status status; __vxge_hw_vpath_rts_table_set() local
3696 status = VXGE_HW_ERR_INVALID_HANDLE; __vxge_hw_vpath_rts_table_set()
3707 status = vxge_hw_vpath_fw_api(vp->vpath, action, rts_table, offset, __vxge_hw_vpath_rts_table_set()
3710 return status; __vxge_hw_vpath_rts_table_set()
3723 enum vxge_hw_status status = VXGE_HW_OK; vxge_hw_vpath_rts_rth_set() local
3726 status = VXGE_HW_ERR_INVALID_HANDLE; vxge_hw_vpath_rts_rth_set()
3730 status = __vxge_hw_vpath_rts_table_get(vp, vxge_hw_vpath_rts_rth_set()
3734 if (status != VXGE_HW_OK) vxge_hw_vpath_rts_rth_set()
3768 status = __vxge_hw_vpath_rts_table_set(vp, vxge_hw_vpath_rts_rth_set()
3773 return status; vxge_hw_vpath_rts_rth_set()
3821 enum vxge_hw_status status = VXGE_HW_OK; vxge_hw_vpath_rts_rth_itable_set() local
3825 status = VXGE_HW_ERR_INVALID_HANDLE; vxge_hw_vpath_rts_rth_itable_set()
3845 status = __vxge_hw_vpath_rts_table_set(vpath_handles[0], vxge_hw_vpath_rts_rth_itable_set()
3848 if (status != VXGE_HW_OK) vxge_hw_vpath_rts_rth_itable_set()
3861 status = __vxge_hw_vpath_rts_table_set( vxge_hw_vpath_rts_rth_itable_set()
3865 if (status != VXGE_HW_OK) vxge_hw_vpath_rts_rth_itable_set()
3924 status = __vxge_hw_vpath_rts_table_set( vxge_hw_vpath_rts_rth_itable_set()
3929 if (status != VXGE_HW_OK) vxge_hw_vpath_rts_rth_itable_set()
3936 return status; vxge_hw_vpath_rts_rth_itable_set()
3951 enum vxge_hw_status status = VXGE_HW_OK; vxge_hw_vpath_check_leak() local
3955 return status; vxge_hw_vpath_check_leak()
3962 status = VXGE_HW_FAIL; vxge_hw_vpath_check_leak()
3964 return status; vxge_hw_vpath_check_leak()
4018 enum vxge_hw_status status; __vxge_hw_vpath_reset_check() local
4020 status = __vxge_hw_device_register_poll( __vxge_hw_vpath_reset_check()
4026 return status; __vxge_hw_vpath_reset_check()
4053 enum vxge_hw_status status = VXGE_HW_OK; __vxge_hw_vpath_sw_reset() local
4059 status = __vxge_hw_ring_reset(vpath->ringh); __vxge_hw_vpath_sw_reset()
4060 if (status != VXGE_HW_OK) __vxge_hw_vpath_sw_reset()
4065 status = __vxge_hw_fifo_reset(vpath->fifoh); __vxge_hw_vpath_sw_reset()
4067 return status; __vxge_hw_vpath_sw_reset()
4152 enum vxge_hw_status status = VXGE_HW_OK; __vxge_hw_vpath_kdfc_configure() local
4158 status = __vxge_hw_kdfc_swapper_set(hldev->legacy_reg, vp_reg); __vxge_hw_vpath_kdfc_configure()
4160 if (status != VXGE_HW_OK) __vxge_hw_vpath_kdfc_configure()
4213 return status; __vxge_hw_vpath_kdfc_configure()
4553 enum vxge_hw_status status = VXGE_HW_OK; __vxge_hw_vpath_initialize() local
4560 status = VXGE_HW_ERR_VPATH_NOT_AVAILABLE; __vxge_hw_vpath_initialize()
4565 status = __vxge_hw_vpath_swapper_set(vpath->vp_reg); __vxge_hw_vpath_initialize()
4566 if (status != VXGE_HW_OK) __vxge_hw_vpath_initialize()
4569 status = __vxge_hw_vpath_mac_configure(hldev, vp_id); __vxge_hw_vpath_initialize()
4570 if (status != VXGE_HW_OK) __vxge_hw_vpath_initialize()
4573 status = __vxge_hw_vpath_kdfc_configure(hldev, vp_id); __vxge_hw_vpath_initialize()
4574 if (status != VXGE_HW_OK) __vxge_hw_vpath_initialize()
4577 status = __vxge_hw_vpath_tim_configure(hldev, vp_id); __vxge_hw_vpath_initialize()
4578 if (status != VXGE_HW_OK) __vxge_hw_vpath_initialize()
4584 status = __vxge_hw_vpath_pci_read(vpath, 1, 0x78, &val32); __vxge_hw_vpath_initialize()
4585 if (status == VXGE_HW_OK) { __vxge_hw_vpath_initialize()
4604 return status; __vxge_hw_vpath_initialize()
4659 enum vxge_hw_status status = VXGE_HW_OK; __vxge_hw_vp_initialize() local
4662 status = VXGE_HW_ERR_VPATH_NOT_AVAILABLE; __vxge_hw_vp_initialize()
4678 status = __vxge_hw_vpath_reset_check(vpath); __vxge_hw_vp_initialize()
4679 if (status != VXGE_HW_OK) { __vxge_hw_vp_initialize()
4684 status = __vxge_hw_vpath_mgmt_read(hldev, vpath); __vxge_hw_vp_initialize()
4685 if (status != VXGE_HW_OK) { __vxge_hw_vp_initialize()
4697 status = __vxge_hw_vpath_initialize(hldev, vp_id); __vxge_hw_vp_initialize()
4698 if (status != VXGE_HW_OK) __vxge_hw_vp_initialize()
4701 return status; __vxge_hw_vp_initialize()
4713 enum vxge_hw_status status = VXGE_HW_OK; vxge_hw_vpath_mtu_set() local
4717 status = VXGE_HW_ERR_INVALID_HANDLE; vxge_hw_vpath_mtu_set()
4725 status = VXGE_HW_ERR_INVALID_MTU_SIZE; vxge_hw_vpath_mtu_set()
4737 return status; vxge_hw_vpath_mtu_set()
4748 enum vxge_hw_status status = VXGE_HW_OK; vxge_hw_vpath_stats_enable() local
4754 status = VXGE_HW_ERR_VPATH_NOT_OPEN; vxge_hw_vpath_stats_enable()
4761 status = __vxge_hw_vpath_stats_get(vpath, vpath->hw_stats); vxge_hw_vpath_stats_enable()
4763 return status; vxge_hw_vpath_stats_enable()
4811 enum vxge_hw_status status; vxge_hw_vpath_open() local
4816 status = VXGE_HW_ERR_INVALID_STATE; vxge_hw_vpath_open()
4820 status = __vxge_hw_vp_initialize(hldev, attr->vp_id, vxge_hw_vpath_open()
4822 if (status != VXGE_HW_OK) vxge_hw_vpath_open()
4827 status = VXGE_HW_ERR_OUT_OF_MEMORY; vxge_hw_vpath_open()
4834 status = __vxge_hw_fifo_create(vp, &attr->fifo_attr); vxge_hw_vpath_open()
4835 if (status != VXGE_HW_OK) vxge_hw_vpath_open()
4840 status = __vxge_hw_ring_create(vp, &attr->ring_attr); vxge_hw_vpath_open()
4841 if (status != VXGE_HW_OK) vxge_hw_vpath_open()
4854 status = VXGE_HW_ERR_OUT_OF_MEMORY; vxge_hw_vpath_open()
4872 status = vxge_hw_vpath_stats_enable(vp); vxge_hw_vpath_open()
4873 if (status != VXGE_HW_OK) vxge_hw_vpath_open()
4899 return status; vxge_hw_vpath_open()
4979 enum vxge_hw_status status = VXGE_HW_OK; vxge_hw_vpath_close() local
4985 status = VXGE_HW_ERR_VPATH_NOT_OPEN; vxge_hw_vpath_close()
4997 status = VXGE_HW_FAIL; vxge_hw_vpath_close()
5017 return status; vxge_hw_vpath_close()
5026 enum vxge_hw_status status; vxge_hw_vpath_reset() local
5033 status = VXGE_HW_ERR_VPATH_NOT_OPEN; vxge_hw_vpath_reset()
5037 status = __vxge_hw_vpath_reset(vpath->hldev, vp_id); vxge_hw_vpath_reset()
5038 if (status == VXGE_HW_OK) vxge_hw_vpath_reset()
5041 return status; vxge_hw_vpath_reset()
5053 enum vxge_hw_status status; vxge_hw_vpath_recover_from_reset() local
5062 status = VXGE_HW_ERR_VPATH_NOT_OPEN; vxge_hw_vpath_recover_from_reset()
5066 status = __vxge_hw_vpath_reset_check(vpath); vxge_hw_vpath_recover_from_reset()
5067 if (status != VXGE_HW_OK) vxge_hw_vpath_recover_from_reset()
5070 status = __vxge_hw_vpath_sw_reset(hldev, vp_id); vxge_hw_vpath_recover_from_reset()
5071 if (status != VXGE_HW_OK) vxge_hw_vpath_recover_from_reset()
5074 status = __vxge_hw_vpath_initialize(hldev, vp_id); vxge_hw_vpath_recover_from_reset()
5075 if (status != VXGE_HW_OK) vxge_hw_vpath_recover_from_reset()
5090 status = vxge_hw_vpath_stats_enable(vp); vxge_hw_vpath_recover_from_reset()
5093 return status; vxge_hw_vpath_recover_from_reset()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
H A Dtrx.c457 struct rtl_stats *status, rtl8821ae_rx_query_desc()
467 status->length = (u16)GET_RX_DESC_PKT_LEN(pdesc); rtl8821ae_rx_query_desc()
468 status->rx_drvinfo_size = (u8)GET_RX_DESC_DRV_INFO_SIZE(pdesc) * rtl8821ae_rx_query_desc()
470 status->rx_bufshift = (u8)(GET_RX_DESC_SHIFT(pdesc) & 0x03); rtl8821ae_rx_query_desc()
471 status->icv = (u16)GET_RX_DESC_ICV(pdesc); rtl8821ae_rx_query_desc()
472 status->crc = (u16)GET_RX_DESC_CRC32(pdesc); rtl8821ae_rx_query_desc()
473 status->hwerror = (status->crc | status->icv); rtl8821ae_rx_query_desc()
474 status->decrypted = !GET_RX_DESC_SWDEC(pdesc); rtl8821ae_rx_query_desc()
475 status->rate = (u8)GET_RX_DESC_RXMCS(pdesc); rtl8821ae_rx_query_desc()
476 status->shortpreamble = (u16)GET_RX_DESC_SPLCP(pdesc); rtl8821ae_rx_query_desc()
477 status->isampdu = (bool)(GET_RX_DESC_PAGGR(pdesc) == 1); rtl8821ae_rx_query_desc()
478 status->isfirst_ampdu = (bool)(GET_RX_DESC_PAGGR(pdesc) == 1); rtl8821ae_rx_query_desc()
479 status->timestamp_low = GET_RX_DESC_TSFL(pdesc); rtl8821ae_rx_query_desc()
480 status->rx_packet_bw = GET_RX_DESC_BW(pdesc); rtl8821ae_rx_query_desc()
481 status->macid = GET_RX_DESC_MACID(pdesc); rtl8821ae_rx_query_desc()
482 status->is_short_gi = !(bool)GET_RX_DESC_SPLCP(pdesc); rtl8821ae_rx_query_desc()
483 status->is_ht = rtl8821ae_get_rxdesc_is_ht(hw, pdesc); rtl8821ae_rx_query_desc()
484 status->is_vht = rtl8821ae_get_rxdesc_is_vht(hw, pdesc); rtl8821ae_rx_query_desc()
485 status->vht_nss = rtl8821ae_get_rx_vht_nss(hw, pdesc); rtl8821ae_rx_query_desc()
486 status->is_cck = RTL8821AE_RX_HAL_IS_CCK_RATE(status->rate); rtl8821ae_rx_query_desc()
490 (status->rx_packet_bw == 2) ? "80M" : rtl8821ae_rx_query_desc()
491 (status->rx_packet_bw == 1) ? "40M" : "20M", rtl8821ae_rx_query_desc()
492 status->is_ht, status->is_vht, status->vht_nss, rtl8821ae_rx_query_desc()
493 status->is_short_gi); rtl8821ae_rx_query_desc()
496 status->packet_report_type = C2H_PACKET; rtl8821ae_rx_query_desc()
498 status->packet_report_type = NORMAL_RX; rtl8821ae_rx_query_desc()
501 status->wake_match = BIT(2); rtl8821ae_rx_query_desc()
503 status->wake_match = BIT(1); rtl8821ae_rx_query_desc()
505 status->wake_match = BIT(0); rtl8821ae_rx_query_desc()
507 status->wake_match = 0; rtl8821ae_rx_query_desc()
509 if (status->wake_match) rtl8821ae_rx_query_desc()
512 status->wake_match); rtl8821ae_rx_query_desc()
517 status->rx_drvinfo_size + status->rx_bufshift); rtl8821ae_rx_query_desc()
519 if (status->crc) rtl8821ae_rx_query_desc()
522 if (status->rx_packet_bw == HT_CHANNEL_WIDTH_20_40) rtl8821ae_rx_query_desc()
524 else if (status->rx_packet_bw == HT_CHANNEL_WIDTH_80) rtl8821ae_rx_query_desc()
526 if (status->is_ht) rtl8821ae_rx_query_desc()
528 if (status->is_vht) rtl8821ae_rx_query_desc()
531 if (status->is_short_gi) rtl8821ae_rx_query_desc()
534 rx_status->vht_nss = status->vht_nss; rtl8821ae_rx_query_desc()
537 /* hw will set status->decrypted true, if it finds the rtl8821ae_rx_query_desc()
540 * for IEEE80211w but still set status->decrypted rtl8821ae_rx_query_desc()
545 if (status->decrypted) { rtl8821ae_rx_query_desc()
557 rx_status->rate_idx = rtlwifi_rate_mapping(hw, status->is_ht, rtl8821ae_rx_query_desc()
558 status->is_vht, rtl8821ae_rx_query_desc()
559 status->rate); rtl8821ae_rx_query_desc()
561 rx_status->mactime = status->timestamp_low; rtl8821ae_rx_query_desc()
564 status->rx_bufshift); rtl8821ae_rx_query_desc()
566 translate_rx_signal_stuff(hw, skb, status, pdesc, p_drvinfo); rtl8821ae_rx_query_desc()
568 rx_status->signal = status->recvsignalpower + 10; rtl8821ae_rx_query_desc()
569 if (status->packet_report_type == TX_REPORT2) { rtl8821ae_rx_query_desc()
570 status->macid_valid_entry[0] = rtl8821ae_rx_query_desc()
572 status->macid_valid_entry[1] = rtl8821ae_rx_query_desc()
1001 struct rtl_stats status, rtl8821ae_rx_command_packet()
1007 switch (status.packet_report_type) { rtl8821ae_rx_command_packet()
456 rtl8821ae_rx_query_desc(struct ieee80211_hw *hw, struct rtl_stats *status, struct ieee80211_rx_status *rx_status, u8 *pdesc, struct sk_buff *skb) rtl8821ae_rx_query_desc() argument
1000 rtl8821ae_rx_command_packet(struct ieee80211_hw *hw, struct rtl_stats status, struct sk_buff *skb) rtl8821ae_rx_command_packet() argument
/linux-4.4.14/drivers/scsi/qla4xxx/
H A Dql4_mbx.c39 * The ISR will save the mailbox status registers qla4xxx_process_mbox_intr()
87 int status = QLA_ERROR; qla4xxx_mailbox_command() local
97 return status; qla4xxx_mailbox_command()
106 return status; qla4xxx_mailbox_command()
114 return status; qla4xxx_mailbox_command()
131 return status; qla4xxx_mailbox_command()
169 * If we don't want status, don't wait for the mailbox command to qla4xxx_mailbox_command()
170 * complete. For example, MBOX_CMD_RESET_FW doesn't return status, qla4xxx_mailbox_command()
174 status = QLA_SUCCESS; qla4xxx_mailbox_command()
189 * The ISR will save the mailbox status registers qla4xxx_mailbox_command()
242 /* Set return status and error flags (if applicable). */ qla4xxx_mailbox_command()
245 status = QLA_SUCCESS; qla4xxx_mailbox_command()
249 status = QLA_SUCCESS; qla4xxx_mailbox_command()
273 return status; qla4xxx_mailbox_command()
289 int status; qla4xxx_get_minidump_template() local
301 status = qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, 2, &mbox_cmd[0], qla4xxx_get_minidump_template()
303 if (status != QLA_SUCCESS) { qla4xxx_get_minidump_template()
309 return status; qla4xxx_get_minidump_template()
320 int status; qla4xxx_req_template_size() local
328 status = qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, 8, &mbox_cmd[0], qla4xxx_req_template_size()
330 if (status == QLA_SUCCESS) { qla4xxx_req_template_size()
338 status = QLA_ERROR; qla4xxx_req_template_size()
343 status = QLA_ERROR; qla4xxx_req_template_size()
346 return status; qla4xxx_req_template_size()
391 " failed w/ status %04X\n", qla4xxx_set_ifcb()
413 " failed w/ status %04X\n", qla4xxx_get_ifcb()
626 int status = QLA_ERROR; qla4xxx_initialize_fw_cb() local
693 status = QLA_SUCCESS; qla4xxx_initialize_fw_cb()
699 return status; qla4xxx_initialize_fw_cb()
760 "status %04X\n", ha->host_no, __func__, qla4xxx_get_firmware_state()
774 * qla4xxx_get_firmware_status - retrieves firmware status
791 "status %04X\n", ha->host_no, __func__, qla4xxx_get_firmware_status()
838 int status = QLA_ERROR; qla4xxx_get_fwddb_entry() local
863 " with status 0x%04X\n", ha->host_no, __func__, qla4xxx_get_fwddb_entry()
915 status = QLA_SUCCESS; qla4xxx_get_fwddb_entry()
918 return status; qla4xxx_get_fwddb_entry()
925 int status; qla4xxx_conn_open() local
933 status = qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, 2, &mbox_cmd[0], qla4xxx_conn_open()
936 "%s: status = %d mbx0 = 0x%x mbx1 = 0x%x\n", qla4xxx_conn_open()
937 __func__, status, mbox_sts[0], mbox_sts[1])); qla4xxx_conn_open()
938 return status; qla4xxx_conn_open()
956 int status; qla4xxx_set_ddb_entry() local
959 * ASTS_DATABASE_CHANGED (0x8014) to notify us of the login status. qla4xxx_set_ddb_entry()
970 status = qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, 5, &mbox_cmd[0], qla4xxx_set_ddb_entry()
974 DEBUG2(printk("scsi%ld: %s: status=%d mbx0=0x%x mbx4=0x%x\n", qla4xxx_set_ddb_entry()
975 ha->host_no, __func__, status, mbox_sts[0], mbox_sts[4]);) qla4xxx_set_ddb_entry()
977 return status; qla4xxx_set_ddb_entry()
983 int status; qla4xxx_session_logout_ddb() local
994 status = qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, 2, &mbox_cmd[0], qla4xxx_session_logout_ddb()
996 if (status != QLA_SUCCESS) { qla4xxx_session_logout_ddb()
1007 return status; qla4xxx_session_logout_ddb()
1178 int status = QLA_SUCCESS; qla4xxx_abort_task() local
1184 * request with ABORT status qla4xxx_abort_task()
1195 return status; qla4xxx_abort_task()
1206 status = QLA_ERROR; qla4xxx_abort_task()
1214 return status; qla4xxx_abort_task()
1233 int status = QLA_SUCCESS; qla4xxx_reset_lun() local
1240 * outstanding requests with RESET status qla4xxx_reset_lun()
1259 status = QLA_ERROR; qla4xxx_reset_lun()
1261 return status; qla4xxx_reset_lun()
1279 int status = QLA_SUCCESS; qla4xxx_reset_target() local
1286 * outstanding requests with RESET status qla4xxx_reset_target()
1299 status = QLA_ERROR; qla4xxx_reset_target()
1301 return status; qla4xxx_reset_target()
1322 "status %04X %04X, offset %08x, len %08x\n", ha->host_no, qla4xxx_get_flash()
1343 int status = QLA_ERROR; qla4xxx_about_firmware() local
1351 return status; qla4xxx_about_firmware()
1363 status = qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, MBOX_REG_COUNT, qla4xxx_about_firmware()
1365 if (status != QLA_SUCCESS) { qla4xxx_about_firmware()
1367 "failed w/ status %04X\n", __func__, qla4xxx_about_firmware()
1395 status = QLA_SUCCESS; qla4xxx_about_firmware()
1400 return status; qla4xxx_about_firmware()
1419 DEBUG2(printk("scsi%ld: %s: failed status %04X\n", qla4xxx_get_default_ddb()
1429 int status; qla4xxx_req_ddb_entry() local
1439 status = qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, 1, &mbox_cmd[0], qla4xxx_req_ddb_entry()
1441 if (status != QLA_SUCCESS) { qla4xxx_req_ddb_entry()
1442 DEBUG2(ql4_printk(KERN_ERR, ha, "%s: failed status %04X\n", qla4xxx_req_ddb_entry()
1447 return status; qla4xxx_req_ddb_entry()
1452 int status; qla4xxx_clear_ddb_entry() local
1462 status = qla4xxx_mailbox_command(ha, 2, 1, &mbox_cmd[0], qla4xxx_clear_ddb_entry()
1464 if (status != QLA_SUCCESS) { qla4xxx_clear_ddb_entry()
1465 DEBUG2(ql4_printk(KERN_ERR, ha, "%s: failed status %04X\n", qla4xxx_clear_ddb_entry()
1469 return status; qla4xxx_clear_ddb_entry()
1477 int status = QLA_SUCCESS; qla4xxx_set_flash() local
1489 status = qla4xxx_mailbox_command(ha, 6, 2, &mbox_cmd[0], &mbox_sts[0]); qla4xxx_set_flash()
1490 if (status != QLA_SUCCESS) { qla4xxx_set_flash()
1492 "failed w/ status %04X, mbx1 %04X\n", qla4xxx_set_flash()
1495 return status; qla4xxx_set_flash()
1504 int status = QLA_ERROR; qla4xxx_bootdb_by_index() local
1526 status = QLA_SUCCESS; qla4xxx_bootdb_by_index()
1529 return status; qla4xxx_bootdb_by_index()
1538 int status = QLA_ERROR; qla4xxx_flashdb_by_index() local
1575 status = QLA_SUCCESS; qla4xxx_flashdb_by_index()
1578 return status; qla4xxx_flashdb_by_index()
1845 int status = QLA_SUCCESS; qla4xxx_conn_close_sess_logout() local
1855 status = qla4xxx_mailbox_command(ha, 4, 2, &mbox_cmd[0], &mbox_sts[0]); qla4xxx_conn_close_sess_logout()
1856 if (status != QLA_SUCCESS) { qla4xxx_conn_close_sess_logout()
1858 "option %04x failed w/ status %04X %04X\n", qla4xxx_conn_close_sess_logout()
1861 return status; qla4xxx_conn_close_sess_logout()
1875 int status; qla4_84xx_extend_idc_tmo() local
1888 status = qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, MBOX_REG_COUNT, qla4_84xx_extend_idc_tmo()
1890 if (status != QLA_SUCCESS) { qla4_84xx_extend_idc_tmo()
1892 "scsi%ld: %s: failed status %04X\n", qla4_84xx_extend_idc_tmo()
1907 int status = QLA_SUCCESS; qla4xxx_disable_acb() local
1914 status = qla4xxx_mailbox_command(ha, 8, 5, &mbox_cmd[0], &mbox_sts[0]); qla4xxx_disable_acb()
1915 if (status != QLA_SUCCESS) { qla4xxx_disable_acb()
1917 "failed w/ status %04X %04X %04X", __func__, qla4xxx_disable_acb()
1938 return status; qla4xxx_disable_acb()
1946 int status = QLA_SUCCESS; qla4xxx_get_acb() local
1957 status = qla4xxx_mailbox_command(ha, 5, 5, &mbox_cmd[0], &mbox_sts[0]); qla4xxx_get_acb()
1958 if (status != QLA_SUCCESS) { qla4xxx_get_acb()
1960 "failed w/ status %04X\n", __func__, qla4xxx_get_acb()
1963 return status; qla4xxx_get_acb()
1969 int status = QLA_SUCCESS; qla4xxx_set_acb() local
1979 status = qla4xxx_mailbox_command(ha, 5, 5, &mbox_cmd[0], &mbox_sts[0]); qla4xxx_set_acb()
1980 if (status != QLA_SUCCESS) { qla4xxx_set_acb()
1982 "failed w/ status %04X\n", __func__, qla4xxx_set_acb()
1985 return status; qla4xxx_set_acb()
1999 int status = QLA_SUCCESS; qla4xxx_set_param_ddbentry() local
2026 status = qla4xxx_get_default_ddb(ha, options, fw_ddb_entry_dma); qla4xxx_set_param_ddbentry()
2027 if (status == QLA_ERROR) { qla4xxx_set_param_ddbentry()
2142 status = qla4xxx_set_ddb_entry(ha, ddb_entry->fw_ddb_index, qla4xxx_set_param_ddbentry()
2145 if (status != QLA_SUCCESS) qla4xxx_set_param_ddbentry()
2157 int status = QLA_SUCCESS; qla4xxx_get_mgmt_data() local
2169 status = qla4xxx_mailbox_command(ha, 5, 1, &mbox_cmd[0], &mbox_sts[0]); qla4xxx_get_mgmt_data()
2170 if (status != QLA_SUCCESS) { qla4xxx_get_mgmt_data()
2173 "failed w/ status %04X\n", __func__, qla4xxx_get_mgmt_data()
2176 return status; qla4xxx_get_mgmt_data()
2184 int status = QLA_SUCCESS; qla4xxx_get_ip_state() local
2192 status = qla4xxx_mailbox_command(ha, 3, 8, &mbox_cmd[0], &mbox_sts[0]); qla4xxx_get_ip_state()
2193 if (status != QLA_SUCCESS) { qla4xxx_get_ip_state()
2196 "status %04X\n", __func__, mbox_sts[0])); qla4xxx_get_ip_state()
2199 return status; qla4xxx_get_ip_state()
2205 int status = QLA_SUCCESS; qla4xxx_get_nvram() local
2218 status = qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, 1, &mbox_cmd[0], qla4xxx_get_nvram()
2220 if (status != QLA_SUCCESS) { qla4xxx_get_nvram()
2222 "status %04X\n", ha->host_no, __func__, qla4xxx_get_nvram()
2225 return status; qla4xxx_get_nvram()
2231 int status = QLA_SUCCESS; qla4xxx_set_nvram() local
2244 status = qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, 1, &mbox_cmd[0], qla4xxx_set_nvram()
2246 if (status != QLA_SUCCESS) { qla4xxx_set_nvram()
2248 "status %04X\n", ha->host_no, __func__, qla4xxx_set_nvram()
2251 return status; qla4xxx_set_nvram()
2258 int status = QLA_SUCCESS; qla4xxx_restore_factory_defaults() local
2270 status = qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, 3, &mbox_cmd[0], qla4xxx_restore_factory_defaults()
2272 if (status != QLA_SUCCESS) { qla4xxx_restore_factory_defaults()
2274 "status %04X\n", ha->host_no, __func__, qla4xxx_restore_factory_defaults()
2277 return status; qla4xxx_restore_factory_defaults()
2289 uint32_t status; qla4_8xxx_set_param() local
2302 status = QLA_ERROR; qla4_8xxx_set_param()
2306 status = qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, 2, mbox_cmd, qla4_8xxx_set_param()
2308 if (status == QLA_ERROR) qla4_8xxx_set_param()
2309 ql4_printk(KERN_ERR, ha, "%s: failed status %04X\n", qla4_8xxx_set_param()
2313 return status; qla4_8xxx_set_param()
2326 int status; qla4_83xx_post_idc_ack() local
2337 status = qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, MBOX_REG_COUNT, qla4_83xx_post_idc_ack()
2339 if (status == QLA_ERROR) qla4_83xx_post_idc_ack()
2340 ql4_printk(KERN_ERR, ha, "%s: failed status %04X\n", __func__, qla4_83xx_post_idc_ack()
2345 return status; qla4_83xx_post_idc_ack()
2427 int status; qla4_83xx_get_port_config() local
2434 status = qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, MBOX_REG_COUNT, qla4_83xx_get_port_config()
2436 if (status == QLA_SUCCESS) qla4_83xx_get_port_config()
2439 ql4_printk(KERN_ERR, ha, "%s: failed status %04X\n", __func__, qla4_83xx_get_port_config()
2442 return status; qla4_83xx_get_port_config()
2449 int status; qla4_83xx_set_port_config() local
2457 status = qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, MBOX_REG_COUNT, qla4_83xx_set_port_config()
2459 if (status != QLA_SUCCESS) qla4_83xx_set_port_config()
2460 ql4_printk(KERN_ERR, ha, "%s: failed status %04X\n", __func__, qla4_83xx_set_port_config()
2463 return status; qla4_83xx_set_port_config()
/linux-4.4.14/drivers/net/wireless/b43legacy/
H A Dxmit.c294 * in the tx status easier. need the actual retry limit to generate_txhdr_fw3()
435 struct ieee80211_rx_status status; b43legacy_rx() local
449 memset(&status, 0, sizeof(status)); b43legacy_rx()
528 status.flag |= RX_FLAG_DECRYPTED; b43legacy_rx()
532 status.signal = b43legacy_rssi_postprocess(dev, jssi, b43legacy_rx()
538 status.rate_idx = b43legacy_plcp_get_bitrate_idx_ofdm(plcp, false); b43legacy_rx()
540 status.rate_idx = b43legacy_plcp_get_bitrate_idx_cck(plcp); b43legacy_rx()
541 status.antenna = !!(phystat0 & B43legacy_RX_PHYST0_ANT); b43legacy_rx()
554 b43legacy_tsf_read(dev, &status.mactime); b43legacy_rx()
555 low_mactime_now = status.mactime; b43legacy_rx()
556 status.mactime = status.mactime & ~0xFFFFULL; b43legacy_rx()
557 status.mactime += mactime; b43legacy_rx()
559 status.mactime -= 0x10000; b43legacy_rx()
560 status.flag |= RX_FLAG_MACTIME_START; b43legacy_rx()
568 status.band = IEEE80211_BAND_2GHZ; b43legacy_rx()
569 status.freq = chanid + 2400; b43legacy_rx()
576 memcpy(IEEE80211_SKB_RXCB(skb), &status, sizeof(status)); b43legacy_rx() local
586 const struct b43legacy_txstatus *status) b43legacy_handle_txstatus()
588 b43legacy_debugfs_log_txstat(dev, status); b43legacy_handle_txstatus()
590 if (status->intermediate) b43legacy_handle_txstatus()
592 if (status->for_ampdu) b43legacy_handle_txstatus()
594 if (!status->acked) b43legacy_handle_txstatus()
596 if (status->rts_count) { b43legacy_handle_txstatus()
597 if (status->rts_count == 0xF) /* FIXME */ b43legacy_handle_txstatus()
604 b43legacy_pio_handle_txstatus(dev, status); b43legacy_handle_txstatus()
606 b43legacy_dma_handle_txstatus(dev, status); b43legacy_handle_txstatus()
609 /* Handle TX status report as received through DMA/PIO queues */ b43legacy_handle_hwtxstatus()
613 struct b43legacy_txstatus status; b43legacy_handle_hwtxstatus() local
616 status.cookie = le16_to_cpu(hw->cookie); b43legacy_handle_hwtxstatus()
617 status.seq = le16_to_cpu(hw->seq); b43legacy_handle_hwtxstatus()
618 status.phy_stat = hw->phy_stat; b43legacy_handle_hwtxstatus()
620 status.frame_count = (tmp >> 4); b43legacy_handle_hwtxstatus()
621 status.rts_count = (tmp & 0x0F); b43legacy_handle_hwtxstatus()
623 status.supp_reason = ((tmp & 0x1C) >> 2); b43legacy_handle_hwtxstatus()
624 status.pm_indicated = !!(tmp & 0x80); b43legacy_handle_hwtxstatus()
625 status.intermediate = !!(tmp & 0x40); b43legacy_handle_hwtxstatus()
626 status.for_ampdu = !!(tmp & 0x20); b43legacy_handle_hwtxstatus()
627 status.acked = !!(tmp & 0x02); b43legacy_handle_hwtxstatus()
629 b43legacy_handle_txstatus(dev, &status); b43legacy_handle_hwtxstatus()
585 b43legacy_handle_txstatus(struct b43legacy_wldev *dev, const struct b43legacy_txstatus *status) b43legacy_handle_txstatus() argument
/linux-4.4.14/drivers/mmc/host/
H A Dmmc_spi.c120 u8 status[29]; member in struct:scratch
138 /* for status readback */
139 struct spi_transfer status; member in struct:mmc_spi_host
173 int status; mmc_spi_readbytes() local
180 host->status.len = len; mmc_spi_readbytes()
187 status = spi_sync_locked(host->spi, &host->readback); mmc_spi_readbytes()
194 return status; mmc_spi_readbytes()
200 u8 *cp = host->data->status; mmc_spi_skip()
204 int status; mmc_spi_skip() local
207 status = mmc_spi_readbytes(host, n); mmc_spi_skip()
208 if (status < 0) mmc_spi_skip()
209 return status; mmc_spi_skip()
232 return mmc_spi_skip(host, timeout, sizeof(host->data->status), 0); mmc_spi_wait_unbusy()
265 u8 *cp = host->data->status; mmc_spi_response_get()
289 cp = host->data->status; mmc_spi_response_get()
293 * status byte ... and we already scanned 2 bytes. mmc_spi_response_get()
324 cp = host->data->status; mmc_spi_response_get()
367 /* SPI R2 == R1 + second status byte; SEND_STATUS mmc_spi_response_get()
376 cp = host->data->status; mmc_spi_response_get()
399 cp = host->data->status; mmc_spi_response_get()
412 /* SPI R1 == just one status byte */ mmc_spi_response_get()
450 u8 *cp = data->status; mmc_spi_command_send()
451 int status; mmc_spi_command_send() local
467 memset(cp, 0xff, sizeof(data->status)); mmc_spi_command_send()
476 * - status byte (for all response types) mmc_spi_command_send()
479 * + second status byte, for R2 responses mmc_spi_command_send()
510 cp += 2; /* min(N(CR)) + status */ mmc_spi_command_send()
513 cp += 10; /* max(N(CR)) + status + min(N(RC),N(WR)) */ mmc_spi_command_send()
519 cp = data->status + sizeof(data->status); mmc_spi_command_send()
531 t->tx_buf = t->rx_buf = data->status; mmc_spi_command_send()
533 t->len = cp - data->status; mmc_spi_command_send()
543 status = spi_sync_locked(host->spi, &host->m); mmc_spi_command_send()
549 if (status < 0) { mmc_spi_command_send()
550 dev_dbg(&host->spi->dev, " ... write returned %d\n", status); mmc_spi_command_send()
551 cmd->error = status; mmc_spi_command_send()
552 return status; mmc_spi_command_send()
561 * a status transfer.
646 ? sizeof(scratch->status) mmc_spi_setup_data_message()
650 t->rx_buf = scratch->status; mmc_spi_setup_data_message()
652 t->rx_dma = dma + offsetof(struct scratch, status); mmc_spi_setup_data_message()
675 int status, i; mmc_spi_writeblock() local
687 status = spi_sync_locked(spi, &host->m); mmc_spi_writeblock()
689 if (status != 0) { mmc_spi_writeblock()
690 dev_dbg(&spi->dev, "write error (%d)\n", status); mmc_spi_writeblock()
691 return status; mmc_spi_writeblock()
711 pattern = get_unaligned_be32(scratch->status); mmc_spi_writeblock()
724 status = 0; mmc_spi_writeblock()
728 status = -EILSEQ; mmc_spi_writeblock()
734 status = -EIO; mmc_spi_writeblock()
737 status = -EPROTO; mmc_spi_writeblock()
740 if (status != 0) { mmc_spi_writeblock()
742 scratch->status[0], status); mmc_spi_writeblock()
743 return status; mmc_spi_writeblock()
750 /* Return when not busy. If we didn't collect that status yet, mmc_spi_writeblock()
753 for (i = 4; i < sizeof(scratch->status); i++) { mmc_spi_writeblock()
755 if (scratch->status[i] & 0x01) mmc_spi_writeblock()
782 int status; mmc_spi_readblock() local
790 status = mmc_spi_readbytes(host, 1); mmc_spi_readblock()
791 if (status < 0) mmc_spi_readblock()
792 return status; mmc_spi_readblock()
793 status = scratch->status[0]; mmc_spi_readblock()
794 if (status == 0xff || status == 0) mmc_spi_readblock()
795 status = mmc_spi_readtoken(host, timeout); mmc_spi_readblock()
797 if (status < 0) { mmc_spi_readblock()
798 dev_dbg(&spi->dev, "read error %02x (%d)\n", status, status); mmc_spi_readblock()
799 return status; mmc_spi_readblock()
806 while (status & 0x80) { mmc_spi_readblock()
807 status <<= 1; mmc_spi_readblock()
810 leftover = status << 1; mmc_spi_readblock()
821 status = spi_sync_locked(spi, &host->m); mmc_spi_readblock()
911 int status = 0; mmc_spi_data_do() local
941 /* transfer each block, and update request status */ mmc_spi_data_do()
953 status = mmc_spi_writeblock(host, t, timeout); mmc_spi_data_do()
955 status = mmc_spi_readblock(host, t, timeout); mmc_spi_data_do()
956 if (status < 0) mmc_spi_data_do()
973 if (status < 0) { mmc_spi_data_do()
974 data->error = status; mmc_spi_data_do()
975 dev_dbg(&spi->dev, "%s status %d\n", mmc_spi_data_do()
978 status); mmc_spi_data_do()
992 const unsigned statlen = sizeof(scratch->status); mmc_spi_data_do()
999 * "not busy any longer" status, and leave chip selected. mmc_spi_data_do()
1005 memset(scratch->status, 0xff, statlen); mmc_spi_data_do()
1006 scratch->status[0] = SPI_TOKEN_STOP_TRAN; mmc_spi_data_do()
1030 /* Ideally we collected "not busy" status with one I/O, mmc_spi_data_do()
1035 if (scratch->status[tmp] != 0) mmc_spi_data_do()
1053 int status = -EINVAL; mmc_spi_request() local
1090 status = mmc_spi_command_send(host, mrq, mrq->cmd, mrq->data != NULL); mmc_spi_request()
1091 if (status == 0 && mrq->data) { mmc_spi_request()
1105 status = mmc_spi_command_send(host, mrq, &stop, 0); mmc_spi_request()
1112 status = mmc_spi_command_send(host, mrq, mrq->stop, 0); mmc_spi_request()
1150 * the card returns BUSY status, the clock must issue several cycles mmc_spi_initsequence()
1260 int status; mmc_spi_set_ios() local
1263 status = spi_setup(host->spi); mmc_spi_set_ios()
1266 host->spi->max_speed_hz, status); mmc_spi_set_ios()
1299 int status; mmc_spi_probe() local
1318 status = spi_setup(spi); mmc_spi_probe()
1319 if (status < 0) { mmc_spi_probe()
1322 status); mmc_spi_probe()
1323 return status; mmc_spi_probe()
1332 status = -ENOMEM; mmc_spi_probe()
1406 /* setup message for status/busy readback */ mmc_spi_probe()
1410 spi_message_add_tail(&host->status, &host->readback); mmc_spi_probe()
1411 host->status.tx_buf = host->ones; mmc_spi_probe()
1412 host->status.tx_dma = host->ones_dma; mmc_spi_probe()
1413 host->status.rx_buf = &host->data->status; mmc_spi_probe()
1414 host->status.rx_dma = host->data_dma + offsetof(struct scratch, status); mmc_spi_probe()
1415 host->status.cs_change = 1; mmc_spi_probe()
1419 status = host->pdata->init(&spi->dev, mmc_spi_detect_irq, mmc); mmc_spi_probe()
1420 if (status != 0) mmc_spi_probe()
1430 status = mmc_add_host(mmc); mmc_spi_probe()
1431 if (status != 0) mmc_spi_probe()
1435 status = mmc_gpio_request_cd(mmc, host->pdata->cd_gpio, mmc_spi_probe()
1437 if (status != 0) mmc_spi_probe()
1450 status = mmc_gpio_request_ro(mmc, host->pdata->ro_gpio); mmc_spi_probe()
1451 if (status != 0) mmc_spi_probe()
1480 return status; mmc_spi_probe()
/linux-4.4.14/drivers/thermal/int340x_thermal/
H A Dint340x_thermal_zone.c27 acpi_status status; int340x_thermal_get_zone_temp() local
32 status = acpi_evaluate_integer(d->adev->handle, "_TMP", NULL, &tmp); int340x_thermal_get_zone_temp()
33 if (ACPI_FAILURE(status)) int340x_thermal_get_zone_temp()
120 acpi_status status; int340x_thermal_set_trip_temp() local
127 status = acpi_execute_simple_method(d->adev->handle, name, int340x_thermal_set_trip_temp()
129 if (ACPI_FAILURE(status)) int340x_thermal_set_trip_temp()
142 acpi_status status; int340x_thermal_get_trip_hyst() local
148 status = acpi_evaluate_integer(d->adev->handle, "GTSH", NULL, &hyst); int340x_thermal_get_trip_hyst()
149 if (ACPI_FAILURE(status)) int340x_thermal_get_trip_hyst()
169 acpi_status status; int340x_thermal_get_trip_config() local
171 status = acpi_evaluate_integer(handle, name, NULL, &r); int340x_thermal_get_trip_config()
172 if (ACPI_FAILURE(status)) int340x_thermal_get_trip_config()
189 acpi_status status; int340x_thermal_zone_add() local
202 status = acpi_evaluate_integer(adev->handle, "PATC", NULL, &trip_cnt); int340x_thermal_zone_add()
203 if (ACPI_FAILURE(status)) int340x_thermal_zone_add()
/linux-4.4.14/drivers/net/wireless/b43/
H A Dxmit.c416 * in the tx status easier. need the actual retry limit to b43_generate_txhdr()
657 struct ieee80211_rx_status status; b43_rx() local
669 memset(&status, 0, sizeof(status)); b43_rx()
691 status.flag |= RX_FLAG_FAILED_FCS_CRC; b43_rx()
694 status.flag |= RX_FLAG_FAILED_PLCP_CRC; b43_rx()
696 status.flag |= RX_FLAG_SHORTPRE; b43_rx()
739 status.flag |= RX_FLAG_DECRYPTED; b43_rx()
747 status.signal = max_t(__s8, b43_rx()
754 status.signal = max(rxhdr->power1, rxhdr->power2); b43_rx()
756 status.signal = max(rxhdr->power0, rxhdr->power1); b43_rx()
762 status.signal = b43_rssi_postprocess(dev, rxhdr->jssi, b43_rx()
780 status.rate_idx = rate_idx; b43_rx()
781 status.antenna = !!(phystat0 & B43_RX_PHYST0_ANT); b43_rx()
794 b43_tsf_read(dev, &status.mactime); b43_rx()
795 low_mactime_now = status.mactime; b43_rx()
796 status.mactime = status.mactime & ~0xFFFFULL; b43_rx()
797 status.mactime += mactime; b43_rx()
799 status.mactime -= 0x10000; b43_rx()
800 status.flag |= RX_FLAG_MACTIME_START; b43_rx()
806 status.band = IEEE80211_BAND_5GHZ; b43_rx()
810 status.freq = b43_rx()
811 ieee80211_channel_to_frequency(chanid, status.band); b43_rx()
814 status.band = IEEE80211_BAND_2GHZ; b43_rx()
819 status.freq = ieee80211_channel_to_frequency(chanid, status.band); b43_rx()
821 status.freq = chanid + 2400; b43_rx()
829 status.band = IEEE80211_BAND_5GHZ; b43_rx()
831 status.band = IEEE80211_BAND_2GHZ; b43_rx()
832 status.freq = b43_rx()
833 ieee80211_channel_to_frequency(chanid, status.band); b43_rx()
840 memcpy(IEEE80211_SKB_RXCB(skb), &status, sizeof(status)); b43_rx() local
852 const struct b43_txstatus *status) b43_handle_txstatus()
854 b43_debugfs_log_txstat(dev, status); b43_handle_txstatus()
856 if (status->intermediate) b43_handle_txstatus()
858 if (status->for_ampdu) b43_handle_txstatus()
860 if (!status->acked) b43_handle_txstatus()
862 if (status->rts_count) { b43_handle_txstatus()
863 if (status->rts_count == 0xF) //FIXME b43_handle_txstatus()
870 b43_pio_handle_txstatus(dev, status); b43_handle_txstatus()
872 b43_dma_handle_txstatus(dev, status); b43_handle_txstatus()
882 const struct b43_txstatus *status) b43_fill_txstatus_report()
887 /* preserve the confiured retry limit before clearing the status b43_fill_txstatus_report()
890 retry_limit = report->status.rates[0].count; b43_fill_txstatus_report()
893 if (status->acked) { b43_fill_txstatus_report()
903 if (status->frame_count == 0) { b43_fill_txstatus_report()
905 report->status.rates[0].count = 0; b43_fill_txstatus_report()
906 } else if (status->rts_count > dev->wl->hw->conf.short_frame_max_tx_count) { b43_fill_txstatus_report()
914 report->status.rates[0].count = 0; b43_fill_txstatus_report()
915 report->status.rates[1].count = status->frame_count; b43_fill_txstatus_report()
917 if (status->frame_count > retry_limit) { b43_fill_txstatus_report()
918 report->status.rates[0].count = retry_limit; b43_fill_txstatus_report()
919 report->status.rates[1].count = status->frame_count - b43_fill_txstatus_report()
923 report->status.rates[0].count = status->frame_count; b43_fill_txstatus_report()
924 report->status.rates[1].idx = -1; b43_fill_txstatus_report()
851 b43_handle_txstatus(struct b43_wldev *dev, const struct b43_txstatus *status) b43_handle_txstatus() argument
880 b43_fill_txstatus_report(struct b43_wldev *dev, struct ieee80211_tx_info *report, const struct b43_txstatus *status) b43_fill_txstatus_report() argument
/linux-4.4.14/drivers/acpi/
H A Dutils.c290 acpi_status status = AE_OK; acpi_evaluate_integer() local
299 status = acpi_evaluate_object(handle, pathname, arguments, &buffer); acpi_evaluate_integer()
300 if (ACPI_FAILURE(status)) { acpi_evaluate_integer()
301 acpi_util_eval_error(handle, pathname, status); acpi_evaluate_integer()
302 return status; acpi_evaluate_integer()
325 acpi_status status = AE_OK; acpi_evaluate_reference() local
338 status = acpi_evaluate_object(handle, pathname, arguments, &buffer); acpi_evaluate_reference()
339 if (ACPI_FAILURE(status)) acpi_evaluate_reference()
345 status = AE_BAD_DATA; acpi_evaluate_reference()
346 acpi_util_eval_error(handle, pathname, status); acpi_evaluate_reference()
350 status = AE_BAD_DATA; acpi_evaluate_reference()
351 acpi_util_eval_error(handle, pathname, status); acpi_evaluate_reference()
355 status = AE_BAD_DATA; acpi_evaluate_reference()
356 acpi_util_eval_error(handle, pathname, status); acpi_evaluate_reference()
372 status = AE_BAD_DATA; acpi_evaluate_reference()
373 acpi_util_eval_error(handle, pathname, status); acpi_evaluate_reference()
378 status = AE_NULL_ENTRY; acpi_evaluate_reference()
379 acpi_util_eval_error(handle, pathname, status); acpi_evaluate_reference()
390 if (ACPI_FAILURE(status)) { acpi_evaluate_reference()
397 return status; acpi_evaluate_reference()
405 acpi_status status; acpi_get_physical_device_location() local
409 status = acpi_evaluate_object(handle, "_PLD", NULL, &buffer); acpi_get_physical_device_location()
411 if (ACPI_FAILURE(status)) acpi_get_physical_device_location()
412 return status; acpi_get_physical_device_location()
420 status = AE_TYPE; acpi_get_physical_device_location()
424 status = acpi_decode_pld_buffer( acpi_get_physical_device_location()
431 return status; acpi_get_physical_device_location()
439 * @status_code: status code
581 acpi_status status; acpi_evaluate_ej0() local
583 status = acpi_execute_simple_method(handle, "_EJ0", 1); acpi_evaluate_ej0()
584 if (status == AE_NOT_FOUND) acpi_evaluate_ej0()
586 else if (ACPI_FAILURE(status)) acpi_evaluate_ej0()
587 acpi_handle_warn(handle, "Eject failed (0x%x)\n", status); acpi_evaluate_ej0()
589 return status; acpi_evaluate_ej0()
601 acpi_status status; acpi_evaluate_lck() local
603 status = acpi_execute_simple_method(handle, "_LCK", !!lock); acpi_evaluate_lck()
604 if (ACPI_FAILURE(status) && status != AE_NOT_FOUND) { acpi_evaluate_lck()
607 "Locking device failed (0x%x)\n", status); acpi_evaluate_lck()
610 "Unlocking device failed (0x%x)\n", status); acpi_evaluate_lck()
613 return status; acpi_evaluate_lck()
/linux-4.4.14/drivers/char/xilinx_hwicap/
H A Dxilinx_hwicap.c264 int status; hwicap_get_configuration_register() local
281 status = drvdata->config->set_configuration(drvdata, hwicap_get_configuration_register()
283 if (status) hwicap_get_configuration_register()
284 return status; hwicap_get_configuration_register()
287 status = drvdata->config->get_status(drvdata); hwicap_get_configuration_register()
288 if ((status & XHI_SR_DALIGN_MASK) != XHI_SR_DALIGN_MASK) hwicap_get_configuration_register()
300 status = drvdata->config->set_configuration(drvdata, hwicap_get_configuration_register()
302 if (status) hwicap_get_configuration_register()
303 return status; hwicap_get_configuration_register()
308 status = drvdata->config->get_configuration(drvdata, reg_data, 1); hwicap_get_configuration_register()
309 if (status) hwicap_get_configuration_register()
310 return status; hwicap_get_configuration_register()
317 int status; hwicap_initialize_hwicap() local
328 status = hwicap_command_desync(drvdata); hwicap_initialize_hwicap()
329 if (status) hwicap_initialize_hwicap()
330 return status; hwicap_initialize_hwicap()
337 status = hwicap_get_configuration_register( hwicap_initialize_hwicap()
340 if (status) hwicap_initialize_hwicap()
341 return status; hwicap_initialize_hwicap()
344 status = hwicap_command_desync(drvdata); hwicap_initialize_hwicap()
345 if (status) hwicap_initialize_hwicap()
346 return status; hwicap_initialize_hwicap()
359 int status; hwicap_read() local
361 status = mutex_lock_interruptible(&drvdata->sem); hwicap_read()
362 if (status) hwicap_read()
363 return status; hwicap_read()
375 status = -EFAULT; hwicap_read()
386 status = -ENOMEM; hwicap_read()
409 status = drvdata->config->get_configuration(drvdata, hwicap_read()
413 if (status) { hwicap_read()
421 status = -EFAULT; hwicap_read()
430 status = bytes_to_read; hwicap_read()
433 return status; hwicap_read()
445 ssize_t status; hwicap_write() local
447 status = mutex_lock_interruptible(&drvdata->sem); hwicap_write()
448 if (status) hwicap_write()
449 return status; hwicap_write()
455 status = 0; hwicap_write()
461 status = -ENOMEM; hwicap_write()
482 status = -EFAULT; hwicap_write()
488 status = -EFAULT; hwicap_write()
493 status = drvdata->config->set_configuration(drvdata, hwicap_write()
496 if (status) { hwicap_write()
498 status = -EFAULT; hwicap_write()
519 status = written; hwicap_write()
522 return status; hwicap_write()
528 int status; hwicap_open() local
533 status = mutex_lock_interruptible(&drvdata->sem); hwicap_open()
534 if (status) hwicap_open()
538 status = -EBUSY; hwicap_open()
542 status = hwicap_initialize_hwicap(drvdata); hwicap_open()
543 if (status) { hwicap_open()
557 return status; hwicap_open()
564 int status = 0; hwicap_release() local
573 status = drvdata->config->set_configuration(drvdata, hwicap_release()
575 if (status) hwicap_release()
579 status = hwicap_command_desync(drvdata); hwicap_release()
580 if (status) hwicap_release()
586 return status; hwicap_release()
/linux-4.4.14/drivers/net/wireless/ti/wlcore/
H A Drx.c61 struct ieee80211_rx_status *status, wl1271_rx_status()
64 memset(status, 0, sizeof(struct ieee80211_rx_status)); wl1271_rx_status()
67 status->band = IEEE80211_BAND_2GHZ; wl1271_rx_status()
69 status->band = IEEE80211_BAND_5GHZ; wl1271_rx_status()
71 status->rate_idx = wlcore_rate_to_idx(wl, desc->rate, status->band); wl1271_rx_status()
75 status->flag |= RX_FLAG_HT; wl1271_rx_status()
83 status->signal = ((desc->rssi & RSSI_LEVEL_BITMASK) | BIT(7)); wl1271_rx_status()
84 status->antenna = ((desc->rssi & ANT_DIVERSITY_BITMASK) >> 7); wl1271_rx_status()
93 status->freq = ieee80211_channel_to_frequency(desc->channel, wl1271_rx_status()
94 status->band); wl1271_rx_status()
97 u8 desc_err_code = desc->status & WL1271_RX_DESC_STATUS_MASK; wl1271_rx_status()
99 status->flag |= RX_FLAG_IV_STRIPPED | RX_FLAG_MMIC_STRIPPED | wl1271_rx_status()
103 status->flag |= RX_FLAG_MMIC_ERROR; wl1271_rx_status()
111 status->band); wl1271_rx_status()
157 if (desc->status & WL1271_RX_DESC_DECRYPT_FAIL) { wl1271_rx_handle_data()
159 wl1271_warning("corrupted packet in RX: status: 0x%x len: %d", wl1271_rx_handle_data()
160 desc->status & WL1271_RX_DESC_STATUS_MASK, wl1271_rx_handle_data()
213 int wlcore_rx(struct wl1271 *wl, struct wl_fw_status *status) wlcore_rx() argument
217 u32 fw_rx_counter = status->fw_rx_counter % wl->num_rx_desc; wlcore_rx()
230 des = le32_to_cpu(status->rx_pkt_descs[rx_counter]); wlcore_rx()
247 des = le32_to_cpu(status->rx_pkt_descs[drv_rx_counter]); wlcore_rx()
260 des = le32_to_cpu(status->rx_pkt_descs[drv_rx_counter]); wlcore_rx()
59 wl1271_rx_status(struct wl1271 *wl, struct wl1271_rx_descriptor *desc, struct ieee80211_rx_status *status, u8 beacon) wl1271_rx_status() argument

Completed in 5753 milliseconds

1234567891011>>