Home
last modified time | relevance | path

Searched refs:bytecount (Results 1 – 25 of 32) sorted by relevance

12

/freebsd-13-stable/sys/dev/random/
HDfortuna.c554 random_fortuna_genbytes(uint8_t *buf, size_t bytecount, in random_fortuna_genbytes() argument
571 randomdev_keystream(p_key, p_counter, buf, bytecount); in random_fortuna_genbytes()
591 chunk_size = MIN(bytecount, chunk_size); in random_fortuna_genbytes()
595 while (bytecount >= chunk_size && chunk_size > 0) { in random_fortuna_genbytes()
599 bytecount -= chunk_size; in random_fortuna_genbytes()
611 if (bytecount > 0) { in random_fortuna_genbytes()
632 if (bytecount < chunk_size) { in random_fortuna_genbytes()
634 chunk_size = bytecount; in random_fortuna_genbytes()
635 else if (bytecount >= RANDOM_BLOCKSIZE) in random_fortuna_genbytes()
636 chunk_size = rounddown(bytecount, in random_fortuna_genbytes()
[all …]
HDhash.c135 void *d_out, size_t bytecount) in randomdev_keystream() argument
150 while (bytecount > 0) { in randomdev_keystream()
155 read_chunk = MIN(bytecount, in randomdev_keystream()
162 bytecount -= read_chunk; in randomdev_keystream()
174 KASSERT(bytecount % RANDOM_BLOCKSIZE == 0, in randomdev_keystream()
178 blockcount = bytecount / RANDOM_BLOCKSIZE; in randomdev_keystream()
/freebsd-13-stable/sys/powerpc/powermac/
HData_dbdma.c213 if (!request->bytecount) { in ata_dbdma_load()
219 (request->bytecount & (ch->dma.alignment - 1))) { in ata_dbdma_load()
224 if (request->bytecount > ch->dma.max_iosize) { in ata_dbdma_load()
227 request->bytecount, ch->dma.max_iosize); in ata_dbdma_load()
234 request->dma->data_map, request->data, request->bytecount, in ata_dbdma_load()
/freebsd-13-stable/sys/dev/ata/
HData-all.c138 ch->user[i].bytecount = 8192; in ata_attach()
140 ch->user[i].bytecount = 65536; in ata_attach()
746 request->bytecount = ccb->ataio.dxfer_len; in ata_cam_begin_transaction()
778 request->transfersize = min(request->bytecount, in ata_cam_begin_transaction()
779 ch->curr[ccb->ccb_h.target_id].bytecount); in ata_cam_begin_transaction()
781 request->transfersize = min(request->bytecount, 512); in ata_cam_begin_transaction()
784 request->bytecount = ccb->csio.dxfer_len; in ata_cam_begin_transaction()
798 request->transfersize = min(request->bytecount, in ata_cam_begin_transaction()
799 ch->curr[ccb->ccb_h.target_id].bytecount); in ata_cam_begin_transaction()
830 request->bytecount = ccb->csio.sense_len; in ata_cam_request_sense()
[all …]
HData-dma.c278 if (!request->bytecount) { in ata_dmaload()
283 if (request->bytecount & (ch->dma.alignment - 1)) { in ata_dmaload()
286 request->bytecount, ch->dma.alignment); in ata_dmaload()
289 if (request->bytecount > ch->dma.max_iosize) { in ata_dmaload()
292 request->bytecount, ch->dma.max_iosize); in ata_dmaload()
310 request->data, request->bytecount, in ata_dmaload()
HData-lowlevel.c293 if (request->bytecount > request->donecount) { in ata_end_transaction()
296 min((request->bytecount - request->donecount), in ata_end_transaction()
335 request->donecount = request->bytecount; in ata_end_transaction()
385 request->transfersize = min((request->bytecount-request->donecount), in ata_end_transaction()
402 request->transfersize = min((request->bytecount-request->donecount), in ata_end_transaction()
450 request->donecount = request->bytecount; in ata_end_transaction()
HData-all.h237 u_int32_t bytecount; /* bytes to transfer */ member
391 u_int bytecount; member
/freebsd-13-stable/sys/cam/ata/
HData_xpt.c540 u_int sectors, bytecount; in aprobestart() local
542 bytecount = 8192; /* SATA maximum */ in aprobestart()
551 bytecount = cts.xport_specific.ata.bytecount; in aprobestart()
554 bytecount = cts.xport_specific.sata.bytecount; in aprobestart()
558 bytecount / ata_logical_sector_size(ident_buf))); in aprobestart()
565 cts.xport_specific.ata.bytecount = sectors * in aprobestart()
569 cts.xport_specific.sata.bytecount = sectors * in aprobestart()
582 bytecount = cts.xport_specific.ata.bytecount; in aprobestart()
585 bytecount = cts.xport_specific.sata.bytecount; in aprobestart()
587 sectors = bytecount / ata_logical_sector_size(ident_buf); in aprobestart()
[all …]
/freebsd-13-stable/sys/vm/
HDvnode_pager.c816 int bytecount, secmask; in vnode_pager_generic_getpages() local
1047 bytecount = bp->b_npages << PAGE_SHIFT; in vnode_pager_generic_getpages()
1048 if ((foff + bytecount) > object->un_pager.vnp.vnp_size) in vnode_pager_generic_getpages()
1049 bytecount = object->un_pager.vnp.vnp_size - foff; in vnode_pager_generic_getpages()
1053 bytecount = (bytecount + secmask) & ~secmask; in vnode_pager_generic_getpages()
1076 bp->b_bcount = bp->b_bufsize = bp->b_runningbufspace = bytecount; in vnode_pager_generic_getpages()
1284 vnode_pager_generic_putpages(struct vnode *vp, vm_page_t *ma, int bytecount, in vnode_pager_generic_putpages() argument
1299 count = bytecount / PAGE_SIZE; in vnode_pager_generic_putpages()
/freebsd-13-stable/contrib/opencsd/decoder/source/etmv3/
HDtrc_pkt_proc_etmv3_impl.cpp824 int bytecount = 0; in extractBrAddrPkt() local
832 while(CBit && bytecount < 4) in extractBrAddrPkt()
838 if(bytecount == 0) in extractBrAddrPkt()
862 bytecount++; in extractBrAddrPkt()
/freebsd-13-stable/sys/i386/linux/
HDlinux_machdep.c392 ldt.num = uap->bytecount / sizeof(union descriptor); in linux_modify_ldt()
398 if (size > uap->bytecount) in linux_modify_ldt()
399 size = uap->bytecount; in linux_modify_ldt()
406 if (uap->bytecount != sizeof(ld)) in linux_modify_ldt()
/freebsd-13-stable/lib/libc/mips/string/
HDbcopy.S181 andi t0,SIZEREG,(SZREG-1) # t0 = bytecount mod SZREG
275 andi t0,SIZEREG,SZREG-1 # t0 = bytecount mod 4
/freebsd-13-stable/sys/mips/mips/
HDbcopy.S171 andi t0,SIZEREG,(SZREG-1) # t0 = bytecount mod SZREG
265 andi t0,SIZEREG,SZREG-1 # t0 = bytecount mod 4
/freebsd-13-stable/sys/dev/mvs/
HDmvs.c136 ch->user[i].bytecount = (ch->quirks & MVS_Q_GENIIE) ? 8192 : 2048; in mvs_ch_attach()
951 ch->curr[ccb->ccb_h.target_id].bytecount); in mvs_legacy_intr()
977 ch->curr[ccb->ccb_h.target_id].bytecount); in mvs_legacy_intr()
1291 eprd[i].bytecount = htole32(segs[i].ds_len & MVS_EPRD_MASK); in mvs_dmasetprd()
1294 eprd[i - 1].bytecount |= htole32(MVS_EPRD_EOF); in mvs_dmasetprd()
1336 ch->curr[port].bytecount); in mvs_legacy_execute_transaction()
1358 ch->curr[port].bytecount); in mvs_legacy_execute_transaction()
2309 d->bytecount = min((ch->quirks & MVS_Q_GENIIE) ? 8192 : 2048, in mvsaction()
2310 cts->xport_specific.sata.bytecount); in mvsaction()
2370 cts->xport_specific.sata.bytecount = d->bytecount; in mvsaction()
HDmvs.h427 uint32_t bytecount; /* Byte Count */ member
515 u_int bytecount; member
/freebsd-13-stable/sys/dev/ahci/
HDahci.h353 u_int32_t bytecount; member
399 u_int bytecount; member
HDahci.c839 ch->user[i].bytecount = 8192; in ahci_ch_attach()
1712 clp->bytecount = 0; in ahci_execute_transaction()
2001 ccb->ataio.dxfer_len - le32toh(clp->bytecount); in ahci_end_transaction()
2007 ccb->csio.dxfer_len - le32toh(clp->bytecount); in ahci_end_transaction()
2761 d->bytecount = min(8192, cts->xport_specific.sata.bytecount); in ahciaction()
2824 cts->xport_specific.sata.bytecount = d->bytecount; in ahciaction()
/freebsd-13-stable/sys/powerpc/mpc85xx/
HDfsl_sata.c244 u_int bytecount; member
344 ch->user[i].bytecount = 8192; in fsl_sata_attach()
1762 d->bytecount = min(8192, cts->xport_specific.sata.bytecount); in fsl_sataaction()
1817 cts->xport_specific.sata.bytecount = d->bytecount; in fsl_sataaction()
/freebsd-13-stable/sys/dev/siis/
HDsiis.h353 u_int bytecount; member
HDsiis.c476 ch->user[i].bytecount = 8192; in siis_ch_attach()
1857 d->bytecount = min(8192, cts->xport_specific.sata.bytecount); in siisaction()
1921 cts->xport_specific.sata.bytecount = d->bytecount; in siisaction()
/freebsd-13-stable/sys/dev/ata/chipsets/
HData-promise.c402 (request->bytecount >> 1)); in ata_promise_dmastart()
1141 wordp[1] = htole32(request->bytecount | ATA_DMA_EOT); in ata_promise_sx4_command()
1146 wordp[1] = htole32(request->bytecount | ATA_DMA_EOT); in ata_promise_sx4_command()
/freebsd-13-stable/sys/netinet/
HDsctp_cc_functions.c1919 net->cc_mod.htcp_ca.bytecount = 0; in measure_achieved_throughput()
1924 net->cc_mod.htcp_ca.bytecount += net->net_ack; in measure_achieved_throughput()
1925 …if ((net->cc_mod.htcp_ca.bytecount >= net->cwnd - (((net->cc_mod.htcp_ca.alpha >> 7) ? (net->cc_mo… in measure_achieved_throughput()
1928 …uint32_t cur_Bi = net->cc_mod.htcp_ca.bytecount / net->mtu * hz / (now - net->cc_mod.htcp_ca.lastt… in measure_achieved_throughput()
1940 net->cc_mod.htcp_ca.bytecount = 0; in measure_achieved_throughput()
/freebsd-13-stable/sys/dev/pst/
HDpst-raid.c293 msg->bytecount = request->bp->bio_bcount; in pst_rw()
/freebsd-13-stable/sys/cam/
HDcam_ccb.h992 u_int bytecount; /* Length of PIO transaction */ member
1010 u_int bytecount; /* Length of PIO transaction */ member
/freebsd-13-stable/sys/dev/hptrr/
HDldm.h524 void ldm_ide_fixstring (HPT_U8 *s, const int bytecount);

12