Lines Matching refs:desc
373 struct ssam_cdev_notifier_desc desc; in ssam_cdev_notif_register() local
378 ret = copy_struct_from_user(&desc, sizeof(desc), d, sizeof(*d)); in ssam_cdev_notif_register()
382 return ssam_cdev_notifier_register(client, desc.target_category, desc.priority); in ssam_cdev_notif_register()
388 struct ssam_cdev_notifier_desc desc; in ssam_cdev_notif_unregister() local
393 ret = copy_struct_from_user(&desc, sizeof(desc), d, sizeof(*d)); in ssam_cdev_notif_unregister()
397 return ssam_cdev_notifier_unregister(client, desc.target_category); in ssam_cdev_notif_unregister()
403 struct ssam_cdev_event_desc desc; in ssam_cdev_event_enable() local
411 ret = copy_struct_from_user(&desc, sizeof(desc), d, sizeof(*d)); in ssam_cdev_event_enable()
416 reg.target_category = desc.reg.target_category; in ssam_cdev_event_enable()
417 reg.target_id = desc.reg.target_id; in ssam_cdev_event_enable()
418 reg.cid_enable = desc.reg.cid_enable; in ssam_cdev_event_enable()
419 reg.cid_disable = desc.reg.cid_disable; in ssam_cdev_event_enable()
421 id.target_category = desc.id.target_category; in ssam_cdev_event_enable()
422 id.instance = desc.id.instance; in ssam_cdev_event_enable()
425 return ssam_controller_event_enable(client->cdev->ctrl, reg, id, desc.flags); in ssam_cdev_event_enable()
431 struct ssam_cdev_event_desc desc; in ssam_cdev_event_disable() local
439 ret = copy_struct_from_user(&desc, sizeof(desc), d, sizeof(*d)); in ssam_cdev_event_disable()
444 reg.target_category = desc.reg.target_category; in ssam_cdev_event_disable()
445 reg.target_id = desc.reg.target_id; in ssam_cdev_event_disable()
446 reg.cid_enable = desc.reg.cid_enable; in ssam_cdev_event_disable()
447 reg.cid_disable = desc.reg.cid_disable; in ssam_cdev_event_disable()
449 id.target_category = desc.id.target_category; in ssam_cdev_event_disable()
450 id.instance = desc.id.instance; in ssam_cdev_event_disable()
453 return ssam_controller_event_disable(client->cdev->ctrl, reg, id, desc.flags); in ssam_cdev_event_disable()