/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
H A D | vlan_mangle.c | 23 .mangle.mask = ~(u32)be16_to_cpu(*(__be16 *)&mask16), 24 .mangle.val = (u32)be16_to_cpu(*(__be16 *)&val16),
|
/linux-master/include/rdma/ |
H A D | ib_hdrs.h | 175 return (be16_to_cpu(hdr->lrh[0]) & IB_LNH_MASK); 180 return ((be16_to_cpu(hdr->lrh[0]) >> IB_SC_SHIFT) & IB_SC_MASK); 190 return ((be16_to_cpu(hdr->lrh[0]) >> IB_SL_SHIFT) & IB_SL_MASK); 195 return (be16_to_cpu(hdr->lrh[1])); 200 return (be16_to_cpu(hdr->lrh[3])); 205 return (u8)((be16_to_cpu(hdr->lrh[0]) >> IB_LVER_SHIFT) &
|
/linux-master/arch/powerpc/perf/ |
H A D | hv-gpci.c | 176 for (i = 0; i < be16_to_cpu(arg->params.returned_values); i++) { 177 j = i * be16_to_cpu(arg->params.cv_element_size); 179 for (; j < (i + 1) * be16_to_cpu(arg->params.cv_element_size); j++) 227 int returned_values = be16_to_cpu(arg->params.returned_values); 228 int elementsize = be16_to_cpu(arg->params.cv_element_size); 295 int returned_values = be16_to_cpu(arg->params.returned_values); 296 int elementsize = be16_to_cpu(arg->params.cv_element_size); 363 int returned_values = be16_to_cpu(arg->params.returned_values); 364 int elementsize = be16_to_cpu(arg->params.cv_element_size); 433 int returned_values = be16_to_cpu(ar [all...] |
/linux-master/net/rds/ |
H A D | cong.c | 307 i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS; 308 off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; 321 i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS; 322 off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; 332 i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS; 333 off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; 393 rdsdebug("waiting on map %p for port %u\n", map, be16_to_cpu(port));
|
/linux-master/drivers/net/ethernet/google/gve/ |
H A D | gve_adminq.c | 29 option_end = (void *)(option + 1) + be16_to_cpu(option->option_length); 30 descriptor_end = (void *)descriptor + be16_to_cpu(descriptor->total_length); 47 u16 option_length = be16_to_cpu(option->option_length); 48 u16 option_id = be16_to_cpu(option->option_id); 188 const int num_options = be16_to_cpu(descriptor->num_device_options); 751 priv->tx_desc_cnt = be16_to_cpu(descriptor->tx_queue_entries); 752 priv->rx_desc_cnt = be16_to_cpu(descriptor->rx_queue_entries); 761 priv->tx_desc_cnt = be16_to_cpu(descriptor->tx_queue_entries); 762 priv->rx_desc_cnt = be16_to_cpu(descriptor->rx_queue_entries); 768 be16_to_cpu(dev_op_dqo_rd [all...] |
/linux-master/drivers/infiniband/ulp/opa_vnic/ |
H A D | opa_vnic_vema_iface.c | 201 dst->fabric_id = be16_to_cpu(info->fabric_id); 202 dst->vesw_id = be16_to_cpu(info->vesw_id); 204 dst->def_port_mask = be16_to_cpu(info->def_port_mask); 206 dst->pkey = be16_to_cpu(info->pkey); 216 dst->eth_mtu = be16_to_cpu(info->eth_mtu); 320 start_idx = be16_to_cpu(macs->start_idx); 321 num_macs = be16_to_cpu(macs->num_macs_in_msg); 352 start_idx = be16_to_cpu(macs->start_idx); 353 num_macs = be16_to_cpu(macs->num_macs_in_msg);
|
/linux-master/fs/gfs2/ |
H A D | dir.c | 406 be16_to_cpu(dent->de_name_len) == name->len && 435 const char *end = (const char *)dent + be16_to_cpu(dent->de_rec_len); 448 unsigned actual = GFS2_DIRENT_SIZE(be16_to_cpu(dent->de_name_len)); 449 unsigned totlen = be16_to_cpu(dent->de_rec_len); 467 unsigned actual = GFS2_DIRENT_SIZE(be16_to_cpu(dent->de_name_len)); 468 unsigned totlen = be16_to_cpu(dent->de_rec_len); 520 unlikely(sizeof(struct gfs2_dirent)+be16_to_cpu(dent->de_name_len) > 571 size = be16_to_cpu(dent->de_rec_len); 583 size = be16_to_cpu(dent->de_rec_len); 610 u16 rec_len = be16_to_cpu( [all...] |
/linux-master/fs/xfs/libxfs/ |
H A D | xfs_dir2_block.c | 212 if (be16_to_cpu(bf[0].length) >= len) { 217 ((char *)hdr + be16_to_cpu(bf[0].offset)); 229 dup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); 235 if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { 236 if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) * 253 enddup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); 260 if (be16_to_cpu(enddup->freetag) == XFS_DIR2_DATA_FREE_TAG) { 265 ((char *)hdr + be16_to_cpu(bf[0].offset)); 270 if (be16_to_cpu(dup->length) < len) 278 if (be16_to_cpu(du [all...] |
H A D | xfs_bmap_btree.h | 73 (XFS_BMAP_BROOT_SPACE_CALC(mp, be16_to_cpu((bb)->bb_numrecs))) 78 (XFS_BMDR_SPACE_CALC(be16_to_cpu((bb)->bb_numrecs)))
|
/linux-master/fs/befs/ |
H A D | endian.h | 57 return be16_to_cpu((__force __be16)n); 82 run.start = be16_to_cpu((__force __be16)n.start); 83 run.len = be16_to_cpu((__force __be16)n.len);
|
/linux-master/drivers/iio/dac/ |
H A D | ad5592r.c | 65 *value = be16_to_cpu(st->spi_msg); 95 *value = be16_to_cpu(st->spi_msg); 113 *value = (u8) be16_to_cpu(st->spi_msg);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | geneve.c | 39 MLX5_SET(geneve_tlv_option, opt, option_class, be16_to_cpu(class)); 84 be16_to_cpu(opt->opt_class), 100 be16_to_cpu(opt->opt_class),
|
/linux-master/fs/efs/ |
H A D | inode.c | 101 inode->i_mode = be16_to_cpu(efs_inode->di_mode); 102 set_nlink(inode, be16_to_cpu(efs_inode->di_nlink)); 103 i_uid_write(inode, (uid_t)be16_to_cpu(efs_inode->di_uid)); 104 i_gid_write(inode, (gid_t)be16_to_cpu(efs_inode->di_gid)); 117 rdev = be16_to_cpu(efs_inode->di_u.di_dev.odev); 128 in->numextents = be16_to_cpu(efs_inode->di_numextents);
|
/linux-master/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)); 295 rc += sysfs_emit_at(buffer, rc, "block count: %x\n", be16_to_cpu(x_sys->block_count)); 297 be16_to_cpu(x_sys->user_block_count)); 298 rc += sysfs_emit_at(buffer, rc, "page size: %x\n", be16_to_cpu(x_sys->page_size)); 312 be16_to_cpu(x_sys->memory_maker_code)); 314 be16_to_cpu(x_sys->memory_model_code)); 318 be16_to_cpu(x_sys->controller_number)); 320 be16_to_cpu(x_sys->controller_function)); 321 rc += sysfs_emit_at(buffer, rc, "start sector: %x\n", be16_to_cpu(x_sys->start_sector)); 322 rc += sysfs_emit_at(buffer, rc, "unit size: %x\n", be16_to_cpu(x_sy [all...] |
/linux-master/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | srq.c | 133 e->cur_msn = be16_to_cpu(rpl->cur_msn); 134 e->max_msn = be16_to_cpu(rpl->max_msn);
|
/linux-master/drivers/net/ethernet/mellanox/mlxfw/ |
H A D | mlxfw_mfa2.c | 150 psid->psid, be16_to_cpu(tlv->len), true); 179 be16_to_cpu(cptr->component_index)); 217 pr_debug(" -- Component type %d\n", be16_to_cpu(cdesc->identifier)); 304 mfa2_file->dev_count = be16_to_cpu(pd->num_devices); 308 mfa2_file->component_count = be16_to_cpu(pd->num_components); 354 if (be16_to_cpu(tlv->len) != psid_size) 526 comp_idx = be16_to_cpu(cptr->component_index); 556 comp_data->comp.index = be16_to_cpu(comp->identifier);
|
/linux-master/drivers/scsi/elx/efct/ |
H A D | efct_unsol.c | 17 (hdr)->fh_r_ctl, be16_to_cpu((hdr)->fh_ox_id), \ 18 be16_to_cpu((hdr)->fh_rx_id), ##__VA_ARGS__); \ 151 be16_to_cpu(fchdr->fh_ox_id), 162 io->init_task_tag = be16_to_cpu(fchdr->fh_ox_id); 406 u16 ox_id = be16_to_cpu(hdr->fh_ox_id); 407 u16 rx_id = be16_to_cpu(hdr->fh_rx_id); 487 be16_to_cpu(hdr->fh_ox_id), 488 be16_to_cpu(hdr->fh_rx_id));
|
/linux-master/include/linux/byteorder/ |
H A D | generic.h | 97 #define be16_to_cpu __be16_to_cpu macro 178 *var = cpu_to_be16(be16_to_cpu(*var) + val);
|
/linux-master/fs/hfs/ |
H A D | mdb.c | 118 sect = be16_to_cpu(mdb->drAlBlSt) + part_start; 142 HFS_SB(sb)->fs_ablocks = be16_to_cpu(mdb->drNmAlBlks); 148 HFS_SB(sb)->fs_start = (be16_to_cpu(mdb->drAlBlSt) + part_start) >> 152 HFS_SB(sb)->free_ablocks = be16_to_cpu(mdb->drFreeBks); 154 HFS_SB(sb)->root_files = be16_to_cpu(mdb->drNmFls); 155 HFS_SB(sb)->root_dirs = be16_to_cpu(mdb->drNmRtDirs); 180 block = be16_to_cpu(mdb->drVBMSt) + part_start; 312 block = be16_to_cpu(HFS_SB(sb)->mdb->drVBMSt) + HFS_SB(sb)->part_start;
|
/linux-master/drivers/net/ethernet/microchip/vcap/ |
H A D | vcap_tc.c | 144 value = be16_to_cpu(mt.key->src); 145 mask = be16_to_cpu(mt.mask->src); 153 value = be16_to_cpu(mt.key->dst); 154 mask = be16_to_cpu(mt.mask->dst); 181 tpid = be16_to_cpu(mt.key->vlan_tpid); 239 st->tpid = be16_to_cpu(mt.key->vlan_tpid); 259 tcp_flags_key = be16_to_cpu(mt.key->flags); 260 tcp_flags_mask = be16_to_cpu(mt.mask->flags);
|
/linux-master/net/smc/ |
H A D | smc_core.h | 510 be16_to_cpu(((__be16 *)gid_raw)[0]), 511 be16_to_cpu(((__be16 *)gid_raw)[1]), 512 be16_to_cpu(((__be16 *)gid_raw)[2]), 513 be16_to_cpu(((__be16 *)gid_raw)[3]), 514 be16_to_cpu(((__be16 *)gid_raw)[4]), 515 be16_to_cpu(((__be16 *)gid_raw)[5]), 516 be16_to_cpu(((__be16 *)gid_raw)[6]), 517 be16_to_cpu(((__be16 *)gid_raw)[7]));
|
/linux-master/tools/include/linux/ |
H A D | kernel.h | 80 #define be16_to_cpu macro 93 #define be16_to_cpu bswap_16 macro
|
/linux-master/drivers/infiniband/hw/qib/ |
H A D | qib_ud.c | 276 if (rdma_ah_get_dlid(ah_attr) >= be16_to_cpu(IB_MULTICAST_LID_BASE)) { 278 be16_to_cpu(IB_LID_PERMISSIVE)) 373 be16_to_cpu(IB_MULTICAST_LID_BASE) && 374 rdma_ah_get_dlid(ah_attr) != be16_to_cpu(IB_LID_PERMISSIVE) ? 476 (be16_to_cpu(hdr->lrh[0]) >> 4) & 489 (be16_to_cpu(hdr->lrh[0]) >> 12) == 15))) 495 if (tlen != 256 || (be16_to_cpu(hdr->lrh[0]) >> 12) != 15) 568 wc.slid = be16_to_cpu(hdr->lrh[3]); 569 wc.sl = (be16_to_cpu(hdr->lrh[0]) >> 4) & 0xF; 570 dlid = be16_to_cpu(hd [all...] |
/linux-master/fs/xfs/scrub/ |
H A D | dir.c | 231 if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { 232 iter_off += be16_to_cpu(dup->length); 279 dup_length = be16_to_cpu(dup->length); 282 if (dup_length < be16_to_cpu(bf[XFS_DIR2_DATA_FD_COUNT - 1].length)) 286 if (dup_length == be16_to_cpu(dfp->length)) 336 offset = be16_to_cpu(dfp->offset); 344 tag = be16_to_cpu(*xfs_dir2_data_unused_tag_p(dup)); 348 be16_to_cpu(dup->length) != be16_to_cpu(dfp->length) || 355 if (smallest_bestfree < be16_to_cpu(df [all...] |
/linux-master/include/linux/ |
H A D | virtio_byteorder.h | 21 return be16_to_cpu((__force __be16)val);
|