#include <linux/raid/pq.h>
#include "x86.h"
static const struct raid6_avx2_constants { … } raid6_avx2_constants __aligned(32) = …;
static int raid6_have_avx2(void)
{ … }
static void raid6_avx21_gen_syndrome(int disks, size_t bytes, void **ptrs)
{ … }
static void raid6_avx21_xor_syndrome(int disks, int start, int stop,
size_t bytes, void **ptrs)
{ … }
const struct raid6_calls raid6_avx2x1 = …;
static void raid6_avx22_gen_syndrome(int disks, size_t bytes, void **ptrs)
{ … }
static void raid6_avx22_xor_syndrome(int disks, int start, int stop,
size_t bytes, void **ptrs)
{ … }
const struct raid6_calls raid6_avx2x2 = …;
#ifdef CONFIG_X86_64
static void raid6_avx24_gen_syndrome(int disks, size_t bytes, void **ptrs)
{ … }
static void raid6_avx24_xor_syndrome(int disks, int start, int stop,
size_t bytes, void **ptrs)
{ … }
const struct raid6_calls raid6_avx2x4 = …;
#endif