Home
last modified time | relevance | path

Searched refs:val_u16 (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/base/test/
H A Dproperty-entry-test.c22 u16 val_u16, array_u16[2]; in pe_test_uints() local
50 error = fwnode_property_read_u16(node, "prop-u16", &val_u16); in pe_test_uints()
52 KUNIT_EXPECT_EQ(test, val_u16, 16); in pe_test_uints()
64 error = fwnode_property_read_u16(node, "no-prop-u16", &val_u16); in pe_test_uints()
133 u16 val_u16, array_u16[32]; in pe_test_uint_arrays() local
166 error = fwnode_property_read_u16(node, "prop-u16", &val_u16); in pe_test_uint_arrays()
168 KUNIT_EXPECT_EQ(test, val_u16, 16); in pe_test_uint_arrays()
185 error = fwnode_property_read_u16(node, "no-prop-u16", &val_u16); in pe_test_uint_arrays()
/openbmc/linux/drivers/vdpa/
H A Dvdpa.c876 u16 val_u16; in vdpa_dev_net_mq_config_fill() local
882 val_u16 = __virtio16_to_cpu(true, config->max_virtqueue_pairs); in vdpa_dev_net_mq_config_fill()
884 return nla_put_u16(msg, VDPA_ATTR_DEV_NET_CFG_MAX_VQP, val_u16); in vdpa_dev_net_mq_config_fill()
890 u16 val_u16; in vdpa_dev_net_mtu_config_fill() local
895 val_u16 = __virtio16_to_cpu(true, config->mtu); in vdpa_dev_net_mtu_config_fill()
897 return nla_put_u16(msg, VDPA_ATTR_DEV_NET_CFG_MTU, val_u16); in vdpa_dev_net_mtu_config_fill()
913 u16 val_u16; in vdpa_dev_net_status_config_fill() local
918 val_u16 = __virtio16_to_cpu(true, config->status); in vdpa_dev_net_status_config_fill()
919 return nla_put_u16(msg, VDPA_ATTR_DEV_NET_STATUS, val_u16); in vdpa_dev_net_status_config_fill()
/openbmc/linux/lib/
H A Dtest_user_copy.c188 u16 val_u16; in test_user_copy_init() local