Lines Matching refs:d_security
1990 struct SECURITY_HDR d_security; in ntfs_get_security_by_id() local
2040 le64_to_cpu(sii_e->sec_hdr.off), &d_security, in ntfs_get_security_by_id()
2041 sizeof(d_security), NULL); in ntfs_get_security_by_id()
2045 if (memcmp(&d_security, &sii_e->sec_hdr, sizeof(d_security))) { in ntfs_get_security_by_id()
2090 struct SECURITY_HDR *d_security; in ntfs_insert_security() local
2111 d_security = kzalloc(aligned_sec_size, GFP_NOFS); in ntfs_insert_security()
2112 if (!d_security) in ntfs_insert_security()
2140 &d_security->key.sec_id, &diff, (struct NTFS_DE **)&e, in ntfs_insert_security()
2149 d_security, new_sec_size, NULL); in ntfs_insert_security()
2153 if (le32_to_cpu(d_security->size) == new_sec_size && in ntfs_insert_security()
2154 d_security->key.hash == hash_key.hash && in ntfs_insert_security()
2155 !memcmp(d_security + 1, sd, size_sd)) { in ntfs_insert_security()
2157 *security_id = d_security->key.sec_id; in ntfs_insert_security()
2196 d_security->key.hash = hash_key.hash; in ntfs_insert_security()
2197 d_security->key.sec_id = cpu_to_le32(sbi->security.next_id); in ntfs_insert_security()
2198 d_security->off = cpu_to_le64(sbi->security.next_off); in ntfs_insert_security()
2199 d_security->size = cpu_to_le32(new_sec_size); in ntfs_insert_security()
2200 memcpy(d_security + 1, sd, size_sd); in ntfs_insert_security()
2204 d_security, aligned_sec_size, 0); in ntfs_insert_security()
2221 err = ntfs_sb_write_run(sbi, &ni->file.run, mirr_off, d_security, in ntfs_insert_security()
2232 sii_e.de.key_size = cpu_to_le16(sizeof(d_security->key.sec_id)); in ntfs_insert_security()
2235 sii_e.sec_id = d_security->key.sec_id; in ntfs_insert_security()
2236 memcpy(&sii_e.sec_hdr, d_security, sizeof(struct SECURITY_HDR)); in ntfs_insert_security()
2251 sdh_e.key.hash = d_security->key.hash; in ntfs_insert_security()
2252 sdh_e.key.sec_id = d_security->key.sec_id; in ntfs_insert_security()
2253 memcpy(&sdh_e.sec_hdr, d_security, sizeof(struct SECURITY_HDR)); in ntfs_insert_security()
2263 *security_id = d_security->key.sec_id; in ntfs_insert_security()
2275 kfree(d_security); in ntfs_insert_security()