Lines Matching refs:usb_buf

257 	radio->usb_buf[0] = REGISTER_REPORT(regnr);  in si470x_get_register()
259 retval = si470x_get_report(radio, radio->usb_buf, REGISTER_REPORT_SIZE); in si470x_get_register()
262 radio->registers[regnr] = get_unaligned_be16(&radio->usb_buf[1]); in si470x_get_register()
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()
278 retval = si470x_set_report(radio, radio->usb_buf, REGISTER_REPORT_SIZE); in si470x_set_register()
297 radio->usb_buf[0] = ENTIRE_REPORT; in si470x_get_all_registers()
299 retval = si470x_get_report(radio, radio->usb_buf, ENTIRE_REPORT_SIZE); in si470x_get_all_registers()
304 &radio->usb_buf[regnr * RADIO_REGISTER_SIZE + 1]); in si470x_get_all_registers()
323 radio->usb_buf[0] = LED_REPORT; in si470x_set_led_state()
324 radio->usb_buf[1] = LED_COMMAND; in si470x_set_led_state()
325 radio->usb_buf[2] = led_state; in si470x_set_led_state()
327 retval = si470x_set_report(radio, radio->usb_buf, LED_REPORT_SIZE); in si470x_set_led_state()
345 radio->usb_buf[0] = SCRATCH_REPORT; in si470x_get_scratch_page_versions()
347 retval = si470x_get_report(radio, radio->usb_buf, SCRATCH_REPORT_SIZE); in si470x_get_scratch_page_versions()
353 radio->software_version = radio->usb_buf[1]; in si470x_get_scratch_page_versions()
354 radio->hardware_version = radio->usb_buf[2]; in si470x_get_scratch_page_versions()
505 kfree(radio->usb_buf); in si470x_usb_release()
590 radio->usb_buf = kmalloc(MAX_REPORT_SIZE, GFP_KERNEL); in si470x_usb_driver_probe()
591 if (radio->usb_buf == NULL) { in si470x_usb_driver_probe()
652 radio->usb_buf, 3, 500); in si470x_usb_driver_probe()
654 (get_unaligned_be16(&radio->usb_buf[1]) & 0xfff) != 0x0242) { in si470x_usb_driver_probe()
775 kfree(radio->usb_buf); in si470x_usb_driver_probe()