Searched refs:hmcdrv_cache_file (Results 1 – 1 of 1) sorted by relevance
48 static struct hmcdrv_cache_entry hmcdrv_cache_file = { variable67 if ((ftp->id != hmcdrv_cache_file.id) || in hmcdrv_cache_get()68 strcmp(hmcdrv_cache_file.fname, ftp->fname)) in hmcdrv_cache_get()71 if (ftp->ofs >= hmcdrv_cache_file.fsize) /* EOF ? */ in hmcdrv_cache_get()74 if ((hmcdrv_cache_file.ofs < 0) || /* has content? */ in hmcdrv_cache_get()75 time_after(jiffies, hmcdrv_cache_file.timeout)) in hmcdrv_cache_get()81 len = hmcdrv_cache_file.fsize - ftp->ofs; in hmcdrv_cache_get()89 pos = ftp->ofs - hmcdrv_cache_file.ofs; in hmcdrv_cache_get()92 ((pos + len) <= hmcdrv_cache_file.len)) { in hmcdrv_cache_get()95 hmcdrv_cache_file.content + pos, in hmcdrv_cache_get()[all …]