/drivers/media/platform/vivid/ |
D | vivid-rds-gen.c | 27 static u8 vivid_get_di(const struct vivid_rds_gen *rds, unsigned grp) in vivid_get_di() argument 31 return (rds->dyn_pty << 2) | (grp & 3); in vivid_get_di() 33 return (rds->compressed << 2) | (grp & 3); in vivid_get_di() 35 return (rds->art_head << 2) | (grp & 3); in vivid_get_di() 37 return (rds->mono_stereo << 2) | (grp & 3); in vivid_get_di() 54 void vivid_rds_generate(struct vivid_rds_gen *rds) in vivid_rds_generate() argument 56 struct v4l2_rds_data *data = rds->data; in vivid_rds_generate() 64 data[0].lsb = rds->picode & 0xff; in vivid_rds_generate() 65 data[0].msb = rds->picode >> 8; in vivid_rds_generate() 67 data[1].lsb = rds->pty << 5; in vivid_rds_generate() [all …]
|
D | vivid-radio-common.c | 73 struct vivid_rds_gen *rds = &dev->rds_gen; in vivid_radio_rds_init() local 82 rds->picode = dev->radio_tx_rds_pi->cur.val; in vivid_radio_rds_init() 83 rds->pty = dev->radio_tx_rds_pty->cur.val; in vivid_radio_rds_init() 84 rds->mono_stereo = dev->radio_tx_rds_mono_stereo->cur.val; in vivid_radio_rds_init() 85 rds->art_head = dev->radio_tx_rds_art_head->cur.val; in vivid_radio_rds_init() 86 rds->compressed = dev->radio_tx_rds_compressed->cur.val; in vivid_radio_rds_init() 87 rds->dyn_pty = dev->radio_tx_rds_dyn_pty->cur.val; in vivid_radio_rds_init() 88 rds->ta = dev->radio_tx_rds_ta->cur.val; in vivid_radio_rds_init() 89 rds->tp = dev->radio_tx_rds_tp->cur.val; in vivid_radio_rds_init() 90 rds->ms = dev->radio_tx_rds_ms->cur.val; in vivid_radio_rds_init() [all …]
|
D | vivid-radio-tx.c | 88 struct v4l2_rds_data rds; in vivid_radio_tx_write() local 90 if (copy_from_user(&rds, buf + i, sizeof(rds))) { in vivid_radio_tx_write() 94 i += sizeof(rds); in vivid_radio_tx_write() 97 if ((rds.block & V4L2_RDS_BLOCK_MSK) == V4L2_RDS_BLOCK_INVALID || in vivid_radio_tx_write() 98 (rds.block & V4L2_RDS_BLOCK_ERROR)) in vivid_radio_tx_write() 100 rds.block &= V4L2_RDS_BLOCK_MSK; in vivid_radio_tx_write() 101 data[data_blk] = rds; in vivid_radio_tx_write()
|
D | vivid-radio-rx.c | 104 struct v4l2_rds_data rds = data[data_blk]; in vivid_radio_rx_read() local 111 rds.block |= V4L2_RDS_BLOCK_CORRECTED; in vivid_radio_rx_read() 114 rds.block |= V4L2_RDS_BLOCK_INVALID; in vivid_radio_rx_read() 117 rds.block |= V4L2_RDS_BLOCK_ERROR; in vivid_radio_rx_read() 118 rds.lsb = prandom_u32_max(256); in vivid_radio_rx_read() 119 rds.msb = prandom_u32_max(256); in vivid_radio_rx_read() 132 if (copy_to_user(buf + i, &rds, sizeof(rds))) { in vivid_radio_rx_read() 136 i += sizeof(rds); in vivid_radio_rx_read()
|
D | vivid-rds-gen.h | 49 void vivid_rds_gen_fill(struct vivid_rds_gen *rds, unsigned freq, 51 void vivid_rds_generate(struct vivid_rds_gen *rds);
|
D | Makefile | 4 vivid-rds-gen.o vivid-sdr-cap.o vivid-vbi-cap.o vivid-vbi-out.o \
|
/drivers/media/radio/wl128x/ |
D | fmdrv_common.c | 716 struct fm_rds *rds = &fmdev->rx.rds; in fm_irq_handle_rdsdata_getcmd_resp() local 747 rds->last_blk_idx = -1; in fm_irq_handle_rdsdata_getcmd_resp() 756 rds->last_blk_idx = blk_idx; in fm_irq_handle_rdsdata_getcmd_resp() 806 memcpy(&rds->buff[rds->wr_idx], &tmpbuf, FM_RDS_BLK_SIZE); in fm_irq_handle_rdsdata_getcmd_resp() 807 rds->wr_idx = (rds->wr_idx + FM_RDS_BLK_SIZE) % rds->buf_size; in fm_irq_handle_rdsdata_getcmd_resp() 810 if (rds->wr_idx == rds->rd_idx) { in fm_irq_handle_rdsdata_getcmd_resp() 812 rds->wr_idx = 0; in fm_irq_handle_rdsdata_getcmd_resp() 813 rds->rd_idx = 0; in fm_irq_handle_rdsdata_getcmd_resp() 822 if (rds->wr_idx != rds->rd_idx) in fm_irq_handle_rdsdata_getcmd_resp() 823 wake_up_interruptible(&rds->read_queue); in fm_irq_handle_rdsdata_getcmd_resp() [all …]
|
D | fmdrv_v4l2.c | 88 struct tx_rds rds; in fm_v4l2_fops_write() local 92 ret = copy_from_user(&rds, buf, sizeof(rds)); in fm_v4l2_fops_write() 93 rds.text[sizeof(rds.text) - 1] = '\0'; in fm_v4l2_fops_write() 95 ret, rds.text_type, rds.text, rds.af_freq); in fm_v4l2_fops_write() 102 fm_tx_set_radio_text(fmdev, rds.text, rds.text_type); in fm_v4l2_fops_write() 103 fm_tx_set_af(fmdev, rds.af_freq); in fm_v4l2_fops_write() 106 return sizeof(rds); in fm_v4l2_fops_write() 306 ((fmdev->rx.rds.flag == FM_RDS_ENABLE) ? V4L2_TUNER_SUB_RDS : 0); in fm_v4l2_vidioc_g_tuner() 443 ((fmdev->tx_data.rds.flag == FM_RDS_ENABLE) ? in fm_v4l2_vidioc_g_modulator()
|
D | fmdrv_rx.c | 30 fmdev->rx.rds.flag = FM_RDS_DISABLE; in fm_rx_reset_rds_cache() 31 fmdev->rx.rds.last_blk_idx = 0; in fm_rx_reset_rds_cache() 32 fmdev->rx.rds.wr_idx = 0; in fm_rx_reset_rds_cache() 33 fmdev->rx.rds.rd_idx = 0; in fm_rx_reset_rds_cache() 684 && fmdev->rx.rds.flag == FM_RDS_DISABLE) { in fm_rx_set_rds_mode() 723 fmdev->rx.rds.flag = FM_RDS_ENABLE; in fm_rx_set_rds_mode() 725 && fmdev->rx.rds.flag == FM_RDS_ENABLE) { in fm_rx_set_rds_mode() 734 fmdev->rx.rds.last_blk_idx = 0; in fm_rx_set_rds_mode() 735 fmdev->rx.rds.wr_idx = 0; in fm_rx_set_rds_mode() 736 fmdev->rx.rds.rd_idx = 0; in fm_rx_set_rds_mode() [all …]
|
D | fmdrv.h | 166 struct fm_rds rds; member 200 struct tx_rds rds; member
|
D | fmdrv_tx.c | 146 fmdev->tx_data.rds.flag = rds_en_dis; in fm_tx_set_rds_mode() 422 tx->rds.flag = FM_RDS_DISABLE; in fm_tx_set_freq()
|
/drivers/media/radio/si470x/ |
D | radio-si470x-i2c.c | 261 unsigned short rds; in si470x_i2c_interrupt() local 294 rds = radio->registers[RDSA]; in si470x_i2c_interrupt() 299 rds = radio->registers[RDSB]; in si470x_i2c_interrupt() 304 rds = radio->registers[RDSC]; in si470x_i2c_interrupt() 309 rds = radio->registers[RDSD]; in si470x_i2c_interrupt() 314 put_unaligned_le16(rds, &tmpbuf); in si470x_i2c_interrupt()
|
D | radio-si470x-usb.c | 382 unsigned short rds; in si470x_int_in_callback() local 427 rds = radio->registers[RDSA]; in si470x_int_in_callback() 432 rds = radio->registers[RDSB]; in si470x_int_in_callback() 437 rds = radio->registers[RDSC]; in si470x_int_in_callback() 442 rds = radio->registers[RDSD]; in si470x_int_in_callback() 447 put_unaligned_le16(rds, &tmpbuf); in si470x_int_in_callback()
|
/drivers/mfd/ |
D | si476x-cmd.c | 957 report->rds[V4L2_RDS_BLOCK_A].block = V4L2_RDS_BLOCK_A; in si476x_core_cmd_fm_rds_status() 958 report->rds[V4L2_RDS_BLOCK_A].msb = resp[8]; in si476x_core_cmd_fm_rds_status() 959 report->rds[V4L2_RDS_BLOCK_A].lsb = resp[9]; in si476x_core_cmd_fm_rds_status() 961 report->rds[V4L2_RDS_BLOCK_B].block = V4L2_RDS_BLOCK_B; in si476x_core_cmd_fm_rds_status() 962 report->rds[V4L2_RDS_BLOCK_B].msb = resp[10]; in si476x_core_cmd_fm_rds_status() 963 report->rds[V4L2_RDS_BLOCK_B].lsb = resp[11]; in si476x_core_cmd_fm_rds_status() 965 report->rds[V4L2_RDS_BLOCK_C].block = V4L2_RDS_BLOCK_C; in si476x_core_cmd_fm_rds_status() 966 report->rds[V4L2_RDS_BLOCK_C].msb = resp[12]; in si476x_core_cmd_fm_rds_status() 967 report->rds[V4L2_RDS_BLOCK_C].lsb = resp[13]; in si476x_core_cmd_fm_rds_status() 969 report->rds[V4L2_RDS_BLOCK_D].block = V4L2_RDS_BLOCK_D; in si476x_core_cmd_fm_rds_status() [all …]
|
D | si476x-i2c.c | 389 kfifo_in(&core->rds_fifo, report.rds, in si476x_core_drain_rds_fifo() 390 sizeof(report.rds)); in si476x_core_drain_rds_fifo() 392 (int)sizeof(report.rds), report.rds); in si476x_core_drain_rds_fifo()
|
/drivers/media/radio/ |
D | radio-wl1273.c | 149 struct v4l2_rds_data rds = { 0, 0, 0 }; in wl1273_fm_rds() local 160 .buf = (u8 *) &rds, in wl1273_fm_rds() 161 .len = sizeof(rds), in wl1273_fm_rds() 187 status = rds.block; in wl1273_fm_rds() 193 rds.block = V4L2_RDS_BLOCK_MSK & status; in wl1273_fm_rds() 194 rds.block |= rds.block << 3; in wl1273_fm_rds() 198 rds.block |= V4L2_RDS_BLOCK_ERROR; in wl1273_fm_rds() 199 rds.block &= ~V4L2_RDS_BLOCK_CORRECTED; in wl1273_fm_rds() 201 rds.block &= ~V4L2_RDS_BLOCK_ERROR; in wl1273_fm_rds() 202 rds.block |= V4L2_RDS_BLOCK_CORRECTED; in wl1273_fm_rds() [all …]
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_83xx_hw.c | 1175 struct qlcnic_host_rds_ring *rds; in qlcnic_83xx_create_rx_ctx() local 1237 rds = &recv_ctx->rds_rings[0]; in qlcnic_83xx_create_rx_ctx() 1238 rds->producer = 0; in qlcnic_83xx_create_rx_ctx() 1240 rds_mbx.phy_addr_reg_low = LSD(rds->phys_addr); in qlcnic_83xx_create_rx_ctx() 1241 rds_mbx.phy_addr_reg_high = MSD(rds->phys_addr); in qlcnic_83xx_create_rx_ctx() 1242 rds_mbx.reg_ring_sz = rds->dma_size; in qlcnic_83xx_create_rx_ctx() 1243 rds_mbx.reg_ring_len = rds->num_desc; in qlcnic_83xx_create_rx_ctx() 1245 rds = &recv_ctx->rds_rings[1]; in qlcnic_83xx_create_rx_ctx() 1246 rds->producer = 0; in qlcnic_83xx_create_rx_ctx() 1247 rds_mbx.phy_addr_jmb_low = LSD(rds->phys_addr); in qlcnic_83xx_create_rx_ctx() [all …]
|
/drivers/media/radio/si4713/ |
D | si4713.c | 1319 u16 stereo, rds; in si4713_s_modulator() local 1336 rds = !!(vm->txsubchans & V4L2_TUNER_SUB_RDS); in si4713_s_modulator() 1345 p = set_bits(p, rds, 2, 1 << 2); in si4713_s_modulator() 1354 sdev->rds_enabled = rds; in si4713_s_modulator()
|
/drivers/watchdog/ |
D | hpwdt.c | 143 u16 rds; member
|
/drivers/staging/media/bcm2048/ |
D | radio-bcm2048.c | 2066 DEFINE_SYSFS_PROPERTY(rds, unsigned, int, "%u", 0) 2118 __ATTR(rds, S_IRUGO | S_IWUSR, bcm2048_rds_read,
|
/drivers/media/dvb-frontends/drx39xyj/ |
D | drx_driver.h | 1423 bool rds; /**< RDS data array present */ member
|