Lines Matching refs:view
52 struct debug_view *view; /* used view of debug info */
80 struct debug_view *view, char *out_buf);
81 static int debug_input_level_fn(debug_info_t *id, struct debug_view *view,
85 struct debug_view *view, char *out_buf);
86 static int debug_input_pages_fn(debug_info_t *id, struct debug_view *view,
89 static int debug_input_flush_fn(debug_info_t *id, struct debug_view *view,
92 static int debug_hex_ascii_format_fn(debug_info_t *id, struct debug_view *view,
94 static int debug_sprintf_format_fn(debug_info_t *id, struct debug_view *view,
389 struct debug_view *view = p_info->view;
395 if (view->prolog_proc)
396 len += view->prolog_proc(id_snap, view, p_info->temp_buf);
399 if (!id_snap->areas) /* this is true, if we have a prolog only view */
406 if (view->header_proc)
407 len += view->header_proc(id_snap, view, p_info->act_area,
409 if (view->format_proc)
410 len += view->format_proc(id_snap, view, p_info->temp_buf + len,
503 * - calls input function of view
513 if (p_info->view->input_proc) {
514 rc = p_info->view->input_proc(p_info->debug_info_org,
515 p_info->view, file, user_buf,
538 /* find debug view */
543 goto found; /* found view ! */
552 /* To copy all the areas is only needed, if we have a view which */
573 p_info->view = debug_info->views[i];
1084 * counts arguments in format string for sprintf view
1169 * debug_register_view() - registers new debug view and creates debugfs
1173 * @view: pointer to debug view struct
1179 int debug_register_view(debug_info_t *id, struct debug_view *view)
1190 if (!(view->prolog_proc || view->format_proc || view->header_proc))
1192 if (!view->input_proc)
1194 pde = debugfs_create_file(view->name, mode, id->debugfs_root_entry,
1204 id->views[i] = view;
1209 pr_err("Registering view %s/%s would exceed the maximum "
1210 "number of views %i\n", id->name, view->name, i);
1219 * debug_unregister_view() - unregisters debug view and removes debugfs
1223 * @view: pointer to debug view struct
1229 int debug_unregister_view(debug_info_t *id, struct debug_view *view)
1239 if (id->views[i] == view)
1296 static int debug_prolog_pages_fn(debug_info_t *id, struct debug_view *view,
1306 static int debug_input_pages_fn(debug_info_t *id, struct debug_view *view,
1345 static int debug_prolog_level_fn(debug_info_t *id, struct debug_view *view,
1360 static int debug_input_level_fn(debug_info_t *id, struct debug_view *view,
1428 * view function: flushes debug areas
1430 static int debug_input_flush_fn(debug_info_t *id, struct debug_view *view,
1469 static int debug_hex_ascii_format_fn(debug_info_t *id, struct debug_view *view,
1492 int debug_dflt_header_fn(debug_info_t *id, struct debug_view *view,
1519 * debug_sprinf_event/exception calls must be used together with this view
1524 static int debug_sprintf_format_fn(debug_info_t *id, struct debug_view *view,