Home
last modified time | relevance | path

Searched refs:fops (Results 1 – 25 of 103) sorted by relevance

12345

/linux-2.4.37.9/fs/
Ddevices.c35 struct file_operations * fops; member
51 if (chrdevs[i].fops) { in get_device_list()
73 ret = fops_get(chrdevs[major].fops); in get_chrfops()
91 ret = fops_get(chrdevs[major].fops); in get_chrfops()
98 int register_chrdev(unsigned int major, const char * name, struct file_operations *fops) in register_chrdev() argument
103 if (chrdevs[major].fops == NULL) { in register_chrdev()
105 chrdevs[major].fops = fops; in register_chrdev()
116 if (chrdevs[major].fops && chrdevs[major].fops != fops) { in register_chrdev()
121 chrdevs[major].fops = fops; in register_chrdev()
131 if (!chrdevs[major].fops || strcmp(chrdevs[major].name, name)) { in unregister_chrdev()
[all …]
/linux-2.4.37.9/drivers/char/
Dfetchop.c194 struct node_fetchops *fops; in fetchop_alloc_page() local
200 fops = node_fetchops[nid]; in fetchop_alloc_page()
201 while (fops && (bit = find_first_zero_bit(fops->bits, fops->count)) < fops->count) { in fetchop_alloc_page()
202 if (test_and_set_bit(bit, fops->bits) == 0) { in fetchop_alloc_page()
204 maddr = fops->maddr + (bit<<PAGE_SHIFT); in fetchop_alloc_page()
373 struct node_fetchops *fops; in fetchop_read_proc() local
382 fops = node_fetchops[nid]; in fetchop_read_proc()
383 …len += sprintf(page + len, "%4d %7d %7d\n", nid, fops ? fops->count : 0, fops ? atomic_read(&fops-… in fetchop_read_proc()
415 struct node_fetchops *fops; in fetchop_build_memmap() local
420 fops = vmalloc(bytes); in fetchop_build_memmap()
[all …]
Dmisc.c116 new_fops = fops_get(c->fops); in misc_open()
126 if (c == &misc_list || (new_fops = fops_get(c->fops)) == NULL) in misc_open()
206 misc->fops, NULL); in misc_register()
Dmpc8xx_wdt.c158 .fops = &mpc8xx_wdt_fops,
Dindydog.c151 fops: &indydog_fops,
Dsoftdog.c212 fops: &softdog_fops,
Dadvantechwdt.c261 fops: &advwdt_fops,
Dgeodewdt.c198 .fops = &geodewdt_fops
Dscx200_wdt.c214 .fops = &scx200_wdt_fops,
/linux-2.4.37.9/drivers/char/drm/
Ddrm_stub.h37 struct file_operations *fops; member
44 int (*info_register)(const char *name, struct file_operations *fops,
56 if (!DRM(stub_list) || !DRM(stub_list)[minor].fops) return -ENODEV; in DRM()
58 filp->f_op = fops_get(DRM(stub_list)[minor].fops); in DRM()
73 static int DRM(stub_getminor)(const char *name, struct file_operations *fops, in DRM()
84 DRM(stub_list)[i].fops = NULL; in DRM()
88 if (!DRM(stub_list)[i].fops) { in DRM()
90 DRM(stub_list)[i].fops = fops; in DRM()
104 DRM(stub_list)[minor].fops = NULL; in DRM()
120 int DRM(stub_register)(const char *name, struct file_operations *fops, in DRM()
[all …]
/linux-2.4.37.9/drivers/sound/
Dsound_core.c72 …(struct sound_unit * s, struct sound_unit **list, struct file_operations *fops, int index, int low… in __sound_insert_unit() argument
108 s->unit_fops=fops; in __sound_insert_unit()
157 static int sound_insert_unit(struct sound_unit **list, struct file_operations *fops, int index, int… in sound_insert_unit() argument
167 r=__sound_insert_unit(s,list,fops,index,low,top); in sound_insert_unit()
182 S_IFCHR | mode, fops, NULL); in sound_insert_unit()
232 int register_sound_special(struct file_operations *fops, int unit) in register_sound_special() argument
286 return sound_insert_unit(&chains[unit&15], fops, -1, unit, unit+1, in register_sound_special()
302 int register_sound_mixer(struct file_operations *fops, int dev) in register_sound_mixer() argument
304 return sound_insert_unit(&chains[0], fops, dev, 0, 128, in register_sound_mixer()
320 int register_sound_midi(struct file_operations *fops, int dev) in register_sound_midi() argument
[all …]
/linux-2.4.37.9/include/linux/
Dsound.h30 extern int register_sound_special(struct file_operations *fops, int unit);
31 extern int register_sound_mixer(struct file_operations *fops, int dev);
32 extern int register_sound_midi(struct file_operations *fops, int dev);
33 extern int register_sound_dsp(struct file_operations *fops, int dev);
34 extern int register_sound_synth(struct file_operations *fops, int dev);
Ddevfs_fs_kernel.h98 struct file_operations *fops);
245 struct file_operations *fops) in devfs_register_chrdev() argument
247 return register_chrdev (major, name, fops); in devfs_register_chrdev()
Dfs.h1016 #define fops_get(fops) \ argument
1017 (((fops) && (fops)->owner) \
1018 ? ( try_inc_mod_count((fops)->owner) ? (fops) : NULL ) \
1019 : (fops))
1021 #define fops_put(fops) \ argument
1023 if ((fops) && (fops)->owner) \
1024 __MOD_DEC_USE_COUNT((fops)->owner); \
Dproc_fs.h178 mode_t mode, struct file_operations *fops) in proc_net_fops_create() argument
183 res->proc_fops = fops; in proc_net_fops_create()
Dmiscdevice.h46 struct file_operations *fops; member
/linux-2.4.37.9/fs/intermezzo/
Dfile.c151 struct file_operations *fops; in presto_file_open() local
200 fops = filter_c2cffops(cache->cache_filter); in presto_file_open()
201 if ( fops->open ) { in presto_file_open()
203 rc = fops->open(inode, file); in presto_file_open()
265 struct file_operations *fops; in presto_file_release() local
278 fops = filter_c2cffops(cache->cache_filter); in presto_file_release()
279 if (fops && fops->release) in presto_file_release()
280 rc = fops->release(inode, file); in presto_file_release()
368 struct file_operations *fops; in presto_file_write() local
445 fops = filter_c2cffops(cache->cache_filter); in presto_file_write()
[all …]
/linux-2.4.37.9/drivers/ide/raid/
Dataraid.c207 int ataraid_get_device(struct raid_device_operations *fops) in ataraid_get_device() argument
217 ataraid_ops[bit] = fops; in ataraid_get_device()
273 ataraid_gendisk.fops = &ataraid_fops; in ataraid_init()
Dataraid.h61 extern int ataraid_get_device(struct raid_device_operations *fops);
/linux-2.4.37.9/drivers/input/
Dinput.c316 if (handler->fops != NULL) in input_register_handler()
367 if (handler->fops != NULL) in input_unregister_handler()
378 if (!handler || !(new_fops = fops_get(handler->fops))) in input_open_file()
/linux-2.4.37.9/drivers/usb/
Ddrivers.c70 int minor = driver->fops ? driver->minor : -1; in usb_driver_read()
/linux-2.4.37.9/fs/proc/
Dgeneric.c409 struct file_operations *fops; in proc_kill_inodes() local
416 fops = filp->f_op; in proc_kill_inodes()
418 fops_put(fops); in proc_kill_inodes()
/linux-2.4.37.9/drivers/char/drm-4.0/
DMakefile19 lists.o lock.o ioctl.o fops.o vm.o dma.o ctxbitmap.o
/linux-2.4.37.9/fs/partitions/
Dcheck.c297 dev->fops, NULL); in devfs_register_partition()
335 S_IFBLK | S_IRUSR | S_IWUSR, dev->fops, NULL); in devfs_register_disc()
/linux-2.4.37.9/arch/ia64/sn/io/hwgdfs/
Dhcl.c427 struct file_operations *fops, in hwgraph_register() argument
437 minor, mode, fops, info); in hwgraph_register()

12345