Home
last modified time | relevance | path

Searched refs:be16_to_cpu (Results 1 – 25 of 628) sorted by relevance

12345678910>>...26

/linux/fs/xfs/libxfs/
A Dxfs_dir2_data.c170 if (be16_to_cpu(bf[0].length) < be16_to_cpu(bf[1].length)) in __xfs_dir3_data_check()
172 if (be16_to_cpu(bf[1].length) < be16_to_cpu(bf[2].length)) in __xfs_dir3_data_check()
205 if (be16_to_cpu(dup->length) > in __xfs_dir3_data_check()
206 be16_to_cpu(bf[2].length)) in __xfs_dir3_data_check()
492 be16_to_cpu(dfp->offset)) in xfs_dir2_data_freefind_verify()
500 be16_to_cpu(dfp->length) < be16_to_cpu(dup->length)) in xfs_dir2_data_freefind_verify()
503 be16_to_cpu(dfp[-1].length) < be16_to_cpu(dfp[0].length)) in xfs_dir2_data_freefind_verify()
531 if (be16_to_cpu(dup->length) < in xfs_dir2_data_freefind()
572 if (be16_to_cpu(new.length) > be16_to_cpu(dfp[0].length)) { in xfs_dir2_data_freeinsert()
579 if (be16_to_cpu(new.length) > be16_to_cpu(dfp[1].length)) { in xfs_dir2_data_freeinsert()
[all …]
A Dxfs_inode_buf.c75 be16_to_cpu(dip->di_magic)); in xfs_inode_buf_verify()
196 ip->i_flushiter = be16_to_cpu(from->di_flushiter); in xfs_inode_from_disk()
198 inode->i_mode = be16_to_cpu(from->di_mode); in xfs_inode_from_disk()
208 set_nlink(inode, be16_to_cpu(from->di_onlink)); in xfs_inode_from_disk()
212 ip->i_projid = (prid_t)be16_to_cpu(from->di_projid_hi) << 16 | in xfs_inode_from_disk()
213 be16_to_cpu(from->di_projid_lo); in xfs_inode_from_disk()
233 ip->i_diflags = be16_to_cpu(from->di_flags); in xfs_inode_from_disk()
347 if (S_ISREG(be16_to_cpu(dip->di_mode))) in xfs_dinode_verify_fork()
432 mode = be16_to_cpu(dip->di_mode); in xfs_dinode_verify()
442 be32_to_cpu(dip->di_nextents) + be16_to_cpu(dip->di_anextents) > in xfs_dinode_verify()
[all …]
A Dxfs_dir2_block.c210 if (be16_to_cpu(bf[0].length) >= len) { in xfs_dir2_block_need_space()
215 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_block_need_space()
233 if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { in xfs_dir2_block_need_space()
263 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_block_need_space()
268 if (be16_to_cpu(dup->length) < len) in xfs_dir2_block_need_space()
280 if (be16_to_cpu(bf[1].length) >= len) in xfs_dir2_block_need_space()
282 ((char *)hdr + be16_to_cpu(bf[1].offset)); in xfs_dir2_block_need_space()
474 be16_to_cpu(enddup->length) - sizeof(*blp)); in xfs_dir2_block_addname()
1004 be16_to_cpu(dup->length) < size) in xfs_dir2_leaf_to_block()
1164 be16_to_cpu(dup->length), &needlog, &needscan); in xfs_dir2_sf_to_block()
[all …]
/linux/tools/perf/util/
A Ds390-sample-raw.c57 ce.def = be16_to_cpu(cep->def); in s390_cpumcfdg_testctr()
58 ce.set = be16_to_cpu(cep->set); in s390_cpumcfdg_testctr()
59 ce.ctr = be16_to_cpu(cep->ctr); in s390_cpumcfdg_testctr()
60 ce.res1 = be16_to_cpu(cep->res1); in s390_cpumcfdg_testctr()
89 te.cfvn = be16_to_cpu(tep->cfvn); in s390_cpumcfdg_dumptrail()
90 te.csvn = be16_to_cpu(tep->csvn); in s390_cpumcfdg_dumptrail()
98 te.res1 = be16_to_cpu(tep->res1); in s390_cpumcfdg_dumptrail()
169 ce.def = be16_to_cpu(cep->def); in s390_cpumcfdg_dump()
170 ce.set = be16_to_cpu(cep->set); in s390_cpumcfdg_dump()
171 ce.ctr = be16_to_cpu(cep->ctr); in s390_cpumcfdg_dump()
[all …]
/linux/block/partitions/
A Dsun.c76 if (be16_to_cpu(label->magic) != SUN_LABEL_MAGIC) { in sun_partition()
96 (be16_to_cpu(label->vtoc.nparts) <= 8)); in sun_partition()
99 nparts = (use_vtoc) ? be16_to_cpu(label->vtoc.nparts) : 8; in sun_partition()
107 spc = be16_to_cpu(label->ntrks) * be16_to_cpu(label->nsect); in sun_partition()
118 if (be16_to_cpu(label->vtoc.infos[i].id) == LINUX_RAID_PARTITION) in sun_partition()
120 else if (be16_to_cpu(label->vtoc.infos[i].id) == SUN_WHOLE_DISK) in sun_partition()
A Daix.c175 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()
A Dmac.c48 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/fs/hfsplus/
A Dunicode.c38 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()
141 c0 = be16_to_cpu(*ip++); in hfsplus_uni2asc()
179 c1 = be16_to_cpu(*ip); in hfsplus_uni2asc()
[all …]
/linux/fs/hfs/
A Dextent.c66 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()
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()
256 count = be16_to_cpu(extent->count); in hfs_free_extents()
267 start = be16_to_cpu(extent->block); in hfs_free_extents()
[all …]
A Dmdb.c118 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/
A Demi26.c113 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()
A Demi62.c120 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()
/linux/include/rdma/
A Dopa_addr.h13 #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()
A Dib_hdrs.h175 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/net/6lowpan/
A Ddebugfs.c105 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/fs/xfs/scrub/
A Ddir.c282 iter_off += be16_to_cpu(dup->length); in xchk_dir_rec()
325 dup_length = be16_to_cpu(dup->length); in xchk_directory_check_free_entry()
332 if (dup_length == be16_to_cpu(dfp->length)) in xchk_directory_check_free_entry()
382 offset = be16_to_cpu(dfp->offset); in xchk_directory_data_bestfree()
394 be16_to_cpu(dup->length) != be16_to_cpu(dfp->length) || in xchk_directory_data_bestfree()
406 smallest_bestfree = be16_to_cpu(dfp->length); in xchk_directory_data_bestfree()
448 newlen = be16_to_cpu(dup->length); in xchk_directory_data_bestfree()
488 if (len != be16_to_cpu(dfp->length)) in xchk_directory_check_freesp()
491 if (len > 0 && be16_to_cpu(dfp->offset) == 0) in xchk_directory_check_freesp()
574 best = be16_to_cpu(*bestp); in xchk_directory_leaf1_bestfree()
[all …]
/linux/fs/gfs2/
A Ddir.c571 size = be16_to_cpu(dent->de_rec_len); in gfs2_dirent_scan()
583 size = be16_to_cpu(dent->de_rec_len); in gfs2_dirent_scan()
610 u16 rec_len = be16_to_cpu(d->de_rec_len); in dirent_check_reclen()
715 totlen = be16_to_cpu(dent->de_rec_len); in do_init_dirent()
1304 be16_to_cpu(dent->de_name_len), in do_filldir_main()
1306 be16_to_cpu(dent->de_type))) in do_filldir_main()
1388 *depth = be16_to_cpu(lf->lf_depth); in gfs2_dir_read_leaf()
1444 be16_to_cpu(lf->lf_entries)); in gfs2_dir_read_leaf()
1658 dtype = be16_to_cpu(dent->de_type); in gfs2_dir_search()
1659 rahead = be16_to_cpu(dent->de_rahead); in gfs2_dir_search()
[all …]
/linux/drivers/net/ethernet/google/gve/
A Dgve_adminq.c29 option_end = (void *)(option + 1) + be16_to_cpu(option->option_length); in gve_get_next_option()
45 u16 option_length = be16_to_cpu(option->option_length); in gve_parse_device_option()
46 u16 option_id = be16_to_cpu(option->option_id); in gve_parse_device_option()
653 priv->tx_desc_cnt = be16_to_cpu(descriptor->tx_queue_entries); in gve_set_desc_cnt()
659 priv->rx_desc_cnt = be16_to_cpu(descriptor->rx_queue_entries); in gve_set_desc_cnt()
674 priv->tx_desc_cnt = be16_to_cpu(descriptor->tx_queue_entries); in gve_set_desc_cnt_dqo()
676 be16_to_cpu(dev_op_dqo_rda->tx_comp_ring_entries); in gve_set_desc_cnt_dqo()
677 priv->rx_desc_cnt = be16_to_cpu(descriptor->rx_queue_entries); in gve_set_desc_cnt_dqo()
679 be16_to_cpu(dev_op_dqo_rda->rx_buff_ring_entries); in gve_set_desc_cnt_dqo()
776 mtu = be16_to_cpu(descriptor->mtu); in gve_adminq_describe_device()
[all …]
/linux/net/rds/
A Dcong.c307 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/drivers/memstick/core/
A Dmspro_block.c335 be16_to_cpu(x_sys->block_size)); in mspro_block_attr_show_sysinfo()
337 be16_to_cpu(x_sys->block_count)); in mspro_block_attr_show_sysinfo()
339 be16_to_cpu(x_sys->user_block_count)); in mspro_block_attr_show_sysinfo()
341 be16_to_cpu(x_sys->page_size)); in mspro_block_attr_show_sysinfo()
359 be16_to_cpu(x_sys->memory_maker_code)); in mspro_block_attr_show_sysinfo()
361 be16_to_cpu(x_sys->memory_model_code)); in mspro_block_attr_show_sysinfo()
372 be16_to_cpu(x_sys->start_sector)); in mspro_block_attr_show_sysinfo()
374 be16_to_cpu(x_sys->unit_size)); in mspro_block_attr_show_sysinfo()
380 be16_to_cpu(x_sys->controller_code)); in mspro_block_attr_show_sysinfo()
481 be16_to_cpu(x_devinfo->cylinders)); in mspro_block_attr_show_devinfo()
[all …]
/linux/drivers/infiniband/ulp/opa_vnic/
A Dopa_vnic_vema_iface.c201 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()
/linux/drivers/infiniband/hw/qib/
A Dqib_ud.c276 if (rdma_ah_get_dlid(ah_attr) >= be16_to_cpu(IB_MULTICAST_LID_BASE)) { in qib_make_ud_req()
278 be16_to_cpu(IB_LID_PERMISSIVE)) in qib_make_ud_req()
373 be16_to_cpu(IB_MULTICAST_LID_BASE) && in qib_make_ud_req()
374 rdma_ah_get_dlid(ah_attr) != be16_to_cpu(IB_LID_PERMISSIVE) ? in qib_make_ud_req()
476 (be16_to_cpu(hdr->lrh[0]) >> 4) & in qib_ud_rcv()
489 (be16_to_cpu(hdr->lrh[0]) >> 12) == 15))) in qib_ud_rcv()
495 if (tlen != 256 || (be16_to_cpu(hdr->lrh[0]) >> 12) != 15) in qib_ud_rcv()
568 wc.slid = be16_to_cpu(hdr->lrh[3]); in qib_ud_rcv()
569 wc.sl = (be16_to_cpu(hdr->lrh[0]) >> 4) & 0xF; in qib_ud_rcv()
570 dlid = be16_to_cpu(hdr->lrh[1]); in qib_ud_rcv()
[all …]
/linux/drivers/net/ethernet/aquantia/atlantic/
A Daq_filters.c141 if (be16_to_cpu(fsp->m_ext.vlan_tci) == VLAN_PRIO_MASK && in aq_check_approve_fl2()
192 if (be16_to_cpu(fsp->m_ext.vlan_tci) == VLAN_VID_MASK) { in aq_check_filter()
199 be16_to_cpu(fsp->m_ext.vlan_tci)); in aq_check_filter()
323 data->ethertype = be16_to_cpu(fsp->h_u.ether_spec.h_proto); in aq_set_data_fl2()
324 data->user_priority_en = be16_to_cpu(fsp->m_ext.vlan_tci) in aq_set_data_fl2()
326 data->user_priority = (be16_to_cpu(fsp->h_ext.vlan_tci) in aq_set_data_fl2()
417 (be16_to_cpu(fsp->h_ext.vlan_tci) & VLAN_VID_MASK)) { in aq_set_data_fvlan()
439 if (be16_to_cpu(rule->aq_fsp.h_ext.vlan_tci) == vlan_id) in aq_del_fvlan_by_vlan()
443 be16_to_cpu(rule->aq_fsp.h_ext.vlan_tci) == vlan_id) { in aq_del_fvlan_by_vlan()
594 if (be16_to_cpu(aq_rx_fltr->aq_fsp.m_ext.vlan_tci) in aq_add_del_rule()
[all …]
/linux/drivers/scsi/ibmvscsi/
A Dibmvfc.c4001 ibmvfc_get_cmd_error(be16_to_cpu(rsp->status), be16_to_cpu(rsp->error)), in ibmvfc_tgt_prli_done()
4002 be16_to_cpu(rsp->status), be16_to_cpu(rsp->error), status); in ibmvfc_tgt_prli_done()
4099 if (ibmvfc_retry_cmd(be16_to_cpu(rsp->status), be16_to_cpu(rsp->error))) in ibmvfc_tgt_plogi_done()
4105 ibmvfc_get_cmd_error(be16_to_cpu(rsp->status), be16_to_cpu(rsp->error)), in ibmvfc_tgt_plogi_done()
4106 be16_to_cpu(rsp->status), be16_to_cpu(rsp->error), in ibmvfc_tgt_plogi_done()
4451 be16_to_cpu(mad->iu.status), be16_to_cpu(mad->iu.error), in ibmvfc_tgt_adisc_done()
4666 ibmvfc_get_cmd_error(be16_to_cpu(rsp->status), be16_to_cpu(rsp->error)), in ibmvfc_tgt_query_target_done()
4667 be16_to_cpu(rsp->status), be16_to_cpu(rsp->error), in ibmvfc_tgt_query_target_done()
4844 be16_to_cpu(rsp->status), be16_to_cpu(rsp->error)); in ibmvfc_discover_targets_done()
5046 if (ibmvfc_retry_cmd(be16_to_cpu(rsp->status), be16_to_cpu(rsp->error))) in ibmvfc_npiv_login_done()
[all …]
/linux/include/linux/
A Dihex.h26 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()

Completed in 55 milliseconds

12345678910>>...26