search for: virtio_cread64_le

Displaying 13 results from an estimated 13 matches for "virtio_cread64_le".

Did you mean: virtio_cread32_le
2016 Nov 27
2
[PATCH v2 1/2] virtio: introduce little edian functions for virtio_cread/write# family
...set, &ret, sizeof(ret)); > + return ret; > +} > + > +static inline void virtio_cwrite32_le(struct virtio_device *vdev, > + unsigned int offset, __le32 val) > +{ > + vdev->config->set(vdev, offset, &val, sizeof(val)); > +} > + > +static inline __le64 virtio_cread64_le(struct virtio_device *vdev, > + unsigned int offset) > +{ > + __le64 ret; > + > + __virtio_cread_many(vdev, offset, &ret, 1, sizeof(ret)); > + return ret; > +} > + > +static inline void virtio_cwrite64_le(struct virtio_device *vdev, > + unsigned int offse...
2016 Nov 27
2
[PATCH v2 1/2] virtio: introduce little edian functions for virtio_cread/write# family
...set, &ret, sizeof(ret)); > + return ret; > +} > + > +static inline void virtio_cwrite32_le(struct virtio_device *vdev, > + unsigned int offset, __le32 val) > +{ > + vdev->config->set(vdev, offset, &val, sizeof(val)); > +} > + > +static inline __le64 virtio_cread64_le(struct virtio_device *vdev, > + unsigned int offset) > +{ > + __le64 ret; > + > + __virtio_cread_many(vdev, offset, &ret, 1, sizeof(ret)); > + return ret; > +} > + > +static inline void virtio_cwrite64_le(struct virtio_device *vdev, > + unsigned int offse...
2016 Nov 28
3
[virtio-dev] Re: [PATCH v2 1/2] virtio: introduce little edian functions for virtio_cread/write# family
...t; > +static inline void virtio_cwrite32_le(struct virtio_device *vdev, > > > + unsigned int offset, __le32 val) > > > +{ > > > + vdev->config->set(vdev, offset, &val, sizeof(val)); > > > +} > > > + > > > +static inline __le64 virtio_cread64_le(struct virtio_device *vdev, > > > + unsigned int offset) > > > +{ > > > + __le64 ret; > > > + > > > + __virtio_cread_many(vdev, offset, &ret, 1, sizeof(ret)); > > > + return ret; > > > +} > > > + > > > +static...
2016 Nov 28
3
[virtio-dev] Re: [PATCH v2 1/2] virtio: introduce little edian functions for virtio_cread/write# family
...t; > +static inline void virtio_cwrite32_le(struct virtio_device *vdev, > > > + unsigned int offset, __le32 val) > > > +{ > > > + vdev->config->set(vdev, offset, &val, sizeof(val)); > > > +} > > > + > > > +static inline __le64 virtio_cread64_le(struct virtio_device *vdev, > > > + unsigned int offset) > > > +{ > > > + __le64 ret; > > > + > > > + __virtio_cread_many(vdev, offset, &ret, 1, sizeof(ret)); > > > + return ret; > > > +} > > > + > > > +static...
2016 Nov 22
0
[PATCH v2 1/2] virtio: introduce little edian functions for virtio_cread/write# family
...__le32 ret; + + vdev->config->get(vdev, offset, &ret, sizeof(ret)); + return ret; +} + +static inline void virtio_cwrite32_le(struct virtio_device *vdev, + unsigned int offset, __le32 val) +{ + vdev->config->set(vdev, offset, &val, sizeof(val)); +} + +static inline __le64 virtio_cread64_le(struct virtio_device *vdev, + unsigned int offset) +{ + __le64 ret; + + __virtio_cread_many(vdev, offset, &ret, 1, sizeof(ret)); + return ret; +} + +static inline void virtio_cwrite64_le(struct virtio_device *vdev, + unsigned int offset, __le64 val) +{ + vdev->config->set(vdev,...
2016 Nov 28
0
[virtio-dev] Re: [PATCH v2 1/2] virtio: introduce little edian functions for virtio_cread/write# family
...t; > > +} > > + > > +static inline void virtio_cwrite32_le(struct virtio_device *vdev, > > + unsigned int offset, __le32 val) > > +{ > > + vdev->config->set(vdev, offset, &val, sizeof(val)); > > +} > > + > > +static inline __le64 virtio_cread64_le(struct virtio_device *vdev, > > + unsigned int offset) > > +{ > > + __le64 ret; > > + > > + __virtio_cread_many(vdev, offset, &ret, 1, sizeof(ret)); > > + return ret; > > +} > > + > > +static inline void virtio_cwrite64_le(struct virtio_...
2016 Nov 28
0
[virtio-dev] Re: [PATCH v2 1/2] virtio: introduce little edian functions for virtio_cread/write# family
...rtio_cwrite32_le(struct virtio_device *vdev, > > > > + unsigned int offset, __le32 val) > > > > +{ > > > > + vdev->config->set(vdev, offset, &val, sizeof(val)); > > > > +} > > > > + > > > > +static inline __le64 virtio_cread64_le(struct virtio_device *vdev, > > > > + unsigned int offset) > > > > +{ > > > > + __le64 ret; > > > > + > > > > + __virtio_cread_many(vdev, offset, &ret, 1, sizeof(ret)); > > > > + return ret; > > > > +} >...
2016 Nov 22
5
[PATCH v2 0/2] virtio-crypto: add Linux driver
The virtio crypto device is a virtual cryptography device as well as a kind of virtual hardware accelerator for virtual machines. The encryption anddecryption requests are placed in the data queue and are ultimately handled by thebackend crypto accelerators. The second queue is the control queue used to create or destroy sessions for symmetric algorithms and will control some advanced features in
2016 Nov 22
5
[PATCH v2 0/2] virtio-crypto: add Linux driver
The virtio crypto device is a virtual cryptography device as well as a kind of virtual hardware accelerator for virtual machines. The encryption anddecryption requests are placed in the data queue and are ultimately handled by thebackend crypto accelerators. The second queue is the control queue used to create or destroy sessions for symmetric algorithms and will control some advanced features in
2016 Nov 27
2
[PATCH v2 2/2] crypto: add virtio-crypto driver
...vcrypto->max_data_queues); > + > + max_cipher_key_len_le = virtio_cread32_le(vdev, > + offsetof(struct virtio_crypto_config, max_cipher_key_len)); > + max_auth_key_len_le = virtio_cread32_le(vdev, > + offsetof(struct virtio_crypto_config, max_auth_key_len)); > + max_size_le = virtio_cread64_le(vdev, > + offsetof(struct virtio_crypto_config, max_size)); > + > + /* Add virtio crypto device to global table */ > + err = virtcrypto_devmgr_add_dev(vcrypto); > + if (err) { > + dev_err(&vdev->dev, "Failed to add new virtio crypto device.\n"); > + goto fre...
2016 Nov 27
2
[PATCH v2 2/2] crypto: add virtio-crypto driver
...vcrypto->max_data_queues); > + > + max_cipher_key_len_le = virtio_cread32_le(vdev, > + offsetof(struct virtio_crypto_config, max_cipher_key_len)); > + max_auth_key_len_le = virtio_cread32_le(vdev, > + offsetof(struct virtio_crypto_config, max_auth_key_len)); > + max_size_le = virtio_cread64_le(vdev, > + offsetof(struct virtio_crypto_config, max_size)); > + > + /* Add virtio crypto device to global table */ > + err = virtcrypto_devmgr_add_dev(vcrypto); > + if (err) { > + dev_err(&vdev->dev, "Failed to add new virtio crypto device.\n"); > + goto fre...
2016 Nov 28
0
[virtio-dev] Re: [PATCH v2 2/2] crypto: add virtio-crypto driver
...> > + > > + max_cipher_key_len_le = virtio_cread32_le(vdev, > > + offsetof(struct virtio_crypto_config, max_cipher_key_len)); > > + max_auth_key_len_le = virtio_cread32_le(vdev, > > + offsetof(struct virtio_crypto_config, max_auth_key_len)); > > + max_size_le = virtio_cread64_le(vdev, > > + offsetof(struct virtio_crypto_config, max_size)); > > + > > + /* Add virtio crypto device to global table */ > > + err = virtcrypto_devmgr_add_dev(vcrypto); > > + if (err) { > > + dev_err(&vdev->dev, "Failed to add new virtio crypto devi...
2016 Nov 22
0
[PATCH v2 2/2] crypto: add virtio-crypto driver
..."max_queues: %u\n", vcrypto->max_data_queues); + + max_cipher_key_len_le = virtio_cread32_le(vdev, + offsetof(struct virtio_crypto_config, max_cipher_key_len)); + max_auth_key_len_le = virtio_cread32_le(vdev, + offsetof(struct virtio_crypto_config, max_auth_key_len)); + max_size_le = virtio_cread64_le(vdev, + offsetof(struct virtio_crypto_config, max_size)); + + /* Add virtio crypto device to global table */ + err = virtcrypto_devmgr_add_dev(vcrypto); + if (err) { + dev_err(&vdev->dev, "Failed to add new virtio crypto device.\n"); + goto free; + } + vcrypto->owner = THIS_M...