Home
last modified time | relevance | path

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

/linux/drivers/vdpa/vdpa_sim/
H A Dvdpa_sim_blk.c373 blk_config->size_max = cpu_to_vdpasim32(vdpasim, VDPASIM_BLK_SIZE_MAX); in vdpasim_blk_get_config()
374 blk_config->seg_max = cpu_to_vdpasim32(vdpasim, VDPASIM_BLK_SEG_MAX); 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()
381 cpu_to_vdpasim32(vdpasim, SECTOR_SIZE); in vdpasim_blk_get_config()
383 cpu_to_vdpasim32(vdpasim, VDPASIM_BLK_DWZ_MAX_SECTORS); in vdpasim_blk_get_config()
384 blk_config->max_discard_seg = cpu_to_vdpasim32(vdpasim, 1); in vdpasim_blk_get_config()
387 cpu_to_vdpasim32(vdpasim, VDPASIM_BLK_DWZ_MAX_SECTORS); in vdpasim_blk_get_config()
388 blk_config->max_write_zeroes_seg = cpu_to_vdpasim32(vdpasim, 1); in vdpasim_blk_get_config()
H A Dvdpa_sim.h106 static inline __virtio32 cpu_to_vdpasim32(struct vdpasim *vdpasim, u32 val) in cpu_to_vdpasim32() function