Lines Matching refs:service

32 adf_service_add(struct service_hndl *service)
35 list_add(&service->list, &service_table);
40 adf_service_register(struct service_hndl *service)
42 memset(service->init_status, 0, sizeof(service->init_status));
43 memset(service->start_status, 0, sizeof(service->start_status));
44 adf_service_add(service);
49 adf_service_remove(struct service_hndl *service)
52 list_del(&service->list);
57 adf_service_unregister(struct service_hndl *service)
61 for (i = 0; i < ARRAY_SIZE(service->init_status); i++) {
62 if (service->init_status[i] || service->start_status[i]) {
63 pr_err("QAT: Could not remove active service [%d]\n",
68 adf_service_remove(service);
186 struct service_hndl *service;
191 service = list_entry(list_itr, struct service_hndl, list);
192 if (service->event_hld(accel_dev, ADF_EVENT_ERROR))
195 service->name);
264 struct service_hndl *service;
370 service = list_entry(list_itr, struct service_hndl, list);
371 if (service->event_hld(accel_dev, ADF_EVENT_INIT)) {
373 "Failed to initialise service %s\n",
374 service->name);
377 set_bit(accel_dev->accel_id, service->init_status);
401 * adf_dev_start() - Start acceleration service for the given accel device
414 struct service_hndl *service;
463 service = list_entry(list_itr, struct service_hndl, list);
464 if (service->event_hld(accel_dev, ADF_EVENT_START)) {
466 "Failed to start service %s\n",
467 service->name);
470 set_bit(accel_dev->accel_id, service->start_status);
496 * adf_dev_stop() - Stop acceleration service for the given accel device
508 struct service_hndl *service;
537 service = list_entry(list_itr, struct service_hndl, list);
538 if (!test_bit(accel_dev->accel_id, service->start_status))
540 clear_bit(accel_dev->accel_id, service->start_status);
570 struct service_hndl *service;
602 service = list_entry(list_itr, struct service_hndl, list);
603 if (!test_bit(accel_dev->accel_id, service->init_status))
605 if (service->event_hld(accel_dev, ADF_EVENT_SHUTDOWN))
607 "Failed to shutdown service %s\n",
608 service->name);
610 clear_bit(accel_dev->accel_id, service->init_status);
648 * adf_dev_reset() - Reset acceleration service for the given accel device
666 struct service_hndl *service;
671 service = list_entry(list_itr, struct service_hndl, list);
672 if (service->event_hld(accel_dev, ADF_EVENT_RESTARTING))
674 "Failed to restart service %s.\n",
675 service->name);
707 struct service_hndl *service;
712 service = list_entry(list_itr, struct service_hndl, list);
713 if (service->event_hld(accel_dev, ADF_EVENT_STOP))
715 "Failed to restart service %s.\n",
716 service->name);
738 struct service_hndl *service;
743 service = list_entry(list_itr, struct service_hndl, list);
744 if (service->event_hld(accel_dev, ADF_EVENT_RESTARTED))
746 "Failed to restart service %s.\n",
747 service->name);