Home
last modified time | relevance | path

Searched refs:head (Results 1 – 25 of 2151) sorted by relevance

12345678910>>...87

/openbmc/openbmc/poky/meta/recipes-core/musl/bsd-headers/
H A Dsys-queue.h122 #define SLIST_FIRST(head) ((head)->slh_first) argument
142 (head)->slh_first = SLIST_END(head); \
198 #define LIST_FIRST(head) ((head)->lh_first) argument
200 #define LIST_EMPTY(head) ((head)->lh_first == LIST_END(head)) argument
250 (head)->lh_first = LIST_END(head); \
319 #define SIMPLEQ_EMPTY(head) ((head)->sqh_first == SIMPLEQ_END(head)) argument
338 (head)->sqh_last = &(head)->sqh_first; \
408 { TAILQ_END(head), &(head).tqh_first }
427 #define TAILQ_EMPTY(head) (TAILQ_FIRST(head) == TAILQ_END(head)) argument
489 (head)->tqh_first = TAILQ_END(head); \
[all …]
H A Dsys-tree.h78 #define SPLAY_ROOT(head) (head)->sph_root argument
79 #define SPLAY_EMPTY(head) (SPLAY_ROOT(head) == NULL) argument
97 (head)->sph_root = SPLAY_LEFT((head)->sph_root, field); \
103 (head)->sph_root = SPLAY_RIGHT((head)->sph_root, field); \
125 if (SPLAY_EMPTY(head)) \
191 (head)->sph_root = SPLAY_RIGHT((head)->sph_root, field);\
194 (head)->sph_root = SPLAY_LEFT((head)->sph_root, field);\
318 #define RB_ROOT(head) (head)->rbh_root argument
319 #define RB_EMPTY(head) (RB_ROOT(head) == NULL) argument
481 elm = RB_ROOT(head); \
[all …]
/openbmc/linux/drivers/scsi/aic7xxx/
H A Dqueue.h125 #define SLIST_FIRST(head) ((head)->slh_first) argument
187 #define STAILQ_FIRST(head) ((head)->stqh_first) argument
196 (head)->stqh_last = &STAILQ_FIRST((head)); \
217 #define STAILQ_LAST(head) (*(head)->stqh_last) argument
269 #define LIST_FIRST(head) ((head)->lh_first) argument
334 #define TAILQ_FIRST(head) ((head)->tqh_first) argument
348 (head)->tqh_last = &TAILQ_FIRST((head)); \
412 { (void *)&(head), (void *)&(head) }
423 #define CIRCLEQ_EMPTY(head) ((head)->cqh_first == (void *)(head)) argument
438 CIRCLEQ_FIRST((head)) = (void *)(head); \
[all …]
/openbmc/linux/security/tomoyo/
H A Dcommon.c235 head->r.w[len] = head->r.w[len + 1]; in tomoyo_flush()
254 head->r.w[head->r.w_pos++] = string; in tomoyo_set_string()
287 tomoyo_set_string(head, head->read_buf + pos); in tomoyo_io_printf()
1015 memset(&head->r, 0, sizeof(head->r)); in tomoyo_select_domain()
1701 if (head->r.w_pos || head->r.eof) in tomoyo_read_pid()
1773 (head->w.ns, &head->w.ns->acl_group[group], in tomoyo_write_exception()
2241 head->r.w[head->r.w_pos++] = buf; in tomoyo_read_query()
2546 memset(&head->r, 0, sizeof(head->r)); in tomoyo_set_namespace_cursor()
2591 head->read(head); in tomoyo_read_control()
2635 return head->write(head); in tomoyo_parse_policy()
[all …]
/openbmc/qemu/include/qemu/
H A Dqueue.h179 #define QLIST_EMPTY(head) ((head)->lh_first == NULL) argument
180 #define QLIST_FIRST(head) ((head)->lh_first) argument
264 #define QSLIST_EMPTY(head) ((head)->slh_first == NULL) argument
265 #define QSLIST_FIRST(head) ((head)->slh_first) argument
291 (head)->sqh_last = &(head)->sqh_first; \
313 typeof((head)->sqh_first) elm = (head)->sqh_first; \
315 (head)->sqh_last = &(head)->sqh_first; \
381 #define QSIMPLEQ_EMPTY(head) ((head)->sqh_first == NULL) argument
382 #define QSIMPLEQ_FIRST(head) ((head)->sqh_first) argument
496 #define QTAILQ_EMPTY(head) ((head)->tqh_first == NULL) argument
[all …]
H A Drcu_queue.h34 #define QLIST_EMPTY_RCU(head) (qatomic_read(&(head)->lh_first) == NULL) argument
35 #define QLIST_FIRST_RCU(head) (qatomic_rcu_read(&(head)->lh_first)) argument
131 #define QSIMPLEQ_EMPTY_RCU(head) \ argument
133 #define QSIMPLEQ_FIRST_RCU(head) qatomic_rcu_read(&(head)->sqh_first) argument
160 qatomic_set(&(head)->sqh_first, (head)->sqh_first->field.sqe_next);\
162 (head)->sqh_last = &(head)->sqh_first; \
197 #define QTAILQ_EMPTY_RCU(head) (qatomic_read(&(head)->tqh_first) == NULL) argument
198 #define QTAILQ_FIRST_RCU(head) qatomic_rcu_read(&(head)->tqh_first) argument
267 #define QSLIST_EMPTY_RCU(head) (qatomic_read(&(head)->slh_first) == NULL) argument
268 #define QSLIST_FIRST_RCU(head) qatomic_rcu_read(&(head)->slh_first) argument
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/dispnv04/
H A Dhw.c115 NVSetOwner(dev, head); in NVBlankScreen()
119 NVVgaSeqReset(dev, head, true); in NVBlankScreen()
124 NVVgaSeqReset(dev, head, false); in NVBlankScreen()
535 NVWriteRAMDAC(dev, head, in nv_load_state_ramdac()
550 rd_cio_state(dev, head, regp, i); in nv_save_state_vga()
552 NVSetEnablePalette(dev, head, true); in nv_save_state_vga()
578 wr_cio_state(dev, head, regp, i); in nv_load_state_vga()
734 nv_fix_nv40_hw_cursor(dev, head); in nv_load_state_ext()
808 state->crtc_reg[head].DAC[i]); in nouveau_hw_load_state_palette()
831 NVVgaProtect(dev, head, true); in nouveau_hw_load_state()
[all …]
H A Dhw.h60 int head, uint32_t reg) in NVReadCRTC() argument
64 if (head) in NVReadCRTC()
74 if (head) in NVWriteCRTC()
80 int head, uint32_t reg) in NVReadRAMDAC() argument
84 if (head) in NVReadRAMDAC()
94 if (head) in NVWriteRAMDAC()
128 int head, uint8_t index) in NVReadVgaCrtc() argument
165 int head, uint32_t reg) in NVReadPRMVIO() argument
223 int head, uint8_t index) in NVReadVgaAttr() argument
248 NVVgaSeqReset(dev, head, true); in NVVgaProtect()
[all …]
/openbmc/linux/include/linux/
H A Dplist.h96 #define PLIST_HEAD_INIT(head) \ argument
105 #define PLIST_HEAD(head) \ argument
106 struct plist_head head = PLIST_HEAD_INIT(head)
125 plist_head_init(struct plist_head *head) in plist_head_init() argument
127 INIT_LIST_HEAD(&head->node_list); in plist_head_init()
152 #define plist_for_each(pos, head) \ argument
215 return list_empty(&head->node_list); in plist_head_empty()
238 WARN_ON(plist_head_empty(head)); \
255 WARN_ON(plist_head_empty(head)); \
285 return list_entry(head->node_list.next, in plist_first()
[all …]
H A Dlist.h169 __list_add(new, head, head->next); in list_add()
183 __list_add(new, head->prev, head); in list_add_tail()
333 last->next = head; in list_bulk_move_tail()
334 head->prev = last; in list_bulk_move_tail()
373 return READ_ONCE(head->next) == head; in list_empty()
451 return !list_empty(head) && (head->next == head->prev); in list_is_singular()
485 if (list_is_singular(head) && !list_is_head(entry, head) && (entry != head->next)) in list_cut_position()
546 __list_splice(list, head, head->next); in list_splice()
558 __list_splice(list, head->prev, head); in list_splice_tail()
572 __list_splice(list, head, head->next); in list_splice_init()
[all …]
H A Dbtree-type.h14 static inline void BTREE_FN(init_mempool)(BTREE_TYPE_HEAD *head, in BTREE_FN()
17 btree_init_mempool(&head->h, mempool); in BTREE_FN()
20 static inline int BTREE_FN(init)(BTREE_TYPE_HEAD *head) in BTREE_FN()
22 return btree_init(&head->h); in BTREE_FN()
25 static inline void BTREE_FN(destroy)(BTREE_TYPE_HEAD *head) in BTREE_FN()
27 btree_destroy(&head->h); in BTREE_FN()
41 return btree_lookup(&head->h, BTREE_TYPE_GEO, &_key); in BTREE_FN()
55 return btree_update(&head->h, BTREE_TYPE_GEO, &_key, val); in BTREE_FN()
61 return btree_remove(&head->h, BTREE_TYPE_GEO, &_key); in BTREE_FN()
67 void *val = btree_last(&head->h, BTREE_TYPE_GEO, &_key); in BTREE_FN()
[all …]
H A Dfreelist.h24 struct freelist_node *head; member
46 struct freelist_node *head = READ_ONCE(list->head); in __freelist_add() local
49 WRITE_ONCE(node->next, head); in __freelist_add()
52 if (!try_cmpxchg_release(&list->head, &head, node)) { in __freelist_add()
81 struct freelist_node *prev, *next, *head = smp_load_acquire(&list->head); in freelist_try_get() local
84 while (head) { in freelist_try_get()
85 prev = head; in freelist_try_get()
89 head = smp_load_acquire(&list->head); in freelist_try_get()
98 next = READ_ONCE(head->next); in freelist_try_get()
99 if (try_cmpxchg_acquire(&list->head, &head, next)) { in freelist_try_get()
[all …]
H A Dbtree-128.h9 btree_init_mempool(&head->h, mempool); in btree_init_mempool128()
12 static inline int btree_init128(struct btree_head128 *head) in btree_init128() argument
14 return btree_init(&head->h); in btree_init128()
19 btree_destroy(&head->h); in btree_destroy128()
34 val = btree_get_prev(&head->h, &btree_geo128, in btree_get_prev128()
45 return btree_insert(&head->h, &btree_geo128, in btree_insert128()
53 return btree_update(&head->h, &btree_geo128, in btree_update128()
94 return btree_visitor(&head->h, &btree_geo128, opaque, in btree_visitor128()
106 #define btree_for_each_safe128(head, k1, k2, val) \ argument
107 for (val = btree_last128(head, &k1, &k2); \
[all …]
/openbmc/linux/tools/include/linux/
H A Dlist.h63 __list_add(new, head, head->next); in list_add()
77 __list_add(new, head->prev, head); in list_add_tail()
189 return head->next == head; in list_empty()
208 return (next == head) && (next == head->prev); in list_empty_careful()
231 return !list_empty(head) && (head->next == head->prev); in list_is_singular()
266 (head->next != entry && head != entry)) in list_cut_position()
297 __list_splice(list, head, head->next); in list_splice()
309 __list_splice(list, head->prev, head); in list_splice_tail()
323 __list_splice(list, head, head->next); in list_splice_init()
340 __list_splice(list, head->prev, head); in list_splice_tail_init()
[all …]
/openbmc/u-boot/include/linux/
H A Dlist.h63 __list_add(new, head, head->next); in list_add()
76 __list_add(new, head->prev, head); in list_add_tail()
178 return head->next == head; in list_empty()
197 return (next == head) && (next == head->prev); in list_empty_careful()
206 return !list_empty(head) && (head->next == head->prev); in list_is_singular()
241 (head->next != entry && head != entry)) in list_cut_position()
272 __list_splice(list, head, head->next); in list_splice()
284 __list_splice(list, head->prev, head); in list_splice_tail()
298 __list_splice(list, head, head->next); in list_splice_init()
315 __list_splice(list, head->prev, head); in list_splice_tail_init()
[all …]
/openbmc/linux/net/sched/
H A Dcls_matchall.c55 kfree(head); in __mall_destroy()
81 &head->flags, &head->in_hw_count, true); in mall_destroy_hw_filter()
112 skip_sw, &head->flags, &head->in_hw_count, true); in mall_replace_hw_filter()
132 if (!head) in mall_destroy()
150 if (head && head->handle == handle) in mall_get()
151 return head; in mall_get()
178 if (head) in mall_change()
231 *arg = head; in mall_change()
265 if (!head || head->deleting) in mall_walk()
334 if (!head) in mall_dump()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Dhead.c34 struct nvkm_head *head; in nvkm_head_find() local
35 list_for_each_entry(head, &disp->heads, head) { in nvkm_head_find()
36 if (head->id == id) in nvkm_head_find()
37 return head; in nvkm_head_find()
46 if (head) { in nvkm_head_del()
48 list_del(&head->head); in nvkm_head_del()
59 if (!(head = kzalloc(sizeof(*head), GFP_KERNEL))) in nvkm_head_new_()
61 head->func = func; in nvkm_head_new_()
62 head->disp = disp; in nvkm_head_new_()
63 head->id = id; in nvkm_head_new_()
[all …]
H A Dvga.c41 head = 0; /* CR44 selects head */ in nvkm_rdport()
63 head = 0; /* CR44 selects head */ in nvkm_wrport()
71 nvkm_wrport(device, head, 0x03c4, index); in nvkm_rdvgas()
72 return nvkm_rdport(device, head, 0x03c5); in nvkm_rdvgas()
78 nvkm_wrport(device, head, 0x03c4, index); in nvkm_wrvgas()
79 nvkm_wrport(device, head, 0x03c5, value); in nvkm_wrvgas()
85 nvkm_wrport(device, head, 0x03ce, index); in nvkm_rdvgag()
86 return nvkm_rdport(device, head, 0x03cf); in nvkm_rdvgag()
92 nvkm_wrport(device, head, 0x03ce, index); in nvkm_wrvgag()
93 nvkm_wrport(device, head, 0x03cf, value); in nvkm_wrvgag()
[all …]
H A Duhead.c41 return nvkm_uevent_add(uevent, &head->disp->vblank, head->id, in nvkm_uhead_uevent()
53 head->func->state(head, &head->arm); in nvkm_uhead_mthd_scanoutpos()
54 args->v0.vtotal = head->arm.vtotal; in nvkm_uhead_mthd_scanoutpos()
55 args->v0.vblanks = head->arm.vblanks; in nvkm_uhead_mthd_scanoutpos()
57 args->v0.htotal = head->arm.htotal; in nvkm_uhead_mthd_scanoutpos()
69 head->func->rgpos(head, &args->v0.hline, &args->v0.vline); in nvkm_uhead_mthd_scanoutpos()
90 struct nvkm_disp *disp = head->disp; in nvkm_uhead_dtor()
93 head->object.func = NULL; in nvkm_uhead_dtor()
109 struct nvkm_head *head; in nvkm_uhead_new() local
120 if (!head->object.func) { in nvkm_uhead_new()
[all …]
/openbmc/linux/net/netlabel/
H A Dnetlabel_addrlist.h83 for (iter = __af4list_valid((head)->next, head); \
84 &iter->list != (head); \
88 for (iter = __af4list_valid_rcu((head)->next, head); \
89 &iter->list != (head); \
93 for (iter = __af4list_valid((head)->next, head), \
95 &iter->list != (head); \
99 struct list_head *head);
107 struct list_head *head);
150 for (iter = __af6list_valid((head)->next, head); \
155 for (iter = __af6list_valid_rcu((head)->next, head); \
[all …]
/openbmc/linux/tools/testing/selftests/arm64/signal/testcases/
H A Dtestcases.c19 head->magic != magic && head->magic) { in get_header()
20 offs += head->size; in get_header()
21 head = GET_RESV_NEXT_HEAD(head); in get_header()
24 found = head; in get_header()
160 if (head->size) { in validate_reserved()
245 head->magic, in validate_reserved()
253 offs += head->size; in validate_reserved()
275 head = GET_RESV_NEXT_HEAD(head); in validate_reserved()
318 if (!head) in get_starting_head()
319 return head; in get_starting_head()
[all …]
/openbmc/linux/drivers/nvme/host/
H A Dmultipath.c177 struct nvme_ns_head *head = ns->head; in nvme_mpath_clear_current_path() local
181 if (!head) in nvme_mpath_clear_current_path()
208 struct nvme_ns_head *head = ns->head; in nvme_mpath_revalidate_paths() local
345 ns = srcu_dereference(head->current_path[node], &head->srcu); in nvme_find_path()
490 head->cdev_device.parent = &head->subsys->dev; in nvme_add_ns_head_cdev()
492 head->subsys->instance, head->instance); in nvme_add_ns_head_cdev()
495 ret = nvme_cdev_add(&head->cdev, &head->cdev_device, in nvme_add_ns_head_cdev()
540 head->disk->private_data = head; in nvme_mpath_alloc_disk()
571 struct nvme_ns_head *head = ns->head; in nvme_mpath_set_live() local
583 rc = device_add_disk(&head->subsys->dev, head->disk, in nvme_mpath_set_live()
[all …]
/openbmc/linux/scripts/gdb/linux/
H A Dlists.py23 def list_for_each(head): argument
25 head = head.dereference()
30 if head['next'] == 0:
35 node = head['next'].dereference()
42 for node in list_for_each(head):
46 def hlist_for_each(head): argument
48 head = head.dereference()
64 def list_check(head): argument
67 head = head.dereference()
70 c = head
[all …]
/openbmc/linux/drivers/scsi/sym53c8xx_2/
H A Dsym_misc.h44 return (head->flink == head) ? 0 : head->flink; in sym_que_first()
49 return (head->blink == head) ? 0 : head->blink; in sym_que_last()
71 return head->flink == head; in sym_que_empty()
75 struct sym_quehead *head) in sym_que_splice() argument
83 first->blink = head; in sym_que_splice()
84 head->flink = first; in sym_que_splice()
117 #define sym_insque_head(new, head) __sym_que_add(new, head, (head)->flink) argument
123 if (elem != head) in sym_remque_head()
130 #define sym_insque_tail(new, head) __sym_que_add(new, (head)->blink, head) argument
136 if (elem != head) in sym_remque_tail()
[all …]
/openbmc/linux/kernel/bpf/
H A Dpercpu_freelist.c17 raw_spin_lock_init(&head->lock); in pcpu_freelist_init()
18 head->first = NULL; in pcpu_freelist_init()
33 node->next = head->first; in pcpu_freelist_push_node()
34 WRITE_ONCE(head->first, node); in pcpu_freelist_push_node()
40 raw_spin_lock(&head->lock); in ___pcpu_freelist_push()
42 raw_spin_unlock(&head->lock); in ___pcpu_freelist_push()
129 if (!READ_ONCE(head->first)) in ___pcpu_freelist_pop()
131 raw_spin_lock(&head->lock); in ___pcpu_freelist_pop()
132 node = head->first; in ___pcpu_freelist_pop()
161 if (!READ_ONCE(head->first)) in ___pcpu_freelist_pop_nmi()
[all …]

12345678910>>...87