Lines Matching defs:work
152 static void link_lock(struct hdcp_workqueue *work, bool lock)
156 for (i = 0; i < work->max_link; i++) {
158 mutex_lock(&work[i].mutex);
160 mutex_unlock(&work[i].mutex);
273 static void event_callback(struct work_struct *work)
277 hdcp_work = container_of(to_delayed_work(work), struct hdcp_workqueue,
292 static void event_property_update(struct work_struct *work)
294 struct hdcp_workqueue *hdcp_work = container_of(work, struct hdcp_workqueue,
363 static void event_property_validate(struct work_struct *work)
366 container_of(to_delayed_work(work), struct hdcp_workqueue, property_validate_dwork);
391 DRM_DEBUG_DRIVER("[HDCP_DM] disp %d, connector->CP %u, (query, work): (%d, %d)\n",
415 static void event_watchdog_timer(struct work_struct *work)
419 hdcp_work = container_of(to_delayed_work(work),
436 static void event_cpirq(struct work_struct *work)
440 hdcp_work = container_of(work, struct hdcp_workqueue, cpirq_work);
620 struct hdcp_workqueue *work;
623 work = container_of(bin_attr, struct hdcp_workqueue, attr);
624 link_lock(work, true);
626 memcpy(work->srm_temp + pos, buffer, count);
628 if (!psp_set_srm(work->hdcp.config.psp.handle, work->srm_temp, pos + count, &srm_version)) {
630 memcpy(work->srm, work->srm_temp, pos + count);
631 work->srm_size = pos + count;
632 work->srm_version = srm_version;
635 link_lock(work, false);
644 struct hdcp_workqueue *work;
650 work = container_of(bin_attr, struct hdcp_workqueue, attr);
652 link_lock(work, true);
654 srm = psp_get_srm(work->hdcp.config.psp.handle, &srm_version, &srm_size);
673 link_lock(work, false);