Searched refs:head (Results 501 - 525 of 2516) sorted by relevance

<<21222324252627282930>>

/linux-master/tools/perf/arch/x86/util/
H A Dintel-pt.c1036 void *data, size_t head)
1041 if (head > ref_offset || head < ref_end - buf_size)
1043 } else if (head > ref_offset && head < ref_end) {
1052 void *data, size_t head)
1054 if (head >= ref_size) {
1055 memcpy(ref_buf, data + head - ref_size, ref_size);
1057 memcpy(ref_buf, data, head);
1058 ref_size -= head;
1034 intel_pt_compare_ref(void *ref_buf, size_t ref_offset, size_t ref_size, size_t buf_size, void *data, size_t head) argument
1051 intel_pt_copy_ref(void *ref_buf, size_t ref_size, size_t buf_size, void *data, size_t head) argument
1063 intel_pt_wrapped(struct intel_pt_recording *ptr, int idx, struct auxtrace_mmap *mm, unsigned char *data, u64 head) argument
1097 intel_pt_find_snapshot(struct auxtrace_record *itr, int idx, struct auxtrace_mmap *mm, unsigned char *data, u64 *head, u64 *old) argument
[all...]
/linux-master/drivers/pci/
H A Dsetup-bus.c42 static void free_list(struct list_head *head) argument
46 list_for_each_entry_safe(dev_res, tmp, head, list) {
54 * @head: Head of the list
60 static int add_to_list(struct list_head *head, struct pci_dev *dev, argument
78 list_add(&tmp->list, head);
83 static void remove_from_list(struct list_head *head, struct resource *res) argument
87 list_for_each_entry_safe(dev_res, tmp, head, list) {
96 static struct pci_dev_resource *res_to_dev_res(struct list_head *head, argument
101 list_for_each_entry(dev_res, head, list) {
109 static resource_size_t get_res_add_size(struct list_head *head, argument
118 get_res_add_align(struct list_head *head, struct resource *res) argument
128 pdev_sort_resources(struct pci_dev *dev, struct list_head *head) argument
175 __dev_sort_resources(struct pci_dev *dev, struct list_head *head) argument
212 reassign_resources_sorted(struct list_head *realloc_head, struct list_head *head) argument
275 assign_requested_resources_sorted(struct list_head *head, struct list_head *fail_head) argument
345 __assign_resources_sorted(struct list_head *head, struct list_head *realloc_head, struct list_head *fail_head) argument
[all...]
/linux-master/drivers/net/wireless/ath/carl9170/
H A Drx.c290 struct ar9170_rx_head *head, struct ar9170_rx_macstatus *mac,
362 switch (head->plcp[0]) {
378 "rate (%x).\n", head->plcp[0]);
387 switch (head->plcp[0] & 0xf) {
415 "rate (%x).\n", head->plcp[0]);
425 if (head->plcp[3] & 0x80)
427 if (head->plcp[6] & 0x80)
430 status->rate_idx = clamp(head->plcp[3] & 0x7f, 0, 75);
611 kfree_rcu(entry, head);
699 struct ar9170_rx_head *head; local
289 carl9170_rx_mac_status(struct ar9170 *ar, struct ar9170_rx_head *head, struct ar9170_rx_macstatus *mac, struct ieee80211_rx_status *status) argument
[all...]
/linux-master/security/tomoyo/
H A Dnetwork.c195 const struct tomoyo_inet_acl *p1 = container_of(a, typeof(*p1), head);
196 const struct tomoyo_inet_acl *p2 = container_of(b, typeof(*p2), head);
214 const struct tomoyo_unix_acl *p1 = container_of(a, typeof(*p1), head);
215 const struct tomoyo_unix_acl *p2 = container_of(b, typeof(*p2), head);
235 &container_of(a, struct tomoyo_inet_acl, head)->perm;
237 const u8 b_perm = container_of(b, struct tomoyo_inet_acl, head)->perm;
261 &container_of(a, struct tomoyo_unix_acl, head)->perm;
263 const u8 b_perm = container_of(b, struct tomoyo_unix_acl, head)->perm;
284 struct tomoyo_inet_acl e = { .head.type = TOMOYO_TYPE_INET_ACL };
311 error = tomoyo_update_domain(&e.head, sizeo
[all...]
/linux-master/net/sunrpc/xprtrdma/
H A Dsvc_rdma_recvfrom.c402 arg->head[0].iov_base = ctxt->rc_recv_buf;
403 arg->head[0].iov_len = ctxt->rc_byte_len;
651 * On entry, xdr->head[0].iov_base points to first byte of the
654 * On successful exit, head[0] points to first byte past the
660 * - The transport header is entirely contained in the head iovec.
668 rdma_argp = rq_arg->head[0].iov_base;
700 rq_arg->head[0].iov_base = rctxt->rc_stream.p;
702 rq_arg->head[0].iov_len -= hdr_len;
785 /* Split the Receive buffer between the head and tail
790 buf->tail[0].iov_base = buf->head[
[all...]
/linux-master/fs/
H A Dmpage.c108 struct buffer_head *page_bh, *head; local
111 head = folio_buffers(folio);
112 if (!head) {
122 head = create_empty_buffers(folio, i_blocksize(inode), 0);
125 page_bh = head;
135 } while (page_bh != head);
436 struct buffer_head *bh, *head = folio_buffers(folio); local
438 if (!head)
440 bh = head;
447 } while (bh != head);
480 struct buffer_head *head = folio_buffers(folio); local
[all...]
/linux-master/drivers/gpu/drm/xe/
H A Dxe_gt_pagefault.c289 if (pf_queue->tail != pf_queue->head) {
322 return CIRC_SPACE(pf_queue->head, pf_queue->tail, PF_QUEUE_NUM_DW) <=
349 memcpy(pf_queue->data + pf_queue->head, msg, len * sizeof(u32));
350 pf_queue->head = (pf_queue->head + len) % PF_QUEUE_NUM_DW;
396 pf_queue->tail != pf_queue->head) {
448 gt->usm.pf_queue[i].head = 0;
455 gt->usm.acc_queue[i].head = 0;
571 if (acc_queue->tail != acc_queue->head) {
614 acc_queue->tail != acc_queue->head) {
[all...]
/linux-master/arch/um/drivers/
H A Dline.c43 n = line->head - line->tail;
97 line->head = line->buffer;
123 * called, passing it line->head as buffer, and an appropriate count.
134 if ((line->buffer == NULL) || (line->head == line->tail))
137 if (line->tail < line->head) {
139 count = line->buffer + LINE_BUFSIZE - line->head;
141 n = write_chan(line->chan_out, line->head, count,
147 * We have flushed from ->head to buffer end, now we
150 line->head = line->buffer;
152 line->head
[all...]
/linux-master/net/ipv6/
H A Dxfrm6_protocol.c41 #define for_each_protocol_rcu(head, handler) \
42 for (handler = rcu_dereference(head); \
50 struct xfrm6_protocol __rcu **head = proto_handlers(protocol); local
52 if (!head)
67 struct xfrm6_protocol __rcu **head = proto_handlers(nexthdr); local
73 if (!head)
96 for_each_protocol_rcu(*head, handler)
/linux-master/tools/testing/selftests/arm64/signal/
H A Dtest_signals_utils.c172 struct _aarch64_ctx *head; local
185 head = (struct _aarch64_ctx *)uc->uc_mcontext.__reserved;
186 head = get_header(head, EXTRA_MAGIC, td->live_sz, &offset);
187 if (head) {
188 extra = (struct extra_context *)head;
223 copied_extra->head.size = sizeof(*copied_extra) + 16;
/linux-master/drivers/crypto/intel/qat/qat_common/
H A Dadf_cfg.c102 static void adf_cfg_section_del_all(struct list_head *head);
147 struct list_head *head = &sec->param_head; local
150 list_for_each_prev_safe(list_ptr, tmp, head) {
163 static void adf_cfg_keyval_del_all(struct list_head *head) argument
167 list_for_each_prev_safe(list_ptr, tmp, head) {
175 static void adf_cfg_section_del_all(struct list_head *head) argument
180 list_for_each_prev_safe(list, tmp, head) {
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Dg84.c27 #include "head.h"
33 g84_sor_hdmi_infoframe_vsi(struct nvkm_ior *ior, int head, void *data, u32 size) argument
37 const u32 hoff = head * 0x800;
56 g84_sor_hdmi_infoframe_avi(struct nvkm_ior *ior, int head, void *data, u32 size) argument
60 const u32 hoff = head * 0x800;
79 g84_sor_hdmi_ctrl(struct nvkm_ior *ior, int head, bool enable, u8 max_ac_packet, u8 rekey) argument
86 const u32 hoff = head * 0x800;
329 .head = { .cnt = nv50_head_cnt, .new = nv50_head_new },
H A Dgt215.c27 #include "head.h"
35 gt215_sor_hda_eld(struct nvkm_ior *ior, int head, u8 *data, u8 size) argument
49 gt215_sor_hda_hpd(struct nvkm_ior *ior, int head, bool present) argument
68 gt215_sor_dp_audio(struct nvkm_ior *sor, int head, bool enable) argument
96 gt215_sor_hdmi_infoframe_vsi(struct nvkm_ior *ior, int head, void *data, u32 size) argument
119 gt215_sor_hdmi_infoframe_avi(struct nvkm_ior *ior, int head, void *data, u32 size) argument
141 gt215_sor_hdmi_ctrl(struct nvkm_ior *ior, int head, bool enable, u8 max_ac_packet, u8 rekey) argument
247 .head = { .cnt = nv50_head_cnt, .new = nv50_head_new },
/linux-master/tools/include/io_uring/
H A Dmini_liburing.h11 unsigned int *head; member in struct:io_sq_ring
20 unsigned int *head; member in struct:io_cq_ring
80 sq->khead = ptr + p->sq_off.head;
106 cq->khead = ptr + p->cq_off.head;
166 unsigned int head = *cq->khead; local
172 if (head != *cq->ktail) {
173 *cqe_ptr = &cq->cqes[head & mask];
/linux-master/mm/kasan/
H A Dquarantine.c36 struct qlist_node *head; member in struct:qlist_head
46 return !q->head;
51 q->head = q->tail = NULL;
59 q->head = qlink;
78 to->tail->next = from->head;
173 qlink = q->head;
299 curr = from->head;
/linux-master/net/netfilter/
H A Dnft_set_bitmap.c17 struct list_head head; member in struct:nft_bitmap_elem
97 list_for_each_entry_rcu(be, &priv->list, head) {
116 list_for_each_entry_rcu(be, &priv->list, head) {
144 list_add_tail_rcu(&new->head, &priv->list);
160 list_del_rcu(&be->head);
222 list_for_each_entry_rcu(be, &priv->list, head) {
277 list_for_each_entry_safe(be, n, &priv->list, head)
/linux-master/net/tipc/
H A Dmsg.c121 * out: head buf after successful complete reassembly, otherwise NULL
126 struct sk_buff *head = *headbuf; local
143 if (unlikely(head))
151 head = *headbuf = frag;
152 TIPC_SKB_CB(head)->tail = NULL;
156 if (!head)
164 if (skb_try_coalesce(head, frag, &headstolen, &delta)) {
167 tail = TIPC_SKB_CB(head)->tail;
168 if (!skb_has_frag_list(head))
169 skb_shinfo(head)
768 struct sk_buff *head = NULL; local
[all...]
/linux-master/drivers/net/ethernet/hisilicon/hns3/hns3_common/
H A Dhclge_comm_cmd.c310 int head)
316 return head >= ntc && head <= ntu;
318 return head >= ntc || head <= ntu;
325 u32 head; local
327 head = hclge_comm_read_dev(hw, HCLGE_COMM_NIC_CSQ_HEAD_REG);
328 rmb(); /* Make sure head is ready before touch any data */
330 if (!hclge_comm_is_valid_csq_clean_head(csq, head)) {
331 dev_warn(&hw->cmq.csq.pdev->dev, "wrong cmd head (
309 hclge_comm_is_valid_csq_clean_head(struct hclge_comm_cmq_ring *ring, int head) argument
348 u32 head = hclge_comm_read_dev(hw, HCLGE_COMM_NIC_CSQ_HEAD_REG); local
[all...]
/linux-master/fs/xfs/
H A Dxfs_log.c36 atomic64_t *head);
147 atomic64_t *head,
150 int64_t head_val = atomic64_read(head);
166 head_val = atomic64_cmpxchg(head, old, new);
173 atomic64_t *head,
176 int64_t head_val = atomic64_read(head);
195 head_val = atomic64_cmpxchg(head, old, new);
201 struct xlog_grant_head *head)
203 xlog_assign_grant_head(&head->grant, 1, 0);
204 INIT_LIST_HEAD(&head
145 xlog_grant_sub_space( struct xlog *log, atomic64_t *head, int bytes) argument
171 xlog_grant_add_space( struct xlog *log, atomic64_t *head, int bytes) argument
200 xlog_grant_head_init( struct xlog_grant_head *head) argument
209 xlog_grant_head_wake_all( struct xlog_grant_head *head) argument
221 xlog_ticket_reservation( struct xlog *log, struct xlog_grant_head *head, struct xlog_ticket *tic) argument
238 xlog_grant_head_wake( struct xlog *log, struct xlog_grant_head *head, int *free_bytes) argument
340 xlog_grant_head_check( struct xlog *log, struct xlog_grant_head *head, struct xlog_ticket *tic, int *need_bytes) argument
1334 xlog_space_left( struct xlog *log, atomic64_t *head) argument
1520 xlog_rec_header_t *head; local
2899 xlog_rec_header_t *head; local
[all...]
/linux-master/arch/sparc/kernel/
H A Dpci_fire.c152 unsigned long *head)
154 *head = upa_readq(pbm->pbm_regs + EVENT_QUEUE_HEAD(msiqid));
159 unsigned long *head, unsigned long *msi)
165 ep = &base[*head];
186 (*head)++;
187 if (*head >= pbm->msiq_ent_count)
188 *head = 0;
194 unsigned long head)
196 upa_writeq(head, pbm->pbm_regs + EVENT_QUEUE_HEAD(msiqid));
151 pci_fire_get_head(struct pci_pbm_info *pbm, unsigned long msiqid, unsigned long *head) argument
158 pci_fire_dequeue_msi(struct pci_pbm_info *pbm, unsigned long msiqid, unsigned long *head, unsigned long *msi) argument
193 pci_fire_set_head(struct pci_pbm_info *pbm, unsigned long msiqid, unsigned long head) argument
/linux-master/kernel/cgroup/
H A Drstat.c134 * @head: current head of the list (= subtree root)
144 static struct cgroup *cgroup_rstat_push_children(struct cgroup *head, argument
162 child->rstat_flush_next = head;
163 head = child;
182 return head;
207 struct cgroup *head = NULL, *parent, *child; local
240 head = root;
245 head = cgroup_rstat_push_children(head, chil
[all...]
/linux-master/drivers/iio/buffer/
H A Dindustrialio-buffer-dma.c133 list_for_each_entry_safe(block, _block, &block_list, head)
146 list_add_tail(&block->head, &iio_dma_buffer_dead_blocks);
184 INIT_LIST_HEAD(&block->head);
248 list_for_each_entry_safe(block, _block, list, head) {
249 list_del(&block->head);
364 list_add_tail(&block->head, &queue->incoming);
449 list_for_each_entry_safe(block, _block, &queue->incoming, head) {
450 list_del(&block->head);
492 list_add_tail(&block->head, &queue->incoming);
/linux-master/fs/adfs/
H A Ddir_f.c126 struct adfs_dirheader *head = dir->dirhead; local
129 if (head->startmasseq != tail->endmasseq ||
131 (memcmp(&head->startname, "Nick", 4) &&
132 memcmp(&head->startname, "Hugo", 4)) ||
133 memcmp(&head->startname, &tail->endname, 4) ||
/linux-master/drivers/ps3/
H A Dps3-vuart.c71 struct list_head head; member in struct:ps3_vuart_port_priv::__anon120
77 struct list_head head; member in struct:ps3_vuart_port_priv::__anon121
458 const unsigned char *head; member in struct:list_buffer
488 if (list_empty(&priv->tx_list.head)) {
519 lb->head = lb->data;
524 list_add_tail(&lb->link, &priv->tx_list.head);
574 lb->head = lb->data;
578 list_add_tail(&lb->link, &priv->rx_list.head);
627 list_for_each_entry_safe(lb, n, &priv->rx_list.head, link) {
628 bytes_read = min((unsigned int)(lb->tail - lb->head), byte
[all...]
/linux-master/drivers/dma-buf/
H A Ddma-fence-chain.c147 struct dma_fence_chain *head = to_dma_fence_chain(fence); local
149 dma_fence_get(&head->base);
150 dma_fence_chain_for_each(fence, &head->base) {
154 if (!dma_fence_add_callback(f, &head->cb, dma_fence_chain_cb)) {
160 dma_fence_put(&head->base);

Completed in 214 milliseconds

<<21222324252627282930>>