Lines Matching refs:nval
35 int nval, i; in sdw_master_read_prop() local
63 nval = fwnode_property_count_u32(link, "mipi-sdw-clock-frequencies-supported"); in sdw_master_read_prop()
64 if (nval > 0) { in sdw_master_read_prop()
65 prop->num_clk_freq = nval; in sdw_master_read_prop()
89 nval = fwnode_property_count_u32(link, "mipi-sdw-supported-clock-gears"); in sdw_master_read_prop()
90 if (nval > 0) { in sdw_master_read_prop()
91 prop->num_clk_gears = nval; in sdw_master_read_prop()
127 int nval; in sdw_slave_read_dp0() local
135 nval = fwnode_property_count_u32(port, "mipi-sdw-port-wordlength-configs"); in sdw_slave_read_dp0()
136 if (nval > 0) { in sdw_slave_read_dp0()
138 dp0->num_words = nval; in sdw_slave_read_dp0()
168 int nval; in sdw_slave_read_dpn() local
193 nval = fwnode_property_count_u32(node, "mipi-sdw-port-wordlength-configs"); in sdw_slave_read_dpn()
194 if (nval > 0) { in sdw_slave_read_dpn()
195 dpn[i].num_words = nval; in sdw_slave_read_dpn()
232 nval = fwnode_property_count_u32(node, "mipi-sdw-channel-number-list"); in sdw_slave_read_dpn()
233 if (nval > 0) { in sdw_slave_read_dpn()
234 dpn[i].num_channels = nval; in sdw_slave_read_dpn()
247 nval = fwnode_property_count_u32(node, "mipi-sdw-channel-combination-list"); in sdw_slave_read_dpn()
248 if (nval > 0) { in sdw_slave_read_dpn()
249 dpn[i].num_ch_combinations = nval; in sdw_slave_read_dpn()
292 int nval; in sdw_slave_read_prop() local
363 nval = hweight32(prop->source_ports); in sdw_slave_read_prop()
364 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in sdw_slave_read_prop()
371 sdw_slave_read_dpn(slave, prop->src_dpn_prop, nval, in sdw_slave_read_prop()
374 nval = hweight32(prop->sink_ports); in sdw_slave_read_prop()
375 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in sdw_slave_read_prop()
382 sdw_slave_read_dpn(slave, prop->sink_dpn_prop, nval, in sdw_slave_read_prop()