Lines Matching defs:data
17 static void tosa_bt_on(struct tosa_bt_data *data)
19 gpio_set_value(data->gpio_reset, 0);
20 gpio_set_value(data->gpio_pwr, 1);
21 gpio_set_value(data->gpio_reset, 1);
23 gpio_set_value(data->gpio_reset, 0);
26 static void tosa_bt_off(struct tosa_bt_data *data)
28 gpio_set_value(data->gpio_reset, 1);
30 gpio_set_value(data->gpio_pwr, 0);
31 gpio_set_value(data->gpio_reset, 0);
34 static int tosa_bt_set_block(void *data, bool blocked)
40 tosa_bt_on(data);
43 tosa_bt_off(data);
58 struct tosa_bt_data *data = dev->dev.platform_data;
60 rc = gpio_request(data->gpio_reset, "Bluetooth reset");
63 rc = gpio_direction_output(data->gpio_reset, 0);
66 rc = gpio_request(data->gpio_pwr, "Bluetooth power");
69 rc = gpio_direction_output(data->gpio_pwr, 0);
74 &tosa_bt_rfkill_ops, data);
91 tosa_bt_off(data);
93 gpio_free(data->gpio_pwr);
96 gpio_free(data->gpio_reset);
103 struct tosa_bt_data *data = dev->dev.platform_data;
114 tosa_bt_off(data);
116 gpio_free(data->gpio_pwr);
117 gpio_free(data->gpio_reset);