/drivers/watchdog/ |
H A D | sbc_fitpc2_wdt.c | 8 * This file is licensed under the terms of the GNU General Public 69 static int fitpc2_wdt_open(struct inode *inode, struct file *file) argument 78 return nonseekable_open(inode, file); 81 static ssize_t fitpc2_wdt_write(struct file *file, const char *data, argument 120 static long fitpc2_wdt_ioctl(struct file *file, unsigned int cmd, argument 167 static int fitpc2_wdt_release(struct inode *inode, struct file *file) argument [all...] |
H A D | watchdog_dev.c | 39 #include <linux/fs.h> /* For file operations */ 282 * @file: file from VFS 285 * @ppos: pointer to the file offset 292 static ssize_t watchdog_write(struct file *file, const char __user *data, argument 295 struct watchdog_device *wdd = file->private_data; 324 * @file: file handle to the device 332 static long watchdog_ioctl(struct file *fil argument 411 watchdog_open(struct inode *inode, struct file *file) argument 462 watchdog_release(struct inode *inode, struct file *file) argument [all...] |
H A D | wdt285.c | 72 static int watchdog_open(struct inode *inode, struct file *file) argument 104 nonseekable_open(inode, file); 113 static int watchdog_release(struct inode *inode, struct file *file) argument 122 static ssize_t watchdog_write(struct file *file, const char __user *data, argument 139 static long watchdog_ioctl(struct file *file, unsigned int cmd, argument
|
/drivers/acpi/ |
H A D | ac.c | 78 static int acpi_ac_open_fs(struct inode *inode, struct file *file); 204 static int acpi_ac_open_fs(struct inode *inode, struct file *file) argument 206 return single_open(file, acpi_ac_seq_show, PDE_DATA(inode));
|
H A D | button.c | 133 static int acpi_button_state_open_fs(struct inode *inode, struct file *file) argument 135 return single_open(file, acpi_button_state_seq_show, PDE_DATA(inode));
|
/drivers/acpi/acpica/ |
H A D | utprint.c | 615 * PARAMETERS: file - File descriptor 621 * DESCRIPTION: Formatted output to a file using argument list pointer. 625 int acpi_ut_file_vprintf(ACPI_FILE file, const char *format, va_list args) argument 634 (void)acpi_os_write_file(file, acpi_gbl_print_buffer, length, 1); 644 * PARAMETERS: file - File descriptor 649 * DESCRIPTION: Formatted output to a file. 653 int acpi_ut_file_printf(ACPI_FILE file, const char *format, ...) argument 659 length = acpi_ut_file_vprintf(file, format, args);
|
/drivers/base/regmap/ |
H A D | regmap-debugfs.c | 39 static ssize_t regmap_name_read_file(struct file *file, argument 43 struct regmap *map = file->private_data; 255 static ssize_t regmap_map_read_file(struct file *file, char __user *user_buf, argument 258 struct regmap *map = file->private_data; 272 static ssize_t regmap_map_write_file(struct file *file, argument 280 struct regmap *map = file->private_data; 315 static ssize_t regmap_range_read_file(struct file *fil argument 331 regmap_reg_ranges_read_file(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 404 regmap_access_read_file(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument [all...] |
/drivers/block/aoe/ |
H A D | aoeblk.c | 157 static int aoe_debugfs_open(struct inode *inode, struct file *file) argument 159 return single_open(file, aoedisk_debugfs_show, inode->i_private); 208 pr_info("aoe: cannot create debugfs file for %s\n",
|
/drivers/bluetooth/ |
H A D | hci_ldisc.c | 506 * file pointer to open file object for device 512 static int hci_uart_tty_ioctl(struct tty_struct *tty, struct file * file, argument 558 err = n_tty_ioctl_helper(tty, file, cmd, arg); 568 static ssize_t hci_uart_tty_read(struct tty_struct *tty, struct file *file, argument 574 static ssize_t hci_uart_tty_write(struct tty_struct *tty, struct file *file, argument 581 struct file *fil [all...] |
H A D | hci_vhci.c | 260 static ssize_t vhci_read(struct file *file, argument 263 struct vhci_data *data = file->private_data; 278 if (file->f_flags & O_NONBLOCK) { 294 struct file *file = iocb->ki_filp; local 295 struct vhci_data *data = file->private_data; 300 static unsigned int vhci_poll(struct file *file, poll_table *wait) argument 302 struct vhci_data *data = file 320 vhci_open(struct inode *inode, struct file *file) argument 341 vhci_release(struct inode *inode, struct file *file) argument [all...] |
/drivers/char/ |
H A D | dsp56k.c | 21 * This file is subject to the terms and conditions of the GNU General Public 22 * License. See the file COPYING in the main directory of this archive 181 static ssize_t dsp56k_read(struct file *file, char __user *buf, size_t count, argument 184 struct inode *inode = file_inode(file); 244 static ssize_t dsp56k_write(struct file *file, const char __user *buf, size_t count, argument 247 struct inode *inode = file_inode(file); 306 static long dsp56k_ioctl(struct file *file, unsigne argument 426 dsp56k_open(struct inode *inode, struct file *file) argument 462 dsp56k_release(struct inode *inode, struct file *file) argument [all...] |
H A D | dtlk.c | 16 based on documentation in their User's Manual file and Developer's 66 #include <linux/dtlk.h> /* local header file for DoubleTalk values */ 90 static ssize_t dtlk_read(struct file *, char __user *, 92 static ssize_t dtlk_write(struct file *, const char __user *, 94 static unsigned int dtlk_poll(struct file *, poll_table *); 95 static int dtlk_open(struct inode *, struct file *); 96 static int dtlk_release(struct inode *, struct file *); 97 static long dtlk_ioctl(struct file *file, 125 static ssize_t dtlk_read(struct file *fil argument 158 dtlk_write(struct file *file, const char __user *buf, size_t count, loff_t * ppos) argument 231 dtlk_poll(struct file *file, poll_table * wait) argument 268 dtlk_ioctl(struct file *file, unsigned int cmd, unsigned long arg) argument 297 dtlk_open(struct inode *inode, struct file *file) argument 313 dtlk_release(struct inode *inode, struct file *file) argument [all...] |
H A D | genrtc.c | 16 * pseudo-file for status information. 174 * Now all the various file operations that we export. 176 static ssize_t gen_rtc_read(struct file *file, char __user *buf, argument 185 if (file->f_flags & O_NONBLOCK && !gen_rtc_irq_data) 207 static unsigned int gen_rtc_poll(struct file *file, argument 210 poll_wait(file, &gen_rtc_wait, wait); 266 static int gen_rtc_ioctl(struct file *file, argument 336 gen_rtc_unlocked_ioctl(struct file *file, unsigned int cmd, unsigned long arg) argument 354 gen_rtc_open(struct inode *inode, struct file *file) argument 370 gen_rtc_release(struct inode *inode, struct file *file) argument 459 gen_rtc_proc_open(struct inode *inode, struct file *file) argument [all...] |
H A D | msm_smd_pkt.c | 111 static int smd_pkt_read(struct file *file, char __user *buf, argument 122 smd_pkt_devp = file->private_data; 176 static int smd_pkt_write(struct file *file, const char __user *buf, argument 187 smd_pkt_devp = file->private_data; 218 static unsigned int smd_pkt_poll(struct file *file, poll_table *wait) argument 223 smd_pkt_devp = file->private_data; 228 poll_wait(file, 290 smd_pkt_open(struct inode *inode, struct file *file) argument 333 smd_pkt_release(struct inode *inode, struct file *file) argument [all...] |
H A D | mspec.c | 255 mspec_mmap(struct file *file, struct vm_area_struct *vma, argument 298 fetchop_mmap(struct file *file, struct vm_area_struct *vma) argument 300 return mspec_mmap(file, vma, MSPEC_FETCHOP); 304 cached_mmap(struct file *file, struct vm_area_struct *vma) argument 306 return mspec_mmap(file, vma, MSPEC_CACHED); 310 uncached_mmap(struct file *file, struc argument [all...] |
H A D | nwflash.c | 9 * - use *ppos as the file position, not file->f_pos. 95 static long flash_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) 122 static ssize_t flash_read(struct file *file, char __user *buf, size_t size, argument 142 static ssize_t flash_write(struct file *file, const char __user *buf, argument 268 * also note that seeking relative to the "end of file" isn't supported: 271 static loff_t flash_llseek(struct file *file, loff_ argument [all...] |
H A D | ps3flash.c | 98 static loff_t ps3flash_llseek(struct file *file, loff_t offset, int origin) argument 101 return generic_file_llseek_size(file, offset, origin, MAX_LFS_FILESIZE, 249 static ssize_t ps3flash_user_read(struct file *file, char __user *buf, argument 255 static ssize_t ps3flash_user_write(struct file *file, const char __user *buf, argument 284 static int ps3flash_flush(struct file *file, fl_owner_t id) argument 289 static int ps3flash_fsync(struct file *fil argument [all...] |
H A D | raw.c | 46 * We just rewrite the i_mapping for the /dev/raw/rawN file descriptor to 47 * point at the blockdev's address_space and set the file handle to use 53 static int raw_open(struct inode *inode, struct file *filp) 100 static int raw_release(struct inode *inode, struct file *filp) 122 raw_ioctl(struct file *filp, unsigned int command, unsigned long arg) 209 static long raw_ctl_ioctl(struct file *filp, unsigned int command, 250 static long raw_ctl_compat_ioctl(struct file *file, unsigned int cmd, argument
|
H A D | tb0219.c | 161 static ssize_t tanbac_tb0219_read(struct file *file, char __user *buf, size_t len, argument 167 minor = iminor(file_inode(file)); 194 static ssize_t tanbac_tb0219_write(struct file *file, const char __user *data, argument 203 minor = iminor(file_inode(file)); 235 static int tanbac_tb0219_open(struct inode *inode, struct file *file) argument 245 return nonseekable_open(inode, file); 253 static int tanbac_tb0219_release(struct inode *inode, struct file *fil argument [all...] |
H A D | tile-srom.c | 134 static int srom_open(struct inode *inode, struct file *filp) 148 static int srom_release(struct inode *inode, struct file *filp) 174 static ssize_t srom_read(struct file *filp, char __user *buf, 229 static ssize_t srom_write(struct file *filp, const char __user *buf, 276 loff_t srom_llseek(struct file *file, loff_t offset, int origin) argument 278 struct srom_dev *srom = file->private_data; 279 return fixed_size_llseek(file, offset, origin, srom->total_size);
|
H A D | toshiba.c | 92 static long tosh_ioctl(struct file *, unsigned int, 257 static long tosh_ioctl(struct file *fp, unsigned int cmd, unsigned long arg) 330 static int proc_toshiba_open(struct inode *inode, struct file *file) argument 332 return single_open(file, proc_toshiba_show, NULL); 518 /* register the device file */
|
/drivers/char/tpm/ |
H A D | tpm_eventlog.c | 222 struct file *file) 224 struct seq_file *seq = file->private_data; 232 return seq_release(inode, file); 282 struct file *file) 295 /* now register seq file */ 296 err = seq_open(file, &tpm_ascii_b_measurments_seqops); 298 seq = file->private_data; 320 struct file *fil 221 tpm_bios_measurements_release(struct inode *inode, struct file *file) argument 281 tpm_ascii_bios_measurements_open(struct inode *inode, struct file *file) argument 319 tpm_binary_bios_measurements_open(struct inode *inode, struct file *file) argument [all...] |
/drivers/crypto/qat/qat_common/ |
H A D | adf_cfg.c | 2 This file is provided under a dual BSD/GPLv2 license. When using or 3 redistributing this file, you may do so under either license. 98 static int qat_dev_cfg_open(struct inode *inode, struct file *file) argument 100 int ret = seq_open(file, &qat_dev_cfg_sops); 103 struct seq_file *seq_f = file->private_data;
|
/drivers/gpu/drm/armada/ |
H A D | armada_gem.c | 238 int armada_gem_dumb_create(struct drm_file *file, struct drm_device *dev, argument 257 ret = drm_gem_handle_create(file, &dobj->obj, &handle); 270 int armada_gem_dumb_map_offset(struct drm_file *file, struct drm_device *dev, argument 277 obj = armada_gem_object_lookup(dev, file, handle); 303 int armada_gem_dumb_destroy(struct drm_file *file, struct drm_device *dev, argument 306 return drm_gem_handle_delete(file, handle); 311 struct drm_file *file) 328 ret = drm_gem_handle_create(file, &dobj->obj, &handle); 343 struct drm_file *file) 349 dobj = armada_gem_object_lookup(dev, file, arg 310 armada_gem_create_ioctl(struct drm_device *dev, void *data, struct drm_file *file) argument 342 armada_gem_mmap_ioctl(struct drm_device *dev, void *data, struct drm_file *file) argument 369 armada_gem_pwrite_ioctl(struct drm_device *dev, void *data, struct drm_file *file) argument [all...] |
/drivers/gpu/drm/ast/ |
H A D | ast_main.c | 518 int ast_dumb_create(struct drm_file *file, argument 534 ret = drm_gem_handle_create(file, gobj, &handle); 568 ast_dumb_mmap_offset(struct drm_file *file, argument 578 obj = drm_gem_object_lookup(dev, file, handle);
|