/linux-4.19.296/fs/xfs/libxfs/ |
D | xfs_dir2_data.c | 128 if (be16_to_cpu(bf[0].length) < be16_to_cpu(bf[1].length)) in __xfs_dir3_data_check() 130 if (be16_to_cpu(bf[1].length) < be16_to_cpu(bf[2].length)) in __xfs_dir3_data_check() 142 if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { in __xfs_dir3_data_check() 147 if (endp < p + be16_to_cpu(dup->length)) in __xfs_dir3_data_check() 149 if (be16_to_cpu(*xfs_dir2_data_unused_tag_p(dup)) != in __xfs_dir3_data_check() 161 if (be16_to_cpu(dup->length) > in __xfs_dir3_data_check() 162 be16_to_cpu(bf[2].length)) in __xfs_dir3_data_check() 165 p += be16_to_cpu(dup->length); in __xfs_dir3_data_check() 182 if (be16_to_cpu(*ops->data_entry_tag_p(dep)) != in __xfs_dir3_data_check() 414 if (be16_to_cpu(dfp->offset) == off) { in xfs_dir2_data_freefind_verify() [all …]
|
D | xfs_inode_buf.c | 116 be16_to_cpu(dip->di_magic)); in xfs_inode_buf_verify() 217 set_nlink(inode, be16_to_cpu(from->di_onlink)); in xfs_inode_from_disk() 223 to->di_projid_lo = be16_to_cpu(from->di_projid_lo); in xfs_inode_from_disk() 224 to->di_projid_hi = be16_to_cpu(from->di_projid_hi); in xfs_inode_from_disk() 230 to->di_flushiter = be16_to_cpu(from->di_flushiter); in xfs_inode_from_disk() 245 inode->i_mode = be16_to_cpu(from->di_mode); in xfs_inode_from_disk() 251 to->di_anextents = be16_to_cpu(from->di_anextents); in xfs_inode_from_disk() 255 to->di_dmstate = be16_to_cpu(from->di_dmstate); in xfs_inode_from_disk() 256 to->di_flags = be16_to_cpu(from->di_flags); in xfs_inode_from_disk() 391 if (S_ISREG(be16_to_cpu(dip->di_mode))) in xfs_dinode_verify_fork() [all …]
|
D | xfs_dir2_block.c | 184 if (be16_to_cpu(bf[0].length) >= len) { in xfs_dir2_block_need_space() 189 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_block_need_space() 201 dup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_block_need_space() 207 if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { in xfs_dir2_block_need_space() 208 if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) * in xfs_dir2_block_need_space() 225 enddup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_block_need_space() 232 if (be16_to_cpu(enddup->freetag) == XFS_DIR2_DATA_FREE_TAG) { in xfs_dir2_block_need_space() 237 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_block_need_space() 242 if (be16_to_cpu(dup->length) < len) in xfs_dir2_block_need_space() 250 if (be16_to_cpu(dup->length) < len + (uint)sizeof(*blp)) { in xfs_dir2_block_need_space() [all …]
|
D | xfs_da_format.c | 442 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_dir2_leaf_hdr_from_disk() 443 to->count = be16_to_cpu(from->hdr.count); in xfs_dir2_leaf_hdr_from_disk() 444 to->stale = be16_to_cpu(from->hdr.stale); in xfs_dir2_leaf_hdr_from_disk() 474 to->magic = be16_to_cpu(hdr3->info.hdr.magic); in xfs_dir3_leaf_hdr_from_disk() 475 to->count = be16_to_cpu(hdr3->count); in xfs_dir3_leaf_hdr_from_disk() 476 to->stale = be16_to_cpu(hdr3->stale); in xfs_dir3_leaf_hdr_from_disk() 523 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_da2_node_hdr_from_disk() 524 to->count = be16_to_cpu(from->hdr.__count); in xfs_da2_node_hdr_from_disk() 525 to->level = be16_to_cpu(from->hdr.__level); in xfs_da2_node_hdr_from_disk() 551 to->magic = be16_to_cpu(hdr3->info.hdr.magic); in xfs_da3_node_hdr_from_disk() [all …]
|
D | xfs_attr_leaf.c | 104 to->firstused = be16_to_cpu(hdr3->firstused); in xfs_attr3_leaf_firstused_from_disk() 106 to->firstused = be16_to_cpu(from->hdr.firstused); in xfs_attr3_leaf_firstused_from_disk() 168 to->magic = be16_to_cpu(hdr3->info.hdr.magic); in xfs_attr3_leaf_hdr_from_disk() 169 to->count = be16_to_cpu(hdr3->count); in xfs_attr3_leaf_hdr_from_disk() 170 to->usedbytes = be16_to_cpu(hdr3->usedbytes); in xfs_attr3_leaf_hdr_from_disk() 175 to->freemap[i].base = be16_to_cpu(hdr3->freemap[i].base); in xfs_attr3_leaf_hdr_from_disk() 176 to->freemap[i].size = be16_to_cpu(hdr3->freemap[i].size); in xfs_attr3_leaf_hdr_from_disk() 182 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_attr3_leaf_hdr_from_disk() 183 to->count = be16_to_cpu(from->hdr.count); in xfs_attr3_leaf_hdr_from_disk() 184 to->usedbytes = be16_to_cpu(from->hdr.usedbytes); in xfs_attr3_leaf_hdr_from_disk() [all …]
|
D | xfs_bmap_btree.h | 72 (XFS_BMAP_BROOT_SPACE_CALC(mp, be16_to_cpu((bb)->bb_numrecs))) 77 (XFS_BMDR_SPACE_CALC(be16_to_cpu((bb)->bb_numrecs)))
|
/linux-4.19.296/block/partitions/ |
D | sun.c | 70 if (be16_to_cpu(label->magic) != SUN_LABEL_MAGIC) { in sun_partition() 90 (be16_to_cpu(label->vtoc.nparts) <= 8)); in sun_partition() 93 nparts = (use_vtoc) ? be16_to_cpu(label->vtoc.nparts) : 8; in sun_partition() 101 spc = be16_to_cpu(label->ntrks) * be16_to_cpu(label->nsect); in sun_partition() 112 if (be16_to_cpu(label->vtoc.infos[i].id) == LINUX_RAID_PARTITION) in sun_partition() 114 else if (be16_to_cpu(label->vtoc.infos[i].id) == SUN_WHOLE_DISK) in sun_partition()
|
D | aix.c | 192 u16 lvm_version = be16_to_cpu(p->version); in aix_partition() 196 int pp_size_log2 = be16_to_cpu(p->pp_size); in aix_partition() 216 numlvs = be16_to_cpu(p->numlvs); in aix_partition() 231 lvip[i].pps_per_lv = be16_to_cpu(p[i].num_lps); in aix_partition() 241 int numpps = be16_to_cpu(pvd->pp_count); in aix_partition() 252 lp_ix = be16_to_cpu(p->lp_ix); in aix_partition() 257 lv_ix = be16_to_cpu(p->lv_ix) - 1; in aix_partition()
|
D | mac.c | 48 if (be16_to_cpu(md->signature) != MAC_DRIVER_MAGIC) { in mac_partition() 52 secsize = be16_to_cpu(md->block_size); in mac_partition() 62 if (be16_to_cpu(part->signature) != MAC_PARTITION_MAGIC) { in mac_partition() 83 if (be16_to_cpu(part->signature) != MAC_PARTITION_MAGIC) in mac_partition()
|
/linux-4.19.296/include/rdma/ |
D | opa_addr.h | 55 #define OPA_TO_IB_UCAST_LID(x) (((x) >= be16_to_cpu(IB_MULTICAST_LID_BASE)) \ 103 be16_to_cpu(IB_MULTICAST_LID_BASE)) || in opa_is_extended_lid() 105 be16_to_cpu(IB_MULTICAST_LID_BASE))) in opa_is_extended_lid() 123 be16_to_cpu(IB_MULTICAST_LID_BASE)) in rdma_is_valid_unicast_lid()
|
D | ib_hdrs.h | 205 return (be16_to_cpu(hdr->lrh[0]) & IB_LNH_MASK); in ib_get_lnh() 210 return ((be16_to_cpu(hdr->lrh[0]) >> IB_SC_SHIFT) & IB_SC_MASK); in ib_get_sc() 220 return ((be16_to_cpu(hdr->lrh[0]) >> IB_SL_SHIFT) & IB_SL_MASK); in ib_get_sl() 225 return (be16_to_cpu(hdr->lrh[1])); in ib_get_dlid() 230 return (be16_to_cpu(hdr->lrh[3])); in ib_get_slid() 235 return (u8)((be16_to_cpu(hdr->lrh[0]) >> IB_LVER_SHIFT) & in ib_get_lver() 241 return (u16)(be16_to_cpu(hdr->lrh[2])); in ib_get_len()
|
/linux-4.19.296/include/linux/ |
D | ihex.h | 28 int next = ((be16_to_cpu(rec->len) + 5) & ~3) - 2; in ihex_next_binrec() 31 return be16_to_cpu(rec->len) ? rec : NULL; in ihex_next_binrec() 44 if (!be16_to_cpu(rec->len)) in ihex_validate_fw() 48 ofs += (sizeof(*rec) + be16_to_cpu(rec->len) + 3) & ~3; in ihex_validate_fw()
|
/linux-4.19.296/fs/hfsplus/ |
D | unicode.c | 38 len1 = be16_to_cpu(s1->length); in hfsplus_strcasecmp() 39 len2 = be16_to_cpu(s2->length); in hfsplus_strcasecmp() 47 c1 = case_fold(be16_to_cpu(*p1)); in hfsplus_strcasecmp() 52 c2 = case_fold(be16_to_cpu(*p2)); in hfsplus_strcasecmp() 72 len1 = be16_to_cpu(s1->length); in hfsplus_strcmp() 73 len2 = be16_to_cpu(s2->length); in hfsplus_strcmp() 78 c1 = be16_to_cpu(*p1); in hfsplus_strcmp() 79 c2 = be16_to_cpu(*p2); in hfsplus_strcmp() 135 ustrlen = be16_to_cpu(ustr->length); in hfsplus_uni2asc() 141 c0 = be16_to_cpu(*ip++); in hfsplus_uni2asc() [all …]
|
D | catalog.c | 54 len = be16_to_cpu(key->cat.name.length); in hfsplus_cat_build_key() 73 ustrlen = be16_to_cpu(name->length); in hfsplus_cat_build_key_uni() 190 return 10 + be16_to_cpu(entry->thread.nodeName.length) * 2; in hfsplus_fill_cat_thread() 206 type = be16_to_cpu(tmp.type); in hfsplus_find_cat() 212 if (be16_to_cpu(tmp.thread.nodeName.length) > 255) { in hfsplus_find_cat() 365 len = be16_to_cpu(fd.search_key->cat.name.length) * 2; in hfsplus_delete_cat() 476 type = be16_to_cpu(entry.type); in hfsplus_rename_cat()
|
/linux-4.19.296/fs/hfs/ |
D | extent.c | 66 return be16_to_cpu(block1) < be16_to_cpu(block2) ? -1 : 1; in hfs_ext_keycmp() 80 count = be16_to_cpu(ext->count); in hfs_ext_find_block() 82 return be16_to_cpu(ext->block) + off; in hfs_ext_find_block() 95 count += be16_to_cpu(ext->count); in hfs_ext_block_count() 107 return be16_to_cpu(ext->block) + be16_to_cpu(ext->count); in hfs_ext_lastblock() 182 HFS_I(inode)->cached_start = be16_to_cpu(fd->key->ext.FABN); in __hfs_ext_cache_extent() 215 be16_to_cpu(extent[i].block), in hfs_dump_extent() 216 be16_to_cpu(extent[i].count)); in hfs_dump_extent() 228 count = be16_to_cpu(extent->count); in hfs_add_extent() 230 start = be16_to_cpu(extent->block); in hfs_add_extent() [all …]
|
D | mdb.c | 112 sect = be16_to_cpu(mdb->drAlBlSt) + part_start; in hfs_mdb_get() 136 HFS_SB(sb)->fs_ablocks = be16_to_cpu(mdb->drNmAlBlks); in hfs_mdb_get() 142 HFS_SB(sb)->fs_start = (be16_to_cpu(mdb->drAlBlSt) + part_start) >> in hfs_mdb_get() 146 HFS_SB(sb)->free_ablocks = be16_to_cpu(mdb->drFreeBks); in hfs_mdb_get() 148 HFS_SB(sb)->root_files = be16_to_cpu(mdb->drNmFls); in hfs_mdb_get() 149 HFS_SB(sb)->root_dirs = be16_to_cpu(mdb->drNmRtDirs); in hfs_mdb_get() 174 block = be16_to_cpu(mdb->drVBMSt) + part_start; in hfs_mdb_get() 306 block = be16_to_cpu(HFS_SB(sb)->mdb->drVBMSt) + HFS_SB(sb)->part_start; in hfs_mdb_commit()
|
/linux-4.19.296/fs/xfs/scrub/ |
D | dir.c | 254 if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { in xchk_dir_rec() 255 p += be16_to_cpu(dup->length); in xchk_dir_rec() 303 dup_length = be16_to_cpu(dup->length); in xchk_directory_check_free_entry() 306 if (dup_length < be16_to_cpu(bf[XFS_DIR2_DATA_FD_COUNT - 1].length)) in xchk_directory_check_free_entry() 310 if (dup_length == be16_to_cpu(dfp->length)) in xchk_directory_check_free_entry() 364 offset = be16_to_cpu(dfp->offset); in xchk_directory_data_bestfree() 372 tag = be16_to_cpu(*xfs_dir2_data_unused_tag_p(dup)); in xchk_directory_data_bestfree() 376 be16_to_cpu(dup->length) != be16_to_cpu(dfp->length) || in xchk_directory_data_bestfree() 383 if (smallest_bestfree < be16_to_cpu(dfp->length)) { in xchk_directory_data_bestfree() 388 smallest_bestfree = be16_to_cpu(dfp->length); in xchk_directory_data_bestfree() [all …]
|
/linux-4.19.296/fs/gfs2/ |
D | dir.c | 413 be16_to_cpu(dent->de_name_len) == name->len && in __gfs2_dirent_find() 442 const char *end = (const char *)dent + be16_to_cpu(dent->de_rec_len); in gfs2_dirent_last() 455 unsigned actual = GFS2_DIRENT_SIZE(be16_to_cpu(dent->de_name_len)); in gfs2_dirent_find_offset() 456 unsigned totlen = be16_to_cpu(dent->de_rec_len); in gfs2_dirent_find_offset() 474 unsigned actual = GFS2_DIRENT_SIZE(be16_to_cpu(dent->de_name_len)); in gfs2_dirent_find_space() 475 unsigned totlen = be16_to_cpu(dent->de_rec_len); in gfs2_dirent_find_space() 526 unlikely(sizeof(struct gfs2_dirent)+be16_to_cpu(dent->de_name_len) > in gfs2_check_dirent() 576 size = be16_to_cpu(dent->de_rec_len); in gfs2_dirent_scan() 588 size = be16_to_cpu(dent->de_rec_len); in gfs2_dirent_scan() 614 u16 rec_len = be16_to_cpu(d->de_rec_len); in dirent_check_reclen() [all …]
|
/linux-4.19.296/drivers/memstick/core/ |
D | mspro_block.c | 339 be16_to_cpu(x_sys->block_size)); in mspro_block_attr_show_sysinfo() 341 be16_to_cpu(x_sys->block_count)); in mspro_block_attr_show_sysinfo() 343 be16_to_cpu(x_sys->user_block_count)); in mspro_block_attr_show_sysinfo() 345 be16_to_cpu(x_sys->page_size)); in mspro_block_attr_show_sysinfo() 363 be16_to_cpu(x_sys->memory_maker_code)); in mspro_block_attr_show_sysinfo() 365 be16_to_cpu(x_sys->memory_model_code)); in mspro_block_attr_show_sysinfo() 371 be16_to_cpu(x_sys->controller_number)); in mspro_block_attr_show_sysinfo() 374 be16_to_cpu(x_sys->controller_function)); in mspro_block_attr_show_sysinfo() 376 be16_to_cpu(x_sys->start_sector)); in mspro_block_attr_show_sysinfo() 378 be16_to_cpu(x_sys->unit_size)); in mspro_block_attr_show_sysinfo() [all …]
|
/linux-4.19.296/fs/efs/ |
D | inode.c | 98 inode->i_mode = be16_to_cpu(efs_inode->di_mode); in efs_iget() 99 set_nlink(inode, be16_to_cpu(efs_inode->di_nlink)); in efs_iget() 100 i_uid_write(inode, (uid_t)be16_to_cpu(efs_inode->di_uid)); in efs_iget() 101 i_gid_write(inode, (gid_t)be16_to_cpu(efs_inode->di_gid)); in efs_iget() 115 rdev = be16_to_cpu(efs_inode->di_u.di_dev.odev); in efs_iget() 126 in->numextents = be16_to_cpu(efs_inode->di_numextents); in efs_iget()
|
/linux-4.19.296/drivers/iio/pressure/ |
D | bmp280-core.c | 226 calib->H4 = sign_extend32(((be16_to_cpu(tmp) >> 4) & 0xff0) | in bmp280_read_calib() 227 (be16_to_cpu(tmp) & 0xf), 11); in bmp280_read_calib() 412 adc_humidity = be16_to_cpu(tmp); in bmp280_read_humid() 758 *val = be16_to_cpu(tmp); in bmp180_read_adc_temp() 785 calib->AC1 = be16_to_cpu(buf[AC1]); in bmp180_read_calib() 786 calib->AC2 = be16_to_cpu(buf[AC2]); in bmp180_read_calib() 787 calib->AC3 = be16_to_cpu(buf[AC3]); in bmp180_read_calib() 788 calib->AC4 = be16_to_cpu(buf[AC4]); in bmp180_read_calib() 789 calib->AC5 = be16_to_cpu(buf[AC5]); in bmp180_read_calib() 790 calib->AC6 = be16_to_cpu(buf[AC6]); in bmp180_read_calib() [all …]
|
/linux-4.19.296/drivers/iio/dac/ |
D | ad5592r.c | 67 *value = be16_to_cpu(st->spi_msg); in ad5592r_read_adc() 97 *value = be16_to_cpu(st->spi_msg); in ad5592r_reg_read() 115 *value = (u8) be16_to_cpu(st->spi_msg); in ad5593r_gpio_read()
|
/linux-4.19.296/fs/befs/ |
D | endian.h | 57 return be16_to_cpu((__force __be16)n); in fs16_to_cpu() 82 run.start = be16_to_cpu((__force __be16)n.start); in fsrun_to_cpu() 83 run.len = be16_to_cpu((__force __be16)n.len); in fsrun_to_cpu()
|
/linux-4.19.296/fs/xfs/ |
D | xfs_dir2_readdir.c | 189 if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { in xfs_dir2_block_getdents() 190 ptr += be16_to_cpu(dup->length); in xfs_dir2_block_getdents() 418 if (be16_to_cpu(dup->freetag) in xfs_dir2_leaf_getdents() 421 length = be16_to_cpu(dup->length); in xfs_dir2_leaf_getdents() 450 if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { in xfs_dir2_leaf_getdents() 451 length = be16_to_cpu(dup->length); in xfs_dir2_leaf_getdents()
|
/linux-4.19.296/drivers/iio/chemical/ |
D | ccs811.c | 221 *val = be16_to_cpu(data->buffer.raw_data) & in ccs811_read_raw() 226 *val = be16_to_cpu(data->buffer.raw_data) >> 10; in ccs811_read_raw() 232 *val = be16_to_cpu(data->buffer.co2); in ccs811_read_raw() 236 *val = be16_to_cpu(data->buffer.voc); in ccs811_read_raw()
|