front_info 44 drivers/gpu/drm/xen/xen_drm_front.c static void dbuf_add_to_list(struct xen_drm_front_info *front_info, front_info 48 drivers/gpu/drm/xen/xen_drm_front.c list_add(&dbuf->list, &front_info->dbuf_list); front_info 127 drivers/gpu/drm/xen/xen_drm_front.c struct xen_drm_front_info *front_info; front_info 132 drivers/gpu/drm/xen/xen_drm_front.c front_info = pipeline->drm_info->front_info; front_info 133 drivers/gpu/drm/xen/xen_drm_front.c evtchnl = &front_info->evt_pairs[pipeline->index].req; front_info 139 drivers/gpu/drm/xen/xen_drm_front.c spin_lock_irqsave(&front_info->io_lock, flags); front_info 149 drivers/gpu/drm/xen/xen_drm_front.c spin_unlock_irqrestore(&front_info->io_lock, flags); front_info 158 drivers/gpu/drm/xen/xen_drm_front.c int xen_drm_front_dbuf_create(struct xen_drm_front_info *front_info, front_info 169 drivers/gpu/drm/xen/xen_drm_front.c evtchnl = &front_info->evt_pairs[GENERIC_OP_EVT_CHNL].req; front_info 177 drivers/gpu/drm/xen/xen_drm_front.c dbuf_add_to_list(front_info, dbuf, dbuf_cookie); front_info 180 drivers/gpu/drm/xen/xen_drm_front.c buf_cfg.xb_dev = front_info->xb_dev; front_info 184 drivers/gpu/drm/xen/xen_drm_front.c buf_cfg.be_alloc = front_info->cfg.be_alloc; front_info 192 drivers/gpu/drm/xen/xen_drm_front.c spin_lock_irqsave(&front_info->io_lock, flags); front_info 205 drivers/gpu/drm/xen/xen_drm_front.c spin_unlock_irqrestore(&front_info->io_lock, flags); front_info 224 drivers/gpu/drm/xen/xen_drm_front.c dbuf_free(&front_info->dbuf_list, dbuf_cookie); front_info 228 drivers/gpu/drm/xen/xen_drm_front.c static int xen_drm_front_dbuf_destroy(struct xen_drm_front_info *front_info, front_info 237 drivers/gpu/drm/xen/xen_drm_front.c evtchnl = &front_info->evt_pairs[GENERIC_OP_EVT_CHNL].req; front_info 241 drivers/gpu/drm/xen/xen_drm_front.c be_alloc = front_info->cfg.be_alloc; front_info 248 drivers/gpu/drm/xen/xen_drm_front.c dbuf_free(&front_info->dbuf_list, dbuf_cookie); front_info 252 drivers/gpu/drm/xen/xen_drm_front.c spin_lock_irqsave(&front_info->io_lock, flags); front_info 257 drivers/gpu/drm/xen/xen_drm_front.c spin_unlock_irqrestore(&front_info->io_lock, flags); front_info 267 drivers/gpu/drm/xen/xen_drm_front.c dbuf_free(&front_info->dbuf_list, dbuf_cookie); front_info 273 drivers/gpu/drm/xen/xen_drm_front.c int xen_drm_front_fb_attach(struct xen_drm_front_info *front_info, front_info 283 drivers/gpu/drm/xen/xen_drm_front.c evtchnl = &front_info->evt_pairs[GENERIC_OP_EVT_CHNL].req; front_info 287 drivers/gpu/drm/xen/xen_drm_front.c buf = dbuf_get(&front_info->dbuf_list, dbuf_cookie); front_info 295 drivers/gpu/drm/xen/xen_drm_front.c spin_lock_irqsave(&front_info->io_lock, flags); front_info 304 drivers/gpu/drm/xen/xen_drm_front.c spin_unlock_irqrestore(&front_info->io_lock, flags); front_info 313 drivers/gpu/drm/xen/xen_drm_front.c int xen_drm_front_fb_detach(struct xen_drm_front_info *front_info, front_info 321 drivers/gpu/drm/xen/xen_drm_front.c evtchnl = &front_info->evt_pairs[GENERIC_OP_EVT_CHNL].req; front_info 327 drivers/gpu/drm/xen/xen_drm_front.c spin_lock_irqsave(&front_info->io_lock, flags); front_info 332 drivers/gpu/drm/xen/xen_drm_front.c spin_unlock_irqrestore(&front_info->io_lock, flags); front_info 341 drivers/gpu/drm/xen/xen_drm_front.c int xen_drm_front_page_flip(struct xen_drm_front_info *front_info, front_info 349 drivers/gpu/drm/xen/xen_drm_front.c if (unlikely(conn_idx >= front_info->num_evt_pairs)) front_info 352 drivers/gpu/drm/xen/xen_drm_front.c evtchnl = &front_info->evt_pairs[conn_idx].req; front_info 356 drivers/gpu/drm/xen/xen_drm_front.c spin_lock_irqsave(&front_info->io_lock, flags); front_info 361 drivers/gpu/drm/xen/xen_drm_front.c spin_unlock_irqrestore(&front_info->io_lock, flags); front_info 370 drivers/gpu/drm/xen/xen_drm_front.c void xen_drm_front_on_frame_done(struct xen_drm_front_info *front_info, front_info 373 drivers/gpu/drm/xen/xen_drm_front.c struct xen_drm_front_drm_info *drm_info = front_info->drm_info; front_info 375 drivers/gpu/drm/xen/xen_drm_front.c if (unlikely(conn_idx >= front_info->cfg.num_connectors)) front_info 408 drivers/gpu/drm/xen/xen_drm_front.c ret = xen_drm_front_dbuf_create(drm_info->front_info, front_info 426 drivers/gpu/drm/xen/xen_drm_front.c xen_drm_front_dbuf_destroy(drm_info->front_info, front_info 442 drivers/gpu/drm/xen/xen_drm_front.c xen_drm_front_dbuf_destroy(drm_info->front_info, front_info 446 drivers/gpu/drm/xen/xen_drm_front.c dbuf_free(&drm_info->front_info->dbuf_list, front_info 456 drivers/gpu/drm/xen/xen_drm_front.c struct xen_drm_front_info *front_info = drm_info->front_info; front_info 466 drivers/gpu/drm/xen/xen_drm_front.c if (front_info->cfg.be_alloc) front_info 467 drivers/gpu/drm/xen/xen_drm_front.c xenbus_switch_state(front_info->xb_dev, front_info 514 drivers/gpu/drm/xen/xen_drm_front.c static int xen_drm_drv_init(struct xen_drm_front_info *front_info) front_info 516 drivers/gpu/drm/xen/xen_drm_front.c struct device *dev = &front_info->xb_dev->dev; front_info 529 drivers/gpu/drm/xen/xen_drm_front.c drm_info->front_info = front_info; front_info 530 drivers/gpu/drm/xen/xen_drm_front.c front_info->drm_info = drm_info; front_info 569 drivers/gpu/drm/xen/xen_drm_front.c static void xen_drm_drv_fini(struct xen_drm_front_info *front_info) front_info 571 drivers/gpu/drm/xen/xen_drm_front.c struct xen_drm_front_drm_info *drm_info = front_info->drm_info; front_info 589 drivers/gpu/drm/xen/xen_drm_front.c front_info->drm_info = NULL; front_info 591 drivers/gpu/drm/xen/xen_drm_front.c xen_drm_front_evtchnl_free_all(front_info); front_info 592 drivers/gpu/drm/xen/xen_drm_front.c dbuf_free_all(&front_info->dbuf_list); front_info 599 drivers/gpu/drm/xen/xen_drm_front.c if (!front_info->cfg.be_alloc) front_info 600 drivers/gpu/drm/xen/xen_drm_front.c xenbus_switch_state(front_info->xb_dev, front_info 604 drivers/gpu/drm/xen/xen_drm_front.c static int displback_initwait(struct xen_drm_front_info *front_info) front_info 606 drivers/gpu/drm/xen/xen_drm_front.c struct xen_drm_front_cfg *cfg = &front_info->cfg; front_info 609 drivers/gpu/drm/xen/xen_drm_front.c cfg->front_info = front_info; front_info 610 drivers/gpu/drm/xen/xen_drm_front.c ret = xen_drm_front_cfg_card(front_info, cfg); front_info 616 drivers/gpu/drm/xen/xen_drm_front.c ret = xen_drm_front_evtchnl_create_all(front_info); front_info 620 drivers/gpu/drm/xen/xen_drm_front.c return xen_drm_front_evtchnl_publish_all(front_info); front_info 623 drivers/gpu/drm/xen/xen_drm_front.c static int displback_connect(struct xen_drm_front_info *front_info) front_info 625 drivers/gpu/drm/xen/xen_drm_front.c xen_drm_front_evtchnl_set_state(front_info, EVTCHNL_STATE_CONNECTED); front_info 626 drivers/gpu/drm/xen/xen_drm_front.c return xen_drm_drv_init(front_info); front_info 629 drivers/gpu/drm/xen/xen_drm_front.c static void displback_disconnect(struct xen_drm_front_info *front_info) front_info 631 drivers/gpu/drm/xen/xen_drm_front.c if (!front_info->drm_info) front_info 635 drivers/gpu/drm/xen/xen_drm_front.c xenbus_switch_state(front_info->xb_dev, XenbusStateReconfiguring); front_info 637 drivers/gpu/drm/xen/xen_drm_front.c xen_drm_drv_fini(front_info); front_info 643 drivers/gpu/drm/xen/xen_drm_front.c struct xen_drm_front_info *front_info = dev_get_drvdata(&xb_dev->dev); front_info 663 drivers/gpu/drm/xen/xen_drm_front.c displback_disconnect(front_info); front_info 671 drivers/gpu/drm/xen/xen_drm_front.c displback_disconnect(front_info); front_info 675 drivers/gpu/drm/xen/xen_drm_front.c ret = displback_initwait(front_info); front_info 686 drivers/gpu/drm/xen/xen_drm_front.c ret = displback_connect(front_info); front_info 688 drivers/gpu/drm/xen/xen_drm_front.c displback_disconnect(front_info); front_info 709 drivers/gpu/drm/xen/xen_drm_front.c displback_disconnect(front_info); front_info 717 drivers/gpu/drm/xen/xen_drm_front.c struct xen_drm_front_info *front_info; front_info 727 drivers/gpu/drm/xen/xen_drm_front.c front_info = devm_kzalloc(&xb_dev->dev, front_info 728 drivers/gpu/drm/xen/xen_drm_front.c sizeof(*front_info), GFP_KERNEL); front_info 729 drivers/gpu/drm/xen/xen_drm_front.c if (!front_info) front_info 732 drivers/gpu/drm/xen/xen_drm_front.c front_info->xb_dev = xb_dev; front_info 733 drivers/gpu/drm/xen/xen_drm_front.c spin_lock_init(&front_info->io_lock); front_info 734 drivers/gpu/drm/xen/xen_drm_front.c INIT_LIST_HEAD(&front_info->dbuf_list); front_info 735 drivers/gpu/drm/xen/xen_drm_front.c dev_set_drvdata(&xb_dev->dev, front_info); front_info 742 drivers/gpu/drm/xen/xen_drm_front.c struct xen_drm_front_info *front_info = dev_get_drvdata(&dev->dev); front_info 758 drivers/gpu/drm/xen/xen_drm_front.c while ((xenbus_read_unsigned(front_info->xb_dev->otherend, "state", front_info 766 drivers/gpu/drm/xen/xen_drm_front.c state = xenbus_read_unsigned(front_info->xb_dev->otherend, front_info 772 drivers/gpu/drm/xen/xen_drm_front.c xen_drm_drv_fini(front_info); front_info 126 drivers/gpu/drm/xen/xen_drm_front.h struct xen_drm_front_info *front_info; front_info 146 drivers/gpu/drm/xen/xen_drm_front.h int xen_drm_front_dbuf_create(struct xen_drm_front_info *front_info, front_info 150 drivers/gpu/drm/xen/xen_drm_front.h int xen_drm_front_fb_attach(struct xen_drm_front_info *front_info, front_info 154 drivers/gpu/drm/xen/xen_drm_front.h int xen_drm_front_fb_detach(struct xen_drm_front_info *front_info, front_info 157 drivers/gpu/drm/xen/xen_drm_front.h int xen_drm_front_page_flip(struct xen_drm_front_info *front_info, front_info 160 drivers/gpu/drm/xen/xen_drm_front.h void xen_drm_front_on_frame_done(struct xen_drm_front_info *front_info, front_info 21 drivers/gpu/drm/xen/xen_drm_front_cfg.c static int cfg_connector(struct xen_drm_front_info *front_info, front_info 27 drivers/gpu/drm/xen/xen_drm_front_cfg.c connector_path = devm_kasprintf(&front_info->xb_dev->dev, front_info 48 drivers/gpu/drm/xen/xen_drm_front_cfg.c int xen_drm_front_cfg_card(struct xen_drm_front_info *front_info, front_info 51 drivers/gpu/drm/xen/xen_drm_front_cfg.c struct xenbus_device *xb_dev = front_info->xb_dev; front_info 54 drivers/gpu/drm/xen/xen_drm_front_cfg.c if (xenbus_read_unsigned(front_info->xb_dev->nodename, front_info 62 drivers/gpu/drm/xen/xen_drm_front_cfg.c ret = cfg_connector(front_info, &cfg->connectors[i], front_info 25 drivers/gpu/drm/xen/xen_drm_front_cfg.h struct xen_drm_front_info *front_info; front_info 34 drivers/gpu/drm/xen/xen_drm_front_cfg.h int xen_drm_front_cfg_card(struct xen_drm_front_info *front_info, front_info 26 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c struct xen_drm_front_info *front_info = evtchnl->front_info; front_info 34 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c spin_lock_irqsave(&front_info->io_lock, flags); front_info 77 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c spin_unlock_irqrestore(&front_info->io_lock, flags); front_info 84 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c struct xen_drm_front_info *front_info = evtchnl->front_info; front_info 92 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c spin_lock_irqsave(&front_info->io_lock, flags); front_info 109 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c xen_drm_front_on_frame_done(front_info, evtchnl->index, front_info 119 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c spin_unlock_irqrestore(&front_info->io_lock, flags); front_info 123 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c static void evtchnl_free(struct xen_drm_front_info *front_info, front_info 147 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c xenbus_free_evtchn(front_info->xb_dev, evtchnl->port); front_info 156 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c static int evtchnl_alloc(struct xen_drm_front_info *front_info, int index, front_info 160 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c struct xenbus_device *xb_dev = front_info->xb_dev; front_info 169 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c evtchnl->front_info = front_info; front_info 228 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c int xen_drm_front_evtchnl_create_all(struct xen_drm_front_info *front_info) front_info 233 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c cfg = &front_info->cfg; front_info 235 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c front_info->evt_pairs = front_info 239 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c if (!front_info->evt_pairs) { front_info 245 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c ret = evtchnl_alloc(front_info, conn, front_info 246 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c &front_info->evt_pairs[conn].req, front_info 253 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c ret = evtchnl_alloc(front_info, conn, front_info 254 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c &front_info->evt_pairs[conn].evt, front_info 261 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c front_info->num_evt_pairs = cfg->num_connectors; front_info 265 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c xen_drm_front_evtchnl_free_all(front_info); front_info 274 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c struct xenbus_device *xb_dev = evtchnl->front_info->xb_dev; front_info 294 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c int xen_drm_front_evtchnl_publish_all(struct xen_drm_front_info *front_info) front_info 300 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c plat_data = &front_info->cfg; front_info 305 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c xenbus_dev_fatal(front_info->xb_dev, ret, front_info 311 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c ret = evtchnl_publish(xbt, &front_info->evt_pairs[conn].req, front_info 318 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c ret = evtchnl_publish(xbt, &front_info->evt_pairs[conn].evt, front_info 331 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c xenbus_dev_fatal(front_info->xb_dev, ret, front_info 342 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c xenbus_dev_fatal(front_info->xb_dev, ret, "writing Xen store"); front_info 356 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c void xen_drm_front_evtchnl_set_state(struct xen_drm_front_info *front_info, front_info 362 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c if (!front_info->evt_pairs) front_info 365 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c spin_lock_irqsave(&front_info->io_lock, flags); front_info 366 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c for (i = 0; i < front_info->num_evt_pairs; i++) { front_info 367 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c front_info->evt_pairs[i].req.state = state; front_info 368 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c front_info->evt_pairs[i].evt.state = state; front_info 370 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c spin_unlock_irqrestore(&front_info->io_lock, flags); front_info 373 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c void xen_drm_front_evtchnl_free_all(struct xen_drm_front_info *front_info) front_info 377 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c if (!front_info->evt_pairs) front_info 380 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c for (i = 0; i < front_info->num_evt_pairs; i++) { front_info 381 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c evtchnl_free(front_info, &front_info->evt_pairs[i].req); front_info 382 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c evtchnl_free(front_info, &front_info->evt_pairs[i].evt); front_info 385 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c kfree(front_info->evt_pairs); front_info 386 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c front_info->evt_pairs = NULL; front_info 39 drivers/gpu/drm/xen/xen_drm_front_evtchnl.h struct xen_drm_front_info *front_info; front_info 70 drivers/gpu/drm/xen/xen_drm_front_evtchnl.h int xen_drm_front_evtchnl_create_all(struct xen_drm_front_info *front_info); front_info 72 drivers/gpu/drm/xen/xen_drm_front_evtchnl.h int xen_drm_front_evtchnl_publish_all(struct xen_drm_front_info *front_info); front_info 76 drivers/gpu/drm/xen/xen_drm_front_evtchnl.h void xen_drm_front_evtchnl_set_state(struct xen_drm_front_info *front_info, front_info 79 drivers/gpu/drm/xen/xen_drm_front_evtchnl.h void xen_drm_front_evtchnl_free_all(struct xen_drm_front_info *front_info); front_info 89 drivers/gpu/drm/xen/xen_drm_front_gem.c if (drm_info->front_info->cfg.be_alloc) { front_info 211 drivers/gpu/drm/xen/xen_drm_front_gem.c ret = xen_drm_front_dbuf_create(drm_info->front_info, front_info 42 drivers/gpu/drm/xen/xen_drm_front_kms.c xen_drm_front_fb_detach(drm_info->front_info, front_info 75 drivers/gpu/drm/xen/xen_drm_front_kms.c ret = xen_drm_front_fb_attach(drm_info->front_info, front_info 207 drivers/gpu/drm/xen/xen_drm_front_kms.c ret = xen_drm_front_page_flip(drm_info->front_info, front_info 337 drivers/gpu/drm/xen/xen_drm_front_kms.c for (i = 0; i < drm_info->front_info->cfg.num_connectors; i++) { front_info 339 drivers/gpu/drm/xen/xen_drm_front_kms.c &drm_info->front_info->cfg.connectors[i]; front_info 359 drivers/gpu/drm/xen/xen_drm_front_kms.c for (i = 0; i < drm_info->front_info->cfg.num_connectors; i++) { front_info 203 sound/xen/xen_snd_front.c static void xen_snd_drv_fini(struct xen_snd_front_info *front_info) front_info 205 sound/xen/xen_snd_front.c xen_snd_front_alsa_fini(front_info); front_info 206 sound/xen/xen_snd_front.c xen_snd_front_evtchnl_free_all(front_info); front_info 209 sound/xen/xen_snd_front.c static int sndback_initwait(struct xen_snd_front_info *front_info) front_info 214 sound/xen/xen_snd_front.c ret = xen_snd_front_cfg_card(front_info, &num_streams); front_info 219 sound/xen/xen_snd_front.c ret = xen_snd_front_evtchnl_create_all(front_info, num_streams); front_info 223 sound/xen/xen_snd_front.c return xen_snd_front_evtchnl_publish_all(front_info); front_info 226 sound/xen/xen_snd_front.c static int sndback_connect(struct xen_snd_front_info *front_info) front_info 228 sound/xen/xen_snd_front.c return xen_snd_front_alsa_init(front_info); front_info 231 sound/xen/xen_snd_front.c static void sndback_disconnect(struct xen_snd_front_info *front_info) front_info 233 sound/xen/xen_snd_front.c xen_snd_drv_fini(front_info); front_info 234 sound/xen/xen_snd_front.c xenbus_switch_state(front_info->xb_dev, XenbusStateInitialising); front_info 240 sound/xen/xen_snd_front.c struct xen_snd_front_info *front_info = dev_get_drvdata(&xb_dev->dev); front_info 258 sound/xen/xen_snd_front.c sndback_disconnect(front_info); front_info 263 sound/xen/xen_snd_front.c sndback_disconnect(front_info); front_info 265 sound/xen/xen_snd_front.c ret = sndback_initwait(front_info); front_info 276 sound/xen/xen_snd_front.c ret = sndback_connect(front_info); front_info 297 sound/xen/xen_snd_front.c sndback_disconnect(front_info); front_info 305 sound/xen/xen_snd_front.c struct xen_snd_front_info *front_info; front_info 307 sound/xen/xen_snd_front.c front_info = devm_kzalloc(&xb_dev->dev, front_info 308 sound/xen/xen_snd_front.c sizeof(*front_info), GFP_KERNEL); front_info 309 sound/xen/xen_snd_front.c if (!front_info) front_info 312 sound/xen/xen_snd_front.c front_info->xb_dev = xb_dev; front_info 313 sound/xen/xen_snd_front.c dev_set_drvdata(&xb_dev->dev, front_info); front_info 320 sound/xen/xen_snd_front.c struct xen_snd_front_info *front_info = dev_get_drvdata(&dev->dev); front_info 336 sound/xen/xen_snd_front.c while ((xenbus_read_unsigned(front_info->xb_dev->otherend, "state", front_info 344 sound/xen/xen_snd_front.c state = xenbus_read_unsigned(front_info->xb_dev->otherend, front_info 350 sound/xen/xen_snd_front.c xen_snd_drv_fini(front_info); front_info 26 sound/xen/xen_snd_front_alsa.c struct xen_snd_front_info *front_info; front_info 60 sound/xen/xen_snd_front_alsa.c struct xen_snd_front_info *front_info; front_info 260 sound/xen/xen_snd_front_alsa.c struct device *dev = &stream->front_info->xb_dev->dev; front_info 359 sound/xen/xen_snd_front_alsa.c struct xen_snd_front_info *front_info = front_info 360 sound/xen/xen_snd_front_alsa.c pcm_instance->card_info->front_info; front_info 361 sound/xen/xen_snd_front_alsa.c struct device *dev = &front_info->xb_dev->dev; front_info 378 sound/xen/xen_snd_front_alsa.c stream->evt_pair = &front_info->evt_pairs[stream->index]; front_info 380 sound/xen/xen_snd_front_alsa.c stream->front_info = front_info; front_info 465 sound/xen/xen_snd_front_alsa.c struct xen_snd_front_info *front_info = stream->front_info; front_info 479 sound/xen/xen_snd_front_alsa.c buf_cfg.xb_dev = front_info->xb_dev; front_info 496 sound/xen/xen_snd_front_alsa.c dev_err(&front_info->xb_dev->dev, front_info 523 sound/xen/xen_snd_front_alsa.c dev_err(&stream->front_info->xb_dev->dev, front_info 726 sound/xen/xen_snd_front_alsa.c dev_dbg(&card_info->front_info->xb_dev->dev, front_info 802 sound/xen/xen_snd_front_alsa.c int xen_snd_front_alsa_init(struct xen_snd_front_info *front_info) front_info 804 sound/xen/xen_snd_front_alsa.c struct device *dev = &front_info->xb_dev->dev; front_info 805 sound/xen/xen_snd_front_alsa.c struct xen_front_cfg_card *cfg = &front_info->cfg; front_info 818 sound/xen/xen_snd_front_alsa.c card_info->front_info = front_info; front_info 819 sound/xen/xen_snd_front_alsa.c front_info->card_info = card_info; front_info 855 sound/xen/xen_snd_front_alsa.c void xen_snd_front_alsa_fini(struct xen_snd_front_info *front_info) front_info 860 sound/xen/xen_snd_front_alsa.c card_info = front_info->card_info; front_info 868 sound/xen/xen_snd_front_alsa.c dev_dbg(&front_info->xb_dev->dev, "Removing virtual sound card %d\n", front_info 16 sound/xen/xen_snd_front_alsa.h int xen_snd_front_alsa_init(struct xen_snd_front_info *front_info); front_info 18 sound/xen/xen_snd_front_alsa.h void xen_snd_front_alsa_fini(struct xen_snd_front_info *front_info); front_info 331 sound/xen/xen_snd_front_cfg.c static int cfg_stream(struct xen_snd_front_info *front_info, front_info 341 sound/xen/xen_snd_front_cfg.c stream_path = devm_kasprintf(&front_info->xb_dev->dev, front_info 383 sound/xen/xen_snd_front_cfg.c static int cfg_device(struct xen_snd_front_info *front_info, front_info 438 sound/xen/xen_snd_front_cfg.c devm_kcalloc(&front_info->xb_dev->dev, front_info 450 sound/xen/xen_snd_front_cfg.c devm_kcalloc(&front_info->xb_dev->dev, front_info 463 sound/xen/xen_snd_front_cfg.c ret = cfg_stream(front_info, pcm_instance, device_path, i, front_info 475 sound/xen/xen_snd_front_cfg.c int xen_snd_front_cfg_card(struct xen_snd_front_info *front_info, front_info 478 sound/xen/xen_snd_front_cfg.c struct xenbus_device *xb_dev = front_info->xb_dev; front_info 479 sound/xen/xen_snd_front_cfg.c struct xen_front_cfg_card *cfg = &front_info->cfg; front_info 504 sound/xen/xen_snd_front_cfg.c devm_kcalloc(&front_info->xb_dev->dev, num_devices, front_info 511 sound/xen/xen_snd_front_cfg.c ret = cfg_device(front_info, &cfg->pcm_instances[i], front_info 43 sound/xen/xen_snd_front_cfg.h int xen_snd_front_cfg_card(struct xen_snd_front_info *front_info, front_info 24 sound/xen/xen_snd_front_evtchnl.c struct xen_snd_front_info *front_info = channel->front_info; front_info 68 sound/xen/xen_snd_front_evtchnl.c dev_err(&front_info->xb_dev->dev, front_info 147 sound/xen/xen_snd_front_evtchnl.c static void evtchnl_free(struct xen_snd_front_info *front_info, front_info 171 sound/xen/xen_snd_front_evtchnl.c xenbus_free_evtchn(front_info->xb_dev, channel->port); front_info 182 sound/xen/xen_snd_front_evtchnl.c void xen_snd_front_evtchnl_free_all(struct xen_snd_front_info *front_info) front_info 186 sound/xen/xen_snd_front_evtchnl.c if (!front_info->evt_pairs) front_info 189 sound/xen/xen_snd_front_evtchnl.c for (i = 0; i < front_info->num_evt_pairs; i++) { front_info 190 sound/xen/xen_snd_front_evtchnl.c evtchnl_free(front_info, &front_info->evt_pairs[i].req); front_info 191 sound/xen/xen_snd_front_evtchnl.c evtchnl_free(front_info, &front_info->evt_pairs[i].evt); front_info 194 sound/xen/xen_snd_front_evtchnl.c kfree(front_info->evt_pairs); front_info 195 sound/xen/xen_snd_front_evtchnl.c front_info->evt_pairs = NULL; front_info 198 sound/xen/xen_snd_front_evtchnl.c static int evtchnl_alloc(struct xen_snd_front_info *front_info, int index, front_info 202 sound/xen/xen_snd_front_evtchnl.c struct xenbus_device *xb_dev = front_info->xb_dev; front_info 212 sound/xen/xen_snd_front_evtchnl.c channel->front_info = front_info; front_info 268 sound/xen/xen_snd_front_evtchnl.c front_info->xb_dev->otherend_id, channel->port, ret); front_info 293 sound/xen/xen_snd_front_evtchnl.c int xen_snd_front_evtchnl_create_all(struct xen_snd_front_info *front_info, front_info 296 sound/xen/xen_snd_front_evtchnl.c struct xen_front_cfg_card *cfg = &front_info->cfg; front_info 297 sound/xen/xen_snd_front_evtchnl.c struct device *dev = &front_info->xb_dev->dev; front_info 300 sound/xen/xen_snd_front_evtchnl.c front_info->evt_pairs = front_info 304 sound/xen/xen_snd_front_evtchnl.c if (!front_info->evt_pairs) front_info 317 sound/xen/xen_snd_front_evtchnl.c ret = evtchnl_alloc(front_info, index, front_info 318 sound/xen/xen_snd_front_evtchnl.c &front_info->evt_pairs[index].req, front_info 325 sound/xen/xen_snd_front_evtchnl.c ret = evtchnl_alloc(front_info, index, front_info 326 sound/xen/xen_snd_front_evtchnl.c &front_info->evt_pairs[index].evt, front_info 337 sound/xen/xen_snd_front_evtchnl.c ret = evtchnl_alloc(front_info, index, front_info 338 sound/xen/xen_snd_front_evtchnl.c &front_info->evt_pairs[index].req, front_info 345 sound/xen/xen_snd_front_evtchnl.c ret = evtchnl_alloc(front_info, index, front_info 346 sound/xen/xen_snd_front_evtchnl.c &front_info->evt_pairs[index].evt, front_info 355 sound/xen/xen_snd_front_evtchnl.c front_info->num_evt_pairs = num_streams; front_info 359 sound/xen/xen_snd_front_evtchnl.c xen_snd_front_evtchnl_free_all(front_info); front_info 368 sound/xen/xen_snd_front_evtchnl.c struct xenbus_device *xb_dev = channel->front_info->xb_dev; front_info 388 sound/xen/xen_snd_front_evtchnl.c int xen_snd_front_evtchnl_publish_all(struct xen_snd_front_info *front_info) front_info 390 sound/xen/xen_snd_front_evtchnl.c struct xen_front_cfg_card *cfg = &front_info->cfg; front_info 397 sound/xen/xen_snd_front_evtchnl.c xenbus_dev_fatal(front_info->xb_dev, ret, front_info 412 sound/xen/xen_snd_front_evtchnl.c &front_info->evt_pairs[index].req, front_info 420 sound/xen/xen_snd_front_evtchnl.c &front_info->evt_pairs[index].evt, front_info 432 sound/xen/xen_snd_front_evtchnl.c &front_info->evt_pairs[index].req, front_info 440 sound/xen/xen_snd_front_evtchnl.c &front_info->evt_pairs[index].evt, front_info 453 sound/xen/xen_snd_front_evtchnl.c xenbus_dev_fatal(front_info->xb_dev, ret, front_info 461 sound/xen/xen_snd_front_evtchnl.c xenbus_dev_fatal(front_info->xb_dev, ret, "writing XenStore"); front_info 41 sound/xen/xen_snd_front_evtchnl.h struct xen_snd_front_info *front_info; front_info 81 sound/xen/xen_snd_front_evtchnl.h int xen_snd_front_evtchnl_create_all(struct xen_snd_front_info *front_info, front_info 84 sound/xen/xen_snd_front_evtchnl.h void xen_snd_front_evtchnl_free_all(struct xen_snd_front_info *front_info); front_info 86 sound/xen/xen_snd_front_evtchnl.h int xen_snd_front_evtchnl_publish_all(struct xen_snd_front_info *front_info);