/* * helper functions for vmalloc capture buffers * * The functions expect the hardware being able to scatter gather * (i.e. the buffers are not linear in physical memory, but fragmented * into PAGE_SIZE chunks). They also assume the driver does not need * to touch the video data. * * (c) 2007 Mauro Carvalho Chehab, * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 */ #ifndef _VIDEOBUF_VMALLOC_H #define _VIDEOBUF_VMALLOC_H #include /* --------------------------------------------------------------------- */ struct videobuf_vmalloc_memory { u32 magic; void *vaddr; /* remap_vmalloc_range seems to need to run * after mmap() on some cases */ struct vm_area_struct *vma; }; void videobuf_queue_vmalloc_init(struct videobuf_queue *q, const struct videobuf_queue_ops *ops, struct device *dev, spinlock_t *irqlock, enum v4l2_buf_type type, enum v4l2_field field, unsigned int msize, void *priv, struct mutex *ext_lock); void *videobuf_to_vmalloc(struct videobuf_buffer *buf); void videobuf_vmalloc_free(struct videobuf_buffer *buf); #endif > net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Mahoney <jeffm@suse.com>2015-09-16 15:34:53 +0200
committerDavid Sterba <dsterba@suse.com>2016-06-06 14:08:28 +0200
commit5f9e1059d9347191b271bf7d13bd83db57594d2a (patch)
treef23ae20ffd41ac1405e51e75b25e4e19de580179
parente06cd3dd7cea50e87663a88acdfdb7ac1c53a5ca (diff)
btrfs: advertise which crc32c implementation is being used at module load
Since several architectures support hardware-accelerated crc32c calculation, it would be nice to confirm that btrfs is actually using it. We can see an elevated use count for the module, but it doesn't actually show who the users are. This patch simply prints the name of the driver after successfully initializing the shash. Signed-off-by: Jeff Mahoney <jeffm@suse.com> [ added a helper and used in module load-time message ] Signed-off-by: David Sterba <dsterba@suse.com>