Searched refs:mbo (Results 1 – 5 of 5) 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/drivers/s390/cio/ |
| H A D | cmf.c | 172 [mbo] "d" (virt_to_phys(area)) in cmf_activate()
|