Home
last modified time | relevance | path

Searched refs:BHASH (Results 1 – 2 of 2) sorted by relevance

/freebsd-12.1/stand/common/
H A Dbcache.c84 #define BHASH(bc, blkno) ((blkno) & ((bc)->bcache_nblks - 1)) macro
86 ((bc)->bcache_ctl[BHASH((bc), (blkno))].bc_blkno != (blkno))
259 bcopy(bc->bcache_data + (bcache_blksize * BHASH(bc, blk)), buf, size); in read_strategy()
269 p_buf = bc->bcache_data + (bcache_blksize * BHASH(bc, p_blk)); in read_strategy()
270 r_size = bc->bcache_nblks - BHASH(bc, p_blk); /* remaining blocks */ in read_strategy()
301 ra = bc->bcache_nblks - BHASH(bc, p_blk + p_size); in read_strategy()
349 bcopy(bc->bcache_data + (bcache_blksize * BHASH(bc, blk)), buf, size); in read_strategy()
356 (long unsigned)BHASH(bc, p_blk), p_size, ra); in read_strategy()
402 cblk = bcache_nblks - BHASH(bc, blk); /* # of blocks left */ in bcache_strategy()
460 cand = BHASH(bc, blkno); in bcache_insert()
[all …]
/freebsd-12.1/sbin/routed/
H A Dif.c61 #define BHASH(a) &bhash_tbl[(a)%BHASH_LEN] macro
120 hifp = BHASH(ifp->int_brdaddr); in if_link()
167 for (ifp = *BHASH(addr); ifp; ifp = ifp->int_bhash) { in ifwithaddr()