/kernel/linux/linux-6.6/kernel/bpf/ |
H A D | memalloc.c | 124 static struct llist_node notrace *__llist_del_first(struct llist_head *head) in __llist_del_first() argument 128 entry = head->first; in __llist_del_first() 132 head->first = next; in __llist_del_first() 277 static void __free_rcu(struct rcu_head *head) in __free_rcu() argument 279 struct bpf_mem_cache *c = container_of(head, struct bpf_mem_cache, rcu_ttrace); in __free_rcu() 285 static void __free_rcu_tasks_trace(struct rcu_head *head) in __free_rcu_tasks_trace() argument 291 __free_rcu(head); in __free_rcu_tasks_trace() 293 call_rcu(head, __free_rcu); in __free_rcu_tasks_trace() 362 static void __free_by_rcu(struct rcu_head *head) in __free_by_rcu() argument 364 struct bpf_mem_cache *c = container_of(head, struc in __free_by_rcu() [all...] |
/kernel/linux/linux-6.6/io_uring/ |
H A D | kbuf.c | 85 * increment ring->head to explicitly monopolize the buffer to avoid in io_kbuf_recycle_legacy() 160 __u16 head = bl->head; in io_ring_buffer_select() local 162 if (unlikely(smp_load_acquire(&br->tail) == head)) in io_ring_buffer_select() 165 head &= bl->mask; in io_ring_buffer_select() 167 if (bl->is_mmap || head < IO_BUFFER_LIST_BUF_PER_PAGE) { in io_ring_buffer_select() 168 buf = &br->bufs[head]; in io_ring_buffer_select() 170 int off = head & (IO_BUFFER_LIST_BUF_PER_PAGE - 1); in io_ring_buffer_select() 171 int index = head / IO_BUFFER_LIST_BUF_PER_PAGE; in io_ring_buffer_select() 193 bl->head in io_ring_buffer_select() [all...] |
/kernel/linux/linux-6.6/drivers/dma/idxd/ |
H A D | irq.c | 109 struct llist_node *head; in idxd_abort_invalid_int_handle_descs() local 112 head = llist_del_all(&ie->pending_llist); in idxd_abort_invalid_int_handle_descs() 113 if (head) { in idxd_abort_invalid_int_handle_descs() 114 llist_for_each_entry_safe(d, t, head, llnode) in idxd_abort_invalid_int_handle_descs() 372 h = evl_status.head; in process_evl_entries() 381 evl_status.head = h; in process_evl_entries() 562 struct llist_node *head; in irq_process_pending_llist() local 564 head = llist_del_all(&irq_entry->pending_llist); in irq_process_pending_llist() 565 if (!head) in irq_process_pending_llist() 568 llist_for_each_entry_safe(desc, t, head, llnod in irq_process_pending_llist() [all...] |
/kernel/linux/linux-6.6/drivers/firewire/ |
H A D | nosy.c | 63 struct packet *head, *tail; member 120 buffer->head = (struct packet *) buffer->data; in packet_buffer_init() 154 length = buffer->head->length; in packet_buffer_get() 156 if (&buffer->head->data[length] < end) { in packet_buffer_get() 157 if (copy_to_user(data, buffer->head->data, length)) in packet_buffer_get() 159 buffer->head = (struct packet *) &buffer->head->data[length]; in packet_buffer_get() 161 size_t split = end - buffer->head->data; in packet_buffer_get() 163 if (copy_to_user(data, buffer->head->data, split)) in packet_buffer_get() 167 buffer->head in packet_buffer_get() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/ |
H A D | intel_display.h | 255 list_for_each_entry(crtc, &(dev)->mode_config.crtc_list, head) 260 base.head) 265 base.head) \ 272 base.head) \ 278 base.head) 283 base.head) \ 289 base.head) 294 base.head) \ 299 list_for_each_entry((intel_encoder), &(dev)->mode_config.encoder_list, base.head) \ 315 list_for_each_entry((intel_encoder), &(dev)->mode_config.encoder_list, base.head) \ [all...] |
/kernel/liteos_a/kernel/extended/power/ |
H A D | los_pm.c | 420 LOS_DL_LIST *head = &pm->lockList; in LOS_PmLockInfoShow() local 421 LOS_DL_LIST *list = head->pstNext; in LOS_PmLockInfoShow() 424 while (list != head) { in LOS_PmLockInfoShow() 441 LOS_DL_LIST *head = &pm->lockList; in OsPmLockRequest() local 442 LOS_DL_LIST *list = head->pstNext; in OsPmLockRequest() 459 while (list != head) { in OsPmLockRequest() 483 LOS_ListTailInsert(head, &lock->list); in OsPmLockRequest() 517 LOS_DL_LIST *head = &pm->lockList; in LOS_PmLockRelease() local 518 LOS_DL_LIST *list = head->pstNext; in LOS_PmLockRelease() 538 while (list != head) { in LOS_PmLockRelease() [all...] |
/kernel/liteos_m/components/power/ |
H A D | los_pm.c | 555 LOS_DL_LIST *head = &pm->lockList; in LOS_PmLockInfoShow() local 556 LOS_DL_LIST *list = head->pstNext; in LOS_PmLockInfoShow() 561 while (list != head) { in LOS_PmLockInfoShow() 579 LOS_DL_LIST *head = &pm->lockList; in OsPmLockRequest() local 580 LOS_DL_LIST *list = head->pstNext; in OsPmLockRequest() 583 while (list != head) { in OsPmLockRequest() 602 LOS_ListTailInsert(head, &lock->list); in OsPmLockRequest() 638 LOS_DL_LIST *head = &pm->lockList; in LOS_PmLockRelease() local 639 LOS_DL_LIST *list = head->pstNext; in LOS_PmLockRelease() 650 while (list != head) { in LOS_PmLockRelease() [all...] |
/kernel/linux/linux-6.6/kernel/trace/ |
H A D | trace_syscalls.c | 578 struct hlist_head *head; in perf_syscall_enter() local 595 head = this_cpu_ptr(sys_data->enter_event->perf_events); in perf_syscall_enter() 597 if (!valid_prog_array && hlist_empty(head)) in perf_syscall_enter() 615 hlist_empty(head)) { in perf_syscall_enter() 622 head, NULL); in perf_syscall_enter() 679 struct hlist_head *head; in perf_syscall_exit() local 695 head = this_cpu_ptr(sys_data->exit_event->perf_events); in perf_syscall_exit() 697 if (!valid_prog_array && hlist_empty(head)) in perf_syscall_exit() 713 hlist_empty(head)) { in perf_syscall_exit() 719 1, regs, head, NUL in perf_syscall_exit() [all...] |
/kernel/linux/linux-6.6/net/core/ |
H A D | datagram.c | 625 struct page *head, *last_head = NULL; in __zerocopy_sg_from_iter() local 654 head = compound_head(pages[n]); in __zerocopy_sg_from_iter() 655 order = compound_order(head); in __zerocopy_sg_from_iter() 660 if (pages[n] - head > (1UL << order) - 1) { in __zerocopy_sg_from_iter() 661 head = compound_head(pages[n]); in __zerocopy_sg_from_iter() 662 order = compound_order(head); in __zerocopy_sg_from_iter() 665 start += (pages[n] - head) << PAGE_SHIFT; in __zerocopy_sg_from_iter() 671 if (head == skb_frag_page(last) && in __zerocopy_sg_from_iter() 679 last_head = head; in __zerocopy_sg_from_iter() 688 skb_fill_page_desc_noacc(skb, frag++, head, star in __zerocopy_sg_from_iter() [all...] |
/third_party/libdrm/tests/amdgpu/ |
H A D | ras_tests.c | 335 struct ras_common_if head; member 342 struct ras_common_if head; member 662 inject->head.block = block; in amdgpu_ras_inject() 663 inject->head.type = type; in amdgpu_ras_inject() 664 inject->head.sub_block_index = sub_block; in amdgpu_ras_inject() 665 strncpy(inject->head.name, ras_block_str(block), sizeof(inject->head.name)-1); in amdgpu_ras_inject() 686 struct ras_common_if head = { in amdgpu_ras_features_test() local 696 data.head = head; in amdgpu_ras_features_test() [all...] |
/third_party/python/Lib/ |
H A D | modulefinder.py | 212 head = name[:i] 215 head = name 218 qname = "%s.%s" % (parent.__name__, head) 220 qname = head 221 q = self.import_module(head, qname, parent) 226 qname = head 228 q = self.import_module(head, qname, parent) 241 head, tail = tail[:i], tail[i+1:] 242 mname = "%s.%s" % (m.__name__, head) 243 m = self.import_module(head, mnam [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
H A D | ctrl_iface_udp.c | 60 struct wpa_ctrl_dst **head, 77 static int wpa_supplicant_ctrl_iface_attach(struct wpa_ctrl_dst **head, in wpa_supplicant_ctrl_iface_attach() argument 96 dst->next = *head; in wpa_supplicant_ctrl_iface_attach() 97 *head = dst; in wpa_supplicant_ctrl_iface_attach() 110 static int wpa_supplicant_ctrl_iface_detach(struct wpa_ctrl_dst **head, argument 123 dst = *head; 141 *head = dst->next; 502 struct wpa_ctrl_dst **head, 515 dst = *head; 556 head, 500 wpa_supplicant_ctrl_iface_send(struct wpa_supplicant *wpa_s, const char *ifname, int sock, struct wpa_ctrl_dst **head, int level, const char *buf, size_t len) global() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
H A D | ctrl_iface_udp.c | 60 struct wpa_ctrl_dst **head, 77 static int wpa_supplicant_ctrl_iface_attach(struct wpa_ctrl_dst **head, in wpa_supplicant_ctrl_iface_attach() argument 96 dst->next = *head; in wpa_supplicant_ctrl_iface_attach() 97 *head = dst; in wpa_supplicant_ctrl_iface_attach() 110 static int wpa_supplicant_ctrl_iface_detach(struct wpa_ctrl_dst **head, argument 123 dst = *head; 141 *head = dst->next; 522 struct wpa_ctrl_dst **head, 535 dst = *head; 576 head, 520 wpa_supplicant_ctrl_iface_send(struct wpa_supplicant *wpa_s, const char *ifname, int sock, struct wpa_ctrl_dst **head, int level, const char *buf, size_t len) global() argument [all...] |
/kernel/linux/common_modules/tzdriver/core/ |
H A D | mailbox_mempool.c | 67 struct list_head *head = NULL; in mailbox_show_status() local 87 head = &g_m_zone->free_areas[i].page_list; in mailbox_show_status() 88 if (list_empty(head) != 0) { in mailbox_show_status() 91 list_for_each_entry(pos, head, node) in mailbox_show_status() 142 struct list_head *head = NULL; in mailbox_alloc() local 159 head = &g_m_zone->free_areas[i].page_list; in mailbox_alloc() 160 if (list_empty(head) != 0) in mailbox_alloc() 162 pos = list_first_entry(head, struct mb_page_t, node); in mailbox_alloc()
|
H A D | reserved_mempool.c | 223 struct list_head *head = NULL;
in show_res_mem_info() local 245 head = &g_res_zone->free_areas[i].page_list;
in show_res_mem_info() 246 if (list_empty(head) != 0) {
in show_res_mem_info() 249 list_for_each_entry(pos, head, node)
in show_res_mem_info() 399 struct list_head *head = NULL;
in reserved_mem_alloc() local 410 head = &g_res_zone->free_areas[i].page_list;
in reserved_mem_alloc() 411 if (list_empty(head) != 0)
in reserved_mem_alloc() 414 pos = list_first_entry(head, struct reserved_page_t, node);
in reserved_mem_alloc()
|
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
H A D | pci_msi.c | 19 unsigned long orig_head, head; in sparc64_msiq_interrupt() local 24 err = ops->get_head(pbm, msiqid, &head); in sparc64_msiq_interrupt() 28 orig_head = head; in sparc64_msiq_interrupt() 32 err = ops->dequeue_msi(pbm, msiqid, &head, &msi); in sparc64_msiq_interrupt() 46 if (likely(head != orig_head)) { in sparc64_msiq_interrupt() 47 err = ops->set_head(pbm, msiqid, head); in sparc64_msiq_interrupt() 54 printk(KERN_EMERG "MSI: Get head on msiqid[%lu] gives error %d\n", in sparc64_msiq_interrupt() 59 printk(KERN_EMERG "MSI: Dequeue head[%lu] from msiqid[%lu] " in sparc64_msiq_interrupt() 61 head, msiqid, err); in sparc64_msiq_interrupt() 65 printk(KERN_EMERG "MSI: Set head[ in sparc64_msiq_interrupt() [all...] |
/kernel/linux/linux-5.10/arch/arm/crypto/ |
H A D | ghash-ce-glue.c | 46 u64 const h[][2], const char *head); 49 u64 const h[][2], const char *head); 62 struct ghash_key *key, const char *head) in ghash_do_update() 67 pmull_ghash_update_p64(blocks, dg, src, key->h, head); in ghash_do_update() 69 pmull_ghash_update_p8(blocks, dg, src, key->h, head); in ghash_do_update() 77 if (head) { in ghash_do_update() 78 in = head; in ghash_do_update() 80 head = NULL; in ghash_do_update() 61 ghash_do_update(int blocks, u64 dg[], const char *src, struct ghash_key *key, const char *head) ghash_do_update() argument
|
/kernel/linux/linux-6.6/arch/sparc/kernel/ |
H A D | pci_msi.c | 21 unsigned long orig_head, head; in sparc64_msiq_interrupt() local 26 err = ops->get_head(pbm, msiqid, &head); in sparc64_msiq_interrupt() 30 orig_head = head; in sparc64_msiq_interrupt() 34 err = ops->dequeue_msi(pbm, msiqid, &head, &msi); in sparc64_msiq_interrupt() 48 if (likely(head != orig_head)) { in sparc64_msiq_interrupt() 49 err = ops->set_head(pbm, msiqid, head); in sparc64_msiq_interrupt() 56 printk(KERN_EMERG "MSI: Get head on msiqid[%lu] gives error %d\n", in sparc64_msiq_interrupt() 61 printk(KERN_EMERG "MSI: Dequeue head[%lu] from msiqid[%lu] " in sparc64_msiq_interrupt() 63 head, msiqid, err); in sparc64_msiq_interrupt() 67 printk(KERN_EMERG "MSI: Set head[ in sparc64_msiq_interrupt() [all...] |
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | test_lru_dist.c | 46 static inline int list_empty(const struct list_head *head) in list_empty() argument 48 return head->next == head; in list_empty() 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() 77 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument 80 list_add(list, head); in list_move()
|
/kernel/linux/linux-5.10/net/sched/ |
H A D | sch_etf.c | 35 struct rb_root_cached head; member 113 p = rb_first_cached(&q->head); in etf_peek_timesortedlist() 166 struct rb_node **p = &q->head.rb_root.rb_node, *parent = NULL; in etf_enqueue_timesortedlist() 189 rb_insert_color_cached(&nskb->rbnode, &q->head, leftmost); in etf_enqueue_timesortedlist() 211 rb_erase_cached(&skb->rbnode, &q->head); in timesortedlist_drop() 235 rb_erase_cached(&skb->rbnode, &q->head); in timesortedlist_remove() 423 struct rb_node *p = rb_first_cached(&q->head); in timesortedlist_clear() 430 rb_erase_cached(&skb->rbnode, &q->head); in timesortedlist_clear()
|
/kernel/linux/linux-5.10/security/tomoyo/ |
H A D | audit.c | 435 * @head: Pointer to "struct tomoyo_io_buffer". 439 void tomoyo_read_log(struct tomoyo_io_buffer *head) in tomoyo_read_log() argument 443 if (head->r.w_pos) in tomoyo_read_log() 445 kfree(head->read_buf); in tomoyo_read_log() 446 head->read_buf = NULL; in tomoyo_read_log() 456 head->read_buf = ptr->log; in tomoyo_read_log() 457 head->r.w[head->r.w_pos++] = head->read_buf; in tomoyo_read_log()
|
/kernel/linux/linux-5.10/tools/bpf/bpftool/ |
H A D | cfg.c | 30 struct bpf_insn *head; member 94 if (bb->head == insn) in func_append_bb() 96 else if (bb->head > insn) in func_append_bb() 106 new_bb->head = insn; in func_append_bb() 208 bb->tail = bb_next(bb)->head - 1; in func_partition_bb_tail() 249 if (bb->head == insn) in func_search_bb_with_head() 405 start_idx = bb->head - func->start; in draw_bb_node() 406 dump_xlated_for_graph(&dd, bb->head, bb->tail, start_idx); in draw_bb_node()
|
/kernel/linux/linux-5.10/net/batman-adv/ |
H A D | send.c | 636 * @head: a list of to be freed forw_packets 644 static void batadv_forw_packet_list_free(struct hlist_head *head) in batadv_forw_packet_list_free() argument 649 hlist_for_each_entry_safe(forw_packet, safe_tmp_node, head, in batadv_forw_packet_list_free() 662 * @head: the shelve to queue it on (e.g. forw_{bat,bcast}_list) 676 spinlock_t *lock, struct hlist_head *head, in batadv_forw_packet_queue() 694 hlist_add_head(&forw_packet->list, head); in batadv_forw_packet_queue() 978 struct hlist_head head = HLIST_HEAD_INIT; in batadv_purge_outstanding_packets() local 990 batadv_forw_packet_list_steal(&bat_priv->forw_bcast_list, &head, in batadv_purge_outstanding_packets() 996 batadv_forw_packet_list_steal(&bat_priv->forw_bat_list, &head, in batadv_purge_outstanding_packets() 1001 batadv_forw_packet_list_free(&head); in batadv_purge_outstanding_packets() 675 batadv_forw_packet_queue(struct batadv_forw_packet *forw_packet, spinlock_t *lock, struct hlist_head *head, unsigned long send_time) batadv_forw_packet_queue() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
H A D | radeon_encoders.c | 64 list_for_each_entry(clone_encoder, &dev->mode_config.encoder_list, head) { in radeon_encoder_clones() 84 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { in radeon_setup_encoder_clones() 213 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { in radeon_link_encoder_connector() 215 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { in radeon_link_encoder_connector() 232 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { in radeon_encoder_set_active_device() 251 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { in radeon_get_connector_for_encoder() 276 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { in radeon_get_connector_for_encoder_init() 294 list_for_each_entry(other_encoder, &dev->mode_config.encoder_list, head) { in radeon_get_external_encoder()
|
/kernel/linux/linux-5.10/drivers/platform/chrome/wilco_ec/ |
H A D | event.c | 91 * @head: Next index to write to. 97 int head; member 121 /* head==tail when both full and empty, but head==NULL when empty */ in event_queue_empty() 122 return q->head == q->tail && !q->entries[q->head]; in event_queue_empty() 127 /* head==tail when both full and empty, but head!=NULL when full */ in event_queue_full() 128 return q->head == q->tail && q->entries[q->head]; in event_queue_full() [all...] |