Home
last modified time | relevance | path

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

/xnu-8796.121.2/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-8796.121.2/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-8796.121.2/bsd/miscfs/specfs/
H A Dspec_vnops.c476 int devBlockSize = 0; in spec_read() local
502 devBlockSize = vp->v_specsize; in spec_read()
515 if (devBlockSize == 0) { in spec_read()
516 devBlockSize = 512; // default sector size in spec_read()
519 if (uio_offset(uio) && devBlockSize) { in spec_read()
520 blkno = ((uint64_t) uio_offset(uio) / ((uint64_t)devBlockSize)); in spec_read()
555 devBlockSize = vp->v_specsize; in spec_read()
557 if (devBlockSize > PAGE_SIZE) { in spec_read()
561 bscale = PAGE_SIZE / devBlockSize; in spec_read()
562 bsize = bscale * devBlockSize; in spec_read()
[all …]
/xnu-8796.121.2/bsd/kern/
H A Dkern_descrip.c3618 int devBlockSize; in sys_fcntl_nocancel() local
3652 devBlockSize = vfs_devblocksize(vnode_mount(vp)); in sys_fcntl_nocancel()
3662 a_size = devBlockSize; in sys_fcntl_nocancel()
3685 l2p_struct.l2p_devoffset = bn * devBlockSize; in sys_fcntl_nocancel()