Searched defs:file (Results 1 - 25 of 874) sorted by path

1234567891011>>

/drivers/acpi/
H A Dac.c78 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 Dbattery.c915 static ssize_t acpi_battery_write_alarm(struct file *file, argument
921 struct seq_file *m = file->private_data;
966 static int acpi_battery_##_name##_open_fs(struct inode *inode, struct file *file) \
968 return single_open(file, acpi_battery_read_##_name, PDE_DATA(inode)); \
H A Dbgrt.c54 static ssize_t image_read(struct file *file, struct kobject *kobj, argument
H A Dbutton.c133 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));
H A Dcustom_method.c22 static ssize_t cm_write(struct file *file, const char __user * user_buf, argument
H A Dosl.c604 struct cpio_data file; local
610 file = find_cpio_data(cpio_path, data, size, &offset);
611 if (!file.data)
617 if (file.size < sizeof(struct acpi_table_header)) {
619 cpio_path, file.name);
623 table = file.data;
631 cpio_path, file.name);
634 if (file.size != table->length) {
636 cpio_path, file.name);
639 if (acpi_table_checksum(file
[all...]
H A Dproc.c15 * this file provides support for:
94 acpi_system_write_wakeup_device(struct file *file, argument
132 acpi_system_wakeup_device_open_fs(struct inode *inode, struct file *file) argument
134 return single_open(file, acpi_system_wakeup_device_seq_show,
/drivers/acpi/acpica/
H A Dutbuffer.c208 * PARAMETERS: file - File descriptor
220 * DESCRIPTION: Generic dump buffer in both hex and ascii to a file.
225 acpi_ut_dump_buffer_to_file(ACPI_FILE file, argument
234 acpi_ut_file_printf(file,
249 acpi_ut_file_printf(file, "%6.4X: ", (base_offset + i));
258 acpi_ut_file_printf(file, "%*s",
268 acpi_ut_file_printf(file, "%02X ",
276 acpi_ut_file_printf(file, "%04X ", temp32);
283 acpi_ut_file_printf(file, "%08X ", temp32);
290 acpi_ut_file_printf(file, "
[all...]
H A Dutfileio.c3 * Module Name: utfileio - simple file I/O routines
72 * file_length - Length of the file that contains the table
76 * DESCRIPTION: Check table for text mode file corruption where all linefeed
118 * meaning that the table was treated as a text file somewhere.
140 * DESCRIPTION: Load the DSDT from the file pointer
155 /* Get the file size */
197 ("TableHeader length [0x%X] greater than the input file size [0x%X]\n",
274 acpi_os_printf("Error - could not read the table file\n");
290 * DESCRIPTION: Get an ACPI table from a file
297 FILE *file; local
[all...]
H A Dutprint.c615 * 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/acpi/apei/
H A Deinj.c610 static int available_error_type_open(struct inode *inode, struct file *file) argument
612 return single_open(file, available_error_type_show, NULL);
H A Derst-dbg.c5 * information to and from a persistent store. This file provide the
44 static int erst_dbg_open(struct inode *inode, struct file *file) argument
51 pos = (int *)&file->private_data;
57 return nonseekable_open(inode, file);
60 static int erst_dbg_release(struct inode *inode, struct file *file) argument
67 static long erst_dbg_ioctl(struct file *f, unsigned int cmd, unsigned long arg)
94 static ssize_t erst_dbg_read(struct file *filp, char __user *ubuf,
164 static ssize_t erst_dbg_write(struct file *fil
[all...]
/drivers/base/
H A Dfirmware_class.c24 #include <linux/file.h>
289 static int fw_read_file_contents(struct file *file, struct firmware_buf *fw_buf) argument
295 if (!S_ISREG(file_inode(file)->i_mode))
297 size = i_size_read(file_inode(file));
303 rc = kernel_read(file, 0, buf, size);
309 rc = security_kernel_fw_from_file(file, buf, size);
328 struct file *file; local
336 file
[all...]
/drivers/base/power/
H A Ddomain.c6 * This file is released under the GPLv2.
2345 static int pm_genpd_summary_open(struct inode *inode, struct file *file) argument
2347 return single_open(file, pm_genpd_summary_show, NULL);
H A Dtrace.c68 * - 0-996: file + line number
79 static int set_magic_time(unsigned int user, unsigned int file, unsigned int device) argument
81 unsigned int n = user + USERHASH*(file + FILEHASH*device);
160 const char *file = *(const char **)(tracedata + 2); local
164 file_hash_value = hash_string(lineno, file, FILEHASH);
179 const char *file = *(const char **)(tracedata + 2); local
180 unsigned int hash = hash_string(lineno, file, FILEHASH);
183 pr_info(" hash matches %s:%u\n", file, lineno);
251 unsigned int user, file, dev; local
255 file
[all...]
H A Dwakeup.c6 * This file is released under the GPLv2.
933 static int wakeup_sources_stats_open(struct inode *inode, struct file *file) argument
935 return single_open(file, wakeup_sources_stats_show, NULL);
/drivers/base/regmap/
H A Dregcache-rbtree.c181 static int rbtree_open(struct inode *inode, struct file *file) argument
183 return single_open(file, rbtree_show, inode->i_private);
H A Dregmap-debugfs.c39 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/
H A DDAC960.c6454 static int dac960_proc_open(struct inode *inode, struct file *file) argument
6456 return single_open(file, dac960_proc_show, NULL);
6474 static int dac960_initial_status_proc_open(struct inode *inode, struct file *file) argument
6476 return single_open(file, dac960_initial_status_proc_show, PDE_DATA(inode));
6520 static int dac960_current_status_proc_open(struct inode *inode, struct file *file) argument
6522 return single_open(file, dac960_current_status_proc_show, PDE_DATA(inode));
6541 static int dac960_user_command_proc_open(struct inode *inode, struct file *fil argument
6546 dac960_user_command_proc_write(struct file *file, const char __user *Buffer, size_t Count, loff_t *pos) argument
6623 DAC960_gam_ioctl(struct file *file, unsigned int Request, unsigned long Argument) argument
[all...]
H A Dcciss.c494 static int cciss_seq_open(struct inode *inode, struct file *file) argument
496 int ret = seq_open(file, &cciss_seq_ops);
497 struct seq_file *seq = file->private_data;
506 cciss_proc_write(struct file *file, const char __user *buf, argument
530 struct seq_file *seq = file->private_data;
H A Dcpqarray.c214 * Get us a file in /proc/array that says something about each controller.
297 static int ida_proc_open(struct inode *inode, struct file *file) argument
299 return single_open(file, ida_proc_show, PDE_DATA(inode));
/drivers/block/aoe/
H A Daoeblk.c157 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/block/drbd/
H A Ddrbd_actlog.c4 This file is part of DRBD by Philipp Reisner and Lars Ellenberg.
21 along with drbd; see the file COPYING. If not, write to
831 const char *file, const unsigned int line)
829 __drbd_change_sync(struct drbd_device *device, sector_t sector, int size, enum update_sync_bits_mode mode, const char *file, const unsigned int line) argument
H A Ddrbd_debugfs.c16 * Whenever you change the file format, remember to bump the version. *
377 /* BUMP me if you change the file format/content/presentation */
422 /* simple_positive(file->f_dentry) respectively debugfs_positive(),
431 static int drbd_single_open(struct file *file, int (*show)(struct seq_file *, void *), argument
440 parent = file->f_dentry->d_parent;
447 if (debugfs_positive(file->f_dentry)
452 ret = single_open(file, show, data);
460 static int in_flight_summary_open(struct inode *inode, struct file *file) argument
467 in_flight_summary_release(struct inode *inode, struct file *file) argument
583 callback_history_open(struct inode *inode, struct file *file) argument
590 callback_history_release(struct inode *inode, struct file *file) argument
630 connection_oldest_requests_open(struct inode *inode, struct file *file) argument
637 connection_oldest_requests_release(struct inode *inode, struct file *file) argument
904 drbd_version_open(struct inode *inode, struct file *file) argument
[all...]
H A Ddrbd_proc.c4 This file is part of DRBD by Philipp Reisner and Lars Ellenberg.
21 along with drbd; see the file COPYING. If not, write to
30 #include <linux/file.h>
36 static int drbd_proc_open(struct inode *inode, struct file *file);
37 static int drbd_proc_release(struct inode *inode, struct file *file);
349 static int drbd_proc_open(struct inode *inode, struct file *file) argument
354 err = single_open(file, drbd_seq_sho
362 drbd_proc_release(struct inode *inode, struct file *file) argument
[all...]

Completed in 273 milliseconds

1234567891011>>