/Zephyr-latest/subsys/bluetooth/mesh/ |
D | access.c | 99 #define IS_MOD_BASE(mod, idx, offset) \ argument 100 (mod_rel_list[(idx)].elem_base == mod->rt->elem_idx && \ 101 mod_rel_list[(idx)].idx_base == mod->rt->mod_idx + (offset)) 103 #define IS_MOD_EXTENSION(mod, idx, offset) \ argument 104 (mod_rel_list[(idx)].elem_ext == mod->rt->elem_idx && \ 105 mod_rel_list[(idx)].idx_ext == mod->rt->mod_idx + (offset)) 122 void bt_mesh_model_foreach(void (*func)(const struct bt_mesh_model *mod, in bt_mesh_model_foreach() argument 189 static void comp_add_model(const struct bt_mesh_model *mod, const struct bt_mesh_elem *elem, in comp_add_model() argument 195 data_buf_add_le16_offset(arg->buf, mod->vnd.company, arg->offset); in comp_add_model() 196 data_buf_add_le16_offset(arg->buf, mod->vnd.id, arg->offset); in comp_add_model() [all …]
|
D | od_priv_proxy_srv.c | 34 static int proxy_status_rsp(const struct bt_mesh_model *mod, in proxy_status_rsp() argument 42 bt_mesh_model_send(mod, ctx, &buf, NULL, NULL); in proxy_status_rsp() 47 static int handle_proxy_get(const struct bt_mesh_model *mod, in handle_proxy_get() argument 53 proxy_status_rsp(mod, ctx); in handle_proxy_get() 58 static int handle_proxy_set(const struct bt_mesh_model *mod, in handle_proxy_set() argument 70 proxy_status_rsp(mod, ctx); in handle_proxy_set() 82 static int od_priv_proxy_srv_init(const struct bt_mesh_model *mod) in od_priv_proxy_srv_init() argument 84 od_priv_proxy_srv = mod; in od_priv_proxy_srv_init() 87 bt_mesh_model_find(bt_mesh_model_elem(mod), BT_MESH_MODEL_ID_PRIV_BEACON_SRV); in od_priv_proxy_srv_init() 89 bt_mesh_model_find(bt_mesh_model_elem(mod), BT_MESH_MODEL_ID_SOL_PDU_RPL_SRV); in od_priv_proxy_srv_init() [all …]
|
D | priv_beacon_srv.c | 40 static int beacon_status_rsp(const struct bt_mesh_model *mod, in beacon_status_rsp() argument 49 bt_mesh_model_send(mod, ctx, &buf, NULL, NULL); in beacon_status_rsp() 54 static int handle_beacon_get(const struct bt_mesh_model *mod, in handle_beacon_get() argument 60 beacon_status_rsp(mod, ctx); in handle_beacon_get() 65 static int handle_beacon_set(const struct bt_mesh_model *mod, in handle_beacon_set() argument 87 beacon_status_rsp(mod, ctx); in handle_beacon_set() 92 static void gatt_proxy_status_rsp(const struct bt_mesh_model *mod, in gatt_proxy_status_rsp() argument 100 bt_mesh_model_send(mod, ctx, &buf, NULL, NULL); in gatt_proxy_status_rsp() 103 static int handle_gatt_proxy_get(const struct bt_mesh_model *mod, in handle_gatt_proxy_get() argument 109 gatt_proxy_status_rsp(mod, ctx); in handle_gatt_proxy_get() [all …]
|
D | sol_pdu_rpl_srv.c | 17 static void sol_rpl_status_rsp(const struct bt_mesh_model *mod, in sol_rpl_status_rsp() argument 32 bt_mesh_model_send(mod, ctx, &buf, NULL, NULL); in sol_rpl_status_rsp() 35 static int item_clear(const struct bt_mesh_model *mod, in item_clear() argument 75 sol_rpl_status_rsp(mod, ctx, range, len); in item_clear() 81 static int handle_item_clear(const struct bt_mesh_model *mod, in handle_item_clear() argument 85 return item_clear(mod, ctx, buf, true); in handle_item_clear() 88 static int handle_item_clear_unacked(const struct bt_mesh_model *mod, in handle_item_clear_unacked() argument 92 return item_clear(mod, ctx, buf, false); in handle_item_clear_unacked() 102 static int sol_pdu_rpl_srv_init(const struct bt_mesh_model *mod) in sol_pdu_rpl_srv_init() argument 104 if (!bt_mesh_model_in_primary(mod)) { in sol_pdu_rpl_srv_init()
|
D | cfg_srv.c | 337 static void mod_app_key_del(const struct bt_mesh_model *mod, in mod_app_key_del() argument 343 mod_unbind(mod, *app_idx, true); in mod_app_key_del() 656 const struct bt_mesh_model *mod, uint8_t status, in send_mod_pub_status() argument 673 idx_cred = mod->pub->key | (uint16_t)mod->pub->cred << 12; in send_mod_pub_status() 675 net_buf_simple_add_u8(&msg, mod->pub->ttl); in send_mod_pub_status() 676 net_buf_simple_add_u8(&msg, mod->pub->period); in send_mod_pub_status() 677 net_buf_simple_add_u8(&msg, mod->pub->retransmit); in send_mod_pub_status() 697 const struct bt_mesh_model *mod; in mod_pub_get() local 719 mod = NULL; in mod_pub_get() 725 mod = get_model(elem, buf, &vnd); in mod_pub_get() [all …]
|
D | access.h | 35 bool bt_mesh_model_has_key(const struct bt_mesh_model *mod, uint16_t key); 38 enum bt_mesh_walk (*cb)(const struct bt_mesh_model *mod, 42 uint16_t *bt_mesh_model_find_group(const struct bt_mesh_model **mod, uint16_t addr); 43 const uint8_t **bt_mesh_model_find_uuid(const struct bt_mesh_model **mod, const uint8_t *uuid); 45 void bt_mesh_model_foreach(void (*func)(const struct bt_mesh_model *mod, 51 int32_t bt_mesh_model_pub_period_get(const struct bt_mesh_model *mod); 78 void bt_mesh_model_bind_store(const struct bt_mesh_model *mod); 79 void bt_mesh_model_sub_store(const struct bt_mesh_model *mod); 80 void bt_mesh_model_pub_store(const struct bt_mesh_model *mod);
|
D | od_priv_proxy_cli.c | 23 static int handle_proxy_status(const struct bt_mesh_model *mod, in handle_proxy_status() argument 96 static int on_demand_proxy_cli_init(const struct bt_mesh_model *mod) in on_demand_proxy_cli_init() argument 98 if (!bt_mesh_model_in_primary(mod)) { in on_demand_proxy_cli_init() 103 cli = mod->rt->user_data; in on_demand_proxy_cli_init() 104 cli->model = mod; in on_demand_proxy_cli_init() 105 mod->keys[0] = BT_MESH_KEY_DEV_ANY; in on_demand_proxy_cli_init() 106 mod->rt->flags |= BT_MESH_MOD_DEVKEY_ONLY; in on_demand_proxy_cli_init()
|
D | dfu_srv.c | 30 bt_mesh_model_data_store(srv->mod, false, NULL, &srv->update, in store_state() 36 bt_mesh_model_data_store(srv->mod, false, NULL, NULL, 0); in erase_state() 133 static int handle_info_get(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_info_get() argument 136 struct bt_mesh_dfu_srv *srv = mod->rt->user_data; in handle_info_get() 190 bt_mesh_model_send(mod, ctx, &rsp, NULL, NULL); in handle_info_get() 195 static int handle_metadata_check(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_metadata_check() argument 198 struct bt_mesh_dfu_srv *srv = mod->rt->user_data; in handle_metadata_check() 218 bt_mesh_model_send(mod, ctx, &rsp, NULL, NULL); in handle_metadata_check() 244 bt_mesh_model_send(srv->mod, ctx, &buf, send_cb, srv); in update_status_rsp() 247 static int handle_get(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_get() argument [all …]
|
D | health_srv.c | 33 static void health_get_registered(const struct bt_mesh_model *mod, in health_get_registered() argument 37 struct bt_mesh_health_srv *srv = mod->rt->user_data; in health_get_registered() 51 err = srv->cb->fault_get_reg(mod, company_id, test_id, in health_get_registered() 66 static size_t health_get_current(const struct bt_mesh_model *mod, in health_get_current() argument 69 struct bt_mesh_health_srv *srv = mod->rt->user_data; in health_get_current() 85 err = srv->cb->fault_get_cur(mod, test_id, &company_id, in health_get_current() 369 static int health_pub_update(const struct bt_mesh_model *mod) in health_pub_update() argument 371 struct bt_mesh_model_pub *pub = mod->pub; in health_pub_update() 376 count = health_get_current(mod, pub->msg); in health_pub_update() 388 const struct bt_mesh_model *mod; in bt_mesh_health_srv_fault_update() local [all …]
|
D | dfd_srv.c | 112 bt_mesh_model_send(srv->mod, ctx, &buf, NULL, NULL); in receivers_status_rsp() 115 static int handle_receivers_add(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_receivers_add() argument 119 struct bt_mesh_dfd_srv *srv = mod->rt->user_data; in handle_receivers_add() 146 static int handle_receivers_delete_all(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_receivers_delete_all() argument 149 struct bt_mesh_dfd_srv *srv = mod->rt->user_data; in handle_receivers_delete_all() 156 static int handle_receivers_get(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_receivers_get() argument 159 struct bt_mesh_dfd_srv *srv = mod->rt->user_data; in handle_receivers_get() 194 bt_mesh_model_send(srv->mod, ctx, &rsp, NULL, NULL); in handle_receivers_get() 209 static int handle_capabilities_get(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_capabilities_get() argument 229 struct bt_mesh_dfd_srv *srv = mod->rt->user_data; in handle_capabilities_get() [all …]
|
D | rpr_cli.c | 93 static int handle_extended_scan_report(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_extended_scan_report() argument 97 struct bt_mesh_rpr_cli *cli = mod->rt->user_data; in handle_extended_scan_report() 126 static int handle_link_report(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_link_report() argument 130 struct bt_mesh_rpr_cli *cli = mod->rt->user_data; in handle_link_report() 164 static int handle_link_status(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_link_status() argument 167 struct bt_mesh_rpr_cli *cli = mod->rt->user_data; in handle_link_status() 198 static int handle_pdu_outbound_report(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_pdu_outbound_report() argument 201 struct bt_mesh_rpr_cli *cli = mod->rt->user_data; in handle_pdu_outbound_report() 229 static int handle_pdu_report(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_pdu_report() argument 232 struct bt_mesh_rpr_cli *cli = mod->rt->user_data; in handle_pdu_report() [all …]
|
D | main.c | 422 static void model_suspend(const struct bt_mesh_model *mod, const struct bt_mesh_elem *elem, in model_suspend() argument 425 if (mod->pub && mod->pub->update) { in model_suspend() 426 mod->pub->count = 0U; in model_suspend() 430 (void)k_work_cancel_delayable(&mod->pub->timer); in model_suspend() 491 static void model_resume(const struct bt_mesh_model *mod, const struct bt_mesh_elem *elem, in model_resume() argument 494 if (mod->pub && mod->pub->update) { in model_resume() 495 int32_t period_ms = bt_mesh_model_pub_period_get(mod); in model_resume() 498 k_work_reschedule(&mod->pub->timer, in model_resume() 609 static void model_start(const struct bt_mesh_model *mod, const struct bt_mesh_elem *elem, in model_start() argument 612 if (mod->cb && mod->cb->start) { in model_start() [all …]
|
D | blob_srv.c | 87 srv->mod, false, NULL, &srv->state, in store_state() 97 bt_mesh_model_data_store(srv->mod, false, NULL, NULL, 0); in erase_state() 203 (void)bt_mesh_model_send(srv->mod, &ctx, &buf, &report_cb, srv); in block_report() 349 (void)bt_mesh_model_send(srv->mod, ctx, &buf, NULL, NULL); in xfer_status_rsp() 414 (void)bt_mesh_model_send(srv->mod, ctx, &buf, NULL, NULL); in block_status_rsp() 417 static int handle_xfer_get(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_xfer_get() argument 420 struct bt_mesh_blob_srv *srv = mod->rt->user_data; in handle_xfer_get() 437 static int handle_xfer_start(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_xfer_start() argument 440 struct bt_mesh_blob_srv *srv = mod->rt->user_data; in handle_xfer_start() 568 static int handle_xfer_cancel(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_xfer_cancel() argument [all …]
|
D | sol_pdu_rpl_cli.c | 25 static int handle_status(const struct bt_mesh_model *mod, in handle_status() argument 163 static int sol_pdu_rpl_cli_init(const struct bt_mesh_model *mod) in sol_pdu_rpl_cli_init() argument 165 if (!bt_mesh_model_in_primary(mod)) { in sol_pdu_rpl_cli_init() 172 cli = mod->rt->user_data; in sol_pdu_rpl_cli_init() 173 cli->model = mod; in sol_pdu_rpl_cli_init()
|
/Zephyr-latest/soc/intel/intel_adsp/common/ |
D | boot.c | 84 struct sof_man_module *mod) in parse_module() argument 92 switch (mod->segment[i].flags.r.type) { in parse_module() 95 if (mod->segment[i].flags.r.load == 0 || in parse_module() 96 mod->segment[i].v_base_addr >= L2_SRAM_BASE + L2_SRAM_SIZE || in parse_module() 97 mod->segment[i].v_base_addr < L2_SRAM_BASE) { in parse_module() 101 bias = mod->segment[i].file_offset - in parse_module() 105 bmemcpy((void *)mod->segment[i].v_base_addr, in parse_module() 107 mod->segment[i].flags.r.length * in parse_module() 128 struct sof_man_module *mod; in parse_manifest() local 135 mod = desc->man_module + i; in parse_manifest() [all …]
|
D | CMakeLists.txt | 57 DEPENDS ${CMAKE_BINARY_DIR}/zephyr/boot.mod ${CMAKE_BINARY_DIR}/zephyr/main.mod 61 OUTPUT ${CMAKE_BINARY_DIR}/zephyr/boot.mod ${CMAKE_BINARY_DIR}/zephyr/main.mod 62 COMMENT "Extracting .mod(ule) files for rimage" 68 # main.mod file below. 83 ${KERNEL_REMAPPED} ${CMAKE_BINARY_DIR}/zephyr/boot.mod 2>${NULL_FILE} 91 ${KERNEL_REMAPPED} ${CMAKE_BINARY_DIR}/zephyr/cold.mod 2>${NULL_FILE} 106 ${KERNEL_REMAPPED} ${CMAKE_BINARY_DIR}/zephyr/main.mod 2>${NULL_FILE} 112 ${CMAKE_BINARY_DIR}/zephyr/main.mod 113 ${CMAKE_BINARY_DIR}/zephyr/main.mod 2>${NULL_FILE} 118 COMMENT "strip main.mod" [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/shell/ |
D | utils.c | 16 bool bt_mesh_shell_mdl_first_get(uint16_t id, const struct bt_mesh_model **mod) in bt_mesh_shell_mdl_first_get() argument 21 *mod = bt_mesh_model_find(&comp->elem[i], id); in bt_mesh_shell_mdl_first_get() 22 if (*mod) { in bt_mesh_shell_mdl_first_get() 30 int bt_mesh_shell_mdl_instance_set(const struct shell *sh, const struct bt_mesh_model **mod, in bt_mesh_shell_mdl_instance_set() argument 44 *mod = mod_temp; in bt_mesh_shell_mdl_instance_set() 56 const struct bt_mesh_model *mod; in bt_mesh_shell_mdl_print_all() local 59 mod = bt_mesh_model_find(&comp->elem[i], mod_id); in bt_mesh_shell_mdl_print_all() 60 if (mod) { in bt_mesh_shell_mdl_print_all() 63 comp->elem[i].rt->addr, mod->rt->elem_idx); in bt_mesh_shell_mdl_print_all()
|
D | dfd.c | 17 static const struct bt_mesh_model *mod; variable 69 if (!mod && !bt_mesh_shell_mdl_first_get(BT_MESH_MODEL_ID_DFD_SRV, &mod)) { in cmd_dfd_receivers_add() 73 struct bt_mesh_dfd_srv *dfd_srv = mod->rt->user_data; in cmd_dfd_receivers_add() 121 if (!mod && !bt_mesh_shell_mdl_first_get(BT_MESH_MODEL_ID_DFD_SRV, &mod)) { in cmd_dfd_receivers_delete_all() 125 struct bt_mesh_dfd_srv *dfd_srv = mod->rt->user_data; in cmd_dfd_receivers_delete_all() 141 if (!mod && !bt_mesh_shell_mdl_first_get(BT_MESH_MODEL_ID_DFD_SRV, &mod)) { in cmd_dfd_receivers_get() 145 struct bt_mesh_dfd_srv *dfd_srv = mod->rt->user_data; in cmd_dfd_receivers_get() 196 if (!mod && !bt_mesh_shell_mdl_first_get(BT_MESH_MODEL_ID_DFD_SRV, &mod)) { in cmd_dfd_get() 200 struct bt_mesh_dfd_srv *dfd_srv = mod->rt->user_data; in cmd_dfd_get() 209 if (!mod && !bt_mesh_shell_mdl_first_get(BT_MESH_MODEL_ID_DFD_SRV, &mod)) { in cmd_dfd_start() [all …]
|
D | rpr.c | 14 static const struct bt_mesh_model *mod; variable 97 if (!mod && !bt_mesh_shell_mdl_first_get(BT_MESH_MODEL_ID_REMOTE_PROV_CLI, &mod)) { in cmd_scan() 111 err = bt_mesh_rpr_scan_start((struct bt_mesh_rpr_cli *)mod->rt->user_data, in cmd_scan() 140 if (!mod && !bt_mesh_shell_mdl_first_get(BT_MESH_MODEL_ID_REMOTE_PROV_CLI, &mod)) { in cmd_scan_ext() 156 err = bt_mesh_rpr_scan_start_ext((struct bt_mesh_rpr_cli *)mod->rt->user_data, in cmd_scan_ext() 179 if (!mod && !bt_mesh_shell_mdl_first_get(BT_MESH_MODEL_ID_REMOTE_PROV_CLI, &mod)) { in cmd_scan_srv() 192 err = bt_mesh_rpr_scan_start_ext((struct bt_mesh_rpr_cli *)mod->rt->user_data, in cmd_scan_srv() 212 if (!mod && !bt_mesh_shell_mdl_first_get(BT_MESH_MODEL_ID_REMOTE_PROV_CLI, &mod)) { in cmd_scan_caps() 216 err = bt_mesh_rpr_scan_caps_get((struct bt_mesh_rpr_cli *)mod->rt->user_data, &srv, &caps); in cmd_scan_caps() 240 if (!mod && !bt_mesh_shell_mdl_first_get(BT_MESH_MODEL_ID_REMOTE_PROV_CLI, &mod)) { in cmd_scan_get() [all …]
|
D | health.c | 16 static const struct bt_mesh_model *mod; variable 39 if (!mod && !bt_mesh_shell_mdl_first_get(BT_MESH_MODEL_ID_HEALTH_CLI, &mod)) { in cmd_fault_get() 43 struct bt_mesh_health_cli *cli = mod->rt->user_data; in cmd_fault_get() 73 if (!mod && !bt_mesh_shell_mdl_first_get(BT_MESH_MODEL_ID_HEALTH_CLI, &mod)) { in fault_clear() 77 struct bt_mesh_health_cli *cli = mod->rt->user_data; in fault_clear() 125 if (!mod && !bt_mesh_shell_mdl_first_get(BT_MESH_MODEL_ID_HEALTH_CLI, &mod)) { in fault_test() 129 struct bt_mesh_health_cli *cli = mod->rt->user_data; in fault_test() 178 if (!mod && !bt_mesh_shell_mdl_first_get(BT_MESH_MODEL_ID_HEALTH_CLI, &mod)) { in cmd_period_get() 182 struct bt_mesh_health_cli *cli = mod->rt->user_data; in cmd_period_get() 200 if (!mod && !bt_mesh_shell_mdl_first_get(BT_MESH_MODEL_ID_HEALTH_CLI, &mod)) { in period_set() [all …]
|
/Zephyr-latest/drivers/can/ |
D | can_sja1000.c | 39 uint8_t mod; in can_sja1000_enter_reset_mode() local 41 mod = can_sja1000_read_reg(dev, CAN_SJA1000_MOD); in can_sja1000_enter_reset_mode() 43 while ((mod & CAN_SJA1000_MOD_RM) == 0) { in can_sja1000_enter_reset_mode() 48 can_sja1000_write_reg(dev, CAN_SJA1000_MOD, mod | CAN_SJA1000_MOD_RM); in can_sja1000_enter_reset_mode() 50 mod = can_sja1000_read_reg(dev, CAN_SJA1000_MOD); in can_sja1000_enter_reset_mode() 58 uint8_t mod; in can_sja1000_leave_reset_mode_nowait() local 60 mod = can_sja1000_read_reg(dev, CAN_SJA1000_MOD); in can_sja1000_leave_reset_mode_nowait() 61 can_sja1000_write_reg(dev, CAN_SJA1000_MOD, mod & ~(CAN_SJA1000_MOD_RM)); in can_sja1000_leave_reset_mode_nowait() 67 uint8_t mod; in can_sja1000_leave_reset_mode() local 69 mod = can_sja1000_read_reg(dev, CAN_SJA1000_MOD); in can_sja1000_leave_reset_mode() [all …]
|
/Zephyr-latest/scripts/west_commands/ |
D | patch.py | 265 mod = patch_info["module"] 266 mod_path = Path(args.west_workspace) / mod 267 patched_mods.add(mod) 304 for mod, mod_path in Patch.get_mod_paths(args, yml).items(): 305 if mods and mod not in mods: 350 mod = patch_info["module"] 351 mod_path = os.path.realpath(Path(args.west_workspace) / mod) 352 mod_paths[mod] = mod_path
|
/Zephyr-latest/tests/kernel/mp/src/ |
D | main.c | 40 int mod = (*(int *)arg) % 12345; in cpu_fn() local 42 zassert_true(mod == 0, "wrong arg"); in cpu_fn()
|
/Zephyr-latest/tests/kconfig/functions/ |
D | Kconfig | 54 default $(mod, 10) 58 default $(mod, 10, 3) 62 default $(mod, 10, 3, 2)
|
/Zephyr-latest/soc/intel/intel_adsp/tools/ |
D | cavstwist.sh | 107 ELF=$BLDDIR/zephyr/zephyr.elf.mod 108 BOOT=$BLDDIR/zephyr/bootloader.elf.mod
|