Lines Matching +full:little +full:- +full:endian
1 // SPDX-License-Identifier: GPL-2.0
21 * PBUF - Initialize .pbuf and .pbuf_size
32 /* These tests pack and unpack a magic 64-bit value
56 .desc = "little endian words, 16 bytes",
65 .desc = "lsw32 first + little endian words, 16 bytes",
92 .desc = "msb right + little endian words, 16 bytes",
101 .desc = "msb right + lsw32 first + little endian words, 16 bytes",
109 /* These tests pack and unpack a magic 64-bit value
164 .desc = "lsw32 first + little endian words, 18 bytes",
174 .desc = "lsw32 first + little endian words, 19 bytes",
184 .desc = "lsw32 first + little endian words, 20 bytes",
194 .desc = "lsw32 first + little endian words, 22 bytes",
204 .desc = "lsw32 first + little endian words, 24 bytes",
213 /* These tests pack and unpack a magic 64-bit value
219 .desc = "no quirks, 16 bytes, non-aligned",
228 .desc = "lsw32 first, 16 bytes, non-aligned",
237 .desc = "little endian words, 16 bytes, non-aligned",
246 .desc = "lsw32 first + little endian words, 16 bytes, non-aligned",
255 .desc = "msb right, 16 bytes, non-aligned",
264 .desc = "msb right + lsw32 first, 16 bytes, non-aligned",
273 .desc = "msb right + little endian words, 16 bytes, non-aligned",
282 .desc = "msb right + lsw32 first + little endian words, 16 bytes, non-aligned",
296 .desc = "no quirks, 16 bytes, non-aligned, 0xff",
305 .desc = "lsw32 first, 16 bytes, non-aligned, 0xff",
314 .desc = "little endian words, 16 bytes, non-aligned, 0xff",
323 .desc = "lsw32 first + little endian words, 16 bytes, non-aligned, 0xff",
332 .desc = "msb right, 16 bytes, non-aligned, 0xff",
341 .desc = "msb right + lsw32 first, 16 bytes, non-aligned, 0xff",
350 .desc = "msb right + little endian words, 16 bytes, non-aligned, 0xff",
359 .desc = "msb right + lsw32 first + little endian words, 16 bytes, non-aligned, 0xff",
373 const struct packing_test_case *params = test->param_value; in packing_test_pack()
377 pbuf = kunit_kzalloc(test, params->pbuf_size, GFP_KERNEL); in packing_test_pack()
380 err = pack(pbuf, params->uval, params->start_bit, params->end_bit, in packing_test_pack()
381 params->pbuf_size, params->quirks); in packing_test_pack()
384 KUNIT_EXPECT_MEMEQ(test, pbuf, params->pbuf, params->pbuf_size); in packing_test_pack()
389 const struct packing_test_case *params = test->param_value; in packing_test_unpack()
393 err = unpack(params->pbuf, &uval, params->start_bit, params->end_bit, in packing_test_unpack()
394 params->pbuf_size, params->quirks); in packing_test_unpack()
396 KUNIT_EXPECT_EQ(test, uval, params->uval); in packing_test_unpack()