Home
last modified time | relevance | path

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

/openbmc/qemu/hw/block/
H A Dvhost-user-blk.c66 virtio_stw_p(vdev, &s->blkcfg.num_queues, s->num_queues); in vhost_user_blk_update_config()
68 memcpy(config, &s->blkcfg, vdev->config_len); in vhost_user_blk_update_config()
74 struct virtio_blk_config *blkcfg = (struct virtio_blk_config *)config; in vhost_user_blk_set_config() local
77 if (blkcfg->wce == s->blkcfg.wce) { in vhost_user_blk_set_config()
81 ret = vhost_dev_set_config(&s->dev, &blkcfg->wce, in vhost_user_blk_set_config()
83 sizeof(blkcfg->wce), in vhost_user_blk_set_config()
90 s->blkcfg.wce = blkcfg->wce; in vhost_user_blk_set_config()
104 ret = vhost_dev_get_config(dev, (uint8_t *)&s->blkcfg, in vhost_user_blk_handle_config_change()
111 memcpy(dev->vdev->config, &s->blkcfg, vdev->config_len); in vhost_user_blk_handle_config_change()
419 ret = vhost_dev_get_config(&s->dev, (uint8_t *)&s->blkcfg, in vhost_user_blk_realize_connect()
H A Dvirtio-blk.c1138 struct virtio_blk_config blkcfg; in virtio_blk_update_config() local
1144 memset(&blkcfg, 0, sizeof(blkcfg)); in virtio_blk_update_config()
1146 virtio_stl_p(vdev, &blkcfg.seg_max, in virtio_blk_update_config()
1152 blkcfg.geometry.heads = conf->heads; in virtio_blk_update_config()
1168 blkcfg.geometry.sectors = conf->secs; in virtio_blk_update_config()
1170 blkcfg.size_max = 0; in virtio_blk_update_config()
1172 blkcfg.alignment_offset = 0; in virtio_blk_update_config()
1194 blkcfg.write_zeroes_may_unmap = 1; in virtio_blk_update_config()
1221 memcpy(config, &blkcfg, s->config_size); in virtio_blk_update_config()
1227 struct virtio_blk_config blkcfg; in virtio_blk_set_config() local
[all …]
/openbmc/linux/drivers/gpu/drm/msm/disp/mdp5/
H A Dmdp5_pipe.c10 uint32_t caps, uint32_t blkcfg, in mdp5_pipe_assign() argument
102 (*hwpipe)->pipe, blkcfg); in mdp5_pipe_assign()
106 (*hwpipe)->blkcfg = blkcfg; in mdp5_pipe_assign()
H A Dmdp5_pipe.h28 uint32_t blkcfg; member
37 uint32_t caps, uint32_t blkcfg,
H A Dmdp5_smp.c124 uint32_t blkcfg = 0; in mdp5_smp_calculate() local
158 blkcfg |= (n << (8 * i)); in mdp5_smp_calculate()
161 return blkcfg; in mdp5_smp_calculate()
165 enum mdp5_pipe pipe, uint32_t blkcfg) in mdp5_smp_assign() argument
173 int n = blkcfg & 0xff; in mdp5_smp_assign()
186 blkcfg >>= 8; in mdp5_smp_assign()
H A Dmdp5_smp.h80 enum mdp5_pipe pipe, uint32_t blkcfg);
H A Dmdp5_plane.c236 uint32_t blkcfg = 0; in mdp5_plane_atomic_check_with_state() local
277 blkcfg = mdp5_smp_calculate(mdp5_kms->smp, format, in mdp5_plane_atomic_check_with_state()
280 if (mdp5_state->hwpipe && (mdp5_state->hwpipe->blkcfg != blkcfg)) in mdp5_plane_atomic_check_with_state()
297 blkcfg, &new_hwpipe, in mdp5_plane_atomic_check_with_state()
/openbmc/qemu/block/export/
H A Dvhost-user-blk-server.c40 struct virtio_blk_config blkcfg; member
157 memcpy(config, &vexp->blkcfg, len); in vu_blk_get_config()
180 vexp->blkcfg.wce = wce; in vu_blk_set_config()
276 vexp->blkcfg.capacity = cpu_to_le64(new_size >> VIRTIO_BLK_SECTOR_BITS); in vu_blk_exp_resize()
326 vexp->blkcfg.wce = 0; in vu_blk_exp_create()
352 vu_blk_initialize_config(blk_bs(exp->blk), &vexp->blkcfg, in vu_blk_exp_create()
/openbmc/qemu/contrib/vhost-user-blk/
H A Dvhost-user-blk.c40 struct virtio_blk_config blkcfg; member
410 memcpy(config, &vdev_blk->blkcfg, len); in vub_get_config()
438 if (wce == vdev_blk->blkcfg.wce) { in vub_set_config()
443 vdev_blk->blkcfg.wce = wce; in vub_set_config()
567 vdev_blk->blkcfg.wce = 0; in vub_new()
571 vub_initialize_config(vdev_blk->blk_fd, &vdev_blk->blkcfg); in vub_new()
/openbmc/qemu/include/hw/virtio/
H A Dvhost-user-blk.h34 struct virtio_blk_config blkcfg; member