gntdev_dmabuf_attach 228 drivers/xen/gntdev-dmabuf.c struct gntdev_dmabuf_attachment *gntdev_dmabuf_attach; gntdev_dmabuf_attach 230 drivers/xen/gntdev-dmabuf.c gntdev_dmabuf_attach = kzalloc(sizeof(*gntdev_dmabuf_attach), gntdev_dmabuf_attach 232 drivers/xen/gntdev-dmabuf.c if (!gntdev_dmabuf_attach) gntdev_dmabuf_attach 235 drivers/xen/gntdev-dmabuf.c gntdev_dmabuf_attach->dir = DMA_NONE; gntdev_dmabuf_attach 236 drivers/xen/gntdev-dmabuf.c attach->priv = gntdev_dmabuf_attach; gntdev_dmabuf_attach 243 drivers/xen/gntdev-dmabuf.c struct gntdev_dmabuf_attachment *gntdev_dmabuf_attach = attach->priv; gntdev_dmabuf_attach 245 drivers/xen/gntdev-dmabuf.c if (gntdev_dmabuf_attach) { gntdev_dmabuf_attach 246 drivers/xen/gntdev-dmabuf.c struct sg_table *sgt = gntdev_dmabuf_attach->sgt; gntdev_dmabuf_attach 249 drivers/xen/gntdev-dmabuf.c if (gntdev_dmabuf_attach->dir != DMA_NONE) gntdev_dmabuf_attach 252 drivers/xen/gntdev-dmabuf.c gntdev_dmabuf_attach->dir, gntdev_dmabuf_attach 258 drivers/xen/gntdev-dmabuf.c kfree(gntdev_dmabuf_attach); gntdev_dmabuf_attach 267 drivers/xen/gntdev-dmabuf.c struct gntdev_dmabuf_attachment *gntdev_dmabuf_attach = attach->priv; gntdev_dmabuf_attach 274 drivers/xen/gntdev-dmabuf.c if (dir == DMA_NONE || !gntdev_dmabuf_attach) gntdev_dmabuf_attach 278 drivers/xen/gntdev-dmabuf.c if (gntdev_dmabuf_attach->dir == dir) gntdev_dmabuf_attach 279 drivers/xen/gntdev-dmabuf.c return gntdev_dmabuf_attach->sgt; gntdev_dmabuf_attach 285 drivers/xen/gntdev-dmabuf.c if (gntdev_dmabuf_attach->dir != DMA_NONE) gntdev_dmabuf_attach 297 drivers/xen/gntdev-dmabuf.c gntdev_dmabuf_attach->sgt = sgt; gntdev_dmabuf_attach 298 drivers/xen/gntdev-dmabuf.c gntdev_dmabuf_attach->dir = dir;