Home
last modified time | relevance | path

Searched refs:link (Results 1 – 25 of 356) sorted by relevance

12345678910>>...15

/Zephyr-latest/subsys/modem/
Dmodem_pipelink.c9 static void try_callback(struct modem_pipelink *link, enum modem_pipelink_event event) in try_callback() argument
11 if (link->callback == NULL) { in try_callback()
15 link->callback(link, event, link->user_data); in try_callback()
18 void modem_pipelink_attach(struct modem_pipelink *link, in modem_pipelink_attach() argument
22 K_SPINLOCK(&link->spinlock) { in modem_pipelink_attach()
23 link->callback = callback; in modem_pipelink_attach()
24 link->user_data = user_data; in modem_pipelink_attach()
28 bool modem_pipelink_is_connected(struct modem_pipelink *link) in modem_pipelink_is_connected() argument
32 K_SPINLOCK(&link->spinlock) { in modem_pipelink_is_connected()
33 connected = link->connected; in modem_pipelink_is_connected()
[all …]
/Zephyr-latest/subsys/bluetooth/mesh/
Dpb_adv.c43 #define XACT_SEG_DATA(_seg) (&link.rx.buf->data[XACT_SEG_OFFSET(_seg)])
44 #define XACT_SEG_RECV(_seg) (link.rx.seg &= ~(1 << (_seg)))
143 static struct pb_adv link = { .rx = { .buf = &rx_buf } }; variable
159 if (atomic_test_bit(link.flags, ADV_SENDING)) { in tx_schedule()
175 for (int i = 0; i < ARRAY_SIZE(link.tx.unacked); i++) { in send_unacked()
176 if (link.tx.unacked[i].adv != NULL) { in send_unacked()
180 link.tx.unacked[i].adv = adv; in send_unacked()
181 link.tx.unacked[i].cb = cb; in send_unacked()
182 link.tx.unacked[i].cb_data = cb_data; in send_unacked()
196 link.tx.next = 0; in send_reliable()
[all …]
Dpb_gatt.c38 static struct prov_link link; variable
42 if (link.conn) { in reset_state()
43 bt_conn_unref(link.conn); in reset_state()
44 link.conn = NULL; in reset_state()
48 (void)k_work_cancel_delayable(&link.prot_timer); in reset_state()
53 const struct prov_bearer_cb *cb = link.cb; in link_closed()
54 void *cb_data = link.cb_data; in link_closed()
70 if (link.conn) { in protocol_timeout()
71 (void)bt_conn_disconnect(link.conn, in protocol_timeout()
87 if (link.conn != conn || !link.cb) { in bt_mesh_pb_gatt_recv()
[all …]
Drpr_cli.c36 int link; member
52 struct bt_mesh_rpr_link *link) in link_report() argument
56 if (link->state == BT_MESH_RPR_LINK_ACTIVE && in link_report()
57 bearer.link == BEARER_LINK_OPENING) { in link_report()
58 bearer.link = BEARER_LINK_OPENED; in link_report()
65 cli->link.time = PROTOCOL_TIMEOUT_SEC; in link_report()
69 if (link->state == BT_MESH_RPR_LINK_IDLE && in link_report()
70 bearer.link != BEARER_LINK_IDLE) { in link_report()
71 bearer.link = BEARER_LINK_IDLE; in link_report()
73 LOG_DBG("Closed (%u)", link->status); in link_report()
[all …]
Drpr_srv.c79 } link; member
140 srv.link.cli.addr = BT_MESH_ADDR_UNASSIGNED; in cli_link_clear()
141 srv.link.cli.net_idx = BT_MESH_KEY_UNUSED; in cli_link_clear()
171 net_buf_simple_add_u8(&buf, srv.link.state); in link_status_send()
178 struct bt_mesh_msg_ctx ctx = LINK_CTX(&srv.link.cli, true); in link_report_send()
182 net_buf_simple_add_u8(&buf, srv.link.status); in link_report_send()
183 net_buf_simple_add_u8(&buf, srv.link.state); in link_report_send()
184 if (srv.link.status == BT_MESH_RPR_ERR_LINK_CLOSED_BY_SERVER || in link_report_send()
185 srv.link.status == BT_MESH_RPR_ERR_LINK_CLOSED_BY_DEVICE) { in link_report_send()
186 net_buf_simple_add_u8(&buf, srv.link.close_reason); in link_report_send()
[all …]
/Zephyr-latest/include/zephyr/logging/
Dlog_link.h28 typedef void (*log_link_callback_t)(const struct log_link *link,
31 typedef void (*log_link_dropped_cb_t)(const struct log_link *link,
40 int (*initiate)(const struct log_link *link, struct log_link_config *config);
41 int (*activate)(const struct log_link *link);
42 int (*get_domain_name)(const struct log_link *link, uint32_t domain_id,
44 int (*get_source_name)(const struct log_link *link, uint32_t domain_id,
46 int (*get_levels)(const struct log_link *link, uint32_t domain_id,
49 int (*set_runtime_level)(const struct log_link *link, uint32_t domain_id,
123 static inline int log_link_initiate(const struct log_link *link, in log_link_initiate() argument
126 __ASSERT_NO_MSG(link); in log_link_initiate()
[all …]
Dlog_multidomain_helper.h144 int (*init)(struct log_multidomain_link *link);
145 int (*send)(struct log_multidomain_link *link, void *data, size_t len);
174 const struct log_link *link; member
208 void log_multidomain_link_on_recv_cb(struct log_multidomain_link *link,
216 void log_multidomain_link_on_error(struct log_multidomain_link *link, int err);
223 void log_multidomain_link_on_started(struct log_multidomain_link *link, int err);
/Zephyr-latest/subsys/logging/
Dlog_mgmt.c88 STRUCT_SECTION_FOREACH(log_link, link) { in get_link_domain()
89 domain_max = link->ctrl_blk->domain_offset + in get_link_domain()
90 link->ctrl_blk->domain_cnt; in get_link_domain()
93 *rel_domain_id = domain_id - link->ctrl_blk->domain_offset; in get_link_domain()
94 return link; in get_link_domain()
109 static uint32_t get_source_offset(const struct log_link *link, in get_source_offset() argument
115 offset += log_link_sources_count(link, i); in get_source_offset()
124 const struct log_link *link = get_link_domain(domain_id, &rel_domain_id); in z_log_link_get_dynamic_filter() local
127 __ASSERT_NO_MSG(link != NULL); in z_log_link_get_dynamic_filter()
129 source_offset = get_source_offset(link, rel_domain_id); in z_log_link_get_dynamic_filter()
[all …]
Dlog_multidomain_link.c44 z_log_msg_enqueue(link_remote->link, in log_multidomain_link_on_recv_cb()
163 static int link_remote_initiate(const struct log_link *link, in link_remote_initiate() argument
166 struct log_multidomain_link *link_remote = link->ctx; in link_remote_initiate()
168 link_remote->link = link; in link_remote_initiate()
174 static int link_remote_activate(const struct log_link *link) in link_remote_activate() argument
176 struct log_multidomain_link *link_remote = link->ctx; in link_remote_activate()
194 if (cnt > ARRAY_SIZE(link->ctrl_blk->source_cnt)) { in link_remote_activate()
199 link->ctrl_blk->domain_cnt = cnt; in link_remote_activate()
200 for (int i = 0; i < link->ctrl_blk->domain_cnt; i++) { in link_remote_activate()
206 link->ctrl_blk->source_cnt[i] = cnt; in link_remote_activate()
[all …]
/Zephyr-latest/tests/subsys/logging/log_links/src/
Dmock_log_link.c9 static int initiate(const struct log_link *link, struct log_link_config *configa) in initiate() argument
11 struct mock_log_link *mock = (struct mock_log_link *)link->ctx; in initiate()
13 link->ctrl_blk->domain_cnt = mock->domain_cnt; in initiate()
16 link->ctrl_blk->source_cnt[i] = mock->domains[i]->source_cnt; in initiate()
22 static int activate(const struct log_link *link) in activate() argument
27 static int get_domain_name(const struct log_link *link, uint32_t domain_id, in get_domain_name() argument
30 struct mock_log_link *mock = (struct mock_log_link *)link->ctx; in get_domain_name()
41 static int get_source_name(const struct log_link *link, uint32_t domain_id, in get_source_name() argument
44 struct mock_log_link *mock = (struct mock_log_link *)link->ctx; in get_source_name()
53 static int get_levels(const struct log_link *link, uint32_t domain_id, in get_levels() argument
[all …]
/Zephyr-latest/tests/bluetooth/controller/mock_ctrl/src/
Dull.c166 void ll_rx_link_release(void *link) in ll_rx_link_release() argument
168 mem_release(link, &mem_link_rx.free); in ll_rx_link_release()
181 void ll_rx_put(memq_link_t *link, void *rx) in ll_rx_put() argument
193 void ll_rx_put_sched(memq_link_t *link, void *rx) in ll_rx_put_sched() argument
195 ll_rx_put(link, rx); in ll_rx_put_sched()
271 void ull_rx_put(memq_link_t *link, void *rx) in ull_rx_put() argument
279 void ull_rx_put_sched(memq_link_t *link, void *rx) in ull_rx_put_sched() argument
292 memq_link_t *link; in init_reset() local
309 link = mem_acquire(&mem_link_rx.free); in init_reset()
312 MEMQ_INIT(ull_rx, link); in init_reset()
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/
Dticker.c61 static memq_link_t link; in hal_ticker_instance0_sched() local
62 static struct mayfly m = {0, 0, &link, NULL, in hal_ticker_instance0_sched()
85 static memq_link_t link; in hal_ticker_instance0_sched() local
86 static struct mayfly m = {0, 0, &link, NULL, in hal_ticker_instance0_sched()
108 static memq_link_t link; in hal_ticker_instance0_sched() local
109 static struct mayfly m = {0, 0, &link, NULL, in hal_ticker_instance0_sched()
131 static memq_link_t link; in hal_ticker_instance0_sched() local
132 static struct mayfly m = {0, 0, &link, NULL, in hal_ticker_instance0_sched()
146 static memq_link_t link; in hal_ticker_instance0_sched() local
147 static struct mayfly m = {0, 0, &link, NULL, in hal_ticker_instance0_sched()
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/openisa/hal/RV32M1/
Dticker.c62 static memq_link_t link; in hal_ticker_instance0_sched() local
63 static struct mayfly m = {0, 0, &link, NULL, in hal_ticker_instance0_sched()
87 static memq_link_t link; in hal_ticker_instance0_sched() local
88 static struct mayfly m = {0, 0, &link, NULL, in hal_ticker_instance0_sched()
110 static memq_link_t link; in hal_ticker_instance0_sched() local
111 static struct mayfly m = {0, 0, &link, NULL, in hal_ticker_instance0_sched()
133 static memq_link_t link; in hal_ticker_instance0_sched() local
134 static struct mayfly m = {0, 0, &link, NULL, in hal_ticker_instance0_sched()
148 static memq_link_t link; in hal_ticker_instance0_sched() local
149 static struct mayfly m = {0, 0, &link, NULL, in hal_ticker_instance0_sched()
[all …]
/Zephyr-latest/tests/subsys/logging/log_link_order/src/
Dmock_log_link.c9 static int initiate(const struct log_link *link, struct log_link_config *configa) in initiate() argument
11 link->ctrl_blk->domain_cnt = 1; in initiate()
12 link->ctrl_blk->source_cnt[0] = 1; in initiate()
17 static int activate(const struct log_link *link) in activate() argument
22 static int get_domain_name(const struct log_link *link, uint32_t domain_id, in get_domain_name() argument
31 static int get_source_name(const struct log_link *link, uint32_t domain_id, in get_source_name() argument
41 static int get_levels(const struct log_link *link, uint32_t domain_id, in get_levels() argument
54 static int set_runtime_level(const struct log_link *link, uint32_t domain_id, in set_runtime_level() argument
/Zephyr-latest/include/zephyr/modem/
Dpipelink.h46 typedef void (*modem_pipelink_callback)(struct modem_pipelink *link,
69 void modem_pipelink_attach(struct modem_pipelink *link,
79 bool modem_pipelink_is_connected(struct modem_pipelink *link);
87 struct modem_pipe *modem_pipelink_get_pipe(struct modem_pipelink *link);
93 void modem_pipelink_release(struct modem_pipelink *link);
98 void modem_pipelink_init(struct modem_pipelink *link, struct modem_pipe *pipe);
101 void modem_pipelink_notify_connected(struct modem_pipelink *link);
104 void modem_pipelink_notify_disconnected(struct modem_pipelink *link);
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dull.c560 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()
[all …]
Dull_central.c99 memq_link_t *link; in ll_create_connection() local
178 link = ll_rx_link_alloc(); in ll_create_connection()
179 if (!link) { in ll_create_connection()
185 ll_rx_link_release(link); in ll_create_connection()
300 conn->llcp_terminate.node_rx.rx.hdr.link = link; in ll_create_connection()
523 memq_link_t *link; in ll_connect_disable() local
527 link = node_rx->hdr.link; in ll_connect_disable()
528 LL_ASSERT(link); in ll_connect_disable()
531 ll_rx_link_release(link); in ll_connect_disable()
628 memq_link_t *link; in ull_central_cleanup() local
[all …]
Dull_peripheral.c64 memq_link_t *link, struct node_rx_pdu *rx);
91 memq_link_t *link; local
123 link = rx->hdr.link;
133 invalid_release(&adv->ull, lll, link, rx);
164 invalid_release(&adv->ull, lll, link, rx);
302 ll_rx_put(link, rx);
306 link = rx->hdr.link;
328 ll_rx_put(link, rx);
334 link = rx->hdr.link;
347 ll_rx_put_sched(link, rx);
[all …]
/Zephyr-latest/subsys/bluetooth/controller/util/
Dmemq.c51 memq_link_t *memq_init(memq_link_t *link, memq_link_t **head, memq_link_t **tail) in memq_init() argument
54 *head = *tail = link; in memq_init()
56 return link; in memq_init()
92 memq_link_t *memq_enqueue(memq_link_t *link, void *mem, memq_link_t **tail) in memq_enqueue() argument
95 (*tail)->next = link; in memq_enqueue()
104 *tail = link; /* Commit: enqueue of memq node */ in memq_enqueue()
106 return link; in memq_enqueue()
Dmayfly.c130 static void dequeue(uint8_t callee_id, uint8_t caller_id, memq_link_t *link, in dequeue() argument
159 m->_link = link; in dequeue()
174 memq_enqueue(link, m, &mft[callee_id][callee_id].tail); in dequeue()
193 memq_link_t *link; in mayfly_run() local
197 link = memq_peek(mft[callee_id][caller_id].head, in mayfly_run()
200 while (link) { in mayfly_run()
221 dequeue(callee_id, caller_id, link, m); in mayfly_run()
224 link = memq_peek(mft[callee_id][caller_id].head, in mayfly_run()
247 if (caller_id || link) { in mayfly_run()
296 static memq_link_t link; in mayfly_ut_test() local
[all …]
Dmemq.h25 memq_link_t *memq_init(memq_link_t *link, memq_link_t **head,
28 #define MEMQ_INIT(name, link) \ argument
29 memq_init(link, &memq_##name.head, &memq_##name.tail)
32 memq_link_t *memq_enqueue(memq_link_t *link, void *mem, memq_link_t **tail);
/Zephyr-latest/doc/_extensions/zephyr/doxytooltip/static/
Ddoxytooltip.js45 links.forEach((link) => {
46 tippy(link, {
61 const url = link.getAttribute('href');
62 const targetId = link.getAttribute('href').split('#')[1];
76 const link = document.createElement('link');
77 link.rel = 'stylesheet';
78 link.href = new URL(
82 tooltipShadow.appendChild(link);
89 const codeClasses = link.getElementsByTagName('code')[0].classList;
/Zephyr-latest/samples/net/vlan/
Dvlan-setup-linux.sh46 ip link add link ${IFACE} name ${VLAN_NAME_PREFIX}.100 type vlan id 100
47 ip link add link ${IFACE} name ${VLAN_NAME_PREFIX}.200 type vlan id 200
49 ip link set ${VLAN_NAME_PREFIX}.100 up
50 ip link set ${VLAN_NAME_PREFIX}.200 up
/Zephyr-latest/doc/connectivity/networking/api/
Dnet_linkaddr.rst13 The link layer addresses are set for network interfaces so that L2
14 connectivity works correctly in the network stack. Typically the link layer
15 addresses are 6 bytes long like in Ethernet but for IEEE 802.15.4 the link
/Zephyr-latest/doc/_extensions/zephyr/
Dlink-roles.py82 link = m.group(2)
85 link = text
87 module_match = re.search(r"(.+?):\s*(.+)", link)
90 link = module_match.group(2).strip()
122 ) and not Path(ZEPHYR_BASE, link).exists():

12345678910>>...15