/device/soc/rockchip/common/sdk_linux/scripts/dtc/ |
D | checks.c | 31 typedef void (*check_fn)(struct check *c, struct dt_info *dti, struct node *node); 61 …check_msg(struct check *c, struct dt_info *dti, struct node *node, struct property *prop, const ch… in check_msg() argument 74 } else if (node && node->srcpos) { in check_msg() 75 pos = node->srcpos; in check_msg() 90 if (node) { in check_msg() 92 xasprintf_append(&str, "%s:%s: ", node->fullpath, prop->name); in check_msg() 94 xasprintf_append(&str, "%s: ", node->fullpath); in check_msg() 105 pos = node->srcpos; in check_msg() 118 #define FAIL(c, dti, node, ...) … argument 122 …check_msg((c), dti, node, NULL, __VA_ARGS__); … [all …]
|
/device/soc/esp/esp32/components/bt/common/osi/ |
D | list.c | 61 for (const list_node_t *node = list_begin(list); node != list_end(list); node = list_next(node)) { in list_contains() local 62 if (list_node(node) == data) { in list_contains() 75 for (list_node_t *node = list_begin(list); node != list_end(list); node = list_next(node)) { in list_get_node() local 76 if (list_node(node) == data) { in list_get_node() 77 p_node_ret = node; in list_get_node() 117 list_node_t *node = (list_node_t *)osi_calloc(sizeof(list_node_t)); in list_insert_after() local 118 if (!node) { in list_insert_after() 122 node->next = prev_node->next; in list_insert_after() 123 node->data = data; in list_insert_after() 124 prev_node->next = node; in list_insert_after() [all …]
|
D | config.c | 140 …for (const list_node_t *node = list_begin(config->sections); node != list_end(config->sections); n… in config_has_key_in_section() local 141 const section_t *section = (const section_t *)list_node(node); in config_has_key_in_section() 143 …for (const list_node_t *node = list_begin(section->entries); node != list_end(section->entries); n… in config_has_key_in_section() local 144 entry_t *entry = list_node(node); in config_has_key_in_section() 239 …for (const list_node_t *node = list_begin(sec->entries); node != list_end(sec->entries); node = li… in config_set_string() local 240 entry_t *entry = list_node(node); in config_set_string() 298 const config_section_node_t *config_section_next(const config_section_node_t *node) in config_section_next() argument 300 assert(node != NULL); in config_section_next() 301 return (const config_section_node_t *)list_next((const list_node_t *)node); in config_section_next() 304 const char *config_section_name(const config_section_node_t *node) in config_section_name() argument [all …]
|
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/common/codec_mm/configs/ |
D | configs.c | 32 struct mconfig_node *node) in configs_inc_node_ref() argument 34 return atomic_inc_return(&node->ref_cnt); in configs_inc_node_ref() 38 struct mconfig_node *node) in configs_dec_node_ref() argument 40 return atomic_dec_return(&node->ref_cnt); in configs_dec_node_ref() 43 static int configs_put_node(struct mconfig_node *node, in configs_put_node() argument 48 if (!node) in configs_put_node() 50 configs_dec_node_ref(node); in configs_put_node() 51 pnode = node->parent_node; in configs_put_node() 225 int configs_init_new_node(struct mconfig_node *node, in configs_init_new_node() argument 228 node->configs = NULL; in configs_init_new_node() [all …]
|
D | configs_module.c | 47 struct mconfig_node node; member 254 struct mediaconfig_node *node; member 271 struct mediaconfig_node *node = &mediaconfig_nodes[iminor(inode)]; in configs_open() local 274 if (atomic_read(&node->opened_cnt) > MAX_OPENED_CNT) { in configs_open() 285 priv->node = node; in configs_open() 286 atomic_inc(&node->opened_cnt); in configs_open() 287 configs_inc_node_ref(&node->node); in configs_open() 294 struct mediaconfig_node *node = priv->node; in configs_read() local 301 ret = configs_list_nodes(&node->node, buf, count, in configs_read() 311 struct mediaconfig_node *node = priv->node; in configs_close() local [all …]
|
/device/soc/amlogic/a311d/soc/amlogic/media/common/codec_mm/configs/ |
D | configs.c | 31 int configs_inc_node_ref(struct mconfig_node *node) in configs_inc_node_ref() argument 33 return atomic_inc_return(&node->ref_cnt); in configs_inc_node_ref() 36 int configs_dec_node_ref(struct mconfig_node *node) in configs_dec_node_ref() argument 38 return atomic_dec_return(&node->ref_cnt); in configs_dec_node_ref() 41 static int configs_put_node(struct mconfig_node *node, int del_parent_ref, struct mconfig_node *roo… in configs_put_node() argument 45 if (!node) { in configs_put_node() 48 configs_dec_node_ref(node); in configs_put_node() 49 pnode = node->parent_node; in configs_put_node() 225 int configs_init_new_node(struct mconfig_node *node, const char *name, int rw_flags) in configs_init_new_node() argument 227 node->configs = NULL; in configs_init_new_node() [all …]
|
D | configs_module.c | 47 struct mconfig_node node; member 235 struct mediaconfig_node *node; member 252 struct mediaconfig_node *node = &mediaconfig_nodes[iminor(inode)]; in configs_open() local 255 if (atomic_read(&node->opened_cnt) > MAX_OPENED_CNT) { in configs_open() 267 priv->node = node; in configs_open() 268 atomic_inc(&node->opened_cnt); in configs_open() 269 configs_inc_node_ref(&node->node); in configs_open() 275 struct mediaconfig_node *node = priv->node; in configs_read() local 284 ret = configs_list_nodes(&node->node, buf, count, LIST_MODE_NODE_CMDVAL_ALL); in configs_read() 294 struct mediaconfig_node *node = priv->node; in configs_close() local [all …]
|
/device/soc/winnermicro/wm800/board/src/bt/blehost/nimble/host/mesh/include/mesh/ |
D | slist.h | 244 static inline sys_snode_t *sys_slist_peek_next_no_check(sys_snode_t *node) in sys_slist_peek_next_no_check() argument 246 return node->next; in sys_slist_peek_next_no_check() 256 static inline sys_snode_t *sys_slist_peek_next(sys_snode_t *node) in sys_slist_peek_next() argument 258 return node ? sys_slist_peek_next_no_check(node) : NULL; in sys_slist_peek_next() 270 sys_snode_t *node) in sys_slist_prepend() argument 272 node->next = list->head; in sys_slist_prepend() 273 list->head = node; in sys_slist_prepend() 289 sys_snode_t *node) in sys_slist_append() argument 291 node->next = NULL; in sys_slist_append() 294 list->tail = node; in sys_slist_append() [all …]
|
/device/soc/winnermicro/wm800/board/src/bt/blehost/nimble/host/mesh/src/ |
D | nodes.c | 50 struct bt_mesh_node *node = &bt_mesh.nodes[i]; in addr_is_free() local 52 if (node->net_idx == BT_MESH_KEY_UNUSED) { in addr_is_free() 56 other_start = node->addr; in addr_is_free() 57 other_end = other_start + node->num_elem - 1; in addr_is_free() 107 struct bt_mesh_node *node = &bt_mesh.nodes[i]; in bt_mesh_node_find() local 109 if (addr >= node->addr && in bt_mesh_node_find() 110 addr <= node->addr + node->num_elem - 1) { in bt_mesh_node_find() 111 return node; in bt_mesh_node_find() 134 struct bt_mesh_node *node = &bt_mesh.nodes[i]; in bt_mesh_node_alloc() local 136 if (node->addr == BT_MESH_ADDR_UNASSIGNED) { in bt_mesh_node_alloc() [all …]
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/linux/ |
D | mali_memory_virtual.c | 32 …nline void _mali_vma_offset_add_rb(struct mali_allocation_manager *mgr, struct mali_vma_node *node) in _mali_vma_offset_add_rb() argument 42 if (node->vm_node.start < iter_node->vm_node.start) { in _mali_vma_offset_add_rb() 44 } else if (node->vm_node.start > iter_node->vm_node.start) { in _mali_vma_offset_add_rb() 51 rb_link_node(&node->vm_rb, parent, iter); in _mali_vma_offset_add_rb() 52 rb_insert_color(&node->vm_rb, &mgr->allocation_mgr_rb); in _mali_vma_offset_add_rb() 58 int mali_vma_offset_add(struct mali_allocation_manager *mgr, struct mali_vma_node *node) in mali_vma_offset_add() argument 63 if (node->vm_node.allocated) { in mali_vma_offset_add() 67 _mali_vma_offset_add_rb(mgr, node); in mali_vma_offset_add() 69 node->vm_node.allocated = 1; in mali_vma_offset_add() 79 void mali_vma_offset_remove(struct mali_allocation_manager *mgr, struct mali_vma_node *node) in mali_vma_offset_remove() argument [all …]
|
D | mali_memory.c | 436 void _mali_page_node_ref(struct mali_page_node *node) in _mali_page_node_ref() argument 438 if (node->type == MALI_PAGE_NODE_OS) { in _mali_page_node_ref() 440 get_page(node->page); in _mali_page_node_ref() 441 } else if (node->type == MALI_PAGE_NODE_BLOCK) { in _mali_page_node_ref() 442 mali_mem_block_add_ref(node); in _mali_page_node_ref() 443 } else if (node->type == MALI_PAGE_NODE_SWAP) { in _mali_page_node_ref() 444 atomic_inc(&node->swap_it->ref_count); in _mali_page_node_ref() 450 void _mali_page_node_unref(struct mali_page_node *node) in _mali_page_node_unref() argument 452 if (node->type == MALI_PAGE_NODE_OS) { in _mali_page_node_unref() 454 put_page(node->page); in _mali_page_node_unref() [all …]
|
D | mali_memory_block_alloc.c | 30 u32 mali_mem_block_get_ref_count(mali_page_node *node) in mali_mem_block_get_ref_count() argument 32 MALI_DEBUG_ASSERT(node->type == MALI_PAGE_NODE_BLOCK); in mali_mem_block_get_ref_count() 33 return (node->blk_it->phy_addr & MALI_BLOCK_REF_MASK); in mali_mem_block_get_ref_count() 40 u32 mali_mem_block_add_ref(mali_page_node *node) in mali_mem_block_add_ref() argument 42 MALI_DEBUG_ASSERT(node->type == MALI_PAGE_NODE_BLOCK); in mali_mem_block_add_ref() 43 MALI_DEBUG_ASSERT(mali_mem_block_get_ref_count(node) < MALI_BLOCK_MAX_REF_COUNT); in mali_mem_block_add_ref() 44 return (node->blk_it->phy_addr++ & MALI_BLOCK_REF_MASK); in mali_mem_block_add_ref() 50 u32 mali_mem_block_dec_ref(mali_page_node *node) in mali_mem_block_dec_ref() argument 52 MALI_DEBUG_ASSERT(node->type == MALI_PAGE_NODE_BLOCK); in mali_mem_block_dec_ref() 53 MALI_DEBUG_ASSERT(mali_mem_block_get_ref_count(node) > 0); in mali_mem_block_dec_ref() [all …]
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/linux/ |
D | mali_memory_virtual.c | 32 struct mali_vma_node *node) in _mali_vma_offset_add_rb() argument 42 if (node->vm_node.start < iter_node->vm_node.start) in _mali_vma_offset_add_rb() 44 else if (node->vm_node.start > iter_node->vm_node.start) in _mali_vma_offset_add_rb() 50 rb_link_node(&node->vm_rb, parent, iter); in _mali_vma_offset_add_rb() 51 rb_insert_color(&node->vm_rb, &mgr->allocation_mgr_rb); in _mali_vma_offset_add_rb() 58 struct mali_vma_node *node) in mali_vma_offset_add() argument 63 if (node->vm_node.allocated) { in mali_vma_offset_add() 67 _mali_vma_offset_add_rb(mgr, node); in mali_vma_offset_add() 69 node->vm_node.allocated = 1; in mali_vma_offset_add() 80 struct mali_vma_node *node) in mali_vma_offset_remove() argument [all …]
|
D | mali_memory.c | 438 void _mali_page_node_ref(struct mali_page_node *node) in _mali_page_node_ref() argument 440 if (node->type == MALI_PAGE_NODE_OS) { in _mali_page_node_ref() 442 get_page(node->page); in _mali_page_node_ref() 443 } else if (node->type == MALI_PAGE_NODE_BLOCK) { in _mali_page_node_ref() 444 mali_mem_block_add_ref(node); in _mali_page_node_ref() 445 } else if (node->type == MALI_PAGE_NODE_SWAP) { in _mali_page_node_ref() 446 atomic_inc(&node->swap_it->ref_count); in _mali_page_node_ref() 452 void _mali_page_node_unref(struct mali_page_node *node) in _mali_page_node_unref() argument 454 if (node->type == MALI_PAGE_NODE_OS) { in _mali_page_node_unref() 456 put_page(node->page); in _mali_page_node_unref() [all …]
|
D | mali_memory_block_alloc.c | 32 u32 mali_mem_block_get_ref_count(mali_page_node *node) in mali_mem_block_get_ref_count() argument 34 MALI_DEBUG_ASSERT(node->type == MALI_PAGE_NODE_BLOCK); in mali_mem_block_get_ref_count() 35 return (node->blk_it->phy_addr & MALI_BLOCK_REF_MASK); in mali_mem_block_get_ref_count() 43 u32 mali_mem_block_add_ref(mali_page_node *node) in mali_mem_block_add_ref() argument 45 MALI_DEBUG_ASSERT(node->type == MALI_PAGE_NODE_BLOCK); in mali_mem_block_add_ref() 46 MALI_DEBUG_ASSERT(mali_mem_block_get_ref_count(node) < MALI_BLOCK_MAX_REF_COUNT); in mali_mem_block_add_ref() 47 return (node->blk_it->phy_addr++ & MALI_BLOCK_REF_MASK); in mali_mem_block_add_ref() 53 u32 mali_mem_block_dec_ref(mali_page_node *node) in mali_mem_block_dec_ref() argument 55 MALI_DEBUG_ASSERT(node->type == MALI_PAGE_NODE_BLOCK); in mali_mem_block_dec_ref() 56 MALI_DEBUG_ASSERT(mali_mem_block_get_ref_count(node) > 0); in mali_mem_block_dec_ref() [all …]
|
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/include/ |
D | hi_list.h | 48 static inline hi_void hi_list_head_insert(hi_list *node, hi_list *list) in hi_list_head_insert() argument 50 node->next = list->next; in hi_list_head_insert() 51 node->prev = list; in hi_list_head_insert() 52 list->next->prev = node; in hi_list_head_insert() 53 list->next = node; in hi_list_head_insert() 60 __attribute__((always_inline)) static inline hi_void hi_list_head_insert_optimize(hi_list *node, hi… in hi_list_head_insert_optimize() argument 62 node->next = list->next; in hi_list_head_insert_optimize() 63 node->prev = list; in hi_list_head_insert_optimize() 64 list->next->prev = node; in hi_list_head_insert_optimize() 65 list->next = node; in hi_list_head_insert_optimize() [all …]
|
/device/soc/rockchip/rk3568/hardware/mpp/mpp/legacy/ |
D | rk_list.cpp | 41 static inline void list_node_init(rk_list_node *node) in list_node_init() argument 43 node->prev = node->next = node; in list_node_init() 46 static inline void list_node_init_with_key_and_size(rk_list_node *node, RK_U32 key, RK_S32 size) in list_node_init_with_key_and_size() argument 48 list_node_init(node); in list_node_init_with_key_and_size() 49 node->key = key; in list_node_init_with_key_and_size() 50 node->size = size; in list_node_init_with_key_and_size() 55 rk_list_node *node = (rk_list_node*)malloc(sizeof(rk_list_node) + size); in create_list() local 56 if (node) { in create_list() 57 void *dst = (void*)(node + 1); in create_list() 58 list_node_init_with_key_and_size(node, key, size); in create_list() [all …]
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/os/Huawei_LiteOS/kernel/include/ |
D | los_list.h | 139 LITE_OS_SEC_ALW_INLINE STATIC_INLINE VOID LOS_ListAdd(LOS_DL_LIST *list, LOS_DL_LIST *node) in LOS_ListAdd() argument 141 node->pstNext = list->pstNext; in LOS_ListAdd() 142 node->pstPrev = list; in LOS_ListAdd() 143 list->pstNext->pstPrev = node; in LOS_ListAdd() 144 list->pstNext = node; in LOS_ListAdd() 166 LITE_OS_SEC_ALW_INLINE STATIC_INLINE VOID LOS_ListTailInsert(LOS_DL_LIST *list, LOS_DL_LIST *node) in LOS_ListTailInsert() argument 168 LOS_ListAdd(list->pstPrev, node); in LOS_ListTailInsert() 190 LITE_OS_SEC_ALW_INLINE STATIC_INLINE VOID LOS_ListHeadInsert(LOS_DL_LIST *list, LOS_DL_LIST *node) in LOS_ListHeadInsert() argument 192 LOS_ListAdd(list, node); in LOS_ListHeadInsert() 214 LITE_OS_SEC_ALW_INLINE STATIC_INLINE VOID LOS_ListDelete(LOS_DL_LIST *node) in LOS_ListDelete() argument [all …]
|
/device/board/hihope/rk3568/audio_drivers/headset_monitor/src/ |
D | analog_headset_core.c | 91 static int32_t LinuxReadMicConfig(struct device_node *node, struct HeadsetPdata *pdata) in LinuxReadMicConfig() argument 97 if ((node == NULL) || (pdata == NULL)) { in LinuxReadMicConfig() 102 ret = of_get_named_gpio_flags(node, "mic_switch_gpio", 0, &pdata->micGpioFlags); in LinuxReadMicConfig() 107 ret = of_property_read_u32(node, "hp_mic_io_value", &pdata->hpMicIoValue); in LinuxReadMicConfig() 112 ret = of_property_read_u32(node, "main_mic_io_value", &pdata->mainMicIoValue); in LinuxReadMicConfig() 123 static int32_t LinuxReadConfig(struct device_node *node, struct HeadsetPdata *pdata) in LinuxReadConfig() argument 128 if ((node == NULL) || (pdata == NULL)) { in LinuxReadConfig() 134 ret = of_get_named_gpio_flags(node, "headset_gpio", 0, &pdata->hsGpioFlags); in LinuxReadConfig() 143 ret = of_get_named_gpio_flags(node, "hook_gpio", 0, &pdata->hookGpio); in LinuxReadConfig() 150 ret = of_property_read_u32(node, "hook_down_type", &pdata->hookDownType); in LinuxReadConfig() [all …]
|
/device/board/kaihong/khdvk_3566b/kernel/audio/headset_monitor/src/ |
D | analog_headset_core.c | 91 static int32_t LinuxReadMicConfig(struct device_node *node, struct HeadsetPdata *pdata) in LinuxReadMicConfig() argument 97 if ((node == NULL) || (pdata == NULL)) { in LinuxReadMicConfig() 102 ret = of_get_named_gpio_flags(node, "mic_switch_gpio", 0, &pdata->micGpioFlags); in LinuxReadMicConfig() 107 ret = of_property_read_u32(node, "hp_mic_io_value", &pdata->hpMicIoValue); in LinuxReadMicConfig() 112 ret = of_property_read_u32(node, "main_mic_io_value", &pdata->mainMicIoValue); in LinuxReadMicConfig() 123 static int32_t LinuxReadConfig(struct device_node *node, struct HeadsetPdata *pdata) in LinuxReadConfig() argument 128 if ((node == NULL) || (pdata == NULL)) { in LinuxReadConfig() 134 ret = of_get_named_gpio_flags(node, "headset_gpio", 0, &pdata->hsGpioFlags); in LinuxReadConfig() 143 ret = of_get_named_gpio_flags(node, "hook_gpio", 0, &pdata->hookGpio); in LinuxReadConfig() 150 ret = of_property_read_u32(node, "hook_down_type", &pdata->hookDownType); in LinuxReadConfig() [all …]
|
/device/soc/esp/esp32/components/nvs_flash/src/ |
D | intrusive_list.h | 119 void push_back(T* node) in push_back() argument 122 mLast->mNext = node; in push_back() 124 node->mPrev = mLast; in push_back() 125 node->mNext = nullptr; in push_back() 126 mLast = node; in push_back() 128 mFirst = node; in push_back() 133 void push_front(T* node) in push_front() argument 135 node->mPrev = nullptr; in push_front() 136 node->mNext = mFirst; in push_front() 138 mFirst->mPrev = node; in push_front() [all …]
|
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/ |
D | wl_event.c | 289 struct event_handler_list *node, *cur, **evt_head; in wl_ext_event_free() local 292 node = *evt_head; in wl_ext_event_free() 294 for (;node;) { in wl_ext_event_free() 295 EVENT_TRACE(node->dev->name, "Free etype=%d\n", node->etype); in wl_ext_event_free() 296 cur = node; in wl_ext_event_free() 297 node = cur->next; in wl_ext_event_free() 318 struct event_handler_list *node, *leaf, *node_prev, **evt_head; in wl_ext_event_register() local 324 node = *evt_head; in wl_ext_event_register() 325 for (;node;) { in wl_ext_event_register() 326 if (node->dev == dev && node->etype == event && node->cb_func == cb_func) { in wl_ext_event_register() [all …]
|
/device/board/isoftstone/yangfan/kernel/src/driv/net/rockchip_wlan/rkwifi/bcmdhd/ |
D | wl_event.c | 291 struct event_handler_list *node, *cur, **evt_head; in wl_ext_event_free() local 294 node = *evt_head; in wl_ext_event_free() 296 for (;node;) { in wl_ext_event_free() 297 EVENT_TRACE(node->dev->name, "Free etype=%d\n", node->etype); in wl_ext_event_free() 298 cur = node; in wl_ext_event_free() 299 node = cur->next; in wl_ext_event_free() 320 struct event_handler_list *node, *leaf, *node_prev, **evt_head; in wl_ext_event_register() local 326 node = *evt_head; in wl_ext_event_register() 327 for (;node;) { in wl_ext_event_register() 328 if (node->dev == dev && node->etype == event && node->cb_func == cb_func) { in wl_ext_event_register() [all …]
|
/device/board/kaihong/khdvk_3566b/wifi/bcmdhd_hdf/bcmdhd/ |
D | wl_event.c | 341 struct event_handler_list *node, *cur, **evt_head; in wl_ext_event_free() local 344 node = *evt_head; in wl_ext_event_free() 346 for (; node;) { in wl_ext_event_free() 347 EVENT_TRACE(node->dev->name, "Free etype=%d\n", node->etype); in wl_ext_event_free() 348 cur = node; in wl_ext_event_free() 349 node = cur->next; in wl_ext_event_free() 374 struct event_handler_list *node, *leaf, *node_prev, **evt_head; in wl_ext_event_register() local 380 node = *evt_head; in wl_ext_event_register() 381 for (; node;) { in wl_ext_event_register() 382 if (node->dev == dev && node->etype == event && in wl_ext_event_register() [all …]
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/drm/sunxi_device/ |
D | sunxi_common.c | 189 struct device_node *node; in sunxi_drm_sys_pin_set_state() local 199 node = of_find_compatible_node(NULL, NULL, compat); in sunxi_drm_sys_pin_set_state() 200 if (!node) { in sunxi_drm_sys_pin_set_state() 205 pdev = of_find_device_by_node(node); in sunxi_drm_sys_pin_set_state() 206 if (!node) { in sunxi_drm_sys_pin_set_state() 236 int sunxi_drm_get_sys_item_int(struct device_node *node, in sunxi_drm_get_sys_item_int() argument 240 return of_property_read_u32_array(node, sub_name, value, 1); in sunxi_drm_get_sys_item_int() 243 int sunxi_drm_get_sys_item_char(struct device_node *node, in sunxi_drm_get_sys_item_char() argument 248 if (of_property_read_string(node, sub_name, &str)) { in sunxi_drm_get_sys_item_char() 258 int sunxi_drm_get_sys_item_gpio(struct device_node *node, in sunxi_drm_get_sys_item_gpio() argument [all …]
|