Home
last modified time | relevance | path

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

12345678910>>...101

/linux/drivers/scsi/aic7xxx/
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 …]
/linux/security/tomoyo/
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 …]
A Dgc.c47 head->users++; in tomoyo_struct_used_by_io_buffer()
50 if (head->r.domain == element || head->r.group == element || in tomoyo_struct_used_by_io_buffer()
51 head->r.acl == element || &head->w.domain->list == element) in tomoyo_struct_used_by_io_buffer()
55 head->users--; in tomoyo_struct_used_by_io_buffer()
81 head->users++; in tomoyo_name_used_by_io_buffer()
94 head->users--; in tomoyo_name_used_by_io_buffer()
280 head.list); in tomoyo_del_condition()
627 if (head->users) in tomoyo_gc_thread()
632 kfree(head); in tomoyo_gc_thread()
656 head->users = 1; in tomoyo_notify_gc()
[all …]
/linux/drivers/gpu/drm/nouveau/dispnv04/
A Dhw.c115 NVSetOwner(dev, head); in NVBlankScreen()
119 NVVgaSeqReset(dev, head, true); in NVBlankScreen()
124 NVVgaSeqReset(dev, head, false); in NVBlankScreen()
534 NVWriteRAMDAC(dev, head, in nv_load_state_ramdac()
549 rd_cio_state(dev, head, regp, i); in nv_save_state_vga()
551 NVSetEnablePalette(dev, head, true); in nv_save_state_vga()
577 wr_cio_state(dev, head, regp, i); in nv_load_state_vga()
733 nv_fix_nv40_hw_cursor(dev, head); in nv_load_state_ext()
807 state->crtc_reg[head].DAC[i]); in nouveau_hw_load_state_palette()
830 NVVgaProtect(dev, head, true); in nouveau_hw_load_state()
[all …]
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 …]
/linux/include/linux/
A Dplist.h86 #define PLIST_HEAD_INIT(head) \ argument
95 #define PLIST_HEAD(head) \ argument
96 struct plist_head head = PLIST_HEAD_INIT(head)
115 plist_head_init(struct plist_head *head) in plist_head_init() argument
117 INIT_LIST_HEAD(&head->node_list); in plist_head_init()
142 #define plist_for_each(pos, head) \ argument
205 return list_empty(&head->node_list); in plist_head_empty()
228 WARN_ON(plist_head_empty(head)); \
245 WARN_ON(plist_head_empty(head)); \
275 return list_entry(head->node_list.next, in plist_first()
[all …]
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()
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()
589 __list_splice(list, head->prev, head); in list_splice_tail_init()
[all …]
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 …]
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 …]
/linux/tools/include/linux/
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 …]
/linux/net/sched/
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 …]
A Dcls_cgroup.c33 if (unlikely(!head)) in cls_cgroup_classify()
62 tcf_exts_destroy(&head->exts); in __cls_cgroup_destroy()
64 tcf_exts_put_net(&head->exts); in __cls_cgroup_destroy()
65 kfree(head); in __cls_cgroup_destroy()
74 __cls_cgroup_destroy(head); in cls_cgroup_destroy_work()
92 if (!head && !handle) in cls_cgroup_change()
95 if (head && handle != head->handle) in cls_cgroup_change()
123 if (head) { in cls_cgroup_change()
140 if (head) { in cls_cgroup_destroy()
144 __cls_cgroup_destroy(head); in cls_cgroup_destroy()
[all …]
/linux/net/netlabel/
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 …]
/linux/drivers/nvme/host/
A Dmultipath.c189 struct nvme_ns_head *head = ns->head; in nvme_mpath_clear_current_path() local
193 if (!head) in nvme_mpath_clear_current_path()
221 struct nvme_ns_head *head = ns->head; in nvme_mpath_revalidate_paths() local
400 ns = srcu_dereference(head->current_path[node], &head->srcu); in nvme_numa_path()
572 head->cdev_device.parent = &head->subsys->dev; in nvme_add_ns_head_cdev()
574 head->subsys->instance, head->instance); in nvme_add_ns_head_cdev()
577 ret = nvme_cdev_add(&head->cdev, &head->cdev_device, in nvme_add_ns_head_cdev()
645 head->disk->private_data = head; in nvme_mpath_alloc_disk()
663 struct nvme_ns_head *head = ns->head; in nvme_mpath_set_live() local
675 rc = device_add_disk(&head->subsys->dev, head->disk, in nvme_mpath_set_live()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/
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 …]
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 …]
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 …]
/linux/scripts/gdb/linux/
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 …]
/linux/drivers/scsi/sym53c8xx_2/
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 …]
/linux/kernel/bpf/
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 …]
/linux/tools/testing/selftests/arm64/signal/testcases/
A Dtestcases.c135 switch (head->magic) { in validate_reserved()
137 if (head->size) { in validate_reserved()
141 head = extra_data; in validate_reserved()
155 else if (head->size != in validate_reserved()
196 else if (head->size != in validate_reserved()
234 head->magic, in validate_reserved()
242 offs += head->size; in validate_reserved()
264 head = GET_RESV_NEXT_HEAD(head); in validate_reserved()
307 if (!head) in get_starting_head()
308 return head; in get_starting_head()
[all …]
/linux/fs/proc/
A Dproc_sysctl.c128 entry = &head->ctl_table[ctl_node - head->node]; in find_entry()
326 return head; in sysctl_head_grab()
331 if (!head) in sysctl_head_finish()
388 entry = &head->ctl_table[ctl_node - head->node]; in first_entry()
405 head = NULL; in next_entry()
408 entry = &head->ctl_table[ctl_node - head->node]; in next_entry()
504 if (!head) in grab_header()
724 head = sysctl_head_grab(head); in proc_sys_link_fill_cache()
925 return !head || !sysctl_is_seen(head); in proc_sys_compare()
1260 if (get_links(core_parent, head, head->root)) in insert_links()
[all …]
/linux/lib/
A Dbtree.c177 head->node = NULL; in __btree_init()
178 head->height = 0; in __btree_init()
200 mempool_free(head->node, head->mempool); in btree_destroy()
322 node = head->node; in btree_get_prev()
417 if (head->node) { in btree_grow()
423 head->height++; in btree_grow()
439 head->height--; in btree_shrink()
752 if (head->node) in btree_visitor()
753 count = __btree_for_each(head, geo, head->node, opaque, func, in btree_visitor()
770 if (head->node) in btree_grim_visitor()
[all …]
/linux/drivers/gpu/drm/nouveau/dispnv50/
A Dhead.c47 if (clr.olut) head->func->olut_clr(head); in nv50_head_flush_clr()
48 if (clr.core) head->func->core_clr(head); in nv50_head_flush_clr()
49 if (clr.curs) head->func->curs_clr(head); in nv50_head_flush_clr()
55 if (asyh->set.curs ) head->func->curs_set(head, asyh); in nv50_head_flush_set_wndw()
61 head->func->olut_set(head, asyh); in nv50_head_flush_set_wndw()
266 if (!head->func->olut(head, asyh, size)) { in nv50_head_atomic_check_lut()
391 head->func->core_calc(head, asyh); in nv50_head_atomic_check()
515 nvif_head_dtor(&head->base.head); in nv50_head_destroy()
575 head = kzalloc(sizeof(*head), GFP_KERNEL); in nv50_head_create()
579 head->func = disp->core->func->head; in nv50_head_create()
[all …]
/linux/tools/virtio/ringtest/
A Dvirtio_ring_0_9.c101 unsigned head; in add_inbuf() local
113 head = guest.free_head; in add_inbuf()
120 desc[head].len = len; in add_inbuf()
130 data[head].data = datap; in add_inbuf()
143 ring.avail->ring[avail] = head; in add_inbuf()
154 unsigned head; in get_buf() local
173 index = head; in get_buf()
260 unsigned head = host.used_idx; in avail_empty() local
274 unsigned head; in use_buf() local
294 head = used_idx; in use_buf()
[all …]

Completed in 792 milliseconds

12345678910>>...101