Lines Matching refs:sw_width
332 .sw_width = 52, in vcap_api_set_bit_1_test()
349 .sw_width = 52, in vcap_api_set_bit_0_test()
380 KUNIT_EXPECT_EQ(test, 52, iter.sw_width); in vcap_api_iterator_init_test()
387 KUNIT_EXPECT_EQ(test, 49, iter.sw_width); in vcap_api_iterator_init_test()
409 KUNIT_EXPECT_EQ(test, 49, iter.sw_width); in vcap_api_iterator_next_test()
538 int sw_width = 21; in vcap_api_encode_short_field_test() local
553 vcap_iter_init(&iter, sw_width, tgt, rf.offset); in vcap_api_encode_short_field_test()
556 KUNIT_EXPECT_EQ(test, 21, iter.sw_width); in vcap_api_encode_short_field_test()
559 KUNIT_EXPECT_EQ(test, 25 + 3 + 2 - sw_width, iter.reg_bitpos); in vcap_api_encode_short_field_test()
564 KUNIT_EXPECT_EQ(test, (u32)(0x5 << (25 + 3 + 2 - sw_width)), stream[1]); in vcap_api_encode_short_field_test()
570 vcap_encode_typegroups(stream, sw_width, tgt, false); in vcap_api_encode_short_field_test()
573 KUNIT_EXPECT_EQ(test, (u32)((0x5 << (25 + 3 + 2 - sw_width)) + 3), stream[1]); in vcap_api_encode_short_field_test()
709 int sw_width = 21; in vcap_api_encode_actionfield_test() local
745 KUNIT_EXPECT_EQ(test, (u32)((0x32 << (35 + 2 + 1 - sw_width)) & 0x1fffff), actwords[1]); in vcap_api_encode_actionfield_test()
746 KUNIT_EXPECT_EQ(test, (u32)((0x32 >> ((2 * sw_width) - 38 - 1))), actwords[2]); in vcap_api_encode_actionfield_test()