• Home
  • Raw
  • Download

Lines Matching refs:rds

702 	struct fm_rds *rds = &fmdev->rx.rds;  in fm_irq_handle_rdsdata_getcmd_resp()  local
733 rds->last_blk_idx = -1; in fm_irq_handle_rdsdata_getcmd_resp()
744 rds->last_blk_idx = blk_idx; in fm_irq_handle_rdsdata_getcmd_resp()
794 memcpy(&rds->buff[rds->wr_idx], &tmpbuf, FM_RDS_BLK_SIZE); in fm_irq_handle_rdsdata_getcmd_resp()
795 rds->wr_idx = (rds->wr_idx + FM_RDS_BLK_SIZE) % rds->buf_size; in fm_irq_handle_rdsdata_getcmd_resp()
798 if (rds->wr_idx == rds->rd_idx) { in fm_irq_handle_rdsdata_getcmd_resp()
800 rds->wr_idx = 0; in fm_irq_handle_rdsdata_getcmd_resp()
801 rds->rd_idx = 0; in fm_irq_handle_rdsdata_getcmd_resp()
810 if (rds->wr_idx != rds->rd_idx) in fm_irq_handle_rdsdata_getcmd_resp()
811 wake_up_interruptible(&rds->read_queue); in fm_irq_handle_rdsdata_getcmd_resp()
1052 poll_wait(file, &fmdev->rx.rds.read_queue, pts); in fmc_is_rds_data_available()
1053 if (fmdev->rx.rds.rd_idx != fmdev->rx.rds.wr_idx) in fmc_is_rds_data_available()
1068 if (fmdev->rx.rds.wr_idx == fmdev->rx.rds.rd_idx) { in fmc_transfer_rds_from_internal_buff()
1072 ret = wait_event_interruptible(fmdev->rx.rds.read_queue, in fmc_transfer_rds_from_internal_buff()
1073 (fmdev->rx.rds.wr_idx != fmdev->rx.rds.rd_idx)); in fmc_transfer_rds_from_internal_buff()
1086 if (fmdev->rx.rds.wr_idx == fmdev->rx.rds.rd_idx) { in fmc_transfer_rds_from_internal_buff()
1090 memcpy(tmpbuf, &fmdev->rx.rds.buff[fmdev->rx.rds.rd_idx], in fmc_transfer_rds_from_internal_buff()
1092 fmdev->rx.rds.rd_idx += FM_RDS_BLK_SIZE; in fmc_transfer_rds_from_internal_buff()
1093 if (fmdev->rx.rds.rd_idx >= fmdev->rx.rds.buf_size) in fmc_transfer_rds_from_internal_buff()
1094 fmdev->rx.rds.rd_idx = 0; in fmc_transfer_rds_from_internal_buff()
1561 fmdev->rx.rds.flag = FM_RDS_DISABLE; in fmc_prepare()
1568 init_waitqueue_head(&fmdev->rx.rds.read_queue); in fmc_prepare()
1590 wake_up_interruptible(&fmdev->rx.rds.read_queue); in fmc_release()
1631 fmdev->rx.rds.buf_size = default_rds_buf * FM_RDS_BLK_SIZE; in fm_drv_init()
1632 fmdev->rx.rds.buff = kzalloc(fmdev->rx.rds.buf_size, GFP_KERNEL); in fm_drv_init()
1633 if (NULL == fmdev->rx.rds.buff) { in fm_drv_init()
1649 kfree(fmdev->rx.rds.buff); in fm_drv_init()
1663 kfree(fmdev->rx.rds.buff); in fm_drv_exit()