Lines Matching refs:rsc

113 	struct fw_rsc_vdev *rsc;  in rp_find_vq()  local
160 rsc = (void *)rproc->table_ptr + rvdev->rsc_offset; in rp_find_vq()
161 rsc->vring[id].da = mem->da; in rp_find_vq()
216 struct fw_rsc_vdev *rsc; in rproc_virtio_get_status() local
218 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_get_status()
220 return rsc->status; in rproc_virtio_get_status()
226 struct fw_rsc_vdev *rsc; in rproc_virtio_set_status() local
228 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_set_status()
230 rsc->status = status; in rproc_virtio_set_status()
237 struct fw_rsc_vdev *rsc; in rproc_virtio_reset() local
239 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_reset()
241 rsc->status = 0; in rproc_virtio_reset()
249 struct fw_rsc_vdev *rsc; in rproc_virtio_get_features() local
251 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_get_features()
253 return rsc->dfeatures; in rproc_virtio_get_features()
269 struct fw_rsc_vdev *rsc; in rproc_virtio_finalize_features() local
271 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_finalize_features()
286 rsc->gfeatures = vdev->features; in rproc_virtio_finalize_features()
295 struct fw_rsc_vdev *rsc; in rproc_virtio_get() local
298 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_get()
299 cfg = &rsc->vring[rsc->num_of_vrings]; in rproc_virtio_get()
301 if (offset + len > rsc->config_len || offset + len < len) { in rproc_virtio_get()
313 struct fw_rsc_vdev *rsc; in rproc_virtio_set() local
316 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_set()
317 cfg = &rsc->vring[rsc->num_of_vrings]; in rproc_virtio_set()
319 if (offset + len > rsc->config_len || offset + len < len) { in rproc_virtio_set()
497 struct fw_rsc_vdev *rsc; in rproc_virtio_probe() local
527 rsc = rvdev_data->rsc; in rproc_virtio_probe()
530 for (i = 0; i < rsc->num_of_vrings; i++) { in rproc_virtio_probe()
531 ret = rproc_parse_vring(rvdev, rsc, i); in rproc_virtio_probe()
540 for (i = 0; i < rsc->num_of_vrings; i++) { in rproc_virtio_probe()