Home
last modified time | relevance | path

Searched refs:blksize (Results 1 – 25 of 50) sorted by relevance

12

/dragonfly/sbin/hammer2/
H A Dcmd_rsa.c124 int blksize = 0; in cmd_rsaenc() local
187 data_in = malloc(blksize); in cmd_rsaenc()
192 if (off == blksize) { in cmd_rsaenc()
207 if (write(1, data_out, blksize) != blksize) { in cmd_rsaenc()
216 if (off < blksize) in cmd_rsaenc()
232 if (write(1, data_out, blksize) != blksize) { in cmd_rsaenc()
259 int blksize = 0; in cmd_rsadec() local
326 if (off == blksize) { in cmd_rsadec()
341 if (write(1, data_out, blksize) != blksize) { in cmd_rsadec()
350 if (off < blksize) in cmd_rsadec()
[all …]
/dragonfly/sys/kern/
H A Dvfs_cluster.c267 if (maxreq < blksize) in cluster_readx()
268 maxreq = blksize; in cluster_readx()
432 loffset += blksize; in cluster_readx()
611 if (maxreq < blksize) in cluster_readcb()
612 maxreq = blksize; in cluster_readcb()
770 loffset += blksize; in cluster_readcb()
966 tbp = getblk(vp, loffset + i * blksize, blksize, in cluster_rbuild()
1346 blksize; in cluster_write()
1489 bytes -= blksize; in cluster_wbuild()
1511 bytes -= blksize; in cluster_wbuild()
[all …]
H A Dvfs_vm.c130 nvtruncbuf(struct vnode *vp, off_t length, int blksize, int boff, int flags) in nvtruncbuf() argument
147 boff = (int)(length % blksize); in nvtruncbuf()
149 info.truncloffset = length + (blksize - boff); in nvtruncbuf()
165 nvnode_pager_setsize(vp, length, blksize, boff); in nvtruncbuf()
181 error = bread_kvabio(vp, truncboffset, blksize, &bp); in nvtruncbuf()
184 bzero(bp->b_data + boff, blksize - boff); in nvtruncbuf()
431 nvnode_pager_setsize(struct vnode *vp, off_t length, int blksize, int boff) in nvnode_pager_setsize() argument
460 boff = (int)(length % blksize); in nvnode_pager_setsize()
464 nobjsize = OFF_TO_IDX(truncboffset + blksize + PAGE_MASK); in nvnode_pager_setsize()
H A Dsubr_disklabel64.c391 uint32_t blksize = info->d_media_blksize; in l64_clone_label() local
397 lp->d_total_size = (uint64_t)sp->ds_size * blksize; in l64_clone_label()
399 lp->d_total_size = info->d_media_blocks * blksize; in l64_clone_label()
402 lp->d_align = blksize; in l64_clone_label()
443 uint32_t blksize; in l64_makevirginlabel() local
460 if ((blksize = info->d_media_blksize) < 4096) in l64_makevirginlabel()
461 blksize = 4096; in l64_makevirginlabel()
462 blkmask = blksize - 1; in l64_makevirginlabel()
470 lp->d_align = blksize; in l64_makevirginlabel()
/dragonfly/sys/vfs/ext2fs/
H A Dext2_htree.c432 newsize = cursize + blksize; in ext2_htree_append_block()
435 auio.uio_resid = blksize; in ext2_htree_append_block()
436 aiov.iov_len = blksize; in ext2_htree_append_block()
555 ((char *)block2 + blksize); in ext2_htree_split_dirblock()
687 blksize = m_fs->e2fs_bsize; in ext2_htree_create_index()
789 uint32_t blksize, blknum; in ext2_htree_add_entry() local
804 blksize = m_fs->e2fs_bsize; in ext2_htree_add_entry()
828 dirsize = cursize + blksize; in ext2_htree_add_entry()
832 cnp, blksize); in ext2_htree_add_entry()
924 dirsize = cursize + blksize; in ext2_htree_add_entry()
[all …]
H A Dext2_inode.c292 size = blksize(fs, oip, lbn); in ext2_ind_truncate()
390 bsize = blksize(fs, oip, i); in ext2_ind_truncate()
409 oldspace = blksize(fs, oip, lastblock); in ext2_ind_truncate()
411 newspace = blksize(fs, oip, lastblock); in ext2_ind_truncate()
H A Dfs.h168 #define blksize(fs, ip, lbn) ((fs)->e2fs_fsize) macro
/dragonfly/lib/libdmsg/
H A Dcrypto.c352 size_t blksize; in dmsg_crypto_negotiate() local
457 blksize = (size_t)RSA_size(keys[0]); in dmsg_crypto_negotiate()
458 if (blksize != (size_t)RSA_size(keys[1]) || in dmsg_crypto_negotiate()
460 sizeof(handtx) % blksize != 0) { in dmsg_crypto_negotiate()
468 blksize = sizeof(handtx); in dmsg_crypto_negotiate()
470 blkmask = blksize - 1; in dmsg_crypto_negotiate()
537 if (RSA_private_encrypt(blksize, in dmsg_crypto_negotiate()
546 if (RSA_public_encrypt(blksize, in dmsg_crypto_negotiate()
554 if (write(iocom->sock_fd, buf2, blksize) != (ssize_t)blksize) { in dmsg_crypto_negotiate()
578 if (RSA_private_decrypt(blksize, in dmsg_crypto_negotiate()
[all …]
/dragonfly/test/stress/fsstress/
H A Dglobal.h84 memalign(int blksize, int bytes) in memalign() argument
92 if (blksize < pagesize) in memalign()
93 blksize = pagesize; in memalign()
94 blkmask = blksize - 1; in memalign()
/dragonfly/sys/dev/smbus/atmel_mxt/
H A Dtest_atmel.c169 size_t blksize; in main() local
185 blksize = sizeof(rup.info) + in main()
187 totsize = blksize + sizeof(struct mxt_raw_crc); in main()
195 crc = obp_convert_crc((struct mxt_raw_crc *)(rbuf + blksize)); in main()
196 if (obp_crc24(rbuf, blksize) != crc) { in main()
199 obp_crc24(rbuf, blksize)); in main()
H A Datmel_mxt.c363 int blksize; in init_device() local
383 blksize = sizeof(sc->core.info) + in init_device()
385 totsize = blksize + sizeof(struct mxt_raw_crc); in init_device()
393 kprintf("COREBUF %p %d\n", sc->core.buf, blksize); in init_device()
394 crc = obp_convert_crc((void *)((uint8_t *)sc->core.buf + blksize)); in init_device()
395 if (obp_crc24(sc->core.buf, blksize) != crc) { in init_device()
399 crc, obp_crc24(sc->core.buf, blksize)); in init_device()
409 while (i < blksize) { in init_device()
/dragonfly/sys/dev/disk/nvme/
H A Dnvme_disk.c78 devstat_add_entry(&nsc->stats, "nvme", nsc->unit, nsc->blksize, in nvme_disk_attach()
88 info.d_media_blksize = nsc->blksize; in nvme_disk_attach()
104 cap_gb = nsc->idns.size / (1024 * 1024 * 1024 / nsc->blksize); in nvme_disk_attach()
109 nsc->blksize, nsc->idns.size, cap_gb, serial); in nvme_disk_attach()
236 secno = bio->bio_offset / nsc->blksize; in nvme_strategy_core()
237 nlba = bp->b_bcount / nsc->blksize; in nvme_strategy_core()
257 bp->b_data, nlba * nsc->blksize); in nvme_strategy_core()
276 bp->b_data, nlba * nsc->blksize); in nvme_strategy_core()
459 secno = ap->a_offset / nsc->blksize; in nvme_dump()
460 nlba = ap->a_length / nsc->blksize; in nvme_dump()
[all …]
/dragonfly/sys/dev/disk/nata/
H A Datapi-tape.c287 g->mt_blksiz = stp->blksize; in ast_ioctl()
419 if (bbp->b_bcount % stp->blksize) { in ast_strategy()
420 device_printf(dev, "transfers must be multiple of %d\n", stp->blksize); in ast_strategy()
426 if (bbp->b_bcount > stp->blksize * stp->cap.ctl) { in ast_strategy()
429 bbp->b_bcount, stp->blksize * stp->cap.ctl); in ast_strategy()
441 blkcount = bbp->b_bcount / stp->blksize; in ast_strategy()
458 request->bytecount = blkcount * stp->blksize; in ast_strategy()
510 stp->blksize = 32768; in ast_sense()
512 stp->blksize = 1024; in ast_sense()
514 stp->blksize = 512; in ast_sense()
[all …]
H A Datapi-tape.h155 int blksize; /* block size (512 | 1024) */ member
/dragonfly/sys/vfs/hammer/
H A Dhammer_vnops.c315 int blksize; in hammer_vop_read() local
423 blksize, B_NOTMETA, in hammer_vop_read()
441 n = blksize - offset; in hammer_vop_read()
599 int blksize; in hammer_vop_write() local
648 bwillwrite(blksize); in hammer_vop_write()
654 blkmask = blksize - 1; in hammer_vop_write()
657 n = blksize - offset; in hammer_vop_write()
695 blksize, &bp); in hammer_vop_write()
2164 int blksize; in hammer_vop_setattr() local
2270 blksize, in hammer_vop_setattr()
[all …]
/dragonfly/sbin/disklabel64/
H A Ddisklabel64.c647 uint32_t blksize; in display() local
654 blksize = 1024; in display()
656 blksize = lp->d_align; in display()
689 blksize); in display()
865 uint32_t blksize = 0; in getasciilabel() local
990 blksize = v; in getasciilabel()
1018 if (blksize == 0) { in getasciilabel()
1076 int lineno, uint32_t blksize) in getasciipartspec() argument
1099 mpx = blksize; in getasciipartspec()
1150 pp->p_boffset = vv * blksize + lp->d_pbase; in getasciipartspec()
[all …]
/dragonfly/sys/sys/
H A Dbuf2.h373 int blksize, size_t minreq, size_t maxreq, struct buf **bpp) in cluster_read() argument
376 return(cluster_readx(vp, filesize, loffset, blksize, B_NOTMETA, in cluster_read()
382 int blksize, size_t minreq, size_t maxreq, struct buf **bpp) in cluster_read_kvabio() argument
385 return(cluster_readx(vp, filesize, loffset, blksize, in cluster_read_kvabio()
H A Dvnode.h472 int vtruncbuf (struct vnode *vp, off_t length, int blksize);
474 int nvtruncbuf (struct vnode *vp, off_t length, int blksize, int boff,
480 int blksize, int boff);
484 int vinitvmio(struct vnode *vp, off_t filesize, int blksize, int boff);
/dragonfly/sys/vfs/ufs/
H A Dffs_subr.c71 bsize = blksize(fs, ip, lbn); in ffs_blkatoff()
110 bsize = blksize(fs, ip, lbn); in ffs_blkatoff_ra()
135 nextbsize = blksize(fs, ip, nextlbn); in ffs_blkatoff_ra()
H A Dffs_inode.c289 size = blksize(fs, oip, lbn); in ffs_truncate()
393 bsize = blksize(fs, oip, i); in ffs_truncate()
412 oldspace = blksize(fs, oip, lastblock); in ffs_truncate()
414 newspace = blksize(fs, oip, lastblock); in ffs_truncate()
/dragonfly/sys/dev/sound/pci/
H A Dneomagic.c55 u_int32_t blksize, wmark; member
359 ch->blksize = 0; in nmchan_init()
401 ch->blksize = blocksize; in nmchan_setblocksize()
423 ch->wmark = ch->blksize; in nmchan_trigger()
439 ch->wmark = ch->blksize; in nmchan_trigger()
498 sc->pch.wmark += sc->pch.blksize; in nm_intr()
507 sc->rch.wmark += sc->rch.blksize; in nm_intr()
/dragonfly/contrib/tcpdump/
H A Dprint-decnet.c586 u_int info, blksize, eco, ueco, hello, other, vers; in print_decnet_ctlmsg() local
598 blksize = GET_LE_U_2(cmp->cm_init.in_blksize); in print_decnet_ctlmsg()
605 dnaddr_string(ndo, src), blksize, vers, eco, ueco, in print_decnet_ctlmsg()
655 blksize = GET_LE_U_2(cmp->cm_rhello.rh_blksize); in print_decnet_ctlmsg()
661 blksize, priority, hello); in print_decnet_ctlmsg()
675 blksize = GET_LE_U_2(cmp->cm_ehello.eh_blksize); in print_decnet_ctlmsg()
684 blksize, dnaddr_string(ndo, dst), hello, other); in print_decnet_ctlmsg()
/dragonfly/contrib/gdb-7/gdb/
H A Dremote-fileio.c428 LONGEST blksize; in remote_fileio_to_fio_stat() local
439 blksize = st->st_blksize; in remote_fileio_to_fio_stat()
441 blksize = 512; in remote_fileio_to_fio_stat()
443 remote_fileio_to_fio_ulong (blksize, fst->fst_blksize); in remote_fileio_to_fio_stat()
450 remote_fileio_to_fio_ulong (((LONGEST) st->st_size + blksize - 1) in remote_fileio_to_fio_stat()
451 / blksize, in remote_fileio_to_fio_stat()
/dragonfly/sys/vm/
H A Dvnode_pager.c103 int blksize, int boff) in vnode_pager_alloc() argument
150 boff = (int)(length % blksize); in vnode_pager_alloc()
152 loffset = length + (blksize - boff); in vnode_pager_alloc()
/dragonfly/sys/vfs/isofs/cd9660/
H A Dcd9660_lookup.c397 bsize = blksize(imp, ip, lbn); in cd9660_blkatoff()
461 bsize = blksize(imp, ip, lbn); in cd9660_devblkatoff()

12