Lines Matching refs:flag
277 if (!test_bit(FM_INTTASK_RUNNING, &fmdev->flag)) { in recv_tasklet()
278 set_bit(FM_INTTASK_RUNNING, &fmdev->flag); in recv_tasklet()
290 set_bit(FM_INTTASK_SCHEDULE_PENDING, &fmdev->flag); in recv_tasklet()
391 if (test_bit(FM_FW_DW_INPROGRESS, &fmdev->flag) && payload == NULL) { in fm_send_cmd()
395 if (!test_bit(FM_FW_DW_INPROGRESS, &fmdev->flag)) in fm_send_cmd()
410 if (!test_bit(FM_FW_DW_INPROGRESS, &fmdev->flag) || in fm_send_cmd()
411 test_bit(FM_INTTASK_RUNNING, &fmdev->flag)) { in fm_send_cmd()
565 u16 flag; in fm_irq_send_flag_getcmd() local
568 if (!fm_send_cmd(fmdev, FLAG_GET, REG_RD, NULL, sizeof(flag), NULL)) in fm_irq_send_flag_getcmd()
581 if (fm_evt_hdr->dlen > sizeof(fmdev->irq_info.flag)) in fm_irq_handle_flag_getcmd_resp()
586 memcpy(&fmdev->irq_info.flag, skb->data, fm_evt_hdr->dlen); in fm_irq_handle_flag_getcmd_resp()
588 fmdev->irq_info.flag = be16_to_cpu((__force __be16)fmdev->irq_info.flag); in fm_irq_handle_flag_getcmd_resp()
589 fmdbg("irq: flag register(0x%x)\n", fmdev->irq_info.flag); in fm_irq_handle_flag_getcmd_resp()
597 if (fmdev->irq_info.flag & FM_MAL_EVENT & fmdev->irq_info.mask) in fm_irq_handle_hw_malfunction()
606 if (fmdev->irq_info.flag & FM_RDS_EVENT & fmdev->irq_info.mask) { in fm_irq_handle_rds_start()
824 if (fmdev->irq_info.flag & (FM_FR_EVENT | FM_BL_EVENT) & fmdev-> in fm_irq_handle_tune_op_ended()
827 if (test_and_clear_bit(FM_AF_SWITCH_INPROGRESS, &fmdev->flag)) { in fm_irq_handle_tune_op_ended()
841 if (fmdev->irq_info.flag & FM_POW_ENB_EVENT) { in fm_irq_handle_power_enb()
852 (fmdev->irq_info.flag & FM_LEV_EVENT & fmdev->irq_info.mask) && in fm_irq_handle_low_rssi_start()
957 set_bit(FM_AF_SWITCH_INPROGRESS, &fmdev->flag); in fm_irq_handle_start_afjump_resp()
958 clear_bit(FM_INTTASK_RUNNING, &fmdev->flag); in fm_irq_handle_start_afjump_resp()
1043 if (test_and_clear_bit(FM_INTTASK_SCHEDULE_PENDING, &fmdev->flag)) in fm_irq_handle_intmsk_cmd_resp()
1046 clear_bit(FM_INTTASK_RUNNING, &fmdev->flag); in fm_irq_handle_intmsk_cmd_resp()
1211 if (!test_bit(FM_CORE_READY, &fmdev->flag)) { in fm_power_down()
1239 set_bit(FM_FW_DW_INPROGRESS, &fmdev->flag); in fm_download_firmware()
1289 clear_bit(FM_FW_DW_INPROGRESS, &fmdev->flag); in fm_download_firmware()
1426 if (!test_bit(FM_CORE_READY, &fmdev->flag)) { in fmc_get_mode()
1485 if (test_bit(FM_CORE_READY, &fmdev->flag)) { in fmc_prepare()
1561 fmdev->rx.rds.flag = FM_RDS_DISABLE; in fmc_prepare()
1571 set_bit(FM_CORE_READY, &fmdev->flag); in fmc_prepare()
1585 if (!test_bit(FM_CORE_READY, &fmdev->flag)) { in fmc_release()
1611 clear_bit(FM_CORE_READY, &fmdev->flag); in fmc_release()