Lines Matching refs:i2sdev

39 			   struct i2sbus_dev *i2sdev)  in i2sbus_control_add_dev()  argument
43 np = i2sdev->sound.ofdev.dev.of_node; in i2sbus_control_add_dev()
44 i2sdev->enable = pmf_find_function(np, "enable"); in i2sbus_control_add_dev()
45 i2sdev->cell_enable = pmf_find_function(np, "cell-enable"); in i2sbus_control_add_dev()
46 i2sdev->clock_enable = pmf_find_function(np, "clock-enable"); in i2sbus_control_add_dev()
47 i2sdev->cell_disable = pmf_find_function(np, "cell-disable"); in i2sbus_control_add_dev()
48 i2sdev->clock_disable = pmf_find_function(np, "clock-disable"); in i2sbus_control_add_dev()
55 if (i2sdev->bus_number != 0 && i2sdev->bus_number != 1 && in i2sbus_control_add_dev()
56 (!i2sdev->enable || in i2sbus_control_add_dev()
57 !i2sdev->cell_enable || !i2sdev->clock_enable || in i2sbus_control_add_dev()
58 !i2sdev->cell_disable || !i2sdev->clock_disable)) { in i2sbus_control_add_dev()
59 pmf_put_function(i2sdev->enable); in i2sbus_control_add_dev()
60 pmf_put_function(i2sdev->cell_enable); in i2sbus_control_add_dev()
61 pmf_put_function(i2sdev->clock_enable); in i2sbus_control_add_dev()
62 pmf_put_function(i2sdev->cell_disable); in i2sbus_control_add_dev()
63 pmf_put_function(i2sdev->clock_disable); in i2sbus_control_add_dev()
67 list_add(&i2sdev->item, &c->list); in i2sbus_control_add_dev()
73 struct i2sbus_dev *i2sdev) in i2sbus_control_remove_dev() argument
76 list_del(&i2sdev->item); in i2sbus_control_remove_dev()
82 struct i2sbus_dev *i2sdev) in i2sbus_control_enable() argument
87 if (i2sdev->enable) in i2sbus_control_enable()
88 return pmf_call_one(i2sdev->enable, &args); in i2sbus_control_enable()
93 switch (i2sdev->bus_number) { in i2sbus_control_enable()
109 struct i2sbus_dev *i2sdev, in i2sbus_control_cell() argument
117 if (i2sdev->cell_disable) in i2sbus_control_cell()
118 return pmf_call_one(i2sdev->cell_disable, &args); in i2sbus_control_cell()
121 if (i2sdev->cell_enable) in i2sbus_control_cell()
122 return pmf_call_one(i2sdev->cell_enable, &args); in i2sbus_control_cell()
132 switch (i2sdev->bus_number) { in i2sbus_control_cell()
152 struct i2sbus_dev *i2sdev, in i2sbus_control_clock() argument
160 if (i2sdev->clock_disable) in i2sbus_control_clock()
161 return pmf_call_one(i2sdev->clock_disable, &args); in i2sbus_control_clock()
164 if (i2sdev->clock_enable) in i2sbus_control_clock()
165 return pmf_call_one(i2sdev->clock_enable, &args); in i2sbus_control_clock()
175 switch (i2sdev->bus_number) { in i2sbus_control_clock()