Lines Matching refs:p_info
453 debug_format_entry(file_private_info_t *p_info)
455 debug_info_t *id_snap = p_info->debug_info_snap;
456 struct debug_view *view = p_info->view;
459 if(p_info->act_entry == DEBUG_PROLOG_ENTRY){
462 len += view->prolog_proc(id_snap,view,p_info->temp_buf);
467 act_entry = (debug_entry_t *) ((char*)id_snap->areas[p_info->act_area]
468 [p_info->act_page] + p_info->act_entry);
473 len += view->header_proc(id_snap, view, p_info->act_area,
474 act_entry, p_info->temp_buf + len);
476 len += view->format_proc(id_snap, view, p_info->temp_buf + len,
484 * - goto next entry in p_info
488 debug_next_entry(file_private_info_t *p_info)
492 id = p_info->debug_info_snap;
493 if(p_info->act_entry == DEBUG_PROLOG_ENTRY){
494 p_info->act_entry = 0;
495 p_info->act_page = 0;
500 p_info->act_entry += id->entry_size;
502 if (p_info->act_entry > (PAGE_SIZE - id->entry_size)){
504 p_info->act_entry = 0;
505 p_info->act_page += 1;
506 if((p_info->act_page % id->pages_per_area) == 0) {
508 p_info->act_area++;
509 p_info->act_page=0;
511 if(p_info->act_area >= id->nr_areas)
532 file_private_info_t *p_info;
534 p_info = ((file_private_info_t *) file->private_data);
535 if (*offset != p_info->offset)
537 if(p_info->act_area >= p_info->debug_info_snap->nr_areas)
539 entry_offset = p_info->act_entry_offset;
546 formatted_line_size = debug_format_entry(p_info);
551 if (copy_to_user(user_buf + count, p_info->temp_buf
559 if(debug_next_entry(p_info))
564 p_info->offset = *offset + count;
565 p_info->act_entry_offset = entry_offset;
566 *offset = p_info->offset;
581 file_private_info_t *p_info;
584 p_info = ((file_private_info_t *) file->private_data);
585 if (p_info->view->input_proc)
586 rc = p_info->view->input_proc(p_info->debug_info_org,
587 p_info->view, file, user_buf,
606 file_private_info_t *p_info;
641 p_info = kmalloc(sizeof(file_private_info_t),
643 if(!p_info){
648 p_info->offset = 0;
649 p_info->debug_info_snap = debug_info_snapshot;
650 p_info->debug_info_org = debug_info;
651 p_info->view = debug_info->views[i];
652 p_info->act_area = 0;
653 p_info->act_page = 0;
654 p_info->act_entry = DEBUG_PROLOG_ENTRY;
655 p_info->act_entry_offset = 0;
656 file->private_data = p_info;
673 file_private_info_t *p_info;
674 p_info = (file_private_info_t *) file->private_data;
675 if(p_info->debug_info_snap)
676 debug_info_free(p_info->debug_info_snap);
677 debug_info_put(p_info->debug_info_org);