Lines Matching defs:size
731 uintptr_t buf, size_t size)
743 assert(((buf & 3) == 0) && (size != 0));
750 ufs_prepare_query(&utrd, op, idn, index, sel, buf, size);
767 size);
813 void ufs_read_desc(int idn, int index, uintptr_t buf, size_t size)
815 ufs_query(QUERY_READ_DESC, idn, index, 0, buf, size);
818 void ufs_write_desc(int idn, int index, uintptr_t buf, size_t size)
820 ufs_query(QUERY_WRITE_DESC, idn, index, 0, buf, size);
823 static int ufs_read_capacity(int lun, unsigned int *num, unsigned int *size)
835 (num != NULL) && (size != NULL));
858 *size = be32toh(*(unsigned int *)(buf + 4));
868 size_t ufs_read_blocks(int lun, int lba, uintptr_t buf, size_t size)
877 ufs_send_cmd(&utrd, CDBCMD_READ_10, lun, lba, buf, size);
885 inv_dcache_range(buf, size);
887 return size - resp->res_trans_cnt;
890 size_t ufs_write_blocks(int lun, int lba, const uintptr_t buf, size_t size)
899 ufs_send_cmd(&utrd, CDBCMD_WRITE_10, lun, lba, buf, size);
904 return size - resp->res_trans_cnt;
957 INFO("UFS LUN%d contains %d blocks with %d-byte size\n",