Lines Matching refs:content
25 * @content: kernel-space buffer, 4k aligned
26 * @len: size of @content cache (0 if caching disabled)
27 * @ofs: start of content within file (-1 if no cached content)
33 * read/dir requests. But content is cached only under some preconditions.
34 * Uncached content is signalled by a negative value of @ofs.
42 void *content;
56 * hmcdrv_cache_get() - looks for file data/content in read cache
60 * in content cache (for the file/cmd specified in @ftp)
74 if ((hmcdrv_cache_file.ofs < 0) || /* has content? */
78 /* there seems to be cached content - calculate the maximum number
95 hmcdrv_cache_file.content + pos,
97 pr_debug("using cached content of '%s', returning %zd/%zd bytes\n",
119 /* only cache content if the read/dir cache really exists
131 cftp.buf = hmcdrv_cache_file.content; /* and update */
137 pr_debug("caching %zd bytes content for '%s'\n",
146 memcpy(ftp->buf, hmcdrv_cache_file.content, len);
150 hmcdrv_cache_file.ofs = -1; /* invalidate content */
220 hmcdrv_cache_file.content =
224 if (!hmcdrv_cache_file.content) {
230 pr_debug("content cache enabled, size is %zu bytes\n",
243 if (hmcdrv_cache_file.content) {
244 free_pages((unsigned long) hmcdrv_cache_file.content,
246 hmcdrv_cache_file.content = NULL;