Searched refs:regnr (Results 1 – 3 of 3) sorted by relevance
253 static int si470x_get_register(struct si470x_device *radio, int regnr) in si470x_get_register() argument257 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() argument275 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() local302 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 …]
92 static int si470x_get_register(struct si470x_device *radio, int regnr) in si470x_get_register() argument107 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() argument253 unsigned char regnr; in si470x_i2c_interrupt() local273 for (regnr = 1; regnr < RDS_REGISTER_NUM; regnr++) { in si470x_i2c_interrupt()274 retval = si470x_get_register(radio, STATUSRSSI + regnr); in si470x_i2c_interrupt()
166 int (*get_register)(struct si470x_device *radio, int regnr);167 int (*set_register)(struct si470x_device *radio, int regnr);