Lines Matching refs:p_remove
586 BOOLEAN gatt_remove_a_srv_from_list(tGATT_SRV_LIST_INFO *p_list, tGATT_SRV_LIST_ELEM *p_remove) in gatt_remove_a_srv_from_list() argument
588 if (!p_remove || !p_list->p_first) in gatt_remove_a_srv_from_list()
594 if (p_remove->p_prev == NULL) in gatt_remove_a_srv_from_list()
596 p_list->p_first = p_remove->p_next; in gatt_remove_a_srv_from_list()
597 if (p_remove->p_next) in gatt_remove_a_srv_from_list()
598 p_remove->p_next->p_prev = NULL; in gatt_remove_a_srv_from_list()
600 else if (p_remove->p_next == NULL) in gatt_remove_a_srv_from_list()
602 p_list->p_last = p_remove->p_prev; in gatt_remove_a_srv_from_list()
603 p_remove->p_prev->p_next = NULL; in gatt_remove_a_srv_from_list()
607 p_remove->p_next->p_prev = p_remove->p_prev; in gatt_remove_a_srv_from_list()
608 p_remove->p_prev->p_next = p_remove->p_next; in gatt_remove_a_srv_from_list()
690 BOOLEAN gatt_remove_an_item_from_list(tGATT_HDL_LIST_INFO *p_list, tGATT_HDL_LIST_ELEM *p_remove) in gatt_remove_an_item_from_list() argument
692 if (!p_remove || !p_list->p_first) in gatt_remove_an_item_from_list()
698 if (p_remove->p_prev == NULL) in gatt_remove_an_item_from_list()
700 p_list->p_first = p_remove->p_next; in gatt_remove_an_item_from_list()
701 if (p_remove->p_next) in gatt_remove_an_item_from_list()
702 p_remove->p_next->p_prev = NULL; in gatt_remove_an_item_from_list()
704 else if (p_remove->p_next == NULL) in gatt_remove_an_item_from_list()
706 p_list->p_last = p_remove->p_prev; in gatt_remove_an_item_from_list()
707 p_remove->p_prev->p_next = NULL; in gatt_remove_an_item_from_list()
711 p_remove->p_next->p_prev = p_remove->p_prev; in gatt_remove_an_item_from_list()
712 p_remove->p_prev->p_next = p_remove->p_next; in gatt_remove_an_item_from_list()