/dflybsd-src/sys/dev/drm/amd/display/dc/dce/ |
H A D | dce_mem_input.h | 129 #define MI_GFX8_TILE_MASK_SH_LIST(mask_sh, blk)\ argument 130 SFB(blk, GRPH_CONTROL, GRPH_NUM_BANKS, mask_sh),\ 131 SFB(blk, GRPH_CONTROL, GRPH_BANK_WIDTH, mask_sh),\ 132 SFB(blk, GRPH_CONTROL, GRPH_BANK_HEIGHT, mask_sh),\ 133 SFB(blk, GRPH_CONTROL, GRPH_MACRO_TILE_ASPECT, mask_sh),\ 134 SFB(blk, GRPH_CONTROL, GRPH_TILE_SPLIT, mask_sh),\ 135 SFB(blk, GRPH_CONTROL, GRPH_MICRO_TILE_MODE, mask_sh),\ 136 SFB(blk, GRPH_CONTROL, GRPH_PIPE_CONFIG, mask_sh),\ 137 SFB(blk, GRPH_CONTROL, GRPH_ARRAY_MODE, mask_sh),\ 138 SFB(blk, GRPH_CONTROL, GRPH_COLOR_EXPANSION_MODE, mask_sh) [all …]
|
H A D | dce_hwseq.h | 65 #define HWSEQ_PIXEL_RATE_REG_LIST(blk) \ argument 66 SRII(PIXEL_RATE_CNTL, blk, 0), \ 67 SRII(PIXEL_RATE_CNTL, blk, 1), \ 68 SRII(PIXEL_RATE_CNTL, blk, 2), \ 69 SRII(PIXEL_RATE_CNTL, blk, 3), \ 70 SRII(PIXEL_RATE_CNTL, blk, 4), \ 71 SRII(PIXEL_RATE_CNTL, blk, 5) 73 #define HWSEQ_PHYPLL_REG_LIST(blk) \ argument 74 SRII(PHYPLL_PIXEL_RATE_CNTL, blk, 0), \ 75 SRII(PHYPLL_PIXEL_RATE_CNTL, blk, 1), \ [all …]
|
/dflybsd-src/sys/kern/ |
H A D | subr_blist.c | 138 swblk_t blk, swblk_t count); 140 swblk_t blk, swblk_t count, 145 swblk_t blk); 146 static swblk_t blst_leaf_fill(blmeta_t *scan, swblk_t blk, swblk_t count); 149 swblk_t blk); 150 static void blst_copy(blmeta_t *scan, swblk_t blk, int64_t radix, 155 static void blst_radix_print(blmeta_t *scan, swblk_t blk, 236 swblk_t blk = SWAPBLK_NONE; in blist_alloc() local 240 blk = blst_leaf_alloc(bl->bl_root, 0, 0, count); in blist_alloc() 242 blk = blst_meta_alloc(bl->bl_root, 0, 0, count, in blist_alloc() [all …]
|
H A D | subr_alist.c | 116 static alist_blk_t alst_leaf_alloc(almeta_t *scan, alist_blk_t blk, 118 static alist_blk_t alst_meta_alloc(almeta_t *scan, alist_blk_t blk, 125 alist_blk_t skip, alist_blk_t blk); 126 static alist_blk_t alst_radix_init(almeta_t *scan, alist_blk_t blk, 130 static void alst_radix_print(almeta_t *scan, alist_blk_t blk, 243 alist_blk_t blk = ALIST_BLOCK_NONE; in alist_alloc() local 253 blk = alist_alloc(bl, start, ncount); in alist_alloc() 254 if (blk != ALIST_BLOCK_NONE) in alist_alloc() 255 alist_free(bl, blk + count, ncount - count); in alist_alloc() 256 return (blk); in alist_alloc() [all …]
|
/dflybsd-src/sys/crypto/twofish/ |
H A D | twofish.c | 455 t1 = g1_fun(blk[1]); t0 = g0_fun(blk[0]); \ 456 blk[2] = rotr(blk[2] ^ (t0 + t1 + l_key[4 * (i) + 8]), 1); \ 457 blk[3] = rotl(blk[3], 1) ^ (t0 + 2 * t1 + l_key[4 * (i) + 9]); \ 458 t1 = g1_fun(blk[3]); t0 = g0_fun(blk[2]); \ 459 blk[0] = rotr(blk[0] ^ (t0 + t1 + l_key[4 * (i) + 10]), 1); \ 460 blk[1] = rotl(blk[1], 1) ^ (t0 + 2 * t1 + l_key[4 * (i) + 11]) 465 u_int32_t t0, t1, blk[4]; in twofish_encrypt() local 470 blk[0] = LE32(((const u_int32_t *)in_blk)[0]) ^ l_key[0]; in twofish_encrypt() 471 blk[1] = LE32(((const u_int32_t *)in_blk)[1]) ^ l_key[1]; in twofish_encrypt() 472 blk[2] = LE32(((const u_int32_t *)in_blk)[2]) ^ l_key[2]; in twofish_encrypt() [all …]
|
/dflybsd-src/sbin/dump/ |
H A D | cache.c | 105 Block *blk; in cread() local 142 while ((blk = *pblk) != NULL) { in cread() 143 if (((blk->b_Offset ^ offset) & mask) == 0) in cread() 146 pblk = &blk->b_HNext; in cread() 148 if (blk == NULL) { in cread() 149 blk = *ppblk; in cread() 151 blk->b_Offset = offset & mask; in cread() 152 n = pread(fd, blk->b_Data, BlockSize, blk->b_Offset); in cread() 154 blk->b_Offset = (off_t)-1; in cread() 155 blk = NULL; in cread() [all …]
|
/dflybsd-src/sys/opencrypto/ |
H A D | xform.c | 453 null_encrypt(caddr_t key, u_int8_t *blk, u_int8_t *iv) in null_encrypt() argument 458 null_decrypt(caddr_t key, u_int8_t *blk, u_int8_t *iv) in null_decrypt() argument 469 des1_encrypt(caddr_t key, u_int8_t *blk, u_int8_t *iv) in des1_encrypt() argument 471 des_cblock *cb = (des_cblock *) blk; in des1_encrypt() 478 des1_decrypt(caddr_t key, u_int8_t *blk, u_int8_t *iv) in des1_decrypt() argument 480 des_cblock *cb = (des_cblock *) blk; in des1_decrypt() 493 des3_encrypt(caddr_t key, u_int8_t *blk, u_int8_t *iv) in des3_encrypt() argument 495 des_cblock *cb = (des_cblock *) blk; in des3_encrypt() 502 des3_decrypt(caddr_t key, u_int8_t *blk, u_int8_t *iv) in des3_decrypt() argument 504 des_cblock *cb = (des_cblock *) blk; in des3_decrypt() [all …]
|
H A D | cryptosoft.c | 80 unsigned char iv[EALG_MAX_BLOCK_LEN], blk[EALG_MAX_BLOCK_LEN], *idat; in swcr_encdec() local 170 m_copydata(m, k, blks, blk); in swcr_encdec() 176 blk, iv); in swcr_encdec() 179 blk, iv); in swcr_encdec() 184 blk[j] ^= ivp[j]; in swcr_encdec() 186 exf->encrypt(kschedule, blk, iv); in swcr_encdec() 192 bcopy(blk, iv, blks); in swcr_encdec() 200 bcopy(blk, nivp, blks); in swcr_encdec() 202 exf->decrypt(kschedule, blk, iv); in swcr_encdec() 206 blk[j] ^= ivp[j]; in swcr_encdec() [all …]
|
/dflybsd-src/contrib/mdocml/ |
H A D | read.c | 151 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 …]
|
/dflybsd-src/sys/vfs/ext2fs/ |
H A D | fs.h | 135 #define lblktosize(fs, blk) /* calculates (blk * fs->fs_bsize) */ \ argument 136 ((blk) << (fs->e2fs_bshift)) 144 #define lblktodoff(fs, blk) /* calculates (blk * fs->fs_bsize) */ \ argument 145 ((off_t)(blk) << (fs)->e2fs_bshift) 147 #define fsbtodoff(fs, blk) /* calculates (blk * fs->fs_fsize) */ \ argument 148 ((off_t)(blk) * (fs)->e2fs_fsize) 150 #define dofftofsb(fs, blk) /* calculates blk / fs->fs_fsize */ \ argument 151 ((daddr_t)((blk) / (fs)->e2fs_fsize))
|
H A D | ext2_htree.c | 82 uint32_t hash, uint32_t blk); 84 uint32_t hash, uint32_t blk); 87 uint32_t blk); 164 ext2_htree_set_block(struct ext2fs_htree_entry *ep, uint32_t blk) in ext2_htree_set_block() argument 166 ep->h_blk = htole32(blk); in ext2_htree_set_block() 363 uint32_t blk; in ext2_htree_lookup() local 383 blk = ext2_htree_get_block(leaf_node); in ext2_htree_lookup() 384 if (ext2_blkatoff(vp, blk * bsize, NULL, &bp) != 0) { in ext2_htree_lookup() 389 *offp = blk * bsize; in ext2_htree_lookup() 391 *prevoffp = blk * bsize; in ext2_htree_lookup() [all …]
|
/dflybsd-src/stand/boot/efi/libefi/ |
H A D | efipart.c | 250 efipart_readwrite(EFI_BLOCK_IO *blkio, int rw, daddr_t blk, daddr_t nblks, in efipart_readwrite() argument 257 if (blk < 0 || blk > blkio->Media->LastBlock) in efipart_readwrite() 259 if ((blk + nblks - 1) > blkio->Media->LastBlock) in efipart_readwrite() 264 status = blkio->ReadBlocks(blkio, blkio->Media->MediaId, blk, in efipart_readwrite() 270 status = blkio->WriteBlocks(blkio, blkio->Media->MediaId, blk, in efipart_readwrite() 283 efipart_strategy(void *devdata, int rw, daddr_t blk, size_t size, char *buf, in efipart_strategy() argument 293 if (dev == NULL || blk < 0) in efipart_strategy() 309 blk += dev->d_kind.efidisk.label_offset / DEV_BSIZE; in efipart_strategy() 312 return (efipart_readwrite(blkio, rw, blk, size / 512, buf)); in efipart_strategy() 322 off = blk * 512; in efipart_strategy() [all …]
|
/dflybsd-src/sys/vm/ |
H A D | swap_pager.c | 182 #define BLK2DEVIDX(blk) (nswdev > 1 ? blk / SWB_DMMAX % nswdev : 0) argument 293 swblk_t blk, int npages); 534 swblk_t blk; in swp_pager_getswapspace() local 537 blk = blist_allocat(swapblist, npages, swapiterator); in swp_pager_getswapspace() 538 if (blk == SWAPBLK_NONE) in swp_pager_getswapspace() 539 blk = blist_allocat(swapblist, npages, 0); in swp_pager_getswapspace() 540 if (blk == SWAPBLK_NONE) { in swp_pager_getswapspace() 560 swapacctspace(blk, -npages); in swp_pager_getswapspace() 568 return(blk); in swp_pager_getswapspace() 583 swp_pager_freeswapspace(vm_object_t object, swblk_t blk, int npages) in swp_pager_freeswapspace() argument [all …]
|
H A D | vm_swap.c | 259 swblk_t blk; in swaponvp() local 378 blk = min(aligned_nblks - dvbase, SWB_DMMAX); in swaponvp() 380 blist_free(swapblist, vsbase, blk); in swaponvp() 381 vm_swap_size += blk; in swaponvp() 382 vm_swap_max += blk; in swaponvp() 443 swblk_t blk, aligned_nblks; in swapoff_one() local 540 blk = min(aligned_nblks - dvbase, SWB_DMMAX); in swapoff_one() 542 vm_swap_size -= blist_fill(swapblist, vsbase, blk); in swapoff_one() 543 vm_swap_max -= blk; in swapoff_one()
|
/dflybsd-src/contrib/libpcap/ |
H A D | grammar.y | 337 } blk; member 341 %type <blk> expr id nid pid term rterm qid 342 %type <blk> head 347 %type <blk> and or paren not null prog 350 %type <blk> atmfield 351 %type <blk> atmfieldvalue atmvalue atmlistvalue 353 %type <blk> mtp3field 354 %type <blk> mtp3fieldvalue mtp3value mtp3listvalue 414 and: AND { $$ = $<blk>0; } 416 or: OR { $$ = $<blk>0; } [all …]
|
/dflybsd-src/sbin/fsck/ |
H A D | utilities.c | 54 static void rwerror(char *mesg, ufs_daddr_t blk); 202 getblk(struct bufarea *bp, ufs_daddr_t blk, long size) in getblk() argument 206 dblk = fsbtodb(&sblock, blk); in getblk() 241 rwerror(char *mesg, ufs_daddr_t blk) in rwerror() argument 246 pfatal("CANNOT %s: BLK %d", mesg, blk); in rwerror() 304 bread(int fd, char *buf, ufs_daddr_t blk, long size) in bread() argument 310 offset = blk; in bread() 313 rwerror("SEEK", blk); in bread() 316 rwerror("READ", blk); in bread() 318 rwerror("SEEK", blk); in bread() [all …]
|
H A D | inode.c | 229 chkrange(ufs_daddr_t blk, int cnt) in chkrange() argument 233 if (cnt <= 0 || blk <= 0 || blk > maxfsblock || in chkrange() 234 cnt - 1 > maxfsblock - blk) in chkrange() 237 fragnum(&sblock, blk) + cnt > sblock.fs_frag) { in chkrange() 240 (long)blk, fragnum(&sblock, blk), cnt); in chkrange() 243 c = dtog(&sblock, blk); in chkrange() 244 if (blk < cgdmin(&sblock, c)) { in chkrange() 245 if ((blk + cnt) > cgsblock(&sblock, c)) { in chkrange() 248 (long)blk, (long)cgdmin(&sblock, c)); in chkrange() 250 (long)(blk + cnt), in chkrange() [all …]
|
/dflybsd-src/stand/boot/common/ |
H A D | bcache.c | 125 write_strategy(void *devdata, int unit, int rw, daddr_t blk, size_t size, in write_strategy() argument 136 bcache_invalidate(blk + i); in write_strategy() 140 err = dd->dv_strategy(dd->dv_devdata, rw, blk, size, buf, rsize); in write_strategy() 145 bcache_insert(buf + (i * bcache_blksize),blk + i); in write_strategy() 158 read_strategy(void *devdata, int unit, int rw, daddr_t blk, size_t size, in read_strategy() argument 171 if (bcache_lookup(buf + (bcache_blksize * i), blk + i)) { in read_strategy() 188 p_blk = blk + i; in read_strategy() 224 bcache_strategy(void *devdata, int unit, int rw, daddr_t blk, size_t size, in bcache_strategy() argument 239 DEBUG("bypass %d from %d", size / bcache_blksize, blk); in bcache_strategy() 241 return(dd->dv_strategy(dd->dv_devdata, rw, blk, size, buf, rsize)); in bcache_strategy() [all …]
|
/dflybsd-src/contrib/gcc-4.7/gcc/ |
H A D | gcov.c | 1335 block_t *blk; in solve_flow_graph() local 1385 for (ix = 0, blk = fn->blocks; ix != fn->num_blocks; ix++, blk++) in solve_flow_graph() 1391 for (arc = blk->succ; arc; arc = arc->succ_next) in solve_flow_graph() 1401 blk->num_succ--; in solve_flow_graph() 1412 for (arc = blk->succ; arc; arc = arc->succ_next) in solve_flow_graph() 1422 if (blk->is_call_site && arc->fall_through in solve_flow_graph() 1434 arc_t *start = blk->succ; in solve_flow_graph() 1462 blk->succ = start; in solve_flow_graph() 1467 blk->invalid_chain = 1; in solve_flow_graph() 1468 blk->chain = invalid_blocks; in solve_flow_graph() [all …]
|
/dflybsd-src/sys/dev/sound/pci/ |
H A D | envy24.c | 82 u_int32_t blk; /* hw block size(dword) */ member 164 u_int16_t blk[2]; /* transfer check blocksize(dword) */ member 1206 u_int16_t blk; in envy24_updintr() local 1212 blk = sc->blk[0]; in envy24_updintr() 1219 blk = sc->blk[1]; in envy24_updintr() 1232 cnt = blk - 1; in envy24_updintr() 1234 device_printf(sc->dev, "envy24_updintr():ptr = %d, blk = %d, cnt = %d\n", ptr, blk, cnt); in envy24_updintr() 1607 ch->blk = 10240; in envy24chan_init() 1667 ch->blk *= ch->unit / emltab[i].unit; in envy24chan_setformat() 1669 ch->blk /= emltab[i].unit / ch->unit; in envy24chan_setformat() [all …]
|
H A D | envy24ht.c | 91 u_int32_t blk; /* hw block size(dword) */ member 163 u_int16_t blk[2]; /* transfer check blocksize(dword) */ member 1160 u_int16_t blk; in envy24ht_updintr() local 1166 blk = sc->blk[0]; in envy24ht_updintr() 1173 blk = sc->blk[1]; in envy24ht_updintr() 1186 cnt = blk - 1; in envy24ht_updintr() 1188 device_printf(sc->dev, "envy24ht_updintr():ptr = %d, blk = %d, cnt = %d\n", ptr, blk, cnt); in envy24ht_updintr() 1518 ch->blk = 10240; in envy24htchan_init() 1578 ch->blk *= ch->unit / emltab[i].unit; in envy24htchan_setformat() 1580 ch->blk /= emltab[i].unit / ch->unit; in envy24htchan_setformat() [all …]
|
/dflybsd-src/lib/libkvm/ |
H A D | kvm_getswapinfo.c | 246 swblk_t blk, in scanradix() argument 281 (intmax_t)blk, in scanradix() 293 (intmax_t)blk, in scanradix() 311 (intmax_t)blk, in scanradix() 322 (intmax_t)blk, in scanradix() 332 (intmax_t)blk, in scanradix() 349 blk, in scanradix() 361 blk += (swblk_t)radix; in scanradix()
|
/dflybsd-src/sbin/fsdb/ |
H A D | fsdb.h | 34 extern int bread(int fd, char *buf, daddr_t blk, long size); 35 extern void bwrite(int fd, char *buf, daddr_t blk, long size); 36 extern void rwerror(char *mesg, daddr_t blk);
|
/dflybsd-src/contrib/gcc-8.0/gcc/ |
H A D | gcov.c | 1850 block_info *blk; in solve_flow_graph() local 1902 blk = &fn->blocks[i]; in solve_flow_graph() 1907 for (arc = blk->succ; arc; arc = arc->succ_next) in solve_flow_graph() 1917 blk->num_succ--; in solve_flow_graph() 1928 for (arc = blk->succ; arc; arc = arc->succ_next) in solve_flow_graph() 1938 if (blk->is_call_site && arc->fall_through in solve_flow_graph() 1950 arc_info *start = blk->succ; in solve_flow_graph() 1978 blk->succ = start; in solve_flow_graph() 1983 blk->invalid_chain = 1; in solve_flow_graph() 1984 blk->chain = invalid_blocks; in solve_flow_graph() [all …]
|
/dflybsd-src/contrib/gdb-7/bfd/ |
H A D | dwarf2.c | 65 struct dwarf_block *blk; member 808 struct dwarf_block *blk; in read_attribute_value() local 841 blk = (struct dwarf_block *) bfd_alloc (abfd, amt); in read_attribute_value() 842 if (blk == NULL) in read_attribute_value() 844 blk->size = read_2_bytes (abfd, info_ptr); in read_attribute_value() 846 blk->data = read_n_bytes (abfd, info_ptr, blk->size); in read_attribute_value() 847 info_ptr += blk->size; in read_attribute_value() 848 attr->u.blk = blk; in read_attribute_value() 852 blk = (struct dwarf_block *) bfd_alloc (abfd, amt); in read_attribute_value() 853 if (blk == NULL) in read_attribute_value() [all …]
|