Home
last modified time | relevance | path

Searched refs:role (Results 1 – 25 of 212) sorted by relevance

123456789

/Zephyr-Core-3.6.0/subsys/bluetooth/mesh/
Dproxy_msg.c61 struct bt_mesh_proxy_role *role; in proxy_sar_timeout() local
66 role = CONTAINER_OF(dwork, struct bt_mesh_proxy_role, sar_timer); in proxy_sar_timeout()
67 if (role->conn) { in proxy_sar_timeout()
68 bt_conn_disconnect(role->conn, in proxy_sar_timeout()
77 struct bt_mesh_proxy_role *role = &roles[bt_conn_index(conn)]; in bt_mesh_proxy_msg_recv() local
79 if (net_buf_simple_tailroom(&role->buf) < len - 1) { in bt_mesh_proxy_msg_recv()
86 if (role->buf.len) { in bt_mesh_proxy_msg_recv()
91 role->msg_type = PDU_TYPE(data); in bt_mesh_proxy_msg_recv()
92 net_buf_simple_add_mem(&role->buf, data + 1, len - 1); in bt_mesh_proxy_msg_recv()
93 role->cb.recv(role); in bt_mesh_proxy_msg_recv()
[all …]
Dproxy_cli.c36 struct bt_mesh_proxy_role *role; member
51 if (!servers[i].role) { in find_proxy_srv()
70 if (!servers[i].role || in find_proxy_srv_by_conn()
71 servers[i].role->conn != conn) { in find_proxy_srv_by_conn()
93 if (bt_mesh_proxy_relay_send(server->role->conn, adv)) { in bt_mesh_proxy_cli_relay()
103 static void proxy_msg_recv(struct bt_mesh_proxy_role *role) in proxy_msg_recv() argument
105 switch (role->msg_type) { in proxy_msg_recv()
108 bt_mesh_net_recv(&role->buf, 0, BT_MESH_NET_IF_PROXY); in proxy_msg_recv()
112 bt_mesh_beacon_recv(&role->buf); in proxy_msg_recv()
119 LOG_WRN("Unhandled Message Type 0x%02x", role->msg_type); in proxy_msg_recv()
[all …]
Dpb_gatt_cli.c40 static void pb_gatt_msg_recv(struct bt_mesh_proxy_role *role) in pb_gatt_msg_recv() argument
42 switch (role->msg_type) { in pb_gatt_msg_recv()
45 bt_mesh_pb_gatt_recv(role->conn, &role->buf); in pb_gatt_msg_recv()
48 LOG_WRN("Unhandled Message Type 0x%02x", role->msg_type); in pb_gatt_msg_recv()
Dprov.c276 bt_mesh_prov_link.role->input_complete(); in bt_mesh_input_number()
296 bt_mesh_prov_link.role->input_complete(); in bt_mesh_input_string()
331 if (type >= ARRAY_SIZE(bt_mesh_prov_link.role->op)) { in prov_recv()
333 bt_mesh_prov_link.role->error(PROV_ERR_NVAL_PDU); in prov_recv()
338 !bt_mesh_prov_link.role->op[type]) { in prov_recv()
340 bt_mesh_prov_link.role->error(PROV_ERR_UNEXP_PDU); in prov_recv()
353 bt_mesh_prov_link.role->error(PROV_ERR_NVAL_FMT); in prov_recv()
357 bt_mesh_prov_link.role->op[type](&buf->data[1]); in prov_recv()
370 if (bt_mesh_prov_link.role->link_opened) { in prov_link_opened()
371 bt_mesh_prov_link.role->link_opened(); in prov_link_opened()
[all …]
Dpb_gatt_srv.c58 static void proxy_msg_recv(struct bt_mesh_proxy_role *role) in proxy_msg_recv() argument
60 switch (role->msg_type) { in proxy_msg_recv()
63 bt_mesh_pb_gatt_recv(role->conn, &role->buf); in proxy_msg_recv()
67 LOG_WRN("Unhandled Message Type 0x%02x", role->msg_type); in proxy_msg_recv()
102 if (err || info.role != BT_CONN_ROLE_PERIPHERAL || !service_registered || in gatt_connected()
118 if (err || info.role != BT_CONN_ROLE_PERIPHERAL || !service_registered || in gatt_disconnected()
/Zephyr-Core-3.6.0/samples/bluetooth/iso_broadcast_benchmark/src/
Dmain.c26 char role; in device_role_select() local
32 role = tolower(console_getchar()); in device_role_select()
34 printk("%c\n", role); in device_role_select()
36 if (role == 'r') { in device_role_select()
39 } else if (role == 'b') { in device_role_select()
42 } else if (role == 'q') { in device_role_select()
45 } else if (role == '\n') { in device_role_select()
49 printk("Invalid role: %c\n", role); in device_role_select()
56 enum benchmark_role role; in main() local
76 role = device_role_select(); in main()
[all …]
/Zephyr-Core-3.6.0/subsys/bluetooth/audio/
Dgmap_server.c125 static bool valid_gmap_role(enum bt_gmap_role role) in valid_gmap_role() argument
127 if (role == 0 || (role & BT_GMAP_ROLE_MASK) != role) { in valid_gmap_role()
128 LOG_DBG("Invalid role %d", role); in valid_gmap_role()
131 if ((role & BT_GMAP_ROLE_UGG) != 0 && !IS_ENABLED(CONFIG_BT_GMAP_UGG_SUPPORTED)) { in valid_gmap_role()
137 if ((role & BT_GMAP_ROLE_UGT) != 0 && !IS_ENABLED(CONFIG_BT_GMAP_UGT_SUPPORTED)) { in valid_gmap_role()
143 if ((role & BT_GMAP_ROLE_BGS) != 0 && !IS_ENABLED(CONFIG_BT_GMAP_BGS_SUPPORTED)) { in valid_gmap_role()
149 if ((role & BT_GMAP_ROLE_BGR) != 0 && !IS_ENABLED(CONFIG_BT_GMAP_BGR_SUPPORTED)) { in valid_gmap_role()
158 static bool valid_gmap_features(enum bt_gmap_role role, struct bt_gmap_feat features) in valid_gmap_features() argument
162 if ((role & BT_GMAP_ROLE_UGG) != 0) { in valid_gmap_features()
196 if ((role & BT_GMAP_ROLE_UGT) != 0) { in valid_gmap_features()
[all …]
Dbap_stream.c120 uint8_t role; in bt_bap_ep_get_info() local
130 role = conn_info.role; in bt_bap_ep_get_info()
131 if ((role == BT_CONN_ROLE_CENTRAL && dir == BT_AUDIO_DIR_SINK) || in bt_bap_ep_get_info()
132 (role == BT_CONN_ROLE_PERIPHERAL && dir == BT_AUDIO_DIR_SOURCE)) { in bt_bap_ep_get_info()
468 return info.role; in conn_get_role()
476 uint8_t role; in bt_bap_stream_config() local
494 role = conn_get_role(conn); in bt_bap_stream_config()
495 if (role != BT_HCI_ROLE_CENTRAL) { in bt_bap_stream_config()
496 LOG_DBG("Invalid conn role: %u, shall be central", role); in bt_bap_stream_config()
526 uint8_t role; in bt_bap_stream_qos() local
[all …]
Dtmap.c132 uint16_t role; in read_role() local
134 role = sys_cpu_to_le16(tmap_role); in read_role()
135 LOG_DBG("TMAP: role 0x%04X", role); in read_role()
138 &role, sizeof(role)); in read_role()
152 int bt_tmap_register(enum bt_tmap_role role) in bt_tmap_register() argument
164 tmap_role = role; in bt_tmap_register()
189 void bt_tmap_set_role(enum bt_tmap_role role) in bt_tmap_set_role() argument
191 tmap_role = role; in bt_tmap_set_role()
/Zephyr-Core-3.6.0/subsys/bluetooth/host/
Drfcomm_internal.h30 bt_rfcomm_role_t role; member
161 #define BT_RFCOMM_UIH_CR(role) ((role) == BT_RFCOMM_ROLE_INITIATOR) argument
171 #define BT_RFCOMM_CMD_CR(role) ((role) == BT_RFCOMM_ROLE_INITIATOR) argument
172 #define BT_RFCOMM_RESP_CR(role) ((role) == BT_RFCOMM_ROLE_ACCEPTOR) argument
181 #define BT_RFCOMM_DLCI(role, channel) ((((channel) & 0x1f) << 1) | \ argument
182 ((role) == BT_RFCOMM_ROLE_ACCEPTOR))
/Zephyr-Core-3.6.0/subsys/ipc/ipc_service/lib/
Dipc_static_vrings.c35 if (p_vdev->role != VIRTIO_DEV_DRIVER) { in ipc_virtio_set_status()
59 if (p_vdev->role == VIRTIO_DEV_DEVICE) { in ipc_virtio_get_status()
115 static int vq_setup(struct ipc_static_vrings *vr, unsigned int role) in vq_setup() argument
139 vr->vdev.role = role; in vq_setup()
148 static int vq_teardown(struct ipc_static_vrings *vr, unsigned int role) in vq_teardown() argument
161 int ipc_static_vrings_init(struct ipc_static_vrings *vr, unsigned int role) in ipc_static_vrings_init() argument
182 return vq_setup(vr, role); in ipc_static_vrings_init()
185 int ipc_static_vrings_deinit(struct ipc_static_vrings *vr, unsigned int role) in ipc_static_vrings_deinit() argument
189 err = vq_teardown(vr, role); in ipc_static_vrings_deinit()
Dipc_rpmsg.c49 int ipc_rpmsg_register_ept(struct ipc_rpmsg_instance *instance, unsigned int role, in ipc_rpmsg_register_ept() argument
60 if (role == RPMSG_REMOTE) { in ipc_rpmsg_register_ept()
73 unsigned int role, in ipc_rpmsg_init() argument
90 if (role == RPMSG_HOST) { in ipc_rpmsg_init()
107 unsigned int role) in ipc_rpmsg_deinit() argument
115 if (role == RPMSG_HOST) { in ipc_rpmsg_deinit()
/Zephyr-Core-3.6.0/include/zephyr/bluetooth/audio/
Dtmap.h36 void (*discovery_complete)(enum bt_tmap_role role, struct bt_conn *conn, int err);
46 int bt_tmap_register(enum bt_tmap_role role);
65 void bt_tmap_set_role(enum bt_tmap_role role);
Dgmap.h169 void (*discover)(struct bt_conn *conn, int err, enum bt_gmap_role role,
211 int bt_gmap_register(enum bt_gmap_role role, struct bt_gmap_feat features);
231 int bt_gmap_set_role(enum bt_gmap_role role, struct bt_gmap_feat features);
/Zephyr-Core-3.6.0/drivers/pwm/
Dpwm_mcux_ctimer.c29 enum pwm_ctimer_channel_role role; member
78 if (data->channel_states[new_pulse_channel].role != PWM_CTIMER_CHANNEL_ROLE_PULSE) { in mcux_ctimer_pwm_is_period_valid()
115 while (data->channel_states[*ret_period_channel].role != PWM_CTIMER_CHANNEL_ROLE_NONE) { in mcux_ctimer_pwm_select_period_channel()
131 if (data->channel_states[pulse_channel].role != PWM_CTIMER_CHANNEL_ROLE_PULSE) { in mcux_ctimer_pwm_update_state()
135 data->channel_states[pulse_channel].role = PWM_CTIMER_CHANNEL_ROLE_PULSE; in mcux_ctimer_pwm_update_state()
140 data->channel_states[period_channel].role = PWM_CTIMER_CHANNEL_ROLE_PERIOD; in mcux_ctimer_pwm_update_state()
252 [kCTIMER_Match_0] = {.role = PWM_CTIMER_CHANNEL_ROLE_NONE, \
254 [kCTIMER_Match_1] = {.role = PWM_CTIMER_CHANNEL_ROLE_NONE, \
256 [kCTIMER_Match_2] = {.role = PWM_CTIMER_CHANNEL_ROLE_NONE, \
258 [kCTIMER_Match_3] = {.role = PWM_CTIMER_CHANNEL_ROLE_NONE, \
/Zephyr-Core-3.6.0/include/zephyr/drivers/usb/
Dusb_bc12.h134 int (*set_role)(const struct device *dev, enum bc12_role role);
150 __syscall int bc12_set_role(const struct device *dev, enum bc12_role role);
152 static inline int z_impl_bc12_set_role(const struct device *dev, enum bc12_role role) in z_impl_bc12_set_role() argument
156 return api->set_role(dev, role); in z_impl_bc12_set_role()
/Zephyr-Core-3.6.0/subsys/bluetooth/audio/shell/
Dtmap.c46 const enum bt_tmap_role role = (TMAP_CG_SUPPORTED ? BT_TMAP_ROLE_CG : 0U) | in cmd_tmap_init() local
54 shell_info(sh, "Registering TMAS with role: %u", role); in cmd_tmap_init()
56 err = bt_tmap_register(role); in cmd_tmap_init()
66 static void tmap_discover_cb(enum bt_tmap_role role, struct bt_conn *conn, int err) in tmap_discover_cb() argument
73 shell_print(ctx_shell, "tmap discovered for conn %p: role 0x%02x", conn, role); in tmap_discover_cb()
/Zephyr-Core-3.6.0/include/zephyr/ipc/
Dipc_rpmsg.h109 unsigned int role,
128 unsigned int role);
142 int ipc_rpmsg_register_ept(struct ipc_rpmsg_instance *instance, unsigned int role,
Dipc_static_vrings.h107 int ipc_static_vrings_init(struct ipc_static_vrings *vr, unsigned int role);
119 int ipc_static_vrings_deinit(struct ipc_static_vrings *vr, unsigned int role);
/Zephyr-Core-3.6.0/tests/bluetooth/controller/ctrl_terminate/src/
Dmain.c54 static void test_terminate_rem(uint8_t role) in test_terminate_rem() argument
61 test_set_role(&conn, role); in test_terminate_rem()
99 static void test_terminate_loc(uint8_t role) in test_terminate_loc() argument
109 test_set_role(&conn, role); in test_terminate_loc()
/Zephyr-Core-3.6.0/tests/bluetooth/controller/ctrl_cis_terminate/src/
Dmain.c52 static void test_cis_terminate_rem(uint8_t role) in test_cis_terminate_rem() argument
57 test_set_role(&conn, role); in test_cis_terminate_rem()
88 void test_cis_terminate_loc(uint8_t role) in test_cis_terminate_loc() argument
102 test_set_role(&conn, role); in test_cis_terminate_loc()
/Zephyr-Core-3.6.0/samples/bluetooth/iso_connected_benchmark/
DREADME.rst26 * A remote board running the same sample as the reversed role that supports
48 connected board in the central role.
50 peripheral role.
65 Choose device role - type c (central role) or p (peripheral role), or q to quit: p
66 Peripheral role
90 role. Once connected, the central will output overall data (since boot),
97 Choose device role - type c (central role) or p (peripheral role), or q to quit: c
98 Central role
/Zephyr-Core-3.6.0/drivers/usb/bc12/
Dbc12_handlers.c10 static inline int z_vrfy_bc12_set_role(const struct device *dev, enum bc12_role role) in z_vrfy_bc12_set_role() argument
14 return z_impl_bc12_set_role(dev, role); in z_vrfy_bc12_set_role()
/Zephyr-Core-3.6.0/samples/bluetooth/iso_broadcast_benchmark/
DREADME.rst26 * A remote board running the same sample as the reversed role that supports
48 connected board in the receiver role.
50 broadcaster role.
62 Choose device role - type r (receiver role) or b (broadcaster role), or q to quit: r
63 Receiver role
96 Choose device role - type r (receiver role) or b (broadcaster role), or q to quit: b
97 Broadcaster role
/Zephyr-Core-3.6.0/subsys/ipc/ipc_service/backends/
DKconfig30 bool "ICMSG backend with multi-endpoint support in initiator role"
38 role.
41 bool "ICMSG backend with multi-endpoint support in follower role"
49 role.

123456789