Home
last modified time | relevance | path

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

12345678910>>...83

/linux/security/tomoyo/
A Dcommon.c243 head->r.w[len] = head->r.w[len + 1]; in tomoyo_flush()
262 head->r.w[head->r.w_pos++] = string; in tomoyo_set_string()
295 tomoyo_set_string(head, head->read_buf + pos); in tomoyo_io_printf()
1023 memset(&head->r, 0, sizeof(head->r)); in tomoyo_select_domain()
1709 if (head->r.w_pos || head->r.eof) in tomoyo_read_pid()
1781 (head->w.ns, &head->w.ns->acl_group[group], in tomoyo_write_exception()
2249 head->r.w[head->r.w_pos++] = buf; in tomoyo_read_query()
2554 memset(&head->r, 0, sizeof(head->r)); in tomoyo_set_namespace_cursor()
2599 head->read(head); in tomoyo_read_control()
2643 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/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/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()
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 …]
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 Dlist.h88 __list_add(new, head, head->next); in list_add()
102 __list_add(new, head->prev, head); in list_add_tail()
284 return READ_ONCE(head->next) == head; in list_empty()
321 return (next == head) && (next == head->prev); in list_empty_careful()
362 return !list_empty(head) && (head->next == head->prev); in list_is_singular()
397 (head->next != entry && head != entry)) in list_cut_position()
458 __list_splice(list, head, head->next); in list_splice()
470 __list_splice(list, head->prev, head); in list_splice_tail()
484 __list_splice(list, head, head->next); in list_splice_init()
501 __list_splice(list, head->prev, head); in list_splice_tail_init()
[all …]
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 …]
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 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 …]
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/net/sched/
A Dcls_matchall.c53 kfree(head); in __mall_destroy()
79 &head->flags, &head->in_hw_count, true); in mall_destroy_hw_filter()
113 skip_sw, &head->flags, &head->in_hw_count, true); in mall_replace_hw_filter()
133 if (!head) in mall_destroy()
151 if (head && head->handle == handle) in mall_get()
197 if (head) in mall_change()
244 *arg = head; in mall_change()
276 if (!head || head->deleting) in mall_walk()
354 if (!head) in mall_dump()
358 mall_stats_hw_filter(tp, head, (unsigned long)head); in mall_dump()
[all …]
A Dcls_cgroup.c31 if (unlikely(!head)) in cls_cgroup_classify()
60 tcf_exts_destroy(&head->exts); in __cls_cgroup_destroy()
62 tcf_exts_put_net(&head->exts); in __cls_cgroup_destroy()
63 kfree(head); in __cls_cgroup_destroy()
72 __cls_cgroup_destroy(head); in cls_cgroup_destroy_work()
90 if (!head && !handle) in cls_cgroup_change()
93 if (head && handle != head->handle) in cls_cgroup_change()
121 if (head) { in cls_cgroup_change()
138 if (head) { in cls_cgroup_destroy()
142 __cls_cgroup_destroy(head); in cls_cgroup_destroy()
[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/drivers/gpu/drm/nouveau/nvkm/engine/disp/
A Dhead.c35 list_for_each_entry(head, &disp->head, head) { in nvkm_head_find()
37 return head; in nvkm_head_find()
56 head->func->state(head, &head->arm); in nvkm_head_mthd_scanoutpos()
72 head->func->rgpos(head, &args->v0.hline, &args->v0.vline); in nvkm_head_mthd_scanoutpos()
84 if (head) { in nvkm_head_del()
86 list_del(&head->head); in nvkm_head_del()
97 if (!(head = kzalloc(sizeof(*head), GFP_KERNEL))) in nvkm_head_new_()
99 head->func = func; in nvkm_head_new_()
100 head->disp = disp; in nvkm_head_new_()
101 head->id = id; in nvkm_head_new_()
[all …]
A Dnv50.c248 init.head = head->id; in nv50_disp_super_ied_on()
273 init.head = head->id; in nv50_disp_super_ied_off()
532 list_for_each_entry(head, &disp->base.head, head) { in nv50_disp_super_1()
533 head->func->state(head, &head->arm); in nv50_disp_super_1()
534 head->func->state(head, &head->asy); in nv50_disp_super_1()
558 list_for_each_entry(head, &disp->base.head, head) { in nv50_disp_super()
567 list_for_each_entry(head, &disp->base.head, head) { in nv50_disp_super()
573 list_for_each_entry(head, &disp->base.head, head) { in nv50_disp_super()
578 list_for_each_entry(head, &disp->base.head, head) { in nv50_disp_super()
585 list_for_each_entry(head, &disp->base.head, head) { in nv50_disp_super()
[all …]
A Dgf119.c44 list_for_each_entry(head, &disp->base.head, head) { in gf119_disp_super()
46 HEAD_DBG(head, "%08x", mask[head->id]); in gf119_disp_super()
52 list_for_each_entry(head, &disp->base.head, head) { in gf119_disp_super()
59 list_for_each_entry(head, &disp->base.head, head) { in gf119_disp_super()
65 list_for_each_entry(head, &disp->base.head, head) { in gf119_disp_super()
70 list_for_each_entry(head, &disp->base.head, head) { in gf119_disp_super()
77 list_for_each_entry(head, &disp->base.head, head) { in gf119_disp_super()
84 list_for_each_entry(head, &disp->base.head, head) in gf119_disp_super()
164 list_for_each_entry(head, &disp->base.head, head) { in gf119_disp_intr()
199 list_for_each_entry(head, &disp->base.head, head) { in gf119_disp_init()
[all …]
A Dgv100.c51 list_for_each_entry(head, &disp->base.head, head) { in gv100_disp_super()
53 HEAD_DBG(head, "%08x", mask[head->id]); in gv100_disp_super()
59 list_for_each_entry(head, &disp->base.head, head) { in gv100_disp_super()
66 list_for_each_entry(head, &disp->base.head, head) { in gv100_disp_super()
72 list_for_each_entry(head, &disp->base.head, head) { in gv100_disp_super()
77 list_for_each_entry(head, &disp->base.head, head) { in gv100_disp_super()
84 list_for_each_entry(head, &disp->base.head, head) { in gv100_disp_super()
91 list_for_each_entry(head, &disp->base.head, head) in gv100_disp_super()
193 int head; in gv100_disp_intr_exc_other() local
357 list_for_each_entry(head, &disp->base.head, head) { in gv100_disp_init()
[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 …]
/linux/drivers/nvme/host/
A Dmultipath.c128 struct nvme_ns_head *head = ns->head; in nvme_mpath_clear_current_path() local
132 if (!head) in nvme_mpath_clear_current_path()
159 struct nvme_ns_head *head = ns->head; in nvme_mpath_revalidate_paths() local
291 ns = srcu_dereference(head->current_path[node], &head->srcu); in nvme_find_path()
432 head->cdev_device.parent = &head->subsys->dev; in nvme_add_ns_head_cdev()
434 head->subsys->instance, head->instance); in nvme_add_ns_head_cdev()
437 ret = nvme_cdev_add(&head->cdev, &head->cdev_device, in nvme_add_ns_head_cdev()
481 head->disk->private_data = head; in nvme_mpath_alloc_disk()
510 struct nvme_ns_head *head = ns->head; in nvme_mpath_set_live() local
522 rc = device_add_disk(&head->subsys->dev, head->disk, in nvme_mpath_set_live()
[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/tools/testing/selftests/arm64/signal/testcases/
A Dtestcases.c15 head->magic != magic && head->magic) { in get_header()
16 offs += head->size; in get_header()
17 head = GET_RESV_NEXT_HEAD(head); in get_header()
20 found = head; in get_header()
99 if (head->size) in validate_reserved()
149 head->magic); in validate_reserved()
156 offs += head->size; in validate_reserved()
169 head = GET_RESV_NEXT_HEAD(head); in validate_reserved()
207 if (!head) in get_starting_head()
208 return head; in get_starting_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/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/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 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()
133 raw_spin_lock(&head->lock); in ___pcpu_freelist_pop()
134 node = head->first; in ___pcpu_freelist_pop()
136 head->first = node->next; in ___pcpu_freelist_pop()
168 node = head->first; in ___pcpu_freelist_pop_nmi()
[all …]
/linux/lib/
A Dbtree.c178 head->node = NULL; in __btree_init()
179 head->height = 0; in __btree_init()
201 mempool_free(head->node, head->mempool); in btree_destroy()
327 node = head->node; in btree_get_prev()
422 if (head->node) { in btree_grow()
428 head->height++; in btree_grow()
444 head->height--; in btree_shrink()
757 if (head->node) in btree_visitor()
758 count = __btree_for_each(head, geo, head->node, opaque, func, in btree_visitor()
775 if (head->node) in btree_grim_visitor()
[all …]

Completed in 54 milliseconds

12345678910>>...83