Lines Matching refs:regnr
253 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()
375 unsigned char regnr; in si470x_int_in_callback() local
405 for (regnr = 1; regnr < RDS_REGISTER_NUM; regnr++) in si470x_int_in_callback()
406 radio->registers[STATUSRSSI + regnr] = in si470x_int_in_callback()
408 regnr * RADIO_REGISTER_SIZE + 1]); in si470x_int_in_callback()