search for: vrh_callback_t

Displaying 12 results from an estimated 12 matches for "vrh_callback_t".

Did you mean: vq_callback_t
2013 Feb 27
2
Wrappers for vringh (was Re: [PATCHv2 vringh 1/3] remoteproc: Add support for vringh (Host vrings))
...array of driver callbacks, for each host vring + * include a NULL entry for vqs that do not need a callback + * Returns 0 on success or error status + * @del_vrh: free the host vrings found by find_vrh(). @@ -55,0 +64 @@ typedef void vq_callback_t(struct virtqueue *); +typedef void vrh_callback_t(struct virtio_device *, struct vringh *); @@ -72,0 +82,4 @@ struct virtio_config_ops { + int (*find_vrh) (struct virtio_device *, unsigned nhvrs, + struct vringh *vrhs[], + vrh_callback_t *callbacks[]); + int (*del_vrhs)(struct virtio_device...
2013 Feb 27
2
Wrappers for vringh (was Re: [PATCHv2 vringh 1/3] remoteproc: Add support for vringh (Host vrings))
...array of driver callbacks, for each host vring + * include a NULL entry for vqs that do not need a callback + * Returns 0 on success or error status + * @del_vrh: free the host vrings found by find_vrh(). @@ -55,0 +64 @@ typedef void vq_callback_t(struct virtqueue *); +typedef void vrh_callback_t(struct virtio_device *, struct vringh *); @@ -72,0 +82,4 @@ struct virtio_config_ops { + int (*find_vrh) (struct virtio_device *, unsigned nhvrs, + struct vringh *vrhs[], + vrh_callback_t *callbacks[]); + int (*del_vrhs)(struct virtio_device...
2013 Apr 09
1
[PATCHv2 virtio-next] remoteproc: Add support for host virtio rings (vringh)
...atic void rproc_virtio_finalize_features(struct virtio_device *vdev) rvdev->gfeatures = vdev->features[0]; } +/* Helper function that creates and initializes the host virtio ring */ +static struct vringh *rproc_create_new_vringh(struct rproc_vring *rvring, + unsigned int index, + vrh_callback_t callback) +{ + struct rproc_vringh *rvrh = NULL; + struct rproc_vdev *rvdev = rvring->rvdev; + int err; + + rvrh = kzalloc(sizeof(*rvrh), GFP_KERNEL); + err = -ENOMEM; + if (!rvrh) + goto err; + + /* initialize the host virtio ring */ + rvrh->vringh_cb = callback; + rvrh->vrh.notify = rpr...
2013 Apr 09
1
[PATCHv2 virtio-next] remoteproc: Add support for host virtio rings (vringh)
...atic void rproc_virtio_finalize_features(struct virtio_device *vdev) rvdev->gfeatures = vdev->features[0]; } +/* Helper function that creates and initializes the host virtio ring */ +static struct vringh *rproc_create_new_vringh(struct rproc_vring *rvring, + unsigned int index, + vrh_callback_t callback) +{ + struct rproc_vringh *rvrh = NULL; + struct rproc_vdev *rvdev = rvring->rvdev; + int err; + + rvrh = kzalloc(sizeof(*rvrh), GFP_KERNEL); + err = -ENOMEM; + if (!rvrh) + goto err; + + /* initialize the host virtio ring */ + rvrh->vringh_cb = callback; + rvrh->vrh.notify = rpr...
2013 Mar 05
2
[PATCH vringh] virtio: Introduce vringh wrappers in virtio_config
...vrs: on success, includes new host vrings + * callbacks: array of driver callbacks, for each host vring + * include a NULL entry for vqs that do not need a callback + * Returns 0 on success or error status + * @del_vrhs: free the host vrings found by find_vrhs(). */ +struct vringh; +typedef void vrh_callback_t(struct virtio_device *, struct vringh *); typedef void vq_callback_t(struct virtqueue *); struct virtio_config_ops { void (*get)(struct virtio_device *vdev, unsigned offset, @@ -70,6 +80,9 @@ struct virtio_config_ops { void (*finalize_features)(struct virtio_device *vdev); const char *(*bus...
2013 Mar 05
2
[PATCH vringh] virtio: Introduce vringh wrappers in virtio_config
...vrs: on success, includes new host vrings + * callbacks: array of driver callbacks, for each host vring + * include a NULL entry for vqs that do not need a callback + * Returns 0 on success or error status + * @del_vrhs: free the host vrings found by find_vrhs(). */ +struct vringh; +typedef void vrh_callback_t(struct virtio_device *, struct vringh *); typedef void vq_callback_t(struct virtqueue *); struct virtio_config_ops { void (*get)(struct virtio_device *vdev, unsigned offset, @@ -70,6 +80,9 @@ struct virtio_config_ops { void (*finalize_features)(struct virtio_device *vdev); const char *(*bus...
2013 Mar 08
1
[PATCHv2] virtio: Introduce vringh wrappers in virtio_config
...success, includes new host vrings + * callbacks: array of driver callbacks, for each host vring + * include a NULL entry for vqs that do not need a callback + * Returns 0 on success or error status + * @del_vrhs: free the host vrings found by find_vrhs(). + */ +struct virtio_device; +typedef void vrh_callback_t(struct virtio_device *, struct vringh *); +struct vringh_config_ops { + int (*find_vrhs)(struct virtio_device *vdev, unsigned nhvrs, + struct vringh *vrhs[], vrh_callback_t *callbacks[]); + void (*del_vrhs)(struct virtio_device *vdev); }; /* The memory the vring can access, and what offset t...
2013 Mar 08
1
[PATCHv2] virtio: Introduce vringh wrappers in virtio_config
...success, includes new host vrings + * callbacks: array of driver callbacks, for each host vring + * include a NULL entry for vqs that do not need a callback + * Returns 0 on success or error status + * @del_vrhs: free the host vrings found by find_vrhs(). + */ +struct virtio_device; +typedef void vrh_callback_t(struct virtio_device *, struct vringh *); +struct vringh_config_ops { + int (*find_vrhs)(struct virtio_device *vdev, unsigned nhvrs, + struct vringh *vrhs[], vrh_callback_t *callbacks[]); + void (*del_vrhs)(struct virtio_device *vdev); }; /* The memory the vring can access, and what offset t...
2013 Mar 15
2
[PATCH 0/2] remoteproc : support for host virtio
From: Erwan Yvin <erwan.yvin at stericsson.com> This driver depends on Rusty's new host virtio ring implementation, so this patch-set is based on the vringh branch in Rusty's git. with the vringh wrapper patch on top. They do not apply cleanly on top of the remoteproc virtio config patches from Sjur, but it merges fine. CAIF will use this new host virtio ring implementation. Ido,
2013 Mar 15
2
[PATCH 0/2] remoteproc : support for host virtio
From: Erwan Yvin <erwan.yvin at stericsson.com> This driver depends on Rusty's new host virtio ring implementation, so this patch-set is based on the vringh branch in Rusty's git. with the vringh wrapper patch on top. They do not apply cleanly on top of the remoteproc virtio config patches from Sjur, but it merges fine. CAIF will use this new host virtio ring implementation. Ido,
2013 Mar 15
4
[PATCHv3 vringh] caif_virtio: Introduce caif over virtio
...debugfs, + &cfv->stats.tx_kicks); + debugfs_create_u32("tx-flow-on", S_IRUSR, cfv->debugfs, + &cfv->stats.tx_flow_on); +} + +/* Setup CAIF for the a virtio device */ +static int cfv_probe(struct virtio_device *vdev) +{ + vq_callback_t *vq_cbs = cfv_release_cb; + vrh_callback_t *vrh_cbs = cfv_recv; + const char *names = "output"; + const char *cfv_netdev_name = "cfvrt"; + struct net_device *netdev; + struct cfv_info *cfv; + int err = -EINVAL; + + netdev = alloc_netdev(sizeof(struct cfv_info), cfv_netdev_name, + cfv_netdev_setup); + if (!netdev...
2013 Mar 15
4
[PATCHv3 vringh] caif_virtio: Introduce caif over virtio
...debugfs, + &cfv->stats.tx_kicks); + debugfs_create_u32("tx-flow-on", S_IRUSR, cfv->debugfs, + &cfv->stats.tx_flow_on); +} + +/* Setup CAIF for the a virtio device */ +static int cfv_probe(struct virtio_device *vdev) +{ + vq_callback_t *vq_cbs = cfv_release_cb; + vrh_callback_t *vrh_cbs = cfv_recv; + const char *names = "output"; + const char *cfv_netdev_name = "cfvrt"; + struct net_device *netdev; + struct cfv_info *cfv; + int err = -EINVAL; + + netdev = alloc_netdev(sizeof(struct cfv_info), cfv_netdev_name, + cfv_netdev_setup); + if (!netdev...