/linux-6.3-rc2/drivers/scsi/aic7xxx/ |
A D | queue.h | 125 #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-6.3-rc2/security/tomoyo/ |
A D | common.c | 234 head->r.w[len] = head->r.w[len + 1]; in tomoyo_flush() 253 head->r.w[head->r.w_pos++] = string; in tomoyo_set_string() 286 tomoyo_set_string(head, head->read_buf + pos); in tomoyo_io_printf() 1014 memset(&head->r, 0, sizeof(head->r)); in tomoyo_select_domain() 1700 if (head->r.w_pos || head->r.eof) in tomoyo_read_pid() 1772 (head->w.ns, &head->w.ns->acl_group[group], in tomoyo_write_exception() 2240 head->r.w[head->r.w_pos++] = buf; in tomoyo_read_query() 2545 memset(&head->r, 0, sizeof(head->r)); in tomoyo_set_namespace_cursor() 2590 head->read(head); in tomoyo_read_control() 2634 return head->write(head); in tomoyo_parse_policy() [all …]
|
A D | gc.c | 47 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-6.3-rc2/drivers/gpu/drm/nouveau/dispnv04/ |
A D | hw.c | 115 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 D | hw.h | 60 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-6.3-rc2/include/linux/ |
A D | list.h | 88 __list_add(new, head, head->next); in list_add() 102 __list_add(new, head->prev, head); in list_add_tail() 252 last->next = head; in list_bulk_move_tail() 253 head->prev = last; in list_bulk_move_tail() 292 return READ_ONCE(head->next) == head; in list_empty() 370 return !list_empty(head) && (head->next == head->prev); in list_is_singular() 404 if (list_is_singular(head) && !list_is_head(entry, head) && (entry != head->next)) in list_cut_position() 465 __list_splice(list, head, head->next); in list_splice() 477 __list_splice(list, head->prev, head); in list_splice_tail() 491 __list_splice(list, head, head->next); in list_splice_init() [all …]
|
A D | plist.h | 96 #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 D | btree-type.h | 14 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 D | freelist.h | 24 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 D | btree-128.h | 9 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-6.3-rc2/net/sched/ |
A D | cls_matchall.c | 55 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() 197 if (head) in mall_change() 244 *arg = head; in mall_change() 276 if (!head || head->deleting) in mall_walk() 345 if (!head) in mall_dump() [all …]
|
A D | cls_cgroup.c | 33 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-6.3-rc2/tools/include/linux/ |
A D | list.h | 63 __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-6.3-rc2/drivers/nvme/host/ |
A D | multipath.c | 168 struct nvme_ns_head *head = ns->head; in nvme_mpath_clear_current_path() local 172 if (!head) in nvme_mpath_clear_current_path() 199 struct nvme_ns_head *head = ns->head; in nvme_mpath_revalidate_paths() local 335 ns = srcu_dereference(head->current_path[node], &head->srcu); in nvme_find_path() 480 head->cdev_device.parent = &head->subsys->dev; in nvme_add_ns_head_cdev() 482 head->subsys->instance, head->instance); in nvme_add_ns_head_cdev() 485 ret = nvme_cdev_add(&head->cdev, &head->cdev_device, in nvme_add_ns_head_cdev() 530 head->disk->private_data = head; in nvme_mpath_alloc_disk() 561 struct nvme_ns_head *head = ns->head; in nvme_mpath_set_live() local 573 rc = device_add_disk(&head->subsys->dev, head->disk, in nvme_mpath_set_live() [all …]
|
/linux-6.3-rc2/net/netlabel/ |
A D | netlabel_addrlist.h | 83 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-6.3-rc2/tools/testing/selftests/arm64/signal/testcases/ |
A D | testcases.c | 19 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 …]
|
/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
A D | head.c | 34 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 D | vga.c | 41 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 D | uhead.c | 41 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-6.3-rc2/scripts/gdb/linux/ |
A D | lists.py | 23 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-6.3-rc2/drivers/scsi/sym53c8xx_2/ |
A D | sym_misc.h | 44 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-6.3-rc2/kernel/bpf/ |
A D | percpu_freelist.c | 17 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-6.3-rc2/lib/ |
A D | btree.c | 178 head->node = NULL; in __btree_init() 179 head->height = 0; in __btree_init() 201 mempool_free(head->node, head->mempool); in btree_destroy() 323 node = head->node; in btree_get_prev() 418 if (head->node) { in btree_grow() 424 head->height++; in btree_grow() 440 head->height--; in btree_shrink() 753 if (head->node) in btree_visitor() 754 count = __btree_for_each(head, geo, head->node, opaque, func, in btree_visitor() 771 if (head->node) in btree_grim_visitor() [all …]
|
/linux-6.3-rc2/fs/btrfs/ |
A D | lru_cache.c | 48 struct list_head *head; in btrfs_lru_cache_lookup() local 52 if (!head) in btrfs_lru_cache_lookup() 90 ASSERT(head == prev); in btrfs_lru_cache_remove() 91 kfree(head); in btrfs_lru_cache_remove() 111 struct list_head *head; in btrfs_lru_cache_store() local 114 head = kmalloc(sizeof(*head), gfp); in btrfs_lru_cache_store() 115 if (!head) in btrfs_lru_cache_store() 120 INIT_LIST_HEAD(head); in btrfs_lru_cache_store() 123 kfree(head); in btrfs_lru_cache_store() 125 ASSERT(head != NULL); in btrfs_lru_cache_store() [all …]
|
/linux-6.3-rc2/tools/virtio/ringtest/ |
A D | virtio_ring_0_9.c | 101 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 …]
|