Lines Matching refs:psb_dump_vabuf_fp
181 psb_dump_vabuf_fp = fopen(log_fn, "w");
186 psb_dump_vabuf_fp = NULL;
239 if(psb_dump_vabuf_fp != NULL) {
240 fclose(psb_dump_vabuf_fp);
241 psb_dump_vabuf_fp = NULL;
862 if(psb_dump_vabuf_fp) {
863 fprintf(psb_dump_vabuf_fp, "%s", buffer_type_to_string(obj_buffer->type));
864 print_num = fprintf(psb_dump_vabuf_fp, "BUFF SIZE :%d NUMELEMENTS:%d BUFF INFO:\n", obj_buffer->size, obj_buffer->num_elements);
872 print_num = fprintf(psb_dump_vabuf_fp,"0x%02x ,",*((unsigned char *)(obj_buffer->buffer_data+obj_buffer->num_elements*j+k)));
873 fprintf(psb_dump_vabuf_fp,"\n ");
883 if(j%16 == 0) fprintf(psb_dump_vabuf_fp,"\n");
885 fprintf(psb_dump_vabuf_fp,"0x%02x ",*((unsigned char *)(mapped_buffer+obj_buffer->num_elements*j+k)));
893 fprintf(psb_dump_vabuf_fp,"first 256 bytes:\n");
898 if(j%16 == 0) fprintf(psb_dump_vabuf_fp,"\n");
900 fprintf(psb_dump_vabuf_fp,"0x%02x ",*((unsigned char *)(mapped_buffer+obj_buffer->num_elements*j+k)));
909 fprintf(psb_dump_vabuf_fp, "\n");
910 fflush(psb_dump_vabuf_fp);
911 fsync(fileno(psb_dump_vabuf_fp));