Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/vhost/
A Dvringh.c46 err = getu16(vrh, &avail_idx, &vrh->vring.avail->idx); in __vringh_get_head()
61 err = getu16(vrh, &head, &vrh->vring.avail->ring[i]); in __vringh_get_head()
452 used_idx = vrh->last_used_idx + vrh->completed; in __vringh_complete()
475 err = putu16(vrh, &vrh->vring.used->idx, used_idx + num_used); in __vringh_complete()
504 err = getu16(vrh, &flags, &vrh->vring.avail->flags); in __vringh_need_notify()
526 vrh->last_used_idx + vrh->completed, in __vringh_need_notify()
529 vrh->last_used_idx += vrh->completed; in __vringh_need_notify()
544 if (putu16(vrh, &vrh->vring.used->flags, 0) != 0) { in __vringh_notify_enable()
550 if (putu16(vrh, &vring_avail_event(&vrh->vring), in __vringh_notify_enable()
562 if (getu16(vrh, &avail, &vrh->vring.avail->idx) != 0) { in __vringh_notify_enable()
[all …]
/linux-6.3-rc2/include/linux/
A Dvringh.h142 int vringh_getdesc_user(struct vringh *vrh,
145 bool (*getrange)(struct vringh *vrh,
158 int vringh_complete_multi_user(struct vringh *vrh,
166 int vringh_need_notify_user(struct vringh *vrh);
216 int vringh_getdesc_kern(struct vringh *vrh,
231 int vringh_need_notify_kern(struct vringh *vrh);
236 if (vrh->notify) in vringh_notify()
237 vrh->notify(vrh); in vringh_notify()
242 return vrh->little_endian || in vringh_is_little_endian()
287 int vringh_getdesc_iotlb(struct vringh *vrh,
[all …]
/linux-6.3-rc2/tools/virtio/
A Dvringh_test.c120 if (vrh->last_avail_idx == avail_idx) in vringh_get_head()
124 virtio_rmb(vrh->weak_barriers); in vringh_get_head()
126 i = vrh->last_avail_idx & (vrh->vring.num - 1); in vringh_get_head()
132 vrh->last_avail_idx++; in vringh_get_head()
137 bool (*getrange)(struct vringh *vrh, in parallel_test() argument
173 struct vringh vrh; in parallel_test() local
190 vrh.vring.desc, vrh.vring.avail, vrh.vring.used); in parallel_test()
246 vringh_notify_disable_user(&vrh); in parallel_test()
278 err = vringh_need_notify_user(&vrh); in parallel_test()
443 struct vringh vrh; in main() local
[all …]
/linux-6.3-rc2/drivers/staging/fbtft/
A Dfb_ili9325.c33 static unsigned int vrh = 0x0d; /* VREG1OUT=Vci*1.85 */ variable
34 module_param(vrh, uint, 0000);
35 MODULE_PARM_DESC(vrh, "Set the amplifying rate (1.6 ~ 1.9) of Vci applied to output the VREG1OUT");
89 vrh &= 0x0f; in init_display()
119 write_reg(par, 0x0012, vrh); /* Internal reference voltage= Vci; */ in init_display()
/linux-6.3-rc2/drivers/vdpa/vdpa_sim/
A Dvdpa_sim.c281 struct vringh *vrh = &vq->vring; in vdpasim_set_vq_state() local
284 vrh->last_avail_idx = state->split.avail_index; in vdpasim_set_vq_state()
295 struct vringh *vrh = &vq->vring; in vdpasim_get_vq_state() local
297 state->split.avail_index = vrh->last_avail_idx; in vdpasim_get_vq_state()
/linux-6.3-rc2/drivers/net/ethernet/intel/ice/
A Dice_virtchnl.c2488 struct virtchnl_rss_hena *vrh = NULL; in ice_vc_get_rss_hena() local
2503 vrh = kzalloc(len, GFP_KERNEL); in ice_vc_get_rss_hena()
2504 if (!vrh) { in ice_vc_get_rss_hena()
2510 vrh->hena = ICE_DEFAULT_RSS_HENA; in ice_vc_get_rss_hena()
2514 (u8 *)vrh, len); in ice_vc_get_rss_hena()
2515 kfree(vrh); in ice_vc_get_rss_hena()
2526 struct virtchnl_rss_hena *vrh = (struct virtchnl_rss_hena *)msg; in ice_vc_set_rss_hena() local
2557 if (status && !vrh->hena) { in ice_vc_set_rss_hena()
2572 if (vrh->hena) { in ice_vc_set_rss_hena()
2573 status = ice_add_avf_rss_cfg(&pf->hw, vsi->idx, vrh->hena); in ice_vc_set_rss_hena()
/linux-6.3-rc2/drivers/net/ethernet/intel/iavf/
A Diavf_virtchnl.c1045 struct virtchnl_rss_hena vrh; in iavf_set_hena() local
1053 vrh.hena = adapter->hena; in iavf_set_hena()
1056 iavf_send_pf_msg(adapter, VIRTCHNL_OP_SET_RSS_HENA, (u8 *)&vrh, in iavf_set_hena()
1057 sizeof(vrh)); in iavf_set_hena()
2315 struct virtchnl_rss_hena *vrh = (struct virtchnl_rss_hena *)msg; in iavf_virtchnl_completion() local
2317 if (msglen == sizeof(*vrh)) in iavf_virtchnl_completion()
2318 adapter->hena = vrh->hena; in iavf_virtchnl_completion()
/linux-6.3-rc2/drivers/net/ethernet/intel/i40e/
A Di40e_virtchnl_pf.c3330 struct virtchnl_rss_hena *vrh = NULL; in i40e_vc_get_rss_hena() local
3341 vrh = kzalloc(len, GFP_KERNEL); in i40e_vc_get_rss_hena()
3342 if (!vrh) { in i40e_vc_get_rss_hena()
3347 vrh->hena = i40e_pf_get_default_rss_hena(pf); in i40e_vc_get_rss_hena()
3351 aq_ret, (u8 *)vrh, len); in i40e_vc_get_rss_hena()
3352 kfree(vrh); in i40e_vc_get_rss_hena()
3365 struct virtchnl_rss_hena *vrh = in i40e_vc_set_rss_hena() local
3375 i40e_write_rx_ctl(hw, I40E_VFQF_HENA1(0, vf->vf_id), (u32)vrh->hena); in i40e_vc_set_rss_hena()
3377 (u32)(vrh->hena >> 32)); in i40e_vc_set_rss_hena()

Completed in 29 milliseconds