Lines Matching refs:file

160 void qdf_debugfs_printf(qdf_debugfs_file_t file, const char *f, ...)  in qdf_debugfs_printf()  argument
165 seq_vprintf(file, f, args); in qdf_debugfs_printf()
173 void qdf_debugfs_hexdump(qdf_debugfs_file_t file, const uint8_t *buf, in qdf_debugfs_hexdump() argument
176 seq_hex_dump(file, "", DUMP_PREFIX_OFFSET, rowsize, groupsize, buf, len, in qdf_debugfs_hexdump()
183 void qdf_debugfs_hexdump(qdf_debugfs_file_t file, const uint8_t *buf, in qdf_debugfs_hexdump() argument
191 while (remaining > 0 && (file->size > file->count)) { in qdf_debugfs_hexdump()
192 seq_printf(file, "%.8x: ", prefix); in qdf_debugfs_hexdump()
195 dstlen = seq_get_buf(file, &dst); in qdf_debugfs_hexdump()
199 seq_commit(file, commitlen); in qdf_debugfs_hexdump()
200 seq_putc(file, '\n'); in qdf_debugfs_hexdump()
211 bool qdf_debugfs_overflow(qdf_debugfs_file_t file) in qdf_debugfs_overflow() argument
213 return seq_has_overflowed(file); in qdf_debugfs_overflow()
218 void qdf_debugfs_write(qdf_debugfs_file_t file, const uint8_t *buf, in qdf_debugfs_write() argument
221 seq_write(file, buf, len); in qdf_debugfs_write()
233 static int qdf_seq_open(struct inode *inode, struct file *file) in qdf_seq_open() argument
244 rc = seq_open(file, &__qdf_debugfs_seq_ops); in qdf_seq_open()
247 seq = file->private_data; in qdf_seq_open()
255 static ssize_t qdf_seq_write(struct file *filp, const char __user *ubuf, in qdf_seq_write()
316 qdf_dentry_t file; in qdf_debugfs_create_file() local
326 file = debugfs_create_file(name, filemode, parent, fops, in qdf_debugfs_create_file()
329 if (IS_ERR_OR_NULL(file)) { in qdf_debugfs_create_file()
331 "%s creation failed 0x%pK", name, file); in qdf_debugfs_create_file()
332 file = NULL; in qdf_debugfs_create_file()
335 return file; in qdf_debugfs_create_file()
433 static int qdf_debugfs_string_open(struct inode *inode, struct file *file) in qdf_debugfs_string_open() argument
435 return single_open(file, qdf_debugfs_string_show, inode->i_private); in qdf_debugfs_string_open()
492 static int qdf_debugfs_single_open(struct inode *inode, struct file *file) in qdf_debugfs_single_open() argument
494 return single_open(file, qdf_debugfs_single_show, in qdf_debugfs_single_open()
511 qdf_dentry_t file; in qdf_debugfs_create_file_simplified() local
521 file = debugfs_create_file(name, filemode, parent, fops, in qdf_debugfs_create_file_simplified()
524 if (IS_ERR_OR_NULL(file)) { in qdf_debugfs_create_file_simplified()
526 "%s creation failed 0x%pK", name, file); in qdf_debugfs_create_file_simplified()
527 file = NULL; in qdf_debugfs_create_file_simplified()
530 return file; in qdf_debugfs_create_file_simplified()
536 struct seq_file *file = priv; in qdf_debugfs_printer() local
540 seq_vprintf(file, fmt, args); in qdf_debugfs_printer()
541 seq_puts(file, "\n"); in qdf_debugfs_printer()
562 qdf_dentry_t file; in qdf_debugfs_create_entry() local
572 file = debugfs_create_file(name, filemode, parent, data, fops); in qdf_debugfs_create_entry()
574 if (IS_ERR_OR_NULL(file)) { in qdf_debugfs_create_entry()
576 "%s creation failed 0x%pK", name, file); in qdf_debugfs_create_entry()
577 file = NULL; in qdf_debugfs_create_entry()
580 return file; in qdf_debugfs_create_entry()