Home
last modified time | relevance | path

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

/openbmc/linux/drivers/vdpa/vdpa_sim/
H A Dvdpa_sim_blk.c36 #define VDPASIM_BLK_CAPACITY 0x40000 macro
82 if (start_sector > VDPASIM_BLK_CAPACITY) { in vdpasim_blk_check_range()
85 start_sector, VDPASIM_BLK_CAPACITY); in vdpasim_blk_check_range()
95 if (num_sectors > VDPASIM_BLK_CAPACITY - start_sector) { in vdpasim_blk_check_range()
98 start_sector, num_sectors, VDPASIM_BLK_CAPACITY); in vdpasim_blk_check_range()
372 blk_config->capacity = cpu_to_vdpasim64(vdpasim, VDPASIM_BLK_CAPACITY); in vdpasim_blk_get_config()
440 blk->buffer = kvzalloc(VDPASIM_BLK_CAPACITY << SECTOR_SHIFT, in vdpasim_blk_dev_add()
498 shared_buffer = kvzalloc(VDPASIM_BLK_CAPACITY << SECTOR_SHIFT, in vdpasim_blk_init()