Home
last modified time | relevance | path

Searched refs:blk (Results 1 – 25 of 158) sorted by relevance

1234567

/freebsd/sys/dev/ice/
H A Dice_flex_pipe.c708 if (prof >= hw->blk[blk].es.count) in ice_find_prot_off()
711 if (fv_idx >= hw->blk[blk].es.fvw) in ice_find_prot_off()
714 fv_ext = hw->blk[blk].es.t + (prof * hw->blk[blk].es.fvw); in ice_find_prot_off()
907 &hw->blk[blk].xlt1.ptypes[ptype]; in ice_ptg_add_mv_ptype()
910 hw->blk[blk].xlt1.t[ptype] = ptg; in ice_ptg_add_mv_ptype()
1342 &hw->blk[blk].xlt2.vsis[vsi]; in ice_vsig_add_mv_vsi()
1344 hw->blk[blk].xlt2.t[vsi] = vsig; in ice_vsig_add_mv_vsi()
1536 ice_memset(&hw->blk[blk].es.t[off], 0, hw->blk[blk].es.fvw * in ice_write_es()
1540 ice_memcpy(&hw->blk[blk].es.t[off], fv, hw->blk[blk].es.fvw * in ice_write_es()
1622 ptg = hw->blk[blk].xlt1.t[pt]; in ice_init_sw_xlt1_db()
[all …]
H A Dice_flex_pipe.h38 ice_find_prot_off(struct ice_hw *hw, enum ice_block blk, u8 prof, u16 fv_idx,
63 enum ice_status ice_ptg_update_xlt1(struct ice_hw *hw, enum ice_block blk);
64 void ice_ptg_free(struct ice_hw *hw, enum ice_block blk, u8 ptg);
67 enum ice_status ice_vsig_update_xlt2(struct ice_hw *hw, enum ice_block blk);
69 ice_vsig_find_vsi(struct ice_hw *hw, enum ice_block blk, u16 vsi, u16 *vsig);
71 ice_add_prof(struct ice_hw *hw, enum ice_block blk, u64 id,
74 ice_search_prof_id(struct ice_hw *hw, enum ice_block blk, u64 id);
76 ice_add_vsi_flow(struct ice_hw *hw, enum ice_block blk, u16 vsi, u16 vsig);
90 ice_add_flow(struct ice_hw *hw, enum ice_block blk, u16 vsi[], u8 count,
93 ice_rem_flow(struct ice_hw *hw, enum ice_block blk, u16 vsi[], u8 count,
[all …]
H A Dice_flow.c393 enum ice_block blk; member
566 u8 fv_words = (u8)hw->blk[params->blk].es.fvw; in ice_flow_xtract_fld()
694 if (hw->blk[params->blk].es.reverse) in ice_flow_xtract_fld()
760 switch (params->blk) { in ice_flow_proc_segs()
879 ice_acquire_lock(&hw->blk[blk].es.prof_map_lock); in ice_flow_get_hw_prof()
885 ice_release_lock(&hw->blk[blk].es.prof_map_lock); in ice_flow_get_hw_prof()
934 params->blk = blk; in ice_flow_add_prof_sync()
1040 status = ice_add_prof_id_flow(hw, blk, in ice_flow_assoc_prof()
1373 if (LIST_EMPTY(&hw->fl_profs[blk])) in ice_rem_vsi_rss_cfg()
1382 ret = ice_vsig_find_vsi(hw, blk, in ice_rem_vsi_rss_cfg()
[all …]
/freebsd/sys/crypto/aesni/
H A Daesni_wrap.c86 blks->blk[2], blks->blk[3], blks->blk[4], blks->blk[5], in aesni_decrypt_cbc()
121 blks->blk[2], blks->blk[3], blks->blk[4], blks->blk[5], in aesni_encrypt_ecb()
122 blks->blk[6], blks->blk[7], tout); in aesni_encrypt_ecb()
160 blks->blk[2], blks->blk[3], blks->blk[4], blks->blk[5], in aesni_decrypt_ecb()
161 blks->blk[6], blks->blk[7], tout); in aesni_decrypt_ecb()
247 top->blk[0] = blks->blk[0] ^ tout[0]; in aesni_encrypt_icm()
248 top->blk[1] = blks->blk[1] ^ tout[1]; in aesni_encrypt_icm()
249 top->blk[2] = blks->blk[2] ^ tout[2]; in aesni_encrypt_icm()
250 top->blk[3] = blks->blk[3] ^ tout[3]; in aesni_encrypt_icm()
251 top->blk[4] = blks->blk[4] ^ tout[4]; in aesni_encrypt_icm()
[all …]
/freebsd/sys/kern/
H A Dsubr_blist.c286 return (blk); in blist_alloc()
590 daddr_t blk; in blst_next_leaf_alloc() local
594 for (blk = start; blk - start < maxcount; blk += BLIST_RADIX) { in blst_next_leaf_alloc()
712 blk -= blk & BLIST_MASK; in blst_leaf_alloc()
800 cursor = blk; in blst_meta_alloc()
820 cursor = blk; in blst_meta_alloc()
889 if (blk != 0) in blst_meta_free()
897 blk += radix; in blst_meta_free()
950 blk += radix; in blst_copy()
1004 if (blk != 0) in blst_meta_fill()
[all …]
/freebsd/sbin/dump/
H A Dcache.c81 Block *blk; in cread() local
122 pblk = &blk->b_HNext; in cread()
124 if (blk == NULL) { in cread()
125 blk = *ppblk; in cread()
128 n = pread(fd, blk->b_Data, BlockSize, blk->b_Offset); in cread()
130 blk->b_Offset = (off_t)-1; in cread()
131 blk = NULL; in cread()
134 if (blk) { in cread()
135 bcopy(blk->b_Data + (offset - blk->b_Offset), buf, nbytes); in cread()
136 *pblk = blk->b_HNext; in cread()
[all …]
/freebsd/sys/opencrypto/
H A Dcryptosoft.c174 inblk = blk; in swcr_encdec()
178 outblk = blk; in swcr_encdec()
218 inblk = blk; in swcr_encdec()
233 explicit_bzero(blk, sizeof(blk)); in swcr_encdec()
530 exf->encrypt_last(ctx, blk, blk, resid); in swcr_gcm()
604 exf->decrypt_last(ctx, blk, blk, resid); in swcr_gcm()
870 exf->encrypt_last(ctx, blk, blk, resid); in swcr_ccm()
873 exf->decrypt_last(ctx, blk, blk, resid); in swcr_ccm()
941 exf->decrypt_last(ctx, blk, blk, resid); in swcr_ccm()
1064 exf->encrypt_last(ctx, blk, blk, resid); in swcr_chacha20_poly1305()
[all …]
/freebsd/usr.bin/mkimg/
H A Dimage.c177 if (ch->ch_block < blk) { in image_chunk_memory()
185 new->ch_block = blk; in image_chunk_memory()
269 ch->ch_block = blk; in image_chunk_append()
292 blk++; in image_chunk_copyin()
470 blk += sz / secsz; in image_copyin_mapped()
634 blk += sz / secsz; in image_copyout_region()
652 if (lim >= blk + size) in image_data()
654 size -= lim - blk; in image_data()
655 blk = lim; in image_data()
674 image_size = blk; in image_set_size()
[all …]
H A Dimage.h34 int image_copyin(lba_t blk, int fd, uint64_t *sizep);
37 int image_copyout_region(int fd, lba_t blk, lba_t size);
39 int image_data(lba_t blk, lba_t size);
42 int image_set_size(lba_t blk);
43 int image_write(lba_t blk, void *buf, ssize_t len);
H A Dbsd.c50 bsd_metadata(u_int where, lba_t blk) in bsd_metadata() argument
54 blk += BSD_BOOTBLOCK_SIZE / secsz; in bsd_metadata()
56 blk = round_cylinder(blk); in bsd_metadata()
58 blk = round_block(blk); in bsd_metadata()
59 return (blk); in bsd_metadata()
H A Dvhd.c277 lba_t blk, blkcnt, nblks; in vhd_dyn_write() local
312 blk = entry * blkcnt; in vhd_dyn_write()
313 if (image_data(blk, blkcnt)) { in vhd_dyn_write()
329 blk = 0; in vhd_dyn_write()
333 while (blk < nblks) { in vhd_dyn_write()
334 if (!image_data(blk, blkcnt)) { in vhd_dyn_write()
335 blk += blkcnt; in vhd_dyn_write()
343 if (blk + blkcnt > nblks) in vhd_dyn_write()
344 blkcnt = nblks - blk; in vhd_dyn_write()
345 error = image_copyout_region(fd, blk, blkcnt); in vhd_dyn_write()
[all …]
/freebsd/sys/fs/tarfs/
H A Dtarfs_subr.c221 tnp->blk = malloc(sizeof(*tnp->blk), M_TARFSBLK, M_WAITOK); in tarfs_alloc_node()
317 blk[i].i = blk[i - 1].i + blk[i - 1].l; in tarfs_load_blockmap()
322 blk[i].o = n; in tarfs_load_blockmap()
327 blk[i].l = n; in tarfs_load_blockmap()
329 i, blk[i].i, blk[i].o, blk[i].l); in tarfs_load_blockmap()
348 if (i > 0 && blk[i].o < blk[i - 1].o + blk[i - 1].l) { in tarfs_load_blockmap()
356 if (blk[i].i + blk[i].l > tnp->physize || in tarfs_load_blockmap()
357 blk[i].o + blk[i].l > realsize) { in tarfs_load_blockmap()
367 tnp->blk = blk; in tarfs_load_blockmap()
429 if (uiop->uio_offset > tnp->blk[i].o + tnp->blk[i].l) { in tarfs_read_file()
[all …]
/freebsd/contrib/mandoc/
H A Dread.c174 while (i < blk.sz && (blk.buf[i] != '\0' || pos != 0)) { in mparse_buf_r()
186 while (i < blk.sz && (start || blk.buf[i] != '\0')) { in mparse_buf_r()
194 if ('\r' == blk.buf[i] && i + 1 < blk.sz && in mparse_buf_r()
197 if ('\n' == blk.buf[i]) { in mparse_buf_r()
215 c = blk.buf[i]; in mparse_buf_r()
266 if (i == blk.sz || blk.buf[i] == '\0') { in mparse_buf_r()
378 (i >= blk.sz || blk.buf[i] == '\0')) { in mparse_buf_r()
558 struct buf blk; in mparse_readfd() local
587 curp->primary = &blk; in mparse_readfd()
612 munmap(blk.buf, blk.sz); in mparse_readfd()
[all …]
/freebsd/stand/common/
H A Dbcache.c187 write_strategy(void *devdata, int rw, daddr_t blk, size_t size, in write_strategy() argument
198 bcache_invalidate(bc, blk + i); in write_strategy()
211 read_strategy(void *devdata, int rw, daddr_t blk, size_t size, in read_strategy() argument
237 if (BCACHE_LOOKUP(bc, (daddr_t)(blk + i))) { in read_strategy()
262 if (blk == bc->bcache_nextblkno) { in read_strategy()
279 p_blk = blk + i; in read_strategy()
318 if ((bc->bcache_nextblkno != blk) && ra != 0) { in read_strategy()
365 if (BCACHE_LOOKUP(bc, (daddr_t)(blk + i))) in read_strategy()
381 bc->bcache_nextblkno = blk + (size / DEV_BSIZE); in read_strategy()
408 DPRINTF("bypass %zu from %jd", size / bcache_blksize, blk); in bcache_strategy()
[all …]
/freebsd/sys/geom/part/
H A Dg_part_ldm.c701 struct ldm_xvblk *blk; in ldm_xvblk_handle() local
708 if (blk == NULL) { in ldm_xvblk_handle()
709 blk = g_malloc(sizeof(*blk), M_WAITOK | M_ZERO); in ldm_xvblk_handle()
710 blk->group = vh->group; in ldm_xvblk_handle()
712 blk->data = g_malloc(blk->size, M_WAITOK | M_ZERO); in ldm_xvblk_handle()
722 blk->map |= 1 << vh->index; in ldm_xvblk_handle()
773 struct ldm_vblk *blk; in ldm_vblk_handle() local
779 blk = g_malloc(sizeof(*blk), M_WAITOK | M_ZERO); in ldm_vblk_handle()
791 switch (blk->type) { in ldm_vblk_handle()
978 errstr, blk->type); in ldm_vblk_handle()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/events/
H A Dzed_cksum_config.ksh100 blk=0
102 dd if=$FILEPATH of=/dev/null bs=1 count=1 skip=$blk 2>/dev/null
103 blk=$((blk+512))
121 blk=0
123 dd if=$FILEPATH of=/dev/null bs=1 count=1 skip=$blk 2>/dev/null
124 blk=$((blk+512))
H A Dzed_io_config.ksh91 blk=0
93 dd if=$FILEPATH of=/dev/null bs=1 count=1 skip=$blk 2>/dev/null
94 blk=$((blk+512))
128 blk=0
130 dd if=$FILEPATH of=/dev/null bs=1 count=1 skip=$blk 2>/dev/null
131 blk=$((blk+512))
/freebsd/sys/contrib/zstd/zlibWrapper/examples/
H A Dfitblk_original.c132 unsigned char *blk; /* intermediate and final stream */ in main() local
147 blk = malloc(size + EXCESS); in main()
152 if (ret != Z_OK || blk == NULL) in main()
157 def.next_out = blk; in main()
166 if (fwrite(blk, 1, have, stdout) != have || ferror(stdout)) in main()
172 free(blk); in main()
194 inf.next_in = blk; in main()
211 def.next_out = blk; in main()
219 if (fwrite(blk, 1, have, stdout) != have || ferror(stdout)) in main()
228 free(blk); in main()
H A Dfitblk.c144 unsigned char *blk; /* intermediate and final stream */ in main() local
162 blk = (unsigned char*)malloc(size + EXCESS); in main()
167 if (ret != Z_OK || blk == NULL) in main()
172 def.next_out = blk; in main()
189 free(blk); in main()
211 inf.next_in = blk; in main()
230 def.next_out = blk; in main()
249 free(blk); in main()
/freebsd/sbin/tunefs/
H A Dtunefs.c568 ufs2_daddr_t blk; in journal_balloc() local
575 blk = cgballoc(&disk); in journal_balloc()
576 if (blk > 0) in journal_balloc()
616 return (blk); in journal_balloc()
769 ufs2_daddr_t blk; in journal_insertfile() local
779 blk = 0; in journal_insertfile()
805 blk = 0; in journal_insertfile()
827 if (blk) { in journal_insertfile()
910 ufs2_daddr_t blk; in journal_alloc() local
1000 if (blk <= 0) in journal_alloc()
[all …]
/freebsd/sys/fs/ext2fs/
H A Dext2_extents.c76 if (blk < fs->e2fs->e2fs_first_dblock || blk >= fs->e2fs_bcount) in ext4_ext_blk_check()
88 e4fs_daddr_t blk; in ext4_ext_walk_index() local
124 e4fs_daddr_t blk; in ext4_ext_walk_extent() local
232 e4fs_daddr_t blk; in ext4_ext_index_pblock() local
237 return (blk); in ext4_ext_index_pblock()
251 e4fs_daddr_t blk; in ext4_ext_extent_pblock() local
256 return (blk); in ext4_ext_extent_pblock()
606 uint64_t blk; in ext4_ext_find_extent() local
818 uint64_t blk; in ext4_ext_dirty() local
893 if (blk) { in ext4_ext_alloc_meta()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/soc/imx/
H A Dfsl,imx8mq-vpu-blk-ctrl.yaml4 $id: http://devicetree.org/schemas/soc/imx/fsl,imx8mq-vpu-blk-ctrl.yaml#
7 title: NXP i.MX8MQ VPU blk-ctrl
13 The i.MX8MQ VPU blk-ctrl is a top-level peripheral providing access to
20 - const: fsl,imx8mq-vpu-blk-ctrl
62 blk-ctrl@38320000 {
63 compatible = "fsl,imx8mq-vpu-blk-ctrl";
H A Dfsl,imx8mm-vpu-blk-ctrl.yaml4 $id: http://devicetree.org/schemas/soc/imx/fsl,imx8mm-vpu-blk-ctrl.yaml#
7 title: NXP i.MX8MM VPU blk-ctrl
13 The i.MX8MM VPU blk-ctrl is a top-level peripheral providing access to
20 - const: fsl,imx8mm-vpu-blk-ctrl
60 const: fsl,imx8mm-vpu-blk-ctrl
105 const: fsl,imx8mp-vpu-blk-ctrl
153 blk-ctrl@38330000 {
154 compatible = "fsl,imx8mm-vpu-blk-ctrl", "syscon";
H A Dfsl,imx8mp-hsio-blk-ctrl.yaml4 $id: http://devicetree.org/schemas/soc/imx/fsl,imx8mp-hsio-blk-ctrl.yaml#
7 title: NXP i.MX8MP HSIO blk-ctrl
13 The i.MX8MP HSIO blk-ctrl is a top-level peripheral providing access to
20 - const: fsl,imx8mp-hsio-blk-ctrl
79 blk-ctrl@32f10000 {
80 compatible = "fsl,imx8mp-hsio-blk-ctrl", "syscon";
/freebsd/sbin/fsck_ffs/
H A Dsuj.c255 sblk->sb_blk = blk; in blk_lookup()
557 ufs2_daddr_t blk; in ino_clrat() local
602 ufs2_daddr_t blk; in ino_isat() local
643 if (blk <= 0) { in ino_isat()
721 if (blk == 0) in indir_visit()
898 blk_free(ino, blk, blk_freemask(blk, ino, lbn, frags), frags); in blk_free_visit()
1227 if (blk == 0) in indir_trunc()
1492 ufs2_daddr_t blk; in blk_check() local
1527 blk += frags; in blk_check()
1908 ufs2_daddr_t blk; in blk_build() local
[all …]

1234567