Searched refs:mbo (Results 1 – 7 of 7) sorted by relevance
| /linux/drivers/most/ |
| H A D | core.c | 91 struct mbo *_mbo = list_first_entry(ptr, struct mbo, list); \ 100 static void most_free_mbo_coherent(struct mbo *mbo) in most_free_mbo_coherent() argument 102 struct most_channel *c = mbo->context; in most_free_mbo_coherent() 106 c->iface->dma_free(mbo, coherent_buf_size); in most_free_mbo_coherent() 108 kfree(mbo->virt_address); in most_free_mbo_coherent() 109 kfree(mbo); in most_free_mbo_coherent() 121 struct mbo *mbo, *tmp; in flush_channel_fifos() local 127 list_for_each_entry_safe(mbo, tmp, &c->fifo, list) { in flush_channel_fifos() 128 list_del(&mbo->list); in flush_channel_fifos() 130 most_free_mbo_coherent(mbo); in flush_channel_fifos() [all …]
|
| H A D | most_cdev.c | 44 DECLARE_KFIFO_PTR(fifo, typeof(struct mbo *)); 58 static inline struct mbo *ch_get_mbo(struct comp_channel *c, struct mbo **mbo) in ch_get_mbo() argument 60 if (!kfifo_peek(&c->fifo, mbo)) { in ch_get_mbo() 61 *mbo = most_get_mbo(c->iface, c->channel_id, &comp.cc); in ch_get_mbo() 62 if (*mbo) in ch_get_mbo() 63 kfifo_in(&c->fifo, mbo, 1); in ch_get_mbo() 65 return *mbo; in ch_get_mbo() 86 struct mbo *mbo; in stop_channel() local 88 while (kfifo_out((struct kfifo *)&c->fifo, &mbo, 1)) in stop_channel() 89 most_put_mbo(mbo); in stop_channel() [all …]
|
| H A D | most_usb.c | 276 static int hdm_add_padding(struct most_dev *mdev, int channel, struct mbo *mbo) in hdm_add_padding() argument 284 num_frames = mbo->buffer_length / frame_size; in hdm_add_padding() 293 memmove(mbo->virt_address + j * USB_MTU, in hdm_add_padding() 294 mbo->virt_address + j * frame_size, in hdm_add_padding() 296 mbo->buffer_length = num_frames * USB_MTU; in hdm_add_padding() 310 struct mbo *mbo) in hdm_remove_padding() argument 318 num_frames = mbo->processed_length / USB_MTU; in hdm_remove_padding() 321 memmove(mbo->virt_address + frame_size * j, in hdm_remove_padding() 322 mbo->virt_address + USB_MTU * j, in hdm_remove_padding() 325 mbo->processed_length = frame_size * num_frames; in hdm_remove_padding() [all …]
|
| H A D | most_snd.c | 181 static bool copy_data(struct channel *channel, struct mbo *mbo) in copy_data() argument 190 frames = mbo->processed_length / frame_bytes; in copy_data() 192 frames = mbo->buffer_length / frame_bytes; in copy_data() 196 mbo->virt_address, in copy_data() 202 mbo->virt_address + fr0 * frame_bytes, in copy_data() 232 struct mbo *mbo = NULL; in playback_thread() local 239 (mbo = most_get_mbo(channel->iface, channel->id, in playback_thread() 241 if (!mbo) in playback_thread() 245 period_elapsed = copy_data(channel, mbo); in playback_thread() 247 memset(mbo->virt_address, 0, mbo->buffer_length); in playback_thread() [all …]
|
| /linux/include/linux/ |
| H A D | most.h | 176 struct mbo { struct 188 void (*complete)(struct mbo *mbo); argument 239 void *(*dma_alloc)(struct mbo *mbo, u32 size); 240 void (*dma_free)(struct mbo *mbo, u32 size); 244 struct mbo *mbo); 272 int (*rx_completion)(struct mbo *mbo); 293 void most_submit_mbo(struct mbo *mbo); 313 struct mbo *most_get_mbo(struct most_interface *iface, int channel_idx, 315 void most_put_mbo(struct mbo *mbo);
|
| /linux/drivers/staging/most/video/ |
| H A D | video.c | 68 static inline struct mbo *get_top_mbo(struct most_video_dev *mdev) in get_top_mbo() 70 return list_first_entry(&mdev->pending_mbos, struct mbo, list); in get_top_mbo() 123 struct mbo *mbo, *tmp; in comp_vdev_close() local 140 list_for_each_entry_safe(mbo, tmp, &free_list, list) { in comp_vdev_close() 141 list_del_init(&mbo->list); in comp_vdev_close() 142 most_put_mbo(mbo); in comp_vdev_close() 179 struct mbo *const mbo = get_top_mbo(mdev); in comp_vdev_read() local 180 int const rem = mbo in comp_vdev_read() 389 comp_rx_data(struct mbo * mbo) comp_rx_data() argument [all...] |
| /linux/drivers/s390/cio/ |
| H A D | cmf.c | 172 [mbo] "d" (virt_to_phys(area)) in cmf_activate()
|