Lines Matching defs:front_info

24 	struct xen_snd_front_info *front_info = channel->front_info;
64 dev_err(&front_info->xb_dev->dev,
140 static void evtchnl_free(struct xen_snd_front_info *front_info,
164 xenbus_free_evtchn(front_info->xb_dev, channel->port);
172 void xen_snd_front_evtchnl_free_all(struct xen_snd_front_info *front_info)
176 if (!front_info->evt_pairs)
179 for (i = 0; i < front_info->num_evt_pairs; i++) {
180 evtchnl_free(front_info, &front_info->evt_pairs[i].req);
181 evtchnl_free(front_info, &front_info->evt_pairs[i].evt);
184 kfree(front_info->evt_pairs);
185 front_info->evt_pairs = NULL;
188 static int evtchnl_alloc(struct xen_snd_front_info *front_info, int index,
192 struct xenbus_device *xb_dev = front_info->xb_dev;
201 channel->front_info = front_info;
239 front_info->xb_dev->otherend_id, channel->port, ret);
262 int xen_snd_front_evtchnl_create_all(struct xen_snd_front_info *front_info,
265 struct xen_front_cfg_card *cfg = &front_info->cfg;
266 struct device *dev = &front_info->xb_dev->dev;
269 front_info->evt_pairs =
273 if (!front_info->evt_pairs)
286 ret = evtchnl_alloc(front_info, index,
287 &front_info->evt_pairs[index].req,
294 ret = evtchnl_alloc(front_info, index,
295 &front_info->evt_pairs[index].evt,
306 ret = evtchnl_alloc(front_info, index,
307 &front_info->evt_pairs[index].req,
314 ret = evtchnl_alloc(front_info, index,
315 &front_info->evt_pairs[index].evt,
324 front_info->num_evt_pairs = num_streams;
328 xen_snd_front_evtchnl_free_all(front_info);
337 struct xenbus_device *xb_dev = channel->front_info->xb_dev;
357 int xen_snd_front_evtchnl_publish_all(struct xen_snd_front_info *front_info)
359 struct xen_front_cfg_card *cfg = &front_info->cfg;
366 xenbus_dev_fatal(front_info->xb_dev, ret,
381 &front_info->evt_pairs[index].req,
389 &front_info->evt_pairs[index].evt,
401 &front_info->evt_pairs[index].req,
409 &front_info->evt_pairs[index].evt,
422 xenbus_dev_fatal(front_info->xb_dev, ret,
430 xenbus_dev_fatal(front_info->xb_dev, ret, "writing XenStore");