search for: of_get_flat_dt_prop

Displaying 3 results from an estimated 3 matches for "of_get_flat_dt_prop".

2020 Apr 28
0
[PATCH 5/5] virtio: Add bounce DMA ops
...ollowing tag as appropriate Reported-by: kbuild test robot <lkp at intel.com> All errors (new ones prefixed by >>): drivers/virtio/virtio_bounce.c: In function 'virtio_bounce_setup': >> drivers/virtio/virtio_bounce.c:144:7: error: implicit declaration of function 'of_get_flat_dt_prop' [-Werror=implicit-function-declaration] 144 | if (!of_get_flat_dt_prop(node, "no-map", NULL)) | ^~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/of_get_flat_dt_prop +144 drivers/virtio/virtio_bounce.c 139 140 static int __init virt...
2020 Apr 28
0
[PATCH 5/5] virtio: Add bounce DMA ops
...ible to both backend and frontend drivers. All IO > buffers that are in private space of guest VM are bounced to be > accessible to backend. [...] > +static int __init virtio_bounce_setup(struct reserved_mem *rmem) > +{ > + unsigned long node = rmem->fdt_node; > + > + if (!of_get_flat_dt_prop(node, "no-map", NULL)) > + return -EINVAL; > + > + return virtio_register_bounce_buffer(rmem->base, rmem->size); > +} > + > +RESERVEDMEM_OF_DECLARE(virtio, "virtio_bounce_pool", virtio_bounce_setup); Is this special reserved-memory region documented som...
2020 Apr 28
0
[PATCH 5/5] virtio: Add bounce DMA ops
...size < PAGE_SIZE) > + return -EINVAL; > + > + bounce_buf_paddr = base; > + bounce_buf_size = size; > + > + return 0; > +} > + > +static int __init virtio_bounce_setup(struct reserved_mem *rmem) > +{ > + unsigned long node = rmem->fdt_node; > + > + if (!of_get_flat_dt_prop(node, "no-map", NULL)) > + return -EINVAL; > + > + return virtio_register_bounce_buffer(rmem->base, rmem->size); > +} > + > +RESERVEDMEM_OF_DECLARE(virtio, "virtio_bounce_pool", virtio_bounce_setup); > diff --git a/include/linux/virtio.h b/include/lin...