| /linux/net/dccp/ccids/lib/ |
| A D | loss_interval.c | 24 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 …]
|
| A 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/net/netfilter/ |
| A D | xt_l2tp.c | 84 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 …]
|
| /linux/fs/gfs2/ |
| A D | recovery.c | 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->lh_sequence); in __get_log_header() 143 head->lh_flags = be32_to_cpu(lh->lh_flags); in __get_log_header() 144 head->lh_tail = be32_to_cpu(lh->lh_tail); in __get_log_header() 145 head->lh_blkno = be32_to_cpu(lh->lh_blkno); in __get_log_header() 223 struct gfs2_log_header_host lh; in foreach_descriptor() local [all …]
|
| A D | log.c | 828 struct gfs2_log_header *lh; in gfs2_write_log_header() local 840 lh = page_address(page); in gfs2_write_log_header() 841 clear_page(lh); in gfs2_write_log_header() 849 lh->lh_flags = cpu_to_be32(flags); in gfs2_write_log_header() 850 lh->lh_tail = cpu_to_be32(tail); in gfs2_write_log_header() 852 hash = ~crc32(~0, lh, LH_V1_SIZE); in gfs2_write_log_header() 853 lh->lh_hash = cpu_to_be32(hash); in gfs2_write_log_header() 869 lh->lh_addr = cpu_to_be64(dblock); in gfs2_write_log_header() 876 lh->lh_statfs_addr = in gfs2_write_log_header() 878 lh->lh_quota_addr = in gfs2_write_log_header() [all …]
|
| /linux/drivers/s390/block/ |
| A D | dcssblk.c | 82 struct list_head lh; member 98 struct list_head lh; member 129 list_del(&entry->lh); in dcssblk_release_segment() 153 list_for_each_entry(entry, &dcssblk_devices, lh) in dcssblk_assign_free_minor() 338 INIT_LIST_HEAD(&(*seg_info)->lh); in dcssblk_load_segment() 425 list_del(&dev_info->lh); in dcssblk_shared_store() 642 INIT_LIST_HEAD(&dev_info->lh); in dcssblk_add_store() 722 list_del(&dev_info->lh); in dcssblk_add_store() 731 list_del(&dev_info->lh); in dcssblk_add_store() 739 list_del(&seg_info->lh); in dcssblk_add_store() [all …]
|
| /linux/arch/s390/appldata/ |
| A D | appldata_base.c | 126 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() 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 459 list_for_each(lh, &appldata_ops_list) { in appldata_restore() [all …]
|
| /linux/drivers/gpu/drm/ |
| A D | drm_aperture.c | 133 struct list_head lh; member 155 list_del(&ap->lh); in devm_aperture_acquire_release() 170 ap = container_of(pos, struct drm_aperture, lh); in devm_aperture_acquire() 187 INIT_LIST_HEAD(&ap->lh); in devm_aperture_acquire() 189 list_add(&ap->lh, &drm_apertures); in devm_aperture_acquire() 258 container_of(pos, struct drm_aperture, lh); in drm_aperture_detach_drivers() 268 list_del(&ap->lh); in drm_aperture_detach_drivers()
|
| /linux/arch/sparc/mm/ |
| A D | tlb.c | 267 struct list_head *lh = (struct list_head *) pgtable; in pgtable_trans_huge_deposit() local 273 INIT_LIST_HEAD(lh); in pgtable_trans_huge_deposit() 275 list_add(lh, (struct list_head *) pmd_huge_pte(mm, pmdp)); in pgtable_trans_huge_deposit() 281 struct list_head *lh; in pgtable_trans_huge_withdraw() local 288 lh = (struct list_head *) pgtable; in pgtable_trans_huge_withdraw() 289 if (list_empty(lh)) in pgtable_trans_huge_withdraw() 292 pmd_huge_pte(mm, pmdp) = (pgtable_t) lh->next; in pgtable_trans_huge_withdraw() 293 list_del(lh); in pgtable_trans_huge_withdraw()
|
| /linux/security/apparmor/ |
| A D | policy.c | 757 list_for_each_entry(ent, lh, list) { in __list_lookup_parent() 786 LIST_HEAD(lh); in __replace_profile() 906 LIST_HEAD(lh); in aa_replace_profiles() 921 list_for_each_entry(ent, &lh, list) { in aa_replace_profiles() 969 list_for_each_entry(ent, &lh, list) { in aa_replace_profiles() 1020 list_for_each_entry(ent, &lh, list) { in aa_replace_profiles() 1067 struct list_head *lh; in aa_replace_profiles() local 1073 lh = &parent->base.profiles; in aa_replace_profiles() 1075 lh = &ns->base.profiles; in aa_replace_profiles() 1076 __add_profile(lh, ent->new); in aa_replace_profiles() [all …]
|
| /linux/kernel/rcu/ |
| A D | srcutiny.c | 115 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()
|
| /linux/drivers/gpio/ |
| A D | gpiolib-cdev.c | 206 lh->num_descs, in linehandle_ioctl() 207 lh->descs, in linehandle_ioctl() 262 if (lh->descs[i]) in linehandle_free() 264 kfree(lh->label); in linehandle_free() 266 kfree(lh); in linehandle_free() 304 lh = kzalloc(sizeof(*lh), GFP_KERNEL); in linehandle_create() 305 if (!lh) in linehandle_create() 307 lh->gdev = gdev; in linehandle_create() 315 if (!lh->label) { in linehandle_create() 374 lh, in linehandle_create() [all …]
|
| /linux/drivers/dma/sh/ |
| A D | shdma.h | 56 #define to_sh_desc(lh) container_of(lh, struct sh_desc, node) argument
|
| /linux/mm/ |
| A D | highmem.c | 706 struct list_head lh; /* List of page_address_maps */ member 733 if (!list_empty(&pas->lh)) { in page_address() 736 list_for_each_entry(pam, &pas->lh, list) { in page_address() 769 list_add_tail(&pam->list, &pas->lh); in set_page_address() 773 list_for_each_entry(pam, &pas->lh, list) { in set_page_address() 791 INIT_LIST_HEAD(&page_address_htable[i].lh); in page_address_init()
|
| /linux/drivers/infiniband/hw/mlx4/ |
| A D | cm.c | 526 struct list_head lh; in mlx4_ib_cm_paravirt_clean() local 531 INIT_LIST_HEAD(&lh); in mlx4_ib_cm_paravirt_clean() 556 list_splice_init(&dev->sriov.cm_list, &lh); in mlx4_ib_cm_paravirt_clean() 565 list_move_tail(&ent->list, &lh); in mlx4_ib_cm_paravirt_clean() 568 list_for_each_entry_safe(map, tmp_map, &lh, list) { in mlx4_ib_cm_paravirt_clean() 576 list_move_tail(&map->list, &lh); in mlx4_ib_cm_paravirt_clean() 583 list_for_each_entry_safe(map, tmp_map, &lh, list) { in mlx4_ib_cm_paravirt_clean()
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| A D | amdgpu_dm_irq.c | 417 struct list_head *lh; in amdgpu_dm_irq_init() local 425 lh = &adev->dm.irq_handler_list_low_tab[src]; in amdgpu_dm_irq_init() 426 INIT_LIST_HEAD(lh); in amdgpu_dm_irq_init() 443 struct list_head *lh; in amdgpu_dm_irq_fini() local 454 lh = &adev->dm.irq_handler_list_low_tab[src]; in amdgpu_dm_irq_fini() 457 if (!list_empty(lh)) { in amdgpu_dm_irq_fini() 458 list_for_each_safe(entry, tmp, lh) { in amdgpu_dm_irq_fini()
|
| /linux/net/atm/ |
| A 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/drivers/net/ethernet/altera/ |
| A 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/arch/powerpc/mm/book3s64/ |
| A D | radix_pgtable.c | 987 struct list_head *lh = (struct list_head *) pgtable; in radix__pgtable_trans_huge_deposit() local 993 INIT_LIST_HEAD(lh); in radix__pgtable_trans_huge_deposit() 995 list_add(lh, (struct list_head *) pmd_huge_pte(mm, pmdp)); in radix__pgtable_trans_huge_deposit() 1003 struct list_head *lh; in radix__pgtable_trans_huge_withdraw() local 1009 lh = (struct list_head *) pgtable; in radix__pgtable_trans_huge_withdraw() 1010 if (list_empty(lh)) in radix__pgtable_trans_huge_withdraw() 1013 pmd_huge_pte(mm, pmdp) = (pgtable_t) lh->next; in radix__pgtable_trans_huge_withdraw() 1014 list_del(lh); in radix__pgtable_trans_huge_withdraw()
|
| /linux/drivers/gpu/drm/exynos/ |
| A D | exynos_drm_ipp.c | 480 struct drm_exynos_ipp_limit_val *lh = &l.h, *lv = &l.v; in exynos_drm_ipp_check_size_limits() local 493 lh = &l.v; in exynos_drm_ipp_check_size_limits() 496 if (!__size_limit_check(buf->rect.w, lh) || in exynos_drm_ipp_check_size_limits() 497 !__align_check(buf->rect.x, lh->align) || in exynos_drm_ipp_check_size_limits() 525 const struct drm_exynos_ipp_limit_val *lh, *lv; in exynos_drm_ipp_check_scale_limits() local 535 lh = (!swap) ? &limits->h : &limits->v; in exynos_drm_ipp_check_scale_limits() 540 if (!__scale_limit_check(src->w, dw, lh->min, lh->max) || in exynos_drm_ipp_check_scale_limits()
|
| /linux/arch/mips/include/asm/mach-ip27/ |
| A D | kernel-entry-init.h | 83 lh t1, KV_RO_NASID_OFFSET(t0) 84 lh t2, KV_RW_NASID_OFFSET(t0)
|
| /linux/fs/ |
| A D | seq_file.c | 905 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()
|
| /linux/arch/s390/mm/ |
| A D | pgtable.c | 552 struct list_head *lh = (struct list_head *) pgtable; in pgtable_trans_huge_deposit() local 558 INIT_LIST_HEAD(lh); in pgtable_trans_huge_deposit() 560 list_add(lh, (struct list_head *) pmd_huge_pte(mm, pmdp)); in pgtable_trans_huge_deposit() 566 struct list_head *lh; in pgtable_trans_huge_withdraw() local 574 lh = (struct list_head *) pgtable; in pgtable_trans_huge_withdraw() 575 if (list_empty(lh)) in pgtable_trans_huge_withdraw() 578 pmd_huge_pte(mm, pmdp) = (pgtable_t) lh->next; in pgtable_trans_huge_withdraw() 579 list_del(lh); in pgtable_trans_huge_withdraw()
|
| /linux/lib/ |
| A D | lru_cache.c | 610 struct list_head *lh; in lc_set() local 622 lh = &lc->free; in lc_set() 625 lh = &lc->lru; in lc_set() 627 list_move(&e->list, lh); in lc_set()
|
| /linux/fs/coda/ |
| A 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()
|