/linux-master/drivers/gpu/drm/nouveau/include/nvif/ |
H A D | head.h | 16 nvif_head_id(struct nvif_head *head) argument 18 return head->object.handle;
|
/linux-master/net/sched/ |
H A D | cls_cgroup.c | 30 struct cls_cgroup_head *head = rcu_dereference_bh(tp->root); local 33 if (unlikely(!head)) 37 if (!tcf_em_tree_match(skb, &head->ematches, NULL)) 43 return tcf_exts_exec(skb, &head->exts, res); 60 static void __cls_cgroup_destroy(struct cls_cgroup_head *head) argument 62 tcf_exts_destroy(&head->exts); 63 tcf_em_tree_destroy(&head->ematches); 64 tcf_exts_put_net(&head->exts); 65 kfree(head); 70 struct cls_cgroup_head *head local 85 struct cls_cgroup_head *head = rtnl_dereference(tp->root); local 137 struct cls_cgroup_head *head = rtnl_dereference(tp->root); local 157 struct cls_cgroup_head *head = rtnl_dereference(tp->root); local 175 struct cls_cgroup_head *head = rtnl_dereference(tp->root); local [all...] |
/linux-master/include/linux/ |
H A D | dma-fence-array.h | 68 * @head: potential dma_fence_array object 75 #define dma_fence_array_for_each(fence, index, head) \ 76 for (index = 0, fence = dma_fence_array_first(head); fence; \ 77 ++(index), fence = dma_fence_array_next(head, index)) 86 struct dma_fence *dma_fence_array_first(struct dma_fence *head); 87 struct dma_fence *dma_fence_array_next(struct dma_fence *head,
|
H A D | llist.h | 68 * init_llist_head - initialize lock-less list head 69 * @head: the head for your lock-less list 136 * instead of list head. 155 * instead of list head. 173 * instead of list head. 195 * instead of list head. 210 * @head: the list to test 216 static inline bool llist_empty(const struct llist_head *head) argument 218 return READ_ONCE(head 230 __llist_add_batch(struct llist_node *new_first, struct llist_node *new_last, struct llist_head *head) argument 246 llist_add(struct llist_node *new, struct llist_head *head) argument 251 __llist_add(struct llist_node *new, struct llist_head *head) argument 264 llist_del_all(struct llist_head *head) argument 269 __llist_del_all(struct llist_head *head) argument 286 llist_del_first_init(struct llist_head *head) argument [all...] |
H A D | dma-fence-unwrap.h | 33 struct dma_fence *dma_fence_unwrap_first(struct dma_fence *head, 41 * @head: starting point for the iterator 44 * potential fences in them. If @head is just a normal fence only that one is 47 #define dma_fence_unwrap_for_each(fence, cursor, head) \ 48 for (fence = dma_fence_unwrap_first(head, cursor); fence; \
|
/linux-master/tools/testing/selftests/arm64/signal/testcases/ |
H A D | sme_vl.c | 33 struct _aarch64_ctx *head = GET_SF_RESV_HEAD(sf); local 41 head = get_header(head, ZA_MAGIC, resv_sz, &offset); 42 if (!head) { 46 za = (struct za_context *)head;
|
H A D | sve_vl.c | 33 struct _aarch64_ctx *head = GET_SF_RESV_HEAD(sf); local 41 head = get_header(head, SVE_MAGIC, resv_sz, &offset); 42 if (!head) { 46 sve = (struct sve_context *)head;
|
H A D | fake_sigreturn_missing_fpsimd.c | 23 struct _aarch64_ctx *head = GET_SF_RESV_HEAD(sf); local 30 head = get_header(head, FPSIMD_MAGIC, resv_sz, &offset); 31 if (head && resv_sz - offset >= HDR_SZ) { 35 write_terminator_record(head);
|
/linux-master/drivers/nvme/host/ |
H A D | multipath.c | 102 spin_lock_irqsave(&ns->head->requeue_lock, flags); 104 bio_set_dev(bio, ns->head->disk->part0); 118 blk_steal_bios(&ns->head->requeue_list, req); 119 spin_unlock_irqrestore(&ns->head->requeue_lock, flags); 122 kblockd_schedule_work(&ns->head->requeue_work); 128 struct gendisk *disk = ns->head->disk; 145 bdev_end_io_acct(ns->head->disk->part0, req_op(rq), 156 if (!ns->head->disk) 158 kblockd_schedule_work(&ns->head->requeue_work); 160 disk_uevent(ns->head 176 struct nvme_ns_head *head = ns->head; local 207 struct nvme_ns_head *head = ns->head; local 241 __nvme_find_path(struct nvme_ns_head *head, int node) argument 280 nvme_next_ns(struct nvme_ns_head *head, struct nvme_ns *ns) argument 290 nvme_round_robin_path(struct nvme_ns_head *head, int node, struct nvme_ns *old) argument 339 nvme_find_path(struct nvme_ns_head *head) argument 355 nvme_available_path(struct nvme_ns_head *head) argument 377 struct nvme_ns_head *head = bio->bi_bdev->bd_disk->private_data; local 430 struct nvme_ns_head *head = disk->private_data; local 485 nvme_add_ns_head_cdev(struct nvme_ns_head *head) argument 501 struct nvme_ns_head *head = local 517 nvme_mpath_alloc_disk(struct nvme_ctrl *ctrl, struct nvme_ns_head *head) argument 571 struct nvme_ns_head *head = ns->head; local 882 nvme_mpath_shutdown_disk(struct nvme_ns_head *head) argument 893 nvme_mpath_remove_disk(struct nvme_ns_head *head) argument [all...] |
/linux-master/arch/x86/kernel/cpu/mce/ |
H A D | genpool.c | 57 struct llist_node *head; local 61 head = llist_del_all(&mce_event_llist); 62 if (!head) 66 llist_for_each_entry_safe(node, t, head, llnode) { 76 struct llist_node *head; local 80 head = llist_del_all(&mce_event_llist); 81 if (!head) 84 head = llist_reverse_order(head); 85 llist_for_each_entry_safe(node, tmp, head, llnod [all...] |
/linux-master/security/tomoyo/ |
H A D | gc.c | 42 struct tomoyo_io_buffer *head; local 46 list_for_each_entry(head, &tomoyo_io_buffer_list, list) { 47 head->users++; 49 mutex_lock(&head->io_sem); 50 if (head->r.domain == element || head->r.group == element || 51 head->r.acl == element || &head->w.domain->list == element) 53 mutex_unlock(&head->io_sem); 55 head 73 struct tomoyo_io_buffer *head; local 621 struct tomoyo_io_buffer *head; local 650 tomoyo_notify_gc(struct tomoyo_io_buffer *head, const bool is_register) argument [all...] |
H A D | group.c | 24 return container_of(a, struct tomoyo_path_group, head)->member_name == 25 container_of(b, struct tomoyo_path_group, head)->member_name; 39 return !memcmp(&container_of(a, struct tomoyo_number_group, head) 41 &container_of(b, struct tomoyo_number_group, head) 43 sizeof(container_of(a, struct tomoyo_number_group, head) 59 head); 61 head); 90 error = tomoyo_update_policy(&e.head, sizeof(e), param, 99 error = tomoyo_update_policy(&e.head, sizeof(e), param, 111 error = tomoyo_update_policy(&e.head, sizeo [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | linked_list.c | 15 int list_push_pop(struct bpf_spin_lock *lock, struct bpf_list_head *head, bool leave_in_map) argument 25 n = bpf_list_pop_front(head); 34 n = bpf_list_pop_back(head); 45 bpf_list_push_front(head, &f->node2); 50 n = bpf_list_pop_back(head); 62 bpf_list_push_front(head, &f->node2); 65 n = bpf_list_pop_front(head); 77 n = bpf_list_pop_front(head); 85 n = bpf_list_pop_back(head); 96 int list_push_pop_multiple(struct bpf_spin_lock *lock, struct bpf_list_head *head, boo argument 178 list_in_list(struct bpf_spin_lock *lock, struct bpf_list_head *head, bool leave_in_map) argument 248 test_list_push_pop(struct bpf_spin_lock *lock, struct bpf_list_head *head) argument 259 test_list_push_pop_multiple(struct bpf_spin_lock *lock, struct bpf_list_head *head) argument 270 test_list_in_list(struct bpf_spin_lock *lock, struct bpf_list_head *head) argument [all...] |
/linux-master/tools/virtio/ringtest/ |
H A D | ring.c | 114 unsigned head, index; local 120 head = (ring_size - 1) & (guest.avail_idx++); 125 ring[head].addr = (unsigned long)(void*)buf; 126 ring[head].len = len; 133 index = ring[head].index; 138 ring[head].flags = DESC_HW; 145 unsigned head = (ring_size - 1) & guest.last_used_idx; local 149 if (ring[head].flags & DESC_HW) 153 *lenp = ring[head].len; 154 index = ring[head] 166 unsigned head = (ring_size - 1) & guest.last_used_idx; local 221 unsigned head = (ring_size - 1) & host.used_idx; local 228 unsigned head = (ring_size - 1) & host.used_idx; local [all...] |
/linux-master/drivers/infiniband/hw/vmw_pvrdma/ |
H A D | pvrdma_ring.h | 55 atomic_t cons_head; /* Consumer head. */ 90 const __u32 head = atomic_read(&r->cons_head); local 93 pvrdma_idx_valid(head, max_elems)) { 95 return tail != (head ^ max_elems); 104 const __u32 head = atomic_read(&r->cons_head); local 107 pvrdma_idx_valid(head, max_elems)) { 108 *out_head = head & (max_elems - 1); 109 return tail != head;
|
/linux-master/tools/usb/usbip/libsrc/ |
H A D | list.h | 53 * @head: list head to add it after 55 * Insert a new entry after the specified head. 58 static inline void list_add(struct list_head *new, struct list_head *head) argument 60 __list_add(new, head, head->next); 109 * @head: the head for your list. 111 #define list_for_each(pos, head) \ 112 for (pos = (head) [all...] |
/linux-master/kernel/ |
H A D | task_work.c | 45 struct callback_head *head; local 50 head = READ_ONCE(task->task_works); 52 if (unlikely(head == &work_exited)) 54 work->next = head; 55 } while (!try_cmpxchg(&task->task_works, &head, work)); 150 struct callback_head *work, *head, *next; local 159 head = NULL; 162 head = &work_exited; 166 } while (!try_cmpxchg(&task->task_works, &work, head));
|
/linux-master/tools/lib/ |
H A D | list_sort.c | 12 * sentinel head node, "prev" links not maintained. 18 struct list_head *head, **tail = &head; local 40 return head; 51 static void merge_final(void *priv, list_cmp_func_t cmp, struct list_head *head, argument 54 struct list_head *tail = head; 96 tail->next = head; 97 head->prev = tail; 103 * @head: the list to sort 184 void list_sort(void *priv, struct list_head *head, list_cmp_func_ argument [all...] |
/linux-master/drivers/gpu/drm/nouveau/dispnv50/ |
H A D | crcc37d.h | 35 int crcc37d_set_ctx(struct nv50_head *head, struct nv50_crc_notifier_ctx *ctx); 36 u32 crcc37d_get_entry(struct nv50_head *head, struct nv50_crc_notifier_ctx *ctx, 38 bool crcc37d_ctx_finished(struct nv50_head *head, struct nv50_crc_notifier_ctx *ctx);
|
H A D | crc.c | 16 #include "head.h" 70 nv50_crc_program_ctx(struct nv50_head *head, argument 73 struct nv50_disp *disp = nv50_disp(head->base.base.dev); 77 core->func->crc->set_ctx(head, ctx); 85 struct nv50_head *head = container_of(crc, struct nv50_head, crc); local 86 struct drm_crtc *crtc = &head->base.base; 106 nv50_crc_program_ctx(head, NULL); 107 nv50_crc_program_ctx(head, &crc->ctx[new_idx]); 127 nv50_crc_get_entries(struct nv50_head *head, argument 131 struct drm_crtc *crtc = &head 152 nv50_crc_handle_vblank(struct nv50_head *head) argument 218 nv50_crc_wait_ctx_finished(struct nv50_head *head, const struct nv50_crc_func *func, struct nv50_crc_notifier_ctx *ctx) argument 245 struct nv50_head *head = nv50_head(crtc); local 277 struct nv50_head *head = nv50_head(crtc); local 301 struct nv50_head *head = nv50_head(crtc); local 324 struct nv50_head *head = nv50_head(crtc); local 349 nv50_crc_atomic_check_head(struct nv50_head *head, struct nv50_head_atom *asyh, struct nv50_head_atom *armh) argument 448 nv50_crc_atomic_set(struct nv50_head *head, struct nv50_head_atom *asyh) argument 470 nv50_crc_atomic_clr(struct nv50_head *head) argument 500 nv50_crc_ctx_init(struct nv50_head *head, struct nvif_mmu *mmu, struct nv50_crc_notifier_ctx *ctx, size_t len, int idx) argument 543 struct nv50_head *head = nv50_head(crtc); local 628 struct nv50_head *head = m->private; local 656 struct nv50_head *head = m->private; local 705 nv50_head_crc_late_register(struct nv50_head *head) argument 723 nv50_crc_init_head(struct nv50_disp *disp, const struct nv50_crc_func *func, struct nv50_head *head) argument [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | base.c | 26 #include "head.h" 42 struct nvkm_head *head = nvkm_head_find(disp, id); local 43 if (head) 44 head->func->vblank_put(head); 51 struct nvkm_head *head = nvkm_head_find(disp, id); local 52 if (head) 53 head->func->vblank_get(head); 63 nvkm_disp_vblank(struct nvkm_disp *disp, int head) argument 152 struct nvkm_head *head; local 175 struct nvkm_head *head; local [all...] |
/linux-master/arch/x86/kvm/mmu/ |
H A D | page_track.c | 154 struct kvm_page_track_notifier_head *head; local 156 head = &kvm->arch.track_notifier_head; 157 cleanup_srcu_struct(&head->track_srcu); 162 struct kvm_page_track_notifier_head *head; local 164 head = &kvm->arch.track_notifier_head; 165 INIT_HLIST_HEAD(&head->track_notifier_list); 166 return init_srcu_struct(&head->track_srcu); 220 struct kvm_page_track_notifier_head *head; local 234 head = &kvm->arch.track_notifier_head; 237 hlist_add_head_rcu(&n->node, &head 250 struct kvm_page_track_notifier_head *head; local 272 struct kvm_page_track_notifier_head *head; local 295 struct kvm_page_track_notifier_head *head; local [all...] |
/linux-master/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_cmdbuf_res.c | 40 * @head: List head used either by the staging list or the manager list 48 struct list_head head; member in struct:vmw_cmdbuf_res 89 hash_for_each_possible_rcu(man->resources, hash, head, key) { 108 list_del(&entry->head); 109 hash_del_rcu(&entry->hash.head); 128 list_for_each_entry_safe(entry, next, list, head) { 129 list_del(&entry->head); 136 list_add_tail(&entry->head, &entry->man->list); 164 list_for_each_entry_safe(entry, next, list, head) { [all...] |
/linux-master/arch/x86/platform/uv/ |
H A D | uv_time.c | 147 struct uv_rtc_timer_head *head = blade_info[bid]; local 149 if (!head) { 150 head = kmalloc_node(struct_size(head, cpu, 153 if (!head) { 157 spin_lock_init(&head->lock); 158 head->ncpus = uv_blade_nr_possible_cpus(bid); 159 head->next_cpu = -1; 160 blade_info[bid] = head; 163 head 171 uv_rtc_find_next_timer(struct uv_rtc_timer_head *head, int pnode) argument 205 struct uv_rtc_timer_head *head = blade_info[bid]; local 241 struct uv_rtc_timer_head *head = blade_info[bid]; local [all...] |
/linux-master/tools/perf/util/ |
H A D | dsos.h | 19 struct list_head head; member in struct:dsos 34 bool __dsos__read_build_ids(struct list_head *head, bool with_hits); 36 size_t __dsos__fprintf_buildid(struct list_head *head, FILE *fp, 38 size_t __dsos__fprintf(struct list_head *head, FILE *fp);
|