Searched refs:sw_width (Results 1 – 8 of 8) sorted by relevance
/openbmc/linux/drivers/net/ethernet/microchip/vcap/ |
H A D | vcap_api_private.h | 44 u32 sw_width; /* subword width in bits */ member 58 void vcap_iter_init(struct vcap_stream_iter *itr, int sw_width, 61 void vcap_iter_set(struct vcap_stream_iter *itr, int sw_width,
|
H A D | vcap_api.c | 49 void vcap_iter_set(struct vcap_stream_iter *itr, int sw_width, in vcap_iter_set() argument 54 itr->sw_width = sw_width; in vcap_iter_set() 55 itr->regs_per_sw = DIV_ROUND_UP(sw_width, 32); in vcap_iter_set() 75 sw_idx = itr->offset / itr->sw_width; in vcap_iter_update() 76 sw_bitpos = itr->offset % itr->sw_width; in vcap_iter_update() 82 void vcap_iter_init(struct vcap_stream_iter *itr, int sw_width, in vcap_iter_init() argument 85 vcap_iter_set(itr, sw_width, tg, offset); in vcap_iter_init() 142 static void vcap_encode_typegroups(u32 *stream, int sw_width, in vcap_encode_typegroups() argument 153 vcap_iter_set(&iter, sw_width, tg, 0); in vcap_encode_typegroups() 255 vcap_iter_init(&iter, vcap->sw_width, tgt, typefld->offset); in vcap_verify_keystream_keyset() [all …]
|
H A D | vcap_api_kunit.c | 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() [all …]
|
H A D | vcap_api.h | 92 u16 sw_width; /* bits per subword in a keyset */ member
|
H A D | vcap_api_debugfs.c | 275 out->prf(out->dst, "sw_width: %d\n", vcap->sw_width); in vcap_show_admin_info()
|
H A D | vcap_model_kunit.c | 3994 .sw_width = 52, 4015 .sw_width = 52, 4036 .sw_width = 52,
|
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_vcap_ag_api.c | 3785 .sw_width = 52, 3806 .sw_width = 52, 3827 .sw_width = 52, 3848 .sw_width = 52,
|
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_vcap_ag_api.c | 3202 .sw_width = 96, 3223 .sw_width = 96, 3244 .sw_width = 96,
|