• Home
  • Raw
  • Download

Lines Matching refs:acc_dev

64 	struct acc_dev *dev;
75 struct acc_dev { struct
282 struct acc_dev *acc_dev; member
294 static struct acc_dev *get_acc_dev(void) in get_acc_dev()
298 return kref_get_unless_zero(&ref->kref) ? ref->acc_dev : NULL; in get_acc_dev()
304 struct acc_dev *dev = ref->acc_dev; in __put_acc_dev()
312 ref->acc_dev = NULL; in __put_acc_dev()
316 static void put_acc_dev(struct acc_dev *dev) in put_acc_dev()
320 WARN_ON(ref->acc_dev != dev); in put_acc_dev()
324 static inline struct acc_dev *func_to_dev(struct usb_function *f) in func_to_dev()
326 return container_of(f, struct acc_dev, function); in func_to_dev()
355 static void req_put(struct acc_dev *dev, struct list_head *head, in req_put()
366 static struct usb_request *req_get(struct acc_dev *dev, struct list_head *head) in req_get()
382 static void acc_set_disconnected(struct acc_dev *dev) in acc_set_disconnected()
389 struct acc_dev *dev = get_acc_dev(); in acc_complete_in()
407 struct acc_dev *dev = get_acc_dev(); in acc_complete_out()
424 struct acc_dev *dev = ep->driver_data; in acc_complete_set_string()
474 struct acc_dev *dev = hid->dev; in acc_complete_set_hid_report_desc()
548 static struct acc_hid_dev *acc_hid_new(struct acc_dev *dev, in acc_hid_new()
579 static int acc_register_hid(struct acc_dev *dev, int id, int desc_length) in acc_register_hid()
610 static int acc_unregister_hid(struct acc_dev *dev, int id) in acc_unregister_hid()
631 static int create_bulk_endpoints(struct acc_dev *dev, in create_bulk_endpoints()
693 struct acc_dev *dev = fp->private_data; in acc_read()
788 struct acc_dev *dev = fp->private_data; in acc_write()
857 struct acc_dev *dev = fp->private_data; in acc_ioctl()
896 struct acc_dev *dev = get_acc_dev(); in acc_open()
913 struct acc_dev *dev = fp->private_data; in acc_release()
979 struct acc_dev *dev = get_acc_dev(); in acc_ctrlrequest()
1115 struct acc_dev *dev = func_to_dev(f); in __acc_function_bind()
1178 kill_all_hid_devices(struct acc_dev *dev) in kill_all_hid_devices()
1201 acc_hid_unbind(struct acc_dev *dev) in acc_hid_unbind()
1210 struct acc_dev *dev = func_to_dev(f); in acc_function_unbind()
1284 struct acc_dev *dev = get_acc_dev(); in acc_hid_work()
1345 struct acc_dev *dev = func_to_dev(f); in acc_function_set_alt()
1379 struct acc_dev *dev = func_to_dev(f); in acc_function_disable()
1397 struct acc_dev *dev; in acc_setup()
1421 if (cmpxchg_relaxed(&ref->acc_dev, NULL, dev)) { in acc_setup()
1434 ref->acc_dev = NULL; in acc_setup()
1443 struct acc_dev *dev = get_acc_dev(); in acc_disconnect()
1456 struct acc_dev *dev = get_acc_dev(); in acc_cleanup()
1541 struct acc_dev *dev = func_to_dev(f); in acc_free()
1556 struct acc_dev *dev = get_acc_dev(); in acc_alloc()