Lines Matching refs:regnr
244 static int si470x_get_register(struct si470x_device *radio, int regnr) in si470x_get_register() argument
248 radio->usb_buf[0] = REGISTER_REPORT(regnr); in si470x_get_register()
253 radio->registers[regnr] = get_unaligned_be16(&radio->usb_buf[1]); in si470x_get_register()
262 static int si470x_set_register(struct si470x_device *radio, int regnr) in si470x_set_register() argument
266 radio->usb_buf[0] = REGISTER_REPORT(regnr); in si470x_set_register()
267 put_unaligned_be16(radio->registers[regnr], &radio->usb_buf[1]); in si470x_set_register()
286 unsigned char regnr; in si470x_get_all_registers() local
293 for (regnr = 0; regnr < RADIO_REGISTER_NUM; regnr++) in si470x_get_all_registers()
294 radio->registers[regnr] = get_unaligned_be16( in si470x_get_all_registers()
295 &radio->usb_buf[regnr * RADIO_REGISTER_SIZE + 1]); in si470x_get_all_registers()
366 unsigned char regnr; in si470x_int_in_callback() local
396 for (regnr = 1; regnr < RDS_REGISTER_NUM; regnr++) in si470x_int_in_callback()
397 radio->registers[STATUSRSSI + regnr] = in si470x_int_in_callback()
399 regnr * RADIO_REGISTER_SIZE + 1]); in si470x_int_in_callback()