| /linux/drivers/scsi/aic7xxx/ |
| H A D | queue.h | 112 #define SLIST_HEAD_INITIALIZER(head) \ argument 123 #define SLIST_EMPTY(head) ((head)->slh_first == NULL) argument 125 #define SLIST_FIRST(head) ((head)->slh_first) argument 127 #define SLIST_FOREACH(var, head, field) \ argument 128 for ((var) = SLIST_FIRST((head)); \ 132 #define SLIST_INIT(head) do { \ argument 133 SLIST_FIRST((head)) = NULL; \ 141 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument 142 SLIST_NEXT((elm), field) = SLIST_FIRST((head)); \ 143 SLIST_FIRST((head)) = (elm); \ [all …]
|
| /linux/security/tomoyo/ |
| H A D | common.c | 205 static bool tomoyo_flush(struct tomoyo_io_buffer *head) in tomoyo_flush() argument 207 while (head->r.w_pos) { in tomoyo_flush() 208 const char *w = head->r.w[0]; in tomoyo_flush() 212 if (len > head->read_user_buf_avail) in tomoyo_flush() 213 len = head->read_user_buf_avail; in tomoyo_flush() 216 if (copy_to_user(head->read_user_buf, w, len)) in tomoyo_flush() 218 head->read_user_buf_avail -= len; in tomoyo_flush() 219 head->read_user_buf += len; in tomoyo_flush() 222 head->r.w[0] = w; in tomoyo_flush() 226 if (head->poll) { in tomoyo_flush() [all …]
|
| H A D | gc.c | 41 struct tomoyo_io_buffer *head; in tomoyo_struct_used_by_io_buffer() 45 list_for_each_entry(head, &tomoyo_io_buffer_list, list) { in tomoyo_struct_used_by_io_buffer() 46 head->users++; in tomoyo_struct_used_by_io_buffer() 48 mutex_lock(&head->io_sem); in tomoyo_struct_used_by_io_buffer() 49 if (head->r.domain == element || head->r.group == element || in tomoyo_struct_used_by_io_buffer() 50 head->r.acl == element || &head->w.domain->list == element) in tomoyo_struct_used_by_io_buffer() 52 mutex_unlock(&head->io_sem); in tomoyo_struct_used_by_io_buffer() 54 head in tomoyo_struct_used_by_io_buffer() 42 struct tomoyo_io_buffer *head; tomoyo_struct_used_by_io_buffer() local 73 struct tomoyo_io_buffer *head; tomoyo_name_used_by_io_buffer() local 621 struct tomoyo_io_buffer *head; tomoyo_gc_thread() local 650 tomoyo_notify_gc(struct tomoyo_io_buffer * head,const bool is_register) tomoyo_notify_gc() argument [all...] |
| /linux/drivers/gpu/drm/nouveau/dispnv04/ |
| H A D | hw.c | 39 NVWriteVgaSeq(struct drm_device *dev, int head, uint8_t index, uint8_t value) in NVWriteVgaSeq() argument 41 NVWritePRMVIO(dev, head, NV_PRMVIO_SRX, index); in NVWriteVgaSeq() 42 NVWritePRMVIO(dev, head, NV_PRMVIO_SR, value); in NVWriteVgaSeq() 46 NVReadVgaSeq(struct drm_device *dev, int head, uint8_t index) in NVReadVgaSeq() argument 48 NVWritePRMVIO(dev, head, NV_PRMVIO_SRX, index); in NVReadVgaSeq() 49 return NVReadPRMVIO(dev, head, NV_PRMVIO_SR); in NVReadVgaSeq() 53 NVWriteVgaGr(struct drm_device *dev, int head, uint8_t index, uint8_t value) in NVWriteVgaGr() argument 55 NVWritePRMVIO(dev, head, NV_PRMVIO_GRX, index); in NVWriteVgaGr() 56 NVWritePRMVIO(dev, head, NV_PRMVIO_GX, value); in NVWriteVgaGr() 60 NVReadVgaGr(struct drm_device *dev, int head, uint8_t index) in NVReadVgaGr() argument [all …]
|
| H A D | hw.h | 37 void NVWriteVgaSeq(struct drm_device *, int head, uint8_t index, uint8_t value); 38 uint8_t NVReadVgaSeq(struct drm_device *, int head, uint8_t index); 39 void NVWriteVgaGr(struct drm_device *, int head, uint8_t index, uint8_t value); 40 uint8_t NVReadVgaGr(struct drm_device *, int head, uint8_t index); 42 void NVBlankScreen(struct drm_device *, int head, bool blank); 48 void nouveau_hw_save_state(struct drm_device *, int head, 50 void nouveau_hw_load_state(struct drm_device *, int head, 52 void nouveau_hw_load_state_palette(struct drm_device *, int head, 60 int head, uint32_t reg) in NVReadCRTC() argument 64 if (head) in NVReadCRTC() [all …]
|
| /linux/drivers/nvme/host/ |
| H A D | multipath.c | 167 spin_lock_irqsave(&ns->head->requeue_lock, flags); in nvme_failover_req() 169 bio_set_dev(bio, ns->head->disk->part0); in nvme_failover_req() 170 blk_steal_bios(&ns->head->requeue_list, req); in nvme_failover_req() 171 spin_unlock_irqrestore(&ns->head->requeue_lock, flags); in nvme_failover_req() 175 kblockd_schedule_work(&ns->head->requeue_work); in nvme_failover_req() 181 struct gendisk *disk = ns->head->disk; in nvme_mpath_start_request() 183 if ((READ_ONCE(ns->head->subsys->iopolicy) == NVME_IOPOLICY_QD) && in nvme_mpath_start_request() 211 bdev_end_io_acct(ns->head->disk->part0, req_op(rq), in nvme_mpath_end_request() 224 if (!ns->head->disk) in nvme_kick_requeue_lists() 226 kblockd_schedule_work(&ns->head in nvme_kick_requeue_lists() 244 struct nvme_ns_head *head = ns->head; nvme_mpath_clear_current_path() local 271 nvme_mpath_revalidate_paths(struct nvme_ns_head * head) nvme_mpath_revalidate_paths() argument 292 nvme_mpath_revalidate_zones(struct nvme_ns_head * head) nvme_mpath_revalidate_zones() argument 327 __nvme_find_path(struct nvme_ns_head * head,int node) __nvme_find_path() argument 369 nvme_next_ns(struct nvme_ns_head * head,struct nvme_ns * ns) nvme_next_ns() argument 380 nvme_round_robin_path(struct nvme_ns_head * head) nvme_round_robin_path() argument 429 nvme_queue_depth_path(struct nvme_ns_head * head) nvme_queue_depth_path() argument 473 nvme_numa_path(struct nvme_ns_head * head) nvme_numa_path() argument 487 nvme_find_path(struct nvme_ns_head * head) nvme_find_path() argument 499 nvme_available_path(struct nvme_ns_head * head) nvme_available_path() argument 535 struct nvme_ns_head *head = bio->bi_bdev->bd_disk->private_data; nvme_ns_head_submit_bio() local 595 struct nvme_ns_head *head = disk->private_data; nvme_ns_head_get_unique_id() local 611 struct nvme_ns_head *head = disk->private_data; nvme_ns_head_report_zones() local 647 nvme_add_ns_head_cdev(struct nvme_ns_head * head) nvme_add_ns_head_cdev() argument 666 struct nvme_ns_head *head = nvme_partition_scan_work() local 680 struct nvme_ns_head *head = nvme_requeue_work() local 696 nvme_remove_head(struct nvme_ns_head * head) nvme_remove_head() argument 716 struct nvme_ns_head *head = container_of(to_delayed_work(work), nvme_remove_head_work() local 732 nvme_mpath_alloc_disk(struct nvme_ctrl * ctrl,struct nvme_ns_head * head) nvme_mpath_alloc_disk() argument 788 struct nvme_ns_head *head = ns->head; nvme_mpath_set_live() local 1120 struct nvme_ns_head *head = ns->head; numa_nodes_show() local 1144 struct nvme_ns_head *head = disk->private_data; delayed_removal_secs_show() local 1157 struct nvme_ns_head *head = disk->private_data; delayed_removal_secs_store() local 1213 struct nvme_ns_head *head = disk->private_data; io_requeue_no_usable_path_count_show() local 1225 struct nvme_ns_head *head = disk->private_data; io_requeue_no_usable_path_count_store() local 1242 struct nvme_ns_head *head = disk->private_data; io_fail_no_available_path_count_show() local 1254 struct nvme_ns_head *head = disk->private_data; io_fail_no_available_path_count_store() local 1279 nvme_mpath_add_sysfs_link(struct nvme_ns_head * head) nvme_mpath_add_sysfs_link() argument 1385 nvme_mpath_remove_disk(struct nvme_ns_head * head) nvme_mpath_remove_disk() argument 1422 nvme_mpath_put_disk(struct nvme_ns_head * head) nvme_mpath_put_disk() argument [all...] |
| /linux/tools/include/linux/ |
| H A D | list.h | 61 static inline void list_add(struct list_head *new, struct list_head *head) in list_add() argument 63 __list_add(new, head, head->next); in list_add() 75 static inline void list_add_tail(struct list_head *new, struct list_head *head) in list_add_tail() argument 77 __list_add(new, head->prev, head); in list_add_tail() 154 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument 157 list_add(list, head); in list_move() 166 struct list_head *head) in list_move_tail() argument 169 list_add_tail(list, head); in list_move_tail() 177 static inline int list_is_first(const struct list_head *list, const struct list_head *head) in list_is_first() argument 179 return list->prev == head; in list_is_first() [all …]
|
| /linux/include/linux/ |
| H A D | plist.h | 86 #define PLIST_HEAD_INIT(head) \ argument 88 .node_list = LIST_HEAD_INIT((head).node_list) \ 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() 132 extern void plist_add(struct plist_node *node, struct plist_head *head); 133 extern void plist_del(struct plist_node *node, struct plist_head *head); 135 extern void plist_requeue(struct plist_node *node, struct plist_head *head); 142 #define plist_for_each(pos, head) \ argument [all …]
|
| H 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() 38 static inline void *BTREE_FN(lookup)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE key) in BTREE_FN() 41 return btree_lookup(&head->h, BTREE_TYPE_GEO, &_key); in BTREE_FN() 44 static inline int BTREE_FN(insert)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE key, in BTREE_FN() 48 return btree_insert(&head->h, BTREE_TYPE_GEO, &_key, val, gfp); in BTREE_FN() [all …]
|
| H A D | btree-128.h | 6 static inline void btree_init_mempool128(struct btree_head128 *head, in btree_init_mempool128() argument 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() 17 static inline void btree_destroy128(struct btree_head128 *head) in btree_destroy128() argument 19 btree_destroy(&head->h); in btree_destroy128() 22 static inline void *btree_lookup128(struct btree_head128 *head, u64 k1, u64 k2) in btree_lookup128() argument 25 return btree_lookup(&head->h, &btree_geo128, (unsigned long *)&key); in btree_lookup128() 28 static inline void *btree_get_prev128(struct btree_head128 *head, in btree_get_prev128() argument 34 val = btree_get_prev(&head->h, &btree_geo128, in btree_get_prev128() [all …]
|
| /linux/net/sched/ |
| H A D | cls_matchall.c | 32 struct cls_mall_head *head = rcu_dereference_bh(tp->root); in mall_classify() local 34 if (unlikely(!head)) in mall_classify() 37 if (tc_skip_sw(head->flags)) in mall_classify() 40 *res = head->res; in mall_classify() 41 __this_cpu_inc(head->pf->rhit); in mall_classify() 42 return tcf_exts_exec(skb, &head->exts, res); in mall_classify() 50 static void __mall_destroy(struct cls_mall_head *head) in __mall_destroy() argument 52 tcf_exts_destroy(&head->exts); in __mall_destroy() 53 tcf_exts_put_net(&head->exts); in __mall_destroy() 54 free_percpu(head in __mall_destroy() 60 struct cls_mall_head *head = container_of(to_rcu_work(work), mall_destroy_work() local 69 mall_destroy_hw_filter(struct tcf_proto * tp,struct cls_mall_head * head,unsigned long cookie,struct netlink_ext_ack * extack) mall_destroy_hw_filter() argument 85 mall_replace_hw_filter(struct tcf_proto * tp,struct cls_mall_head * head,unsigned long cookie,struct netlink_ext_ack * extack) mall_replace_hw_filter() argument 130 struct cls_mall_head *head = rtnl_dereference(tp->root); mall_destroy() local 148 struct cls_mall_head *head = rtnl_dereference(tp->root); mall_get() local 168 struct cls_mall_head *head = rtnl_dereference(tp->root); mall_change() local 252 struct cls_mall_head *head = rtnl_dereference(tp->root); mall_delete() local 262 struct cls_mall_head *head = rtnl_dereference(tp->root); mall_walk() local 278 struct cls_mall_head *head = rtnl_dereference(tp->root); mall_reoffload() local 313 mall_stats_hw_filter(struct tcf_proto * tp,struct cls_mall_head * head,unsigned long cookie) mall_stats_hw_filter() argument 332 struct cls_mall_head *head = fh; mall_dump() local 384 struct cls_mall_head *head = fh; mall_bind_class() local [all...] |
| H A D | cls_cgroup.c | 30 struct cls_cgroup_head *head = rcu_dereference_bh(tp->root); in cls_cgroup_classify() local 33 if (unlikely(!head)) in cls_cgroup_classify() 37 if (!tcf_em_tree_match(skb, &head->ematches, NULL)) in cls_cgroup_classify() 43 return tcf_exts_exec(skb, &head->exts, res); in cls_cgroup_classify() 60 static void __cls_cgroup_destroy(struct cls_cgroup_head *head) in __cls_cgroup_destroy() argument 62 tcf_exts_destroy(&head->exts); in __cls_cgroup_destroy() 63 tcf_em_tree_destroy(&head->ematches); in __cls_cgroup_destroy() 64 tcf_exts_put_net(&head->exts); in __cls_cgroup_destroy() 65 kfree(head); in __cls_cgroup_destroy() 70 struct cls_cgroup_head *head in cls_cgroup_destroy_work() local 85 struct cls_cgroup_head *head = rtnl_dereference(tp->root); cls_cgroup_change() local 137 struct cls_cgroup_head *head = rtnl_dereference(tp->root); cls_cgroup_destroy() local 157 struct cls_cgroup_head *head = rtnl_dereference(tp->root); cls_cgroup_walk() local 175 struct cls_cgroup_head *head = rtnl_dereference(tp->root); cls_cgroup_dump() local [all...] |
| /linux/fs/btrfs/tests/ |
| H A D | delayed-refs-tests.c | 44 struct btrfs_delayed_ref_head *head) in delete_delayed_ref_head() argument 51 spin_lock(&head->lock); in delete_delayed_ref_head() 52 btrfs_delete_ref_head(fs_info, delayed_refs, head); in delete_delayed_ref_head() 53 spin_unlock(&head->lock); in delete_delayed_ref_head() 56 btrfs_delayed_ref_unlock(head); in delete_delayed_ref_head() 57 btrfs_put_delayed_ref_head(head); in delete_delayed_ref_head() 60 static void delete_delayed_ref_node(struct btrfs_delayed_ref_head *head, in delete_delayed_ref_node() argument 63 rb_erase_cached(&node->ref_node, &head->ref_tree); in delete_delayed_ref_node() 70 static int validate_ref_head(struct btrfs_delayed_ref_head *head, in validate_ref_head() argument 73 if (head->bytenr != check->bytenr) { in validate_ref_head() [all …]
|
| /linux/net/netlabel/ |
| H A D | netlabel_addrlist.h | 82 #define netlbl_af4list_foreach(iter, head) \ argument 83 for (iter = __af4list_valid((head)->next, head); \ 84 &iter->list != (head); \ 85 iter = __af4list_valid(iter->list.next, head)) 87 #define netlbl_af4list_foreach_rcu(iter, head) \ argument 88 for (iter = __af4list_valid_rcu((head)->next, head); \ 89 &iter->list != (head); \ 90 iter = __af4list_valid_rcu(iter->list.next, head)) 92 #define netlbl_af4list_foreach_safe(iter, tmp, head) \ argument 93 for (iter = __af4list_valid((head)->next, head), \ [all …]
|
| /linux/tools/testing/selftests/futex/functional/ |
| H A D | robust_list.c | 54 static int set_robust_list(struct robust_list_head *head, size_t len) in get_robust_list() 56 return syscall(SYS_set_robust_list, head, len); 59 static int get_robust_list(int pid, struct robust_list_head **head, size_t *len_ptr) 61 return syscall(SYS_get_robust_list, pid, head, len_ptr); 121 static int set_list(struct robust_list_head *head) in mutex_lock() 125 ret = set_robust_list(head, sizeof(*head)); in mutex_lock() 129 head->futex_offset = (size_t) offsetof(struct lock_struct, futex) - in mutex_lock() 131 head->list.next = &head in mutex_lock() 47 set_robust_list(struct robust_list_head * head,size_t len) set_robust_list() argument 52 get_robust_list(int pid,struct robust_list_head ** head,size_t * len_ptr) get_robust_list() argument 92 set_list(struct robust_list_head * head) set_list() argument 111 mutex_lock(struct lock_struct * lock,struct robust_list_head * head,bool error_inject) mutex_lock() argument 174 struct robust_list_head head; child_fn_lock() local 211 struct robust_list_head head; TEST() local 251 struct robust_list_head head; TEST() local 278 struct robust_list_head head, head2, *get_head; TEST() local 303 struct robust_list_head *head = arg; child_list() local 331 struct robust_list_head head, *get_head; TEST() local 363 struct robust_list_head head; child_fn_lock_with_error() local 395 struct robust_list_head head; TEST() local 429 struct robust_list_head head; child_lock_holder() local 451 struct robust_list_head head; child_wait_lock() local 512 static struct robust_list_head head; child_circular_list() local [all...] |
| /linux/kernel/bpf/ |
| H A D | percpu_freelist.c | 15 struct pcpu_freelist_head *head = per_cpu_ptr(s->freelist, cpu); in pcpu_freelist_init() local 17 raw_res_spin_lock_init(&head->lock); in pcpu_freelist_init() 18 head->first = NULL; in pcpu_freelist_init() 30 static inline void pcpu_freelist_push_node(struct pcpu_freelist_head *head, in pcpu_freelist_push_node() argument 33 node->next = head->first; in pcpu_freelist_push_node() 34 WRITE_ONCE(head->first, node); in pcpu_freelist_push_node() 37 static inline bool ___pcpu_freelist_push(struct pcpu_freelist_head *head, in ___pcpu_freelist_push() argument 40 if (raw_res_spin_lock(&head->lock)) in ___pcpu_freelist_push() 42 pcpu_freelist_push_node(head, node); in ___pcpu_freelist_push() 43 raw_res_spin_unlock(&head->lock); in ___pcpu_freelist_push() [all …]
|
| /linux/tools/testing/selftests/arm64/signal/testcases/ |
| H A D | testcases.c | 18 term = GET_RESV_NEXT_HEAD(&extra->head); in validate_extra_context() 48 if ((sve->head.size != sizeof(struct sve_context)) && in validate_sve_context() 49 (sve->head.size != regs_size)) { in validate_sve_context() 73 if ((za->head.size != sizeof(struct za_context)) && in validate_za_context() 74 (za->head.size != regs_size)) { in validate_za_context() 100 if (zt->head.size != ZT_SIG_CONTEXT_SIZE(zt->nregs)) { in validate_zt_context() 118 struct _aarch64_ctx *head = in validate_reserved() local 127 while (head && !terminated && offs < resv_sz) { in validate_reserved() 128 if ((uint64_t)head & 0x0fUL) { in validate_reserved() 135 switch (head->magic) { in validate_reserved() [all …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
| H 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() 45 struct nvkm_head *head = *phead; in nvkm_head_del() local 46 if (head) { in nvkm_head_del() 47 HEAD_DBG(head, "dtor"); in nvkm_head_del() 48 list_del(&head->head); in nvkm_head_del() 58 struct nvkm_head *head; in nvkm_head_new_() local 59 if (!(head = kzalloc_obj(*head))) in nvkm_head_new_() [all …]
|
| H A D | vga.c | 27 nvkm_rdport(struct nvkm_device *device, int head, u16 port) in nvkm_rdport() argument 35 return nvkm_rd08(device, 0x601000 + (head * 0x2000) + port); in nvkm_rdport() 41 head = 0; /* CR44 selects head */ in nvkm_rdport() 42 return nvkm_rd08(device, 0x0c0000 + (head * 0x2000) + port); in nvkm_rdport() 49 nvkm_wrport(struct nvkm_device *device, int head, u16 port, u8 data) in nvkm_wrport() argument 57 nvkm_wr08(device, 0x601000 + (head * 0x2000) + port, data); in nvkm_wrport() 63 head = 0; /* CR44 selects head */ in nvkm_wrport() 64 nvkm_wr08(device, 0x0c0000 + (head * 0x2000) + port, data); in nvkm_wrport() 69 nvkm_rdvgas(struct nvkm_device *device, int head, u8 index) in nvkm_rdvgas() argument 71 nvkm_wrport(device, head, 0x03c4, index); in nvkm_rdvgas() [all …]
|
| H A D | uhead.c | 33 struct nvkm_head *head = nvkm_uhead(object); in nvkm_uhead_uevent() local 41 return nvkm_uevent_add(uevent, &head->disp->vblank, head->id, in nvkm_uhead_uevent() 46 nvkm_uhead_mthd_scanoutpos(struct nvkm_head *head, void *argv, u32 argc) in nvkm_uhead_mthd_scanoutpos() argument 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() 56 args->v0.vblanke = head->arm.vblanke; in nvkm_uhead_mthd_scanoutpos() 57 args->v0.htotal = head->arm.htotal; in nvkm_uhead_mthd_scanoutpos() 58 args->v0.hblanks = head->arm.hblanks; in nvkm_uhead_mthd_scanoutpos() 59 args->v0.hblanke = head->arm.hblanke; in nvkm_uhead_mthd_scanoutpos() [all …]
|
| /linux/drivers/scsi/sym53c8xx_2/ |
| H A D | sym_misc.h | 42 static inline struct sym_quehead *sym_que_first(struct sym_quehead *head) in sym_que_first() argument 44 return (head->flink == head) ? 0 : head->flink; in sym_que_first() 47 static inline struct sym_quehead *sym_que_last(struct sym_quehead *head) in sym_que_last() argument 49 return (head->blink == head) ? 0 : head->blink; in sym_que_last() 69 static inline int sym_que_empty(struct sym_quehead *head) in sym_que_empty() argument 71 return head->flink == head; in sym_que_empty() 75 struct sym_quehead *head) in sym_que_splice() argument 81 struct sym_quehead *at = head->flink; in sym_que_splice() 83 first->blink = head; in sym_que_splice() 84 head->flink = first; in sym_que_splice() [all …]
|
| /linux/scripts/gdb/linux/ |
| H A D | lists.py | 23 def list_for_each(head): argument 24 if head.type == list_head.get_type().pointer(): 25 head = head.dereference() 26 elif head.type != list_head.get_type(): 28 .format(head.type)) 30 if head['next'] == 0: 32 .format(head.address)) 35 node = head['next'].dereference() 36 while node.address != head.address: 41 def list_for_each_entry(head, gdbtype, member): argument [all …]
|
| /linux/fs/proc/ |
| H A D | proc_sysctl.c | 93 static int insert_links(struct ctl_table_header *head); 116 struct ctl_table_header *head; in find_entry() local 129 head = ctl_node->header; in find_entry() 130 entry = &head->ctl_table[ctl_node - head->node]; in find_entry() 139 *phead = head; in find_entry() 146 static int insert_entry(struct ctl_table_header *head, const struct ctl_table *entry) in insert_entry() argument 148 struct rb_node *node = &head->node[entry - head->ctl_table].node; in insert_entry() 149 struct rb_node **p = &head in insert_entry() 185 erase_entry(struct ctl_table_header * head,const struct ctl_table * entry) erase_entry() argument 192 init_header(struct ctl_table_header * head,struct ctl_table_root * root,struct ctl_table_set * set,struct ctl_node * node,const struct ctl_table * table,size_t table_size) init_header() argument 220 erase_header(struct ctl_table_header * head) erase_header() argument 287 proc_sys_invalidate_dcache(struct ctl_table_header * head) proc_sys_invalidate_dcache() argument 325 sysctl_head_grab(struct ctl_table_header * head) sysctl_head_grab() argument 335 sysctl_head_finish(struct ctl_table_header * head) sysctl_head_finish() argument 357 struct ctl_table_header *head; lookup_entry() local 385 struct ctl_table_header *head = NULL; first_entry() local 402 struct ctl_table_header *head = *phead; next_entry() local 436 sysctl_perm(struct ctl_table_header * head,const struct ctl_table * table,int op) sysctl_perm() argument 450 proc_sys_make_inode(struct super_block * sb,struct ctl_table_header * head,const struct ctl_table * table) proc_sys_make_inode() argument 498 proc_sys_evict_inode(struct inode * inode,struct ctl_table_header * head) proc_sys_evict_inode() argument 509 struct ctl_table_header *head = PROC_I(inode)->sysctl; grab_header() local 518 struct ctl_table_header *head = grab_header(dir); proc_sys_lookup() local 557 struct ctl_table_header *head = grab_header(inode); proc_sys_call_handler() local 631 struct ctl_table_header *head = grab_header(inode); proc_sys_open() local 649 struct ctl_table_header *head = grab_header(inode); proc_sys_poll() local 680 proc_sys_fill_cache(struct file * file,struct dir_context * ctx,struct ctl_table_header * head,const struct ctl_table * table) proc_sys_fill_cache() argument 723 proc_sys_link_fill_cache(struct file * file,struct dir_context * ctx,struct ctl_table_header * head,const struct ctl_table * table) proc_sys_link_fill_cache() argument 742 scan(struct ctl_table_header * head,const struct ctl_table * table,unsigned long * pos,struct file * file,struct dir_context * ctx) scan() argument 764 struct ctl_table_header *head = grab_header(file_inode(file)); proc_sys_readdir() local 798 struct ctl_table_header *head; proc_sys_permission() local 842 struct ctl_table_header *head = grab_header(inode); proc_sys_getattr() local 916 struct ctl_table_header *head; proc_sys_compare() local 946 struct ctl_table_header *head; find_subdir() local 1060 struct ctl_table_header *head; sysctl_follow_link() local 1179 new_links(struct ctl_dir * dir,struct ctl_table_header * head) new_links() argument 1256 insert_links(struct ctl_table_header * head) insert_links() argument [all...] |
| /linux/lib/ |
| H A D | btree.c | 92 static unsigned long *btree_node_alloc(struct btree_head *head, gfp_t gfp) in btree_node_alloc() argument 96 node = mempool_alloc(head->mempool, gfp); in btree_node_alloc() 175 static inline void __btree_init(struct btree_head *head) in __btree_init() argument 177 head->node = NULL; in __btree_init() 178 head->height = 0; in __btree_init() 181 void btree_init_mempool(struct btree_head *head, mempool_t *mempool) in btree_init_mempool() argument 183 __btree_init(head); in btree_init_mempool() 184 head->mempool = mempool; in btree_init_mempool() 188 int btree_init(struct btree_head *head) in btree_init() argument 190 __btree_init(head); in btree_init() [all …]
|
| /linux/tools/virtio/ringtest/ |
| H A D | virtio_ring_0_9.c | 101 unsigned head; in add_inbuf() local 111 head = (ring_size - 1) & (guest.avail_idx++); in add_inbuf() 113 head = guest.free_head; in add_inbuf() 118 desc[head].flags = VRING_DESC_F_NEXT; in add_inbuf() 119 desc[head].addr = (unsigned long)(void *)buf; in add_inbuf() 120 desc[head].len = len; in add_inbuf() 125 desc[head].flags &= ~VRING_DESC_F_NEXT; in add_inbuf() 127 guest.free_head = desc[head].next; in add_inbuf() 130 data[head].data = datap; in add_inbuf() 137 (head | (avail & ~(ring_size - 1))) ^ 0x8000; in add_inbuf() [all …]
|