/linux-master/drivers/char/agp/ |
H A D | isoch.c | 23 static void agp_3_5_dev_list_insert(struct list_head *head, struct list_head *new) argument 28 list_for_each(pos, head) { 40 struct list_head *pos, *tmp, *head = &list->list, *start = head->next; local 43 INIT_LIST_HEAD(head); 45 for (pos=start; pos!=head; ) { 54 agp_3_5_dev_list_insert(head, tmp); 81 struct list_head *head = &dev_list->list, *pos; local 136 list_for_each(pos, head) { 287 struct list_head *head local 322 struct list_head *head, *pos; local [all...] |
/linux-master/tools/perf/util/intel-pt-decoder/ |
H A D | intel-pt-log.c | 30 size_t head; member in struct:log_buf 105 size_t space = b->buf_sz - b->head; 108 memcpy(b->buf + b->head, buf, n); 111 b->head += n; 112 if (sz && b->head >= b->buf_sz) { 113 b->head = 0; 172 fflush(f); /* Could update b->head and b->wrapped */ 176 write_lines(b->buf + b->head, b->buf_sz - b->head, b->backend, &remove_first); 178 write_lines(b->buf, b->head, [all...] |
/linux-master/lib/ |
H A D | ref_tracker.c | 16 struct list_head head; /* anchor into dir->list or dir->quarantine */ member in struct:ref_tracker 44 list_for_each_entry(tracker, &dir->list, head) { 165 list_for_each_entry_safe(tracker, n, &dir->quarantine, head) { 166 list_del(&tracker->head); 173 list_for_each_entry_safe(tracker, n, &dir->list, head) { 174 list_del(&tracker->head); 213 list_add(&tracker->head, &dir->list); 262 list_move_tail(&tracker->head, &dir->quarantine); 264 tracker = list_first_entry(&dir->quarantine, struct ref_tracker, head); 265 list_del(&tracker->head); [all...] |
H A D | test_list_sort.c | 16 #define TEST_LIST_LEN (512+128+2) /* not including head */ 63 LIST_HEAD(head); 79 list_add_tail(&el->list, &head); 82 list_sort(test, &head, cmp); 84 for (cur = head.next; cur->next != &head; cur = cur->next) { 104 KUNIT_EXPECT_PTR_EQ_MSG(test, head.prev, cur, "list is corrupted");
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
H A D | runl.h | 37 struct list_head head; member in struct:nvkm_engn 98 struct list_head head; member in struct:nvkm_runl 120 #define nvkm_runl_find_engn(engn,runl,cond) nvkm_list_find(engn, &(runl)->engns, head, (cond)) 122 #define nvkm_runl_first(fifo) list_first_entry(&(fifo)->runls, struct nvkm_runl, head) 123 #define nvkm_runl_foreach(runl,fifo) list_for_each_entry((runl), &(fifo)->runls, head) 124 #define nvkm_runl_foreach_cond(runl,fifo,cond) nvkm_list_foreach(runl, &(fifo)->runls, head, (cond)) 125 #define nvkm_runl_foreach_engn(engn,runl) list_for_each_entry((engn), &(runl)->engns, head) 127 nvkm_list_foreach(engn, &(runl)->engns, head, (cond)) 128 #define nvkm_runl_foreach_cgrp(cgrp,runl) list_for_each_entry((cgrp), &(runl)->cgrps, head) 130 list_for_each_entry_safe((cgrp), (gtmp), &(runl)->cgrps, head) [all...] |
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ras.c | 209 .head = obj->head, 220 if (amdgpu_ras_reset_error_status(obj->adev, info.head.block)) 313 data->head.block = block_id; 316 data->head.type = AMDGPU_RAS_ERROR__MULTI_UNCORRECTABLE; 318 data->head.type = AMDGPU_RAS_ERROR__SINGLE_CORRECTABLE; 320 data->head.type = AMDGPU_RAS_ERROR__POISON; 336 data->head.sub_block_index = sub_block; 368 switch (data->head.block) { 397 * First member: ras_debug_if::head o 662 amdgpu_ras_create_obj(struct amdgpu_device *adev, struct ras_common_if *head) argument 698 amdgpu_ras_find_obj(struct amdgpu_device *adev, struct ras_common_if *head) argument 735 amdgpu_ras_is_feature_allowed(struct amdgpu_device *adev, struct ras_common_if *head) argument 741 amdgpu_ras_is_feature_enabled(struct amdgpu_device *adev, struct ras_common_if *head) argument 753 __amdgpu_ras_feature_enable(struct amdgpu_device *adev, struct ras_common_if *head, int enable) argument 789 amdgpu_ras_feature_enable(struct amdgpu_device *adev, struct ras_common_if *head, bool enable) argument 846 amdgpu_ras_feature_enable_on_boot(struct amdgpu_device *adev, struct ras_common_if *head, bool enable) argument 927 struct ras_common_if head = { local 950 struct ras_common_if head = { local 1234 struct ras_common_if head; local 1736 amdgpu_ras_sysfs_create(struct amdgpu_device *adev, struct ras_common_if *head) argument 1770 amdgpu_ras_sysfs_remove(struct amdgpu_device *adev, struct ras_common_if *head) argument 1868 amdgpu_ras_debugfs_create(struct amdgpu_device *adev, struct ras_fs_if *head, struct dentry *dir) argument 2165 amdgpu_ras_interrupt_remove_handler(struct amdgpu_device *adev, struct ras_common_if *head) argument 2187 amdgpu_ras_interrupt_add_handler(struct amdgpu_device *adev, struct ras_common_if *head) argument [all...] |
/linux-master/drivers/xen/events/ |
H A D | events_fifo.c | 61 uint32_t head[EVTCHN_FIFO_MAX_QUEUES]; member in struct:evtchn_fifo_queue 112 q->head[i] = 0; 278 uint32_t head; local 282 head = q->head[priority]; 288 if (head == 0) { 289 virt_rmb(); /* Ensure word is up-to-date before reading head. */ 290 head = control_block->head[priority]; 293 port = head; [all...] |
/linux-master/sound/soc/sof/ |
H A D | ipc3-loader.c | 114 const struct sof_ext_man_header *head; local 116 head = (struct sof_ext_man_header *)fw->data; 120 * it prevents from reading unallocated memory from `head` in following 123 if (fw->size < sizeof(*head)) 130 if (head->magic == SOF_EXT_MAN_MAGIC_NUMBER) 131 return head->full_size; 135 head->magic); 143 const struct sof_ext_man_header *head; local 149 head = (struct sof_ext_man_header *)fw->data; 150 remaining = head [all...] |
/linux-master/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_rx_filter.c | 28 struct hlist_head *head; local 38 head = &lif->rx_filters.by_id[i]; 39 hlist_for_each_entry_safe(f, tmp, head, by_id) { 85 head = &lif->rx_filters.by_id[key]; 86 hlist_add_head(&f->by_id, head); 110 struct hlist_head *head; local 116 head = &lif->rx_filters.by_id[i]; 117 hlist_for_each_entry_safe(f, tmp, head, by_id) 130 struct hlist_head *head; local 175 head 188 struct hlist_head *head; local 208 struct hlist_head *head; local 227 struct hlist_head *head; local 565 struct hlist_head *head; local [all...] |
/linux-master/drivers/acpi/ |
H A D | acpi_ipmi.c | 28 struct list_head head; member in struct:acpi_ipmi_device 60 struct list_head head; member in struct:acpi_ipmi_msg 122 INIT_LIST_HEAD(&ipmi_device->head); 158 list_del(&ipmi_device->head); 205 INIT_LIST_HEAD(&ipmi_msg->head); 341 head); 342 list_del(&tx_msg->head); 360 list_for_each_entry_safe(iter, temp, &ipmi->tx_msg_list, head) { 363 list_del(&iter->head); 388 list_for_each_entry_safe(iter, temp, &ipmi_device->tx_msg_list, head) { [all...] |
/linux-master/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | cmsg.h | 131 struct nfp_fl_act_head head; member in struct:nfp_fl_set_eth 138 struct nfp_fl_act_head head; member in struct:nfp_fl_set_ip4_addrs 147 struct nfp_fl_act_head head; member in struct:nfp_fl_set_ip4_ttl_tos 156 struct nfp_fl_act_head head; member in struct:nfp_fl_set_ipv6_tc_hl_fl 167 struct nfp_fl_act_head head; member in struct:nfp_fl_set_ipv6_addr 176 struct nfp_fl_act_head head; member in struct:nfp_fl_set_tport 183 struct nfp_fl_act_head head; member in struct:nfp_fl_output 189 struct nfp_fl_act_head head; member in struct:nfp_fl_push_vlan 196 struct nfp_fl_act_head head; member in struct:nfp_fl_pop_vlan 201 struct nfp_fl_act_head head; member in struct:nfp_fl_pre_lag 210 struct nfp_fl_act_head head; member in struct:nfp_fl_pre_tunnel 221 struct nfp_fl_act_head head; member in struct:nfp_fl_set_tun 236 struct nfp_fl_act_head head; member in struct:nfp_fl_push_geneve 245 struct nfp_fl_act_head head; member in struct:nfp_fl_push_mpls 251 struct nfp_fl_act_head head; member in struct:nfp_fl_pop_mpls 256 struct nfp_fl_act_head head; member in struct:nfp_fl_set_mpls 263 struct nfp_fl_act_head head; member in struct:nfp_fl_meter [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
H A D | base.c | 35 struct list_head head; member in struct:nvkm_mmu_ptp 51 list_add(&ptp->head, &mmu->ptp.list); 57 list_del(&ptp->head); 74 ptp = list_first_entry_or_null(&mmu->ptp.list, typeof(*ptp), head); 93 list_add(&ptp->head, &mmu->ptp.list); 104 list_del(&ptp->head); 113 struct list_head head; member in struct:nvkm_mmu_ptc 124 list_for_each_entry(ptc, &mmu->ptc.list, head) { 134 list_add(&ptc->head, &mmu->ptc.list); 156 list_add_tail(&pt->head, [all...] |
/linux-master/sound/core/seq/oss/ |
H A D | seq_oss_readq.c | 49 q->head = q->tail = 0; 78 q->head = q->tail = 0; 173 memcpy(rec, &q->q[q->head], sizeof(*rec)); 184 (q->qlen > 0 || q->head == q->tail), 196 q->head = (q->head + 1) % q->maxlen;
|
/linux-master/arch/x86/events/intel/ |
H A D | bts.c | 58 local_t head; member in struct:bts_buffer 152 index = local_read(&buf->head); 176 static void bts_buffer_pad_out(struct bts_phys *phys, unsigned long head) argument 178 unsigned long index = head - phys->offset; 188 unsigned long index = ds->bts_index - ds->bts_buffer_base, old, head; local 193 head = index + bts_buffer_offset(buf, buf->cur_buf); 194 old = local_xchg(&buf->head, head); 197 if (old == head) 205 * old and head ar 377 unsigned long head, space, next_space, pad, gap, skip, wakeup; local [all...] |
/linux-master/include/net/ |
H A D | ipv6_frag.h | 68 struct sk_buff *head; local 94 * pull the head out of the tree in order to be able to 95 * deal with head->dev. 97 head = inet_frag_pull_head(&fq->q); 98 if (!head) 101 head->dev = dev; 104 icmpv6_send(head, ICMPV6_TIME_EXCEED, ICMPV6_EXC_FRAGTIME, 0); 105 kfree_skb_reason(head, SKB_DROP_REASON_FRAG_REASM_TIMEOUT);
|
/linux-master/kernel/events/ |
H A D | ring_buffer.c | 29 * We need to ensure a later event_id doesn't publish a head when a former 33 * We only publish the head (and generate a wakeup) when the outer-most 53 unsigned long head; local 68 * In order to avoid publishing a head value that goes backwards, 69 * we must ensure the load of @rb->head happens after we've 72 * Otherwise we can observe a @rb->head value before one published 76 head = local_read(&rb->head); 79 * IRQ/NMI can happen here and advance @rb->head, causing our 110 WRITE_ONCE(rb->user_page->data_head, head); 138 ring_buffer_has_space(unsigned long head, unsigned long tail, unsigned long data_size, unsigned int size, bool backward) argument 155 unsigned long tail, offset, head; local [all...] |
/linux-master/fs/btrfs/ |
H A D | delayed-ref.c | 57 * Release a ref head's reservation. 63 * Drops the delayed ref head's count from the delayed refs rsv and free any 383 /* insert a new ref to head ref rbtree */ 463 * Find a head entry based on bytenr. This returns the delayed ref head if it 501 struct btrfs_delayed_ref_head *head) 504 if (mutex_trylock(&head->mutex)) 507 refcount_inc(&head->refs); 510 mutex_lock(&head->mutex); 512 if (RB_EMPTY_NODE(&head 500 btrfs_delayed_ref_lock(struct btrfs_delayed_ref_root *delayed_refs, struct btrfs_delayed_ref_head *head) argument 521 drop_delayed_ref(struct btrfs_fs_info *fs_info, struct btrfs_delayed_ref_root *delayed_refs, struct btrfs_delayed_ref_head *head, struct btrfs_delayed_ref_node *ref) argument 536 merge_ref(struct btrfs_fs_info *fs_info, struct btrfs_delayed_ref_root *delayed_refs, struct btrfs_delayed_ref_head *head, struct btrfs_delayed_ref_node *ref, u64 seq) argument 583 btrfs_merge_delayed_refs(struct btrfs_fs_info *fs_info, struct btrfs_delayed_ref_root *delayed_refs, struct btrfs_delayed_ref_head *head) argument 630 struct btrfs_delayed_ref_head *head; local 665 btrfs_delete_ref_head(struct btrfs_delayed_ref_root *delayed_refs, struct btrfs_delayed_ref_head *head) argument [all...] |
/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
H A D | dma.h | 113 static inline void dma_spin_for_len(uint len, struct sk_buff *head) argument 117 while (!(len = *(u16 *) KSEG1ADDR(head->data))) 120 *(u16 *) (head->data) = cpu_to_le16((u16) len);
|
/linux-master/arch/sparc/kernel/ |
H A D | pci_sun4v.h | 54 unsigned long *head); 57 unsigned long head); 60 unsigned long *head);
|
/linux-master/drivers/gpu/drm/amd/pm/ |
H A D | amdgpu_dpm_internal.c | 40 &ddev->mode_config.crtc_list, head) { 59 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { 85 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {
|
/linux-master/include/media/ |
H A D | v4l2-fwnode.h | 116 * @head: structure to be used to add the link to the 122 struct list_head head; member in struct:v4l2_connector_link 403 struct v4l2_connector_link, head) 412 list_last_entry(&(v4l2c)->links, struct v4l2_connector_link, head)
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/pm/ |
H A D | priv.h | 15 struct list_head head; member in struct:nvkm_perfctr 38 struct list_head head; member in struct:nvkm_perfsrc 76 struct list_head head; member in struct:nvkm_perfdom
|
/linux-master/fs/gfs2/ |
H A D | lops.h | 23 struct gfs2_log_header_host *head, bool keep_cache); 55 struct gfs2_log_header_host *head, 61 gfs2_log_ops[x]->lo_before_scan(jd, head, pass); 54 lops_before_scan(struct gfs2_jdesc *jd, struct gfs2_log_header_host *head, unsigned int pass) argument
|
/linux-master/tools/testing/selftests/arm64/signal/testcases/ |
H A D | testcases.h | 78 * head->size accounts both for payload and header _aarch64_ctx size ! 91 struct _aarch64_ctx *get_header(struct _aarch64_ctx *head, uint32_t magic, 94 static inline struct _aarch64_ctx *get_terminator(struct _aarch64_ctx *head, argument 98 return get_header(head, 0, resv_sz, offset);
|
/linux-master/arch/s390/purgatory/ |
H A D | purgatory.lds.S | 13 .head.text : {
|