Lines Matching refs:srv
106 static int hv_shutdown_init(struct hv_util_service *srv) in hv_shutdown_init() argument
108 struct vmbus_channel *channel = srv->channel; in hv_shutdown_init()
124 static int hv_timesync_init(struct hv_util_service *srv);
562 struct hv_util_service *srv = in util_probe() local
566 srv->recv_buffer = kmalloc(HV_HYP_PAGE_SIZE * 4, GFP_KERNEL); in util_probe()
567 if (!srv->recv_buffer) in util_probe()
569 srv->channel = dev->channel; in util_probe()
570 if (srv->util_init) { in util_probe()
571 ret = srv->util_init(srv); in util_probe()
587 hv_set_drvdata(dev, srv); in util_probe()
590 HV_UTIL_RING_RECV_SIZE, NULL, 0, srv->util_cb, in util_probe()
598 if (srv->util_deinit) in util_probe()
599 srv->util_deinit(); in util_probe()
601 kfree(srv->recv_buffer); in util_probe()
607 struct hv_util_service *srv = hv_get_drvdata(dev); in util_remove() local
609 if (srv->util_deinit) in util_remove()
610 srv->util_deinit(); in util_remove()
612 kfree(srv->recv_buffer); in util_remove()
624 struct hv_util_service *srv = hv_get_drvdata(dev); in util_suspend() local
627 if (srv->util_pre_suspend) { in util_suspend()
628 ret = srv->util_pre_suspend(); in util_suspend()
640 struct hv_util_service *srv = hv_get_drvdata(dev); in util_resume() local
643 if (srv->util_pre_resume) { in util_resume()
644 ret = srv->util_pre_resume(); in util_resume()
650 HV_UTIL_RING_RECV_SIZE, NULL, 0, srv->util_cb, in util_resume()
735 static int hv_timesync_init(struct hv_util_service *srv) in hv_timesync_init() argument