Lines Matching refs:upipe
58 struct upipe_context *upipe = upipe_dev->data; in received_dest_addr_matched() local
76 (net_if_get_link_addr(upipe->iface)->len != in received_dest_addr_matched()
87 if (net_if_get_link_addr(upipe->iface)->len != in received_dest_addr_matched()
107 struct upipe_context *upipe; in upipe_rx() local
113 upipe = upipe_dev->data; in upipe_rx()
114 if (!upipe->rx && *buf == UART_PIPE_RADIO_15_4_FRAME_TYPE) { in upipe_rx()
115 upipe->rx = true; in upipe_rx()
119 if (!upipe->rx_len) { in upipe_rx()
124 upipe->rx_len = *buf; in upipe_rx()
128 upipe->rx_buf[upipe->rx_off++] = *buf; in upipe_rx()
130 if (upipe->rx_len == upipe->rx_off) { in upipe_rx()
131 pkt = net_pkt_rx_alloc_with_buffer(upipe->iface, upipe->rx_len, in upipe_rx()
138 if (net_pkt_write(pkt, upipe->rx_buf, upipe->rx_len)) { in upipe_rx()
150 if (ieee802154_handle_ack(upipe->iface, pkt) == NET_OK) { in upipe_rx()
155 LOG_DBG("Caught a packet (%u)", upipe->rx_len); in upipe_rx()
156 if (net_recv_data(upipe->iface, pkt) < 0) { in upipe_rx()
165 upipe->rx = false; in upipe_rx()
166 upipe->rx_len = 0U; in upipe_rx()
167 upipe->rx_off = 0U; in upipe_rx()
182 struct upipe_context *upipe = dev->data; in upipe_cca() local
184 if (upipe->stopped) { in upipe_cca()
268 struct upipe_context *upipe = dev->data; in upipe_tx() local
280 if (upipe->stopped) { in upipe_tx()
299 struct upipe_context *upipe = dev->data; in upipe_start() local
301 if (!upipe->stopped) { in upipe_start()
305 upipe->stopped = false; in upipe_start()
312 struct upipe_context *upipe = dev->data; in upipe_stop() local
314 if (upipe->stopped) { in upipe_stop()
318 upipe->stopped = true; in upipe_stop()
339 struct upipe_context *upipe = dev->data; in upipe_init() local
341 (void)memset(upipe, 0, sizeof(struct upipe_context)); in upipe_init()
343 uart_pipe_register(upipe->uart_pipe_buf, 1, upipe_rx); in upipe_init()
352 struct upipe_context *upipe = dev->data; in get_mac() local
354 upipe->mac_addr[0] = 0x00; in get_mac()
355 upipe->mac_addr[1] = 0x10; in get_mac()
356 upipe->mac_addr[2] = 0x20; in get_mac()
357 upipe->mac_addr[3] = 0x30; in get_mac()
360 sys_rand_get(&upipe->mac_addr[4], 4U); in get_mac()
362 upipe->mac_addr[4] = CONFIG_IEEE802154_UPIPE_MAC4; in get_mac()
363 upipe->mac_addr[5] = CONFIG_IEEE802154_UPIPE_MAC5; in get_mac()
364 upipe->mac_addr[6] = CONFIG_IEEE802154_UPIPE_MAC6; in get_mac()
365 upipe->mac_addr[7] = CONFIG_IEEE802154_UPIPE_MAC7; in get_mac()
368 return upipe->mac_addr; in get_mac()
374 struct upipe_context *upipe = dev->data; in upipe_iface_init() local
380 upipe->iface = iface; in upipe_iface_init()