/Linux-v4.19/drivers/scsi/aic7xxx/ |
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-v4.19/security/tomoyo/ |
D | common.c | 212 static bool tomoyo_flush(struct tomoyo_io_buffer *head) in tomoyo_flush() argument 214 while (head->r.w_pos) { in tomoyo_flush() 215 const char *w = head->r.w[0]; in tomoyo_flush() 218 if (len > head->read_user_buf_avail) in tomoyo_flush() 219 len = head->read_user_buf_avail; in tomoyo_flush() 222 if (copy_to_user(head->read_user_buf, w, len)) in tomoyo_flush() 224 head->read_user_buf_avail -= len; in tomoyo_flush() 225 head->read_user_buf += len; in tomoyo_flush() 228 head->r.w[0] = w; in tomoyo_flush() 232 if (head->poll) { in tomoyo_flush() [all …]
|
/Linux-v4.19/drivers/gpu/drm/nouveau/dispnv04/ |
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 …]
|
D | hw.h | 38 void NVWriteVgaSeq(struct drm_device *, int head, uint8_t index, uint8_t value); 39 uint8_t NVReadVgaSeq(struct drm_device *, int head, uint8_t index); 40 void NVWriteVgaGr(struct drm_device *, int head, uint8_t index, uint8_t value); 41 uint8_t NVReadVgaGr(struct drm_device *, int head, uint8_t index); 43 void NVBlankScreen(struct drm_device *, int head, bool blank); 49 void nouveau_hw_save_state(struct drm_device *, int head, 51 void nouveau_hw_load_state(struct drm_device *, int head, 53 void nouveau_hw_load_state_palette(struct drm_device *, int head, 61 int head, uint32_t reg) in NVReadCRTC() argument 65 if (head) in NVReadCRTC() [all …]
|
/Linux-v4.19/include/linux/ |
D | plist.h | 95 #define PLIST_HEAD_INIT(head) \ argument 97 .node_list = LIST_HEAD_INIT((head).node_list) \ 104 #define PLIST_HEAD(head) \ argument 105 struct plist_head head = PLIST_HEAD_INIT(head) 124 plist_head_init(struct plist_head *head) in plist_head_init() argument 126 INIT_LIST_HEAD(&head->node_list); in plist_head_init() 141 extern void plist_add(struct plist_node *node, struct plist_head *head); 142 extern void plist_del(struct plist_node *node, struct plist_head *head); 144 extern void plist_requeue(struct plist_node *node, struct plist_head *head); 151 #define plist_for_each(pos, head) \ argument [all …]
|
D | list.h | 77 static inline void list_add(struct list_head *new, struct list_head *head) in list_add() argument 79 __list_add(new, head, head->next); in list_add() 91 static inline void list_add_tail(struct list_head *new, struct list_head *head) in list_add_tail() argument 93 __list_add(new, head->prev, head); in list_add_tail() 168 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument 171 list_add(list, head); in list_move() 180 struct list_head *head) in list_move_tail() argument 183 list_add_tail(list, head); in list_move_tail() 192 const struct list_head *head) in list_is_last() argument 194 return list->next == head; in list_is_last() [all …]
|
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 …]
|
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-v4.19/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | head.c | 34 struct nvkm_head *head; in nvkm_head_find() local 35 list_for_each_entry(head, &disp->head, head) { in nvkm_head_find() 36 if (head->id == id) in nvkm_head_find() 37 return head; in nvkm_head_find() 44 struct nvkm_head *head, void *data, u32 size) in nvkm_head_mthd_scanoutpos() argument 56 head->func->state(head, &head->arm); in nvkm_head_mthd_scanoutpos() 57 args->v0.vtotal = head->arm.vtotal; in nvkm_head_mthd_scanoutpos() 58 args->v0.vblanks = head->arm.vblanks; in nvkm_head_mthd_scanoutpos() 59 args->v0.vblanke = head->arm.vblanke; in nvkm_head_mthd_scanoutpos() 60 args->v0.htotal = head->arm.htotal; in nvkm_head_mthd_scanoutpos() [all …]
|
D | gf119.c | 40 struct nvkm_head *head; in gf119_disp_super() local 44 list_for_each_entry(head, &disp->base.head, head) { in gf119_disp_super() 45 mask[head->id] = nvkm_rd32(device, 0x6101d4 + (head->id * 0x800)); 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() 53 if (!(mask[head->id] & 0x00001000)) in gf119_disp_super() 55 nv50_disp_super_1_0(disp, head); in gf119_disp_super() 59 list_for_each_entry(head, &disp->base.head, head) { in gf119_disp_super() 60 if (!(mask[head->id] & 0x00001000)) in gf119_disp_super() 62 nv50_disp_super_2_0(disp, head); in gf119_disp_super() [all …]
|
D | nv50.c | 97 disp->head.nr = func->head.cnt(&disp->base, &disp->head.mask); in nv50_disp_oneinit_() 99 disp->head.nr, disp->head.mask); in nv50_disp_oneinit_() 100 for_each_set_bit(i, &disp->head.mask, disp->head.nr) { in nv50_disp_oneinit_() 101 ret = func->head.new(&disp->base, i); in nv50_disp_oneinit_() 183 nv50_disp_super_iedt(struct nvkm_head *head, struct nvkm_outp *outp, in nv50_disp_super_iedt() argument 187 struct nvkm_bios *bios = head->disp->engine.subdev.device->bios; in nv50_disp_super_iedt() 190 const u16 m = (0x0100 << head->id) | (l << 6) | outp->info.or; in nv50_disp_super_iedt() 198 nv50_disp_super_ied_on(struct nvkm_head *head, in nv50_disp_super_ied_on() argument 201 struct nvkm_subdev *subdev = &head->disp->engine.subdev; in nv50_disp_super_ied_on() 215 data = nv50_disp_super_iedt(head, outp, &ver, &hdr, &cnt, &len, &iedt); in nv50_disp_super_ied_on() [all …]
|
D | gv100.c | 46 struct nvkm_head *head; in gv100_disp_super() local 51 list_for_each_entry(head, &disp->base.head, head) { in gv100_disp_super() 52 mask[head->id] = nvkm_rd32(device, 0x6107ac + (head->id * 4)); 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() 60 if (!(mask[head->id] & 0x00001000)) in gv100_disp_super() 62 nv50_disp_super_1_0(disp, head); in gv100_disp_super() 66 list_for_each_entry(head, &disp->base.head, head) { in gv100_disp_super() 67 if (!(mask[head->id] & 0x00001000)) in gv100_disp_super() 69 nv50_disp_super_2_0(disp, head); in gv100_disp_super() [all …]
|
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 …]
|
/Linux-v4.19/tools/include/linux/ |
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() 178 const struct list_head *head) in list_is_last() argument 180 return list->next == head; in list_is_last() [all …]
|
/Linux-v4.19/net/sched/ |
D | cls_matchall.c | 31 struct cls_mall_head *head = rcu_dereference_bh(tp->root); in mall_classify() local 33 if (tc_skip_sw(head->flags)) in mall_classify() 36 *res = head->res; in mall_classify() 37 return tcf_exts_exec(skb, &head->exts, res); in mall_classify() 45 static void __mall_destroy(struct cls_mall_head *head) in __mall_destroy() argument 47 tcf_exts_destroy(&head->exts); in __mall_destroy() 48 tcf_exts_put_net(&head->exts); in __mall_destroy() 49 kfree(head); in __mall_destroy() 54 struct cls_mall_head *head = container_of(to_rcu_work(work), in mall_destroy_work() local 58 __mall_destroy(head); in mall_destroy_work() [all …]
|
D | cls_cgroup.c | 32 struct cls_cgroup_head *head = rcu_dereference_bh(tp->root); in cls_cgroup_classify() local 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 = container_of(to_rcu_work(work), in cls_cgroup_destroy_work() local 74 __cls_cgroup_destroy(head); in cls_cgroup_destroy_work() [all …]
|
/Linux-v4.19/net/netlabel/ |
D | netlabel_addrlist.h | 96 #define netlbl_af4list_foreach(iter, head) \ argument 97 for (iter = __af4list_valid((head)->next, head); \ 98 &iter->list != (head); \ 99 iter = __af4list_valid(iter->list.next, head)) 101 #define netlbl_af4list_foreach_rcu(iter, head) \ argument 102 for (iter = __af4list_valid_rcu((head)->next, head); \ 103 &iter->list != (head); \ 104 iter = __af4list_valid_rcu(iter->list.next, head)) 106 #define netlbl_af4list_foreach_safe(iter, tmp, head) \ argument 107 for (iter = __af4list_valid((head)->next, head), \ [all …]
|
/Linux-v4.19/drivers/nvme/host/ |
D | multipath.c | 39 sprintf(disk_name, "nvme%dn%d", ctrl->instance, ns->head->instance); in nvme_set_disk_name() 40 } else if (ns->head->disk) { in nvme_set_disk_name() 42 ctrl->cntlid, ns->head->instance); in nvme_set_disk_name() 46 ns->head->instance); in nvme_set_disk_name() 56 spin_lock_irqsave(&ns->head->requeue_lock, flags); in nvme_failover_req() 57 blk_steal_bios(&ns->head->requeue_list, req); in nvme_failover_req() 58 spin_unlock_irqrestore(&ns->head->requeue_lock, flags); in nvme_failover_req() 89 kblockd_schedule_work(&ns->head->requeue_work); in nvme_failover_req() 98 if (ns->head->disk) in nvme_kick_requeue_lists() 99 kblockd_schedule_work(&ns->head->requeue_work); in nvme_kick_requeue_lists() [all …]
|
/Linux-v4.19/drivers/scsi/sym53c8xx_2/ |
D | sym_misc.h | 55 static inline struct sym_quehead *sym_que_first(struct sym_quehead *head) in sym_que_first() argument 57 return (head->flink == head) ? 0 : head->flink; in sym_que_first() 60 static inline struct sym_quehead *sym_que_last(struct sym_quehead *head) in sym_que_last() argument 62 return (head->blink == head) ? 0 : head->blink; in sym_que_last() 82 static inline int sym_que_empty(struct sym_quehead *head) in sym_que_empty() argument 84 return head->flink == head; in sym_que_empty() 88 struct sym_quehead *head) in sym_que_splice() argument 94 struct sym_quehead *at = head->flink; in sym_que_splice() 96 first->blink = head; in sym_que_splice() 97 head->flink = first; in sym_que_splice() [all …]
|
/Linux-v4.19/drivers/gpu/drm/nouveau/dispnv50/ |
D | head907d.c | 26 head907d_or(struct nv50_head *head, struct nv50_head_atom *asyh) in head907d_or() argument 28 struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan; in head907d_or() 31 evo_mthd(push, 0x0404 + (head->base.index * 0x300), 2); in head907d_or() 35 evo_data(push, 0x31ec6000 | head->base.index << 25 | in head907d_or() 42 head907d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh) in head907d_procamp() argument 44 struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan; in head907d_procamp() 47 evo_mthd(push, 0x0498 + (head->base.index * 0x300), 1); in head907d_procamp() 55 head907d_dither(struct nv50_head *head, struct nv50_head_atom *asyh) in head907d_dither() argument 57 struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan; in head907d_dither() 60 evo_mthd(push, 0x0490 + (head->base.index * 0x0300), 1); in head907d_dither() [all …]
|
/Linux-v4.19/lib/ |
D | btree.c | 95 static unsigned long *btree_node_alloc(struct btree_head *head, gfp_t gfp) in btree_node_alloc() argument 99 node = mempool_alloc(head->mempool, gfp); in btree_node_alloc() 178 static inline void __btree_init(struct btree_head *head) in __btree_init() argument 180 head->node = NULL; in __btree_init() 181 head->height = 0; in __btree_init() 184 void btree_init_mempool(struct btree_head *head, mempool_t *mempool) in btree_init_mempool() argument 186 __btree_init(head); in btree_init_mempool() 187 head->mempool = mempool; in btree_init_mempool() 191 int btree_init(struct btree_head *head) in btree_init() argument 193 __btree_init(head); in btree_init() [all …]
|
/Linux-v4.19/kernel/bpf/ |
D | percpu_freelist.c | 18 struct pcpu_freelist_head *head = per_cpu_ptr(s->freelist, cpu); in pcpu_freelist_init() local 20 raw_spin_lock_init(&head->lock); in pcpu_freelist_init() 21 head->first = NULL; in pcpu_freelist_init() 31 static inline void __pcpu_freelist_push(struct pcpu_freelist_head *head, in __pcpu_freelist_push() argument 34 raw_spin_lock(&head->lock); in __pcpu_freelist_push() 35 node->next = head->first; in __pcpu_freelist_push() 36 head->first = node; in __pcpu_freelist_push() 37 raw_spin_unlock(&head->lock); in __pcpu_freelist_push() 43 struct pcpu_freelist_head *head = this_cpu_ptr(s->freelist); in pcpu_freelist_push() local 45 __pcpu_freelist_push(head, node); in pcpu_freelist_push() [all …]
|
/Linux-v4.19/fs/proc/ |
D | proc_sysctl.c | 30 static bool is_empty_dir(struct ctl_table_header *head) in is_empty_dir() argument 32 return head->ctl_table[0].child == sysctl_mount_point; in is_empty_dir() 78 static int insert_links(struct ctl_table_header *head); 107 struct ctl_table_header *head; in find_entry() local 118 head = ctl_node->header; in find_entry() 119 entry = &head->ctl_table[ctl_node - head->node]; in find_entry() 128 *phead = head; in find_entry() 135 static int insert_entry(struct ctl_table_header *head, struct ctl_table *entry) in insert_entry() argument 137 struct rb_node *node = &head->node[entry - head->ctl_table].node; in insert_entry() 138 struct rb_node **p = &head->parent->root.rb_node; in insert_entry() [all …]
|
/Linux-v4.19/tools/virtio/ringtest/ |
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 …]
|
/Linux-v4.19/sound/pci/ctxfi/ |
D | ctimap.c | 25 struct list_head *pos, *pre, *head; in input_mapper_add() local 28 head = mappers; in input_mapper_add() 30 if (list_empty(head)) { in input_mapper_add() 33 list_add(&entry->list, head); in input_mapper_add() 37 list_for_each(pos, head) { in input_mapper_add() 45 if (pos != head) { in input_mapper_add() 47 if (pre == head) in input_mapper_add() 48 pre = head->prev; in input_mapper_add() 52 pre = head->prev; in input_mapper_add() 53 pos = head->next; in input_mapper_add() [all …]
|