Home
last modified time | relevance | path

Searched refs:cid (Results 1 – 25 of 98) sorted by relevance

1234

/Zephyr-latest/tests/bluetooth/controller/ll_settings/src/
Dmain.c21 uint16_t cid; in ZTEST() local
24 cid = 0x1234; in ZTEST()
25 err = settings_runtime_set("bt/ctlr/company", &cid, sizeof(cid)); in ZTEST()
27 zassert_equal(ll_settings_company_id(), cid, in ZTEST()
30 cid = 0x5678; in ZTEST()
31 err = settings_runtime_set("bt/ctlr/company", &cid, sizeof(cid)); in ZTEST()
33 zassert_equal(ll_settings_company_id(), cid, in ZTEST()
/Zephyr-latest/subsys/bluetooth/mesh/
Dhealth_cli.c32 uint16_t cid; member
46 uint16_t cid; in health_fault_status() local
52 cid = net_buf_simple_pull_le16(buf); in health_fault_status()
62 if (cid != param->cid) { in health_fault_status()
85 cli->fault_status(cli, ctx->addr, test_id, cid, in health_fault_status()
98 uint16_t cid; in health_current_status() local
104 cid = net_buf_simple_pull_le16(buf); in health_current_status()
106 LOG_DBG("Test ID 0x%02x Company ID 0x%04x Fault Count %u", test_id, cid, buf->len); in health_current_status()
109 cli->current_status(cli, ctx->addr, test_id, cid, in health_current_status()
295 uint16_t cid, uint8_t test_id, uint8_t *faults, in bt_mesh_health_cli_fault_test() argument
[all …]
Dcfg_cli.c521 uint16_t cid; member
529 uint16_t elem_addr, mod_app_idx, mod_id, cid; in mod_app_status() local
546 cid = net_buf_simple_pull_le16(buf); in mod_app_status()
548 cid = CID_NVAL; in mod_app_status()
558 param->mod_id != mod_id || param->cid != cid) { in mod_app_status()
576 mod_app_idx, (cid << 16) | mod_id); in mod_app_status()
586 uint16_t cid; member
597 uint16_t elem_addr, mod_id, cid; in mod_sub_list_handle() local
602 cid = vnd ? net_buf_simple_pull_le16(buf) : CID_NVAL; in mod_sub_list_handle()
614 (vnd && param->cid != cid)) { in mod_sub_list_handle()
[all …]
/Zephyr-latest/subsys/bluetooth/host/classic/
Dl2cap_br_interface.h12 uint16_t cid; member
18 .cid = _cid, \
33 uint16_t cid);
50 int bt_l2cap_br_send_cb(struct bt_conn *conn, uint16_t cid, struct net_buf *buf,
69 uint16_t cid);
Dl2cap_br.c103 uint16_t cid) in bt_l2cap_br_lookup_rx_cid() argument
108 if (BR_CHAN(chan)->rx.cid == cid) { in bt_l2cap_br_lookup_rx_cid()
117 uint16_t cid) in bt_l2cap_br_lookup_tx_cid() argument
122 if (BR_CHAN(chan)->tx.cid == cid) { in bt_l2cap_br_lookup_tx_cid()
149 uint16_t cid; in l2cap_br_chan_alloc_cid() local
155 if (br_chan->rx.cid > 0) { in l2cap_br_chan_alloc_cid()
163 for (cid = L2CAP_BR_CID_DYN_START; cid; cid++) { in l2cap_br_chan_alloc_cid()
164 if (!bt_l2cap_br_lookup_rx_cid(conn, cid)) { in l2cap_br_chan_alloc_cid()
165 br_chan->rx.cid = cid; in l2cap_br_chan_alloc_cid()
183 LOG_DBG("chan %p cid 0x%04x", br_chan, br_chan->rx.cid); in l2cap_br_chan_destroy()
[all …]
/Zephyr-latest/include/zephyr/bluetooth/mesh/
Dhealth_cli.h80 uint8_t test_id, uint16_t cid, uint8_t *faults,
99 uint8_t test_id, uint16_t cid, uint8_t *faults,
154 uint16_t cid, uint8_t *test_id, uint8_t *faults,
180 uint16_t cid, uint8_t *test_id, uint8_t *faults,
195 struct bt_mesh_msg_ctx *ctx, uint16_t cid);
217 uint16_t cid, uint8_t test_id, uint8_t *faults,
231 uint16_t cid, uint8_t test_id);
Dcfg_cli.h64 uint16_t elem_addr, uint16_t mod_id, uint16_t cid,
99 uint16_t elem_addr, uint16_t mod_id, uint16_t cid,
265 uint16_t elem_addr, uint16_t mod_id, uint16_t cid,
939 uint16_t mod_app_idx, uint16_t mod_id, uint16_t cid,
959 uint16_t mod_app_idx, uint16_t mod_id, uint16_t cid,
1007 uint16_t mod_id, uint16_t cid, uint8_t *status, uint16_t *apps,
1046 uint16_t mod_id, uint16_t cid,
1089 uint16_t mod_id, uint16_t cid,
1127 uint16_t sub_addr, uint16_t mod_id, uint16_t cid,
1165 uint16_t sub_addr, uint16_t mod_id, uint16_t cid,
[all …]
Dhealth_srv.h204 #define BT_MESH_HEALTH_TEST_INFO(cid, tests...) \ argument
205 BT_BYTES_LIST_LE16(cid), sizeof((uint8_t[]){ tests }), tests
/Zephyr-latest/subsys/bluetooth/mesh/shell/
Dhealth.c18 static void show_faults(const struct shell *sh, uint8_t test_id, uint16_t cid, uint8_t *faults, in show_faults() argument
25 cid); in show_faults()
29 shell_print(sh, "Health Test ID 0x%02x Company ID 0x%04x Fault Count %zu:\n", test_id, cid, in show_faults()
49 uint16_t cid; in cmd_fault_get() local
52 cid = shell_strtoul(argv[1], 0, &err); in cmd_fault_get()
60 err = bt_mesh_health_cli_fault_get(cli, ctx.addr ? &ctx : NULL, cid, &test_id, faults, in cmd_fault_get()
65 show_faults(sh, test_id, cid, faults, fault_count); in cmd_fault_get()
81 uint16_t cid; in fault_clear() local
84 cid = shell_strtoul(argv[1], 0, &err); in fault_clear()
94 err = bt_mesh_health_cli_fault_clear(cli, ctx.addr ? &ctx : NULL, cid, &test_id, in fault_clear()
[all …]
Dcfg.c119 shell_print(sh, "\tCID 0x%04x", comp.cid); in cmd_get_comp()
929 uint16_t elem_addr, mod_app_idx, mod_id, cid; in cmd_mod_app_bind() local
942 cid = shell_strtoul(argv[4], 0, &err); in cmd_mod_app_bind()
950 mod_app_idx, mod_id, cid, &status); in cmd_mod_app_bind()
973 uint16_t elem_addr, mod_app_idx, mod_id, cid; in cmd_mod_app_unbind() local
986 cid = shell_strtoul(argv[4], 0, &err); in cmd_mod_app_unbind()
994 mod_app_idx, mod_id, cid, &status); in cmd_mod_app_unbind()
1017 uint16_t elem_addr, mod_id, cid; in cmd_mod_app_get() local
1033 cid = shell_strtoul(argv[3], 0, &err); in cmd_mod_app_get()
1041 cid, &status, apps, &cnt); in cmd_mod_app_get()
[all …]
/Zephyr-latest/subsys/bluetooth/host/
Dl2cap.c119 uint16_t cid; in l2cap_chan_alloc_cid() local
125 if (le_chan->rx.cid > 0) { in l2cap_chan_alloc_cid()
129 for (cid = L2CAP_LE_CID_DYN_START; cid <= L2CAP_LE_CID_DYN_END; cid++) { in l2cap_chan_alloc_cid()
130 if (!bt_l2cap_le_lookup_rx_cid(conn, cid)) { in l2cap_chan_alloc_cid()
131 le_chan->rx.cid = cid; in l2cap_chan_alloc_cid()
384 if (L2CAP_LE_CID_IS_DYN(le_chan->rx.cid)) { in l2cap_chan_add()
416 le_chan->rx.cid = fchan->cid; in bt_l2cap_connected()
417 le_chan->tx.cid = fchan->cid; in bt_l2cap_connected()
536 req->scid = sys_cpu_to_le16(ch->rx.cid); in l2cap_le_conn_req()
593 net_buf_add_le16(buf, ch->rx.cid); in l2cap_ecred_conn_req()
[all …]
Dl2cap_internal.h30 uint16_t cid; member
115 uint16_t cid; member
156 uint16_t cid; member
163 .cid = _cid, \
230 uint16_t cid);
234 uint16_t cid);
/Zephyr-latest/subsys/sd/
Dsd_ops.c185 static inline void sdmmc_decode_cid(struct sd_cid *cid, uint32_t *raw_cid) in sdmmc_decode_cid() argument
187 cid->manufacturer = (uint8_t)((raw_cid[3U] & 0xFF000000U) >> 24U); in sdmmc_decode_cid()
188 cid->application = (uint16_t)((raw_cid[3U] & 0xFFFF00U) >> 8U); in sdmmc_decode_cid()
190 cid->name[0U] = (uint8_t)((raw_cid[3U] & 0xFFU)); in sdmmc_decode_cid()
191 cid->name[1U] = (uint8_t)((raw_cid[2U] & 0xFF000000U) >> 24U); in sdmmc_decode_cid()
192 cid->name[2U] = (uint8_t)((raw_cid[2U] & 0xFF0000U) >> 16U); in sdmmc_decode_cid()
193 cid->name[3U] = (uint8_t)((raw_cid[2U] & 0xFF00U) >> 8U); in sdmmc_decode_cid()
194 cid->name[4U] = (uint8_t)((raw_cid[2U] & 0xFFU)); in sdmmc_decode_cid()
196 cid->version = (uint8_t)((raw_cid[1U] & 0xFF000000U) >> 24U); in sdmmc_decode_cid()
198 cid->ser_num = (uint32_t)((raw_cid[1U] & 0xFFFFFFU) << 8U); in sdmmc_decode_cid()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/reassembly/peer/src/
Dpeer.c168 static void send_l2cap_packet(struct net_buf *buf, uint16_t cid);
194 uint16_t cid; in handle_l2cap() local
197 cid = sys_le16_to_cpu(hdr->cid); in handle_l2cap()
199 LOG_DBG("Packet for CID %u len %u", cid, buf->len); in handle_l2cap()
206 TEST_ASSERT(cid == BT_L2CAP_CID_ATT, "We only support (U)ATT"); in handle_l2cap()
476 static void push_l2cap_pdu_header(struct net_buf *dst, uint16_t len, uint16_t cid) in push_l2cap_pdu_header() argument
482 hdr->cid = sys_cpu_to_le16(cid); in push_l2cap_pdu_header()
485 static void send_l2cap_packet(struct net_buf *buf, uint16_t cid) in send_l2cap_packet() argument
487 push_l2cap_pdu_header(buf, buf->len, cid); in send_l2cap_packet()
/Zephyr-latest/tests/bsim/bluetooth/host/misc/hfc_multilink/tester/src/
Dtester.c229 uint16_t cid; in handle_l2cap() local
232 cid = sys_le16_to_cpu(hdr->cid); in handle_l2cap()
235 LOG_DBG("Packet for CID %u len %u", cid, buf->len); in handle_l2cap()
239 if (cid == 0x0005) { in handle_l2cap()
245 if (cid == 0x0040) { in handle_l2cap()
534 static void push_l2cap_pdu_header(struct net_buf *dst, uint16_t len, uint16_t cid) in push_l2cap_pdu_header() argument
540 hdr->cid = sys_cpu_to_le16(cid); in push_l2cap_pdu_header()
543 static void send_l2cap_packet(struct net_buf *buf, uint16_t cid) in send_l2cap_packet() argument
545 push_l2cap_pdu_header(buf, buf->len, cid); in send_l2cap_packet()
/Zephyr-latest/tests/bluetooth/tester/src/audio/btp/
Dbtp_cap.h28 uint16_t cid; member
73 uint16_t cid; member
85 uint16_t cid; member
/Zephyr-latest/include/zephyr/drivers/
Dvideo.h326 typedef int (*video_api_set_ctrl_t)(const struct device *dev, unsigned int cid, void *value);
334 typedef int (*video_api_get_ctrl_t)(const struct device *dev, unsigned int cid, void *value);
668 static inline int video_set_ctrl(const struct device *dev, unsigned int cid, void *value) in video_set_ctrl() argument
676 return api->set_ctrl(dev, cid, value); in video_set_ctrl()
694 static inline int video_get_ctrl(const struct device *dev, unsigned int cid, void *value) in video_get_ctrl() argument
702 return api->get_ctrl(dev, cid, value); in video_get_ctrl()
/Zephyr-latest/drivers/disk/nvme/
Dnvme_cmd.c195 cpl->sqid, cpl->cid, cpl->cdw0); in nvme_completion_print()
294 request, request->cmd.cdw0.cid); in request_timeout()
399 if (cpl->cid != request->cmd.cdw0.cid) { in nvme_cmd_request_complete()
449 if (cpl.cid < NVME_REQUEST_AMOUNT) { in nvme_cmd_qpair_process_completion()
450 request = &request_pool[cpl.cid]; in nvme_cmd_qpair_process_completion()
460 LOG_ERR("cpl (cid = %u) does not map to cmd", cpl.cid); in nvme_cmd_qpair_process_completion()
645 request->cmd.cdw0.cid = sys_cpu_to_le16((uint16_t)(request - in nvme_cmd_qpair_submit_request()
668 request, qpair->num_cmds, request->cmd.cdw0.cid, in nvme_cmd_qpair_submit_request()
/Zephyr-latest/tests/bsim/bluetooth/host/misc/disconnect/tester/src/
Dmain.c172 static void send_l2cap_packet(struct net_buf *buf, uint16_t cid);
218 uint16_t cid; in handle_l2cap() local
221 cid = sys_le16_to_cpu(hdr->cid); in handle_l2cap()
223 LOG_DBG("Packet for CID %u len %u", cid, buf->len); in handle_l2cap()
230 ASSERT(cid == BT_L2CAP_CID_ATT, "We only support (U)ATT"); in handle_l2cap()
488 static void send_l2cap_packet(struct net_buf *buf, uint16_t cid) in send_l2cap_packet() argument
494 hdr->cid = sys_cpu_to_le16(cid); in send_l2cap_packet()
/Zephyr-latest/tests/bsim/bluetooth/host/att/sequential/tester/src/
Dmain.c188 static void send_l2cap_packet(struct net_buf *buf, uint16_t cid);
240 uint16_t cid; in handle_l2cap() local
243 cid = sys_le16_to_cpu(hdr->cid); in handle_l2cap()
245 LOG_DBG("Packet for CID %u len %u", cid, buf->len); in handle_l2cap()
252 ASSERT(cid == BT_L2CAP_CID_ATT, "We only support (U)ATT"); in handle_l2cap()
510 static void send_l2cap_packet(struct net_buf *buf, uint16_t cid) in send_l2cap_packet() argument
516 hdr->cid = sys_cpu_to_le16(cid); in send_l2cap_packet()
/Zephyr-latest/tests/bsim/bluetooth/host/att/pipeline/tester/src/
Dmain.c192 static void send_l2cap_packet(struct net_buf *buf, uint16_t cid);
264 uint16_t cid; in handle_l2cap() local
267 cid = sys_le16_to_cpu(hdr->cid); in handle_l2cap()
269 LOG_DBG("Packet for CID %u len %u", cid, buf->len); in handle_l2cap()
276 ASSERT(cid == BT_L2CAP_CID_ATT, "We only support (U)ATT"); in handle_l2cap()
534 static void send_l2cap_packet(struct net_buf *buf, uint16_t cid) in send_l2cap_packet() argument
540 hdr->cid = sys_cpu_to_le16(cid); in send_l2cap_packet()
/Zephyr-latest/subsys/net/lib/ptp/
Dclock.c81 uint8_t *cid = clock_id->id; in clock_id_str() local
84 cid[0], in clock_id_str()
85 cid[1], in clock_id_str()
86 cid[2], in clock_id_str()
87 cid[3], in clock_id_str()
88 cid[4], in clock_id_str()
89 cid[5], in clock_id_str()
90 cid[6], in clock_id_str()
91 cid[7]); in clock_id_str()
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/split/tester/src/
Dmain.c217 uint16_t cid; in handle_l2cap() local
220 cid = sys_le16_to_cpu(hdr->cid); in handle_l2cap()
223 LOG_DBG("Packet for CID %u len %u", cid, buf->len); in handle_l2cap()
227 if (cid == 0x0005) { in handle_l2cap()
233 if (cid == 0x0040) { in handle_l2cap()
506 static void send_l2cap_packet(struct net_buf *buf, uint16_t cid) in send_l2cap_packet() argument
512 hdr->cid = sys_cpu_to_le16(cid); in send_l2cap_packet()
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dbap_common.c59 codec_cap->cid, codec_cap->vid, codec_cap->data_len); in print_codec_cap()
75 codec_cfg->cid, codec_cfg->vid, codec_cfg->data_len); in print_codec_cfg()
/Zephyr-latest/subsys/bluetooth/audio/
Dpacs_internal.h18 uint16_t cid; /* Company ID */ member

1234