Home
last modified time | relevance | path

Searched refs:mod (Results 1 – 25 of 85) sorted by relevance

1234

/AliOS-Things-master/components/linkkit/include/linkkit/infra/
A Dinfra_log.h25 #define log_flow(mod, ...) argument
28 #define log_debug(mod, ...) argument
30 #define log_debug(mod, ...) argument
34 #define log_info(mod, ...) argument
36 #define log_info(mod, ...) argument
46 #define log_err(mod, ...) argument
48 #define log_err(mod, ...) argument
52 #define log_crit(mod, ...) argument
54 #define log_crit(mod, ...) argument
58 #define log_flow(mod, ...) argument
[all …]
/AliOS-Things-master/components/ulog/include/ulog/
A Dulog.h79 #define LOGF(mod, ...) argument
80 #define LOGE(mod, ...) argument
81 #define LOGW(mod, ...) argument
82 #define LOGI(mod, ...) argument
83 #define LOGD(mod, ...) argument
94 #define LOGF(mod, ...) ulog(LOG_CRIT, mod, ULOG_TAG, __VA_ARGS__) argument
104 #define LOGE(mod, ...) ulog(LOG_ERR, mod, ULOG_TAG, __VA_ARGS__) argument
114 #define LOGW(mod, ...) ulog(LOG_WARNING, mod, ULOG_TAG, __VA_ARGS__) argument
124 #define LOGI(mod, ...) ulog(LOG_INFO, mod, ULOG_TAG, __VA_ARGS__) argument
136 #define LOGD(mod, ...) ulog(LOG_DEBUG, mod, ULOG_TAG, __VA_ARGS__) argument
[all …]
/AliOS-Things-master/components/amp_adapter/include/
A Daos_system.h17 #define amp_debug(mod, fmt, ...) LOGD(mod, fmt, ##__VA_ARGS__) argument
18 #define amp_info(mod, fmt, ...) LOGI(mod, fmt, ##__VA_ARGS__) argument
19 #define amp_warn(mod, fmt, ...) LOGW(mod, fmt, ##__VA_ARGS__) argument
20 #define amp_error(mod, fmt, ...) LOGE(mod, fmt, ##__VA_ARGS__) argument
21 #define amp_fatal(mod, fmt, ...) LOGF(mod, fmt, ##__VA_ARGS__) argument
/AliOS-Things-master/components/py_engine/tests/import/
A Dimport_pkg1.py1 import pkg.mod
4 print(pkg.mod.__name__)
5 print(pkg.mod.foo())
9 print(pkg_ is not pkg.mod)
11 print(pkg_.mod is pkg.mod)
14 import pkg.mod as mm
16 print(mm is pkg.mod)
A Dimport_pkg3.py1 from pkg import mod
3 print(mod.foo())
5 import pkg.mod
7 print(mod is pkg.mod)
A Dimport_pkg2.py1 from pkg.mod import foo
8 pkg.mod
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/src/
A Daccess.c84 if (!mod->pub) { in bt_mesh_model_pub_period_get()
88 switch (mod->pub->period >> 6) { in bt_mesh_model_pub_period_get()
111 if (mod->pub->fast_period) { in bt_mesh_model_pub_period_get()
147 if (mod->pub->count) { in publish_sent()
150 delay = next_period(mod); in publish_sent()
259 if (mod == NULL || dev_comp == NULL || mod->elem_idx >= dev_comp->elem_count) { in bt_mesh_model_elem()
298 if (mod->pub) { in mod_init()
299 mod->pub->mod = mod; in mod_init()
309 mod->mod_idx = mod - elem->vnd_models; in mod_init()
311 mod->mod_idx = mod - elem->models; in mod_init()
[all …]
A Dsettings.c643 len = read_cb(cb_arg, mod->keys, sizeof(mod->keys)); in mod_set_bind()
658 (void)memset(mod->groups, 0, sizeof(mod->groups)); in mod_set_sub()
665 len = read_cb(cb_arg, mod->groups, sizeof(mod->groups)); in mod_set_sub()
680 if (!mod->pub) { in mod_set_pub()
710 mod->pub->count = 0U; in mod_set_pub()
737 if (!mod) { in mod_set()
880 if (mod->pub && mod->pub->update && mod->pub->addr != BT_MESH_ADDR_UNASSIGNED) { in commit_mod()
1433 u16_t mod_key = (((u16_t)mod->elem_idx << 8) | mod->mod_idx); in encode_mod_path()
1504 if (!mod->pub || mod->pub->addr == BT_MESH_ADDR_UNASSIGNED) { in store_pending_mod_pub()
1528 if (!mod->flags) { in store_pending_mod()
[all …]
A Dcfg_srv.c1120 if (!mod) { in mod_pub_get()
1181 if (!mod) { in mod_pub_set()
1325 if (!mod) { in mod_pub_va_set()
1384 if (!mod) { in mod_pub_va_set()
1457 if (!mod) { in mod_sub_add()
1502 if (!mod) { in mod_sub_del()
1569 if (!mod) { in mod_sub_overwrite()
1632 if (!mod) { in mod_sub_del_all()
1682 if (!mod) { in mod_sub_get()
1737 if (!mod) { in mod_sub_get_vnd()
[all …]
A Dhealth_srv.c47 struct bt_mesh_health_srv *srv = mod->user_data; in health_get_registered()
61 err = srv->cb->fault_get_reg(mod, company_id, test_id, in health_get_registered()
79 struct bt_mesh_health_srv *srv = mod->user_data; in health_get_current()
94 err = srv->cb->fault_get_cur(mod, test_id, &company_id, in health_get_current()
348 struct bt_mesh_model_pub *pub = mod->pub; in health_pub_update()
353 count = health_get_current(mod, pub->msg); in health_pub_update()
363 struct bt_mesh_model *mod; in bt_mesh_fault_update() local
370 if (!mod) { in bt_mesh_fault_update()
377 if (bt_mesh_model_pub_period_get(mod)) { in bt_mesh_fault_update()
381 health_pub_update(mod); in bt_mesh_fault_update()
[all …]
A Dmain.c244 static void model_suspend(struct bt_mesh_model *mod, struct bt_mesh_elem *elem, bool vnd, bool prim… in model_suspend() argument
246 if (mod->pub && mod->pub->update) { in model_suspend()
247 mod->pub->count = 0U; in model_suspend()
248 k_delayed_work_cancel(&mod->pub->timer); in model_suspend()
304 static void model_resume(struct bt_mesh_model *mod, struct bt_mesh_elem *elem, bool vnd, bool prima… in model_resume() argument
306 if (mod->pub && mod->pub->update) { in model_resume()
307 bt_s32_t period_ms = bt_mesh_model_pub_period_get(mod); in model_resume()
310 k_delayed_work_submit(&mod->pub->timer, period_ms); in model_resume()
/AliOS-Things-master/components/SDL2/test/
A Dcheckkeys.c60 int mod; in print_modifiers() local
63 if (!mod) { in print_modifiers()
71 if (mod & KMOD_LCTRL) in print_modifiers()
73 if (mod & KMOD_RCTRL) in print_modifiers()
75 if (mod & KMOD_LALT) in print_modifiers()
77 if (mod & KMOD_RALT) in print_modifiers()
79 if (mod & KMOD_LGUI) in print_modifiers()
81 if (mod & KMOD_RGUI) in print_modifiers()
83 if (mod & KMOD_NUM) in print_modifiers()
85 if (mod & KMOD_CAPS) in print_modifiers()
[all …]
/AliOS-Things-master/components/uagent/src/
A Duagent_core.c17 ua_mod_t mod; member
24 ua_mod_t mod; member
181 mod_func[i]->mod_info.mod = mod; in uagent_register()
196 if (mod_func[i]->mod_info.mod == mod) { /* already exist */ in uagent_register()
230 p->mod = target; in uagent_request_service()
269 if (uagent_service_tb[i]->mod == mod && uagent_service_tb[i]->func == func) { in update_create_uagent_service_node()
290 uagent_service_tb[i]->mod = mod; in update_create_uagent_service_node()
320 if (mod_func[i]->mod_info.mod == mod) { in update_func_list()
344 p->mod = target; in ext_request_service()
371 if (UAGENT_MOD_UAGENT == p->mod) { in uagent_routine()
[all …]
A Duagent_send.c27 static int delay_send(const ua_mod_t mod, const ua_func_t func, in delay_send() argument
88 …out_msg_index++, uagent_service_attr.dn, uagent_service_attr.to_console, mod, func, msg_pub_base64… in delay_send()
91 … out_msg_index++, uagent_service_attr.dn, uagent_service_attr.to_console, mod, func, out); in delay_send()
95 … out_msg_index++, uagent_service_attr.dn, uagent_service_attr.to_console, mod, func, out); in delay_send()
123 int uagent_send(const ua_mod_t mod, const ua_func_t func, in uagent_send() argument
140 rc = delay_send(mod, func, len, data, policy); in uagent_send()
195 UAGENT_ERR("[uA]uagent send may fail from 0x%x 0x%x as not inited", mod, func); in uagent_send()
202 const ua_mod_t mod, const ua_func_t func, const void *data) in uagent_ack() argument
210 uganet_send_id++, uagent_service_attr.dn, uagent_service_attr.to_console, mod, func, in uagent_ack()
214 uagent_service_attr.dn, uagent_service_attr.to_console, mod, func, in uagent_ack()
[all …]
/AliOS-Things-master/components/amp/main/
A Damp_defines.h76 #define amp_debug(mod, fmt, ...) LOGD(mod, fmt, ##__VA_ARGS__) argument
77 #define amp_info(mod, fmt, ...) LOGI(mod, fmt, ##__VA_ARGS__) argument
78 #define amp_warn(mod, fmt, ...) LOGW(mod, fmt, ##__VA_ARGS__) argument
79 #define amp_error(mod, fmt, ...) LOGE(mod, fmt, ##__VA_ARGS__) argument
80 #define amp_fatal(mod, fmt, ...) LOGF(mod, fmt, ##__VA_ARGS__) argument
/AliOS-Things-master/components/py_engine/external/common/
A Dpy_defines.h80 #define amp_debug(mod, fmt, ...) LOGD(mod, fmt, ##__VA_ARGS__) argument
81 #define amp_info(mod, fmt, ...) LOGI(mod, fmt, ##__VA_ARGS__) argument
82 #define amp_warn(mod, fmt, ...) LOGW(mod, fmt, ##__VA_ARGS__) argument
83 #define amp_error(mod, fmt, ...) LOGE(mod, fmt, ##__VA_ARGS__) argument
84 #define amp_fatal(mod, fmt, ...) LOGF(mod, fmt, ##__VA_ARGS__) argument
/AliOS-Things-master/components/py_engine/tests/float/
A Dfloat_divmod.py6 div, mod = divmod(x, y)
7 print("%.8f %.8f %.8f %.8f" % (x // y, x % y, div, mod))
8 print(div == x // y, mod == x % y, abs(div * y + mod - x) < 1e-15)
A Dfloat_divmod_relaxed.py9 div, mod = divmod(x, y)
10 print(div == x // y, mod == x % y, abs(div * y + mod - x) < 1e-6)
/AliOS-Things-master/components/py_engine/engine/extmod/uasyncio/
A D__init__.py25 mod = _attrs.get(attr, None)
26 if mod is None:
28 value = getattr(__import__(mod, None, None, True, 1), attr)
/AliOS-Things-master/components/uagent/include/
A Duagent.h29 int uagent_register(const ua_mod_t mod, const char *mod_name, char *version,
41 int uagent_unregister(const ua_mod_t mod, const ua_func_t func);
77 int uagent_send(const ua_mod_t mod, const ua_func_t type,
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/inc/
A Dsettings.h20 void bt_mesh_store_mod_bind(struct bt_mesh_model *mod);
21 void bt_mesh_store_mod_sub(struct bt_mesh_model *mod);
22 void bt_mesh_store_mod_pub(struct bt_mesh_model *mod);
A Daccess.h28 u16_t *bt_mesh_model_find_group(struct bt_mesh_model *mod, u16_t addr);
32 void bt_mesh_model_foreach(void (*func)(struct bt_mesh_model *mod, struct bt_mesh_elem *elem, bool …
36 bt_s32_t bt_mesh_model_pub_period_get(struct bt_mesh_model *mod);
/AliOS-Things-master/components/py_engine/tests/micropython/
A Dimport_mpy_native_x64.py108 mod = "mod%u" % i variable
110 __import__(mod)
111 print(mod, "OK")
113 print(mod, "ValueError", er)
A Dimport_mpy_invalid.py61 mod = "mod%u" % i variable
63 __import__(mod)
65 print(mod, "ValueError", er)
/AliOS-Things-master/components/py_engine/engine/py/
A Dobjfloat.c209 mp_float_t mod = MICROPY_FLOAT_C_FUN(fmod)(*x, *y); in mp_obj_float_divmod() local
210 mp_float_t div = (*x - mod) / *y; in mp_obj_float_divmod()
213 if (mod == MICROPY_FLOAT_ZERO) { in mp_obj_float_divmod()
214 mod = MICROPY_FLOAT_C_FUN(copysign)(MICROPY_FLOAT_ZERO, *y); in mp_obj_float_divmod()
216 if ((mod < MICROPY_FLOAT_ZERO) != (*y < MICROPY_FLOAT_ZERO)) { in mp_obj_float_divmod()
217 mod += *y; in mp_obj_float_divmod()
236 *y = mod; in mp_obj_float_divmod()

Completed in 46 milliseconds

1234