Lines Matching defs:msc
74 struct msc *msc; member
94 struct msc *msc; member
129 struct msc { struct
140 struct msc_window *cur_win; argument
141 unsigned long nr_pages;
142 unsigned long single_sz;
143 unsigned int single_wrap : 1;
144 void *base;
145 dma_addr_t base_addr;
146 u32 orig_addr;
147 u32 orig_sz;
150 atomic_t user_count;
152 atomic_t mmap_count;
153 struct mutex buf_mutex;
155 struct list_head iter_list;
158 unsigned int enabled : 1,
159 wrap : 1,
160 do_irq : 1;
161 unsigned int mode;
162 unsigned int burst_len;
163 unsigned int index;
350 msc_find_window(struct msc *msc, struct sg_table *sgt, bool nonempty) in msc_find_window()
387 static struct msc_window *msc_oldest_window(struct msc *msc) in msc_oldest_window()
436 static struct msc_iter *msc_iter_install(struct msc *msc) in msc_iter_install()
467 static void msc_iter_remove(struct msc_iter *iter, struct msc *msc) in msc_iter_remove()
494 static int msc_iter_win_start(struct msc_iter *iter, struct msc *msc) in msc_iter_win_start()
577 struct msc *msc = iter->msc; in msc_buffer_iterate() local
650 static void msc_buffer_clear_hw_header(struct msc *msc) in msc_buffer_clear_hw_header()
668 static int intel_th_msu_init(struct msc *msc) in intel_th_msu_init()
693 static void intel_th_msu_deinit(struct msc *msc) in intel_th_msu_deinit()
756 static int msc_configure(struct msc *msc) in msc_configure()
814 static void msc_disable(struct msc *msc) in msc_disable()
865 struct msc *msc = dev_get_drvdata(&thdev->dev); in intel_th_msc_activate() local
887 struct msc *msc = dev_get_drvdata(&thdev->dev); in intel_th_msc_deactivate() local
907 static int msc_buffer_contig_alloc(struct msc *msc, unsigned long size) in msc_buffer_contig_alloc()
954 static void msc_buffer_contig_free(struct msc *msc) in msc_buffer_contig_free()
979 static struct page *msc_buffer_contig_get_page(struct msc *msc, in msc_buffer_contig_get_page()
1061 static int msc_buffer_win_alloc(struct msc *msc, unsigned int nr_blocks) in msc_buffer_win_alloc()
1117 static void __msc_buffer_win_free(struct msc *msc, struct msc_window *win) in __msc_buffer_win_free()
1140 static void msc_buffer_win_free(struct msc *msc, struct msc_window *win) in msc_buffer_win_free()
1167 static void msc_buffer_relink(struct msc *msc) in msc_buffer_relink()
1221 static void msc_buffer_multi_free(struct msc *msc) in msc_buffer_multi_free()
1229 static int msc_buffer_multi_alloc(struct msc *msc, unsigned long *nr_pages, in msc_buffer_multi_alloc()
1256 static void msc_buffer_free(struct msc *msc) in msc_buffer_free()
1280 static int msc_buffer_alloc(struct msc *msc, unsigned long *nr_pages, in msc_buffer_alloc()
1322 static int msc_buffer_unlocked_free_unless_used(struct msc *msc) in msc_buffer_unlocked_free_unless_used()
1345 static int msc_buffer_free_unless_used(struct msc *msc) in msc_buffer_free_unless_used()
1366 static struct page *msc_buffer_get_page(struct msc *msc, unsigned long pgoff) in msc_buffer_get_page()
1432 struct msc *msc = dev_get_drvdata(&thdev->dev); in intel_th_msc_open() local
1450 struct msc *msc = iter->msc; in intel_th_msc_release() local
1458 msc_single_to_user(struct msc *msc, char __user *buf, loff_t off, size_t len) in msc_single_to_user()
1497 struct msc *msc = iter->msc; in intel_th_msc_read() local
1549 struct msc *msc = iter->msc; in msc_mmap_open() local
1557 struct msc *msc = iter->msc; in msc_mmap_close() local
1582 struct msc *msc = iter->msc; in msc_mmap_fault() local
1605 struct msc *msc = iter->msc; in intel_th_msc_mmap() local
1649 struct msc *msc = dev_get_drvdata(&thdev->dev); in intel_th_msc_wait_empty() local
1663 static int intel_th_msc_init(struct msc *msc) in intel_th_msc_init()
1679 static int msc_win_switch(struct msc *msc) in msc_win_switch()
1708 struct msc *msc = dev_get_drvdata(dev); in intel_th_msc_window_unlock() local
1724 struct msc *msc = container_of(work, struct msc, work); in msc_work() local
1731 struct msc *msc = dev_get_drvdata(&thdev->dev); in intel_th_msc_interrupt() local
1785 struct msc *msc = dev_get_drvdata(dev); in wrap_show() local
1794 struct msc *msc = dev_get_drvdata(dev); in wrap_store() local
1809 static void msc_buffer_unassign(struct msc *msc) in msc_buffer_unassign()
1825 struct msc *msc = dev_get_drvdata(dev); in mode_show() local
1843 struct msc *msc = dev_get_drvdata(dev); in mode_store() local
1923 struct msc *msc = dev_get_drvdata(dev); in nr_pages_show() local
1950 struct msc *msc = dev_get_drvdata(dev); in nr_pages_store() local
2022 struct msc *msc = dev_get_drvdata(dev); in win_switch_store() local
2065 struct msc *msc; in intel_th_msc_probe() local
2103 struct msc *msc = dev_get_drvdata(&thdev->dev); in intel_th_msc_remove() local