Lines Matching refs:bc
108 const lws_button_controller_t *bc = bcs->controller;
124 for (n = 0; n < bc->count_buttons; n++) {
134 bc->gpio_ops->irq_mode(bc->button_map[n].gpio,
144 bc->gpio_ops->set(bc->button_map[n].gpio,
145 !!(bc->active_state_bitmap & (1 << n)));
146 bc->gpio_ops->mode(bc->button_map[n].gpio, LWSGGPIO_FL_WRITE);
179 bc->gpio_ops->mode(bc->button_map[n].gpio, LWSGGPIO_FL_READ);
192 bc->gpio_ops->irq_mode(bc->button_map[n].gpio,
193 bc->active_state_bitmap & (1 << n) ?
206 const lws_button_controller_t *bc = bcs->controller;
215 for (n = 0; n < bc->count_buttons; n++) {
220 if (bc->button_map[n].regime)
221 regime = bc->button_map[n].regime;
228 active = bc->gpio_ops->read(bc->button_map[n].gpio) ^
229 (!(bc->active_state_bitmap & (1 << n)));
390 bc->smd_bc_name,
391 bc->button_map[n].smd_interaction_name,
449 const lws_button_controller_t *bc = bcs->controller;
452 for (n = 0; n < bc->count_buttons; n++)
453 if (!strcmp(name, bc->button_map[n].smd_interaction_name))
464 const lws_button_controller_t *bc = bcs->controller;
473 bc->gpio_ops->mode(bc->button_map[n].gpio,
475 ((bc->active_state_bitmap & (1 << n)) ?
483 bc->gpio_ops->irq_mode(bc->button_map[n].gpio,
484 bc->active_state_bitmap & (1 << n) ?
492 bc->gpio_ops->irq_mode(bc->button_map[n].gpio,