Home
last modified time | relevance | path

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

123456

/freebsd/sys/dev/ice/
H A Dice_flex_pipe.c113 * @blk: block type
119 static u32 ice_sect_id(enum ice_block blk, enum ice_sect sect) in ice_sect_id() argument
121 return ice_sect_lkup[blk][sect]; in ice_sect_id()
696 * @blk: hardware block
703 ice_find_prot_off(struct ice_hw *hw, enum ice_block blk, u8 prof, u16 fv_idx, in ice_find_prot_off()
708 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[bl in ice_find_prot_off()
702 ice_find_prot_off(struct ice_hw * hw,enum ice_block blk,u8 prof,u16 fv_idx,u8 * prot,u16 * off) ice_find_prot_off() argument
731 ice_ptg_update_xlt1(struct ice_hw * hw,enum ice_block blk) ice_ptg_update_xlt1() argument
769 ice_ptg_find_ptype(struct ice_hw * hw,enum ice_block blk,u16 ptype,u8 * ptg) ice_ptg_find_ptype() argument
787 ice_ptg_alloc_val(struct ice_hw * hw,enum ice_block blk,u8 ptg) ice_ptg_alloc_val() argument
801 ice_ptg_free(struct ice_hw * hw,enum ice_block blk,u8 ptg) ice_ptg_free() argument
828 ice_ptg_remove_ptype(struct ice_hw * hw,enum ice_block blk,u16 ptype,u8 ptg) ice_ptg_remove_ptype() argument
875 ice_ptg_add_mv_ptype(struct ice_hw * hw,enum ice_block blk,u16 ptype,u8 ptg) ice_ptg_add_mv_ptype() argument
1019 ice_vsig_update_xlt2_sect(struct ice_hw * hw,enum ice_block blk,u16 vsi,u16 vsig) ice_vsig_update_xlt2_sect() argument
1051 ice_vsig_update_xlt2(struct ice_hw * hw,enum ice_block blk) ice_vsig_update_xlt2() argument
1084 ice_vsig_find_vsi(struct ice_hw * hw,enum ice_block blk,u16 vsi,u16 * vsig) ice_vsig_find_vsi() argument
1106 ice_vsig_alloc_val(struct ice_hw * hw,enum ice_block blk,u16 vsig) ice_vsig_alloc_val() argument
1126 ice_vsig_alloc(struct ice_hw * hw,enum ice_block blk) ice_vsig_alloc() argument
1153 ice_find_dup_props_vsig(struct ice_hw * hw,enum ice_block blk,struct LIST_HEAD_TYPE * chs,u16 * vsig) ice_find_dup_props_vsig() argument
1179 ice_vsig_free(struct ice_hw * hw,enum ice_block blk,u16 vsig) ice_vsig_free() argument
1240 ice_vsig_remove_vsi(struct ice_hw * hw,enum ice_block blk,u16 vsi,u16 vsig) ice_vsig_remove_vsi() argument
1298 ice_vsig_add_mv_vsi(struct ice_hw * hw,enum ice_block blk,u16 vsi,u16 vsig) ice_vsig_add_mv_vsi() argument
1356 ice_find_prof_id(struct ice_hw * hw,enum ice_block blk,struct ice_fv_word * fv,u8 * prof_id) ice_find_prof_id() argument
1381 ice_prof_id_rsrc_type(enum ice_block blk,u16 * rsrc_type) ice_prof_id_rsrc_type() argument
1401 ice_tcam_ent_rsrc_type(enum ice_block blk,u16 * rsrc_type) ice_tcam_ent_rsrc_type() argument
1427 ice_alloc_tcam_ent(struct ice_hw * hw,enum ice_block blk,bool btm,u16 * tcam_idx) ice_alloc_tcam_ent() argument
1447 ice_free_tcam_ent(struct ice_hw * hw,enum ice_block blk,u16 tcam_idx) ice_free_tcam_ent() argument
1467 ice_alloc_prof_id(struct ice_hw * hw,enum ice_block blk,u8 * prof_id) ice_alloc_prof_id() argument
1492 ice_free_prof_id(struct ice_hw * hw,enum ice_block blk,u8 prof_id) ice_free_prof_id() argument
1510 ice_prof_inc_ref(struct ice_hw * hw,enum ice_block blk,u8 prof_id) ice_prof_inc_ref() argument
1528 ice_write_es(struct ice_hw * hw,enum ice_block blk,u8 prof_id,struct ice_fv_word * fv) ice_write_es() argument
1551 ice_prof_dec_ref(struct ice_hw * hw,enum ice_block blk,u8 prof_id) ice_prof_dec_ref() argument
1614 ice_init_sw_xlt1_db(struct ice_hw * hw,enum ice_block blk) ice_init_sw_xlt1_db() argument
1634 ice_init_sw_xlt2_db(struct ice_hw * hw,enum ice_block blk) ice_init_sw_xlt2_db() argument
1999 ice_free_vsig_tbl(struct ice_hw * hw,enum ice_block blk) ice_free_vsig_tbl() argument
2146 ice_prof_gen_key(struct ice_hw * hw,enum ice_block blk,u8 ptg,u16 vsig,u8 cdid,u16 flags,u8 vl_msk[ICE_TCAM_KEY_VAL_SZ],u8 dc_msk[ICE_TCAM_KEY_VAL_SZ],u8 nm_msk[ICE_TCAM_KEY_VAL_SZ],u8 key[ICE_TCAM_KEY_SZ]) ice_prof_gen_key() argument
2202 ice_tcam_write_entry(struct ice_hw * hw,enum ice_block blk,u16 idx,u8 prof_id,u8 ptg,u16 vsig,u8 cdid,u16 flags,u8 vl_msk[ICE_TCAM_KEY_VAL_SZ],u8 dc_msk[ICE_TCAM_KEY_VAL_SZ],u8 nm_msk[ICE_TCAM_KEY_VAL_SZ]) ice_tcam_write_entry() argument
2229 ice_vsig_get_ref(struct ice_hw * hw,enum ice_block blk,u16 vsig,u16 * refs) ice_vsig_get_ref() argument
2256 ice_has_prof_vsig(struct ice_hw * hw,enum ice_block blk,u16 vsig,u64 hdl) ice_has_prof_vsig() argument
2279 ice_prof_bld_es(struct ice_hw * hw,enum ice_block blk,struct ice_buf_build * bld,struct LIST_HEAD_TYPE * chgs) ice_prof_bld_es() argument
2320 ice_prof_bld_tcam(struct ice_hw * hw,enum ice_block blk,struct ice_buf_build * bld,struct LIST_HEAD_TYPE * chgs) ice_prof_bld_tcam() argument
2360 ice_prof_bld_xlt1(enum ice_block blk,struct ice_buf_build * bld,struct LIST_HEAD_TYPE * chgs) ice_prof_bld_xlt1() argument
2395 ice_prof_bld_xlt2(enum ice_block blk,struct ice_buf_build * bld,struct LIST_HEAD_TYPE * chgs) ice_prof_bld_xlt2() argument
2437 ice_upd_prof_hw(struct ice_hw * hw,enum ice_block blk,struct LIST_HEAD_TYPE * chgs) ice_upd_prof_hw() argument
2544 ice_add_prof(struct ice_hw * hw,enum ice_block blk,u64 id,ice_bitmap_t * ptypes,struct ice_fv_word * es) ice_add_prof() argument
2621 ice_search_prof_id(struct ice_hw * hw,enum ice_block blk,u64 id) ice_search_prof_id() argument
2643 ice_set_prof_context(struct ice_hw * hw,enum ice_block blk,u64 id,u64 cntxt) ice_set_prof_context() argument
2666 ice_get_prof_context(struct ice_hw * hw,enum ice_block blk,u64 id,u64 * cntxt) ice_get_prof_context() argument
2688 ice_vsig_prof_id_count(struct ice_hw * hw,enum ice_block blk,u16 vsig) ice_vsig_prof_id_count() argument
2707 ice_rel_tcam_idx(struct ice_hw * hw,enum ice_block blk,u16 idx) ice_rel_tcam_idx() argument
2734 ice_rem_prof_id(struct ice_hw * hw,enum ice_block blk,struct ice_vsig_prof * prof) ice_rem_prof_id() argument
2760 ice_rem_vsig(struct ice_hw * hw,enum ice_block blk,u16 vsig,struct LIST_HEAD_TYPE * chg) ice_rem_vsig() argument
2817 ice_rem_prof_id_vsig(struct ice_hw * hw,enum ice_block blk,u16 vsig,u64 hdl,struct LIST_HEAD_TYPE * chg) ice_rem_prof_id_vsig() argument
2851 ice_rem_flow_all(struct ice_hw * hw,enum ice_block blk,u64 id) ice_rem_flow_all() argument
2891 ice_rem_prof(struct ice_hw * hw,enum ice_block blk,u64 id) ice_rem_prof() argument
2928 ice_get_prof(struct ice_hw * hw,enum ice_block blk,u64 hdl,struct LIST_HEAD_TYPE * chg) ice_get_prof() argument
2982 ice_get_profs_vsig(struct ice_hw * hw,enum ice_block blk,u16 vsig,struct LIST_HEAD_TYPE * lst) ice_get_profs_vsig() argument
3020 ice_add_prof_to_lst(struct ice_hw * hw,enum ice_block blk,struct LIST_HEAD_TYPE * lst,u64 hdl) ice_add_prof_to_lst() argument
3067 ice_move_vsi(struct ice_hw * hw,enum ice_block blk,u16 vsi,u16 vsig,struct LIST_HEAD_TYPE * chg) ice_move_vsi() argument
3127 ice_prof_tcam_ena_dis(struct ice_hw * hw,enum ice_block blk,bool enable,u16 vsig,struct ice_tcam_inf * tcam,struct LIST_HEAD_TYPE * chg) ice_prof_tcam_ena_dis() argument
3195 ice_adj_prof_priorities(struct ice_hw * hw,enum ice_block blk,u16 vsig,struct LIST_HEAD_TYPE * chg) ice_adj_prof_priorities() argument
3268 ice_add_prof_id_vsig(struct ice_hw * hw,enum ice_block blk,u16 vsig,u64 hdl,bool rev,struct LIST_HEAD_TYPE * chg) ice_add_prof_id_vsig() argument
3374 ice_create_prof_id_vsig(struct ice_hw * hw,enum ice_block blk,u16 vsi,u64 hdl,struct LIST_HEAD_TYPE * chg) ice_create_prof_id_vsig() argument
3424 ice_create_vsig_from_lst(struct ice_hw * hw,enum ice_block blk,u16 vsi,struct LIST_HEAD_TYPE * lst,u16 * new_vsig,struct LIST_HEAD_TYPE * chg) ice_create_vsig_from_lst() argument
3461 ice_find_prof_vsig(struct ice_hw * hw,enum ice_block blk,u64 hdl,u16 * vsig) ice_find_prof_vsig() argument
3499 ice_add_vsi_flow(struct ice_hw * hw,enum ice_block blk,u16 vsi,u16 vsig) ice_add_vsi_flow() argument
3537 ice_add_prof_id_flow(struct ice_hw * hw,enum ice_block blk,u16 vsi,u64 hdl) ice_add_prof_id_flow() argument
3684 ice_add_flow(struct ice_hw * hw,enum ice_block blk,u16 vsi[],u8 count,u64 id) ice_add_flow() argument
3733 ice_rem_prof_id_flow(struct ice_hw * hw,enum ice_block blk,u16 vsi,u64 hdl) ice_rem_prof_id_flow() argument
3867 ice_rem_flow(struct ice_hw * hw,enum ice_block blk,u16 vsi[],u8 count,u64 id) ice_rem_flow() argument
[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 int 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 int 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);
78 ice_add_prof_id_flow(struct ice_hw *hw, enum ice_block blk, u16 vsi, u64 hdl);
80 ice_rem_prof_id_flow(struct ice_hw *hw, enum ice_block blk, u1
[all...]
H A Dice_flow.c393 enum ice_block blk; member
565 u8 fv_words = (u8)hw->blk[params->blk].es.fvw; in ice_flow_xtract_fld()
693 if (hw->blk[params->blk].es.reverse) in ice_flow_xtract_fld()
759 switch (params->blk) { in ice_flow_proc_segs()
777 * @blk: classification stage
785 ice_flow_find_prof_conds(struct ice_hw *hw, enum ice_block blk,
791 ice_acquire_lock(&hw->fl_profs_locks[blk]); in ice_flow_find_prof_conds()
792 LIST_FOR_EACH_ENTRY(p, &hw->fl_profs[blk], ice_flow_pro in ice_flow_find_prof_conds()
790 ice_flow_find_prof_conds(struct ice_hw * hw,enum ice_block blk,enum ice_flow_dir dir,struct ice_flow_seg_info * segs,u8 segs_cnt,u16 vsi_handle,u32 conds) ice_flow_find_prof_conds() argument
840 ice_flow_find_prof(struct ice_hw * hw,enum ice_block blk,enum ice_flow_dir dir,struct ice_flow_seg_info * segs,u8 segs_cnt) ice_flow_find_prof() argument
858 ice_flow_find_prof_id(struct ice_hw * hw,enum ice_block blk,u64 prof_id) ice_flow_find_prof_id() argument
877 ice_flow_get_hw_prof(struct ice_hw * hw,enum ice_block blk,u64 prof_id,u8 * hw_prof_id) ice_flow_get_hw_prof() argument
908 ice_flow_add_prof_sync(struct ice_hw * hw,enum ice_block blk,enum ice_flow_dir dir,u64 prof_id,struct ice_flow_seg_info * segs,u8 segs_cnt,struct ice_flow_action * acts,u8 acts_cnt,struct ice_flow_prof ** prof) ice_flow_add_prof_sync() argument
984 ice_flow_rem_prof_sync(struct ice_hw * hw,enum ice_block blk,struct ice_flow_prof * prof) ice_flow_rem_prof_sync() argument
1011 ice_flow_assoc_vsig_vsi(struct ice_hw * hw,enum ice_block blk,u16 vsi_handle,u16 vsig) ice_flow_assoc_vsig_vsi() argument
1038 ice_flow_assoc_prof(struct ice_hw * hw,enum ice_block blk,struct ice_flow_prof * prof,u16 vsi_handle) ice_flow_assoc_prof() argument
1069 ice_flow_disassoc_prof(struct ice_hw * hw,enum ice_block blk,struct ice_flow_prof * prof,u16 vsi_handle) ice_flow_disassoc_prof() argument
1102 ice_flow_add_prof(struct ice_hw * hw,enum ice_block blk,enum ice_flow_dir dir,u64 prof_id,struct ice_flow_seg_info * segs,u8 segs_cnt,struct ice_flow_action * acts,u8 acts_cnt,struct ice_flow_prof ** prof) ice_flow_add_prof() argument
1141 ice_flow_rem_prof(struct ice_hw * hw,enum ice_block blk,u64 prof_id) ice_flow_rem_prof() argument
1369 const enum ice_block blk = ICE_BLK_RSS; ice_rem_vsi_rss_cfg() local
1552 const enum ice_block blk = ICE_BLK_RSS; ice_add_rss_cfg_sync() local
1703 const enum ice_block blk = ICE_BLK_RSS; ice_rem_rss_cfg_sync() local
[all...]
/freebsd/sys/crypto/aesni/
H A Daesni_wrap.c50 __m128i blk[8]; member
85 aesni_dec8(rounds - 1, key_schedule, blks->blk[0], blks->blk[1], in aesni_decrypt_cbc()
86 blks->blk[2], blks->blk[3], blks->blk[4], blks->blk[5], in aesni_decrypt_cbc()
87 blks->blk[6], blks->blk[7], &blocks[0]); in aesni_decrypt_cbc()
89 nextiv = blks->blk[j]; in aesni_decrypt_cbc()
90 blks->blk[j] = blocks[j] ^ ivreg; in aesni_decrypt_cbc()
120 aesni_enc8(rounds - 1, key_schedule, blks->blk[0], blks->blk[1], in aesni_encrypt_ecb()
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()
123 top->blk[0] = tout[0]; in aesni_encrypt_ecb()
[all …]
/freebsd/sys/kern/
H A Dsubr_blist.c130 static daddr_t blst_leaf_alloc(blmeta_t *scan, daddr_t blk,
137 static void blst_copy(blmeta_t *scan, daddr_t blk, daddr_t radix,
139 static daddr_t blst_leaf_fill(blmeta_t *scan, daddr_t blk, int count);
143 static void blst_radix_print(blmeta_t *scan, daddr_t blk, daddr_t radix,
265 daddr_t blk, cursor; in blist_alloc() local
279 blk = blst_meta_alloc(bl->bl_root, cursor, count, maxcount, in blist_alloc()
281 if (blk != SWAPBLK_NONE) { in blist_alloc()
283 bl->bl_cursor = blk + *count; in blist_alloc()
286 return (blk); in blist_alloc()
590 daddr_t blk; in blst_next_leaf_alloc() local
[all …]
/freebsd/sys/opencrypto/
H A Dcryptosoft.c100 unsigned char blk[EALG_MAX_BLOCK_LEN]; in swcr_encdec() local
141 crypto_read_iv(crp, blk); in swcr_encdec()
142 exf->reinit(ctx, blk, csp->csp_ivlen); in swcr_encdec()
173 crypto_cursor_copydata(&cc_in, blksz, blk); in swcr_encdec()
174 inblk = blk; in swcr_encdec()
178 outblk = blk; in swcr_encdec()
189 if (inblk == blk) { in swcr_encdec()
197 if (outblk == blk) { in swcr_encdec()
198 crypto_cursor_copyback(&cc_out, blksz, blk); in swcr_encdec()
217 crypto_cursor_copydata(&cc_in, resid, blk); in swcr_encdec()
[all …]
/freebsd/sbin/dump/
H A Dcache.c81 Block *blk; in cread() local
118 while ((blk = *pblk) != NULL) { in cread()
119 if (((blk->b_Offset ^ offset) & mask) == 0) in cread()
122 pblk = &blk->b_HNext; in cread()
124 if (blk == NULL) { in cread()
125 blk = *ppblk; in cread()
127 blk->b_Offset = offset & mask; 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()
[all …]
/freebsd/usr.bin/mkimg/
H A Dimage.c132 image_chunk_find(lba_t blk) in image_chunk_find() argument
137 ch = (last != NULL && last->ch_block <= blk) in image_chunk_find()
140 if (ch->ch_block <= blk && in image_chunk_find()
141 (lba_t)(ch->ch_block + (ch->ch_size / secsz)) > blk) { in image_chunk_find()
168 image_chunk_memory(struct chunk *ch, lba_t blk) in image_chunk_memory() argument
177 if (ch->ch_block < blk) { in image_chunk_memory()
184 ch->ch_size = (blk - ch->ch_block) * secsz; in image_chunk_memory()
185 new->ch_block = blk; in image_chunk_memory()
249 image_chunk_append(lba_t blk, size_t sz, off_t ofs, int fd) in image_chunk_append() argument
256 blk == (lba_t)(ch->ch_block + (ch->ch_size / secsz)) && in image_chunk_append()
[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 …]
H A Dqcow.c136 lba_t blk, blkofs, blk_imgsz; in qcow_write() local
222 blk = n * blk_clstrsz; in qcow_write()
223 if (image_data(blk, blk_clstrsz)) { in qcow_write()
276 blk = blkofs + (lba_t)l2idx * blk_clstrsz; in qcow_write()
277 if (blk >= blk_imgsz) in qcow_write()
279 if (image_data(blk, blk_clstrsz)) { in qcow_write()
313 blk = n * blk_clstrsz; in qcow_write()
314 if (image_data(blk, blk_clstrsz)) { in qcow_write()
315 error = image_copyout_region(fd, blk, blk_clstrsz); in qcow_write()
/freebsd/sys/fs/tarfs/
H A Dtarfs_subr.c221 tnp->blk = malloc(sizeof(*tnp->blk), M_TARFSBLK, M_WAITOK); in tarfs_alloc_node()
222 tnp->blk[0].i = 0; in tarfs_alloc_node()
223 tnp->blk[0].o = 0; in tarfs_alloc_node()
224 tnp->blk[0].l = tnp->physize; in tarfs_alloc_node()
265 struct tarfs_blk *blk = NULL; in tarfs_load_blockmap() local
311 blk = malloc(sizeof(*blk) * nblk, M_TARFSBLK, M_WAITOK | M_ZERO); in tarfs_load_blockmap()
315 blk[i].i = nmap * TARFS_BLOCKSIZE; in tarfs_load_blockmap()
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()
[all …]
/freebsd/contrib/mandoc/
H A Dread.c151 mparse_buf_r(struct mparse *curp, struct buf blk, size_t i, int start) in mparse_buf_r() argument
174 while (i < blk.sz && (blk.buf[i] != '\0' || pos != 0)) { in mparse_buf_r()
182 curp->filenc = preconv_cue(&blk, i); 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()
195 '\n' == blk.buf[i + 1]) in mparse_buf_r()
197 if ('\n' == blk.buf[i]) { in mparse_buf_r()
215 c = blk.buf[i]; in mparse_buf_r()
218 &blk, &i, &ln, &pos, &curp->filenc))) { in mparse_buf_r()
242 ln.buf[pos++] = blk.buf[i++]; in mparse_buf_r()
[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()
202 return (dd->dv_strategy(dd->dv_devdata, rw, blk, size, buf, rsize)); 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()
270 bcopy(bc->bcache_data + (bcache_blksize * BHASH(bc, blk)), buf, size); 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()
[all …]
/freebsd/sys/geom/part/
H A Dg_part_ldm.c701 struct ldm_xvblk *blk; in ldm_xvblk_handle() local
705 LIST_FOREACH(blk, &db->xvblks, entry) in ldm_xvblk_handle()
706 if (blk->group == vh->group) in ldm_xvblk_handle()
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()
711 blk->size = size * vh->count + 16; in ldm_xvblk_handle()
712 blk->data = g_malloc(blk->size, M_WAITOK | M_ZERO); in ldm_xvblk_handle()
713 blk->map = 0xFF << vh->count; in ldm_xvblk_handle()
714 LIST_INSERT_HEAD(&db->xvblks, blk, entry); in ldm_xvblk_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()
611 if (bwrite(&disk, fsbtodb(&sblock, blk), clrbuf, in journal_balloc()
616 return (blk); in journal_balloc()
623 dir_search(ufs2_daddr_t blk, int bytes) in dir_search() argument
629 if (bread(&disk, fsbtodb(&sblock, blk), block, bytes) <= 0) { in dir_search()
712 dir_insert(ufs2_daddr_t blk, off_t off, ino_t ino) in dir_insert() argument
717 if (bread(&disk, fsbtodb(&sblock, blk), block, sblock.fs_bsize) <= 0) { in dir_insert()
729 if (bwrite(&disk, fsbtodb(&sblock, blk), block, sblock.fs_bsize) <= 0) { in dir_insert()
[all …]
/freebsd/sys/fs/ext2fs/
H A Dext2_extents.c70 ext4_ext_blk_check(struct inode *ip, e4fs_daddr_t blk) in ext4_ext_blk_check() argument
76 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
94 printf(" index %p => (blk %u pblk %ju)\n", ex, in ext4_ext_walk_index()
102 blk = ext4_ext_index_pblock(ex); in ext4_ext_walk_index()
103 error = ext4_ext_blk_check(ip, blk); in ext4_ext_walk_index()
108 fsbtodb(fs, blk), (int)fs->e2fs_bsize, NOCRED, &bp)) != 0) { in ext4_ext_walk_index()
124 e4fs_daddr_t blk; in ext4_ext_walk_extent() local
127 blk in ext4_ext_walk_extent()
232 e4fs_daddr_t blk; ext4_ext_index_pblock() local
251 e4fs_daddr_t blk; ext4_ext_extent_pblock() local
384 e4fs_daddr_t blk = ext4_ext_extent_pblock(ext); ext4_validate_extent() local
397 e4fs_daddr_t blk = ext4_ext_index_pblock(ext_idx); ext4_validate_extent_idx() local
495 ext4_ext_binsearch_index(struct ext4_extent_path * path,int blk) ext4_ext_binsearch_index() argument
520 ext4_ext_binsearch_ext(struct ext4_extent_path * path,int blk) ext4_ext_binsearch_ext() argument
549 ext4_ext_fill_path_bdata(struct ext4_extent_path * path,struct buf * bp,uint64_t blk) ext4_ext_fill_path_bdata() argument
606 uint64_t blk; ext4_ext_find_extent() local
724 ext4_ext_put_in_cache(struct inode * ip,uint32_t blk,uint32_t len,uint32_t start,int type) ext4_ext_put_in_cache() argument
752 e2fs_daddr_t blk = le32toh(ex->e_blk); ext4_ext_blkpref() local
818 uint64_t blk; ext4_ext_dirty() local
845 ext4_ext_insert_index(struct inode * ip,struct ext4_extent_path * path,uint32_t lblk,e4fs_daddr_t blk) ext4_ext_insert_index() argument
892 e4fs_daddr_t blk = ext2_alloc_meta(ip); ext4_ext_alloc_meta() local
903 ext4_ext_blkfree(struct inode * ip,uint64_t blk,int count,int flags) ext4_ext_blkfree() argument
[all...]
/freebsd/sbin/fsck_ffs/
H A Dsuj.c238 blk_lookup(ufs2_daddr_t blk, int creat) in blk_lookup() argument
244 sc = cg_lookup(dtog(fs, blk)); in blk_lookup()
245 if (sc->sc_lastblk && sc->sc_lastblk->sb_blk == blk) in blk_lookup()
247 hd = &sc->sc_blkhash[HASH(fragstoblks(fs, blk))]; in blk_lookup()
249 if (sblk->sb_blk == blk) in blk_lookup()
255 sblk->sb_blk = blk; in blk_lookup()
309 blk_freemask(ufs2_daddr_t blk, ino_t ino, ufs_lbn_t lbn, int frags) in blk_freemask() argument
325 sblk = blk_lookup(blknum(fs, blk), 0); in blk_freemask()
328 off = blk - sblk->sb_blk; in blk_freemask()
336 if (blk_overlaps(brec, blk, frags) == 0) in blk_freemask()
[all …]
/freebsd/tools/tools/bootparttest/
H A Dbootparttest.c39 static int disk_strategy(void *devdata, int rw, daddr_t blk,
47 int (*dv_strategy)(void *devdata, int rw, daddr_t blk,
68 disk_strategy(void *devdata, int rw, daddr_t blk, size_t size, char *buf, in disk_strategy() argument
79 (long long)blk, (long long)dev->d_offset); in disk_strategy()
81 (blk + dev->d_offset) * disk.sectorsize); in disk_strategy()
/freebsd/sbin/fsdb/
H A Dfsdb.c55 static int founddatablk(uint64_t blk);
58 static int find_indirblks32(uint32_t blk, int ind_level, uint32_t *blknum);
59 static int find_indirblks64(uint64_t blk, int ind_level, uint64_t *blknum);
647 founddatablk(uint64_t blk) in founddatablk() argument
651 (unsigned long long)fsbtodb(&sblock, blk), (uintmax_t)curinum); in founddatablk()
661 int blk; in find_blks32() local
662 for (blk = 0; blk < size; blk++) { in find_blks32()
663 if (buf[blk] == 0) in find_blks32()
665 if (compare_blk32(wantedblk, buf[blk])) { in find_blks32()
666 if (founddatablk(buf[blk])) in find_blks32()
[all …]

123456