| /components/net/lwip/lwip-2.0.3/src/include/lwip/ |
| A D | memp.h | 48 #define LWIP_MEMPOOL(name,num,size,desc) argument 53 #define LWIP_MEMPOOL(name,num,size,desc) MEMP_##name, argument 67 #define LWIP_MEMPOOL_PROTOTYPE(name) extern const struct memp_desc memp_ ## name argument 73 const struct memp_desc memp_ ## name = { \ 100 static struct memp *memp_tab_ ## name; \ 102 const struct memp_desc memp_ ## name = { \ 107 memp_memory_ ## name ## _base, \ 108 &memp_tab_ ## name \ 117 #define LWIP_MEMPOOL_INIT(name) memp_init_pool(&memp_ ## name) argument 122 #define LWIP_MEMPOOL_ALLOC(name) memp_malloc_pool(&memp_ ## name) argument [all …]
|
| /components/net/lwip/lwip-2.1.2/src/include/lwip/ |
| A D | memp.h | 48 #define LWIP_MEMPOOL(name,num,size,desc) argument 53 #define LWIP_MEMPOOL(name,num,size,desc) MEMP_##name, argument 67 #define LWIP_MEMPOOL_PROTOTYPE(name) extern const struct memp_desc memp_ ## name argument 73 const struct memp_desc memp_ ## name = { \ 100 static struct memp *memp_tab_ ## name; \ 102 const struct memp_desc memp_ ## name = { \ 107 memp_memory_ ## name ## _base, \ 108 &memp_tab_ ## name \ 117 #define LWIP_MEMPOOL_INIT(name) memp_init_pool(&memp_ ## name) argument 122 #define LWIP_MEMPOOL_ALLOC(name) memp_malloc_pool(&memp_ ## name) argument [all …]
|
| /components/net/lwip/lwip-2.1.2/src/include/lwip/priv/ |
| A D | tcpip_priv.h | 56 #define API_VAR_REF(name) (*(name)) argument 57 #define API_VAR_DECLARE(type, name) type * name argument 64 #define API_VAR_ALLOC(type, pool, name, errorval) API_VAR_ALLOC_EXT(type, pool, name, return errorv… argument 71 #define API_VAR_FREE(pool, name) memp_free(pool, name) argument 72 #define API_VAR_FREE_POOL(pool, name) LWIP_MEMPOOL_FREE(pool, name) argument 83 #define API_VAR_REF(name) name argument 84 #define API_VAR_DECLARE(type, name) type name argument 86 #define API_VAR_ALLOC(type, pool, name, errorval) argument 87 #define API_VAR_ALLOC_POOL(type, pool, name, errorval) argument 88 #define API_VAR_FREE(pool, name) argument [all …]
|
| A D | memp_priv.h | 84 #define LWIP_MEMPOOL(name,num,size,desc) argument 93 #define LWIP_MEMPOOL(name,num,size,desc) argument 140 #define LWIP_MEMPOOL_DECLARE_STATS_INSTANCE(name) static struct stats_mem name; argument 141 #define LWIP_MEMPOOL_DECLARE_STATS_REFERENCE(name) &name, argument 143 #define LWIP_MEMPOOL_DECLARE_STATS_INSTANCE(name) argument 144 #define LWIP_MEMPOOL_DECLARE_STATS_REFERENCE(name) argument
|
| /components/legacy/fdt/libfdt/ |
| A D | libfdt.h | 259 #define __fdt_set_hdr(name) \ argument 263 fdth->name = cpu_to_fdt32(val); \ 592 const char *name, 627 const char *name, in fdt_get_property_w() argument 722 const char *name, int *lenp); 724 const char *name, int *lenp) in fdt_getprop_w() argument 1332 int fdt_begin_node(void *fdt, const char *name); 1346 return fdt_property_u32(fdt, name, val); in fdt_property_cell() 1348 #define fdt_property_string(fdt, name, str) \ argument 1349 fdt_property(fdt, name, str, strlen(str)+1) [all …]
|
| A D | fdt_wip.c | 57 const char *name, int namelen, in fdt_setprop_inplace_namelen_partial() argument 64 propval = fdt_getprop_namelen_w(fdt, nodeoffset, name, namelen, in fdt_setprop_inplace_namelen_partial() 76 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name, in fdt_setprop_inplace() argument 82 propval = fdt_getprop(fdt, nodeoffset, name, &proplen); in fdt_setprop_inplace() 89 return fdt_setprop_inplace_namelen_partial(fdt, nodeoffset, name, in fdt_setprop_inplace() 90 strlen(name), 0, in fdt_setprop_inplace() 102 int fdt_nop_property(void *fdt, int nodeoffset, const char *name) in fdt_nop_property() argument 107 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); in fdt_nop_property()
|
| /components/drivers/ofw/libfdt/ |
| A D | libfdt.h | 260 #define fdt_set_hdr_(name) \ argument 264 fdth->name = cpu_to_fdt32(val); \ 688 const char *name, 723 const char *name, in fdt_get_property_w() argument 820 const char *name, int *lenp); 822 const char *name, int *lenp) in fdt_getprop_w() argument 1478 int fdt_begin_node(void *fdt, const char *name); 1494 return fdt_property_u32(fdt, name, val); in fdt_property_cell() 1513 #define fdt_property_string(fdt, name, str) \ argument 1514 fdt_property(fdt, name, str, strlen(str)+1) [all …]
|
| A D | fdt_wip.c | 14 const char *name, int namelen, in fdt_setprop_inplace_namelen_partial() argument 21 propval = fdt_getprop_namelen_w(fdt, nodeoffset, name, namelen, in fdt_setprop_inplace_namelen_partial() 33 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name, in fdt_setprop_inplace() argument 39 propval = fdt_getprop(fdt, nodeoffset, name, &proplen); in fdt_setprop_inplace() 46 return fdt_setprop_inplace_namelen_partial(fdt, nodeoffset, name, in fdt_setprop_inplace() 47 strlen(name), 0, in fdt_setprop_inplace() 59 int fdt_nop_property(void *fdt, int nodeoffset, const char *name) in fdt_nop_property() argument 64 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); in fdt_nop_property()
|
| A D | fdt_overlay.c | 108 val = fdt_getprop(fdt, node, name, &len); in overlay_phandle_add_offset() 217 const char *name; in overlay_update_local_node_references() local 223 &name, &fixup_len); in overlay_update_local_node_references() 257 name, in overlay_update_local_node_references() 455 name = sep + 1; in overlay_fixup_phandle() 456 sep = memchr(name, ':', fixup_len); in overlay_fixup_phandle() 460 name_len = sep - name; in overlay_fixup_phandle() 549 const char *name; in overlay_apply_node() local 639 const char *name; in get_path_len() local 645 if (!name) in get_path_len() [all …]
|
| A D | fdt_rw.c | 214 namestroff = fdt_find_add_string_(fdt, name, &allocated); in fdt_add_property_() 225 fdt_del_last_string_(fdt, name); in fdt_add_property_() 247 newlen = strlen(name); in fdt_set_name() 254 memcpy(namep, name, newlen+1); in fdt_set_name() 276 int fdt_setprop(void *fdt, int nodeoffset, const char *name, in fdt_setprop() argument 318 int fdt_delprop(void *fdt, int nodeoffset, const char *name) in fdt_delprop() argument 325 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); in fdt_delprop() 334 const char *name, int namelen) in fdt_add_subnode_namelen() argument 369 memset(nh->name, 0, FDT_TAGALIGN(namelen+1)); in fdt_add_subnode_namelen() 370 memcpy(nh->name, name, namelen); in fdt_add_subnode_namelen() [all …]
|
| /components/net/lwip/lwip-2.0.3/src/include/lwip/priv/ |
| A D | tcpip_priv.h | 56 #define API_VAR_REF(name) (*(name)) argument 57 #define API_VAR_DECLARE(type, name) type * name argument 58 #define API_VAR_ALLOC(type, pool, name, errorval) do { \ argument 70 #define API_VAR_FREE(pool, name) memp_free(pool, name) argument 71 #define API_VAR_FREE_POOL(pool, name) LWIP_MEMPOOL_FREE(pool, name) argument 82 #define API_VAR_REF(name) name argument 83 #define API_VAR_DECLARE(type, name) type name argument 84 #define API_VAR_ALLOC(type, pool, name, errorval) argument 85 #define API_VAR_ALLOC_POOL(type, pool, name, errorval) argument 86 #define API_VAR_FREE(pool, name) argument [all …]
|
| A D | memp_priv.h | 106 #define LWIP_MEMPOOL(name,num,size,desc) argument 115 #define LWIP_MEMPOOL(name,num,size,desc) argument 162 #define LWIP_MEMPOOL_DECLARE_STATS_INSTANCE(name) static struct stats_mem name; argument 163 #define LWIP_MEMPOOL_DECLARE_STATS_REFERENCE(name) &name, argument 165 #define LWIP_MEMPOOL_DECLARE_STATS_INSTANCE(name) argument 166 #define LWIP_MEMPOOL_DECLARE_STATS_REFERENCE(name) argument
|
| /components/drivers/core/ |
| A D | platform.c | 32 struct rt_platform_device *rt_platform_device_alloc(const char *name) in rt_platform_device_alloc() argument 42 pdev->name = name; in rt_platform_device_alloc() 58 rt_strcpy(pdrv->parent.parent.name, pdrv->name); in rt_platform_driver_register() 60 pdrv->parent.parent.name = pdrv->name; in rt_platform_driver_register() 98 if (pdev->name && pdrv->name) in platform_match() 100 if (pdev->name == pdrv->name) in platform_match() 106 return !rt_strcmp(pdrv->name, pdev->name); in platform_match() 128 (pdev->name && pdev->name[0]) ? pdev->name : rt_ofw_node_full_name(np) in platform_probe() 130 pdev->name in platform_probe() 152 LOG_W("System not memory in driver %s", pdrv->name); in platform_probe() [all …]
|
| A D | dm.c | 248 const char *name; in rt_dm_dev_get_name_id() local 252 name = rt_dm_dev_get_name(dev); in rt_dm_dev_get_name_id() 253 len = rt_strlen(name) - 1; in rt_dm_dev_get_name_id() 254 name += len; in rt_dm_dev_get_name_id() 258 if (*name < '0' || *name > '9') in rt_dm_dev_get_name_id() 260 while (*(++name)) in rt_dm_dev_get_name_id() 263 id += *name - '0'; in rt_dm_dev_get_name_id() 269 --name; in rt_dm_dev_get_name_id() 294 return dev->parent.name; in rt_dm_dev_get_name() 298 #define ofw_api_call(name, ...) rt_ofw_##name(__VA_ARGS__) argument [all …]
|
| /components/dfs/dfs_v2/filesystems/procfs/ |
| A D | proc.c | 32 .name = "/", 47 if (rt_strcmp(dentry->name, name) == 0) in _proc_find() 67 tmp = rt_strdup(*name); in proc_find() 128 *name = *name + (begin - tmp); in proc_find() 205 ret = proc_find(parent, &name, 0); in proc_create() 209 ret = proc_find(&dentry, &name, 1); in proc_create() 217 dentry->name = rt_strdup(name); in proc_create() 261 if (dentry->name) in proc_release() 263 rt_free(dentry->name); in proc_release() 523 proc_find(&dentry, &name, 1); in dfs_proc_find() [all …]
|
| A D | proc.h | 26 struct proc_dentry *(*lookup)(struct proc_dentry *parent, const char *name); 45 char *name; member 49 struct proc_dentry *dfs_proc_find(const char *name); 51 struct proc_dentry *proc_mkdir_data(const char *name, mode_t mode, struct proc_dentry *parent, 53 struct proc_dentry *proc_mkdir_mode(const char *name, mode_t mode, struct proc_dentry *parent); 54 struct proc_dentry *proc_mkdir(const char *name, struct proc_dentry *parent); 56 struct proc_dentry *proc_create_data(const char *name, mode_t mode, struct proc_dentry *parent, 58 struct proc_dentry *proc_create_single_data(const char *name, mode_t mode, struct proc_dentry *pare… 61 struct proc_dentry *proc_symlink(const char *name, struct proc_dentry *parent, const char *dest); 67 void proc_remove_dentry(const char *name, struct proc_dentry *parent);
|
| /components/libc/posix/io/stdio/ |
| A D | stdio.c | 56 char name[STDIO_DEVICE_NAME_MAX]; in rt_posix_stdio_set_console() local 59 rt_snprintf(name, sizeof(name) - 1, "/dev/%s", device_name); in rt_posix_stdio_set_console() 60 name[STDIO_DEVICE_NAME_MAX - 1] = '\0'; in rt_posix_stdio_set_console() 75 fp = fopen(name, file_mode); in rt_posix_stdio_set_console() 133 char name[STDIO_DEVICE_NAME_MAX]; in rt_posix_stdio_set_console() local 136 rt_snprintf(name, sizeof(name) - 1, "/dev/%s", device_name); in rt_posix_stdio_set_console() 137 name[STDIO_DEVICE_NAME_MAX - 1] = '\0'; in rt_posix_stdio_set_console() 143 fp = fopen(name, file_mode); in rt_posix_stdio_set_console() 183 char name[STDIO_DEVICE_NAME_MAX]; in rt_posix_stdio_set_console() local 185 rt_snprintf(name, sizeof(name) - 1, "/dev/%s", device_name); in rt_posix_stdio_set_console() [all …]
|
| /components/drivers/pinctrl/ |
| A D | pinctrl.c | 135 static int ofw_pin_ctrl_confs_lookup(struct rt_ofw_node *np, const char *name) in ofw_pin_ctrl_confs_lookup() argument 137 return rt_ofw_prop_index_of_string(np, "pinctrl-names", name); in ofw_pin_ctrl_confs_lookup() 145 index = ofw_pin_ctrl_confs_lookup(np, name); in ofw_pin_ctrl_confs_apply_by_name() 160 rt_ssize_t rt_pin_ctrl_confs_lookup(struct rt_device *device, const char *name) in rt_pin_ctrl_confs_lookup() argument 164 if (device && name) in rt_pin_ctrl_confs_lookup() 171 res = ofw_pin_ctrl_confs_lookup(device->ofw_node, name); in rt_pin_ctrl_confs_lookup() 206 rt_err_t rt_pin_ctrl_confs_apply_by_name(struct rt_device *device, const char *name) in rt_pin_ctrl_confs_apply_by_name() argument 212 if (!name) in rt_pin_ctrl_confs_apply_by_name() 214 name = "default"; in rt_pin_ctrl_confs_apply_by_name() 222 err = ofw_pin_ctrl_confs_apply_by_name(device->ofw_node, name); in rt_pin_ctrl_confs_apply_by_name() [all …]
|
| /components/net/lwip/lwip-2.1.2/src/api/ |
| A D | netifapi.c | 52 #define NETIFAPI_VAR_REF(name) API_VAR_REF(name) argument 53 #define NETIFAPI_VAR_DECLARE(name) API_VAR_DECLARE(struct netifapi_msg, name) argument 54 #define NETIFAPI_VAR_ALLOC(name) API_VAR_ALLOC(struct netifapi_msg, MEMP_NETIFAPI_MSG, name, ERR… argument 55 #define NETIFAPI_VAR_FREE(name) API_VAR_FREE(MEMP_NETIFAPI_MSG, name) argument 127 msg->msg.ifs.name[0] = '\0'; in netifapi_do_index_to_name() 336 strncpy(NETIFAPI_VAR_REF(msg).msg.ifs.name, name, NETIF_NAMESIZE - 1); in netifapi_netif_name_to_index() 339 NETIFAPI_VAR_REF(msg).msg.ifs.name = LWIP_CONST_CAST(char *, name); in netifapi_netif_name_to_index() 359 netifapi_netif_index_to_name(u8_t idx, char *name) in netifapi_netif_index_to_name() argument 367 NETIFAPI_VAR_REF(msg).msg.ifs.name = name; in netifapi_netif_index_to_name() 372 strncpy(name, NETIFAPI_VAR_REF(msg).msg.ifs.name, NETIF_NAMESIZE - 1); in netifapi_netif_index_to_name() [all …]
|
| /components/net/lwip/lwip-1.4.1/src/core/ |
| A D | dns.c | 178 char name[DNS_MAX_NAME_LENGTH]; member 338 namelen = strlen(init_entry->name); in dns_init_local() 344 MEMCPY((char*)entry->name, init_entry->name, namelen); in dns_init_local() 345 ((char*)entry->name)[namelen] = 0; in dns_init_local() 441 ((char*)entry->name)[namelen] = 0; in dns_local_addhost() 464 dns_lookup(const char *name) in dns_lookup() argument 484 (strcmp(name, dns_table[i].name) == 0)) { in dns_lookup() 585 (u16_t)(numdns), name)); in dns_send() 601 pHostname = name; in dns_send() 920 MEMCPY(pEntry->name, name, namelen); in dns_enqueue() [all …]
|
| A D | netif.c | 105 netif->name[0] = 'l'; in netif_loopif_init() 106 netif->name[1] = 'o'; in netif_loopif_init() 208 netif->name[0], netif->name[1])); in netif_add() 297 netif_find(char *name) in netif_find() argument 302 if (name == NULL) { in netif_find() 306 num = name[2] - '0'; in netif_find() 310 name[0] == netif->name[0] && in netif_find() 311 name[1] == netif->name[1]) { in netif_find() 379 netif->name[0], netif->name[1], in netif_set_ipaddr() 404 netif->name[0], netif->name[1], in netif_set_gw() [all …]
|
| /components/drivers/include/drivers/ |
| A D | ofw_raw.h | 29 int fdt_add_subnode_possible(void *fdt, int parentoffset, const char *name); 32 #define fdt_setprop_cstring(fdt, nodeoffset, name, str) \ argument 33 fdt_setprop((fdt), (nodeoffset), (name), (str), sizeof(str)) 53 int fdt_setprop_uxx(void *fdt, int nodeoffset, const char *name, uint64_t val, bool is_u64); 54 int fdt_getprop_u8(void *fdt, int nodeoffset, const char *name, uint8_t *out_value, int *lenp); 55 int fdt_getprop_s8(void *fdt, int nodeoffset, const char *name, int8_t *out_value, int *lenp); 56 int fdt_getprop_u16(void *fdt, int nodeoffset, const char *name, uint16_t *out_value, int *lenp); 57 int fdt_getprop_s16(void *fdt, int nodeoffset, const char *name, int16_t *out_value, int *lenp); 58 int fdt_getprop_u32(void *fdt, int nodeoffset, const char *name, uint32_t *out_value, int *lenp); 59 int fdt_getprop_s32(void *fdt, int nodeoffset, const char *name, int32_t *out_value, int *lenp);
|
| /components/drivers/spi/ |
| A D | dev_spi.c | 84 return rt_device_register(device, name, RT_DEVICE_FLAG_RDWR); in rt_spi_bus_device_init() 191 { .name = "dh2228fv" }, 192 { .name = "ltc2488" }, 193 { .name = "sx1301" }, 194 { .name = "bk4" }, 195 { .name = "dhcom-board" }, 196 { .name = "m53cpld" }, 197 { .name = "spi-petra" }, 198 { .name = "spi-authenta" }, 199 { .name = "em3581" }, [all …]
|
| /components/lwp/ |
| A D | lwp_internal.h | 180 #define LWP_DEF_RETURN_CODE(name) rt_err_t name;RT_UNUSED(name) argument 181 #define LWP_RETURN(name) return name argument 185 #define LWP_DEF_RETURN_CODE(name) rt_err_t name = _LWP_UNINITIALIZED_RC argument 186 #define LWP_RETURN(name) {RT_ASSERT(name != _LWP_UNINITIALIZED_RC);return name;} argument
|
| /components/net/sal/include/socket/sys_socket/sys/ |
| A D | socket.h | 27 int bind(int s, const struct sockaddr *name, socklen_t namelen); 29 int getpeername(int s, struct sockaddr *name, socklen_t *namelen); 30 int getsockname(int s, struct sockaddr *name, socklen_t *namelen); 33 int connect(int s, const struct sockaddr *name, socklen_t namelen); 49 #define bind(s, name, namelen) sal_bind(s, name, namelen) 51 #define getpeername(s, name, namelen) sal_getpeername(s, name, namelen) 52 #define getsockname(s, name, namelen) sal_getsockname(s, name, namelen) 55 #define connect(s, name, namelen) sal_connect(s, name, namelen)
|