Lines Matching refs:device

146 	struct hv_device	*device;  member
164 static struct mousevsc_dev *mousevsc_alloc_device(struct hv_device *device) in mousevsc_alloc_device() argument
173 input_dev->device = device; in mousevsc_alloc_device()
174 hv_set_drvdata(device, input_dev); in mousevsc_alloc_device()
181 static void mousevsc_free_device(struct mousevsc_dev *device) in mousevsc_free_device() argument
183 kfree(device->hid_desc); in mousevsc_free_device()
184 kfree(device->report_desc); in mousevsc_free_device()
185 hv_set_drvdata(device->device, NULL); in mousevsc_free_device()
186 kfree(device); in mousevsc_free_device()
236 ret = vmbus_sendpacket(input_device->device->channel, in mousevsc_on_receive_device_info()
253 static void mousevsc_on_receive(struct hv_device *device, in mousevsc_on_receive() argument
258 struct mousevsc_dev *input_dev = hv_get_drvdata(device); in mousevsc_on_receive()
312 pm_wakeup_event(&input_dev->device->device, 0); in mousevsc_on_receive()
327 struct hv_device *device = context; in mousevsc_on_channel_callback() local
339 ret = vmbus_recvpacket_raw(device->channel, buffer, in mousevsc_on_channel_callback()
355 mousevsc_on_receive(device, desc); in mousevsc_on_channel_callback()
381 static int mousevsc_connect_to_vsp(struct hv_device *device) in mousevsc_connect_to_vsp() argument
385 struct mousevsc_dev *input_dev = hv_get_drvdata(device); in mousevsc_connect_to_vsp()
398 ret = vmbus_sendpacket(device->channel, request, in mousevsc_connect_to_vsp()
486 static int mousevsc_probe(struct hv_device *device, in mousevsc_probe() argument
493 input_dev = mousevsc_alloc_device(device); in mousevsc_probe()
498 ret = vmbus_open(device->channel, in mousevsc_probe()
504 device in mousevsc_probe()
510 ret = mousevsc_connect_to_vsp(device); in mousevsc_probe()
535 hid_set_drvdata(hid_dev, device); in mousevsc_probe()
555 device_init_wakeup(&device->device, true); in mousevsc_probe()
566 vmbus_close(device->channel); in mousevsc_probe()
579 device_init_wakeup(&dev->device, false); in mousevsc_remove()