Home
last modified time | relevance | path

Searched refs:lh (Results 1 – 25 of 66) sorted by relevance

123

/Linux-v4.19/net/dccp/ccids/lib/
Dloss_interval.c26 static inline struct tfrc_loss_interval *tfrc_lh_peek(struct tfrc_loss_hist *lh) in tfrc_lh_peek() argument
28 return lh->counter ? lh->ring[LIH_INDEX(lh->counter - 1)] : NULL; in tfrc_lh_peek()
32 static inline u32 tfrc_lh_get_interval(struct tfrc_loss_hist *lh, const u8 i) in tfrc_lh_get_interval() argument
34 BUG_ON(i >= lh->counter); in tfrc_lh_get_interval()
35 return lh->ring[LIH_INDEX(lh->counter - i - 1)]->li_length; in tfrc_lh_get_interval()
41 static struct tfrc_loss_interval *tfrc_lh_demand_next(struct tfrc_loss_hist *lh) in tfrc_lh_demand_next() argument
43 if (lh->ring[LIH_INDEX(lh->counter)] == NULL) in tfrc_lh_demand_next()
44 lh->ring[LIH_INDEX(lh->counter)] = kmem_cache_alloc(tfrc_lh_slab, in tfrc_lh_demand_next()
46 return lh->ring[LIH_INDEX(lh->counter)]; in tfrc_lh_demand_next()
49 void tfrc_lh_cleanup(struct tfrc_loss_hist *lh) in tfrc_lh_cleanup() argument
[all …]
Dloss_interval.h51 static inline void tfrc_lh_init(struct tfrc_loss_hist *lh) in tfrc_lh_init() argument
53 memset(lh, 0, sizeof(struct tfrc_loss_hist)); in tfrc_lh_init()
56 static inline u8 tfrc_lh_is_initialised(struct tfrc_loss_hist *lh) in tfrc_lh_is_initialised() argument
58 return lh->counter > 0; in tfrc_lh_is_initialised()
61 static inline u8 tfrc_lh_length(struct tfrc_loss_hist *lh) in tfrc_lh_length() argument
63 return min(lh->counter, (u8)LIH_SIZE); in tfrc_lh_length()
70 u8 tfrc_lh_update_i_mean(struct tfrc_loss_hist *lh, struct sk_buff *);
71 void tfrc_lh_cleanup(struct tfrc_loss_hist *lh);
/Linux-v4.19/net/netfilter/
Dxt_l2tp.c87 union l2tp_val *lh; in l2tp_udp_mt() local
98 lh = skb_header_pointer(skb, offs, 2, &lhbuf); in l2tp_udp_mt()
99 if (lh == NULL) in l2tp_udp_mt()
102 flags = ntohs(lh->val16[0]); in l2tp_udp_mt()
116 lh = skb_header_pointer(skb, offs + 4, 4, &lhbuf); in l2tp_udp_mt()
117 if (lh == NULL) in l2tp_udp_mt()
120 data.tid = ntohl(lh->val32); in l2tp_udp_mt()
122 data.sid = ntohl(lh->val32); in l2tp_udp_mt()
126 lh = skb_header_pointer(skb, offs + 2, 4, &lhbuf); in l2tp_udp_mt()
127 if (lh == NULL) in l2tp_udp_mt()
[all …]
/Linux-v4.19/fs/gfs2/
Drecovery.c140 struct gfs2_log_header *lh; in get_log_header() local
148 lh = (void *)bh->b_data; in get_log_header()
150 hash = crc32(~0, lh, LH_V1_SIZE - 4); in get_log_header()
153 crc = crc32c(~0, (void *)lh + LH_V1_SIZE + 4, in get_log_header()
156 error = lh->lh_header.mh_magic != cpu_to_be32(GFS2_MAGIC) || in get_log_header()
157 lh->lh_header.mh_type != cpu_to_be32(GFS2_METATYPE_LH) || in get_log_header()
158 be32_to_cpu(lh->lh_blkno) != blk || in get_log_header()
159 be32_to_cpu(lh->lh_hash) != hash || in get_log_header()
160 (lh->lh_crc != 0 && be32_to_cpu(lh->lh_crc) != crc); in get_log_header()
165 head->lh_sequence = be64_to_cpu(lh->lh_sequence); in get_log_header()
[all …]
Dlog.c681 struct gfs2_log_header *lh; in gfs2_write_log_header() local
689 lh = page_address(page); in gfs2_write_log_header()
690 clear_page(lh); in gfs2_write_log_header()
692 lh->lh_header.mh_magic = cpu_to_be32(GFS2_MAGIC); in gfs2_write_log_header()
693 lh->lh_header.mh_type = cpu_to_be32(GFS2_METATYPE_LH); in gfs2_write_log_header()
694 lh->lh_header.__pad0 = cpu_to_be64(0); in gfs2_write_log_header()
695 lh->lh_header.mh_format = cpu_to_be32(GFS2_FORMAT_LH); in gfs2_write_log_header()
696 lh->lh_header.mh_jid = cpu_to_be32(sdp->sd_jdesc->jd_jid); in gfs2_write_log_header()
697 lh->lh_sequence = cpu_to_be64(seq); in gfs2_write_log_header()
698 lh->lh_flags = cpu_to_be32(flags); in gfs2_write_log_header()
[all …]
/Linux-v4.19/drivers/s390/block/
Ddcssblk.c67 struct list_head lh; member
84 struct list_head lh; member
114 list_for_each_entry_safe(entry, temp, &dev_info->seg_list, lh) { in dcssblk_release_segment()
115 list_del(&entry->lh); in dcssblk_release_segment()
139 list_for_each_entry(entry, &dcssblk_devices, lh) in dcssblk_assign_free_minor()
160 list_for_each_entry(entry, &dcssblk_devices, lh) { in dcssblk_get_device_by_name()
179 list_for_each_entry(dev_info, &dcssblk_devices, lh) { in dcssblk_get_segment_by_name()
180 list_for_each_entry(entry, &dev_info->seg_list, lh) { in dcssblk_get_segment_by_name()
198 list_for_each_entry(entry, &dev_info->seg_list, lh) { in dcssblk_find_highest_addr()
217 list_for_each_entry(entry, &dev_info->seg_list, lh) { in dcssblk_find_lowest_addr()
[all …]
/Linux-v4.19/arch/s390/appldata/
Dappldata_base.c127 struct list_head *lh; in appldata_work_fn() local
131 list_for_each(lh, &appldata_ops_list) { in appldata_work_fn()
132 ops = list_entry(lh, struct appldata_ops, list); in appldata_work_fn()
276 struct list_head *lh; in appldata_generic_handler() local
290 list_for_each(lh, &appldata_ops_list) { in appldata_generic_handler()
291 tmp_ops = list_entry(lh, struct appldata_ops, list); in appldata_generic_handler()
413 struct list_head *lh; in appldata_freeze() local
423 list_for_each(lh, &appldata_ops_list) { in appldata_freeze()
424 ops = list_entry(lh, struct appldata_ops, list); in appldata_freeze()
442 struct list_head *lh; in appldata_restore() local
[all …]
/Linux-v4.19/kernel/rcu/
Dsrcutiny.c125 struct rcu_head *lh; in srcu_drive_gp() local
136 lh = sp->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-v4.19/arch/sparc/mm/
Dtlb.c268 struct list_head *lh = (struct list_head *) pgtable; in pgtable_trans_huge_deposit() local
274 INIT_LIST_HEAD(lh); in pgtable_trans_huge_deposit()
276 list_add(lh, (struct list_head *) pmd_huge_pte(mm, pmdp)); in pgtable_trans_huge_deposit()
282 struct list_head *lh; in pgtable_trans_huge_withdraw() local
289 lh = (struct list_head *) pgtable; in pgtable_trans_huge_withdraw()
290 if (list_empty(lh)) in pgtable_trans_huge_withdraw()
293 pmd_huge_pte(mm, pmdp) = (pgtable_t) lh->next; in pgtable_trans_huge_withdraw()
294 list_del(lh); in pgtable_trans_huge_withdraw()
/Linux-v4.19/security/apparmor/
Dpolicy.c706 static struct aa_profile *__list_lookup_parent(struct list_head *lh, in __list_lookup_parent() argument
718 list_for_each_entry(ent, lh, list) { in __list_lookup_parent()
747 LIST_HEAD(lh); in __replace_profile()
748 list_splice_init_rcu(&old->base.profiles, &lh, synchronize_rcu); in __replace_profile()
750 list_for_each_entry_safe(child, tmp, &lh, base.list) { in __replace_profile()
867 LIST_HEAD(lh); in aa_replace_profiles()
872 error = aa_unpack(udata, &lh, &ns_name); in aa_replace_profiles()
882 list_for_each_entry(ent, &lh, list) { in aa_replace_profiles()
930 list_for_each_entry(ent, &lh, list) { in aa_replace_profiles()
958 p = __list_lookup_parent(&lh, ent->new); in aa_replace_profiles()
[all …]
/Linux-v4.19/mm/
Dhighmem.c394 struct list_head lh; /* List of page_address_maps */ member
421 if (!list_empty(&pas->lh)) { in page_address()
424 list_for_each_entry(pam, &pas->lh, list) { in page_address()
458 list_add_tail(&pam->list, &pas->lh); in set_page_address()
462 list_for_each_entry(pam, &pas->lh, list) { in set_page_address()
480 INIT_LIST_HEAD(&page_address_htable[i].lh); in page_address_init()
/Linux-v4.19/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_irq.c308 struct irq_list_head *lh; in amdgpu_dm_irq_init() local
316 lh = &adev->dm.irq_handler_list_low_tab[src]; in amdgpu_dm_irq_init()
317 INIT_LIST_HEAD(&lh->head); in amdgpu_dm_irq_init()
318 INIT_WORK(&lh->work, dm_irq_work_func); in amdgpu_dm_irq_init()
331 struct irq_list_head *lh; in amdgpu_dm_irq_fini() local
339 lh = &adev->dm.irq_handler_list_low_tab[src]; in amdgpu_dm_irq_fini()
341 flush_work(&lh->work); in amdgpu_dm_irq_fini()
/Linux-v4.19/drivers/dma/sh/
Dshdma.h60 #define to_sh_desc(lh) container_of(lh, struct sh_desc, node) argument
/Linux-v4.19/arch/arc/mm/
Dtlb.c669 struct list_head *lh = (struct list_head *) pgtable; in pgtable_trans_huge_deposit() local
675 INIT_LIST_HEAD(lh); in pgtable_trans_huge_deposit()
677 list_add(lh, (struct list_head *) pmd_huge_pte(mm, pmdp)); in pgtable_trans_huge_deposit()
683 struct list_head *lh; in pgtable_trans_huge_withdraw() local
689 lh = (struct list_head *) pgtable; in pgtable_trans_huge_withdraw()
690 if (list_empty(lh)) in pgtable_trans_huge_withdraw()
693 pmd_huge_pte(mm, pmdp) = (pgtable_t) lh->next; in pgtable_trans_huge_withdraw()
694 list_del(lh); in pgtable_trans_huge_withdraw()
/Linux-v4.19/drivers/infiniband/hw/mlx4/
Dcm.c419 struct list_head lh; in mlx4_ib_cm_paravirt_clean() local
424 INIT_LIST_HEAD(&lh); in mlx4_ib_cm_paravirt_clean()
449 list_splice_init(&dev->sriov.cm_list, &lh); in mlx4_ib_cm_paravirt_clean()
458 list_move_tail(&ent->list, &lh); in mlx4_ib_cm_paravirt_clean()
461 list_for_each_entry_safe(map, tmp_map, &lh, list) { in mlx4_ib_cm_paravirt_clean()
469 list_move_tail(&map->list, &lh); in mlx4_ib_cm_paravirt_clean()
476 list_for_each_entry_safe(map, tmp_map, &lh, list) { in mlx4_ib_cm_paravirt_clean()
/Linux-v4.19/drivers/gpio/
Dgpiolib.c427 struct linehandle_state *lh = filep->private_data; in linehandle_ioctl() local
437 lh->numdescs, in linehandle_ioctl()
438 lh->descs, in linehandle_ioctl()
444 for (i = 0; i < lh->numdescs; i++) in linehandle_ioctl()
456 if (!test_bit(FLAG_IS_OUT, &lh->descs[0]->flags)) in linehandle_ioctl()
463 for (i = 0; i < lh->numdescs; i++) in linehandle_ioctl()
469 lh->numdescs, in linehandle_ioctl()
470 lh->descs, in linehandle_ioctl()
486 struct linehandle_state *lh = filep->private_data; in linehandle_release() local
487 struct gpio_device *gdev = lh->gdev; in linehandle_release()
[all …]
/Linux-v4.19/drivers/net/ethernet/altera/
Daltera_sgdma.c458 list_add_tail(&buffer->lh, &priv->txlisthd); in queue_tx()
469 list_add_tail(&buffer->lh, &priv->rxlisthd); in queue_rx()
481 list_remove_head(&priv->txlisthd, buffer, struct tse_buffer, lh); in dequeue_tx()
494 list_remove_head(&priv->rxlisthd, buffer, struct tse_buffer, lh); in dequeue_rx()
508 list_peek_head(&priv->rxlisthd, buffer, struct tse_buffer, lh); in queue_rx_peekhead()
/Linux-v4.19/arch/powerpc/mm/
Dpgtable-radix.c974 struct list_head *lh = (struct list_head *) pgtable; in radix__pgtable_trans_huge_deposit() local
980 INIT_LIST_HEAD(lh); in radix__pgtable_trans_huge_deposit()
982 list_add(lh, (struct list_head *) pmd_huge_pte(mm, pmdp)); in radix__pgtable_trans_huge_deposit()
990 struct list_head *lh; in radix__pgtable_trans_huge_withdraw() local
996 lh = (struct list_head *) pgtable; in radix__pgtable_trans_huge_withdraw()
997 if (list_empty(lh)) in radix__pgtable_trans_huge_withdraw()
1000 pmd_huge_pte(mm, pmdp) = (pgtable_t) lh->next; in radix__pgtable_trans_huge_withdraw()
1001 list_del(lh); in radix__pgtable_trans_huge_withdraw()
/Linux-v4.19/net/atm/
Dbr2684.c125 struct list_head *lh; in br2684_find_dev() local
129 list_for_each(lh, &br2684_devs) { in br2684_find_dev()
130 net_dev = list_entry_brdev(lh); in br2684_find_dev()
136 list_for_each(lh, &br2684_devs) { in br2684_find_dev()
137 net_dev = list_entry_brdev(lh); in br2684_find_dev()
150 struct list_head *lh; in atm_dev_event() local
159 list_for_each(lh, &br2684_devs) { in atm_dev_event()
160 net_dev = list_entry_brdev(lh); in atm_dev_event()
/Linux-v4.19/arch/mips/include/asm/mach-ip27/
Dkernel-entry-init.h93 lh t1, KV_RO_NASID_OFFSET(t0)
94 lh t2, KV_RW_NASID_OFFSET(t0)
/Linux-v4.19/drivers/gpu/drm/exynos/
Dexynos_drm_ipp.c476 struct drm_exynos_ipp_limit_val *lh = &l.h, *lv = &l.v; in exynos_drm_ipp_check_size_limits() local
489 lh = &l.v; in exynos_drm_ipp_check_size_limits()
492 if (!__size_limit_check(buf->rect.w, lh) || in exynos_drm_ipp_check_size_limits()
493 !__align_check(buf->rect.x, lh->align) || in exynos_drm_ipp_check_size_limits()
521 const struct drm_exynos_ipp_limit_val *lh, *lv; in exynos_drm_ipp_check_scale_limits() local
531 lh = (!swap) ? &limits->h : &limits->v; in exynos_drm_ipp_check_scale_limits()
536 if (!__scale_limit_check(src->w, dw, lh->min, lh->max) || in exynos_drm_ipp_check_scale_limits()
/Linux-v4.19/fs/
Dseq_file.c886 struct list_head *lh; in seq_list_start() local
888 list_for_each(lh, head) in seq_list_start()
890 return lh; in seq_list_start()
907 struct list_head *lh; in seq_list_next() local
909 lh = ((struct list_head *)v)->next; in seq_list_next()
911 return lh == head ? NULL : lh; in seq_list_next()
/Linux-v4.19/arch/s390/mm/
Dpgtable.c518 struct list_head *lh = (struct list_head *) pgtable; in pgtable_trans_huge_deposit() local
524 INIT_LIST_HEAD(lh); in pgtable_trans_huge_deposit()
526 list_add(lh, (struct list_head *) pmd_huge_pte(mm, pmdp)); in pgtable_trans_huge_deposit()
532 struct list_head *lh; in pgtable_trans_huge_withdraw() local
540 lh = (struct list_head *) pgtable; in pgtable_trans_huge_withdraw()
541 if (list_empty(lh)) in pgtable_trans_huge_withdraw()
544 pmd_huge_pte(mm, pmdp) = (pgtable_t) lh->next; in pgtable_trans_huge_withdraw()
545 list_del(lh); in pgtable_trans_huge_withdraw()
/Linux-v4.19/drivers/dma/
Dfsldma.h196 #define to_fsl_desc(lh) container_of(lh, struct fsl_desc_sw, node) argument
/Linux-v4.19/lib/
Dlru_cache.c621 struct list_head *lh; in lc_set() local
633 lh = &lc->free; in lc_set()
636 lh = &lc->lru; in lc_set()
638 list_move(&e->list, lh); in lc_set()

123