Home
last modified time | relevance | path

Searched refs:regnr (Results 1 – 3 of 3) sorted by relevance

/linux-4.19.296/drivers/media/radio/si470x/
Dradio-si470x-usb.c253 static int si470x_get_register(struct si470x_device *radio, int regnr) in si470x_get_register() argument
257 radio->usb_buf[0] = REGISTER_REPORT(regnr); in si470x_get_register()
262 radio->registers[regnr] = get_unaligned_be16(&radio->usb_buf[1]); in si470x_get_register()
271 static int si470x_set_register(struct si470x_device *radio, int regnr) in si470x_set_register() argument
275 radio->usb_buf[0] = REGISTER_REPORT(regnr); in si470x_set_register()
276 put_unaligned_be16(radio->registers[regnr], &radio->usb_buf[1]); in si470x_set_register()
295 unsigned char regnr; in si470x_get_all_registers() local
302 for (regnr = 0; regnr < RADIO_REGISTER_NUM; regnr++) in si470x_get_all_registers()
303 radio->registers[regnr] = get_unaligned_be16( in si470x_get_all_registers()
304 &radio->usb_buf[regnr * RADIO_REGISTER_SIZE + 1]); in si470x_get_all_registers()
[all …]
Dradio-si470x-i2c.c92 static int si470x_get_register(struct si470x_device *radio, int regnr) in si470x_get_register() argument
107 radio->registers[regnr] = __be16_to_cpu(buf[READ_INDEX(regnr)]); in si470x_get_register()
116 static int si470x_set_register(struct si470x_device *radio, int regnr) in si470x_set_register() argument
253 unsigned char regnr; in si470x_i2c_interrupt() local
273 for (regnr = 1; regnr < RDS_REGISTER_NUM; regnr++) { in si470x_i2c_interrupt()
274 retval = si470x_get_register(radio, STATUSRSSI + regnr); in si470x_i2c_interrupt()
Dradio-si470x.h166 int (*get_register)(struct si470x_device *radio, int regnr);
167 int (*set_register)(struct si470x_device *radio, int regnr);