Home
last modified time | relevance | path

Searched refs:devBlockSize (Results 1 – 4 of 4) sorted by relevance

/xnu-11417.101.15/bsd/i386/
H A Dparam.h139 #define btodb(bytes, devBlockSize) \ argument
140 ((unsigned)(bytes) / devBlockSize)
141 #define dbtob(db, devBlockSize) \ argument
142 ((unsigned)(db) * devBlockSize)
/xnu-11417.101.15/bsd/arm/
H A Dparam.h115 #define btodb(bytes, devBlockSize) \ argument
116 ((unsigned)(bytes) / devBlockSize)
117 #define dbtob(db, devBlockSize) \ argument
118 ((unsigned)(db) * devBlockSize)
/xnu-11417.101.15/bsd/miscfs/specfs/
H A Dspec_vnops.c526 int devBlockSize = 0; in spec_read() local
552 devBlockSize = vp->v_specsize; in spec_read()
565 if (devBlockSize == 0) { in spec_read()
566 devBlockSize = 512; // default sector size in spec_read()
569 if (uio_offset(uio) && devBlockSize) { in spec_read()
570 blkno = ((uint64_t) uio_offset(uio) / ((uint64_t)devBlockSize)); in spec_read()
605 devBlockSize = vp->v_specsize; in spec_read()
607 if (devBlockSize > PAGE_SIZE) { in spec_read()
611 bscale = PAGE_SIZE / devBlockSize; in spec_read()
612 bsize = bscale * devBlockSize; in spec_read()
[all …]
/xnu-11417.101.15/bsd/kern/
H A Dkern_descrip.c3707 int devBlockSize; in sys_fcntl_nocancel() local
3741 devBlockSize = vfs_devblocksize(vnode_mount(vp)); in sys_fcntl_nocancel()
3751 a_size = devBlockSize; in sys_fcntl_nocancel()
3774 l2p_struct.l2p_devoffset = bn * devBlockSize; in sys_fcntl_nocancel()