Lines Matching refs:data
21 static void tosa_bt_on(struct tosa_bt_data *data)
23 gpio_set_value(data->gpio_reset, 0);
24 gpio_set_value(data->gpio_pwr, 1);
25 gpio_set_value(data->gpio_reset, 1);
27 gpio_set_value(data->gpio_reset, 0);
30 static void tosa_bt_off(struct tosa_bt_data *data)
32 gpio_set_value(data->gpio_reset, 1);
34 gpio_set_value(data->gpio_pwr, 0);
35 gpio_set_value(data->gpio_reset, 0);
38 static int tosa_bt_set_block(void *data, bool blocked)
44 tosa_bt_on(data);
47 tosa_bt_off(data);
62 struct tosa_bt_data *data = dev->dev.platform_data;
64 rc = gpio_request(data->gpio_reset, "Bluetooth reset");
67 rc = gpio_direction_output(data->gpio_reset, 0);
70 rc = gpio_request(data->gpio_pwr, "Bluetooth power");
73 rc = gpio_direction_output(data->gpio_pwr, 0);
78 &tosa_bt_rfkill_ops, data);
97 tosa_bt_off(data);
99 gpio_free(data->gpio_pwr);
102 gpio_free(data->gpio_reset);
109 struct tosa_bt_data *data = dev->dev.platform_data;
120 tosa_bt_off(data);
122 gpio_free(data->gpio_pwr);
123 gpio_free(data->gpio_reset);