Lines Matching full:view

53 	struct debug_view *view;	/* used view of debug info */  member
81 struct debug_view *view, char *out_buf,
83 static int debug_input_level_fn(debug_info_t *id, struct debug_view *view,
87 struct debug_view *view, char *out_buf,
89 static int debug_input_pages_fn(debug_info_t *id, struct debug_view *view,
92 static int debug_input_flush_fn(debug_info_t *id, struct debug_view *view,
95 static int debug_hex_ascii_format_fn(debug_info_t *id, struct debug_view *view,
393 struct debug_view *view = p_info->view; in debug_format_entry() local
399 if (view->prolog_proc) { in debug_format_entry()
400 len += view->prolog_proc(id_snap, view, p_info->temp_buf, in debug_format_entry()
405 if (!id_snap->areas) /* this is true, if we have a prolog only view */ in debug_format_entry()
412 if (view->header_proc) { in debug_format_entry()
413 len += view->header_proc(id_snap, view, p_info->act_area, in debug_format_entry()
417 if (view->format_proc) { in debug_format_entry()
418 len += view->format_proc(id_snap, view, p_info->temp_buf + len, in debug_format_entry()
596 * - calls input function of view
606 if (p_info->view->input_proc) { in debug_input()
607 rc = p_info->view->input_proc(p_info->debug_info_org, in debug_input()
608 p_info->view, file, user_buf, in debug_input()
618 struct debug_view *view) in debug_file_private_alloc() argument
625 * To copy all the areas is only needed, if we have a view which in debug_file_private_alloc()
628 if (!view->format_proc && !view->header_proc) in debug_file_private_alloc()
643 p_info->view = view; in debug_file_private_alloc()
667 /* find debug view */ in debug_open()
672 goto found; /* found view ! */ in debug_open()
717 * @view: View with which to dump the debug information
725 * Note: It is the callers responsibility to supply a view that is compatible
732 ssize_t debug_dump(debug_info_t *id, struct debug_view *view, in debug_dump() argument
743 p_info = debug_file_private_alloc(id, view); in debug_dump()
1242 * counts arguments in format string for sprintf view
1327 * debug_register_view() - registers new debug view and creates debugfs
1331 * @view: pointer to debug view struct
1337 int debug_register_view(debug_info_t *id, struct debug_view *view) in debug_register_view() argument
1348 if (!(view->prolog_proc || view->format_proc || view->header_proc)) in debug_register_view()
1350 if (!view->input_proc) in debug_register_view()
1352 pde = debugfs_create_file(view->name, mode, id->debugfs_root_entry, in debug_register_view()
1362 id->views[i] = view; in debug_register_view()
1367 pr_err("Registering view %s/%s would exceed the maximum " in debug_register_view()
1368 "number of views %i\n", id->name, view->name, i); in debug_register_view()
1377 * debug_unregister_view() - unregisters debug view and removes debugfs
1381 * @view: pointer to debug view struct
1387 int debug_unregister_view(debug_info_t *id, struct debug_view *view) in debug_unregister_view() argument
1397 if (id->views[i] == view) in debug_unregister_view()
1454 static int debug_prolog_pages_fn(debug_info_t *id, struct debug_view *view, in debug_prolog_pages_fn() argument
1464 static int debug_input_pages_fn(debug_info_t *id, struct debug_view *view, in debug_input_pages_fn() argument
1503 static int debug_prolog_level_fn(debug_info_t *id, struct debug_view *view, in debug_prolog_level_fn() argument
1518 static int debug_input_level_fn(debug_info_t *id, struct debug_view *view, in debug_input_level_fn() argument
1586 * view function: flushes debug areas
1588 static int debug_input_flush_fn(debug_info_t *id, struct debug_view *view, in debug_input_flush_fn() argument
1627 static int debug_hex_ascii_format_fn(debug_info_t *id, struct debug_view *view, in debug_hex_ascii_format_fn() argument
1652 int debug_dflt_header_fn(debug_info_t *id, struct debug_view *view, in debug_dflt_header_fn() argument
1680 * debug_sprinf_event/exception calls must be used together with this view
1685 int debug_sprintf_format_fn(debug_info_t *id, struct debug_view *view, in debug_sprintf_format_fn() argument