Lines Matching refs:header_cache

701 		if (STp->header_cache != NULL && i < OS_FM_TAB_MAX && (i > STp->filemark_cnt ||  in osst_verify_frame()
702 STp->first_frame_position - 1 != ntohl(STp->header_cache->dat_fm_tab.fm_tab_ent[i]))) { in osst_verify_frame()
705 STp->header_cache->dat_fm_tab.fm_tab_ent[i] == 0?"Learned":"Corrected", in osst_verify_frame()
708 STp->header_cache->dat_fm_tab.fm_tab_ent[i] = htonl(STp->first_frame_position - 1); in osst_verify_frame()
1871 STp->header_cache != NULL && in osst_space_over_filemarks_backward()
1875 STp->header_cache->dat_fm_tab.fm_tab_ent[cnt-1] == STp->buffer->aux->last_mark_ppos) in osst_space_over_filemarks_backward()
1877 last_mark_ppos = ntohl(STp->header_cache->dat_fm_tab.fm_tab_ent[cnt - mt_count]); in osst_space_over_filemarks_backward()
1879 if (STp->header_cache == NULL || (cnt - mt_count) < 0 || (cnt - mt_count) >= OS_FM_TAB_MAX) in osst_space_over_filemarks_backward()
1881 STp->header_cache == NULL?"lack of header cache":"count out of range"); in osst_space_over_filemarks_backward()
1886 (STp->header_cache->dat_fm_tab.fm_tab_ent[cnt-1] == in osst_space_over_filemarks_backward()
2025 STp->header_cache != NULL && in osst_space_over_filemarks_forward_fast()
2029 (STp->header_cache->dat_fm_tab.fm_tab_ent[cnt] == STp->buffer->aux->last_mark_ppos))) in osst_space_over_filemarks_forward_fast()
2031 next_mark_ppos = ntohl(STp->header_cache->dat_fm_tab.fm_tab_ent[cnt + mt_count]); in osst_space_over_filemarks_forward_fast()
2033 if (STp->header_cache == NULL || (cnt + mt_count) >= OS_FM_TAB_MAX) in osst_space_over_filemarks_forward_fast()
2035 STp->header_cache == NULL?"lack of header cache":"count out of range"); in osst_space_over_filemarks_forward_fast()
2040 (STp->header_cache->dat_fm_tab.fm_tab_ent[cnt] == in osst_space_over_filemarks_forward_fast()
2206 if (STp->header_cache != NULL && STp->filemark_cnt < OS_FM_TAB_MAX) in osst_write_filemark()
2207 STp->header_cache->dat_fm_tab.fm_tab_ent[STp->filemark_cnt] = htonl(this_mark_ppos); in osst_write_filemark()
2273 osst_copy_to_buffer(STp->buffer, (unsigned char *)STp->header_cache); in __osst_write_header()
2299 if (STp->header_cache == NULL) { in osst_write_header()
2300 if ((STp->header_cache = vmalloc(sizeof(os_header_t))) == NULL) { in osst_write_header()
2304 memset(STp->header_cache, 0, sizeof(os_header_t)); in osst_write_header()
2312 header = STp->header_cache; in osst_write_header()
2364 if (STp->header_cache != NULL) in osst_reset_header()
2365 memset(STp->header_cache, 0, sizeof(os_header_t)); in osst_reset_header()
2487 if (STp->header_cache == NULL) { in __osst_analyze_headers()
2488 if ((STp->header_cache = vmalloc(sizeof(os_header_t))) == NULL) { in __osst_analyze_headers()
2496 osst_copy_from_buffer(STp->buffer, (unsigned char *)STp->header_cache); in __osst_analyze_headers()
2497 header = STp->header_cache; /* further accesses from cached (full) copy */ in __osst_analyze_headers()
2630 if ((n=ntohl(STp->header_cache->dat_fm_tab.fm_tab_ent[i])) < frame_position) in osst_verify_position()
3497 ntohl(STp->header_cache->dat_fm_tab.fm_tab_ent[STp->filemark_cnt-1]); in osst_write()
5695 …l = snprintf(buf, PAGE_SIZE, "%d.%d\n", STp->header_cache->major_rev, STp->header_cache->minor_rev… in osst_adr_rev_show()
5935 tpnt->header_cache = NULL; in osst_probe()
6018 vfree(tpnt->header_cache); in osst_remove()
6082 vfree(STp->header_cache); in exit_osst()