Home
last modified time | relevance | path

Searched refs:rds (Results 1 - 25 of 55) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/media/test-drivers/vivid/
H A Dvivid-rds-gen.c3 * vivid-rds-gen.c - rds (radio data system) generator support functions.
13 #include "vivid-rds-gen.h"
15 static u8 vivid_get_di(const struct vivid_rds_gen *rds, unsigned grp) in vivid_get_di() argument
19 return (rds->dyn_pty << 2) | (grp & 3); in vivid_get_di()
21 return (rds->compressed << 2) | (grp & 3); in vivid_get_di()
23 return (rds->art_head << 2) | (grp & 3); in vivid_get_di()
25 return (rds->mono_stereo << 2) | (grp & 3); in vivid_get_di()
42 void vivid_rds_generate(struct vivid_rds_gen *rds) in vivid_rds_generate() argument
44 struct v4l2_rds_data *data = rds in vivid_rds_generate()
129 vivid_rds_gen_fill(struct vivid_rds_gen *rds, unsigned freq, bool alt) vivid_rds_gen_fill() argument
[all...]
H A Dvivid-radio-common.c16 #include "vivid-rds-gen.h"
61 struct vivid_rds_gen *rds = &dev->rds_gen; in vivid_radio_rds_init() local
70 rds->picode = dev->radio_tx_rds_pi->cur.val; in vivid_radio_rds_init()
71 rds->pty = dev->radio_tx_rds_pty->cur.val; in vivid_radio_rds_init()
72 rds->mono_stereo = dev->radio_tx_rds_mono_stereo->cur.val; in vivid_radio_rds_init()
73 rds->art_head = dev->radio_tx_rds_art_head->cur.val; in vivid_radio_rds_init()
74 rds->compressed = dev->radio_tx_rds_compressed->cur.val; in vivid_radio_rds_init()
75 rds->dyn_pty = dev->radio_tx_rds_dyn_pty->cur.val; in vivid_radio_rds_init()
76 rds->ta = dev->radio_tx_rds_ta->cur.val; in vivid_radio_rds_init()
77 rds in vivid_radio_rds_init()
[all...]
H A Dvivid-radio-tx.c75 struct v4l2_rds_data rds; in vivid_radio_tx_write() local
77 if (copy_from_user(&rds, buf + i, sizeof(rds))) { in vivid_radio_tx_write()
81 i += sizeof(rds); in vivid_radio_tx_write()
84 if ((rds.block & V4L2_RDS_BLOCK_MSK) == V4L2_RDS_BLOCK_INVALID || in vivid_radio_tx_write()
85 (rds.block & V4L2_RDS_BLOCK_ERROR)) in vivid_radio_tx_write()
87 rds.block &= V4L2_RDS_BLOCK_MSK; in vivid_radio_tx_write()
88 data[data_blk] = rds; in vivid_radio_tx_write()
H A Dvivid-radio-rx.c22 #include "vivid-rds-gen.h"
93 struct v4l2_rds_data rds = data[data_blk]; in vivid_radio_rx_read() local
100 rds.block |= V4L2_RDS_BLOCK_CORRECTED; in vivid_radio_rx_read()
103 rds.block |= V4L2_RDS_BLOCK_INVALID; in vivid_radio_rx_read()
106 rds.block |= V4L2_RDS_BLOCK_ERROR; in vivid_radio_rx_read()
107 rds.lsb = prandom_u32_max(256); in vivid_radio_rx_read()
108 rds.msb = prandom_u32_max(256); in vivid_radio_rx_read()
121 if (copy_to_user(buf + i, &rds, sizeof(rds))) { in vivid_radio_rx_read()
125 i += sizeof(rds); in vivid_radio_rx_read()
[all...]
H A Dvivid-rds-gen.h3 * vivid-rds-gen.h - rds (radio data system) generator support functions.
38 void vivid_rds_gen_fill(struct vivid_rds_gen *rds, unsigned freq,
40 void vivid_rds_generate(struct vivid_rds_gen *rds);
/kernel/linux/linux-6.6/drivers/media/test-drivers/vivid/
H A Dvivid-rds-gen.c3 * vivid-rds-gen.c - rds (radio data system) generator support functions.
13 #include "vivid-rds-gen.h"
15 static u8 vivid_get_di(const struct vivid_rds_gen *rds, unsigned grp) in vivid_get_di() argument
19 return (rds->dyn_pty << 2) | (grp & 3); in vivid_get_di()
21 return (rds->compressed << 2) | (grp & 3); in vivid_get_di()
23 return (rds->art_head << 2) | (grp & 3); in vivid_get_di()
25 return (rds->mono_stereo << 2) | (grp & 3); in vivid_get_di()
42 void vivid_rds_generate(struct vivid_rds_gen *rds) in vivid_rds_generate() argument
44 struct v4l2_rds_data *data = rds in vivid_rds_generate()
129 vivid_rds_gen_fill(struct vivid_rds_gen *rds, unsigned freq, bool alt) vivid_rds_gen_fill() argument
[all...]
H A Dvivid-radio-common.c16 #include "vivid-rds-gen.h"
61 struct vivid_rds_gen *rds = &dev->rds_gen; in vivid_radio_rds_init() local
70 rds->picode = dev->radio_tx_rds_pi->cur.val; in vivid_radio_rds_init()
71 rds->pty = dev->radio_tx_rds_pty->cur.val; in vivid_radio_rds_init()
72 rds->mono_stereo = dev->radio_tx_rds_mono_stereo->cur.val; in vivid_radio_rds_init()
73 rds->art_head = dev->radio_tx_rds_art_head->cur.val; in vivid_radio_rds_init()
74 rds->compressed = dev->radio_tx_rds_compressed->cur.val; in vivid_radio_rds_init()
75 rds->dyn_pty = dev->radio_tx_rds_dyn_pty->cur.val; in vivid_radio_rds_init()
76 rds->ta = dev->radio_tx_rds_ta->cur.val; in vivid_radio_rds_init()
77 rds in vivid_radio_rds_init()
[all...]
H A Dvivid-radio-tx.c75 struct v4l2_rds_data rds; in vivid_radio_tx_write() local
77 if (copy_from_user(&rds, buf + i, sizeof(rds))) { in vivid_radio_tx_write()
81 i += sizeof(rds); in vivid_radio_tx_write()
84 if ((rds.block & V4L2_RDS_BLOCK_MSK) == V4L2_RDS_BLOCK_INVALID || in vivid_radio_tx_write()
85 (rds.block & V4L2_RDS_BLOCK_ERROR)) in vivid_radio_tx_write()
87 rds.block &= V4L2_RDS_BLOCK_MSK; in vivid_radio_tx_write()
88 data[data_blk] = rds; in vivid_radio_tx_write()
H A Dvivid-radio-rx.c22 #include "vivid-rds-gen.h"
93 struct v4l2_rds_data rds = data[data_blk]; in vivid_radio_rx_read() local
100 rds.block |= V4L2_RDS_BLOCK_CORRECTED; in vivid_radio_rx_read()
103 rds.block |= V4L2_RDS_BLOCK_INVALID; in vivid_radio_rx_read()
106 rds.block |= V4L2_RDS_BLOCK_ERROR; in vivid_radio_rx_read()
107 rds.lsb = get_random_u8(); in vivid_radio_rx_read()
108 rds.msb = get_random_u8(); in vivid_radio_rx_read()
121 if (copy_to_user(buf + i, &rds, sizeof(rds))) { in vivid_radio_rx_read()
125 i += sizeof(rds); in vivid_radio_rx_read()
[all...]
H A Dvivid-rds-gen.h3 * vivid-rds-gen.h - rds (radio data system) generator support functions.
38 void vivid_rds_gen_fill(struct vivid_rds_gen *rds, unsigned freq,
40 void vivid_rds_generate(struct vivid_rds_gen *rds);
/kernel/linux/linux-5.10/drivers/media/radio/wl128x/
H A Dfmdrv_common.c606 fmdbg("irq: rds threshold reached\n"); in fm_irq_handle_rds_start()
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()
775 /* Copy raw rds data to internal rds buffer */ 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 in fm_irq_handle_rdsdata_getcmd_resp()
[all...]
H A Dfmdrv_v4l2.c52 fmerr("Unable to read current rds mode\n"); in fm_v4l2_fops_read()
59 fmerr("Failed to enable rds mode\n"); in fm_v4l2_fops_read()
75 struct tx_rds rds; in fm_v4l2_fops_write() local
79 ret = copy_from_user(&rds, buf, sizeof(rds)); in fm_v4l2_fops_write()
80 rds.text[sizeof(rds.text) - 1] = '\0'; in fm_v4l2_fops_write()
82 ret, rds.text_type, rds.text, rds in fm_v4l2_fops_write()
[all...]
H A Dfmdrv_rx.c17 fmdev->rx.rds.flag = FM_RDS_DISABLE; in fm_rx_reset_rds_cache()
18 fmdev->rx.rds.last_blk_idx = 0; in fm_rx_reset_rds_cache()
19 fmdev->rx.rds.wr_idx = 0; in fm_rx_reset_rds_cache()
20 fmdev->rx.rds.rd_idx = 0; in fm_rx_reset_rds_cache()
666 fmerr("Invalid rds option\n"); in fm_rx_set_rds_mode()
671 && fmdev->rx.rds.flag == FM_RDS_DISABLE) { in fm_rx_set_rds_mode()
710 fmdev->rx.rds.flag = FM_RDS_ENABLE; in fm_rx_set_rds_mode()
712 && fmdev->rx.rds.flag == FM_RDS_ENABLE) { in fm_rx_set_rds_mode()
721 fmdev->rx.rds.last_blk_idx = 0; in fm_rx_set_rds_mode()
722 fmdev->rx.rds in fm_rx_set_rds_mode()
[all...]
H A Dfmdrv.h153 struct fm_rds rds; member
187 struct tx_rds rds; member
/kernel/linux/linux-6.6/drivers/media/radio/wl128x/
H A Dfmdrv_common.c607 fmdbg("irq: rds threshold reached\n"); in fm_irq_handle_rds_start()
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()
776 /* Copy raw rds data to internal rds buffer */ 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 in fm_irq_handle_rdsdata_getcmd_resp()
[all...]
H A Dfmdrv_v4l2.c52 fmerr("Unable to read current rds mode\n"); in fm_v4l2_fops_read()
59 fmerr("Failed to enable rds mode\n"); in fm_v4l2_fops_read()
75 struct tx_rds rds; in fm_v4l2_fops_write() local
79 ret = copy_from_user(&rds, buf, sizeof(rds)); in fm_v4l2_fops_write()
80 rds.text[sizeof(rds.text) - 1] = '\0'; in fm_v4l2_fops_write()
82 ret, rds.text_type, rds.text, rds in fm_v4l2_fops_write()
[all...]
H A Dfmdrv_rx.c17 fmdev->rx.rds.flag = FM_RDS_DISABLE; in fm_rx_reset_rds_cache()
18 fmdev->rx.rds.last_blk_idx = 0; in fm_rx_reset_rds_cache()
19 fmdev->rx.rds.wr_idx = 0; in fm_rx_reset_rds_cache()
20 fmdev->rx.rds.rd_idx = 0; in fm_rx_reset_rds_cache()
666 fmerr("Invalid rds option\n"); in fm_rx_set_rds_mode()
671 && fmdev->rx.rds.flag == FM_RDS_DISABLE) { in fm_rx_set_rds_mode()
710 fmdev->rx.rds.flag = FM_RDS_ENABLE; in fm_rx_set_rds_mode()
712 && fmdev->rx.rds.flag == FM_RDS_ENABLE) { in fm_rx_set_rds_mode()
721 fmdev->rx.rds.last_blk_idx = 0; in fm_rx_set_rds_mode()
722 fmdev->rx.rds in fm_rx_set_rds_mode()
[all...]
/kernel/linux/linux-5.10/net/rds/
H A DMakefile2 obj-$(CONFIG_RDS) += rds.o
3 rds-y := af_rds.o bind.o cong.o connection.o info.o message.o \
/kernel/linux/linux-6.6/net/rds/
H A DMakefile2 obj-$(CONFIG_RDS) += rds.o
3 rds-y := af_rds.o bind.o cong.o connection.o info.o message.o \
/kernel/linux/linux-5.10/drivers/media/radio/si470x/
H A Dradio-si470x-i2c.c243 unsigned short bler; /* rds block errors */ in si470x_i2c_interrupt()
244 unsigned short rds; in si470x_i2c_interrupt() local
267 /* get rds blocks */ in si470x_i2c_interrupt()
277 rds = radio->registers[RDSA]; in si470x_i2c_interrupt()
282 rds = radio->registers[RDSB]; in si470x_i2c_interrupt()
287 rds = radio->registers[RDSC]; in si470x_i2c_interrupt()
292 rds = radio->registers[RDSD]; in si470x_i2c_interrupt()
297 put_unaligned_le16(rds, &tmpbuf); in si470x_i2c_interrupt()
432 /* rds buffer allocation */ in si470x_i2c_probe()
440 /* rds buffe in si470x_i2c_probe()
[all...]
H A Dradio-si470x-usb.c358 * si470x_int_in_callback - rds callback and processing function
368 unsigned short bler; /* rds block errors */ in si470x_int_in_callback()
369 unsigned short rds; in si470x_int_in_callback() local
400 /* get rds blocks */ in si470x_int_in_callback()
414 rds = radio->registers[RDSA]; in si470x_int_in_callback()
419 rds = radio->registers[RDSB]; in si470x_int_in_callback()
424 rds = radio->registers[RDSC]; in si470x_int_in_callback()
429 rds = radio->registers[RDSD]; in si470x_int_in_callback()
434 put_unaligned_le16(rds, &tmpbuf); in si470x_int_in_callback()
720 /* rds buffe in si470x_usb_driver_probe()
[all...]
/kernel/linux/linux-6.6/drivers/media/radio/si470x/
H A Dradio-si470x-i2c.c243 unsigned short bler; /* rds block errors */ in si470x_i2c_interrupt()
244 unsigned short rds; in si470x_i2c_interrupt() local
267 /* get rds blocks */ in si470x_i2c_interrupt()
277 rds = radio->registers[RDSA]; in si470x_i2c_interrupt()
282 rds = radio->registers[RDSB]; in si470x_i2c_interrupt()
287 rds = radio->registers[RDSC]; in si470x_i2c_interrupt()
292 rds = radio->registers[RDSD]; in si470x_i2c_interrupt()
297 put_unaligned_le16(rds, &tmpbuf); in si470x_i2c_interrupt()
421 /* rds buffer allocation */ in si470x_i2c_probe()
429 /* rds buffe in si470x_i2c_probe()
[all...]
H A Dradio-si470x-usb.c358 * si470x_int_in_callback - rds callback and processing function
368 unsigned short bler; /* rds block errors */ in si470x_int_in_callback()
369 unsigned short rds; in si470x_int_in_callback() local
400 /* get rds blocks */ in si470x_int_in_callback()
414 rds = radio->registers[RDSA]; in si470x_int_in_callback()
419 rds = radio->registers[RDSB]; in si470x_int_in_callback()
424 rds = radio->registers[RDSC]; in si470x_int_in_callback()
429 rds = radio->registers[RDSD]; in si470x_int_in_callback()
434 put_unaligned_le16(rds, &tmpbuf); in si470x_int_in_callback()
714 /* rds buffe in si470x_usb_driver_probe()
[all...]
/kernel/linux/linux-5.10/drivers/mfd/
H A Dsi476x-cmd.c946 report->rds[V4L2_RDS_BLOCK_A].block = V4L2_RDS_BLOCK_A; in si476x_core_cmd_fm_rds_status()
947 report->rds[V4L2_RDS_BLOCK_A].msb = resp[8]; in si476x_core_cmd_fm_rds_status()
948 report->rds[V4L2_RDS_BLOCK_A].lsb = resp[9]; in si476x_core_cmd_fm_rds_status()
950 report->rds[V4L2_RDS_BLOCK_B].block = V4L2_RDS_BLOCK_B; in si476x_core_cmd_fm_rds_status()
951 report->rds[V4L2_RDS_BLOCK_B].msb = resp[10]; in si476x_core_cmd_fm_rds_status()
952 report->rds[V4L2_RDS_BLOCK_B].lsb = resp[11]; in si476x_core_cmd_fm_rds_status()
954 report->rds[V4L2_RDS_BLOCK_C].block = V4L2_RDS_BLOCK_C; in si476x_core_cmd_fm_rds_status()
955 report->rds[V4L2_RDS_BLOCK_C].msb = resp[12]; in si476x_core_cmd_fm_rds_status()
956 report->rds[V4L2_RDS_BLOCK_C].lsb = resp[13]; in si476x_core_cmd_fm_rds_status()
958 report->rds[V4L2_RDS_BLOCK_ in si476x_core_cmd_fm_rds_status()
[all...]
/kernel/linux/linux-6.6/drivers/mfd/
H A Dsi476x-cmd.c946 report->rds[V4L2_RDS_BLOCK_A].block = V4L2_RDS_BLOCK_A; in si476x_core_cmd_fm_rds_status()
947 report->rds[V4L2_RDS_BLOCK_A].msb = resp[8]; in si476x_core_cmd_fm_rds_status()
948 report->rds[V4L2_RDS_BLOCK_A].lsb = resp[9]; in si476x_core_cmd_fm_rds_status()
950 report->rds[V4L2_RDS_BLOCK_B].block = V4L2_RDS_BLOCK_B; in si476x_core_cmd_fm_rds_status()
951 report->rds[V4L2_RDS_BLOCK_B].msb = resp[10]; in si476x_core_cmd_fm_rds_status()
952 report->rds[V4L2_RDS_BLOCK_B].lsb = resp[11]; in si476x_core_cmd_fm_rds_status()
954 report->rds[V4L2_RDS_BLOCK_C].block = V4L2_RDS_BLOCK_C; in si476x_core_cmd_fm_rds_status()
955 report->rds[V4L2_RDS_BLOCK_C].msb = resp[12]; in si476x_core_cmd_fm_rds_status()
956 report->rds[V4L2_RDS_BLOCK_C].lsb = resp[13]; in si476x_core_cmd_fm_rds_status()
958 report->rds[V4L2_RDS_BLOCK_ in si476x_core_cmd_fm_rds_status()
[all...]

Completed in 16 milliseconds

123