Searched refs:sec_sz (Results 1 – 2 of 2) sorted by relevance
/titanic_44/usr/src/lib/libfdisk/common/ |
H A D | libfdisk.c | 282 int sec_sz = fdisk_get_disk_geom(epp, PHYSGEOM, SSIZE); in fdisk_is_linux_swap() local 293 if ((buf = calloc(1, sec_sz)) == NULL) { in fdisk_is_linux_swap() 302 label_offset = (part_start + DK_LABEL_LOC) * sec_sz; in fdisk_is_linux_swap() 308 if ((rval = read(epp->dev_fd, buf, sec_sz)) < sec_sz) { in fdisk_is_linux_swap() 321 linux_swap_magic = buf + sec_sz - LINUX_SWAP_MAGIC_LENGTH; in fdisk_is_linux_swap() 325 seek_offset = linux_pg_size/sec_sz - 1; in fdisk_is_linux_swap() 327 seek_offset *= sec_sz; in fdisk_is_linux_swap() 334 if ((rval = read(epp->dev_fd, buf, sec_sz)) < sec_sz) { in fdisk_is_linux_swap()
|
/titanic_44/usr/src/uts/common/io/ |
H A D | cmlb.c | 2258 int sec_sz = cl->cl_sys_blocksize; local 2265 if ((buf = kmem_zalloc(sec_sz, KM_NOSLEEP)) == NULL) { 2276 sec_sz, tg_cookie); 2293 linux_swap_magic = buf + sec_sz - 10; 2297 seek_offset = linux_pg_size/sec_sz - 1; 2301 rval = DK_TG_READ(cl, buf, seek_offset, sec_sz, tg_cookie); 2322 kmem_free(buf, sec_sz);
|