Lines Matching refs:link

560 static void rx_link_dequeue_release_quota_inc(memq_link_t *link);
573 memq_link_t *link,
576 static inline void rx_demux_rx(memq_link_t *link, struct node_rx_hdr *rx_hdr);
577 static inline void rx_demux_event_done(memq_link_t *link,
880 static memq_link_t link; in ll_reset() local
881 static struct mayfly mfy = {0, 0, &link, NULL, in ll_reset()
959 memq_link_t *link; in ll_rx_get() local
975 link = memq_peek(memq_ll_rx.head, memq_ll_rx.tail, (void **)&rx); in ll_rx_get()
976 if (link) { in ll_rx_get()
1000 rx_link_dequeue_release_quota_inc(link); in ll_rx_get()
1013 ll_rx_link_release(link); in ll_rx_get()
1023 rx_link_dequeue_release_quota_inc(link); in ll_rx_get()
1037 rx_link_dequeue_release_quota_inc(link); in ll_rx_get()
1070 memq_link_t *link; in ll_rx_dequeue() local
1072 link = memq_dequeue(memq_ll_rx.tail, &memq_ll_rx.head, in ll_rx_dequeue()
1074 LL_ASSERT(link); in ll_rx_dequeue()
1076 ll_rx_link_release(link); in ll_rx_dequeue()
1105 link_free = rx_curr->hdr.link; in ll_rx_dequeue()
1615 sync->node_rx_lost.rx.hdr.link; in ll_rx_mem_release()
1684 memq_link_t *link; in ll_rx_mem_release() local
1689 link = memq_deinit(&conn->lll.memq_tx.head, in ll_rx_mem_release()
1691 LL_ASSERT(link); in ll_rx_mem_release()
1692 conn->lll.link_tx_free = link; in ll_rx_mem_release()
1736 void ll_rx_link_release(memq_link_t *link) in ll_rx_link_release() argument
1738 mem_release(link, &mem_link_rx.free); in ll_rx_link_release()
1751 void ll_rx_put(memq_link_t *link, void *rx) in ll_rx_put() argument
1763 memq_enqueue(link, rx, &memq_ll_rx.tail); in ll_rx_put()
1778 void ll_rx_put_sched(memq_link_t *link, void *rx) in ll_rx_put_sched() argument
1780 ll_rx_put(link, rx); in ll_rx_put_sched()
1832 static memq_link_t link; in ll_radio_state_abort() local
1833 static struct mayfly mfy = {0, 0, &link, NULL, lll_disable}; in ll_radio_state_abort()
1987 static memq_link_t link; in ull_disable() local
1988 static struct mayfly mfy = {0, 0, &link, NULL, lll_disable}; in ull_disable()
2046 void ull_rx_put(memq_link_t *link, void *rx) in ull_rx_put() argument
2058 memq_enqueue(link, rx, &memq_ull_rx.tail); in ull_rx_put()
2063 static memq_link_t link; in ull_rx_sched() local
2064 static struct mayfly mfy = {0, 0, &link, NULL, rx_demux}; in ull_rx_sched()
2070 void ull_rx_put_sched(memq_link_t *link, void *rx) in ull_rx_put_sched() argument
2072 ull_rx_put(link, rx); in ull_rx_put_sched()
2163 static memq_link_t link; in ull_prepare_dequeue() local
2164 static struct mayfly mfy = {0, 0, &link, NULL, in ull_prepare_dequeue()
2259 memq_link_t *link; in ull_event_done() local
2275 link = evdone->hdr.link; in ull_event_done()
2276 evdone->hdr.link = NULL; in ull_event_done()
2281 ull_rx_put_sched(link, evdone); in ull_event_done()
2334 memq_link_t *link; in init_reset() local
2350 link = mem_acquire(&mem_link_rx.free); in init_reset()
2351 LL_ASSERT(link); in init_reset()
2354 MEMQ_INIT(ull_rx, link); in init_reset()
2357 link = mem_acquire(&mem_link_rx.free); in init_reset()
2358 LL_ASSERT(link); in init_reset()
2361 MEMQ_INIT(ll_rx, link); in init_reset()
2452 memq_link_t *link; in rx_replenish() local
2455 link = mem_acquire(&mem_link_rx.free); in rx_replenish()
2456 if (!link) { in rx_replenish()
2462 ll_rx_link_release(link); in rx_replenish()
2466 rx->link = link; in rx_replenish()
2485 memq_link_t *link; in rx_replenish() local
2488 link = mem_acquire(&mem_link_rx.free); in rx_replenish()
2489 if (!link) { in rx_replenish()
2495 ll_rx_link_release(link); in rx_replenish()
2499 link->mem = NULL; in rx_replenish()
2500 rx->link = link; in rx_replenish()
2530 static void rx_link_dequeue_release_quota_inc(memq_link_t *link) in rx_link_dequeue_release_quota_inc() argument
2534 ll_rx_link_release(link); in rx_link_dequeue_release_quota_inc()
2545 memq_link_t *link; in rx_demux() local
2552 link = memq_peek(memq_ull_rx.head, memq_ull_rx.tail, in rx_demux()
2554 if (link) { in rx_demux()
2572 rx_demux_rx(link, rx); in rx_demux()
2585 link = ull_conn_ack_peek(&ack_last, &handle, &node_tx); in rx_demux()
2586 if (link) { in rx_demux()
2588 link, node_tx); in rx_demux()
2599 } while (link); in rx_demux()
2606 static memq_link_t link; in rx_demux_yield() local
2607 static struct mayfly mfy = {0, 0, &link, NULL, rx_demux}; in rx_demux_yield()
2691 ll_iso_link_tx_release(tx_node->link); in tx_cmplt_get()
2766 memq_link_t *link, in rx_demux_conn_tx_ack() argument
2776 ull_conn_tx_ack(handle, link, node_tx); in rx_demux_conn_tx_ack()
2779 ull_conn_link_tx_release(link); in rx_demux_conn_tx_ack()
2782 link = ull_conn_ack_by_last_peek(ack_last, &handle, &node_tx); in rx_demux_conn_tx_ack()
2785 if (!link) in rx_demux_conn_tx_ack()
2787 } while (link); in rx_demux_conn_tx_ack()
2802 static inline void rx_demux_rx(memq_link_t *link, struct node_rx_hdr *rx) in rx_demux_rx() argument
2809 rx_demux_event_done(link, (struct node_rx_event_done *)rx); in rx_demux_rx()
2828 ll_rx_put_sched(link, rx); in rx_demux_rx()
2832 ull_scan_aux_setup(link, (struct node_rx_pdu *)rx); in rx_demux_rx()
2839 ull_scan_aux_release(link, (struct node_rx_pdu *)rx); in rx_demux_rx()
2846 ull_sync_established_report(link, (struct node_rx_pdu *)rx); in rx_demux_rx()
2853 ll_rx_put_sched(link, rx); in rx_demux_rx()
2874 ll_rx_put_sched(link, rx); in rx_demux_rx()
2887 ll_rx_put_sched(link, rx); in rx_demux_rx()
2896 ull_conn_setup(link, (struct node_rx_pdu *)rx); in rx_demux_rx()
2902 ull_conn_rx(link, (struct node_rx_pdu **)&rx); in rx_demux_rx()
2908 ll_rx_put_sched(link, rx); in rx_demux_rx()
2957 ll_rx_put_sched(link, rx); in rx_demux_rx()
2974 rx_demux_rx_proprietary(link, rx, memq_ull_rx.tail, in rx_demux_rx()
2984 static inline void rx_demux_event_done(memq_link_t *link, in rx_demux_event_done() argument
3086 release = RXFIFO_RELEASE(done, link, done); in rx_demux_event_done()
3119 memq_link_t *link; in ull_rxfifo_alloc() local
3122 link = mem_acquire(link_free); in ull_rxfifo_alloc()
3123 if (!link) { in ull_rxfifo_alloc()
3129 mem_release(link, link_free); in ull_rxfifo_alloc()
3133 link->mem = NULL; in ull_rxfifo_alloc()
3134 rx->link = link; in ull_rxfifo_alloc()
3145 memq_link_t *link, struct node_rx_hdr *rx) in ull_rxfifo_release() argument
3153 rx->link = link; in ull_rxfifo_release()