/kernel/linux/common_modules/newip/src/common/ |
D | nip_hdr_encap.c | 42 static inline void _nip_hdr_ttl_encap(struct nip_hdr_encap *head) in _nip_hdr_ttl_encap() argument 44 *(head->hdr_buf + head->hdr_buf_pos) = head->ttl; in _nip_hdr_ttl_encap() 45 head->hdr_buf_pos += sizeof(head->ttl); in _nip_hdr_ttl_encap() 48 static inline void _nip_hdr_len_encap(struct nip_hdr_encap *head) in _nip_hdr_len_encap() argument 50 head->hdr_len_pos = head->hdr_buf + head->hdr_buf_pos; in _nip_hdr_len_encap() 51 head->hdr_buf_pos += 1; in _nip_hdr_len_encap() 54 static inline void _nip_update_hdr_len(struct nip_hdr_encap *head) in _nip_update_hdr_len() argument 56 *head->hdr_len_pos = head->hdr_buf_pos; in _nip_update_hdr_len() 59 static inline void _nip_hdr_nexthdr_encap(struct nip_hdr_encap *head) in _nip_hdr_nexthdr_encap() argument 61 *(head->hdr_buf + head->hdr_buf_pos) = head->nexthdr; in _nip_hdr_nexthdr_encap() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/security/tomoyo/ |
D | common.c | 213 static bool tomoyo_flush(struct tomoyo_io_buffer *head) in tomoyo_flush() argument 215 while (head->r.w_pos) { in tomoyo_flush() 216 const char *w = head->r.w[0]; in tomoyo_flush() 220 if (len > head->read_user_buf_avail) in tomoyo_flush() 221 len = head->read_user_buf_avail; in tomoyo_flush() 224 if (copy_to_user(head->read_user_buf, w, len)) in tomoyo_flush() 226 head->read_user_buf_avail -= len; in tomoyo_flush() 227 head->read_user_buf += len; in tomoyo_flush() 230 head->r.w[0] = w; in tomoyo_flush() 234 if (head->poll) { in tomoyo_flush() [all …]
|
/kernel/linux/linux-5.10/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 | 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 …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | plist.h | 93 #define PLIST_HEAD_INIT(head) \ argument 95 .node_list = LIST_HEAD_INIT((head).node_list) \ 102 #define PLIST_HEAD(head) \ argument 103 struct plist_head head = PLIST_HEAD_INIT(head) 122 plist_head_init(struct plist_head *head) in plist_head_init() argument 124 INIT_LIST_HEAD(&head->node_list); in plist_head_init() 139 extern void plist_add(struct plist_node *node, struct plist_head *head); 140 extern void plist_del(struct plist_node *node, struct plist_head *head); 142 extern void plist_requeue(struct plist_node *node, struct plist_head *head); 149 #define plist_for_each(pos, head) \ argument [all …]
|
D | list.h | 84 static inline void list_add(struct list_head *new, struct list_head *head) in list_add() argument 86 __list_add(new, head, head->next); in list_add() 98 static inline void list_add_tail(struct list_head *new, struct list_head *head) in list_add_tail() argument 100 __list_add(new, head->prev, head); in list_add_tail() 213 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument 216 list_add(list, head); in list_move() 225 struct list_head *head) in list_move_tail() argument 228 list_add_tail(list, head); in list_move_tail() 240 static inline void list_bulk_move_tail(struct list_head *head, in list_bulk_move_tail() argument 247 head->prev->next = first; in list_bulk_move_tail() [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 …]
|
/kernel/linux/linux-5.10/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 | 96 disp->head.nr = func->head.cnt(&disp->base, &disp->head.mask); in nv50_disp_oneinit_() 98 disp->head.nr, disp->head.mask); in nv50_disp_oneinit_() 99 for_each_set_bit(i, &disp->head.mask, disp->head.nr) { in nv50_disp_oneinit_() 100 ret = func->head.new(&disp->base, i); in nv50_disp_oneinit_() 182 nv50_disp_super_iedt(struct nvkm_head *head, struct nvkm_outp *outp, in nv50_disp_super_iedt() argument 186 struct nvkm_bios *bios = head->disp->engine.subdev.device->bios; in nv50_disp_super_iedt() 189 const u16 m = (0x0100 << head->id) | (l << 6) | outp->info.or; in nv50_disp_super_iedt() 197 nv50_disp_super_ied_on(struct nvkm_head *head, in nv50_disp_super_ied_on() argument 200 struct nvkm_subdev *subdev = &head->disp->engine.subdev; in nv50_disp_super_ied_on() 214 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 …]
|
/kernel/linux/linux-5.10/net/sched/ |
D | cls_matchall.c | 30 struct cls_mall_head *head = rcu_dereference_bh(tp->root); in mall_classify() local 32 if (unlikely(!head)) in mall_classify() 35 if (tc_skip_sw(head->flags)) in mall_classify() 38 *res = head->res; in mall_classify() 39 __this_cpu_inc(head->pf->rhit); in mall_classify() 40 return tcf_exts_exec(skb, &head->exts, res); in mall_classify() 48 static void __mall_destroy(struct cls_mall_head *head) in __mall_destroy() argument 50 tcf_exts_destroy(&head->exts); in __mall_destroy() 51 tcf_exts_put_net(&head->exts); in __mall_destroy() 52 free_percpu(head->pf); in __mall_destroy() [all …]
|
D | cls_cgroup.c | 28 struct cls_cgroup_head *head = rcu_dereference_bh(tp->root); in cls_cgroup_classify() local 31 if (unlikely(!head)) in cls_cgroup_classify() 35 if (!tcf_em_tree_match(skb, &head->ematches, NULL)) in cls_cgroup_classify() 41 return tcf_exts_exec(skb, &head->exts, res); in cls_cgroup_classify() 58 static void __cls_cgroup_destroy(struct cls_cgroup_head *head) in __cls_cgroup_destroy() argument 60 tcf_exts_destroy(&head->exts); in __cls_cgroup_destroy() 61 tcf_em_tree_destroy(&head->ematches); in __cls_cgroup_destroy() 62 tcf_exts_put_net(&head->exts); in __cls_cgroup_destroy() 63 kfree(head); in __cls_cgroup_destroy() 68 struct cls_cgroup_head *head = container_of(to_rcu_work(work), in cls_cgroup_destroy_work() local [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/arm64/signal/testcases/ |
D | testcases.c | 5 struct _aarch64_ctx *get_header(struct _aarch64_ctx *head, uint32_t magic, in get_header() argument 11 if (!head || resv_sz < HDR_SZ) in get_header() 15 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() 19 if (head->magic == magic) { in get_header() 20 found = head; in get_header() 36 term = GET_RESV_NEXT_HEAD(&extra->head); in validate_extra_context() 59 struct _aarch64_ctx *head = in validate_reserved() local 65 while (head && !terminated && offs < resv_sz) { in validate_reserved() [all …]
|
/kernel/linux/linux-5.10/net/netlabel/ |
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 …]
|
/kernel/linux/linux-5.10/fs/hmdfs/comm/ |
D | socket_adapter.c | 75 con = msg_wq->head.peer; in msg_release() 76 idr_remove(&con->msg_idr, msg_wq->head.msg_id); in msg_release() 88 kref_put_lock(&msg_wq->head.ref, msg_release, in msg_put() 89 &msg_wq->head.peer->idr_lock); in msg_put() 127 struct hmdfs_head_cmd *head = msg->head; in hmdfs_sendmessage() local 132 head->operations.command); in hmdfs_sendmessage() 138 head->operations.command); in hmdfs_sendmessage() 150 node->device_id, head->operations.command); in hmdfs_sendmessage() 167 node->device_id, head->operations.command); in hmdfs_sendmessage() 192 statistic_con_sb_dirty(node, &head->operations); in hmdfs_sendmessage() [all …]
|
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/ |
D | nip_output.c | 133 struct nip_hdr_encap *head) in nip_get_output_checksum() argument 137 unsigned short check_len = head->trans_hdr_len + head->usr_data_len; in nip_get_output_checksum() 147 struct nip_hdr_encap *head, in _nip_alloc_skb() argument 152 int nip_hdr_len = get_nip_hdr_len(NIP_HDR_UDP, &head->saddr, &head->daddr); in _nip_alloc_skb() 156 len = NIP_ETH_HDR_LEN + nip_hdr_len + head->trans_hdr_len + seg_info->mid_usr_pkt_len; in _nip_alloc_skb() 177 struct nip_hdr_encap *head, in _nip_udp_single_output() argument 183 struct msghdr *from = (struct msghdr *)head->usr_data; in _nip_udp_single_output() 184 struct sk_buff *skb = _nip_alloc_skb(sk, head, seg_info, dst); in _nip_udp_single_output() 199 head->hdr_buf = skb->data; in _nip_udp_single_output() 200 nip_hdr_udp_encap(head); in _nip_udp_single_output() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/sym53c8xx_2/ |
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 …]
|
/kernel/linux/linux-5.10/drivers/nvme/host/ |
D | multipath.c | 57 sprintf(disk_name, "nvme%dn%d", ctrl->instance, ns->head->instance); in nvme_set_disk_name() 58 } else if (ns->head->disk) { in nvme_set_disk_name() 60 ctrl->instance, ns->head->instance); in nvme_set_disk_name() 64 ns->head->instance); in nvme_set_disk_name() 86 spin_lock_irqsave(&ns->head->requeue_lock, flags); in nvme_failover_req() 87 blk_steal_bios(&ns->head->requeue_list, req); in nvme_failover_req() 88 spin_unlock_irqrestore(&ns->head->requeue_lock, flags); in nvme_failover_req() 91 kblockd_schedule_work(&ns->head->requeue_work); in nvme_failover_req() 100 if (ns->head->disk) in nvme_kick_requeue_lists() 101 kblockd_schedule_work(&ns->head->requeue_work); in nvme_kick_requeue_lists() [all …]
|
/kernel/linux/linux-5.10/scripts/gdb/linux/ |
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 node = head['next'].dereference() 31 while node.address != head.address: 36 def list_for_each_entry(head, gdbtype, member): argument 37 for node in list_for_each(head): 41 def hlist_for_each(head): argument [all …]
|
/kernel/liteos_a/kernel/base/sched/ |
D | los_sortlink.c | 43 LOS_DL_LIST *head = (LOS_DL_LIST *)&sortLinkHeader->sortLink; in AddNode2SortLink() local 45 if (LOS_ListEmpty(head)) { in AddNode2SortLink() 46 LOS_ListHeadInsert(head, &sortList->sortLinkNode); in AddNode2SortLink() 51 SortLinkList *listSorted = LOS_DL_LIST_ENTRY(head->pstNext, SortLinkList, sortLinkNode); in AddNode2SortLink() 53 LOS_ListAdd(head, &sortList->sortLinkNode); in AddNode2SortLink() 57 LOS_ListAdd(head->pstNext, &sortList->sortLinkNode); in AddNode2SortLink() 62 LOS_DL_LIST *prevNode = head->pstPrev; in AddNode2SortLink() 75 VOID OsAdd2SortLink(SortLinkAttribute *head, SortLinkList *node, UINT64 responseTime, UINT16 idleCp… in OsAdd2SortLink() argument 77 LOS_SpinLock(&head->spinLock); in OsAdd2SortLink() 79 AddNode2SortLink(head, node); in OsAdd2SortLink() [all …]
|