Lines Matching refs:val32
55 u32 val32; in cw1200_load_firmware_cw1200() local
136 REG_READ(ST90TDS_CONFIG_REG_ID, val32); in cw1200_load_firmware_cw1200()
137 val32 &= ~ST90TDS_CONFIG_CPU_RESET_BIT; in cw1200_load_firmware_cw1200()
138 REG_WRITE(ST90TDS_CONFIG_REG_ID, val32); in cw1200_load_firmware_cw1200()
141 val32 &= ~ST90TDS_CONFIG_CPU_CLK_DIS_BIT; in cw1200_load_firmware_cw1200()
142 REG_WRITE(ST90TDS_CONFIG_REG_ID, val32); in cw1200_load_firmware_cw1200()
160 APB_READ(DOWNLOAD_IMAGE_SIZE_REG, val32); in cw1200_load_firmware_cw1200()
161 if (val32 == DOWNLOAD_I_AM_HERE) in cw1200_load_firmware_cw1200()
166 if (val32 != DOWNLOAD_I_AM_HERE) { in cw1200_load_firmware_cw1200()
176 val32 = firmware->size; /* Explicit cast from size_t to u32 */ in cw1200_load_firmware_cw1200()
177 APB_WRITE2(DOWNLOAD_IMAGE_SIZE_REG, val32); in cw1200_load_firmware_cw1200()
185 APB_READ(DOWNLOAD_STATUS_REG, val32); in cw1200_load_firmware_cw1200()
186 if (val32 != DOWNLOAD_PENDING) { in cw1200_load_firmware_cw1200()
187 pr_err("Bootloader reported error %d.\n", val32); in cw1200_load_firmware_cw1200()
236 APB_READ(DOWNLOAD_STATUS_REG, val32); in cw1200_load_firmware_cw1200()
237 if (val32 != DOWNLOAD_PENDING) in cw1200_load_firmware_cw1200()
241 if (val32 != DOWNLOAD_SUCCESS) { in cw1200_load_firmware_cw1200()
242 pr_err("Wait for download completion failed: 0x%.8X\n", val32); in cw1200_load_firmware_cw1200()
306 u32 val32; in cw1200_load_firmware() local
311 ret = cw1200_reg_read_32(priv, ST90TDS_CONFIG_REG_ID, &val32); in cw1200_load_firmware()
317 if (val32 == 0 || val32 == 0xffffffff) { in cw1200_load_firmware()
318 pr_err("Bad config register value (0x%08x)\n", val32); in cw1200_load_firmware()
323 ret = cw1200_get_hw_type(val32, &major_revision); in cw1200_load_firmware()
341 ST90TDS_TSET_GEN_R_W_REG_ID, &val32); in cw1200_load_firmware()
347 if (val32 != cw1200_dpll_from_clk(priv->hw_refclk)) { in cw1200_load_firmware()
349 cw1200_dpll_from_clk(priv->hw_refclk), val32); in cw1200_load_firmware()
392 ret = cw1200_ahb_read_32(priv, CW1200_CUT_ID_ADDR, &val32); in cw1200_load_firmware()
398 switch (val32) { in cw1200_load_firmware()
457 ret = config_reg_read(priv, &val32); in cw1200_load_firmware()
463 if (!(val32 & ST90TDS_CONFIG_ACCESS_MODE_BIT)) { in cw1200_load_firmware()
497 ret = config_reg_read(priv, &val32); in cw1200_load_firmware()
502 ret = config_reg_write(priv, val32 & ~ST90TDS_CONFIG_ACCESS_MODE_BIT); in cw1200_load_firmware()
512 config_reg_read(priv, &val32); in cw1200_load_firmware()