MCPcopy Create free account
hub / github.com/F-Stack/f-stack / modern_get_features

Function modern_get_features

dpdk/drivers/crypto/virtio/virtio_pci.c:79–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79static uint64_t
80modern_get_features(struct virtio_crypto_hw *hw)
81{
82 uint32_t features_lo, features_hi;
83
84 rte_write32(0, &hw->common_cfg->device_feature_select);
85 features_lo = rte_read32(&hw->common_cfg->device_feature);
86
87 rte_write32(1, &hw->common_cfg->device_feature_select);
88 features_hi = rte_read32(&hw->common_cfg->device_feature);
89
90 return ((uint64_t)features_hi << 32) | features_lo;
91}
92
93static void
94modern_set_features(struct virtio_crypto_hw *hw, uint64_t features)

Callers

nothing calls this directly

Calls 2

rte_write32Function · 0.50
rte_read32Function · 0.50

Tested by

no test coverage detected