/drivers/gpu/drm/nouveau/nvif/ |
D | notify.c | 33 nvif_notify_put_(struct nvif_notify *notify) in nvif_notify_put_() argument 35 struct nvif_object *object = notify->object; in nvif_notify_put_() 41 .ntfy.index = notify->index, in nvif_notify_put_() 44 if (atomic_inc_return(¬ify->putcnt) != 1) in nvif_notify_put_() 51 nvif_notify_put(struct nvif_notify *notify) in nvif_notify_put() argument 53 if (likely(notify->object) && in nvif_notify_put() 54 test_and_clear_bit(NVIF_NOTIFY_USER, ¬ify->flags)) { in nvif_notify_put() 55 int ret = nvif_notify_put_(notify); in nvif_notify_put() 56 if (test_bit(NVIF_NOTIFY_WORK, ¬ify->flags)) in nvif_notify_put() 57 flush_work(¬ify->work); in nvif_notify_put() [all …]
|
/drivers/gpu/drm/nouveau/core/core/ |
D | notify.c | 33 nvkm_notify_put_locked(struct nvkm_notify *notify) in nvkm_notify_put_locked() argument 35 if (notify->block++ == 0) in nvkm_notify_put_locked() 36 nvkm_event_put(notify->event, notify->types, notify->index); in nvkm_notify_put_locked() 40 nvkm_notify_put(struct nvkm_notify *notify) in nvkm_notify_put() argument 42 struct nvkm_event *event = notify->event; in nvkm_notify_put() 45 test_and_clear_bit(NVKM_NOTIFY_USER, ¬ify->flags)) { in nvkm_notify_put() 47 nvkm_notify_put_locked(notify); in nvkm_notify_put() 49 if (test_bit(NVKM_NOTIFY_WORK, ¬ify->flags)) in nvkm_notify_put() 50 flush_work(¬ify->work); in nvkm_notify_put() 55 nvkm_notify_get_locked(struct nvkm_notify *notify) in nvkm_notify_get_locked() argument [all …]
|
D | client.c | 50 struct nvkm_client_notify *notify = container_of(n, typeof(*notify), n); in nvkm_client_notify() local 51 struct nouveau_client *client = notify->client; in nvkm_client_notify() 52 return client->ntfy(¬ify->rep, notify->size, n->data, n->size); in nvkm_client_notify() 58 if (index < ARRAY_SIZE(client->notify)) { in nvkm_client_notify_put() 59 if (client->notify[index]) { in nvkm_client_notify_put() 60 nvkm_notify_put(&client->notify[index]->n); in nvkm_client_notify_put() 70 if (index < ARRAY_SIZE(client->notify)) { in nvkm_client_notify_get() 71 if (client->notify[index]) { in nvkm_client_notify_get() 72 nvkm_notify_get(&client->notify[index]->n); in nvkm_client_notify_get() 82 if (index < ARRAY_SIZE(client->notify)) { in nvkm_client_notify_del() [all …]
|
D | event.c | 56 struct nvkm_notify *notify; in nvkm_event_send() local 63 list_for_each_entry(notify, &event->list, head) { in nvkm_event_send() 64 if (notify->index == index && (notify->types & types)) { in nvkm_event_send() 66 event->func->send(data, size, notify); in nvkm_event_send() 69 nvkm_notify_send(notify, data, size); in nvkm_event_send()
|
/drivers/acpi/acpica/ |
D | evmisc.c | 160 info->notify.node = node; in acpi_ev_queue_notify_request() 161 info->notify.value = (u16)notify_value; in acpi_ev_queue_notify_request() 162 info->notify.handler_list_id = handler_list_id; in acpi_ev_queue_notify_request() 163 info->notify.handler_list_head = handler_list_head; in acpi_ev_queue_notify_request() 164 info->notify.global = &acpi_gbl_global_notify[handler_list_id]; in acpi_ev_queue_notify_request() 204 if (info->notify.global->handler) { in acpi_ev_notify_dispatch() 205 info->notify.global->handler(info->notify.node, in acpi_ev_notify_dispatch() 206 info->notify.value, in acpi_ev_notify_dispatch() 207 info->notify.global->context); in acpi_ev_notify_dispatch() 212 handler_obj = info->notify.handler_list_head; in acpi_ev_notify_dispatch() [all …]
|
D | evxface.c | 170 if (handler_obj->notify.handler == handler) { in acpi_install_notify_handler() 175 handler_obj = handler_obj->notify.next[i]; in acpi_install_notify_handler() 188 handler_obj->notify.node = node; in acpi_install_notify_handler() 189 handler_obj->notify.handler_type = handler_type; in acpi_install_notify_handler() 190 handler_obj->notify.handler = handler; in acpi_install_notify_handler() 191 handler_obj->notify.context = context; in acpi_install_notify_handler() 197 handler_obj->notify.next[i] = in acpi_install_notify_handler() 317 (handler_obj->notify.handler != handler)) { in ACPI_EXPORT_SYMBOL() 319 handler_obj = handler_obj->notify.next[i]; in ACPI_EXPORT_SYMBOL() 330 previous_handler_obj->notify.next[i] = in ACPI_EXPORT_SYMBOL() [all …]
|
D | evgpeutil.c | 356 struct acpi_gpe_notify_info *notify; in acpi_ev_delete_gpe_handlers() local 390 notify = gpe_event_info->dispatch.notify_list; in acpi_ev_delete_gpe_handlers() 391 while (notify) { in acpi_ev_delete_gpe_handlers() 392 next = notify->next; in acpi_ev_delete_gpe_handlers() 393 ACPI_FREE(notify); in acpi_ev_delete_gpe_handlers() 394 notify = next; in acpi_ev_delete_gpe_handlers()
|
D | evgpe.c | 490 struct acpi_gpe_notify_info *notify; in acpi_ev_asynch_execute_gpe_method() local 545 notify = local_gpe_event_info->dispatch.notify_list; in acpi_ev_asynch_execute_gpe_method() 546 while (ACPI_SUCCESS(status) && notify) { in acpi_ev_asynch_execute_gpe_method() 548 acpi_ev_queue_notify_request(notify->device_node, in acpi_ev_asynch_execute_gpe_method() 551 notify = notify->next; in acpi_ev_asynch_execute_gpe_method()
|
D | evxfgpe.c | 259 struct acpi_gpe_notify_info *notify; in ACPI_EXPORT_SYMBOL() local 335 notify = gpe_event_info->dispatch.notify_list; in ACPI_EXPORT_SYMBOL() 336 while (notify) { in ACPI_EXPORT_SYMBOL() 337 if (notify->device_node == device_node) { in ACPI_EXPORT_SYMBOL() 341 notify = notify->next; in ACPI_EXPORT_SYMBOL()
|
/drivers/gpu/drm/nouveau/core/engine/disp/ |
D | base.c | 36 struct nvkm_notify *notify) in nouveau_disp_vblank_ctor() argument 39 container_of(notify->event, typeof(*disp), vblank); in nouveau_disp_vblank_ctor() 46 notify->size = sizeof(struct nvif_notify_head_rep_v0); in nouveau_disp_vblank_ctor() 48 notify->types = 1; in nouveau_disp_vblank_ctor() 49 notify->index = req->v0.head; in nouveau_disp_vblank_ctor() 66 struct nvkm_notify *notify) in nouveau_disp_hpd_ctor() argument 69 container_of(notify->event, typeof(*disp), hpd); in nouveau_disp_hpd_ctor() 77 notify->size = sizeof(struct nvif_notify_conn_rep_v0); in nouveau_disp_hpd_ctor() 81 notify->types = req->v0.mask; in nouveau_disp_hpd_ctor() 82 notify->index = req->v0.conn; in nouveau_disp_hpd_ctor()
|
D | outpdp.c | 140 nvkm_output_dp_hpd(struct nvkm_notify *notify) in nvkm_output_dp_hpd() argument 142 struct nvkm_connector *conn = container_of(notify, typeof(*conn), hpd); in nvkm_output_dp_hpd() 145 const struct nvkm_i2c_ntfy_rep *line = notify->data; in nvkm_output_dp_hpd() 170 nvkm_output_dp_irq(struct nvkm_notify *notify) in nvkm_output_dp_irq() argument 172 struct nvkm_output_dp *outp = container_of(notify, typeof(*outp), irq); in nvkm_output_dp_irq() 174 const struct nvkm_i2c_ntfy_rep *line = notify->data; in nvkm_output_dp_irq()
|
/drivers/usb/gadget/function/ |
D | f_acm.c | 57 struct usb_ep *notify; member 432 if (acm->notify->driver_data) { in acm_set_alt() 435 usb_ep_disable(acm->notify); in acm_set_alt() 438 if (!acm->notify->desc) in acm_set_alt() 439 if (config_ep_by_speed(cdev->gadget, f, acm->notify)) in acm_set_alt() 442 usb_ep_enable(acm->notify); in acm_set_alt() 443 acm->notify->driver_data = acm; in acm_set_alt() 478 usb_ep_disable(acm->notify); in acm_disable() 479 acm->notify->driver_data = NULL; in acm_disable() 501 struct usb_ep *ep = acm->notify; in acm_cdc_notify() [all …]
|
D | f_ecm.c | 56 struct usb_ep *notify; member 428 status = usb_ep_queue(ecm->notify, req, GFP_ATOMIC); in ecm_do_notify() 544 if (ecm->notify->driver_data) { in ecm_set_alt() 546 usb_ep_disable(ecm->notify); in ecm_set_alt() 548 if (!(ecm->notify->desc)) { in ecm_set_alt() 550 if (config_ep_by_speed(cdev->gadget, f, ecm->notify)) in ecm_set_alt() 553 usb_ep_enable(ecm->notify); in ecm_set_alt() 554 ecm->notify->driver_data = ecm; in ecm_set_alt() 634 if (ecm->notify->driver_data) { in ecm_disable() 635 usb_ep_disable(ecm->notify); in ecm_disable() [all …]
|
D | f_rndis.c | 91 struct usb_ep *notify; member 414 status = usb_ep_queue(rndis->notify, req, GFP_ATOMIC); in rndis_response_available() 443 if (ep != rndis->notify) in rndis_response_complete() 451 status = usb_ep_queue(rndis->notify, req, GFP_ATOMIC); in rndis_response_complete() 573 if (rndis->notify->driver_data) { in rndis_set_alt() 575 usb_ep_disable(rndis->notify); in rndis_set_alt() 577 if (!rndis->notify->desc) { in rndis_set_alt() 579 if (config_ep_by_speed(cdev->gadget, f, rndis->notify)) in rndis_set_alt() 582 usb_ep_enable(rndis->notify); in rndis_set_alt() 583 rndis->notify->driver_data = rndis; in rndis_set_alt() [all …]
|
D | f_ncm.c | 57 struct usb_ep *notify; member 530 status = usb_ep_queue(ncm->notify, req, GFP_ATOMIC); in ncm_do_notify() 806 if (ncm->notify->driver_data) { in ncm_set_alt() 808 usb_ep_disable(ncm->notify); in ncm_set_alt() 811 if (!(ncm->notify->desc)) { in ncm_set_alt() 813 if (config_ep_by_speed(cdev->gadget, f, ncm->notify)) in ncm_set_alt() 816 usb_ep_enable(ncm->notify); in ncm_set_alt() 817 ncm->notify->driver_data = ncm; in ncm_set_alt() 1286 if (ncm->notify->driver_data) { in ncm_disable() 1287 usb_ep_disable(ncm->notify); in ncm_disable() [all …]
|
/drivers/gpu/drm/nouveau/core/engine/software/ |
D | nv50.c | 92 nvkm_notify_get(&chan->vblank.notify[head]); in nv50_software_mthd_vblsem_release() 127 nv50_software_vblsem_release(struct nvkm_notify *notify) in nv50_software_vblsem_release() argument 130 container_of(notify, typeof(*chan), vblank.notify[notify->index]); in nv50_software_vblsem_release() 155 for (i = 0; i < ARRAY_SIZE(chan->vblank.notify); i++) in nv50_software_context_dtor() 156 nvkm_notify_fini(&chan->vblank.notify[i]); in nv50_software_context_dtor() 185 &chan->vblank.notify[i]); in nv50_software_context_ctor()
|
D | nvc0.c | 106 nvc0_software_vblsem_release(struct nvkm_notify *notify) in nvc0_software_vblsem_release() argument 109 container_of(notify, typeof(*chan), vblank.notify[notify->index]); in nvc0_software_vblsem_release()
|
/drivers/xen/ |
D | gntalloc.c | 96 struct notify_info notify; /* Unmap notification */ member 182 if (gref->notify.flags & UNMAP_NOTIFY_CLEAR_BYTE) { in __del_gref() 184 tmp[gref->notify.pgoff] = 0; in __del_gref() 187 if (gref->notify.flags & UNMAP_NOTIFY_SEND_EVENT) { in __del_gref() 188 notify_remote_via_evtchn(gref->notify.event); in __del_gref() 189 evtchn_put(gref->notify.event); in __del_gref() 192 gref->notify.flags = 0; in __del_gref() 423 if (gref->notify.flags & UNMAP_NOTIFY_SEND_EVENT) in gntalloc_ioctl_unmap_notify() 424 evtchn_put(gref->notify.event); in gntalloc_ioctl_unmap_notify() 426 gref->notify.flags = op.action; in gntalloc_ioctl_unmap_notify() [all …]
|
D | gntdev.c | 89 struct unmap_notify notify; member 213 if (map->notify.flags & UNMAP_NOTIFY_SEND_EVENT) { in gntdev_put_map() 214 notify_remote_via_evtchn(map->notify.event); in gntdev_put_map() 215 evtchn_put(map->notify.event); in gntdev_put_map() 308 if (map->notify.flags & UNMAP_NOTIFY_CLEAR_BYTE) { in __unmap_grant_pages() 309 int pgno = (map->notify.addr >> PAGE_SHIFT); in __unmap_grant_pages() 313 tmp[map->notify.addr & (PAGE_SIZE-1)] = 0; in __unmap_grant_pages() 314 map->notify.flags &= ~UNMAP_NOTIFY_CLEAR_BYTE; in __unmap_grant_pages() 693 out_flags = map->notify.flags; in gntdev_ioctl_notify() 694 out_event = map->notify.event; in gntdev_ioctl_notify() [all …]
|
/drivers/gpu/drm/nouveau/core/engine/fifo/ |
D | base.c | 38 struct nvkm_notify *notify) in nouveau_fifo_event_ctor() argument 41 notify->size = 0; in nouveau_fifo_event_ctor() 42 notify->types = 1; in nouveau_fifo_event_ctor() 43 notify->index = 0; in nouveau_fifo_event_ctor() 175 struct nvkm_notify *notify) in nouveau_fifo_uevent_ctor() argument 183 notify->size = sizeof(struct nvif_notify_uevent_rep); in nouveau_fifo_uevent_ctor() 184 notify->types = 1; in nouveau_fifo_uevent_ctor() 185 notify->index = 0; in nouveau_fifo_uevent_ctor()
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_fence.c | 100 nvif_notify_put(&fctx->notify); in nouveau_fence_context_del() 104 nvif_notify_fini(&fctx->notify); in nouveau_fence_context_del() 146 nouveau_fence_wait_uevent_handler(struct nvif_notify *notify) in nouveau_fence_wait_uevent_handler() argument 149 container_of(notify, typeof(*fctx), notify); in nouveau_fence_wait_uevent_handler() 197 &fctx->notify); in nouveau_fence_context_new() 283 nvif_notify_put(&fctx->notify); in nouveau_fence_emit() 307 nvif_notify_put(&fctx->notify); in nouveau_fence_done() 572 nvif_notify_get(&fctx->notify); in nouveau_fence_enable_signaling() 578 nvif_notify_put(&fctx->notify); in nouveau_fence_enable_signaling()
|
/drivers/video/backlight/ |
D | pwm_bl.c | 37 int (*notify)(struct device *, member 105 if (pb->notify) in pwm_backlight_update_status() 106 brightness = pb->notify(pb->dev, brightness); in pwm_backlight_update_status() 239 pb->notify = data->notify; in pwm_backlight_probe() 363 if (pb->notify) in pwm_backlight_suspend() 364 pb->notify(pb->dev, 0); in pwm_backlight_suspend()
|
/drivers/isdn/mISDN/ |
D | stack.c | 215 if (st->notify != NULL) { in mISDNStackd() 216 complete(st->notify); in mISDNStackd() 217 st->notify = NULL; in mISDNStackd() 280 if (st->notify != NULL) { in mISDNStackd() 281 complete(st->notify); in mISDNStackd() 282 st->notify = NULL; in mISDNStackd() 325 if (st->notify != NULL) { in mISDNStackd() 326 complete(st->notify); in mISDNStackd() 327 st->notify = NULL; in mISDNStackd() 409 newst->notify = &done; in create_stack() [all …]
|
/drivers/infiniband/hw/ipath/ |
D | ipath_cq.c | 101 if (cq->notify == IB_CQ_NEXT_COMP || in ipath_cq_enter() 102 (cq->notify == IB_CQ_SOLICITED && solicited)) { in ipath_cq_enter() 103 cq->notify = IB_CQ_NONE; in ipath_cq_enter() 284 cq->notify = IB_CQ_NONE; in ipath_create_cq() 353 if (cq->notify != IB_CQ_NEXT_COMP) in ipath_req_notify_cq() 354 cq->notify = notify_flags & IB_CQ_SOLICITED_MASK; in ipath_req_notify_cq()
|
/drivers/scsi/fnic/ |
D | vnic_dev.c | 42 struct vnic_devcmd_notify *notify; member 531 if (!vdev->notify) { in vnic_dev_notify_set() 532 vdev->notify = pci_alloc_consistent(vdev->pdev, in vnic_dev_notify_set() 535 if (!vdev->notify) in vnic_dev_notify_set() 565 if (!vdev->notify) in vnic_dev_notify_ready() 570 memcpy(&vdev->notify_copy, vdev->notify, in vnic_dev_notify_ready() 655 if (vdev->notify) in vnic_dev_unregister() 658 vdev->notify, in vnic_dev_unregister()
|