/linux-6.12.1/net/dccp/ccids/lib/ |
D | loss_interval.c | 22 static inline struct tfrc_loss_interval *tfrc_lh_peek(struct tfrc_loss_hist *lh) in tfrc_lh_peek() argument 24 return lh->counter ? lh->ring[LIH_INDEX(lh->counter - 1)] : NULL; in tfrc_lh_peek() 28 static inline u32 tfrc_lh_get_interval(struct tfrc_loss_hist *lh, const u8 i) in tfrc_lh_get_interval() argument 30 BUG_ON(i >= lh->counter); in tfrc_lh_get_interval() 31 return lh->ring[LIH_INDEX(lh->counter - i - 1)]->li_length; in tfrc_lh_get_interval() 37 static struct tfrc_loss_interval *tfrc_lh_demand_next(struct tfrc_loss_hist *lh) in tfrc_lh_demand_next() argument 39 if (lh->ring[LIH_INDEX(lh->counter)] == NULL) in tfrc_lh_demand_next() 40 lh->ring[LIH_INDEX(lh->counter)] = kmem_cache_alloc(tfrc_lh_slab, in tfrc_lh_demand_next() 42 return lh->ring[LIH_INDEX(lh->counter)]; in tfrc_lh_demand_next() 45 void tfrc_lh_cleanup(struct tfrc_loss_hist *lh) in tfrc_lh_cleanup() argument [all …]
|
D | loss_interval.h | 47 static inline void tfrc_lh_init(struct tfrc_loss_hist *lh) in tfrc_lh_init() argument 49 memset(lh, 0, sizeof(struct tfrc_loss_hist)); in tfrc_lh_init() 52 static inline u8 tfrc_lh_is_initialised(struct tfrc_loss_hist *lh) in tfrc_lh_is_initialised() argument 54 return lh->counter > 0; in tfrc_lh_is_initialised() 57 static inline u8 tfrc_lh_length(struct tfrc_loss_hist *lh) in tfrc_lh_length() argument 59 return min(lh->counter, (u8)LIH_SIZE); in tfrc_lh_length() 66 u8 tfrc_lh_update_i_mean(struct tfrc_loss_hist *lh, struct sk_buff *); 67 void tfrc_lh_cleanup(struct tfrc_loss_hist *lh);
|
/linux-6.12.1/net/netfilter/ |
D | xt_l2tp.c | 84 union l2tp_val *lh; in l2tp_udp_mt() local 95 lh = skb_header_pointer(skb, offs, 2, &lhbuf); in l2tp_udp_mt() 96 if (lh == NULL) in l2tp_udp_mt() 99 flags = ntohs(lh->val16[0]); in l2tp_udp_mt() 113 lh = skb_header_pointer(skb, offs + 4, 4, &lhbuf); in l2tp_udp_mt() 114 if (lh == NULL) in l2tp_udp_mt() 117 data.tid = ntohl(lh->val32); in l2tp_udp_mt() 119 data.sid = ntohl(lh->val32); in l2tp_udp_mt() 123 lh = skb_header_pointer(skb, offs + 2, 4, &lhbuf); in l2tp_udp_mt() 124 if (lh == NULL) in l2tp_udp_mt() [all …]
|
/linux-6.12.1/fs/gfs2/ |
D | recovery.c | 118 int __get_log_header(struct gfs2_sbd *sdp, const struct gfs2_log_header *lh, in __get_log_header() argument 123 if (lh->lh_header.mh_magic != cpu_to_be32(GFS2_MAGIC) || in __get_log_header() 124 lh->lh_header.mh_type != cpu_to_be32(GFS2_METATYPE_LH) || in __get_log_header() 125 (blkno && be32_to_cpu(lh->lh_blkno) != blkno)) in __get_log_header() 128 hash = crc32(~0, lh, LH_V1_SIZE - 4); in __get_log_header() 131 if (be32_to_cpu(lh->lh_hash) != hash) in __get_log_header() 134 crc = crc32c(~0, (void *)lh + LH_V1_SIZE + 4, in __get_log_header() 137 if ((lh->lh_crc != 0 && be32_to_cpu(lh->lh_crc) != crc)) in __get_log_header() 140 head->lh_sequence = be64_to_cpu(lh->lh_sequence); in __get_log_header() 141 head->lh_flags = be32_to_cpu(lh->lh_flags); in __get_log_header() [all …]
|
D | log.c | 827 struct gfs2_log_header *lh; in gfs2_write_log_header() local 839 lh = page_address(page); in gfs2_write_log_header() 840 clear_page(lh); in gfs2_write_log_header() 842 lh->lh_header.mh_magic = cpu_to_be32(GFS2_MAGIC); in gfs2_write_log_header() 843 lh->lh_header.mh_type = cpu_to_be32(GFS2_METATYPE_LH); in gfs2_write_log_header() 844 lh->lh_header.__pad0 = cpu_to_be64(0); in gfs2_write_log_header() 845 lh->lh_header.mh_format = cpu_to_be32(GFS2_FORMAT_LH); in gfs2_write_log_header() 846 lh->lh_header.mh_jid = cpu_to_be32(sdp->sd_jdesc->jd_jid); in gfs2_write_log_header() 847 lh->lh_sequence = cpu_to_be64(seq); in gfs2_write_log_header() 848 lh->lh_flags = cpu_to_be32(flags); in gfs2_write_log_header() [all …]
|
/linux-6.12.1/drivers/s390/block/ |
D | dcssblk.c | 70 struct list_head lh; member 86 struct list_head lh; member 116 list_for_each_entry_safe(entry, temp, &dev_info->seg_list, lh) { in dcssblk_release_segment() 117 list_del(&entry->lh); in dcssblk_release_segment() 141 list_for_each_entry(entry, &dcssblk_devices, lh) in dcssblk_assign_free_minor() 162 list_for_each_entry(entry, &dcssblk_devices, lh) { in dcssblk_get_device_by_name() 181 list_for_each_entry(dev_info, &dcssblk_devices, lh) { in dcssblk_get_segment_by_name() 182 list_for_each_entry(entry, &dev_info->seg_list, lh) { in dcssblk_get_segment_by_name() 200 list_for_each_entry(entry, &dev_info->seg_list, lh) { in dcssblk_find_highest_addr() 219 list_for_each_entry(entry, &dev_info->seg_list, lh) { in dcssblk_find_lowest_addr() [all …]
|
/linux-6.12.1/drivers/video/ |
D | aperture.c | 137 struct list_head lh; member 159 list_del(&ap->lh); in devm_aperture_acquire_release() 174 ap = container_of(pos, struct aperture_range, lh); in devm_aperture_acquire() 191 INIT_LIST_HEAD(&ap->lh); in devm_aperture_acquire() 193 list_add(&ap->lh, &apertures); in devm_aperture_acquire() 255 struct aperture_range *ap = container_of(pos, struct aperture_range, lh); in aperture_detach_devices() 265 list_del(&ap->lh); in aperture_detach_devices()
|
/linux-6.12.1/drivers/md/ |
D | dm-bufio.c | 454 static void lh_init(struct lock_history *lh, struct dm_buffer_cache *cache, bool write) in lh_init() argument 456 lh->cache = cache; in lh_init() 457 lh->write = write; in lh_init() 458 lh->no_previous = cache->num_locks; in lh_init() 459 lh->previous = lh->no_previous; in lh_init() 462 static void __lh_lock(struct lock_history *lh, unsigned int index) in __lh_lock() argument 464 if (lh->write) { in __lh_lock() 465 if (static_branch_unlikely(&no_sleep_enabled) && lh->cache->no_sleep) in __lh_lock() 466 write_lock_bh(&lh->cache->trees[index].u.spinlock); in __lh_lock() 468 down_write(&lh->cache->trees[index].u.lock); in __lh_lock() [all …]
|
/linux-6.12.1/arch/sparc/mm/ |
D | tlb.c | 272 struct list_head *lh = (struct list_head *) pgtable; in pgtable_trans_huge_deposit() local 278 INIT_LIST_HEAD(lh); in pgtable_trans_huge_deposit() 280 list_add(lh, (struct list_head *) pmd_huge_pte(mm, pmdp)); in pgtable_trans_huge_deposit() 286 struct list_head *lh; in pgtable_trans_huge_withdraw() local 293 lh = (struct list_head *) pgtable; in pgtable_trans_huge_withdraw() 294 if (list_empty(lh)) in pgtable_trans_huge_withdraw() 297 pmd_huge_pte(mm, pmdp) = (pgtable_t) lh->next; in pgtable_trans_huge_withdraw() 298 list_del(lh); in pgtable_trans_huge_withdraw()
|
/linux-6.12.1/kernel/rcu/ |
D | srcutiny.c | 118 struct rcu_head *lh; in srcu_drive_gp() local 132 lh = ssp->srcu_cb_head; in srcu_drive_gp() 147 while (lh) { in srcu_drive_gp() 148 rhp = lh; in srcu_drive_gp() 149 lh = lh->next; in srcu_drive_gp()
|
/linux-6.12.1/security/apparmor/ |
D | policy.c | 906 static struct aa_profile *__list_lookup_parent(struct list_head *lh, in __list_lookup_parent() argument 918 list_for_each_entry(ent, lh, list) { in __list_lookup_parent() 946 LIST_HEAD(lh); in __replace_profile() 947 list_splice_init_rcu(&old->base.profiles, &lh, synchronize_rcu); in __replace_profile() 949 list_for_each_entry_safe(child, tmp, &lh, base.list) { in __replace_profile() 1066 LIST_HEAD(lh); in aa_replace_profiles() 1071 error = aa_unpack(udata, &lh, &ns_name); in aa_replace_profiles() 1081 list_for_each_entry(ent, &lh, list) { in aa_replace_profiles() 1131 list_for_each_entry(ent, &lh, list) { in aa_replace_profiles() 1162 p = __list_lookup_parent(&lh, ent->new); in aa_replace_profiles() [all …]
|
/linux-6.12.1/arch/s390/appldata/ |
D | appldata_base.c | 110 struct list_head *lh; in appldata_work_fn() local 114 list_for_each(lh, &appldata_ops_list) { in appldata_work_fn() 115 ops = list_entry(lh, struct appldata_ops, list); in appldata_work_fn() 269 struct list_head *lh; in appldata_generic_handler() local 281 list_for_each(lh, &appldata_ops_list) { in appldata_generic_handler() 282 tmp_ops = list_entry(lh, struct appldata_ops, list); in appldata_generic_handler()
|
/linux-6.12.1/drivers/gpio/ |
D | gpiolib-cdev.c | 160 static long linehandle_set_config(struct linehandle_state *lh, in linehandle_set_config() argument 180 for (i = 0; i < lh->num_descs; i++) { in linehandle_set_config() 181 desc = lh->descs[i]; in linehandle_set_config() 204 struct linehandle_state *lh = file->private_data; in linehandle_ioctl() local 211 guard(srcu)(&lh->gdev->srcu); in linehandle_ioctl() 213 if (!rcu_access_pointer(lh->gdev->chip)) in linehandle_ioctl() 220 lh->num_descs, lh->descs, in linehandle_ioctl() 226 for (i = 0; i < lh->num_descs; i++) in linehandle_ioctl() 238 if (!test_bit(FLAG_IS_OUT, &lh->descs[0]->flags)) in linehandle_ioctl() 245 for (i = 0; i < lh->num_descs; i++) in linehandle_ioctl() [all …]
|
/linux-6.12.1/fs/ |
D | seq_file.c | 898 struct list_head *lh; in seq_list_start() local 900 list_for_each(lh, head) in seq_list_start() 902 return lh; in seq_list_start() 919 struct list_head *lh; in seq_list_next() local 921 lh = ((struct list_head *)v)->next; in seq_list_next() 923 return lh == head ? NULL : lh; in seq_list_next() 929 struct list_head *lh; in seq_list_start_rcu() local 931 list_for_each_rcu(lh, head) in seq_list_start_rcu() 933 return lh; in seq_list_start_rcu() 951 struct list_head *lh; in seq_list_next_rcu() local [all …]
|
/linux-6.12.1/drivers/dma/sh/ |
D | shdma.h | 56 #define to_sh_desc(lh) container_of(lh, struct sh_desc, node) argument
|
/linux-6.12.1/drivers/infiniband/hw/mlx4/ |
D | cm.c | 527 struct list_head lh; in mlx4_ib_cm_paravirt_clean() local 532 INIT_LIST_HEAD(&lh); in mlx4_ib_cm_paravirt_clean() 557 list_splice_init(&dev->sriov.cm_list, &lh); in mlx4_ib_cm_paravirt_clean() 566 list_move_tail(&ent->list, &lh); in mlx4_ib_cm_paravirt_clean() 569 list_for_each_entry_safe(map, tmp_map, &lh, list) { in mlx4_ib_cm_paravirt_clean() 577 list_move_tail(&map->list, &lh); in mlx4_ib_cm_paravirt_clean() 584 list_for_each_entry_safe(map, tmp_map, &lh, list) { in mlx4_ib_cm_paravirt_clean()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_irq.c | 421 struct list_head *lh; in amdgpu_dm_irq_init() local 429 lh = &adev->dm.irq_handler_list_low_tab[src]; in amdgpu_dm_irq_init() 430 INIT_LIST_HEAD(lh); in amdgpu_dm_irq_init() 447 struct list_head *lh; in amdgpu_dm_irq_fini() local 459 lh = &adev->dm.irq_handler_list_low_tab[src]; in amdgpu_dm_irq_fini() 462 if (!list_empty(lh)) { in amdgpu_dm_irq_fini() 463 list_for_each_safe(entry, tmp, lh) { in amdgpu_dm_irq_fini()
|
/linux-6.12.1/net/atm/ |
D | br2684.c | 126 struct list_head *lh; in br2684_find_dev() local 130 list_for_each(lh, &br2684_devs) { in br2684_find_dev() 131 net_dev = list_entry_brdev(lh); in br2684_find_dev() 137 list_for_each(lh, &br2684_devs) { in br2684_find_dev() 138 net_dev = list_entry_brdev(lh); in br2684_find_dev() 151 struct list_head *lh; in atm_dev_event() local 160 list_for_each(lh, &br2684_devs) { in atm_dev_event() 161 net_dev = list_entry_brdev(lh); in atm_dev_event()
|
/linux-6.12.1/mm/ |
D | highmem.c | 738 struct list_head lh; /* List of page_address_maps */ member 765 if (!list_empty(&pas->lh)) { in page_address() 768 list_for_each_entry(pam, &pas->lh, list) { in page_address() 801 list_add_tail(&pam->list, &pas->lh); in set_page_address() 805 list_for_each_entry(pam, &pas->lh, list) { in set_page_address() 820 INIT_LIST_HEAD(&page_address_htable[i].lh); in page_address_init()
|
/linux-6.12.1/drivers/net/ethernet/altera/ |
D | altera_sgdma.c | 447 list_add_tail(&buffer->lh, &priv->txlisthd); in queue_tx() 458 list_add_tail(&buffer->lh, &priv->rxlisthd); in queue_rx() 470 list_remove_head(&priv->txlisthd, buffer, struct tse_buffer, lh); in dequeue_tx() 483 list_remove_head(&priv->rxlisthd, buffer, struct tse_buffer, lh); in dequeue_rx() 497 list_peek_head(&priv->rxlisthd, buffer, struct tse_buffer, lh); in queue_rx_peekhead()
|
/linux-6.12.1/arch/mips/include/asm/mach-ip27/ |
D | kernel-entry-init.h | 83 lh t1, KV_RO_NASID_OFFSET(t0) 84 lh t2, KV_RW_NASID_OFFSET(t0)
|
/linux-6.12.1/drivers/gpu/drm/exynos/ |
D | exynos_drm_ipp.c | 481 struct drm_exynos_ipp_limit_val *lh = &l.h, *lv = &l.v; in exynos_drm_ipp_check_size_limits() local 494 lh = &l.v; in exynos_drm_ipp_check_size_limits() 497 if (!__size_limit_check(buf->rect.w, lh) || in exynos_drm_ipp_check_size_limits() 498 !__align_check(buf->rect.x, lh->align) || in exynos_drm_ipp_check_size_limits() 526 const struct drm_exynos_ipp_limit_val *lh, *lv; in exynos_drm_ipp_check_scale_limits() local 536 lh = (!swap) ? &limits->h : &limits->v; in exynos_drm_ipp_check_scale_limits() 541 if (!__scale_limit_check(src->w, dw, lh->min, lh->max) || in exynos_drm_ipp_check_scale_limits()
|
/linux-6.12.1/arch/riscv/kernel/tests/module_test/ |
D | test_sub16.S | 9 lh a0, sub16
|
/linux-6.12.1/fs/coda/ |
D | psdev.c | 97 struct list_head *lh; in coda_psdev_write() local 148 list_for_each(lh, &vcp->vc_processing) { in coda_psdev_write() 149 tmp = list_entry(lh, struct upc_req , uc_chain); in coda_psdev_write()
|
/linux-6.12.1/include/linux/ |
D | filter.h | 848 struct list_head *lh; in bpf_net_ctx_get_all_used_flush_lists() local 855 lh = &bpf_net_ctx->dev_map_flush_list; in bpf_net_ctx_get_all_used_flush_lists() 856 if (kern_flags & BPF_RI_F_DEV_MAP_INIT && !list_empty(lh)) in bpf_net_ctx_get_all_used_flush_lists() 857 *lh_dev = lh; in bpf_net_ctx_get_all_used_flush_lists() 859 lh = &bpf_net_ctx->cpu_map_flush_list; in bpf_net_ctx_get_all_used_flush_lists() 860 if (kern_flags & BPF_RI_F_CPU_MAP_INIT && !list_empty(lh)) in bpf_net_ctx_get_all_used_flush_lists() 861 *lh_map = lh; in bpf_net_ctx_get_all_used_flush_lists() 863 lh = &bpf_net_ctx->xskmap_map_flush_list; in bpf_net_ctx_get_all_used_flush_lists() 865 kern_flags & BPF_RI_F_XSK_MAP_INIT && !list_empty(lh)) in bpf_net_ctx_get_all_used_flush_lists() 866 *lh_xsk = lh; in bpf_net_ctx_get_all_used_flush_lists()
|