/linux/fs/xfs/libxfs/ |
H A D | xfs_dir2_data.c | 171 if (be16_to_cpu(bf[0].length) < be16_to_cpu(bf[1].length)) in __xfs_dir3_data_check() 173 if (be16_to_cpu(bf[1].length) < be16_to_cpu(bf[2].length)) in __xfs_dir3_data_check() 195 if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { in __xfs_dir3_data_check() 199 be16_to_cpu(dup->length)); in __xfs_dir3_data_check() 202 if (be16_to_cpu(dup->length) != reclen) in __xfs_dir3_data_check() 206 if (be16_to_cpu(*xfs_dir2_data_unused_tag_p(dup)) != in __xfs_dir3_data_check() 218 if (be16_to_cpu(dup->length) > in __xfs_dir3_data_check() 219 be16_to_cpu(b in __xfs_dir3_data_check() [all...] |
H A D | xfs_rtrefcount_btree.h | 151 return xfs_rtrefcount_broot_space_calc(mp, be16_to_cpu(bb->bb_level), in xfs_rtrefcount_broot_space() 152 be16_to_cpu(bb->bb_numrecs)); in xfs_rtrefcount_broot_space() 176 return xfs_rtrefcount_droot_space_calc(be16_to_cpu(bb->bb_level), in xfs_rtrefcount_droot_space() 177 be16_to_cpu(bb->bb_numrecs)); in xfs_rtrefcount_droot_space()
|
H A D | xfs_dir2_block.c | 217 if (be16_to_cpu(bf[0].length) >= len) { in xfs_dir2_block_need_space() 222 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_block_need_space() 234 dup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_block_need_space() 240 if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { in xfs_dir2_block_need_space() 241 if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) * in xfs_dir2_block_need_space() 258 enddup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_block_need_space() 265 if (be16_to_cpu(enddup->freetag) == XFS_DIR2_DATA_FREE_TAG) { in xfs_dir2_block_need_space() 270 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_block_need_space() 275 if (be16_to_cpu(dup->length) < len) in xfs_dir2_block_need_space() 283 if (be16_to_cpu(du in xfs_dir2_block_need_space() [all...] |
/linux/tools/perf/util/ |
H A D | s390-sample-raw.c | 56 ce.def = be16_to_cpu(cep->def); in s390_cpumcfdg_testctr() 57 ce.set = be16_to_cpu(cep->set); in s390_cpumcfdg_testctr() 58 ce.ctr = be16_to_cpu(cep->ctr); in s390_cpumcfdg_testctr() 59 ce.res1 = be16_to_cpu(cep->res1); in s390_cpumcfdg_testctr() 88 te.cfvn = be16_to_cpu(tep->cfvn); in s390_cpumcfdg_dumptrail() 89 te.csvn = be16_to_cpu(tep->csvn); in s390_cpumcfdg_dumptrail() 96 te.mach_type = be16_to_cpu(tep->mach_type); in s390_cpumcfdg_dumptrail() 97 te.res1 = be16_to_cpu(tep->res1); in s390_cpumcfdg_dumptrail() 191 ce.def = be16_to_cpu(cep->def); in s390_cpumcfdg_dump() 192 ce.set = be16_to_cpu(ce in s390_cpumcfdg_dump() [all...] |
/linux/block/partitions/ |
H A D | sun.c | 76 if (be16_to_cpu(label->magic) != SUN_LABEL_MAGIC) { in sun_partition() 94 (be16_to_cpu(label->vtoc.nparts) <= 8)); in sun_partition() 97 nparts = (use_vtoc) ? be16_to_cpu(label->vtoc.nparts) : 8; in sun_partition() 105 spc = be16_to_cpu(label->ntrks) * be16_to_cpu(label->nsect); in sun_partition() 116 if (be16_to_cpu(label->vtoc.infos[i].id) == LINUX_RAID_PARTITION) in sun_partition() 118 else if (be16_to_cpu(label->vtoc.infos[i].id) == SUN_WHOLE_DISK) in sun_partition()
|
H A D | aix.c | 175 u16 lvm_version = be16_to_cpu(p->version); in aix_partition() 179 int pp_size_log2 = be16_to_cpu(p->pp_size); in aix_partition() 199 numlvs = be16_to_cpu(p->numlvs); in aix_partition() 214 lvip[i].pps_per_lv = be16_to_cpu(p[i].num_lps); in aix_partition() 224 int numpps = be16_to_cpu(pvd->pp_count); in aix_partition() 235 lp_ix = be16_to_cpu(p->lp_ix); in aix_partition() 240 lv_ix = be16_to_cpu(p->lv_ix) - 1; in aix_partition()
|
H A D | mac.c | 50 if (be16_to_cpu(md->signature) != MAC_DRIVER_MAGIC) { in mac_partition() 54 secsize = be16_to_cpu(md->block_size); in mac_partition() 76 if (be16_to_cpu(part->signature) != MAC_PARTITION_MAGIC) { in mac_partition() 97 if (be16_to_cpu(part->signature) != MAC_PARTITION_MAGIC) in mac_partition()
|
/linux/fs/hfsplus/ |
H A 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() 136 ustrlen = be16_to_cpu(ustr->length); in hfsplus_uni2asc() 140 be16_to_cpu(ust in hfsplus_uni2asc() [all...] |
/linux/arch/powerpc/platforms/powernv/ |
H A D | opal-fadump.c | 63 if (be16_to_cpu(opal_fdm_active->registered_regions) == 0) in opal_fadump_dt_scan() 98 pr_debug("Boot memory regions count: %d\n", be16_to_cpu(fdm->region_cnt)); in opal_fadump_update_config() 129 for (i = 0; i < be16_to_cpu(fdm->region_cnt); i++) { in opal_fadump_get_config() 158 if (be16_to_cpu(fdm->region_cnt) > be16_to_cpu(fdm->registered_regions)) { in opal_fadump_get_config() 161 i = be16_to_cpu(fdm->registered_regions); in opal_fadump_get_config() 162 while (i < be16_to_cpu(fdm->region_cnt)) { in opal_fadump_get_config() 174 fadump_conf->boot_mem_regs_cnt = be16_to_cpu(fdm->region_cnt); in opal_fadump_get_config() 197 reg_cnt = be16_to_cpu(opal_fdm->region_cnt); in opal_fadump_init_mem_struct() 279 registered_regs = be16_to_cpu(opal_fd in opal_fadump_register() [all...] |
/linux/include/rdma/ |
H A D | opa_addr.h | 13 #define OPA_TO_IB_UCAST_LID(x) (((x) >= be16_to_cpu(IB_MULTICAST_LID_BASE)) \ 61 be16_to_cpu(IB_MULTICAST_LID_BASE)) || in opa_is_extended_lid() 63 be16_to_cpu(IB_MULTICAST_LID_BASE))) in opa_is_extended_lid() 81 be16_to_cpu(IB_MULTICAST_LID_BASE)) in rdma_is_valid_unicast_lid()
|
H A D | ib_hdrs.h | 175 return (be16_to_cpu(hdr->lrh[0]) & IB_LNH_MASK); in ib_get_lnh() 180 return ((be16_to_cpu(hdr->lrh[0]) >> IB_SC_SHIFT) & IB_SC_MASK); in ib_get_sc() 190 return ((be16_to_cpu(hdr->lrh[0]) >> IB_SL_SHIFT) & IB_SL_MASK); in ib_get_sl() 195 return (be16_to_cpu(hdr->lrh[1])); in ib_get_dlid() 200 return (be16_to_cpu(hdr->lrh[3])); in ib_get_slid() 205 return (u8)((be16_to_cpu(hdr->lrh[0]) >> IB_LVER_SHIFT) & in ib_get_lver()
|
/linux/fs/hfs/ |
H A 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(exten in hfs_dump_extent() [all...] |
H A D | mdb.c | 118 sect = be16_to_cpu(mdb->drAlBlSt) + part_start; in hfs_mdb_get() 142 HFS_SB(sb)->fs_ablocks = be16_to_cpu(mdb->drNmAlBlks); in hfs_mdb_get() 148 HFS_SB(sb)->fs_start = (be16_to_cpu(mdb->drAlBlSt) + part_start) >> in hfs_mdb_get() 152 HFS_SB(sb)->free_ablocks = be16_to_cpu(mdb->drFreeBks); in hfs_mdb_get() 154 HFS_SB(sb)->root_files = be16_to_cpu(mdb->drNmFls); in hfs_mdb_get() 155 HFS_SB(sb)->root_dirs = be16_to_cpu(mdb->drNmRtDirs); in hfs_mdb_get() 180 block = be16_to_cpu(mdb->drVBMSt) + part_start; in hfs_mdb_get() 312 block = be16_to_cpu(HFS_SB(sb)->mdb->drVBMSt) + HFS_SB(sb)->part_start; in hfs_mdb_commit()
|
/linux/drivers/usb/misc/ |
H A D | emi26.c | 113 rec->data, be16_to_cpu(rec->len), in emi26_load_firmware() 135 while (rec && (i + be16_to_cpu(rec->len) < FW_LOAD_SIZE)) { in emi26_load_firmware() 136 memcpy(buf + i, rec->data, be16_to_cpu(rec->len)); in emi26_load_firmware() 137 i += be16_to_cpu(rec->len); in emi26_load_firmware() 154 rec->data, be16_to_cpu(rec->len), in emi26_load_firmware() 172 rec->data, be16_to_cpu(rec->len), in emi26_load_firmware() 188 rec->data, be16_to_cpu(rec->len), in emi26_load_firmware()
|
H A D | emi62.c | 120 rec->data, be16_to_cpu(rec->len), in emi62_load_firmware() 142 while (rec && (i + be16_to_cpu(rec->len) < FW_LOAD_SIZE)) { in emi62_load_firmware() 143 memcpy(buf + i, rec->data, be16_to_cpu(rec->len)); in emi62_load_firmware() 144 i += be16_to_cpu(rec->len); in emi62_load_firmware() 161 rec->data, be16_to_cpu(rec->len), in emi62_load_firmware() 179 rec->data, be16_to_cpu(rec->len), in emi62_load_firmware() 195 rec->data, be16_to_cpu(rec->len), in emi62_load_firmware()
|
H A D | ezusb.c | 83 be16_to_cpu(record->len), WRITE_EXT_RAM); in ezusb_ihex_firmware_download() 89 be16_to_cpu(record->len)); in ezusb_ihex_firmware_download() 103 be16_to_cpu(record->len), WRITE_INT_RAM); in ezusb_ihex_firmware_download() 109 be16_to_cpu(record->len)); in ezusb_ihex_firmware_download()
|
/linux/net/6lowpan/ |
H A D | debugfs.c | 105 be16_to_cpu(ctx->pfx.s6_addr16[0]), in lowpan_ctx_pfx_show() 106 be16_to_cpu(ctx->pfx.s6_addr16[1]), in lowpan_ctx_pfx_show() 107 be16_to_cpu(ctx->pfx.s6_addr16[2]), in lowpan_ctx_pfx_show() 108 be16_to_cpu(ctx->pfx.s6_addr16[3]), in lowpan_ctx_pfx_show() 109 be16_to_cpu(ctx->pfx.s6_addr16[4]), in lowpan_ctx_pfx_show() 110 be16_to_cpu(ctx->pfx.s6_addr16[5]), in lowpan_ctx_pfx_show() 111 be16_to_cpu(ctx->pfx.s6_addr16[6]), in lowpan_ctx_pfx_show() 112 be16_to_cpu(ctx->pfx.s6_addr16[7])); in lowpan_ctx_pfx_show()
|
/linux/sound/soc/codecs/ |
H A D | ntpfw.c | 57 chunk_size = be16_to_cpu(chunk->length); in ntpfw_verify_chunk() 75 size_t length = be16_to_cpu(chunk->length); in ntpfw_send_chunk() 124 data += be16_to_cpu(chunk->length) + sizeof(*chunk); in ntpfw_load() 125 leftover -= be16_to_cpu(chunk->length) + sizeof(*chunk); in ntpfw_load()
|
/linux/fs/gfs2/ |
H A D | dir.c | 407 be16_to_cpu(dent->de_name_len) == name->len && in __gfs2_dirent_find() 436 const char *end = (const char *)dent + be16_to_cpu(dent->de_rec_len); in gfs2_dirent_last() 449 unsigned actual = GFS2_DIRENT_SIZE(be16_to_cpu(dent->de_name_len)); in gfs2_dirent_find_offset() 450 unsigned totlen = be16_to_cpu(dent->de_rec_len); in gfs2_dirent_find_offset() 468 unsigned actual = GFS2_DIRENT_SIZE(be16_to_cpu(dent->de_name_len)); in gfs2_dirent_find_space() 469 unsigned totlen = be16_to_cpu(dent->de_rec_len); in gfs2_dirent_find_space() 521 unlikely(sizeof(struct gfs2_dirent)+be16_to_cpu(dent->de_name_len) > in gfs2_check_dirent() 573 size = be16_to_cpu(dent->de_rec_len); in gfs2_dirent_scan() 587 size = be16_to_cpu(dent->de_rec_len); in gfs2_dirent_scan() 612 u16 rec_len = be16_to_cpu( in dirent_check_reclen() [all...] |
/linux/net/rds/ |
H A D | cong.c | 307 i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS; in rds_cong_set_bit() 308 off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; in rds_cong_set_bit() 321 i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS; in rds_cong_clear_bit() 322 off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; in rds_cong_clear_bit() 332 i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS; in rds_cong_test_bit() 333 off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; in rds_cong_test_bit() 393 rdsdebug("waiting on map %p for port %u\n", map, be16_to_cpu(port)); in rds_cong_wait()
|
/linux/include/linux/ |
H A D | ihex.h | 26 return be16_to_cpu(p->len) + sizeof(*p); in ihex_binrec_size() 43 return be16_to_cpu(rec->len) ? rec : NULL; in ihex_next_binrec() 56 if (rec == end && !be16_to_cpu(rec->len)) in ihex_validate_fw()
|
/linux/drivers/scsi/fnic/ |
H A D | fdls_fc.h | 63 #define FNIC_LOGI_FEATURES(_logi) (be16_to_cpu((_logi).fl_csp.sp_features)) 91 #define FNIC_STD_GET_OX_ID(_fchdr) (be16_to_cpu((_fchdr)->fh_ox_id)) 92 #define FNIC_STD_GET_RX_ID(_fchdr) (be16_to_cpu((_fchdr)->fh_rx_id)) 99 #define FNIC_STD_GET_FC_CT_CMD(__fcct_hdr) (be16_to_cpu(__fcct_hdr->ct_cmd)) 141 (min((uint16_t) (be16_to_cpu(_plogi_rsp->els.fl_csp.sp_tot_seq)), \ 142 (uint16_t) (be16_to_cpu(_plogi_rsp->els.fl_cssp[2].cp_con_seq) & 0xff)))
|
/linux/drivers/memstick/core/ |
H A D | mspro_block.c | 294 rc += sysfs_emit_at(buffer, rc, "block size: %x\n", be16_to_cpu(x_sys->block_size)); in mspro_block_attr_show_sysinfo() 295 rc += sysfs_emit_at(buffer, rc, "block count: %x\n", be16_to_cpu(x_sys->block_count)); in mspro_block_attr_show_sysinfo() 297 be16_to_cpu(x_sys->user_block_count)); in mspro_block_attr_show_sysinfo() 298 rc += sysfs_emit_at(buffer, rc, "page size: %x\n", be16_to_cpu(x_sys->page_size)); in mspro_block_attr_show_sysinfo() 312 be16_to_cpu(x_sys->memory_maker_code)); in mspro_block_attr_show_sysinfo() 314 be16_to_cpu(x_sys->memory_model_code)); in mspro_block_attr_show_sysinfo() 318 be16_to_cpu(x_sys->controller_number)); in mspro_block_attr_show_sysinfo() 320 be16_to_cpu(x_sys->controller_function)); in mspro_block_attr_show_sysinfo() 321 rc += sysfs_emit_at(buffer, rc, "start sector: %x\n", be16_to_cpu(x_sys->start_sector)); in mspro_block_attr_show_sysinfo() 322 rc += sysfs_emit_at(buffer, rc, "unit size: %x\n", be16_to_cpu(x_sy in mspro_block_attr_show_sysinfo() [all...] |
/linux/drivers/net/ethernet/mellanox/mlxfw/ |
H A D | mlxfw_mfa2_tlv.h | 33 tlv_top = (void *) tlv + be16_to_cpu(tlv->len) - 1; in mlxfw_mfa2_tlv_payload_get() 39 if (varsize && (be16_to_cpu(tlv->len) < payload_size)) in mlxfw_mfa2_tlv_payload_get() 41 if (!varsize && (be16_to_cpu(tlv->len) != payload_size)) in mlxfw_mfa2_tlv_payload_get()
|
/linux/drivers/infiniband/ulp/opa_vnic/ |
H A D | opa_vnic_vema_iface.c | 201 dst->fabric_id = be16_to_cpu(info->fabric_id); in opa_vnic_set_vesw_info() 202 dst->vesw_id = be16_to_cpu(info->vesw_id); in opa_vnic_set_vesw_info() 204 dst->def_port_mask = be16_to_cpu(info->def_port_mask); in opa_vnic_set_vesw_info() 206 dst->pkey = be16_to_cpu(info->pkey); in opa_vnic_set_vesw_info() 216 dst->eth_mtu = be16_to_cpu(info->eth_mtu); in opa_vnic_set_vesw_info() 320 start_idx = be16_to_cpu(macs->start_idx); in opa_vnic_query_mcast_macs() 321 num_macs = be16_to_cpu(macs->num_macs_in_msg); in opa_vnic_query_mcast_macs() 352 start_idx = be16_to_cpu(macs->start_idx); in opa_vnic_query_ucast_macs() 353 num_macs = be16_to_cpu(macs->num_macs_in_msg); in opa_vnic_query_ucast_macs()
|