Lines Matching refs:gci_i
1560 si_gci_gpioint_handler_unregister(si_t *sih, void *gci_i) in si_gci_gpioint_handler_unregister() argument
1567 ASSERT(gci_i != NULL); in si_gci_gpioint_handler_unregister()
1577 if ((void*)sii->gci_gpio_head == gci_i) { in si_gci_gpioint_handler_unregister()
1579 MFREE(sii->osh, gci_i, sizeof(gci_gpio_item_t)); in si_gci_gpioint_handler_unregister()
1585 if ((void*)n == gci_i) { in si_gci_gpioint_handler_unregister()
1587 MFREE(sii->osh, gci_i, sizeof(gci_gpio_item_t)); in si_gci_gpioint_handler_unregister()
1601 gci_gpio_item_t *gci_i; in si_gci_gpioint_handler_register() local
1620 gci_i = MALLOC(sii->osh, (sizeof(gci_gpio_item_t))); in si_gci_gpioint_handler_register()
1622 ASSERT(gci_i); in si_gci_gpioint_handler_register()
1623 if (gci_i == NULL) { in si_gci_gpioint_handler_register()
1629 gci_i->next = sii->gci_gpio_head; in si_gci_gpioint_handler_register()
1631 gci_i->next = NULL; in si_gci_gpioint_handler_register()
1633 sii->gci_gpio_head = gci_i; in si_gci_gpioint_handler_register()
1635 gci_i->handler = cb; in si_gci_gpioint_handler_register()
1636 gci_i->arg = arg; in si_gci_gpioint_handler_register()
1637 gci_i->gci_gpio = gci_gpio; in si_gci_gpioint_handler_register()
1638 gci_i->status = gpio_status; in si_gci_gpioint_handler_register()
1640 return (void *)(gci_i); in si_gci_gpioint_handler_register()
1648 gci_gpio_item_t *gci_i; in si_gci_gpioint_handler_process() local
1671 gci_i = sii->gci_gpio_head; in si_gci_gpioint_handler_process()
1676 while (gci_i) { in si_gci_gpioint_handler_process()
1677 if (gci_i->gci_gpio < 8) in si_gci_gpioint_handler_process()
1678 status = ((gpio_status[0] >> (gci_i->gci_gpio * 4)) & 0x0F); in si_gci_gpioint_handler_process()
1680 status = ((gpio_status[1] >> ((gci_i->gci_gpio - 8) * 4)) & 0x0F); in si_gci_gpioint_handler_process()
1683 ASSERT(gci_i->handler); in si_gci_gpioint_handler_process()
1684 if (gci_i->status & status) in si_gci_gpioint_handler_process()
1685 gci_i->handler(status, gci_i->arg); in si_gci_gpioint_handler_process()
1686 gci_i = gci_i->next; in si_gci_gpioint_handler_process()