Lines Matching refs:notify_id

1214 notifier_hnode_get_by_vmid(u16 notify_id, int vmid)  in notifier_hnode_get_by_vmid()  argument
1218 hash_for_each_possible(drv_info->notifier_hash, node, hnode, notify_id) in notifier_hnode_get_by_vmid()
1226 notifier_hnode_get_by_vmid_uuid(u16 notify_id, int vmid, const uuid_t *uuid) in notifier_hnode_get_by_vmid_uuid() argument
1231 return notifier_hnode_get_by_vmid(notify_id, vmid); in notifier_hnode_get_by_vmid_uuid()
1233 hash_for_each_possible(drv_info->notifier_hash, node, hnode, notify_id) in notifier_hnode_get_by_vmid_uuid()
1242 notifier_hnode_get_by_type(u16 notify_id, enum notify_type type) in notifier_hnode_get_by_type() argument
1246 hash_for_each_possible(drv_info->notifier_hash, node, hnode, notify_id) in notifier_hnode_get_by_type()
1254 update_notifier_cb(struct ffa_device *dev, int notify_id, void *cb, in update_notifier_cb() argument
1262 cb_info = notifier_hnode_get_by_vmid_uuid(notify_id, dev->vm_id, in update_notifier_cb()
1265 cb_info = notifier_hnode_get_by_type(notify_id, type); in update_notifier_cb()
1284 hash_add(drv_info->notifier_hash, &cb_info->hnode, notify_id); in update_notifier_cb()
1292 static int __ffa_notify_relinquish(struct ffa_device *dev, int notify_id, in __ffa_notify_relinquish() argument
1300 if (notify_id >= FFA_MAX_NOTIFICATIONS) in __ffa_notify_relinquish()
1305 rc = update_notifier_cb(dev, notify_id, NULL, NULL, false, in __ffa_notify_relinquish()
1314 rc = ffa_notification_unbind(dev->vm_id, BIT(notify_id)); in __ffa_notify_relinquish()
1321 static int ffa_notify_relinquish(struct ffa_device *dev, int notify_id) in ffa_notify_relinquish() argument
1323 return __ffa_notify_relinquish(dev, notify_id, false); in ffa_notify_relinquish()
1326 static int ffa_fwk_notify_relinquish(struct ffa_device *dev, int notify_id) in ffa_fwk_notify_relinquish() argument
1328 return __ffa_notify_relinquish(dev, notify_id, true); in ffa_fwk_notify_relinquish()
1333 int notify_id, bool is_framework) in __ffa_notify_request() argument
1341 if (notify_id >= FFA_MAX_NOTIFICATIONS) in __ffa_notify_request()
1350 rc = ffa_notification_bind(dev->vm_id, BIT(notify_id), flags); in __ffa_notify_request()
1357 rc = update_notifier_cb(dev, notify_id, cb, cb_data, true, in __ffa_notify_request()
1361 notify_id, rc); in __ffa_notify_request()
1363 ffa_notification_unbind(dev->vm_id, BIT(notify_id)); in __ffa_notify_request()
1371 ffa_notifier_cb cb, void *cb_data, int notify_id) in ffa_notify_request() argument
1373 return __ffa_notify_request(dev, is_per_vcpu, cb, cb_data, notify_id, in ffa_notify_request()
1379 void *cb_data, int notify_id) in ffa_fwk_notify_request() argument
1381 return __ffa_notify_request(dev, false, cb, cb_data, notify_id, true); in ffa_fwk_notify_request()
1384 static int ffa_notify_send(struct ffa_device *dev, int notify_id, in ffa_notify_send() argument
1396 BIT(notify_id)); in ffa_notify_send()
1401 int notify_id; in handle_notif_callbacks() local
1404 for (notify_id = 0; notify_id <= FFA_MAX_NOTIFICATIONS && bitmap; in handle_notif_callbacks()
1405 notify_id++, bitmap >>= 1) { in handle_notif_callbacks()
1410 cb_info = notifier_hnode_get_by_type(notify_id, type); in handle_notif_callbacks()
1414 cb_info->cb(notify_id, cb_info->cb_data); in handle_notif_callbacks()
1422 int notify_id = 0, target; in handle_fwk_notif_callbacks() local
1450 cb_info = notifier_hnode_get_by_vmid_uuid(notify_id, target, &uuid); in handle_fwk_notif_callbacks()
1454 cb_info->fwk_cb(notify_id, cb_info->cb_data, buf); in handle_fwk_notif_callbacks()