Searched refs:val_u16 (Results 1 – 2 of 2) sorted by relevance
/drivers/base/test/ |
D | property-entry-test.c | 22 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()
|
/drivers/vdpa/ |
D | vdpa.c | 810 u16 val_u16; in vdpa_dev_net_mq_config_fill() local 816 val_u16 = __virtio16_to_cpu(true, config->max_virtqueue_pairs); in vdpa_dev_net_mq_config_fill() 818 return nla_put_u16(msg, VDPA_ATTR_DEV_NET_CFG_MAX_VQP, val_u16); in vdpa_dev_net_mq_config_fill() 824 u16 val_u16; in vdpa_dev_net_mtu_config_fill() local 829 val_u16 = __virtio16_to_cpu(true, config->mtu); in vdpa_dev_net_mtu_config_fill() 831 return nla_put_u16(msg, VDPA_ATTR_DEV_NET_CFG_MTU, val_u16); in vdpa_dev_net_mtu_config_fill() 848 u16 val_u16; in vdpa_dev_net_config_fill() local 852 val_u16 = __virtio16_to_cpu(true, config.status); in vdpa_dev_net_config_fill() 853 if (nla_put_u16(msg, VDPA_ATTR_DEV_NET_STATUS, val_u16)) in vdpa_dev_net_config_fill()
|