/openbmc/linux/fs/ocfs2/ |
H A D | extent_map.c | 49 unsigned int cpos, in __ocfs2_extent_map_lookup() argument 60 if (cpos >= emi->ei_cpos && cpos < range) { in __ocfs2_extent_map_lookup() 69 static int ocfs2_extent_map_lookup(struct inode *inode, unsigned int cpos, in ocfs2_extent_map_lookup() argument 79 __ocfs2_extent_map_lookup(&oi->ip_extent_map, cpos, &emi); in ocfs2_extent_map_lookup() 81 coff = cpos - emi->ei_cpos; in ocfs2_extent_map_lookup() 100 void ocfs2_extent_map_trunc(struct inode *inode, unsigned int cpos) in ocfs2_extent_map_trunc() argument 110 if (emi->ei_cpos >= cpos) { in ocfs2_extent_map_trunc() 119 if (range > cpos) { in ocfs2_extent_map_trunc() 121 emi->ei_clusters = cpos - emi->ei_cpos; in ocfs2_extent_map_trunc() 663 u32 cpos, num_clusters, p_cluster; in ocfs2_extent_map_get_blocks() local [all …]
|
H A D | refcounttree.c | 62 u32 cpos, u32 old_cluster, 877 u64 cpos, unsigned int len, in ocfs2_find_refcount_rec_in_rl() argument 890 le32_to_cpu(rec->r_clusters) <= cpos) in ocfs2_find_refcount_rec_in_rl() 892 else if (le64_to_cpu(rec->r_cpos) > cpos) in ocfs2_find_refcount_rec_in_rl() 903 ret_rec->r_cpos = cpu_to_le64(cpos); in ocfs2_find_refcount_rec_in_rl() 906 le64_to_cpu(rec->r_cpos) < cpos + len) in ocfs2_find_refcount_rec_in_rl() 908 cpu_to_le32(le64_to_cpu(rec->r_cpos) - cpos); in ocfs2_find_refcount_rec_in_rl() 964 u32 cpos; in ocfs2_get_refcount_cpos_end() local 1004 cpos = le32_to_cpu(eb->h_list.l_recs[index].e_cpos); in ocfs2_get_refcount_cpos_end() 1005 ret = ocfs2_find_path(ci, left_path, cpos); in ocfs2_get_refcount_cpos_end() [all …]
|
H A D | refcounttree.h | 35 handle_t *handle, u32 cpos, u32 len, 47 u32 cpos, u32 write_len, u32 max_cpos); 75 u32 cpos, u32 write_len, 79 u32 cpos, u32 old_cluster, 83 u32 cpos, u32 old_cluster, 87 u32 cpos, u32 num_clusters); 92 u32 cpos, u32 p_cluster, u32 num_clusters, 101 u64 cpos, u32 len,
|
H A D | alloc.h | 83 u32 cpos, 113 handle_t *handle, u32 cpos, u32 len, u32 phys, 118 u32 cpos, u32 len, u32 phys, 123 u32 cpos, u32 len, 128 u32 cpos, u32 phys_cpos, u32 len, int flags, 224 struct ocfs2_extent_list *root_el, u32 cpos, 293 u32 cpos); 304 struct ocfs2_path *path, u32 *cpos); 306 struct ocfs2_path *path, u32 *cpos);
|
H A D | move_extents.c | 51 u32 cpos, u32 len, u32 p_cpos, u32 new_p_cpos, in __ocfs2_move_extent() argument 63 ret = ocfs2_duplicate_clusters_by_page(handle, inode, cpos, in __ocfs2_move_extent() 71 replace_rec.e_cpos = cpu_to_le32(cpos); in __ocfs2_move_extent() 83 ret = ocfs2_find_path(INODE_CACHE(inode), path, cpos); in __ocfs2_move_extent() 91 index = ocfs2_search_extent_list(el, cpos); in __ocfs2_move_extent() 95 (unsigned long long)ino, cpos); in __ocfs2_move_extent() 196 u32 cpos, u32 phys_cpos, u32 *len, int ext_flags) in ocfs2_defrag_extent() argument 302 mlog(0, "cpos: %u, phys_cpos: %u, new_phys_cpos: %u\n", cpos, in ocfs2_defrag_extent() 305 ret = __ocfs2_move_extent(handle, context, cpos, new_len, phys_cpos, in ocfs2_defrag_extent() 317 ret = ocfs2_cow_sync_writeback(inode->i_sb, context->inode, cpos, *len); in ocfs2_defrag_extent() [all …]
|
H A D | ocfs2_trace.h | 503 TP_PROTO(unsigned long long owner, unsigned int cpos, 506 TP_ARGS(owner, cpos, len, index, e_cpos, clusters), 509 __field(unsigned int, cpos) 517 __entry->cpos = cpos; 524 __entry->owner, __entry->cpos, __entry->len, __entry->index, 604 TP_PROTO(unsigned long long owner, unsigned int cpos, 606 TP_ARGS(owner, cpos, len, phys), 609 __field(unsigned int, cpos) 615 __entry->cpos = cpos; 620 __entry->owner, __entry->cpos, [all …]
|
H A D | alloc.c | 1786 struct ocfs2_extent_list *root_el, u32 cpos, in __ocfs2_find_path() argument 1819 if (cpos >= le32_to_cpu(rec->e_cpos) && cpos < range) in __ocfs2_find_path() 1893 struct ocfs2_path *path, u32 cpos) in ocfs2_find_path() argument 1899 return __ocfs2_find_path(ci, path_root_el(path), cpos, in ocfs2_find_path() 1925 struct ocfs2_extent_list *root_el, u32 cpos, in ocfs2_find_leaf() argument 1931 ret = __ocfs2_find_path(ci, root_el, cpos, find_leaf_ins, &bh); in ocfs2_find_leaf() 2209 struct ocfs2_path *path, u32 *cpos) in ocfs2_find_cpos_for_left_leaf() argument 2217 *cpos = 0; in ocfs2_find_cpos_for_left_leaf() 2250 *cpos = le32_to_cpu(el->l_recs[j - 1].e_cpos); in ocfs2_find_cpos_for_left_leaf() 2251 *cpos = *cpos + ocfs2_rec_clusters(el, in ocfs2_find_cpos_for_left_leaf() [all …]
|
H A D | file.c | 344 u32 phys, cpos = offset >> OCFS2_SB(inode->i_sb)->s_clustersize_bits; in ocfs2_cow_file_pos() local 356 status = ocfs2_get_clusters(inode, cpos, &phys, in ocfs2_cow_file_pos() 366 return ocfs2_refcount_cow(inode, fe_bh, cpos, 1, cpos+1); in ocfs2_cow_file_pos() 1440 u32 cpos, phys_cpos, clusters, alloc_size; in ocfs2_allocate_unwritten_extents() local 1468 cpos = start >> OCFS2_SB(inode->i_sb)->s_clustersize_bits; in ocfs2_allocate_unwritten_extents() 1470 clusters -= cpos; in ocfs2_allocate_unwritten_extents() 1473 ret = ocfs2_get_clusters(inode, cpos, &phys_cpos, in ocfs2_allocate_unwritten_extents() 1495 ret = ocfs2_extend_allocation(inode, cpos, alloc_size, 1); in ocfs2_allocate_unwritten_extents() 1503 cpos += alloc_size; in ocfs2_allocate_unwritten_extents() 2146 u32 cpos, clusters, extent_len, phys_cpos; in ocfs2_check_range_for_refcount() local [all …]
|
H A D | aops.c | 506 u32 cpos, in ocfs2_figure_cluster_boundaries() argument 517 cluster_start = cpos % cpp; in ocfs2_figure_cluster_boundaries() 541 struct ocfs2_super *osb, u32 cpos, in ocfs2_clear_page_regions() argument 547 ocfs2_figure_cluster_boundaries(osb, cpos, &cluster_start, &cluster_end); in ocfs2_clear_page_regions() 941 struct page *page, u32 cpos, in ocfs2_prepare_page_for_write() argument 950 ocfs2_figure_cluster_boundaries(OCFS2_SB(inode->i_sb), cpos, in ocfs2_prepare_page_for_write() 1012 cpos, user_data_from, user_data_to); in ocfs2_prepare_page_for_write() 1025 u32 cpos, loff_t user_pos, in ocfs2_grab_pages_for_write() argument 1045 start = ocfs2_align_clusters_to_page_index(inode->i_sb, cpos); in ocfs2_grab_pages_for_write() 1119 struct ocfs2_write_ctxt *wc, u32 cpos, in ocfs2_write_cluster() argument [all …]
|
H A D | xattr.c | 269 u64 blkno, u32 cpos, u32 len, void *para); 280 u32 cpos, 761 u32 cpos, u32 phys_cpos, u32 len, in __ocfs2_remove_xattr_range() argument 779 ret = ocfs2_remove_extent(handle, &et, cpos, len, ctxt->meta_ac, in __ocfs2_remove_xattr_range() 812 u32 trunc_len, cpos, phys_cpos, alloc_size; in ocfs2_xattr_shrink_size() local 818 cpos = new_clusters; in ocfs2_xattr_shrink_size() 821 ret = ocfs2_xattr_get_clusters(inode, cpos, &phys_cpos, in ocfs2_xattr_shrink_size() 832 ret = __ocfs2_remove_xattr_range(inode, vb, cpos, in ocfs2_xattr_shrink_size() 843 cpos += alloc_size; in ocfs2_xattr_shrink_size() 1109 u32 cpos, p_cluster, num_clusters, bpc, clusters; in ocfs2_xattr_get_value_outside() local [all …]
|
H A D | dir.c | 856 u32 cpos; in ocfs2_dx_dir_lookup() local 860 ret = ocfs2_dx_dir_lookup_rec(inode, el, name_hash, &cpos, &blkno, in ocfs2_dx_dir_lookup() 867 cend = cpos + clen; in ocfs2_dx_dir_lookup() 871 cpos += clen - 1; in ocfs2_dx_dir_lookup() 874 name_hash - cpos); in ocfs2_dx_dir_lookup() 875 cpos = name_hash; in ocfs2_dx_dir_lookup() 888 *ret_cpos = cpos; in ocfs2_dx_dir_lookup() 2455 u32 cpos, handle_t *handle, in __ocfs2_dx_dir_new_cluster() argument 2496 u32 cpos, handle_t *handle, in ocfs2_dx_dir_new_cluster() argument 2505 ret = __ocfs2_dx_dir_new_cluster(dir, cpos, handle, data_ac, dx_leaves, in ocfs2_dx_dir_new_cluster() [all …]
|
/openbmc/u-boot/fs/ubifs/ |
H A D | lprops.c | 93 int val1, val2, val3, cpos; in adjust_lpt_heap() local 123 cpos = hpos * 2 + 1; in adjust_lpt_heap() 124 if (cpos >= heap->cnt) in adjust_lpt_heap() 126 val2 = get_heap_comp_val(heap->arr[cpos], cat); in adjust_lpt_heap() 129 if (cpos + 1 < heap->cnt) { in adjust_lpt_heap() 130 val3 = get_heap_comp_val(heap->arr[cpos + 1], in adjust_lpt_heap() 133 cpos += 1; /* Right child is bigger */ in adjust_lpt_heap() 135 heap->arr[cpos]->hpos = hpos; in adjust_lpt_heap() 136 heap->arr[hpos] = heap->arr[cpos]; in adjust_lpt_heap() 137 heap->arr[cpos] = lprops; in adjust_lpt_heap() [all …]
|
/openbmc/linux/fs/ubifs/ |
H A D | lprops.c | 90 int val1, val2, val3, cpos; in adjust_lpt_heap() local 120 cpos = hpos * 2 + 1; in adjust_lpt_heap() 121 if (cpos >= heap->cnt) in adjust_lpt_heap() 123 val2 = get_heap_comp_val(heap->arr[cpos], cat); in adjust_lpt_heap() 126 if (cpos + 1 < heap->cnt) { in adjust_lpt_heap() 127 val3 = get_heap_comp_val(heap->arr[cpos + 1], in adjust_lpt_heap() 130 cpos += 1; /* Right child is bigger */ in adjust_lpt_heap() 132 heap->arr[cpos]->hpos = hpos; in adjust_lpt_heap() 133 heap->arr[hpos] = heap->arr[cpos]; in adjust_lpt_heap() 134 heap->arr[cpos] = lprops; in adjust_lpt_heap() [all …]
|
/openbmc/linux/fs/fat/ |
H A D | dir.c | 473 loff_t cpos = 0; in fat_search_long() local 478 if (fat_get_entry(inode, &cpos, &bh, &de) == -1) in fat_search_long() 489 int status = fat_parse_long(inode, &cpos, &bh, &de, in fat_search_long() 528 sinfo->slot_off = cpos - nr_slots * sizeof(*de); in fat_search_long() 567 loff_t cpos; in __fat_readdir() local 573 cpos = ctx->pos; in __fat_readdir() 580 cpos = 0; in __fat_readdir() 583 if (cpos & (sizeof(struct msdos_dir_entry) - 1)) { in __fat_readdir() 590 if (fat_get_entry(inode, &cpos, &bh, &de) == -1) in __fat_readdir() 611 int status = fat_parse_long(inode, &cpos, &bh, &de, in __fat_readdir() [all …]
|
/openbmc/linux/fs/exfat/ |
H A D | dir.c | 68 static int exfat_readdir(struct inode *inode, loff_t *cpos, struct exfat_dir_entry *dir_entry) in exfat_readdir() argument 78 unsigned int dentry = EXFAT_B_TO_DEN(*cpos) & 0xFFFFFFFF; in exfat_readdir() 177 *cpos = EXFAT_DEN_TO_B(dentry + 1 + num_ext); in exfat_readdir() 194 *cpos = EXFAT_DEN_TO_B(dentry); in exfat_readdir() 236 loff_t cpos, i_pos; in exfat_iterate() local 241 cpos = ctx->pos; in exfat_iterate() 246 cpos = 0; in exfat_iterate() 250 cpos = round_up(cpos, DENTRY_SIZE); in exfat_iterate() 259 if (ei->flags == ALLOC_NO_FAT_CHAIN && cpos >= i_size_read(inode)) in exfat_iterate() 262 err = exfat_readdir(inode, &cpos, &de); in exfat_iterate() [all …]
|
/openbmc/phosphor-networkd/src/ |
H A D | config_parser.cpp | 162 auto cpos = line.find(']'); in pumpSection() local 163 if (cpos == line.npos) in pumpSection() 170 for (auto c : line.substr(cpos + 1)) in pumpSection() 181 auto s = line.substr(0, cpos); in pumpSection()
|
/openbmc/qemu/target/hppa/ |
H A D | insns.decode | 404 shrp_imm 110100 r2:5 r1:5 c:3 01 0 cpos:5 t:5 d=0 406 d=1 cpos=%cpos6_11 416 dep_imm 110101 t:5 r:5 c:3 01 nz:1 cpos:5 ..... d=0 len=%len5 418 d=1 len=%len6_12 cpos=%cpos6_11 421 depi_imm 110101 t:5 ..... c:3 11 nz:1 cpos:5 ..... \ 424 d=1 i=%im5_16 len=%len6_12 cpos=%cpos6_11
|
H A D | translate.c | 3725 sa = width - 1 - a->cpos; in trans_shrp_imm() 3796 unsigned len, cpos, width; in trans_extr_imm() local 3808 cpos = width - 1 - a->pos; in trans_extr_imm() 3809 if (cpos + len > width) { in trans_extr_imm() 3810 len = width - cpos; in trans_extr_imm() 3816 tcg_gen_sextract_i64(dest, src, cpos, len); in trans_extr_imm() 3818 tcg_gen_extract_i64(dest, src, cpos, len); in trans_extr_imm() 3842 if (a->cpos + len > width) { in trans_depi_imm() 3843 len = width - a->cpos; in trans_depi_imm() 3847 mask0 = deposit64(0, a->cpos, len, a->i); in trans_depi_imm() [all …]
|
/openbmc/linux/drivers/gpu/drm/ingenic/ |
H A D | ingenic-drm-drv.c | 56 u32 cpos; member 693 hwdesc->cpos = 0; in ingenic_drm_plane_atomic_update() 699 hwdesc->cpos |= JZ_LCD_CPOS_RGB555; in ingenic_drm_plane_atomic_update() 702 hwdesc->cpos |= JZ_LCD_CPOS_BPP_15_16; in ingenic_drm_plane_atomic_update() 705 hwdesc->cpos |= JZ_LCD_CPOS_BPP_18_24; in ingenic_drm_plane_atomic_update() 708 hwdesc->cpos |= (JZ_LCD_CPOS_COEFFICIENT_1 << in ingenic_drm_plane_atomic_update()
|
/openbmc/linux/fs/ntfs/ |
H A D | file.c | 566 VCN vcn, highest_vcn = 0, cpos, cend, bh_cpos, bh_cend; in ntfs_prepare_pages_for_non_resident_write() local 625 cpos = pos >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write() 926 if ((bh_cend <= cpos || bh_cpos >= cend)) { in ntfs_prepare_pages_for_non_resident_write()
|
/openbmc/linux/block/ |
H A D | sed-opal.c | 573 const u8 *epos = dev->resp, *cpos = dev->resp; in opal_discovery0_end() local 596 cpos += sizeof(*hdr); /* current position on buffer */ in opal_discovery0_end() 598 while (cpos < epos && supported) { in opal_discovery0_end() 600 (const struct d0_features *)cpos; in opal_discovery0_end() 648 cpos += body->length + 4; in opal_discovery0_end()
|