Home
last modified time | relevance | path

Searched refs:lh (Results 1 - 25 of 135) sorted by relevance

123456

/kernel/linux/linux-5.10/net/dccp/ccids/lib/
H A Dloss_interval.c22 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 in tfrc_lh_demand_next()
45 tfrc_lh_cleanup(struct tfrc_loss_hist *lh) tfrc_lh_cleanup() argument
58 tfrc_lh_calc_i_mean(struct tfrc_loss_hist *lh) tfrc_lh_calc_i_mean() argument
84 tfrc_lh_update_i_mean(struct tfrc_loss_hist *lh, struct sk_buff *skb) tfrc_lh_update_i_mean() argument
135 tfrc_lh_interval_add(struct tfrc_loss_hist *lh, struct tfrc_rx_hist *rh, u32 (*calc_first_li)(struct sock *), struct sock *sk) tfrc_lh_interval_add() argument
[all...]
H A Dloss_interval.h47 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);
/kernel/linux/linux-6.6/net/dccp/ccids/lib/
H A Dloss_interval.c22 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 in tfrc_lh_demand_next()
45 tfrc_lh_cleanup(struct tfrc_loss_hist *lh) tfrc_lh_cleanup() argument
58 tfrc_lh_calc_i_mean(struct tfrc_loss_hist *lh) tfrc_lh_calc_i_mean() argument
87 tfrc_lh_update_i_mean(struct tfrc_loss_hist *lh, struct sk_buff *skb) tfrc_lh_update_i_mean() argument
138 tfrc_lh_interval_add(struct tfrc_loss_hist *lh, struct tfrc_rx_hist *rh, u32 (*calc_first_li)(struct sock *), struct sock *sk) tfrc_lh_interval_add() argument
[all...]
H A Dloss_interval.h47 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);
/kernel/linux/linux-5.10/net/netfilter/
H A Dxt_l2tp.c84 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 in l2tp_udp_mt()
142 union l2tp_val *lh; l2tp_ip_mt() local
[all...]
/kernel/linux/linux-6.6/net/netfilter/
H A Dxt_l2tp.c84 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 in l2tp_udp_mt()
142 union l2tp_val *lh; l2tp_ip_mt() local
[all...]
/kernel/linux/linux-5.10/drivers/s390/block/
H A Ddcssblk.c83 struct list_head lh; member
100 struct list_head lh; member
130 list_for_each_entry_safe(entry, temp, &dev_info->seg_list, lh) { in dcssblk_release_segment()
131 list_del(&entry->lh); in dcssblk_release_segment()
155 list_for_each_entry(entry, &dcssblk_devices, lh) in dcssblk_assign_free_minor()
176 list_for_each_entry(entry, &dcssblk_devices, lh) { in dcssblk_get_device_by_name()
195 list_for_each_entry(dev_info, &dcssblk_devices, lh) { in dcssblk_get_segment_by_name()
196 list_for_each_entry(entry, &dev_info->seg_list, lh) { in dcssblk_get_segment_by_name()
214 list_for_each_entry(entry, &dev_info->seg_list, lh) { in dcssblk_find_highest_addr()
233 list_for_each_entry(entry, &dev_info->seg_list, lh) { in dcssblk_find_lowest_addr()
[all...]
/kernel/linux/linux-5.10/fs/gfs2/
H A Drecovery.c120 int __get_log_header(struct gfs2_sbd *sdp, const struct gfs2_log_header *lh, in __get_log_header() argument
125 if (lh->lh_header.mh_magic != cpu_to_be32(GFS2_MAGIC) || in __get_log_header()
126 lh->lh_header.mh_type != cpu_to_be32(GFS2_METATYPE_LH) || in __get_log_header()
127 (blkno && be32_to_cpu(lh->lh_blkno) != blkno)) in __get_log_header()
130 hash = crc32(~0, lh, LH_V1_SIZE - 4); in __get_log_header()
133 if (be32_to_cpu(lh->lh_hash) != hash) in __get_log_header()
136 crc = crc32c(~0, (void *)lh + LH_V1_SIZE + 4, in __get_log_header()
139 if ((lh->lh_crc != 0 && be32_to_cpu(lh->lh_crc) != crc)) in __get_log_header()
142 head->lh_sequence = be64_to_cpu(lh in __get_log_header()
222 struct gfs2_log_header_host lh; foreach_descriptor() local
[all...]
H A Dlog.c763 struct gfs2_log_header *lh; in gfs2_write_log_header() local
775 lh = page_address(page); in gfs2_write_log_header()
776 clear_page(lh); in gfs2_write_log_header()
778 lh->lh_header.mh_magic = cpu_to_be32(GFS2_MAGIC); in gfs2_write_log_header()
779 lh->lh_header.mh_type = cpu_to_be32(GFS2_METATYPE_LH); in gfs2_write_log_header()
780 lh->lh_header.__pad0 = cpu_to_be64(0); in gfs2_write_log_header()
781 lh->lh_header.mh_format = cpu_to_be32(GFS2_FORMAT_LH); in gfs2_write_log_header()
782 lh->lh_header.mh_jid = cpu_to_be32(sdp->sd_jdesc->jd_jid); in gfs2_write_log_header()
783 lh->lh_sequence = cpu_to_be64(seq); in gfs2_write_log_header()
784 lh in gfs2_write_log_header()
[all...]
/kernel/linux/linux-6.6/fs/gfs2/
H A Drecovery.c118 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 in __get_log_header()
221 struct gfs2_log_header_host lh; foreach_descriptor() local
[all...]
H A Dlog.c836 struct gfs2_log_header *lh; in gfs2_write_log_header() local
848 lh = page_address(page); in gfs2_write_log_header()
849 clear_page(lh); in gfs2_write_log_header()
851 lh->lh_header.mh_magic = cpu_to_be32(GFS2_MAGIC); in gfs2_write_log_header()
852 lh->lh_header.mh_type = cpu_to_be32(GFS2_METATYPE_LH); in gfs2_write_log_header()
853 lh->lh_header.__pad0 = cpu_to_be64(0); in gfs2_write_log_header()
854 lh->lh_header.mh_format = cpu_to_be32(GFS2_FORMAT_LH); in gfs2_write_log_header()
855 lh->lh_header.mh_jid = cpu_to_be32(sdp->sd_jdesc->jd_jid); in gfs2_write_log_header()
856 lh->lh_sequence = cpu_to_be64(seq); in gfs2_write_log_header()
857 lh in gfs2_write_log_header()
[all...]
/kernel/linux/linux-6.6/drivers/s390/block/
H A Ddcssblk.c70 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...]
/kernel/linux/linux-6.6/drivers/video/
H A Daperture.c137 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()
/kernel/linux/linux-6.6/drivers/md/
H A Ddm-bufio.c454 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 in __lh_lock()
477 __lh_unlock(struct lock_history *lh, unsigned int index) __lh_unlock() argument
495 lh_exit(struct lock_history *lh) lh_exit() argument
507 lh_next(struct lock_history *lh, sector_t b) lh_next() argument
658 struct lock_history *lh; global() member
680 __cache_evict(struct dm_buffer_cache *bc, int list_mode, b_predicate pred, void *context, struct lock_history *lh) __cache_evict() argument
703 struct lock_history lh; cache_evict() local
734 __cache_mark_many(struct dm_buffer_cache *bc, int old_mode, int new_mode, b_predicate pred, void *context, struct lock_history *lh) __cache_mark_many() argument
755 struct lock_history lh; cache_mark_many() local
780 __cache_iterate(struct dm_buffer_cache *bc, int list_mode, iter_fn fn, void *context, struct lock_history *lh) __cache_iterate() argument
811 struct lock_history lh; cache_iterate() local
[all...]
/kernel/linux/linux-5.10/arch/s390/appldata/
H A Dappldata_base.c126 struct list_head *lh; in appldata_work_fn() local
130 list_for_each(lh, &appldata_ops_list) { in appldata_work_fn()
131 ops = list_entry(lh, struct appldata_ops, list); in appldata_work_fn()
285 struct list_head *lh; in appldata_generic_handler() local
297 list_for_each(lh, &appldata_ops_list) { in appldata_generic_handler()
298 tmp_ops = list_entry(lh, struct appldata_ops, list); in appldata_generic_handler()
420 struct list_head *lh; in appldata_freeze() local
430 list_for_each(lh, &appldata_ops_list) { in appldata_freeze()
431 ops = list_entry(lh, struct appldata_ops, list); in appldata_freeze()
449 struct list_head *lh; in appldata_restore() local
[all...]
/kernel/linux/linux-5.10/arch/sparc/mm/
H A Dtlb.c266 struct list_head *lh = (struct list_head *) pgtable; in pgtable_trans_huge_deposit() local
272 INIT_LIST_HEAD(lh); in pgtable_trans_huge_deposit()
274 list_add(lh, (struct list_head *) pmd_huge_pte(mm, pmdp)); in pgtable_trans_huge_deposit()
280 struct list_head *lh; in pgtable_trans_huge_withdraw() local
287 lh = (struct list_head *) pgtable; in pgtable_trans_huge_withdraw()
288 if (list_empty(lh)) in pgtable_trans_huge_withdraw()
291 pmd_huge_pte(mm, pmdp) = (pgtable_t) lh->next; in pgtable_trans_huge_withdraw()
292 list_del(lh); in pgtable_trans_huge_withdraw()
/kernel/linux/linux-6.6/arch/sparc/mm/
H A Dtlb.c271 struct list_head *lh = (struct list_head *) pgtable; in pgtable_trans_huge_deposit() local
277 INIT_LIST_HEAD(lh); in pgtable_trans_huge_deposit()
279 list_add(lh, (struct list_head *) pmd_huge_pte(mm, pmdp)); in pgtable_trans_huge_deposit()
285 struct list_head *lh; in pgtable_trans_huge_withdraw() local
292 lh = (struct list_head *) pgtable; in pgtable_trans_huge_withdraw()
293 if (list_empty(lh)) in pgtable_trans_huge_withdraw()
296 pmd_huge_pte(mm, pmdp) = (pgtable_t) lh->next; in pgtable_trans_huge_withdraw()
297 list_del(lh); in pgtable_trans_huge_withdraw()
/kernel/linux/linux-5.10/security/apparmor/
H A Dpolicy.c705 static struct aa_profile *__list_lookup_parent(struct list_head *lh, in __list_lookup_parent() argument
717 list_for_each_entry(ent, lh, list) { in __list_lookup_parent()
746 LIST_HEAD(lh); in __replace_profile()
747 list_splice_init_rcu(&old->base.profiles, &lh, synchronize_rcu); in __replace_profile()
749 list_for_each_entry_safe(child, tmp, &lh, base.list) { in __replace_profile()
866 LIST_HEAD(lh); in aa_replace_profiles()
871 error = aa_unpack(udata, &lh, &ns_name); in aa_replace_profiles()
881 list_for_each_entry(ent, &lh, list) { in aa_replace_profiles()
929 list_for_each_entry(ent, &lh, list) { in aa_replace_profiles()
957 p = __list_lookup_parent(&lh, en in aa_replace_profiles()
1027 struct list_head *lh; aa_replace_profiles() local
[all...]
/kernel/linux/linux-5.10/kernel/rcu/
H A Dsrcutiny.c115 struct rcu_head *lh; in srcu_drive_gp() local
126 lh = ssp->srcu_cb_head; in srcu_drive_gp()
138 while (lh) { in srcu_drive_gp()
139 rhp = lh; in srcu_drive_gp()
140 lh = lh->next; in srcu_drive_gp()
/kernel/linux/linux-6.6/kernel/rcu/
H A Dsrcutiny.c115 struct rcu_head *lh; in srcu_drive_gp() local
126 lh = ssp->srcu_cb_head; in srcu_drive_gp()
138 while (lh) { in srcu_drive_gp()
139 rhp = lh; in srcu_drive_gp()
140 lh = lh->next; in srcu_drive_gp()
/kernel/linux/linux-5.10/drivers/gpio/
H A Dgpiolib-cdev.c150 static long linehandle_set_config(struct linehandle_state *lh, in linehandle_set_config() argument
166 for (i = 0; i < lh->num_descs; i++) { in linehandle_set_config()
167 desc = lh->descs[i]; in linehandle_set_config()
196 struct linehandle_state *lh = file->private_data; in linehandle_ioctl() local
203 if (!lh->gdev->chip) in linehandle_ioctl()
210 lh->num_descs, lh->descs, in linehandle_ioctl()
216 for (i = 0; i < lh->num_descs; i++) in linehandle_ioctl()
228 if (!test_bit(FLAG_IS_OUT, &lh->descs[0]->flags)) in linehandle_ioctl()
235 for (i = 0; i < lh in linehandle_ioctl()
260 linehandle_free(struct linehandle_state *lh) linehandle_free() argument
291 struct linehandle_state *lh; linehandle_create() local
[all...]
/kernel/linux/linux-6.6/fs/
H A Dseq_file.c905 struct list_head *lh; in seq_list_start() local
907 list_for_each(lh, head) in seq_list_start()
909 return lh; in seq_list_start()
926 struct list_head *lh; in seq_list_next() local
928 lh = ((struct list_head *)v)->next; in seq_list_next()
930 return lh == head ? NULL : lh; in seq_list_next()
936 struct list_head *lh; in seq_list_start_rcu() local
938 list_for_each_rcu(lh, head) in seq_list_start_rcu()
940 return lh; in seq_list_start_rcu()
958 struct list_head *lh; seq_list_next_rcu() local
[all...]
/kernel/linux/linux-6.6/arch/s390/appldata/
H A Dappldata_base.c111 struct list_head *lh; in appldata_work_fn() local
115 list_for_each(lh, &appldata_ops_list) { in appldata_work_fn()
116 ops = list_entry(lh, struct appldata_ops, list); in appldata_work_fn()
270 struct list_head *lh; in appldata_generic_handler() local
282 list_for_each(lh, &appldata_ops_list) { in appldata_generic_handler()
283 tmp_ops = list_entry(lh, struct appldata_ops, list); in appldata_generic_handler()
/kernel/linux/linux-5.10/mm/
H A Dhighmem.c393 struct list_head lh; /* List of page_address_maps */ member
420 if (!list_empty(&pas->lh)) { in page_address()
423 list_for_each_entry(pam, &pas->lh, list) { in page_address()
457 list_add_tail(&pam->list, &pas->lh); in set_page_address()
461 list_for_each_entry(pam, &pas->lh, list) { in set_page_address()
479 INIT_LIST_HEAD(&page_address_htable[i].lh); in page_address_init()
/kernel/linux/linux-6.6/security/apparmor/
H A Dpolicy.c882 static struct aa_profile *__list_lookup_parent(struct list_head *lh, in __list_lookup_parent() argument
894 list_for_each_entry(ent, lh, list) { in __list_lookup_parent()
922 LIST_HEAD(lh); in __replace_profile()
923 list_splice_init_rcu(&old->base.profiles, &lh, synchronize_rcu); in __replace_profile()
925 list_for_each_entry_safe(child, tmp, &lh, base.list) { in __replace_profile()
1042 LIST_HEAD(lh); in aa_replace_profiles()
1047 error = aa_unpack(udata, &lh, &ns_name); in aa_replace_profiles()
1057 list_for_each_entry(ent, &lh, list) { in aa_replace_profiles()
1107 list_for_each_entry(ent, &lh, list) { in aa_replace_profiles()
1138 p = __list_lookup_parent(&lh, en in aa_replace_profiles()
1226 struct list_head *lh; aa_replace_profiles() local
[all...]

Completed in 24 milliseconds

123456