Home
last modified time | relevance | path

Searched refs:mdi (Results 1 - 18 of 18) sorted by relevance

/kernel/linux/linux-5.10/drivers/media/mc/
H A Dmc-dev-allocator.c44 struct media_device_instance *mdi = in media_device_instance_release() local
47 dev_dbg(mdi->mdev.dev, "%s: releasing Media Device\n", __func__); in media_device_instance_release()
51 media_device_unregister(&mdi->mdev); in media_device_instance_release()
52 media_device_cleanup(&mdi->mdev); in media_device_instance_release()
54 list_del(&mdi->list); in media_device_instance_release()
57 kfree(mdi); in media_device_instance_release()
65 struct media_device_instance *mdi; in __media_device_get() local
67 list_for_each_entry(mdi, &media_device_list, list) { in __media_device_get()
68 if (mdi->mdev.dev != dev) in __media_device_get()
71 kref_get(&mdi in __media_device_get()
122 struct media_device_instance *mdi = to_media_device_instance(mdev); media_device_delete() local
[all...]
/kernel/linux/linux-6.6/drivers/media/mc/
H A Dmc-dev-allocator.c44 struct media_device_instance *mdi = in media_device_instance_release() local
47 dev_dbg(mdi->mdev.dev, "%s: releasing Media Device\n", __func__); in media_device_instance_release()
51 media_device_unregister(&mdi->mdev); in media_device_instance_release()
52 media_device_cleanup(&mdi->mdev); in media_device_instance_release()
54 list_del(&mdi->list); in media_device_instance_release()
57 kfree(mdi); in media_device_instance_release()
65 struct media_device_instance *mdi; in __media_device_get() local
67 list_for_each_entry(mdi, &media_device_list, list) { in __media_device_get()
68 if (mdi->mdev.dev != dev) in __media_device_get()
71 kref_get(&mdi in __media_device_get()
122 struct media_device_instance *mdi = to_media_device_instance(mdev); media_device_delete() local
[all...]
/kernel/linux/linux-5.10/fs/hmdfs/
H A Dhmdfs_merge_view.h119 bool is_valid_comrade(struct hmdfs_dentry_info_merge *mdi, umode_t mode);
120 int merge_lookup_async(struct hmdfs_dentry_info_merge *mdi,
156 static inline bool is_comrade_list_empty(struct hmdfs_dentry_info_merge *mdi) in is_comrade_list_empty() argument
160 mutex_lock(&mdi->comrade_list_lock); in is_comrade_list_empty()
161 ret = list_empty(&mdi->comrade_list); in is_comrade_list_empty()
162 mutex_unlock(&mdi->comrade_list_lock); in is_comrade_list_empty()
167 static inline bool has_merge_lookup_work(struct hmdfs_dentry_info_merge *mdi) in has_merge_lookup_work() argument
171 mutex_lock(&mdi->work_lock); in has_merge_lookup_work()
172 ret = (mdi->work_count != 0); in has_merge_lookup_work()
173 mutex_unlock(&mdi in has_merge_lookup_work()
178 is_merge_lookup_end(struct hmdfs_dentry_info_merge *mdi) is_merge_lookup_end() argument
[all...]
H A Dinode_merge.c376 bool is_valid_comrade(struct hmdfs_dentry_info_merge *mdi, umode_t mode) in is_valid_comrade() argument
378 if (mdi->type == DT_UNKNOWN) { in is_valid_comrade()
379 mdi->type = S_ISDIR(mode) ? DT_DIR : DT_REG; in is_valid_comrade()
383 if (mdi->type == DT_DIR && S_ISDIR(mode)) { in is_valid_comrade()
387 if (mdi->type == DT_REG && list_empty(&mdi->comrade_list) && in is_valid_comrade()
399 struct hmdfs_dentry_info_merge *mdi; in merge_lookup_work_func() local
403 mdi = container_of(ml_work->wait_queue, struct hmdfs_dentry_info_merge, in merge_lookup_work_func()
411 mutex_lock(&mdi->work_lock); in merge_lookup_work_func()
415 mutex_lock(&mdi in merge_lookup_work_func()
435 merge_lookup_async(struct hmdfs_dentry_info_merge *mdi, struct hmdfs_sb_info *sbi, int devid, const char *name, unsigned int flags) merge_lookup_async() argument
486 struct hmdfs_dentry_info_merge *mdi = hmdfs_dm(dentry); lookup_merge_normal() local
678 struct hmdfs_dentry_info_merge *mdi = NULL; init_hmdfs_dentry_info_merge() local
[all...]
H A Dinode_cloud_merge.c122 static void merge_lookup_sync(struct hmdfs_dentry_info_merge *mdi, in merge_lookup_sync() argument
134 mutex_lock(&mdi->comrade_list_lock); in merge_lookup_sync()
136 if (!is_valid_comrade(mdi, hmdfs_cm(comrade))) in merge_lookup_sync()
139 link_comrade(&mdi->comrade_list, comrade); in merge_lookup_sync()
141 mutex_unlock(&mdi->comrade_list_lock); in merge_lookup_sync()
149 struct hmdfs_dentry_info_merge *mdi = hmdfs_dm(dentry); in lookup_merge_normal() local
153 rname = hmdfs_get_real_dname(dentry, &devid, &mdi->type); in lookup_merge_normal()
170 if (mdi->type != DT_REG || devid == 0) { in lookup_merge_normal()
173 merge_lookup_sync(mdi, sbi, 0, cpath, flags); in lookup_merge_normal()
175 if (mdi in lookup_merge_normal()
[all...]
H A Dhmdfs_dentryfile.c286 struct hmdfs_dentry_info_merge *mdi = NULL; in hmdfs_merge_dentry_path_raw() local
290 mdi = hmdfs_dm(d); in hmdfs_merge_dentry_path_raw()
298 while (mdi->dentry_type != HMDFS_LAYER_FIRST_MERGE && in hmdfs_merge_dentry_path_raw()
299 mdi->dentry_type != HMDFS_LAYER_FIRST_MERGE_CLOUD) { in hmdfs_merge_dentry_path_raw()
308 mdi = hmdfs_dm(dentry); in hmdfs_merge_dentry_path_raw()
/kernel/linux/linux-6.6/fs/hmdfs/
H A Dhmdfs_merge_view.h119 bool is_valid_comrade(struct hmdfs_dentry_info_merge *mdi, umode_t mode);
120 int merge_lookup_async(struct hmdfs_dentry_info_merge *mdi,
156 static inline bool is_comrade_list_empty(struct hmdfs_dentry_info_merge *mdi) in is_comrade_list_empty() argument
160 mutex_lock(&mdi->comrade_list_lock); in is_comrade_list_empty()
161 ret = list_empty(&mdi->comrade_list); in is_comrade_list_empty()
162 mutex_unlock(&mdi->comrade_list_lock); in is_comrade_list_empty()
167 static inline bool has_merge_lookup_work(struct hmdfs_dentry_info_merge *mdi) in has_merge_lookup_work() argument
171 mutex_lock(&mdi->work_lock); in has_merge_lookup_work()
172 ret = (mdi->work_count != 0); in has_merge_lookup_work()
173 mutex_unlock(&mdi in has_merge_lookup_work()
178 is_merge_lookup_end(struct hmdfs_dentry_info_merge *mdi) is_merge_lookup_end() argument
[all...]
H A Dinode_merge.c376 bool is_valid_comrade(struct hmdfs_dentry_info_merge *mdi, umode_t mode) in is_valid_comrade() argument
378 if (mdi->type == DT_UNKNOWN) { in is_valid_comrade()
379 mdi->type = S_ISDIR(mode) ? DT_DIR : DT_REG; in is_valid_comrade()
383 if (mdi->type == DT_DIR && S_ISDIR(mode)) { in is_valid_comrade()
387 if (mdi->type == DT_REG && list_empty(&mdi->comrade_list) && in is_valid_comrade()
399 struct hmdfs_dentry_info_merge *mdi; in merge_lookup_work_func() local
403 mdi = container_of(ml_work->wait_queue, struct hmdfs_dentry_info_merge, in merge_lookup_work_func()
411 mutex_lock(&mdi->work_lock); in merge_lookup_work_func()
415 mutex_lock(&mdi in merge_lookup_work_func()
435 merge_lookup_async(struct hmdfs_dentry_info_merge *mdi, struct hmdfs_sb_info *sbi, int devid, const char *name, unsigned int flags) merge_lookup_async() argument
486 struct hmdfs_dentry_info_merge *mdi = hmdfs_dm(dentry); lookup_merge_normal() local
678 struct hmdfs_dentry_info_merge *mdi = NULL; init_hmdfs_dentry_info_merge() local
[all...]
H A Dinode_cloud_merge.c122 static void merge_lookup_sync(struct hmdfs_dentry_info_merge *mdi, in merge_lookup_sync() argument
134 mutex_lock(&mdi->comrade_list_lock); in merge_lookup_sync()
136 if (!is_valid_comrade(mdi, hmdfs_cm(comrade))) in merge_lookup_sync()
139 link_comrade(&mdi->comrade_list, comrade); in merge_lookup_sync()
141 mutex_unlock(&mdi->comrade_list_lock); in merge_lookup_sync()
149 struct hmdfs_dentry_info_merge *mdi = hmdfs_dm(dentry); in lookup_merge_normal() local
153 rname = hmdfs_get_real_dname(dentry, &devid, &mdi->type); in lookup_merge_normal()
170 if (mdi->type != DT_REG || devid == 0) { in lookup_merge_normal()
173 merge_lookup_sync(mdi, sbi, 0, cpath, flags); in lookup_merge_normal()
175 if (mdi in lookup_merge_normal()
[all...]
H A Dhmdfs_dentryfile.c287 struct hmdfs_dentry_info_merge *mdi = NULL; in hmdfs_merge_dentry_path_raw() local
291 mdi = hmdfs_dm(d); in hmdfs_merge_dentry_path_raw()
299 while (mdi->dentry_type != HMDFS_LAYER_FIRST_MERGE && in hmdfs_merge_dentry_path_raw()
300 mdi->dentry_type != HMDFS_LAYER_FIRST_MERGE_CLOUD) { in hmdfs_merge_dentry_path_raw()
309 mdi = hmdfs_dm(dentry); in hmdfs_merge_dentry_path_raw()
/kernel/linux/linux-5.10/tools/testing/selftests/media_tests/
H A Dmedia_device_open.c44 struct media_device_info mdi; in main() local
76 ret = ioctl(fd, MEDIA_IOC_DEVICE_INFO, &mdi); in main()
81 mdi.model, mdi.driver); in main()
H A Dmedia_device_test.c49 struct media_device_info mdi; in main() local
94 ret = ioctl(fd, MEDIA_IOC_DEVICE_INFO, &mdi); in main()
99 mdi.model, mdi.driver, count); in main()
/kernel/linux/linux-6.6/tools/testing/selftests/media_tests/
H A Dmedia_device_open.c44 struct media_device_info mdi; in main() local
76 ret = ioctl(fd, MEDIA_IOC_DEVICE_INFO, &mdi); in main()
81 mdi.model, mdi.driver); in main()
H A Dmedia_device_test.c49 struct media_device_info mdi; in main() local
94 ret = ioctl(fd, MEDIA_IOC_DEVICE_INFO, &mdi); in main()
99 mdi.model, mdi.driver, count); in main()
/kernel/linux/linux-5.10/fs/nilfs2/
H A Dmdt.c471 struct nilfs_mdt_info *mdi = NILFS_MDT(inode); in nilfs_mdt_clear() local
472 struct nilfs_shadow_map *shadow = mdi->mi_shadow; in nilfs_mdt_clear()
474 if (mdi->mi_palloc_cache) in nilfs_mdt_clear()
482 mdi->mi_shadow = NULL; in nilfs_mdt_clear()
492 struct nilfs_mdt_info *mdi = NILFS_MDT(inode); in nilfs_mdt_destroy() local
494 kfree(mdi->mi_bgl); /* kfree(NULL) is safe */ in nilfs_mdt_destroy()
495 kfree(mdi); in nilfs_mdt_destroy()
H A Dinode.c1147 struct nilfs_mdt_info *mdi = NILFS_MDT(inode); in nilfs_dirty_inode() local
1155 if (mdi) { in nilfs_dirty_inode()
/kernel/linux/linux-6.6/fs/nilfs2/
H A Dmdt.c474 struct nilfs_mdt_info *mdi = NILFS_MDT(inode); in nilfs_mdt_clear() local
475 struct nilfs_shadow_map *shadow = mdi->mi_shadow; in nilfs_mdt_clear()
477 if (mdi->mi_palloc_cache) in nilfs_mdt_clear()
485 mdi->mi_shadow = NULL; in nilfs_mdt_clear()
495 struct nilfs_mdt_info *mdi = NILFS_MDT(inode); in nilfs_mdt_destroy() local
497 kfree(mdi->mi_bgl); /* kfree(NULL) is safe */ in nilfs_mdt_destroy()
498 kfree(mdi); in nilfs_mdt_destroy()
H A Dinode.c1146 struct nilfs_mdt_info *mdi = NILFS_MDT(inode); in nilfs_dirty_inode() local
1154 if (mdi) { in nilfs_dirty_inode()

Completed in 23 milliseconds