Searched refs:val_u16 (Results 1 – 2 of 2) sorted by relevance
| /linux/drivers/base/test/ |
| H A D | property-entry-test.c | 24 u16 val_u16, array_u16[2]; in pe_test_uints() local 52 error = fwnode_property_read_u16(node, "prop-u16", &val_u16); in pe_test_uints() 54 KUNIT_EXPECT_EQ(test, val_u16, 16); in pe_test_uints() 66 error = fwnode_property_read_u16(node, "no-prop-u16", &val_u16); in pe_test_uints() 135 u16 val_u16, array_u16[32]; in pe_test_uint_arrays() local 168 error = fwnode_property_read_u16(node, "prop-u16", &val_u16); in pe_test_uint_arrays() 170 KUNIT_EXPECT_EQ(test, val_u16, 16); in pe_test_uint_arrays() 187 error = fwnode_property_read_u16(node, "no-prop-u16", &val_u16); in pe_test_uint_arrays()
|
| /linux/drivers/vdpa/ |
| H A D | vdpa.c | 840 u16 val_u16; in vdpa_dev_net_mq_config_fill() local 846 val_u16 = __virtio16_to_cpu(true, config->max_virtqueue_pairs); in vdpa_dev_net_mq_config_fill() 848 return nla_put_u16(msg, VDPA_ATTR_DEV_NET_CFG_MAX_VQP, val_u16); in vdpa_dev_net_mq_config_fill() 854 u16 val_u16; in vdpa_dev_net_mtu_config_fill() local 859 val_u16 = __virtio16_to_cpu(true, config->mtu); in vdpa_dev_net_mtu_config_fill() 861 return nla_put_u16(msg, VDPA_ATTR_DEV_NET_CFG_MTU, val_u16); in vdpa_dev_net_mtu_config_fill() 877 u16 val_u16; in vdpa_dev_net_status_config_fill() local 882 val_u16 = __virtio16_to_cpu(true, config->status); in vdpa_dev_net_status_config_fill() 883 return nla_put_u16(msg, VDPA_ATTR_DEV_NET_STATUS, val_u16); in vdpa_dev_net_status_config_fill() 969 u16 val_u16; in vdpa_dev_blk_mq_config_fill() local [all …]
|