/linux-2.4.37.9/fs/xfs/ |
D | xfs_dir2_sf.c | 192 xfs_dir2_sf_t *sfp; /* shortform structure */ in xfs_dir2_block_to_sf() local 225 sfp = (xfs_dir2_sf_t *)dp->i_df.if_u1.if_data; in xfs_dir2_block_to_sf() 226 memcpy(sfp, sfhp, XFS_DIR2_SF_HDR_SIZE(sfhp->i8count)); in xfs_dir2_block_to_sf() 234 sfep = XFS_DIR2_SF_FIRSTENTRY(sfp); in xfs_dir2_block_to_sf() 260 XFS_DIR2_SF_GET_INUMBER_ARCH(sfp, &sfp->hdr.parent, ARCH_CONVERT)); in xfs_dir2_block_to_sf() 271 XFS_DIR2_SF_PUT_INUMBER_ARCH(sfp, &temp, in xfs_dir2_block_to_sf() 273 sfep = XFS_DIR2_SF_NEXTENTRY(sfp, sfep); in xfs_dir2_block_to_sf() 277 ASSERT((char *)sfep - (char *)sfp == size); in xfs_dir2_block_to_sf() 304 xfs_dir2_sf_t *sfp; /* shortform structure */ in xfs_dir2_sf_addname() local 320 sfp = (xfs_dir2_sf_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_addname() [all …]
|
D | xfs_dir2_sf.h | 135 xfs_intino_t xfs_dir2_sf_get_inumber_arch(xfs_dir2_sf_t *sfp, xfs_dir2_inou_t *from, 137 #define XFS_DIR2_SF_GET_INUMBER_ARCH(sfp, from, arch) \ argument 138 xfs_dir2_sf_get_inumber_arch(sfp, from, arch) 141 #define XFS_DIR2_SF_GET_INUMBER_ARCH(sfp, from, arch) \ argument 142 ((sfp)->hdr.i8count == 0 ? \ 148 void xfs_dir2_sf_put_inumber_arch(xfs_dir2_sf_t *sfp, xfs_ino_t *from, 150 #define XFS_DIR2_SF_PUT_INUMBER_ARCH(sfp,from,to,arch) \ argument 151 xfs_dir2_sf_put_inumber_arch(sfp,from,to,arch) 153 #define XFS_DIR2_SF_PUT_INUMBER_ARCH(sfp,from,to,arch) \ argument 154 if ((sfp)->hdr.i8count == 0) { \ [all …]
|
D | xfs_dir2_block.c | 1067 xfs_dir2_sf_t *sfp; /* shortform structure */ in xfs_dir2_sf_to_block() local 1085 sfp = (xfs_dir2_sf_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_to_block() 1086 ASSERT(dp->i_d.di_size >= XFS_DIR2_SF_HDR_SIZE(sfp->hdr.i8count)); in xfs_dir2_sf_to_block() 1095 memcpy(buf, sfp, dp->i_df.if_bytes); in xfs_dir2_sf_to_block() 1102 sfp = (xfs_dir2_sf_t *)buf; in xfs_dir2_sf_to_block() 1125 (INT_GET(sfp->hdr.count, ARCH_CONVERT) + 2) * (uint)sizeof(xfs_dir2_leaf_entry_t); in xfs_dir2_sf_to_block() 1139 INT_SET(btp->count, ARCH_CONVERT, INT_GET(sfp->hdr.count, ARCH_CONVERT) + 2); /* ., .. */ in xfs_dir2_sf_to_block() 1167 …INT_SET(dep->inumber, ARCH_CONVERT, XFS_DIR2_SF_GET_INUMBER_ARCH(sfp, &sfp->hdr.parent, ARCH_CONVE… in xfs_dir2_sf_to_block() 1179 if ((i = 0) == INT_GET(sfp->hdr.count, ARCH_CONVERT)) in xfs_dir2_sf_to_block() 1182 sfep = XFS_DIR2_SF_FIRSTENTRY(sfp); in xfs_dir2_sf_to_block() [all …]
|
D | xfs_macros.c | 1325 xfs_dir2_sf_entsize_byentry(xfs_dir2_sf_t *sfp, xfs_dir2_sf_entry_t *sfep) in xfs_dir2_sf_entsize_byentry() argument 1327 return XFS_DIR2_SF_ENTSIZE_BYENTRY(sfp, sfep); in xfs_dir2_sf_entsize_byentry() 1333 xfs_dir2_sf_firstentry(xfs_dir2_sf_t *sfp) in xfs_dir2_sf_firstentry() argument 1335 return XFS_DIR2_SF_FIRSTENTRY(sfp); in xfs_dir2_sf_firstentry() 1341 xfs_dir2_sf_entsize_byname(xfs_dir2_sf_t *sfp, int len) in xfs_dir2_sf_entsize_byname() argument 1343 return XFS_DIR2_SF_ENTSIZE_BYNAME(sfp, len); in xfs_dir2_sf_entsize_byname() 1349 xfs_dir2_sf_get_inumber_arch(xfs_dir2_sf_t *sfp, xfs_dir2_inou_t *from, xfs_arch_t arch) in xfs_dir2_sf_get_inumber_arch() argument 1351 return XFS_DIR2_SF_GET_INUMBER_ARCH(sfp, from, arch); in xfs_dir2_sf_get_inumber_arch() 1381 xfs_dir2_sf_nextentry(xfs_dir2_sf_t *sfp, xfs_dir2_sf_entry_t *sfep) in xfs_dir2_sf_nextentry() argument 1383 return XFS_DIR2_SF_NEXTENTRY(sfp, sfep); in xfs_dir2_sf_nextentry() [all …]
|
D | xfs_dir2.c | 156 xfs_dir2_sf_t *sfp; /* shortform directory structure */ in xfs_dir2_isempty() local 167 sfp = (xfs_dir2_sf_t *)dp->i_df.if_u1.if_data; in xfs_dir2_isempty() 168 return INT_ISZERO(sfp->hdr.count, ARCH_CONVERT); in xfs_dir2_isempty()
|
/linux-2.4.37.9/drivers/scsi/ |
D | sg.c | 207 static int sg_build_indi(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size); 208 static int sg_build_sgat(Sg_scatter_hold * schp, const Sg_fd * sfp, 210 static ssize_t sg_new_read(Sg_fd * sfp, char * buf, size_t count, 212 static ssize_t sg_new_write(Sg_fd * sfp, const char * buf, size_t count, 214 static int sg_common_write(Sg_fd * sfp, Sg_request * srp, 223 static void sg_build_reserve(Sg_fd * sfp, int req_size); 224 static void sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size); 225 static void sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp); 226 static char * sg_malloc(const Sg_fd * sfp, int size, int * retSzp, 233 static int sg_remove_sfp(Sg_device * sdp, Sg_fd * sfp); [all …]
|
/linux-2.4.37.9/fs/freevxfs/ |
D | vxfs_fshead.c | 109 struct vxfs_fsh *pfp, *sfp; in vxfs_read_fshead() local 132 if (!(sfp = vxfs_getfsh(infp->vsi_fship, 0))) { in vxfs_read_fshead() 138 vxfs_dumpfsh(sfp); in vxfs_read_fshead() 150 tip = vxfs_blkiget(sbp, infp->vsi_iext, sfp->fsh_ilistino[0]); in vxfs_read_fshead()
|
/linux-2.4.37.9/arch/sparc/kernel/ |
D | signal.c | 785 svr4_signal_frame_t *sfp; in setup_svr4_frame() local 795 sfp = (svr4_signal_frame_t *) get_sigframe(sa, regs, SVR4_SF_ALIGNED + sizeof(struct reg_window)); in setup_svr4_frame() 797 if (invalid_frame_pointer (sfp, sizeof (*sfp))){ in setup_svr4_frame() 805 err = __clear_user(sfp, sizeof (*sfp)); in setup_svr4_frame() 808 si = &sfp->si; in setup_svr4_frame() 809 uc = &sfp->uc; in setup_svr4_frame() 810 gw = &sfp->gw; in setup_svr4_frame() 881 regs->u_regs[UREG_FP] = (unsigned long) sfp; in setup_svr4_frame() 895 err |= __put_user(sfp, &rw->ins [6]); /* frame pointer */ in setup_svr4_frame()
|
/linux-2.4.37.9/arch/sparc64/kernel/ |
D | signal32.c | 838 svr4_signal_frame_t *sfp; in setup_svr4_frame32() local 855 …sfp = (svr4_signal_frame_t *) get_sigframe(sa, regs, sizeof(struct reg_window32) + SVR4_SF_ALIGNED… in setup_svr4_frame32() 857 if (invalid_frame_pointer (sfp, sizeof (*sfp))){ in setup_svr4_frame32() 865 err = clear_user(sfp, sizeof (*sfp)); in setup_svr4_frame32() 868 si = &sfp->si; in setup_svr4_frame32() 869 uc = &sfp->uc; in setup_svr4_frame32() 870 gw = &sfp->gw; in setup_svr4_frame32() 953 regs->u_regs[UREG_FP] = (unsigned long) sfp; in setup_svr4_frame32() 972 err |= __put_user((u64)sfp, &rw->ins [6]); /* frame pointer */ in setup_svr4_frame32()
|