Home
last modified time | relevance | path

Searched full:head (Results 1 – 25 of 5758) sorted by relevance

12345678910>>...231

/kernel/linux/common_modules/newip/src/common/
Dnip_hdr_encap.c42 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 = (unsigned char)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/gpu/drm/nouveau/dispnv04/
Dhw.c39 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 …]
Dhw.h37 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/security/tomoyo/
Dcommon.c209 * @head: Pointer to "struct tomoyo_io_buffer".
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()
[all …]
/kernel/linux/linux-6.6/security/tomoyo/
Dcommon.c201 * @head: Pointer to "struct tomoyo_io_buffer".
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()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/aic7xxx/
Dqueue.h40 * added to the list after an existing element or at the head of the list.
41 * Elements being removed from the head of the list should use the explicit
48 * head of the list and the other to the tail of the list. The elements are
51 * to the list after an existing element, at the head of the list, or at the
52 * end of the list. Elements being removed from the head of the tail queue
62 * or after an existing element or at the head of the list. A list
65 * A tail queue is headed by a pair of pointers, one to the head of the
69 * after an existing element, at the head of the list, or at the end of
72 * A circle queue is headed by a pair of pointers, one to the head of the
76 * an existing element, at the head of the list, or at the end of the list.
[all …]
/kernel/linux/linux-6.6/drivers/scsi/aic7xxx/
Dqueue.h40 * added to the list after an existing element or at the head of the list.
41 * Elements being removed from the head of the list should use the explicit
48 * head of the list and the other to the tail of the list. The elements are
51 * to the list after an existing element, at the head of the list, or at the
52 * end of the list. Elements being removed from the head of the tail queue
62 * or after an existing element or at the head of the list. A list
65 * A tail queue is headed by a pair of pointers, one to the head of the
69 * after an existing element, at the head of the list, or at the end of
72 * A circle queue is headed by a pair of pointers, one to the head of the
76 * an existing element, at the head of the list, or at the end of the list.
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/dispnv04/
Dhw.c39 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 …]
Dhw.h37 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/tools/include/linux/
Dlist.h56 * @head: list head to add it after
58 * Insert a new entry after the specified head.
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()
70 * @head: list head to add it before
72 * Insert a new entry before the specified head.
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()
150 * list_move - delete from one list and add as another's head
152 * @head: the head that will precede our entry
[all …]
/kernel/linux/linux-5.10/include/linux/
Dlist.h79 * @head: list head to add it after
81 * Insert a new entry after the specified head.
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()
93 * @head: list head to add it before
95 * Insert a new entry before the specified head.
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()
209 * list_move - delete from one list and add as another's head
211 * @head: the head that will precede our entry
[all …]
Dplist.h35 * HEAD| NODE(S)
91 * @head: struct plist_head variable name
93 #define PLIST_HEAD_INIT(head) \ argument
95 .node_list = LIST_HEAD_INIT((head).node_list) \
100 * @head: name for struct plist_head variable
102 #define PLIST_HEAD(head) \ argument
103 struct plist_head head = PLIST_HEAD_INIT(head)
119 * @head: &struct plist_head pointer
122 plist_head_init(struct plist_head *head) in plist_head_init() argument
124 INIT_LIST_HEAD(&head->node_list); in plist_head_init()
[all …]
Dbtree-type.h14 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 …]
/kernel/linux/linux-5.10/net/sched/
Dcls_matchall.c30 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 …]
/kernel/linux/linux-6.6/include/linux/
Dlist.h162 * @head: list head to add it after
164 * Insert a new entry after the specified head.
167 static inline void list_add(struct list_head *new, struct list_head *head) in list_add() argument
169 __list_add(new, head, head->next); in list_add()
176 * @head: list head to add it before
178 * Insert a new entry before the specified head.
181 static inline void list_add_tail(struct list_head *new, struct list_head *head) in list_add_tail() argument
183 __list_add(new, head->prev, head); in list_add_tail()
292 * list_move - delete from one list and add as another's head
294 * @head: the head that will precede our entry
[all …]
Dplist.h35 * HEAD| NODE(S)
94 * @head: struct plist_head variable name
96 #define PLIST_HEAD_INIT(head) \ argument
98 .node_list = LIST_HEAD_INIT((head).node_list) \
103 * @head: name for struct plist_head variable
105 #define PLIST_HEAD(head) \ argument
106 struct plist_head head = PLIST_HEAD_INIT(head)
122 * @head: &struct plist_head pointer
125 plist_head_init(struct plist_head *head) in plist_head_init() argument
127 INIT_LIST_HEAD(&head->node_list); in plist_head_init()
[all …]
Dbtree-type.h14 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 …]
/kernel/linux/linux-6.6/tools/include/linux/
Dlist.h56 * @head: list head to add it after
58 * Insert a new entry after the specified head.
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()
70 * @head: list head to add it before
72 * Insert a new entry before the specified head.
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()
150 * list_move - delete from one list and add as another's head
152 * @head: the head that will precede our entry
[all …]
/kernel/linux/linux-6.6/net/sched/
Dcls_matchall.c32 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->pf); in __mall_destroy()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dhead.c24 #include "head.h"
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
51 nvif_ioctl(object, "head scanoutpos size %d\n", size); in nvkm_head_mthd_scanoutpos()
53 nvif_ioctl(object, "head scanoutpos vers %d\n", in nvkm_head_mthd_scanoutpos()
56 head->func->state(head, &head->arm); in nvkm_head_mthd_scanoutpos()
57 args->v0.vtotal = head->arm.vtotal; in nvkm_head_mthd_scanoutpos()
[all …]
Dnv50.c25 #include "head.h"
96 disp->head.nr = func->head.cnt(&disp->base, &disp->head.mask); in nv50_disp_oneinit_()
97 nvkm_debug(subdev, " Head(s): %d (%02lx)\n", 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
[all …]
/kernel/linux/linux-5.10/fs/hmdfs/comm/
Dsocket_adapter.c75 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()
128 struct hmdfs_head_cmd *head = msg->head; in hmdfs_sendmessage() local
133 head->operations.command); in hmdfs_sendmessage()
139 head->operations.command); in hmdfs_sendmessage()
151 node->device_id, head->operations.command); in hmdfs_sendmessage()
168 node->device_id, head->operations.command); in hmdfs_sendmessage()
193 statistic_con_sb_dirty(node, &head->operations); in hmdfs_sendmessage()
[all …]
/kernel/linux/linux-6.6/fs/hmdfs/comm/
Dsocket_adapter.c75 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()
128 struct hmdfs_head_cmd *head = msg->head; in hmdfs_sendmessage() local
133 head->operations.command); in hmdfs_sendmessage()
139 head->operations.command); in hmdfs_sendmessage()
151 node->device_id, head->operations.command); in hmdfs_sendmessage()
168 node->device_id, head->operations.command); in hmdfs_sendmessage()
193 statistic_con_sb_dirty(node, &head->operations); in hmdfs_sendmessage()
[all …]
/kernel/linux/linux-6.6/drivers/nvme/host/
Dmultipath.c105 spin_lock_irqsave(&ns->head->requeue_lock, flags); in nvme_failover_req()
107 bio_set_dev(bio, ns->head->disk->part0); in nvme_failover_req()
121 blk_steal_bios(&ns->head->requeue_list, req); in nvme_failover_req()
122 spin_unlock_irqrestore(&ns->head->requeue_lock, flags); in nvme_failover_req()
126 kblockd_schedule_work(&ns->head->requeue_work); in nvme_failover_req()
132 struct gendisk *disk = ns->head->disk; in nvme_mpath_start_request()
134 if (READ_ONCE(ns->head->subsys->iopolicy) == NVME_IOPOLICY_QD) { in nvme_mpath_start_request()
157 bdev_end_io_acct(ns->head->disk->part0, req_op(rq), in nvme_mpath_end_request()
170 if (!ns->head->disk) in nvme_kick_requeue_lists()
172 kblockd_schedule_work(&ns->head->requeue_work); in nvme_kick_requeue_lists()
[all …]
/kernel/linux/linux-5.10/net/netlabel/
Dnetlabel_addrlist.h82 #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 …]

12345678910>>...231