Lines Matching refs:i2sdev

40 			   struct i2sbus_dev *i2sdev)  in i2sbus_control_add_dev()  argument
44 np = i2sdev->sound.ofdev.dev.of_node; in i2sbus_control_add_dev()
45 i2sdev->enable = pmf_find_function(np, "enable"); in i2sbus_control_add_dev()
46 i2sdev->cell_enable = pmf_find_function(np, "cell-enable"); in i2sbus_control_add_dev()
47 i2sdev->clock_enable = pmf_find_function(np, "clock-enable"); in i2sbus_control_add_dev()
48 i2sdev->cell_disable = pmf_find_function(np, "cell-disable"); in i2sbus_control_add_dev()
49 i2sdev->clock_disable = pmf_find_function(np, "clock-disable"); in i2sbus_control_add_dev()
56 if (i2sdev->bus_number != 0 && i2sdev->bus_number != 1 && in i2sbus_control_add_dev()
57 (!i2sdev->enable || in i2sbus_control_add_dev()
58 !i2sdev->cell_enable || !i2sdev->clock_enable || in i2sbus_control_add_dev()
59 !i2sdev->cell_disable || !i2sdev->clock_disable)) { in i2sbus_control_add_dev()
60 pmf_put_function(i2sdev->enable); in i2sbus_control_add_dev()
61 pmf_put_function(i2sdev->cell_enable); in i2sbus_control_add_dev()
62 pmf_put_function(i2sdev->clock_enable); in i2sbus_control_add_dev()
63 pmf_put_function(i2sdev->cell_disable); in i2sbus_control_add_dev()
64 pmf_put_function(i2sdev->clock_disable); in i2sbus_control_add_dev()
68 list_add(&i2sdev->item, &c->list); in i2sbus_control_add_dev()
74 struct i2sbus_dev *i2sdev) in i2sbus_control_remove_dev() argument
77 list_del(&i2sdev->item); in i2sbus_control_remove_dev()
83 struct i2sbus_dev *i2sdev) in i2sbus_control_enable() argument
88 if (i2sdev->enable) in i2sbus_control_enable()
89 return pmf_call_one(i2sdev->enable, &args); in i2sbus_control_enable()
94 switch (i2sdev->bus_number) { in i2sbus_control_enable()
110 struct i2sbus_dev *i2sdev, in i2sbus_control_cell() argument
118 if (i2sdev->cell_disable) in i2sbus_control_cell()
119 return pmf_call_one(i2sdev->cell_disable, &args); in i2sbus_control_cell()
122 if (i2sdev->cell_enable) in i2sbus_control_cell()
123 return pmf_call_one(i2sdev->cell_enable, &args); in i2sbus_control_cell()
133 switch (i2sdev->bus_number) { in i2sbus_control_cell()
153 struct i2sbus_dev *i2sdev, in i2sbus_control_clock() argument
161 if (i2sdev->clock_disable) in i2sbus_control_clock()
162 return pmf_call_one(i2sdev->clock_disable, &args); in i2sbus_control_clock()
165 if (i2sdev->clock_enable) in i2sbus_control_clock()
166 return pmf_call_one(i2sdev->clock_enable, &args); in i2sbus_control_clock()
176 switch (i2sdev->bus_number) { in i2sbus_control_clock()