/freebsd/contrib/atf/atf-c/detail/ |
H A D | list.c | 39 struct list_entry { struct 40 struct list_entry *m_prev; argument 41 struct list_entry *m_next; argument 48 entry_to_citer(const atf_list_t *l, const struct list_entry *le) in entry_to_citer() argument 58 entry_to_iter(atf_list_t *l, struct list_entry *le) in entry_to_iter() 67 struct list_entry * 70 struct list_entry *le; in new_entry() 72 le = (struct list_entry *)malloc(sizeof(*le)); in new_entry() 85 delete_entry(struct list_entry *le) in delete_entry() 94 struct list_entry * [all …]
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | ecore_ooo.c | 78 list_entry, struct ecore_ooo_isle) { in ecore_ooo_seek_isle() 162 OSAL_LIST_PUSH_TAIL(&p_ooo_info->p_isles_mem[i].list_entry, in ecore_ooo_alloc() 219 struct ecore_ooo_isle, list_entry); in ecore_ooo_release_connection_isles() 224 OSAL_LIST_REMOVE_ENTRY(&p_isle->list_entry, in ecore_ooo_release_connection_isles() 231 struct ecore_ooo_buffer, list_entry); in ecore_ooo_release_connection_isles() 238 OSAL_LIST_REMOVE_ENTRY(&p_buffer->list_entry, in ecore_ooo_release_connection_isles() 240 OSAL_LIST_PUSH_TAIL(&p_buffer->list_entry, in ecore_ooo_release_connection_isles() 243 OSAL_LIST_PUSH_TAIL(&p_isle->list_entry, in ecore_ooo_release_connection_isles() 265 struct ecore_ooo_isle, list_entry); in ecore_ooo_release_all_isles() 270 OSAL_LIST_REMOVE_ENTRY(&p_isle->list_entry, in ecore_ooo_release_all_isles() [all …]
|
H A D | ecore_ll2.c | 170 list_entry); in ecore_ll2_txq_flush() 178 OSAL_LIST_REMOVE_ENTRY(&p_pkt->list_entry, in ecore_ll2_txq_flush() 181 OSAL_LIST_PUSH_TAIL(&p_pkt->list_entry, in ecore_ll2_txq_flush() 239 list_entry); in ecore_ll2_txq_completion() 249 OSAL_LIST_REMOVE_ENTRY(&p_pkt->list_entry, in ecore_ll2_txq_completion() 266 OSAL_LIST_PUSH_TAIL(&p_pkt->list_entry, in ecore_ll2_txq_completion() 379 list_entry); in ecore_ll2_rxq_handle_completion() 388 OSAL_LIST_REMOVE_ENTRY(&p_pkt->list_entry, &p_rx->active_descq); in ecore_ll2_rxq_handle_completion() 403 OSAL_LIST_PUSH_TAIL(&p_pkt->list_entry, &p_rx->free_descq); in ecore_ll2_rxq_handle_completion() 482 list_entry); in ecore_ll2_rxq_flush() [all …]
|
H A D | ecore_ll2.h | 50 osal_list_entry_t list_entry; member 64 osal_list_entry_t list_entry; member
|
H A D | ecore_iwarp.h | 71 osal_list_entry_t list_entry; member 152 osal_list_entry_t list_entry; member 191 osal_list_entry_t list_entry; member
|
H A D | ecore_ooo.h | 41 osal_list_entry_t list_entry; member 52 osal_list_entry_t list_entry; member
|
/freebsd/sys/powerpc/powermac/ |
H A D | powermac_thermal.c | 195 struct pmac_fan_le *list_entry; in pmac_thermal_fan_register() local 197 list_entry = malloc(sizeof(struct pmac_fan_le), M_PMACTHERM, in pmac_thermal_fan_register() 199 list_entry->fan = fan; in pmac_thermal_fan_register() 201 SLIST_INSERT_HEAD(&fans, list_entry, entries); in pmac_thermal_fan_register() 207 struct pmac_sens_le *list_entry; in pmac_thermal_sensor_register() local 209 list_entry = malloc(sizeof(struct pmac_sens_le), M_PMACTHERM, in pmac_thermal_sensor_register() 211 list_entry->sensor = sensor; in pmac_thermal_sensor_register() 212 list_entry->last_val = 0; in pmac_thermal_sensor_register() 213 list_entry->critical_count = 0; in pmac_thermal_sensor_register() 215 SLIST_INSERT_HEAD(&sensors, list_entry, entries); in pmac_thermal_sensor_register()
|
/freebsd/tools/tools/drm/radeon/mkregtable/ |
H A D | mkregtable.c | 352 #define list_entry(ptr, type, member) \ macro 364 list_entry((ptr)->next, type, member) 425 for (pos = list_entry((head)->next, typeof(*pos), member); \ 427 pos = list_entry(pos->member.next, typeof(*pos), member)) 436 for (pos = list_entry((head)->prev, typeof(*pos), member); \ 438 pos = list_entry(pos->member.prev, typeof(*pos), member)) 449 ((pos) ? : list_entry(head, typeof(*pos), member)) 461 for (pos = list_entry(pos->member.next, typeof(*pos), member); \ 463 pos = list_entry(pos->member.next, typeof(*pos), member)) 475 for (pos = list_entry(pos->member.prev, typeof(*pos), member); \ [all …]
|
/freebsd/lib/libpmc/pmu-events/ |
H A D | list.h | 149 #define list_entry(ptr, type, field) container_of(ptr, type, field) macro 152 list_entry((ptr)->next, type, member) 155 list_entry((ptr)->prev, type, member) 161 list_entry(((ptr)->member.next), typeof(*(ptr)), member) 167 list_entry(((ptr)->member.prev), typeof(*(ptr)), member) 176 for (p = list_entry((h)->next, typeof(*p), field); &(p)->field != (h); \ 177 p = list_entry((p)->field.next, typeof(*p), field)) 180 for (p = list_entry((h)->next, typeof(*p), field), \ 181 n = list_entry((p)->field.next, typeof(*p), field); &(p)->field != (h);\ 182 p = n, n = list_entry(n->field.next, typeof(*n), field)) [all …]
|
/freebsd/sys/contrib/vchiq/interface/compat/ |
H A D | list.h | 201 #define list_entry(PTR, TYPE, FIELD) container_of(PTR, TYPE, FIELD) macro 203 list_entry(list_first((PTR)), TYPE, FIELD) 205 list_entry(list_last((PTR)), TYPE, FIELD) 207 list_entry(list_next(&(ENTRY)->FIELD), typeof(*(ENTRY)), FIELD) 209 list_entry(list_prev(&(ENTRY)->FIELD), typeof(*(ENTRY)), FIELD) 222 for ((VAR) = list_entry(list_first((HEAD)), typeof(*(VAR)), FIELD); \ 224 (VAR) = list_entry(list_next(&(VAR)->FIELD), typeof(*(VAR)), \ 228 for ((VAR) = list_entry(list_last((HEAD)), typeof(*(VAR)), FIELD); \ 230 (VAR) = list_entry(list_prev(&(VAR)->FIELD), typeof(*(VAR)), \ 234 for ((VAR) = list_entry(list_first((HEAD)), typeof(*(VAR)), FIELD); \ [all …]
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | list.h | 165 #define list_entry(ptr, type, field) container_of(ptr, type, field) macro 168 list_entry((ptr)->next, type, member) 171 list_entry((ptr)->prev, type, member) 177 list_entry(((ptr)->member.next), typeof(*(ptr)), member) 183 list_entry(((ptr)->member.prev), typeof(*(ptr)), member) 192 for (p = list_entry((h)->next, typeof(*p), field); &(p)->field != (h); \ 193 p = list_entry((p)->field.next, typeof(*p), field)) 196 for (p = list_entry((h)->next, typeof(*p), field), \ 197 n = list_entry((p)->field.next, typeof(*p), field); &(p)->field != (h);\ 198 p = n, n = list_entry(n->field.next, typeof(*n), field)) [all …]
|
/freebsd/contrib/libfido2/fuzz/ |
H A D | udev.c | 26 struct udev_list_entry *list_entry; member 198 if ((udev_enum->list_entry = calloc(1, in __wrap_udev_enumerate_get_list_entry() 199 sizeof(*udev_enum->list_entry))) == NULL) in __wrap_udev_enumerate_get_list_entry() 201 udev_enum->list_entry->magic = UDEV_LIST_ENTRY_MAGIC; in __wrap_udev_enumerate_get_list_entry() 203 return udev_enum->list_entry; in __wrap_udev_enumerate_get_list_entry() 217 if (udev_enum->list_entry) in __wrap_udev_enumerate_unref() 218 ASSERT_UDEV_LIST_ENTRY(udev_enum->list_entry); in __wrap_udev_enumerate_unref() 219 free(udev_enum->list_entry); in __wrap_udev_enumerate_unref()
|
/freebsd/sys/dev/drm2/ |
H A D | drm_linux_list.h | 40 #define list_entry(ptr, type, member) container_of(ptr,type,member) macro 122 for (pos = list_entry((head)->next, __typeof(*pos), member); \ 124 pos = list_entry(pos->member.next, __typeof(*pos), member)) 127 for (pos = list_entry(pos->member.prev, __typeof(*pos), member); \ 129 pos = list_entry(pos->member.prev, __typeof(*pos), member)) 139 for (pos = list_entry((head)->next, __typeof(*pos), member), \ 140 n = list_entry(pos->member.next, __typeof(*pos), member); \ 142 pos = n, n = list_entry(n->member.next, __typeof(*n), member)) 145 for (n = list_entry(pos->member.next, __typeof(*pos), member); \ 147 pos = n, n = list_entry(n->member.next, __typeof(*n), member)) [all …]
|
H A D | drm_mm.c | 62 list_entry(mm->unused_nodes.next, in drm_mm_kmalloc() 108 list_entry(hole_node->node_list.next, struct drm_mm_node, in drm_mm_hole_node_end() 322 list_entry(node->node_list.prev, struct drm_mm_node, node_list); in drm_mm_remove_node() 559 prev_node = list_entry(node->node_list.prev, struct drm_mm_node, in drm_mm_scan_add_block() 618 prev_node = list_entry(node->node_list.prev, struct drm_mm_node, in drm_mm_scan_remove_block()
|
/freebsd/sys/dev/qat/qat_common/ |
H A D | adf_dev_mgr.c | 50 struct vf_id_map *ptr = list_entry(itr, struct vf_id_map, list); in adf_get_vf_real_id() 73 map = list_entry(ptr, struct vf_id_map, list); in adf_clean_vf_map() 104 list_entry(itr, struct adf_accel_dev, list); in adf_devmgr_update_class_index() 160 list_entry(itr, struct adf_accel_dev, list); in adf_devmgr_add_dev() 251 list_entry(itr, struct adf_accel_dev, list); in adf_devmgr_pci_to_accel_dev() 278 list_entry(itr, struct adf_accel_dev, list); in adf_devmgr_get_dev_by_id() 315 struct vf_id_map *ptr = list_entry(itr, struct vf_id_map, list); in adf_get_num_dettached_vfs()
|
H A D | adf_init.c | 191 service = list_entry(list_itr, struct service_hndl, list); in adf_error_notifier() 370 service = list_entry(list_itr, struct service_hndl, list); in adf_dev_init() 463 service = list_entry(list_itr, struct service_hndl, list); in adf_dev_start() 537 service = list_entry(list_itr, struct service_hndl, list); in adf_dev_stop() 602 service = list_entry(list_itr, struct service_hndl, list); in adf_dev_shutdown() 671 service = list_entry(list_itr, struct service_hndl, list); in adf_dev_restarting_notify() 712 service = list_entry(list_itr, struct service_hndl, list); in adf_dev_stop_notify_sync() 743 service = list_entry(list_itr, struct service_hndl, list); in adf_dev_restarted_notify()
|
H A D | adf_fw_counters.c | 159 ptr = list_entry(list, struct adf_fw_counters_section, list); in adf_read_fw_counters() 164 list_entry(list_ptr, in adf_read_fw_counters() 270 list_entry(list_ptr, struct adf_fw_counters_val, list); in adf_fw_counters_keyval_del_all() 284 ptr = list_entry(list, struct adf_fw_counters_section, list); in adf_fw_counters_section_del_all() 303 list_entry(list, struct adf_fw_counters_section, list); in adf_fw_counters_sec_find()
|
H A D | adf_cfg.c | 172 list_entry(list_ptr, struct adf_cfg_key_val, list); in adf_cfg_keyval_remove() 197 ptr_sec = list_entry(list, struct adf_cfg_section, list); in adf_cfg_section_restore_all() 264 list_entry(list_ptr, struct adf_cfg_key_val, list); in adf_cfg_keyval_del_all() 278 ptr = list_entry(list, struct adf_cfg_section, list); in adf_cfg_section_del_all() 293 list_entry(list, struct adf_cfg_key_val, list); in adf_cfg_key_value_find() 309 list_entry(list, struct adf_cfg_section, list); in adf_cfg_sec_find() 452 ptr_sec = list_entry(list, struct adf_cfg_section, list); in adf_cfg_section_save_all()
|
/freebsd/sys/kern/ |
H A D | subr_sfbuf.c | 124 LIST_FOREACH(sf, hash_list, list_entry) { in sf_buf_alloc() 155 LIST_REMOVE(sf, list_entry); in sf_buf_alloc() 156 LIST_INSERT_HEAD(hash_list, sf, list_entry); in sf_buf_alloc() 187 LIST_REMOVE(sf, list_entry); in sf_buf_free() 220 LIST_FOREACH(sf, hash_list, list_entry) { in sf_buf_process_page()
|
/freebsd/sys/dev/ice/ |
H A D | ice_switch.c | 1577 LIST_ADD(&v_map->list_entry, &sw->vsi_list_map_head); 1730 LIST_ADD(&fm_entry->list_entry, &recp_list->filt_rules); in ice_update_pkt_fwd_rule() 1792 list_entry) { in ice_update_sw_rule_bridge_mode() 1948 list_entry) { 1982 list_entry) { in ice_find_vsi_list_entry() 1997 list_entry) { 2162 LIST_DEL(&vsi_list_info->list_entry); in ice_remove_rule_internal() 2253 LIST_DEL(&list_elem->list_entry); 2375 list_entry) { in ice_add_mac_rule() 2432 list_entry) { in ice_add_mac_rule() [all...] |
H A D | ice_sched.c | 793 LIST_DEL(&rl_info->list_entry); in ice_sched_del_rl_profile() 815 ice_aqc_rl_profile_info, list_entry) { in ice_sched_clear_rl_prof() 823 LIST_DEL(&rl_prof_elem->list_entry); in ice_sched_clear_rl_prof() 844 list_entry) { in ice_sched_clear_agg() 850 ice_sched_agg_vsi_info, list_entry) { in ice_sched_clear_agg() 851 LIST_DEL(&agg_vsi_info->list_entry); in ice_sched_clear_agg() 854 LIST_DEL(&agg_info->list_entry); in ice_sched_clear_agg() 2125 list_entry) { in ice_sched_rm_agg_vsi_info() 2131 ice_sched_agg_vsi_info, list_entry) in ice_sched_rm_agg_vsi_info() 2133 LIST_DEL(&agg_vsi_info->list_entry); in ice_sched_rm_agg_vsi_info() [all...] |
H A D | ice_switch.h | 343 struct LIST_ENTRY_TYPE list_entry; 351 struct LIST_ENTRY_TYPE list_entry; 394 struct LIST_ENTRY_TYPE list_entry; 402 struct LIST_ENTRY_TYPE list_entry; 338 struct LIST_ENTRY_TYPE list_entry; global() member 346 struct LIST_ENTRY_TYPE list_entry; global() member 389 struct LIST_ENTRY_TYPE list_entry; global() member 397 struct LIST_ENTRY_TYPE list_entry; global() member
|
/freebsd/sys/contrib/openzfs/module/os/linux/spl/ |
H A D | spl-taskq.c | 187 tq = list_entry(tql, taskq_t, tq_taskqs); in taskq_find_by_name() 208 t = list_entry(tq->tq_free_list.next, taskq_ent_t, tqent_list); in task_alloc() 333 w = list_entry(l, taskq_ent_t, tqent_list); in task_expire_impl() 371 t = list_entry(tq->tq_pend_list.next, taskq_ent_t, tqent_list); in taskq_lowest_id() 376 t = list_entry(tq->tq_prio_list.next, taskq_ent_t, tqent_list); in taskq_lowest_id() 381 t = list_entry(tq->tq_delay_list.next, taskq_ent_t, tqent_list); in taskq_lowest_id() 386 tqt = list_entry(tq->tq_active_list.next, taskq_thread_t, in taskq_lowest_id() 408 w = list_entry(l, taskq_thread_t, tqt_active_list); in taskq_insert_in_order() 429 t = list_entry(l, taskq_ent_t, tqent_list); in taskq_find_list() 467 tqt = list_entry(l, taskq_thread_t, tqt_active_list); in taskq_find() [all …]
|
/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | icm.h | 91 NULL : list_entry(icm->chunk_list.next, in mlx4_icm_first() 109 iter->chunk = list_entry(iter->chunk->list.next, in mlx4_icm_next()
|
/freebsd/sys/dev/mthca/ |
H A D | mthca_memfree.h | 102 NULL : list_entry(icm->chunk_list.next, in mthca_icm_first() 120 iter->chunk = list_entry(iter->chunk->list.next, in mthca_icm_next()
|