Lines Matching refs:bc
112 const lws_button_controller_t *bc = bcs->controller;
127 for (n = 0; n < bc->count_buttons; n++) {
137 bc->gpio_ops->irq_mode(bc->button_map[n].gpio,
147 bc->gpio_ops->set(bc->button_map[n].gpio,
148 !!(bc->active_state_bitmap & (1 << n)));
149 bc->gpio_ops->mode(bc->button_map[n].gpio, LWSGGPIO_FL_WRITE);
181 bc->gpio_ops->mode(bc->button_map[n].gpio, LWSGGPIO_FL_READ);
194 bc->gpio_ops->irq_mode(bc->button_map[n].gpio,
195 bc->active_state_bitmap & (1 << n) ?
208 const lws_button_controller_t *bc = bcs->controller;
217 for (n = 0; n < bc->count_buttons; n++) {
224 if (bc->button_map[n].regime)
225 regime = bc->button_map[n].regime;
232 active = bc->gpio_ops->read(bc->button_map[n].gpio) ^
233 (!(bc->active_state_bitmap & (1 << n)));
421 bc->smd_bc_name,
422 bc->button_map[n].smd_interaction_name,
484 const lws_button_controller_t *bc = bcs->controller;
487 for (n = 0; n < bc->count_buttons; n++)
488 if (!strcmp(name, bc->button_map[n].smd_interaction_name))
499 const lws_button_controller_t *bc = bcs->controller;
508 bc->gpio_ops->mode(bc->button_map[n].gpio,
510 ((bc->active_state_bitmap & (1 << n)) ?
518 bc->gpio_ops->irq_mode(bc->button_map[n].gpio,
519 bc->active_state_bitmap & (1 << n) ?
527 bc->gpio_ops->irq_mode(bc->button_map[n].gpio,