Lines Matching refs:prop
32 struct sdw_master_prop *prop = &bus->prop; in sdw_master_read_prop() local
39 &prop->revision); in sdw_master_read_prop()
53 prop->clk_stop_modes |= BIT(SDW_CLK_STOP_MODE0); in sdw_master_read_prop()
57 prop->clk_stop_modes |= BIT(SDW_CLK_STOP_MODE1); in sdw_master_read_prop()
61 &prop->max_clk_freq); in sdw_master_read_prop()
65 prop->num_clk_freq = nval; in sdw_master_read_prop()
66 prop->clk_freq = devm_kcalloc(bus->dev, prop->num_clk_freq, in sdw_master_read_prop()
67 sizeof(*prop->clk_freq), in sdw_master_read_prop()
69 if (!prop->clk_freq) in sdw_master_read_prop()
74 prop->clk_freq, prop->num_clk_freq); in sdw_master_read_prop()
81 if (!prop->max_clk_freq && prop->clk_freq) { in sdw_master_read_prop()
82 prop->max_clk_freq = prop->clk_freq[0]; in sdw_master_read_prop()
83 for (i = 1; i < prop->num_clk_freq; i++) { in sdw_master_read_prop()
84 if (prop->clk_freq[i] > prop->max_clk_freq) in sdw_master_read_prop()
85 prop->max_clk_freq = prop->clk_freq[i]; in sdw_master_read_prop()
91 prop->num_clk_gears = nval; in sdw_master_read_prop()
92 prop->clk_gears = devm_kcalloc(bus->dev, prop->num_clk_gears, in sdw_master_read_prop()
93 sizeof(*prop->clk_gears), in sdw_master_read_prop()
95 if (!prop->clk_gears) in sdw_master_read_prop()
100 prop->clk_gears, in sdw_master_read_prop()
101 prop->num_clk_gears); in sdw_master_read_prop()
105 &prop->default_frame_rate); in sdw_master_read_prop()
108 &prop->default_row); in sdw_master_read_prop()
111 &prop->default_col); in sdw_master_read_prop()
113 prop->dynamic_frame = fwnode_property_read_bool(link, in sdw_master_read_prop()
117 &prop->err_threshold); in sdw_master_read_prop()
289 struct sdw_slave_prop *prop = &slave->prop; in sdw_slave_read_prop() local
295 &prop->mipi_revision); in sdw_slave_read_prop()
297 prop->wake_capable = device_property_read_bool(dev, in sdw_slave_read_prop()
299 prop->wake_capable = !prop->wake_capable; in sdw_slave_read_prop()
301 prop->test_mode_capable = device_property_read_bool(dev, in sdw_slave_read_prop()
304 prop->clk_stop_mode1 = false; in sdw_slave_read_prop()
307 prop->clk_stop_mode1 = true; in sdw_slave_read_prop()
309 prop->simple_clk_stop_capable = device_property_read_bool(dev, in sdw_slave_read_prop()
313 &prop->clk_stop_timeout); in sdw_slave_read_prop()
316 &prop->ch_prep_timeout); in sdw_slave_read_prop()
320 &prop->reset_behave); in sdw_slave_read_prop()
322 prop->high_PHY_capable = device_property_read_bool(dev, in sdw_slave_read_prop()
325 prop->paging_support = device_property_read_bool(dev, in sdw_slave_read_prop()
328 prop->bank_delay_support = device_property_read_bool(dev, in sdw_slave_read_prop()
332 "mipi-sdw-port15-read-behavior", &prop->p15_behave); in sdw_slave_read_prop()
335 &prop->master_count); in sdw_slave_read_prop()
338 &prop->source_ports); in sdw_slave_read_prop()
341 &prop->sink_ports); in sdw_slave_read_prop()
348 prop->dp0_prop = devm_kzalloc(&slave->dev, in sdw_slave_read_prop()
349 sizeof(*prop->dp0_prop), in sdw_slave_read_prop()
351 if (!prop->dp0_prop) in sdw_slave_read_prop()
354 sdw_slave_read_dp0(slave, port, prop->dp0_prop); in sdw_slave_read_prop()
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()
365 sizeof(*prop->src_dpn_prop), in sdw_slave_read_prop()
367 if (!prop->src_dpn_prop) in sdw_slave_read_prop()
371 sdw_slave_read_dpn(slave, prop->src_dpn_prop, nval, in sdw_slave_read_prop()
372 prop->source_ports, "source"); 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()
376 sizeof(*prop->sink_dpn_prop), in sdw_slave_read_prop()
378 if (!prop->sink_dpn_prop) in sdw_slave_read_prop()
382 sdw_slave_read_dpn(slave, prop->sink_dpn_prop, nval, in sdw_slave_read_prop()
383 prop->sink_ports, "sink"); in sdw_slave_read_prop()