Lines Matching refs:ft
712 struct filename_trans *ft, *nft; in policydb_destroy() local
791 ft = p->filename_trans; in policydb_destroy()
792 while (ft) { in policydb_destroy()
793 nft = ft->next; in policydb_destroy()
794 kfree(ft->name); in policydb_destroy()
795 kfree(ft); in policydb_destroy()
796 ft = nft; in policydb_destroy()
1808 struct filename_trans *ft, *last; in filename_trans_read() local
1828 ft = kzalloc(sizeof(*ft), GFP_KERNEL); in filename_trans_read()
1829 if (!ft) in filename_trans_read()
1834 p->filename_trans = ft; in filename_trans_read()
1836 last->next = ft; in filename_trans_read()
1837 last = ft; in filename_trans_read()
1850 ft->name = name; in filename_trans_read()
1862 ft->stype = le32_to_cpu(buf[0]); in filename_trans_read()
1863 ft->ttype = le32_to_cpu(buf[1]); in filename_trans_read()
1864 ft->tclass = le32_to_cpu(buf[2]); in filename_trans_read()
1865 ft->otype = le32_to_cpu(buf[3]); in filename_trans_read()
3115 struct filename_trans *ft; in filename_trans_write() local
3120 for (ft = p->filename_trans; ft; ft = ft->next) in filename_trans_write()
3128 for (ft = p->filename_trans; ft; ft = ft->next) { in filename_trans_write()
3129 len = strlen(ft->name); in filename_trans_write()
3135 rc = put_entry(ft->name, sizeof(char), len, fp); in filename_trans_write()
3139 buf[0] = ft->stype; in filename_trans_write()
3140 buf[1] = ft->ttype; in filename_trans_write()
3141 buf[2] = ft->tclass; in filename_trans_write()
3142 buf[3] = ft->otype; in filename_trans_write()