Lines Matching defs:blk

445 				    "read g0 blk=%lld (0x%llx) nblks=%d\n",
457 "write g0 blk=%lld (0x%llx) nblks=%d\n",
469 "read g1 blk=%lld (0x%llx) nblks=%d\n",
481 "write g1 blk=%lld (0x%llx) nblks=%d\n",
495 "read g4 blk=%lld (0x%llx) nblks=%d\n",
509 "write g4 blk=%lld (0x%llx) nblks=%d\n",
1017 blklist_t *blk;
1023 "<%d,%d> blk %llu (0x%llx) nblks %d\n",
1074 blk = bsd_findblk(tgt, blkno, NULL);
1075 if (blk) {
1076 (void) bcopy(blk->bl_data, bufaddr, DEV_BSIZE);
1098 blklist_t *blk;
1105 "<%d,%d> blk %llu (0x%llx) nblks %d\n",
1172 blk = bsd_findblk(tgt, blkno, &where);
1174 if (blk) {
1175 bsd_freeblk(tgt, blk);
1178 if (blk) {
1179 (void) bcopy(bufaddr, blk->bl_data,
1227 blklist_t *blk;
1231 for (blk = (blklist_t *)avl_first(&tgt->emul64_tgt_data);
1232 blk != NULL;
1233 blk = nextblk) {
1235 * We need to get the next block pointer now, because blk
1238 nextblk = AVL_NEXT(&tgt->emul64_tgt_data, blk);
1240 if (emul64_overlap(range, blk->bl_blkno, (size_t)1) != O_NONE) {
1241 bsd_freeblk(tgt, blk);
1250 blklist_t *blk;
1256 blk = (blklist_t *)avl_find(&tgt->emul64_tgt_data, &search, where);
1257 return (blk);
1267 blklist_t *blk;
1275 blk = (blklist_t *)kmem_zalloc(sizeof (blklist_t), KM_SLEEP);
1276 blk->bl_data = (uchar_t *)kmem_zalloc(DEV_BSIZE, KM_SLEEP);
1277 blk->bl_blkno = blkno;
1278 (void) bcopy(data, blk->bl_data, DEV_BSIZE);
1279 avl_insert(&tgt->emul64_tgt_data, (void *) blk, where);
1293 bsd_freeblk(emul64_tgt_t *tgt, blklist_t *blk)
1296 cmn_err(CE_CONT, "%s: bsd_freeblk: <%d,%d> blk=%lld\n",
1298 tgt->emul64_tgt_saddr.a_lun, blk->bl_blkno);
1302 avl_remove(&tgt->emul64_tgt_data, (void *) blk);
1309 kmem_free(blk->bl_data, DEV_BSIZE);
1310 kmem_free(blk, sizeof (blklist_t));