Home
last modified time | relevance | path

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

/openbmc/linux/drivers/vdpa/vdpa_sim/
H A Dvdpa_sim_blk.c368 struct virtio_blk_config *blk_config = config; in vdpasim_blk_get_config() local
372 blk_config->capacity = cpu_to_vdpasim64(vdpasim, VDPASIM_BLK_CAPACITY); in vdpasim_blk_get_config()
374 blk_config->seg_max = cpu_to_vdpasim32(vdpasim, VDPASIM_BLK_SEG_MAX); in vdpasim_blk_get_config()
376 blk_config->min_io_size = cpu_to_vdpasim16(vdpasim, 1); in vdpasim_blk_get_config()
377 blk_config->opt_io_size = cpu_to_vdpasim32(vdpasim, 1); in vdpasim_blk_get_config()
378 blk_config->blk_size = cpu_to_vdpasim32(vdpasim, SECTOR_SIZE); in vdpasim_blk_get_config()
380 blk_config->discard_sector_alignment = in vdpasim_blk_get_config()
382 blk_config->max_discard_sectors = in vdpasim_blk_get_config()
384 blk_config->max_discard_seg = cpu_to_vdpasim32(vdpasim, 1); in vdpasim_blk_get_config()
386 blk_config->max_write_zeroes_sectors = in vdpasim_blk_get_config()
[all …]