Lines Matching refs:rds
703 struct fm_rds *rds = &fmdev->rx.rds; in fm_irq_handle_rdsdata_getcmd_resp() local
734 rds->last_blk_idx = -1; in fm_irq_handle_rdsdata_getcmd_resp()
745 rds->last_blk_idx = blk_idx; in fm_irq_handle_rdsdata_getcmd_resp()
795 memcpy(&rds->buff[rds->wr_idx], &tmpbuf, FM_RDS_BLK_SIZE); in fm_irq_handle_rdsdata_getcmd_resp()
796 rds->wr_idx = (rds->wr_idx + FM_RDS_BLK_SIZE) % rds->buf_size; in fm_irq_handle_rdsdata_getcmd_resp()
799 if (rds->wr_idx == rds->rd_idx) { in fm_irq_handle_rdsdata_getcmd_resp()
801 rds->wr_idx = 0; in fm_irq_handle_rdsdata_getcmd_resp()
802 rds->rd_idx = 0; in fm_irq_handle_rdsdata_getcmd_resp()
811 if (rds->wr_idx != rds->rd_idx) in fm_irq_handle_rdsdata_getcmd_resp()
812 wake_up_interruptible(&rds->read_queue); in fm_irq_handle_rdsdata_getcmd_resp()
1053 poll_wait(file, &fmdev->rx.rds.read_queue, pts); in fmc_is_rds_data_available()
1054 if (fmdev->rx.rds.rd_idx != fmdev->rx.rds.wr_idx) in fmc_is_rds_data_available()
1069 if (fmdev->rx.rds.wr_idx == fmdev->rx.rds.rd_idx) { in fmc_transfer_rds_from_internal_buff()
1073 ret = wait_event_interruptible(fmdev->rx.rds.read_queue, in fmc_transfer_rds_from_internal_buff()
1074 (fmdev->rx.rds.wr_idx != fmdev->rx.rds.rd_idx)); in fmc_transfer_rds_from_internal_buff()
1087 if (fmdev->rx.rds.wr_idx == fmdev->rx.rds.rd_idx) { in fmc_transfer_rds_from_internal_buff()
1091 memcpy(tmpbuf, &fmdev->rx.rds.buff[fmdev->rx.rds.rd_idx], in fmc_transfer_rds_from_internal_buff()
1093 fmdev->rx.rds.rd_idx += FM_RDS_BLK_SIZE; in fmc_transfer_rds_from_internal_buff()
1094 if (fmdev->rx.rds.rd_idx >= fmdev->rx.rds.buf_size) in fmc_transfer_rds_from_internal_buff()
1095 fmdev->rx.rds.rd_idx = 0; in fmc_transfer_rds_from_internal_buff()
1562 fmdev->rx.rds.flag = FM_RDS_DISABLE; in fmc_prepare()
1569 init_waitqueue_head(&fmdev->rx.rds.read_queue); in fmc_prepare()
1591 wake_up_interruptible(&fmdev->rx.rds.read_queue); in fmc_release()
1632 fmdev->rx.rds.buf_size = default_rds_buf * FM_RDS_BLK_SIZE; in fm_drv_init()
1633 fmdev->rx.rds.buff = kzalloc(fmdev->rx.rds.buf_size, GFP_KERNEL); in fm_drv_init()
1634 if (NULL == fmdev->rx.rds.buff) { in fm_drv_init()
1650 kfree(fmdev->rx.rds.buff); in fm_drv_init()
1664 kfree(fmdev->rx.rds.buff); in fm_drv_exit()