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()
139 frag = net_pkt_get_frag(pkt, upipe->rx_len, K_NO_WAIT); in upipe_rx()
147 memcpy(frag->data, upipe->rx_buf, upipe->rx_len); in upipe_rx()
148 net_buf_add(frag, upipe->rx_len); in upipe_rx()
157 if (ieee802154_handle_ack(upipe->iface, pkt) == NET_OK) { in upipe_rx()
162 LOG_DBG("Caught a packet (%u)", upipe->rx_len); in upipe_rx()
163 if (net_recv_data(upipe->iface, pkt) < 0) { in upipe_rx()
172 upipe->rx = false; in upipe_rx()
173 upipe->rx_len = 0U; in upipe_rx()
174 upipe->rx_off = 0U; in upipe_rx()
189 struct upipe_context *upipe = dev->data; in upipe_cca() local
191 if (upipe->stopped) { in upipe_cca()
275 struct upipe_context *upipe = dev->data; in upipe_tx() local
287 if (upipe->stopped) { in upipe_tx()
306 struct upipe_context *upipe = dev->data; in upipe_start() local
308 if (!upipe->stopped) { in upipe_start()
312 upipe->stopped = false; in upipe_start()
319 struct upipe_context *upipe = dev->data; in upipe_stop() local
321 if (upipe->stopped) { in upipe_stop()
325 upipe->stopped = true; in upipe_stop()
346 struct upipe_context *upipe = dev->data; in upipe_init() local
348 (void)memset(upipe, 0, sizeof(struct upipe_context)); in upipe_init()
350 uart_pipe_register(upipe->uart_pipe_buf, 1, upipe_rx); in upipe_init()
359 struct upipe_context *upipe = dev->data; in get_mac() local
361 upipe->mac_addr[0] = 0x00; in get_mac()
362 upipe->mac_addr[1] = 0x10; in get_mac()
363 upipe->mac_addr[2] = 0x20; in get_mac()
364 upipe->mac_addr[3] = 0x30; in get_mac()
368 (uint32_t *) ((uint8_t *)upipe->mac_addr+4)); in get_mac()
370 upipe->mac_addr[4] = CONFIG_IEEE802154_UPIPE_MAC4; in get_mac()
371 upipe->mac_addr[5] = CONFIG_IEEE802154_UPIPE_MAC5; in get_mac()
372 upipe->mac_addr[6] = CONFIG_IEEE802154_UPIPE_MAC6; in get_mac()
373 upipe->mac_addr[7] = CONFIG_IEEE802154_UPIPE_MAC7; in get_mac()
376 return upipe->mac_addr; in get_mac()
382 struct upipe_context *upipe = dev->data; in upipe_iface_init() local
388 upipe->iface = iface; in upipe_iface_init()