Lines Matching refs:ft
204 const struct filename_trans *ft = k; in filenametr_hash() local
209 hash = ft->stype ^ ft->ttype ^ ft->tclass; in filenametr_hash()
212 while ((focus = ft->name[byte_num++])) in filenametr_hash()
752 struct filename_trans *ft = key; in filenametr_destroy() local
753 kfree(ft->name); in filenametr_destroy()
1910 struct filename_trans *ft; in filename_trans_read() local
1926 ft = NULL; in filename_trans_read()
1931 ft = kzalloc(sizeof(*ft), GFP_KERNEL); in filename_trans_read()
1932 if (!ft) in filename_trans_read()
1951 ft->name = name; in filename_trans_read()
1957 ft->stype = le32_to_cpu(buf[0]); in filename_trans_read()
1958 ft->ttype = le32_to_cpu(buf[1]); in filename_trans_read()
1959 ft->tclass = le32_to_cpu(buf[2]); in filename_trans_read()
1963 rc = ebitmap_set_bit(&p->filename_trans_ttypes, ft->ttype, 1); in filename_trans_read()
1967 rc = hashtab_insert(p->filename_trans, ft, otype); in filename_trans_read()
1976 kfree(ft); in filename_trans_read()
1984 kfree(ft); in filename_trans_read()
3270 struct filename_trans *ft = key; in filename_write_helper() local
3276 len = strlen(ft->name); in filename_write_helper()
3282 rc = put_entry(ft->name, sizeof(char), len, fp); in filename_write_helper()
3286 buf[0] = cpu_to_le32(ft->stype); in filename_write_helper()
3287 buf[1] = cpu_to_le32(ft->ttype); in filename_write_helper()
3288 buf[2] = cpu_to_le32(ft->tclass); in filename_write_helper()