Home
last modified time | relevance | path

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

1234

/openbmc/obmc-console/
H A Dlog-handler.c57 close(lh->fd); in log_trim()
58 rc = rename(lh->log_filename, lh->rotate_filename); in log_trim()
66 if (lh->fd < 0) { in log_trim()
71 lh->size = 0; in log_trim()
85 if (lh->size + len > lh->maxsize) { in log_data()
97 lh->size += len; in log_data()
141 close(lh->fd); in log_create()
144 lh->size = pos; in log_create()
163 lh->size = 0; in log_init()
174 lh->maxsize = logsize <= lh->pagesize ? lh->pagesize + 1 : logsize; in log_init()
[all …]
/openbmc/linux/net/dccp/ccids/lib/
H A Dloss_interval.c24 return lh->counter ? lh->ring[LIH_INDEX(lh->counter - 1)] : NULL; in tfrc_lh_peek()
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()
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()
50 for (lh->counter = 0; lh->counter < LIH_SIZE; lh->counter++) in tfrc_lh_cleanup()
51 if (lh->ring[LIH_INDEX(lh->counter)] != NULL) { in tfrc_lh_cleanup()
53 lh->ring[LIH_INDEX(lh->counter)]); in tfrc_lh_cleanup()
54 lh->ring[LIH_INDEX(lh->counter)] = NULL; in tfrc_lh_cleanup()
[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);
/openbmc/linux/net/netfilter/
H A Dxt_l2tp.c84 union l2tp_val *lh; in l2tp_udp_mt() local
96 if (lh == NULL) in l2tp_udp_mt()
99 flags = ntohs(lh->val16[0]); in l2tp_udp_mt()
114 if (lh == NULL) in l2tp_udp_mt()
124 if (lh == NULL) in l2tp_udp_mt()
142 union l2tp_val *lh; in l2tp_ip_mt() local
148 if (lh == NULL) in l2tp_ip_mt()
150 if (lh->val32 == 0) { in l2tp_ip_mt()
157 if (lh == NULL) in l2tp_ip_mt()
159 data.tid = ntohl(lh->val32); in l2tp_ip_mt()
[all …]
/openbmc/linux/fs/gfs2/
H A Drecovery.c125 (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()
142 head->lh_tail = be32_to_cpu(lh->lh_tail); in __get_log_header()
143 head->lh_blkno = be32_to_cpu(lh->lh_blkno); in __get_log_header()
221 struct gfs2_log_header_host lh; in 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()
857 lh->lh_flags = cpu_to_be32(flags); in gfs2_write_log_header()
858 lh->lh_tail = cpu_to_be32(tail); in gfs2_write_log_header()
860 hash = ~crc32(~0, lh, LH_V1_SIZE); in gfs2_write_log_header()
861 lh->lh_hash = cpu_to_be32(hash); in gfs2_write_log_header()
877 lh->lh_addr = cpu_to_be64(dblock); in gfs2_write_log_header()
884 lh->lh_statfs_addr = in gfs2_write_log_header()
886 lh->lh_quota_addr = in gfs2_write_log_header()
[all …]
/openbmc/u-boot/drivers/block/
H A Dblkcache.c15 struct list_head lh; member
37 list_for_each_entry(node, &block_cache, lh) in cache_find()
43 if (block_cache.next != &node->lh) { in cache_find()
45 list_del(&node->lh); in cache_find()
46 list_add(&node->lh, &block_cache); in cache_find()
92 list_del(&node->lh); in blkcache_fill()
124 list_add(&node->lh, &block_cache); in blkcache_fill()
153 list_del(&node->lh); in blkcache_configure()
/openbmc/linux/drivers/s390/block/
H A Ddcssblk.c70 struct list_head lh; member
86 struct list_head lh; member
117 list_del(&entry->lh); in dcssblk_release_segment()
141 list_for_each_entry(entry, &dcssblk_devices, lh) in dcssblk_assign_free_minor()
326 INIT_LIST_HEAD(&(*seg_info)->lh); in dcssblk_load_segment()
413 list_del(&dev_info->lh); in dcssblk_shared_store()
631 INIT_LIST_HEAD(&dev_info->lh); in dcssblk_add_store()
717 list_del(&dev_info->lh); in dcssblk_add_store()
726 list_del(&dev_info->lh); in dcssblk_add_store()
734 list_del(&seg_info->lh); in dcssblk_add_store()
[all …]
/openbmc/linux/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()
/openbmc/linux/drivers/md/
H A Ddm-bufio.c459 lh->previous = lh->no_previous; in lh_init()
464 if (lh->write) { in __lh_lock()
479 if (lh->write) { in __lh_unlock()
497 if (lh->previous != lh->no_previous) { in lh_exit()
498 __lh_unlock(lh, lh->previous); in lh_exit()
499 lh->previous = lh->no_previous; in lh_exit()
511 if (lh->previous != lh->no_previous) { in lh_next()
513 __lh_unlock(lh, lh->previous); in lh_next()
707 lh_exit(&lh); in cache_evict()
759 lh_exit(&lh); in cache_mark_many()
[all …]
/openbmc/linux/arch/sparc/mm/
H A Dtlb.c272 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()
/openbmc/linux/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()
/openbmc/u-boot/fs/yaffs2/
H A Dyaffs_verify.c405 struct list_head *lh; in yaffs_verify_objects() local
413 list_for_each(lh, &dev->obj_bucket[i].list) { in yaffs_verify_objects()
414 obj = list_entry(lh, struct yaffs_obj, hash_link); in yaffs_verify_objects()
422 struct list_head *lh; in yaffs_verify_obj_in_dir() local
448 list_for_each(lh, &obj->parent->variant.dir_variant.children) { in yaffs_verify_obj_in_dir()
449 list_obj = list_entry(lh, struct yaffs_obj, siblings); in yaffs_verify_obj_in_dir()
465 struct list_head *lh; in yaffs_verify_dir() local
485 list_for_each(lh, &directory->variant.dir_variant.children) { in yaffs_verify_dir()
486 list_obj = list_entry(lh, struct yaffs_obj, siblings); in yaffs_verify_dir()
H A Dyaffs_allocator.c290 struct list_head *lh; in yaffs_alloc_raw_obj() local
303 lh = allocator->free_objs.next; in yaffs_alloc_raw_obj()
304 obj = list_entry(lh, struct yaffs_obj, siblings); in yaffs_alloc_raw_obj()
305 list_del_init(lh); in yaffs_alloc_raw_obj()
/openbmc/linux/security/apparmor/
H A Dpolicy.c894 list_for_each_entry(ent, lh, list) { in __list_lookup_parent()
922 LIST_HEAD(lh); in __replace_profile()
1042 LIST_HEAD(lh); 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()
1177 list_for_each_entry(ent, &lh, list) { in aa_replace_profiles()
1226 struct list_head *lh; in aa_replace_profiles() local
1232 lh = &parent->base.profiles; in aa_replace_profiles()
1234 lh = &ns->base.profiles; in aa_replace_profiles()
1235 __add_profile(lh, ent->new); in aa_replace_profiles()
[all …]
/openbmc/linux/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()
/openbmc/linux/drivers/gpio/
H A Dgpiolib-cdev.c250 if (!lh->gdev->chip) in linehandle_ioctl_unlocked()
257 lh->num_descs, lh->descs, in linehandle_ioctl_unlocked()
289 lh->descs, in linehandle_ioctl_unlocked()
321 if (lh->descs[i]) in linehandle_free()
323 kfree(lh->label); in linehandle_free()
325 kfree(lh); in linehandle_free()
363 lh = kzalloc(sizeof(*lh), GFP_KERNEL); in linehandle_create()
364 if (!lh) in linehandle_create()
373 if (!lh->label) { in linehandle_create()
431 lh, in linehandle_create()
[all …]
/openbmc/linux/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; in seq_list_next_rcu() local
[all …]
/openbmc/linux/drivers/dma/sh/
H A Dshdma.h56 #define to_sh_desc(lh) container_of(lh, struct sh_desc, node) argument
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_irq.c421 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()
/openbmc/linux/drivers/infiniband/hw/mlx4/
H A Dcm.c527 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()
/openbmc/linux/drivers/net/ethernet/altera/
H A Daltera_sgdma.c447 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()
/openbmc/linux/mm/
H A Dhighmem.c727 struct list_head lh; /* List of page_address_maps */ member
754 if (!list_empty(&pas->lh)) { in page_address()
757 list_for_each_entry(pam, &pas->lh, list) { in page_address()
790 list_add_tail(&pam->list, &pas->lh); in set_page_address()
794 list_for_each_entry(pam, &pas->lh, list) { in set_page_address()
811 INIT_LIST_HEAD(&page_address_htable[i].lh); in page_address_init()
/openbmc/linux/net/atm/
H A Dbr2684.c126 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()
/openbmc/linux/arch/mips/include/asm/mach-ip27/
H A Dkernel-entry-init.h83 lh t1, KV_RO_NASID_OFFSET(t0)
84 lh t2, KV_RW_NASID_OFFSET(t0)

1234