id
stringlengths
4
63
text
stringlengths
153
8.81M
virtqueue_add_outbuf(9)
NAME virtqueue_add_outbuf - expose output buffers to other end SYNOPSIS int virtqueue_add_outbuf (struct virtqueue *vq , struct scatterlist *sg , unsigned int num , void *data , gfp_t gfp ); ARGUMENTS vq the struct virtqueue we're talking about. sg scatterlist (must be well-formed and termin...
virtqueue_add_outbuf_premapped(9)
NAME virtqueue_add_outbuf_premapped - expose output buffers to other end SYNOPSIS int virtqueue_add_outbuf_premapped (struct virtqueue *vq , struct scatterlist *sg , unsigned int num , void *data , gfp_t gfp ); ARGUMENTS vq the struct virtqueue we're talking about. sg scatterlist (must be we...
virtqueue_add_sgs(9)
NAME virtqueue_add_sgs - expose buffers to other end SYNOPSIS int virtqueue_add_sgs (struct virtqueue *_vq , struct scatterlist *sgs[] , unsigned int out_sgs , unsigned int in_sgs , void *data , gfp_t gfp ); ARGUMENTS _vq the struct virtqueue we're talking about. sgs array of terminated scatte...
virtqueue_detach_unused_buf(9)
NAME virtqueue_detach_unused_buf - detach first unused buffer SYNOPSIS void * virtqueue_detach_unused_buf (struct virtqueue *_vq ); ARGUMENTS _vq the struct virtqueue we're talking about. DESCRIPTION Returns NULL or the "data" token handed to virtqueue_add_*(). This is not valid on an active queue; it is us...
virtqueue_disable_cb(9)
NAME virtqueue_disable_cb - disable callbacks SYNOPSIS void virtqueue_disable_cb (struct virtqueue *_vq ); ARGUMENTS _vq the struct virtqueue we're talking about. DESCRIPTION Note that this is not necessarily synchronous, hence unreliable and only useful as an optimization. Unlike other operations, this nee...
virtqueue_dma_dev(9)
NAME virtqueue_dma_dev - get the dma dev SYNOPSIS struct device * virtqueue_dma_dev (struct virtqueue *_vq ); ARGUMENTS _vq the struct virtqueue we're talking about. DESCRIPTION Returns the dma dev. That can been used for dma api. SEE ALSO Kernel file ./drivers/virtio/virtio_ring.c virtqueue_add_sgs(9),...
virtqueue_enable_cb(9)
NAME virtqueue_enable_cb - restart callbacks after disable_cb. SYNOPSIS bool virtqueue_enable_cb (struct virtqueue *_vq ); ARGUMENTS _vq the struct virtqueue we're talking about. DESCRIPTION This re-enables callbacks; it returns "false" if there are pending buffers in the queue, to detect a possible race be...
virtqueue_enable_cb_delayed(9)
NAME virtqueue_enable_cb_delayed - restart callbacks after disable_cb. SYNOPSIS bool virtqueue_enable_cb_delayed (struct virtqueue *_vq ); ARGUMENTS _vq the struct virtqueue we're talking about. DESCRIPTION This re-enables callbacks but hints to the other side to delay interrupts until most of the availab...
virtqueue_enable_cb_prepare(9)
NAME virtqueue_enable_cb_prepare - restart callbacks after disable_cb SYNOPSIS unsigned int virtqueue_enable_cb_prepare (struct virtqueue *_vq ); ARGUMENTS _vq the struct virtqueue we're talking about. DESCRIPTION This re-enables callbacks; it returns current queue state in an opaque unsigned value. This val...
virtqueue_get_buf_ctx(9)
NAME virtqueue_get_buf_ctx - get the next used buffer SYNOPSIS void * virtqueue_get_buf_ctx (struct virtqueue *_vq , unsigned int *len , void **ctx ); ARGUMENTS _vq the struct virtqueue we're talking about. len the length written into the buffer ctx extra context for the token ...
virtqueue_get_vring_size(9)
NAME virtqueue_get_vring_size - return the size of the virtqueue's vring SYNOPSIS unsigned int virtqueue_get_vring_size (const struct virtqueue *_vq ); ARGUMENTS _vq the struct virtqueue containing the vring of interest. DESCRIPTION Returns the size of the vring. This is mainly used for boasting to userspac...
virtqueue_kick(9)
NAME virtqueue_kick - update after add_buf SYNOPSIS bool virtqueue_kick (struct virtqueue *vq ); ARGUMENTS vq the struct virtqueue DESCRIPTION After one or more virtqueue_add_* calls, invoke this to kick the other side. Caller must ensure we don't call this with other virtqueue operations at the same time ...
virtqueue_kick_prepare(9)
NAME virtqueue_kick_prepare - first half of split virtqueue_kick call. SYNOPSIS bool virtqueue_kick_prepare (struct virtqueue *_vq ); ARGUMENTS _vq the struct virtqueue DESCRIPTION Instead of virtqueue_kick, you can do: if (virtqueue_kick_prepare(vq)) virtqueue_notify(vq); This is sometimes useful because...
virtqueue_map_alloc_coherent(9)
NAME virtqueue_map_alloc_coherent - alloc coherent mapping SYNOPSIS void * virtqueue_map_alloc_coherent (struct virtio_device *vdev , union virtio_map map , size_t size , dma_addr_t *map_handle , gfp_t gfp ); ARGUMENTS vdev the virtio device we are talking to map metadata for performing mapping...
virtqueue_map_free_coherent(9)
NAME virtqueue_map_free_coherent - free coherent mapping SYNOPSIS void virtqueue_map_free_coherent (struct virtio_device *vdev , union virtio_map map , size_t size , void *vaddr , dma_addr_t map_handle ); ARGUMENTS vdev the virtio device we are talking to map metadata for performing mapping ...
virtqueue_map_mapping_error(9)
NAME virtqueue_map_mapping_error - check dma address SYNOPSIS int virtqueue_map_mapping_error (const struct virtqueue *_vq , dma_addr_t addr ); ARGUMENTS _vq the struct virtqueue we're talking about. addr DMA address DESCRIPTION Returns 0 means dma valid. Other means invalid dma address. SEE ...
virtqueue_map_need_sync(9)
NAME virtqueue_map_need_sync - check a dma address needs sync SYNOPSIS bool virtqueue_map_need_sync (const struct virtqueue *_vq , dma_addr_t addr ); ARGUMENTS _vq the struct virtqueue we're talking about. addr DMA address DESCRIPTION Check if the dma address mapped by the virtqueue_map_* APIs...
virtqueue_map_page_attrs(9)
NAME virtqueue_map_page_attrs - map a page to the device SYNOPSIS dma_addr_t virtqueue_map_page_attrs (const struct virtqueue *_vq , struct page *page , unsigned long offset , size_t size , enum dma_data_direction dir , unsigned long attrs ); ARGUMENTS _vq the virtqueue we are talking to page t...
virtqueue_map_single_attrs(9)
NAME virtqueue_map_single_attrs - map DMA for _vq SYNOPSIS dma_addr_t virtqueue_map_single_attrs (const struct virtqueue *_vq , void *ptr , size_t size , enum dma_data_direction dir , unsigned long attrs ); ARGUMENTS _vq the struct virtqueue we're talking about. ptr the pointer of the buffer t...
virtqueue_map_sync_single_range_for_cpu(9)
NAME virtqueue_map_sync_single_range_for_cpu - map sync for cpu SYNOPSIS void virtqueue_map_sync_single_range_for_cpu (const struct virtqueue *_vq , dma_addr_t addr , unsigned long offset , size_t size , enum dma_data_direction dir ); ARGUMENTS _vq the struct virtqueue we're talking about. addr ...
virtqueue_map_sync_single_range_for_device(9)
NAME virtqueue_map_sync_single_range_for_device - map sync for device SYNOPSIS void virtqueue_map_sync_single_range_for_device (const struct virtqueue *_vq , dma_addr_t addr , unsigned long offset , size_t size , enum dma_data_direction dir ); ARGUMENTS _vq the struct virtqueue we're talking about. ad...
virtqueue_notify(9)
NAME virtqueue_notify - second half of split virtqueue_kick call. SYNOPSIS bool virtqueue_notify (struct virtqueue *_vq ); ARGUMENTS _vq the struct virtqueue DESCRIPTION This does not need to be serialized. Returns false if host notify failed or queue is broken, otherwise true. SEE ALSO Kernel file ./dr...
virtqueue_poll(9)
NAME virtqueue_poll - query pending used buffers SYNOPSIS bool virtqueue_poll (struct virtqueue *_vq , unsigned int last_used_idx ); ARGUMENTS _vq the struct virtqueue we're talking about. last_used_idx virtqueue state (from call to virtqueue_enable_cb_prepare). DESCRIPTION Returns...
virtqueue_reset(9)
NAME virtqueue_reset - detach and recycle all unused buffers SYNOPSIS int virtqueue_reset (struct virtqueue *_vq , void (*recycle)(struct virtqueue *vq, void *buf) , void (*recycle_done)(struct virtqueue *vq) ); ARGUMENTS _vq the struct virtqueue we're talking about. recycle callback to recycle un...
virtqueue_resize(9)
NAME virtqueue_resize - resize the vring of vq SYNOPSIS int virtqueue_resize (struct virtqueue *_vq , u32 num , void (*recycle)(struct virtqueue *vq, void *buf) , void (*recycle_done)(struct virtqueue *vq) ); ARGUMENTS _vq the struct virtqueue we're talking about. num new ring num recy...
virtqueue_set_affinity(9)
NAME virtqueue_set_affinity - setting affinity for a virtqueue SYNOPSIS int virtqueue_set_affinity (struct virtqueue *vq , const struct cpumask *cpu_mask ); ARGUMENTS vq the virtqueue cpu_mask the cpu mask DESCRIPTION Note that this function is best-effort: the affinity hint may not be set due to...
virtqueue_unmap_page_attrs(9)
NAME virtqueue_unmap_page_attrs - map a page to the device SYNOPSIS void virtqueue_unmap_page_attrs (const struct virtqueue *_vq , dma_addr_t map_handle , size_t size , enum dma_data_direction dir , unsigned long attrs ); ARGUMENTS _vq the virtqueue we are talking to map_handle the mapped address ...
virtqueue_unmap_single_attrs(9)
NAME virtqueue_unmap_single_attrs - unmap map for _vq SYNOPSIS void virtqueue_unmap_single_attrs (const struct virtqueue *_vq , dma_addr_t addr , size_t size , enum dma_data_direction dir , unsigned long attrs ); ARGUMENTS _vq the struct virtqueue we're talking about. addr the dma address to un...
virtscsi_add_cmd(9)
NAME virtscsi_add_cmd - add a virtio_scsi_cmd to a virtqueue, optionally kick it SYNOPSIS int virtscsi_add_cmd (struct virtio_scsi_vq *vq , struct virtio_scsi_cmd *cmd , size_t req_size , size_t resp_size , bool kick ); ARGUMENTS vq the struct virtqueue we're talking about cmd command structu...
virtscsi_change_queue_depth(9)
NAME virtscsi_change_queue_depth - Change a virtscsi target's queue depth SYNOPSIS int virtscsi_change_queue_depth (struct scsi_device *sdev , int qdepth ); ARGUMENTS sdev Virtscsi target whose queue depth to change qdepth New queue depth SEE ALSO Kernel file ./drivers/scsi/virtio_scsi.c virtscsi...
virtsecretd(8)
NAME virtsecretd - libvirt secret data management daemon SYNOPSIS virtsecretd [OPTION]... DESCRIPTION The virtsecretd program is a server side daemon component of the libvirt virtualization management system. It is one of a collection of modular daemons that replace functionality previously provided by the mo...
virtsnd_build_devs(9)
NAME virtsnd_build_devs - Read configuration and build ALSA devices. SYNOPSIS int virtsnd_build_devs (struct virtio_snd *snd ); ARGUMENTS snd VirtIO sound device. CONTEXT Any context that permits to sleep. RETURN 0 on success, -errno on failure. SEE ALSO Kernel file ./sound/virtio/virtio_card.c virtsnd_...
virtsnd_chmap_add_ctls(9)
NAME virtsnd_chmap_add_ctls - Create an ALSA control for channel maps. SYNOPSIS int virtsnd_chmap_add_ctls (struct snd_pcm *pcm , int direction , struct virtio_pcm_stream *vs ); ARGUMENTS pcm ALSA PCM device. direction PCM stream direction (SNDRV_PCM_STREAM_XXX). vs VirtIO PCM strea...
virtsnd_chmap_build_devs(9)
NAME virtsnd_chmap_build_devs - Build ALSA controls for channel maps. SYNOPSIS int virtsnd_chmap_build_devs (struct virtio_snd *snd ); ARGUMENTS snd VirtIO sound device. CONTEXT Any context. RETURN 0 on success, -errno on failure. SEE ALSO Kernel file ./sound/virtio/virtio_chmap.c virtsnd_chmap_parse_cfg(9...
virtsnd_chmap_parse_cfg(9)
NAME virtsnd_chmap_parse_cfg - Parse the channel map configuration. SYNOPSIS int virtsnd_chmap_parse_cfg (struct virtio_snd *snd ); ARGUMENTS snd VirtIO sound device. DESCRIPTION This function is called during initial device initialization. CONTEXT Any context that permits to sleep. RETURN 0 on success, -e...
virtsnd_ctl_msg_alloc(9)
NAME virtsnd_ctl_msg_alloc - Allocate and initialize a control message. SYNOPSIS struct virtio_snd_msg * virtsnd_ctl_msg_alloc (size_t request_size , size_t response_size , gfp_t gfp ); ARGUMENTS request_size Size of request header. response_size Size of response header. gfp ...
virtsnd_ctl_msg_cancel_all(9)
NAME virtsnd_ctl_msg_cancel_all - Cancel all pending control messages. SYNOPSIS void virtsnd_ctl_msg_cancel_all (struct virtio_snd *snd ); ARGUMENTS snd VirtIO sound device. CONTEXT Any context. SEE ALSO Kernel file ./sound/virtio/virtio_ctl_msg.c struct virtio_snd_msg(9), virtsnd_ctl_msg_ref(9), v...
virtsnd_ctl_msg_complete(9)
NAME virtsnd_ctl_msg_complete - Complete a control message. SYNOPSIS void virtsnd_ctl_msg_complete (struct virtio_snd_msg *msg ); ARGUMENTS msg Control message. CONTEXT Any context. Expects the control queue spinlock to be held by caller. SEE ALSO Kernel file ./sound/virtio/virtio_ctl_msg.c struct vi...
virtsnd_ctl_msg_ref(9)
NAME virtsnd_ctl_msg_ref - Increment reference counter for the message. SYNOPSIS void virtsnd_ctl_msg_ref (struct virtio_snd_msg *msg ); ARGUMENTS msg Control message. CONTEXT Any context. SEE ALSO Kernel file ./sound/virtio/virtio_ctl_msg.c struct virtio_snd_msg(9), virtsnd_ctl_msg_unref(9), virtsn...
virtsnd_ctl_msg_request(9)
NAME virtsnd_ctl_msg_request - Get a pointer to the request header. SYNOPSIS void * virtsnd_ctl_msg_request (struct virtio_snd_msg *msg ); ARGUMENTS msg Control message. CONTEXT Any context. SEE ALSO Kernel file ./sound/virtio/virtio_ctl_msg.c struct virtio_snd_msg(9), virtsnd_ctl_msg_ref(9), virtsnd_ctl_m...
virtsnd_ctl_msg_response(9)
NAME virtsnd_ctl_msg_response - Get a pointer to the response header. SYNOPSIS void * virtsnd_ctl_msg_response (struct virtio_snd_msg *msg ); ARGUMENTS msg Control message. CONTEXT Any context. SEE ALSO Kernel file ./sound/virtio/virtio_ctl_msg.c struct virtio_snd_msg(9), virtsnd_ctl_msg_ref(9), virtsnd_c...
virtsnd_ctl_msg_send(9)
NAME virtsnd_ctl_msg_send - Send a control message. SYNOPSIS int virtsnd_ctl_msg_send (struct virtio_snd *snd , struct virtio_snd_msg *msg , struct scatterlist *out_sgs , struct scatterlist *in_sgs , bool nowait ); ARGUMENTS snd VirtIO sound device. msg Control message. out_sgs Add...
virtsnd_ctl_msg_send_async(9)
NAME virtsnd_ctl_msg_send_async - Simplified sending of asynchronous message. SYNOPSIS int virtsnd_ctl_msg_send_async (struct virtio_snd *snd , struct virtio_snd_msg *msg ); ARGUMENTS snd VirtIO sound device. msg Control message. CONTEXT Any context. RETURN 0 on success, -errno on failure. ...
virtsnd_ctl_msg_send_sync(9)
NAME virtsnd_ctl_msg_send_sync - Simplified sending of synchronous message. SYNOPSIS int virtsnd_ctl_msg_send_sync (struct virtio_snd *snd , struct virtio_snd_msg *msg ); ARGUMENTS snd VirtIO sound device. msg Control message. DESCRIPTION After returning from this function, the message will...
virtsnd_ctl_msg_unref(9)
NAME virtsnd_ctl_msg_unref - Decrement reference counter for the message. SYNOPSIS void virtsnd_ctl_msg_unref (struct virtio_snd_msg *msg ); ARGUMENTS msg Control message. DESCRIPTION The message will be freed when the ref_count value is 0. CONTEXT Any context. SEE ALSO Kernel file ./sound/virtio/virti...
virtsnd_ctl_notify_cb(9)
NAME virtsnd_ctl_notify_cb - Process all completed control messages. SYNOPSIS void virtsnd_ctl_notify_cb (struct virtqueue *vqueue ); ARGUMENTS vqueue Underlying control virtqueue. DESCRIPTION This callback function is called upon a vring interrupt request from the device. CONTEXT Interrupt context. Takes and ...
virtsnd_ctl_query_info(9)
NAME virtsnd_ctl_query_info - Query the item configuration from the device. SYNOPSIS int virtsnd_ctl_query_info (struct virtio_snd *snd , int command , int start_id , int count , size_t size , void *info ); ARGUMENTS snd VirtIO sound device. command Control request code (VIRTIO_SND_R_XXX_INFO). ...
virtsnd_disable_event_vq(9)
NAME virtsnd_disable_event_vq - Disable the event virtqueue. SYNOPSIS void virtsnd_disable_event_vq (struct virtio_snd *snd ); ARGUMENTS snd VirtIO sound device. CONTEXT Any context. SEE ALSO Kernel file ./sound/virtio/virtio_card.c virtsnd_event_send(9), virtsnd_event_dispatch(9), virtsnd_event_notify_...
virtsnd_enable_event_vq(9)
NAME virtsnd_enable_event_vq - Enable the event virtqueue. SYNOPSIS void virtsnd_enable_event_vq (struct virtio_snd *snd ); ARGUMENTS snd VirtIO sound device. CONTEXT Any context. SEE ALSO Kernel file ./sound/virtio/virtio_card.c virtsnd_event_send(9), virtsnd_event_dispatch(9), virtsnd_event_notify_cb(9...
virtsnd_event_dispatch(9)
NAME virtsnd_event_dispatch - Dispatch an event from the device side. SYNOPSIS void virtsnd_event_dispatch (struct virtio_snd *snd , struct virtio_snd_event *event ); ARGUMENTS snd VirtIO sound device. event VirtIO sound event. CONTEXT Any context. SEE ALSO Kernel file ./sound/virtio/virtio_...
virtsnd_event_notify_cb(9)
NAME virtsnd_event_notify_cb - Dispatch all reported events from the event queue. SYNOPSIS void virtsnd_event_notify_cb (struct virtqueue *vqueue ); ARGUMENTS vqueue Underlying event virtqueue. DESCRIPTION This callback function is called upon a vring interrupt request from the device. CONTEXT Interrupt contex...
virtsnd_event_send(9)
NAME virtsnd_event_send - Add an event to the event queue. SYNOPSIS void virtsnd_event_send (struct virtqueue *vqueue , struct virtio_snd_event *event , bool notify , gfp_t gfp ); ARGUMENTS vqueue Underlying event virtqueue. event Event. notify Indicates whether or not to send a notifi...
virtsnd_find_vqs(9)
NAME virtsnd_find_vqs - Enumerate and initialize all virtqueues. SYNOPSIS int virtsnd_find_vqs (struct virtio_snd *snd ); ARGUMENTS snd VirtIO sound device. DESCRIPTION After calling this function, the event queue is disabled. CONTEXT Any context. RETURN 0 on success, -errno on failure. SEE ALSO Kernel f...
virtsnd_freeze(9)
NAME virtsnd_freeze - Suspend device. SYNOPSIS int virtsnd_freeze (struct virtio_device *vdev ); ARGUMENTS vdev VirtIO parent device. CONTEXT Any context. RETURN 0 on success, -errno on failure. SEE ALSO Kernel file ./sound/virtio/virtio_card.c virtsnd_event_send(9), virtsnd_event_dispatch(9), virtsnd_eve...
virtsnd_jack_build_devs(9)
NAME virtsnd_jack_build_devs - Build ALSA controls for jacks. SYNOPSIS int virtsnd_jack_build_devs (struct virtio_snd *snd ); ARGUMENTS snd VirtIO sound device. CONTEXT Any context that permits to sleep. RETURN 0 on success, -errno on failure. SEE ALSO Kernel file ./sound/virtio/virtio_jack.c Kernel API(9)...
virtsnd_jack_event(9)
NAME virtsnd_jack_event - Handle the jack event notification. SYNOPSIS void virtsnd_jack_event (struct virtio_snd *snd , struct virtio_snd_event *event ); ARGUMENTS snd VirtIO sound device. event VirtIO sound event. CONTEXT Interrupt context. SEE ALSO Kernel file ./sound/virtio/virtio_jack.c K...
virtsnd_jack_get_label(9)
NAME virtsnd_jack_get_label - Get the name string for the jack. SYNOPSIS const char * virtsnd_jack_get_label (struct virtio_jack *vjack ); ARGUMENTS vjack VirtIO jack. DESCRIPTION Returns the jack name based on the default pin configuration value (see HDA specification). CONTEXT Any context. RETURN Name stri...
virtsnd_jack_get_type(9)
NAME virtsnd_jack_get_type - Get the type for the jack. SYNOPSIS int virtsnd_jack_get_type (struct virtio_jack *vjack ); ARGUMENTS vjack VirtIO jack. DESCRIPTION Returns the jack type based on the default pin configuration value (see HDA specification). CONTEXT Any context. RETURN SND_JACK_XXX value. SEE AL...
virtsnd_jack_parse_cfg(9)
NAME virtsnd_jack_parse_cfg - Parse the jack configuration. SYNOPSIS int virtsnd_jack_parse_cfg (struct virtio_snd *snd ); ARGUMENTS snd VirtIO sound device. DESCRIPTION This function is called during initial device initialization. CONTEXT Any context that permits to sleep. RETURN 0 on success, -errno on f...
virtsnd_kctl_build_devs(9)
NAME virtsnd_kctl_build_devs - Build ALSA control elements. SYNOPSIS int virtsnd_kctl_build_devs (struct virtio_snd *snd ); ARGUMENTS snd VirtIO sound device. CONTEXT Any context that permits to sleep. RETURN 0 on success, -errno on failure. SEE ALSO Kernel file ./sound/virtio/virtio_kctl.c virtsnd_kctl_in...
virtsnd_kctl_event(9)
NAME virtsnd_kctl_event - Handle the control element event notification. SYNOPSIS void virtsnd_kctl_event (struct virtio_snd *snd , struct virtio_snd_event *event ); ARGUMENTS snd VirtIO sound device. event VirtIO sound event. CONTEXT Interrupt context. SEE ALSO Kernel file ./sound/virtio/virt...
virtsnd_kctl_get(9)
NAME virtsnd_kctl_get - Read the value from the control. SYNOPSIS int virtsnd_kctl_get (struct snd_kcontrol *kcontrol , struct snd_ctl_elem_value *uvalue ); ARGUMENTS kcontrol ALSA control element. uvalue Element value. CONTEXT Process context. RETURN 0 on success, -errno on failure. SEE ALSO Kerne...
virtsnd_kctl_get_enum_items(9)
NAME virtsnd_kctl_get_enum_items - Query items for the ENUMERATED element type. SYNOPSIS int virtsnd_kctl_get_enum_items (struct virtio_snd *snd , unsigned int cid ); ARGUMENTS snd VirtIO sound device. cid Control element ID. DESCRIPTION This function is called during initial device initializ...
virtsnd_kctl_info(9)
NAME virtsnd_kctl_info - Returns information about the control. SYNOPSIS int virtsnd_kctl_info (struct snd_kcontrol *kcontrol , struct snd_ctl_elem_info *uinfo ); ARGUMENTS kcontrol ALSA control element. uinfo Element information. CONTEXT Process context. RETURN 0 on success, -errno on failure. SE...
virtsnd_kctl_parse_cfg(9)
NAME virtsnd_kctl_parse_cfg - Parse the control element configuration. SYNOPSIS int virtsnd_kctl_parse_cfg (struct virtio_snd *snd ); ARGUMENTS snd VirtIO sound device. DESCRIPTION This function is called during initial device initialization. CONTEXT Any context that permits to sleep. RETURN 0 on success, ...
virtsnd_kctl_put(9)
NAME virtsnd_kctl_put - Write the value to the control. SYNOPSIS int virtsnd_kctl_put (struct snd_kcontrol *kcontrol , struct snd_ctl_elem_value *uvalue ); ARGUMENTS kcontrol ALSA control element. uvalue Element value. CONTEXT Process context. RETURN 0 on success, -errno on failure. SEE ALSO Kernel...
virtsnd_kctl_tlv_op(9)
NAME virtsnd_kctl_tlv_op - Perform an operation on the control's metadata. SYNOPSIS int virtsnd_kctl_tlv_op (struct snd_kcontrol *kcontrol , int op_flag , unsigned int size , unsigned int __user *utlv ); ARGUMENTS kcontrol ALSA control element. op_flag Operation code (SNDRV_CTL_TLV_OP_XXX). siz...
virtsnd_pcm_build_devs(9)
NAME virtsnd_pcm_build_devs - Build ALSA PCM devices. SYNOPSIS int virtsnd_pcm_build_devs (struct virtio_snd *snd ); ARGUMENTS snd VirtIO sound device. CONTEXT Any context that permits to sleep. RETURN 0 on success, -errno on failure. SEE ALSO Kernel file ./sound/virtio/virtio_pcm.c virtsnd_pcm_build_hw(9)...
virtsnd_pcm_build_hw(9)
NAME virtsnd_pcm_build_hw - Parse substream config and build HW descriptor. SYNOPSIS int virtsnd_pcm_build_hw (struct virtio_pcm_substream *vss , struct virtio_snd_pcm_info *info ); ARGUMENTS vss VirtIO substream. info VirtIO substream information entry. CONTEXT Any context. RETURN 0 on succe...
virtsnd_pcm_close(9)
NAME virtsnd_pcm_close - Close the PCM substream. SYNOPSIS int virtsnd_pcm_close (struct snd_pcm_substream *substream ); ARGUMENTS substream Kernel ALSA substream. CONTEXT Process context. RETURN 0. SEE ALSO Kernel file ./sound/virtio/virtio_pcm_ops.c virtsnd_pcm_open(9), virtsnd_pcm_dev_set_params(9), virtsnd...
virtsnd_pcm_cp_pointer(9)
NAME virtsnd_pcm_cp_pointer - Get the current hardware position for the PCM substream for capture. SYNOPSIS snd_pcm_uframes_t virtsnd_pcm_cp_pointer (struct snd_pcm_substream *substream ); ARGUMENTS substream Kernel ALSA substream. CONTEXT Any context. RETURN Hardware position in frames inside [0 ... buffer_size)...
virtsnd_pcm_ctl_msg_alloc(9)
NAME virtsnd_pcm_ctl_msg_alloc - Allocate and initialize the PCM device control message for the specified substream. SYNOPSIS struct virtio_snd_msg * virtsnd_pcm_ctl_msg_alloc (struct virtio_pcm_substream *vss , unsigned int command , gfp_t gfp ); ARGUMENTS vss VirtIO PCM substream. command Contro...
virtsnd_pcm_dev_set_params(9)
NAME virtsnd_pcm_dev_set_params - Set the parameters of the PCM substream on the device side. SYNOPSIS int virtsnd_pcm_dev_set_params (struct virtio_pcm_substream *vss , unsigned int buffer_bytes , unsigned int period_bytes , unsigned int channels , snd_pcm_format_t format , unsigned int rate ); ARGUMENTS vss ...
virtsnd_pcm_event(9)
NAME virtsnd_pcm_event - Handle the PCM device event notification. SYNOPSIS void virtsnd_pcm_event (struct virtio_snd *snd , struct virtio_snd_event *event ); ARGUMENTS snd VirtIO sound device. event VirtIO sound event. CONTEXT Interrupt context. SEE ALSO Kernel file ./sound/virtio/virtio_...
virtsnd_pcm_find(9)
NAME virtsnd_pcm_find - Find the PCM device for the specified node ID. SYNOPSIS struct virtio_pcm * virtsnd_pcm_find (struct virtio_snd *snd , u32 nid ); ARGUMENTS snd VirtIO sound device. nid Function node ID. CONTEXT Any context. RETURN a pointer to the PCM device or ERR_PTR(-ENOENT). SEE...
virtsnd_pcm_find_or_create(9)
NAME virtsnd_pcm_find_or_create - Find or create the PCM device for the specified node ID. SYNOPSIS struct virtio_pcm * virtsnd_pcm_find_or_create (struct virtio_snd *snd , u32 nid ); ARGUMENTS snd VirtIO sound device. nid Function node ID. CONTEXT Any context that permits to sleep. RETURN a...
virtsnd_pcm_hw_free(9)
NAME virtsnd_pcm_hw_free - Reset the parameters of the PCM substream. SYNOPSIS int virtsnd_pcm_hw_free (struct snd_pcm_substream *substream ); ARGUMENTS substream Kernel ALSA substream. CONTEXT Process context. RETURN 0 SEE ALSO Kernel file ./sound/virtio/virtio_pcm_ops.c virtsnd_pcm_open(9), virtsnd_pcm_clo...
virtsnd_pcm_hw_params(9)
NAME virtsnd_pcm_hw_params - Set the parameters of the PCM substream. SYNOPSIS int virtsnd_pcm_hw_params (struct snd_pcm_substream *substream , struct snd_pcm_hw_params *hw_params ); ARGUMENTS substream Kernel ALSA substream. hw_params Hardware parameters. CONTEXT Process context. RETURN 0 on success, -...
virtsnd_pcm_msg_alloc(9)
NAME virtsnd_pcm_msg_alloc - Allocate I/O messages. SYNOPSIS int virtsnd_pcm_msg_alloc (struct virtio_pcm_substream *vss , unsigned int periods , unsigned int period_bytes ); ARGUMENTS vss VirtIO PCM substream. periods Current number of periods. period_bytes Current peri...
virtsnd_pcm_msg_complete(9)
NAME virtsnd_pcm_msg_complete - Complete an I/O message. SYNOPSIS void virtsnd_pcm_msg_complete (struct virtio_pcm_msg *msg , size_t written_bytes ); ARGUMENTS msg I/O message. written_bytes Number of bytes written to the message. DESCRIPTION Completion of the message means th...
virtsnd_pcm_msg_free(9)
NAME virtsnd_pcm_msg_free - Free all allocated I/O messages. SYNOPSIS void virtsnd_pcm_msg_free (struct virtio_pcm_substream *vss ); ARGUMENTS vss VirtIO PCM substream. CONTEXT Any context. SEE ALSO Kernel file ./sound/virtio/virtio_pcm_msg.c struct virtio_pcm_msg(9), enum pcm_msg_sg_index(9), virtsnd...
virtsnd_pcm_msg_pending_num(9)
NAME virtsnd_pcm_msg_pending_num - Returns the number of pending I/O messages. SYNOPSIS unsigned int virtsnd_pcm_msg_pending_num (struct virtio_pcm_substream *vss ); ARGUMENTS vss VirtIO substream. CONTEXT Any context. RETURN Number of messages. SEE ALSO Kernel file ./sound/virtio/virtio_pcm_msg.c struc...
virtsnd_pcm_msg_send(9)
NAME virtsnd_pcm_msg_send - Send asynchronous I/O messages. SYNOPSIS int virtsnd_pcm_msg_send (struct virtio_pcm_substream *vss , unsigned long offset , unsigned long bytes ); ARGUMENTS vss VirtIO PCM substream. offset starting position that has been updated bytes number of bytes th...
virtsnd_pcm_notify_cb(9)
NAME virtsnd_pcm_notify_cb - Process all completed I/O messages. SYNOPSIS void virtsnd_pcm_notify_cb (struct virtio_snd_queue *queue ); ARGUMENTS queue Underlying tx/rx virtqueue. CONTEXT Interrupt context. Takes and releases the tx/rx queue spinlock. SEE ALSO Kernel file ./sound/virtio/virtio_pcm_msg.c st...
virtsnd_pcm_open(9)
NAME virtsnd_pcm_open - Open the PCM substream. SYNOPSIS int virtsnd_pcm_open (struct snd_pcm_substream *substream ); ARGUMENTS substream Kernel ALSA substream. CONTEXT Process context. RETURN 0 on success, -errno on failure. SEE ALSO Kernel file ./sound/virtio/virtio_pcm_ops.c virtsnd_pcm_close(9), virtsnd_pcm...
virtsnd_pcm_parse_cfg(9)
NAME virtsnd_pcm_parse_cfg - Parse the stream configuration. SYNOPSIS int virtsnd_pcm_parse_cfg (struct virtio_snd *snd ); ARGUMENTS snd VirtIO sound device. DESCRIPTION This function is called during initial device initialization. CONTEXT Any context that permits to sleep. RETURN 0 on success, -errno on f...
virtsnd_pcm_pb_pointer(9)
NAME virtsnd_pcm_pb_pointer - Get the current hardware position for the PCM substream for playback. SYNOPSIS snd_pcm_uframes_t virtsnd_pcm_pb_pointer (struct snd_pcm_substream *substream ); ARGUMENTS substream Kernel ALSA substream. CONTEXT Any context. RETURN Hardware position in frames inside [0 ... buffer_size...
virtsnd_pcm_period_elapsed(9)
NAME virtsnd_pcm_period_elapsed - Kernel work function to handle the elapsed period state. SYNOPSIS void virtsnd_pcm_period_elapsed (struct work_struct *work ); ARGUMENTS work Elapsed period work. DESCRIPTION The main purpose of this function is to call snd_pcm_period_elapsed in a process context, not in an i...
virtsnd_pcm_prepare(9)
NAME virtsnd_pcm_prepare - Prepare the PCM substream. SYNOPSIS int virtsnd_pcm_prepare (struct snd_pcm_substream *substream ); ARGUMENTS substream Kernel ALSA substream. CONTEXT Process context. RETURN 0 on success, -errno on failure. SEE ALSO Kernel file ./sound/virtio/virtio_pcm_ops.c virtsnd_pcm_open(9), ...
virtsnd_pcm_rx_notify_cb(9)
NAME virtsnd_pcm_rx_notify_cb - Process all completed RX messages. SYNOPSIS void virtsnd_pcm_rx_notify_cb (struct virtqueue *vqueue ); ARGUMENTS vqueue Underlying rx virtqueue. CONTEXT Interrupt context. SEE ALSO Kernel file ./sound/virtio/virtio_pcm_msg.c struct virtio_pcm_msg(9), enum pcm_msg_sg_index(9),...
virtsnd_pcm_sg_from(9)
NAME virtsnd_pcm_sg_from - Build sg-list from vmalloc'ed buffer. SYNOPSIS void virtsnd_pcm_sg_from (struct scatterlist *sgs , int nsgs , u8 *data , unsigned int length ); ARGUMENTS sgs Preallocated sg-list to populate. nsgs The maximum number of elements in the sgs. data Pointer ...
virtsnd_pcm_sg_num(9)
NAME virtsnd_pcm_sg_num - Count the number of sg-elements required to represent vmalloc'ed buffer. SYNOPSIS int virtsnd_pcm_sg_num (u8 *data , unsigned int length ); ARGUMENTS data Pointer to vmalloc'ed buffer. length Buffer size. CONTEXT Any context. RETURN Number of physically contiguous parts...
virtsnd_pcm_sync_stop(9)
NAME virtsnd_pcm_sync_stop - Synchronous PCM substream stop. SYNOPSIS int virtsnd_pcm_sync_stop (struct snd_pcm_substream *substream ); ARGUMENTS substream Kernel ALSA substream. DESCRIPTION The function can be called both from the upper level or from the driver itself. CONTEXT Process context. Takes and releases...
virtsnd_pcm_trigger(9)
NAME virtsnd_pcm_trigger - Process command for the PCM substream. SYNOPSIS int virtsnd_pcm_trigger (struct snd_pcm_substream *substream , int command ); ARGUMENTS substream Kernel ALSA substream. command Substream command (SNDRV_PCM_TRIGGER_XXX). CONTEXT Any context. Takes and releases the VirtIO subst...
virtsnd_pcm_tx_notify_cb(9)
NAME virtsnd_pcm_tx_notify_cb - Process all completed TX messages. SYNOPSIS void virtsnd_pcm_tx_notify_cb (struct virtqueue *vqueue ); ARGUMENTS vqueue Underlying tx virtqueue. CONTEXT Interrupt context. SEE ALSO Kernel file ./sound/virtio/virtio_pcm_msg.c struct virtio_pcm_msg(9), enum pcm_msg_sg_index(9),...
virtsnd_pcm_validate(9)
NAME virtsnd_pcm_validate - Validate if the device can be started. SYNOPSIS int virtsnd_pcm_validate (struct virtio_device *vdev ); ARGUMENTS vdev VirtIO parent device. CONTEXT Any context. RETURN 0 on success, -EINVAL on failure. SEE ALSO Kernel file ./sound/virtio/virtio_pcm.c virtsnd_pcm_build_hw(9), vir...
virtsnd_probe(9)
NAME virtsnd_probe - Create and initialize the device. SYNOPSIS int virtsnd_probe (struct virtio_device *vdev ); ARGUMENTS vdev VirtIO parent device. CONTEXT Any context that permits to sleep. RETURN 0 on success, -errno on failure. SEE ALSO Kernel file ./sound/virtio/virtio_card.c virtsnd_event_send(9), ...
virtsnd_remove(9)
NAME virtsnd_remove - Remove VirtIO and ALSA devices. SYNOPSIS void virtsnd_remove (struct virtio_device *vdev ); ARGUMENTS vdev VirtIO parent device. CONTEXT Any context that permits to sleep. SEE ALSO Kernel file ./sound/virtio/virtio_card.c virtsnd_event_send(9), virtsnd_event_dispatch(9), virtsnd_even...
virtsnd_restore(9)
NAME virtsnd_restore - Resume device. SYNOPSIS int virtsnd_restore (struct virtio_device *vdev ); ARGUMENTS vdev VirtIO parent device. CONTEXT Any context. RETURN 0 on success, -errno on failure. SEE ALSO Kernel file ./sound/virtio/virtio_card.c virtsnd_event_send(9), virtsnd_event_dispatch(9), virtsnd_ev...
virtsnd_validate(9)
NAME virtsnd_validate - Validate if the device can be started. SYNOPSIS int virtsnd_validate (struct virtio_device *vdev ); ARGUMENTS vdev VirtIO parent device. CONTEXT Any context. RETURN 0 on success, -EINVAL on failure. SEE ALSO Kernel file ./sound/virtio/virtio_card.c virtsnd_event_send(9), virtsnd_ev...