Lines Matching refs:attr

69                       __u16 attr);
1108 ino->u.smbfs_i.attr = WVAL(server->packet, smb_vwv1); in smb_proc_open()
1440 smb_proc_create(struct dentry *dentry, __u16 attr, time_t ctime, __u16 *fileid) in smb_proc_create() argument
1450 WSET(server->packet, smb_vwv0, attr); in smb_proc_create()
1565 if (fattr.attr & aRONLY) { /* read only attribute is set */ in smb_set_rw()
1566 fattr.attr &= ~aRONLY; in smb_set_rw()
1567 result = smb_proc_setattr_core(server, dentry, fattr.attr); in smb_set_rw()
1724 if (fattr->attr & aDIR) { in smb_finish_dirent()
1729 if (fattr->attr & aRONLY) in smb_finish_dirent()
1743 fattr->attr = aDIR; in smb_init_root_dirent()
1771 fattr->attr = *p; in smb_decode_short_dirent()
2050 fattr->attr = WVAL(p, 20); in smb_decode_long_dirent()
2070 fattr->attr = DVAL(p, 56); in smb_decode_long_dirent()
2445 fattr->attr = WVAL(resp_data, 20); in smb_proc_getattr_ff()
2475 fattr->attr = WVAL(server->packet, smb_vwv0); in smb_proc_getattr_core()
2495 struct smb_fattr *attr) in smb_proc_getattr_trans2_all() argument
2535 attr->f_ctime = smb_ntutc2unixutc(LVAL(resp_data, 0)); in smb_proc_getattr_trans2_all()
2536 attr->f_atime = smb_ntutc2unixutc(LVAL(resp_data, 8)); in smb_proc_getattr_trans2_all()
2537 attr->f_mtime = smb_ntutc2unixutc(LVAL(resp_data, 16)); in smb_proc_getattr_trans2_all()
2539 attr->attr = WVAL(resp_data, 32); in smb_proc_getattr_trans2_all()
2542 attr->f_size = LVAL(resp_data, 48); in smb_proc_getattr_trans2_all()
2557 struct smb_fattr *attr) in smb_proc_getattr_trans2_std() argument
2612 attr->f_ctime = date_dos2unix(server, date, time); in smb_proc_getattr_trans2_std()
2616 attr->f_atime = date_dos2unix(server, date, time); in smb_proc_getattr_trans2_std()
2620 attr->f_mtime = date_dos2unix(server, date, time); in smb_proc_getattr_trans2_std()
2623 DENTRY_PATH(dir), date, time, attr->f_mtime); in smb_proc_getattr_trans2_std()
2625 attr->f_size = DVAL(resp_data, 12); in smb_proc_getattr_trans2_std()
2626 attr->attr = WVAL(resp_data, 20); in smb_proc_getattr_trans2_std()
2635 struct smb_fattr *attr) in smb_proc_getattr_95() argument
2641 result = smb_proc_getattr_trans2_std(server, dir, attr); in smb_proc_getattr_95()
2663 attr->f_size = smb_proc_seek(server, fileid, 2, 0); in smb_proc_getattr_95()
2675 struct smb_fattr *attr) in smb_proc_getattr_unix() argument
2708 smb_decode_unix_basic(attr, server, resp_data); in smb_proc_getattr_unix()
2717 struct smb_fattr *attr) in smb_proc_getattr_null() argument
2751 __u16 attr) in smb_proc_setattr_core() argument
2758 WSET(server->packet, smb_vwv0, attr); in smb_proc_setattr_core()
2801 result = smb_proc_setattr_core(server, dir, fattr->attr); in smb_proc_setattr()
2924 smb_proc_setattr_unix(struct dentry *dentry, struct iattr *attr, in smb_proc_setattr_unix() argument
2940 DEBUG1("valid flags = 0x%04x\n", attr->ia_valid); in smb_proc_setattr_unix()
2967 DSET(data, 56, smb_filetype_from_mode(attr->ia_mode)); in smb_proc_setattr_unix()
2974 if (attr->ia_valid & ATTR_SIZE) { in smb_proc_setattr_unix()
2975 LSET(data, 0, attr->ia_size); in smb_proc_setattr_unix()
2985 if (attr->ia_valid & ATTR_CTIME) { in smb_proc_setattr_unix()
2986 nttime = smb_unixutc2ntutc(attr->ia_ctime); in smb_proc_setattr_unix()
2989 if (attr->ia_valid & ATTR_ATIME) { in smb_proc_setattr_unix()
2990 nttime = smb_unixutc2ntutc(attr->ia_atime); in smb_proc_setattr_unix()
2993 if (attr->ia_valid & ATTR_MTIME) { in smb_proc_setattr_unix()
2994 nttime = smb_unixutc2ntutc(attr->ia_mtime); in smb_proc_setattr_unix()
2998 if (attr->ia_valid & ATTR_UID) { in smb_proc_setattr_unix()
2999 LSET(data, 40, attr->ia_uid); in smb_proc_setattr_unix()
3001 if (attr->ia_valid & ATTR_GID) { in smb_proc_setattr_unix()
3002 LSET(data, 48, attr->ia_gid); in smb_proc_setattr_unix()
3005 if (attr->ia_valid & ATTR_MODE) { in smb_proc_setattr_unix()
3006 LSET(data, 84, attr->ia_mode); in smb_proc_setattr_unix()
3086 smb_proc_dskattr(struct super_block *sb, struct statfs *attr) in smb_proc_dskattr() argument
3105 attr->f_blocks = WVAL(p, 0) * unit; in smb_proc_dskattr()
3106 attr->f_bsize = SMB_ST_BLKSIZE; in smb_proc_dskattr()
3107 attr->f_bavail = attr->f_bfree = WVAL(p, 6) * unit; in smb_proc_dskattr()