Lines Matching refs:usb_ftdi
144 struct usb_ftdi { struct
189 #define kref_to_usb_ftdi(d) container_of(d, struct usb_ftdi, kref) argument
190 #define platform_device_to_usb_ftdi(d) container_of(d, struct usb_ftdi, \
195 struct usb_ftdi *ftdi = kref_to_usb_ftdi(kref); in ftdi_elan_delete()
208 static void ftdi_elan_put_kref(struct usb_ftdi *ftdi) in ftdi_elan_put_kref()
213 static void ftdi_elan_get_kref(struct usb_ftdi *ftdi) in ftdi_elan_get_kref()
218 static void ftdi_elan_init_kref(struct usb_ftdi *ftdi) in ftdi_elan_init_kref()
223 static void ftdi_status_requeue_work(struct usb_ftdi *ftdi, unsigned int delta) in ftdi_status_requeue_work()
229 static void ftdi_status_queue_work(struct usb_ftdi *ftdi, unsigned int delta) in ftdi_status_queue_work()
235 static void ftdi_status_cancel_work(struct usb_ftdi *ftdi) in ftdi_status_cancel_work()
241 static void ftdi_command_requeue_work(struct usb_ftdi *ftdi, unsigned int delta) in ftdi_command_requeue_work()
247 static void ftdi_command_queue_work(struct usb_ftdi *ftdi, unsigned int delta) in ftdi_command_queue_work()
253 static void ftdi_command_cancel_work(struct usb_ftdi *ftdi) in ftdi_command_cancel_work()
259 static void ftdi_response_requeue_work(struct usb_ftdi *ftdi, in ftdi_response_requeue_work()
266 static void ftdi_respond_queue_work(struct usb_ftdi *ftdi, unsigned int delta) in ftdi_respond_queue_work()
272 static void ftdi_response_cancel_work(struct usb_ftdi *ftdi) in ftdi_response_cancel_work()
280 struct usb_ftdi *ftdi = platform_device_to_usb_ftdi(pdev); in ftdi_elan_gone_away()
292 static void ftdi_elan_do_callback(struct usb_ftdi *ftdi,
294 static void ftdi_elan_kick_command_queue(struct usb_ftdi *ftdi);
295 static void ftdi_elan_kick_respond_queue(struct usb_ftdi *ftdi);
296 static int ftdi_elan_setupOHCI(struct usb_ftdi *ftdi);
297 static int ftdi_elan_checkingPCI(struct usb_ftdi *ftdi);
298 static int ftdi_elan_enumeratePCI(struct usb_ftdi *ftdi);
299 static int ftdi_elan_synchronize(struct usb_ftdi *ftdi);
300 static int ftdi_elan_stuck_waiting(struct usb_ftdi *ftdi);
301 static int ftdi_elan_command_engine(struct usb_ftdi *ftdi);
302 static int ftdi_elan_respond_engine(struct usb_ftdi *ftdi);
303 static int ftdi_elan_hcd_init(struct usb_ftdi *ftdi) in ftdi_elan_hcd_init()
328 static void ftdi_elan_abandon_completions(struct usb_ftdi *ftdi) in ftdi_elan_abandon_completions()
341 static void ftdi_elan_abandon_targets(struct usb_ftdi *ftdi) in ftdi_elan_abandon_targets()
360 static void ftdi_elan_flush_targets(struct usb_ftdi *ftdi) in ftdi_elan_flush_targets()
418 static void ftdi_elan_cancel_targets(struct usb_ftdi *ftdi) in ftdi_elan_cancel_targets()
454 static void ftdi_elan_kick_command_queue(struct usb_ftdi *ftdi) in ftdi_elan_kick_command_queue()
461 struct usb_ftdi *ftdi = in ftdi_elan_command_work()
462 container_of(work, struct usb_ftdi, command_work.work); in ftdi_elan_command_work()
480 static void ftdi_elan_kick_respond_queue(struct usb_ftdi *ftdi) in ftdi_elan_kick_respond_queue()
487 struct usb_ftdi *ftdi = in ftdi_elan_respond_work()
488 container_of(work, struct usb_ftdi, respond_work.work); in ftdi_elan_respond_work()
522 struct usb_ftdi *ftdi = in ftdi_elan_status_work()
523 container_of(work, struct usb_ftdi, status_work.work); in ftdi_elan_status_work()
627 struct usb_ftdi *ftdi = usb_get_intfdata(interface); in ftdi_elan_open()
644 struct usb_ftdi *ftdi = file->private_data; in ftdi_elan_release()
667 struct usb_ftdi *ftdi = file->private_data; in ftdi_elan_read()
720 struct usb_ftdi *ftdi = urb->context; in ftdi_elan_write_bulk_callback()
732 static int fill_buffer_with_all_queued_commands(struct usb_ftdi *ftdi, in fill_buffer_with_all_queued_commands()
759 static int ftdi_elan_total_command_size(struct usb_ftdi *ftdi, int command_size) in ftdi_elan_total_command_size()
772 static int ftdi_elan_command_engine(struct usb_ftdi *ftdi) in ftdi_elan_command_engine()
829 static void ftdi_elan_do_callback(struct usb_ftdi *ftdi, in ftdi_elan_do_callback()
850 static char *have_ed_set_response(struct usb_ftdi *ftdi, in have_ed_set_response()
887 static char *have_ed_get_response(struct usb_ftdi *ftdi, in have_ed_get_response()
915 static int ftdi_elan_respond_engine(struct usb_ftdi *ftdi) in ftdi_elan_respond_engine()
1088 struct usb_ftdi *ftdi = file->private_data; in ftdi_elan_write()
1185 static int ftdi_elan_write_reg(struct usb_ftdi *ftdi, u32 data) in ftdi_elan_write_reg()
1215 static int ftdi_elan_write_config(struct usb_ftdi *ftdi, int config_offset, in ftdi_elan_write_config()
1247 static int ftdi_elan_write_pcimem(struct usb_ftdi *ftdi, int mem_offset, in ftdi_elan_write_pcimem()
1282 struct usb_ftdi *ftdi = platform_device_to_usb_ftdi(pdev); in usb_ftdi_elan_write_pcimem()
1288 static int ftdi_elan_read_reg(struct usb_ftdi *ftdi, u32 *data) in ftdi_elan_read_reg()
1329 static int ftdi_elan_read_config(struct usb_ftdi *ftdi, int config_offset, in ftdi_elan_read_config()
1373 static int ftdi_elan_read_pcimem(struct usb_ftdi *ftdi, int mem_offset, in ftdi_elan_read_pcimem()
1420 struct usb_ftdi *ftdi = platform_device_to_usb_ftdi(pdev); in usb_ftdi_elan_read_pcimem()
1429 static int ftdi_elan_edset_setup(struct usb_ftdi *ftdi, u8 ed_number, in ftdi_elan_edset_setup()
1478 struct usb_ftdi *ftdi = platform_device_to_usb_ftdi(pdev); in usb_ftdi_elan_edset_setup()
1485 static int ftdi_elan_edset_input(struct usb_ftdi *ftdi, u8 ed_number, in ftdi_elan_edset_input()
1542 struct usb_ftdi *ftdi = platform_device_to_usb_ftdi(pdev); in usb_ftdi_elan_edset_input()
1549 static int ftdi_elan_edset_empty(struct usb_ftdi *ftdi, u8 ed_number, in ftdi_elan_edset_empty()
1598 struct usb_ftdi *ftdi = platform_device_to_usb_ftdi(pdev); in usb_ftdi_elan_edset_empty()
1605 static int ftdi_elan_edset_output(struct usb_ftdi *ftdi, u8 ed_number, in ftdi_elan_edset_output()
1676 struct usb_ftdi *ftdi = platform_device_to_usb_ftdi(pdev); in usb_ftdi_elan_edset_output()
1683 static int ftdi_elan_edset_single(struct usb_ftdi *ftdi, u8 ed_number, in ftdi_elan_edset_single()
1740 struct usb_ftdi *ftdi = platform_device_to_usb_ftdi(pdev); in usb_ftdi_elan_edset_single()
1747 static int ftdi_elan_edset_flush(struct usb_ftdi *ftdi, u8 ed_number, in ftdi_elan_edset_flush()
1796 struct usb_ftdi *ftdi = platform_device_to_usb_ftdi(pdev); in usb_ftdi_elan_edset_flush()
1802 static int ftdi_elan_flush_input_fifo(struct usb_ftdi *ftdi) in ftdi_elan_flush_input_fifo()
1880 static int ftdi_elan_synchronize_flush(struct usb_ftdi *ftdi) in ftdi_elan_synchronize_flush()
1918 static int ftdi_elan_synchronize_reset(struct usb_ftdi *ftdi) in ftdi_elan_synchronize_reset()
1953 static int ftdi_elan_synchronize(struct usb_ftdi *ftdi) in ftdi_elan_synchronize()
2070 static int ftdi_elan_stuck_waiting(struct usb_ftdi *ftdi) in ftdi_elan_stuck_waiting()
2141 static int ftdi_elan_checkingPCI(struct usb_ftdi *ftdi) in ftdi_elan_checkingPCI()
2188 static int ftdi_elan_check_controller(struct usb_ftdi *ftdi, int quirk) in ftdi_elan_check_controller()
2390 static int ftdi_elan_setup_controller(struct usb_ftdi *ftdi, int fn) in ftdi_elan_setup_controller()
2449 static int ftdi_elan_close_controller(struct usb_ftdi *ftdi, int fn) in ftdi_elan_close_controller()
2499 static int ftdi_elan_found_controller(struct usb_ftdi *ftdi, int fn, int quirk) in ftdi_elan_found_controller()
2513 static int ftdi_elan_enumeratePCI(struct usb_ftdi *ftdi) in ftdi_elan_enumeratePCI()
2564 static int ftdi_elan_setupOHCI(struct usb_ftdi *ftdi) in ftdi_elan_setupOHCI()
2640 struct usb_ftdi *ftdi; in ftdi_elan_probe()
2642 ftdi = kzalloc(sizeof(struct usb_ftdi), GFP_KERNEL); in ftdi_elan_probe()
2720 struct usb_ftdi *ftdi = usb_get_intfdata(interface); in ftdi_elan_disconnect()
2771 struct usb_ftdi *ftdi; in ftdi_elan_exit()
2772 struct usb_ftdi *temp; in ftdi_elan_exit()