Lines Matching refs:fcount
41 unsigned int *fcount = FILE_FCOUNT(file); in mtrr_file_add() local
45 if (fcount == NULL) { in mtrr_file_add()
46 fcount = kcalloc(max, sizeof(*fcount), GFP_KERNEL); in mtrr_file_add()
47 if (!fcount) in mtrr_file_add()
49 FILE_FCOUNT(file) = fcount; in mtrr_file_add()
59 ++fcount[reg]; in mtrr_file_add()
67 unsigned int *fcount = FILE_FCOUNT(file); in mtrr_file_del() local
79 if (fcount == NULL) in mtrr_file_del()
81 if (fcount[reg] < 1) in mtrr_file_del()
83 --fcount[reg]; in mtrr_file_del()
340 unsigned int *fcount = FILE_FCOUNT(file); in mtrr_close() local
343 if (fcount != NULL) { in mtrr_close()
346 while (fcount[i] > 0) { in mtrr_close()
348 --fcount[i]; in mtrr_close()
351 kfree(fcount); in mtrr_close()