| /linux/drivers/scsi/ |
| H A D | scsi_trace.c | 12 #define SERVICE_ACTION32(cdb) (get_unaligned_be16(&cdb[8])) 43 txlen = get_unaligned_be16(&cdb[7]); in scsi_trace_rw10() 138 unsigned int regions = get_unaligned_be16(&cdb[7]); in scsi_trace_unmap() 337 boundary_size = get_unaligned_be16(&cdb[10]); in scsi_trace_atomic_write16_out() 338 nr_blocks = get_unaligned_be16(&cdb[12]); in scsi_trace_atomic_write16_out()
|
| H A D | scsi_proto_test.c | 30 KUNIT_EXPECT_EQ(test, get_unaligned_be16(&ss.s.stream_identifier), in test_scsi_proto() 39 KUNIT_EXPECT_EQ(test, get_unaligned_be16(&sh.h.number_of_open_streams), in test_scsi_proto()
|
| H A D | scsi_debug.c | 2065 alloc_len = get_unaligned_be16(cmd + 3); in resp_inquiry() 2179 len = min_t(u32, get_unaligned_be16(arr + 2) + 4, alloc_len); in resp_inquiry() 2502 req_sa = get_unaligned_be16(cmd + 4); in resp_rsup_opcodes() 2908 p0_size = get_unaligned_be16(new + 8); in process_medium_part_m_pg() 2909 p1_size = get_unaligned_be16(new + 10); in process_medium_part_m_pg() 2980 alloc_len = msense_6 ? cmd[4] : get_unaligned_be16(cmd + 7); in resp_mode_sense() 3175 param_len = mselect6 ? cmd[4] : get_unaligned_be16(cmd + 7); in resp_mode_select() 3187 md_len = mselect6 ? (arr[0] + 1) : (get_unaligned_be16(arr + 0) + 2); in resp_mode_select() 3188 bd_len = mselect6 ? arr[3] : get_unaligned_be16(arr + 6); in resp_mode_select() 3202 blksize = get_unaligned_be16(arr + off + 6); in resp_mode_select() [all …]
|
| /linux/drivers/md/dm-vdo/indexer/ |
| H A D | hash-utils.h | 29 u64 bytes = (u64) get_unaligned_be16(chapter_bits) << 32; in uds_extract_chapter_index_bytes() 42 return get_unaligned_be16(&name->name[SAMPLE_BYTES_OFFSET]); in uds_extract_sampling_bytes()
|
| /linux/drivers/mfd/ |
| H A D | si476x-cmd.c | 479 return get_unaligned_be16(resp + 2); in si476x_core_cmd_get_property() 775 report->readfreq = get_unaligned_be16(resp + 3); in si476x_core_cmd_am_rsq_status() 938 report->pi = get_unaligned_be16(resp + 4); in si476x_core_cmd_fm_rds_status() 985 report->expected = get_unaligned_be16(resp + 2); in si476x_core_cmd_fm_rds_blockcount() 986 report->received = get_unaligned_be16(resp + 4); in si476x_core_cmd_fm_rds_blockcount() 987 report->uncorrectable = get_unaligned_be16(resp + 6); in si476x_core_cmd_fm_rds_blockcount() 1204 report->readfreq = get_unaligned_be16(resp + 3); in si476x_core_cmd_fm_rsq_status_a10() 1212 report->readantcap = get_unaligned_be16(resp + 13); in si476x_core_cmd_fm_rsq_status_a10() 1258 report->readfreq = get_unaligned_be16(resp + 3); in si476x_core_cmd_fm_rsq_status_a20() 1266 report->readantcap = get_unaligned_be16(resp + 13); in si476x_core_cmd_fm_rsq_status_a20() [all …]
|
| /linux/drivers/iio/pressure/ |
| H A D | adp810.c | 129 *val = get_unaligned_be16(&buf.dp); in adp810_read_raw() 132 *val = get_unaligned_be16(&buf.tmp); in adp810_read_raw() 140 *val = get_unaligned_be16(&buf.sf); in adp810_read_raw()
|
| /linux/drivers/iio/chemical/ |
| H A D | pms7003.c | 103 return clamp_val(get_unaligned_be16(data), in pms7003_get_pm() 210 u16 checksum = get_unaligned_be16(frame->data + offset); in pms7003_frame_is_okay() 230 magic = get_unaligned_be16(buf); in pms7003_receive_buf() 234 num = get_unaligned_be16(buf + 2); in pms7003_receive_buf()
|
| /linux/drivers/media/radio/si470x/ |
| H A D | radio-si470x-usb.c | 253 radio->registers[regnr] = get_unaligned_be16(&radio->usb_buf[1]); in si470x_get_register() 294 radio->registers[regnr] = get_unaligned_be16( in si470x_get_all_registers() 389 get_unaligned_be16(&radio->int_in_buffer[1]); in si470x_int_in_callback() 398 get_unaligned_be16(&radio->int_in_buffer[ in si470x_int_in_callback() 642 (get_unaligned_be16(&radio->usb_buf[1]) & 0xfff) != 0x0242) { in si470x_usb_driver_probe()
|
| /linux/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_iscsi.c | 329 tmp = cpu_to_le16(get_unaligned_be16(p)); in qed_sp_iscsi_conn_offload() 331 tmp = cpu_to_le16(get_unaligned_be16(p + 1)); in qed_sp_iscsi_conn_offload() 333 tmp = cpu_to_le16(get_unaligned_be16(p + 2)); in qed_sp_iscsi_conn_offload() 337 tmp = cpu_to_le16(get_unaligned_be16(p)); in qed_sp_iscsi_conn_offload() 339 tmp = cpu_to_le16(get_unaligned_be16(p + 1)); in qed_sp_iscsi_conn_offload() 341 tmp = cpu_to_le16(get_unaligned_be16(p + 2)); in qed_sp_iscsi_conn_offload() 401 tmp = cpu_to_le16(get_unaligned_be16(p)); in qed_sp_iscsi_conn_offload() 403 tmp = cpu_to_le16(get_unaligned_be16(p + 1)); in qed_sp_iscsi_conn_offload() 405 tmp = cpu_to_le16(get_unaligned_be16(p + 2)); in qed_sp_iscsi_conn_offload() 409 tmp = cpu_to_le16(get_unaligned_be16(p)); in qed_sp_iscsi_conn_offload() [all …]
|
| /linux/block/partitions/ |
| H A D | ldm.c | 77 ph->ver_major = get_unaligned_be16(data + 0x000C); in ldm_parse_privhead() 78 ph->ver_minor = get_unaligned_be16(data + 0x000E); in ldm_parse_privhead() 179 vm->ver_major = get_unaligned_be16(data + 0x12); in ldm_parse_vmdb() 180 vm->ver_minor = get_unaligned_be16(data + 0x14); in ldm_parse_vmdb() 449 if (get_unaligned_be16(data + 0x10) != 0x01) { in ldm_validate_vmdb() 1230 rec = get_unaligned_be16(data + 0x0C); in ldm_frag_add() 1231 num = get_unaligned_be16(data + 0x0E); in ldm_frag_add() 1370 recs = get_unaligned_be16(data + 0x0E); /* Number of records */ in ldm_get_vblks()
|
| /linux/drivers/target/ |
| H A D | target_core_xcopy.c | 125 ript = get_unaligned_be16(&desc[2]); in target_xcopy_parse_tiddesc_e4() 305 desc_len = get_unaligned_be16(&desc[2]); in target_xcopy_parse_segdesc_02() 312 xop->stdi = get_unaligned_be16(&desc[4]); in target_xcopy_parse_segdesc_02() 313 xop->dtdi = get_unaligned_be16(&desc[6]); in target_xcopy_parse_segdesc_02() 325 xop->nolb = get_unaligned_be16(&desc[10]); in target_xcopy_parse_segdesc_02() 808 tdll = get_unaligned_be16(&p[2]); in target_parse_xcopy_cmd()
|
| H A D | target_core_sbc.c | 174 num_blocks = get_unaligned_be16(&cmd->t_task_cdb[7]); in sbc_get_write_same_sectors() 236 return get_unaligned_be16(&cdb[7]); in transport_get_sectors_10() 775 boundary = get_unaligned_be16(&cdb[10]); in sbc_check_atomic() 776 transfer_len = get_unaligned_be16(&cdb[12]); in sbc_check_atomic() 930 u16 service_action = get_unaligned_be16(&cdb[8]); in sbc_parse_cdb() 1029 size = get_unaligned_be16(&cdb[7]); in sbc_parse_cdb() 1159 dl = get_unaligned_be16(&buf[0]); in sbc_execute_unmap() 1160 bd_dl = get_unaligned_be16(&buf[2]); in sbc_execute_unmap()
|
| /linux/security/keys/trusted-keys/ |
| H A D | trusted_tpm2.c | 35 priv_len = get_unaligned_be16(src) + 2; in tpm2_key_encode() 40 pub_len = get_unaligned_be16(src) + 2; in tpm2_key_encode() 402 private_len = get_unaligned_be16(blob); in tpm2_load_cmd() 408 public_len = get_unaligned_be16(blob + 2 + private_len); in tpm2_load_cmd()
|
| /linux/drivers/input/touchscreen/ |
| H A D | eeti_ts.c | 51 x = get_unaligned_be16(&buf[1]); in eeti_ts_report_event() 52 y = get_unaligned_be16(&buf[3]); in eeti_ts_report_event()
|
| H A D | s6sy761.c | 355 sdata->devid = get_unaligned_be16(buffer + 1); in s6sy761_hw_init() 364 *max_x = get_unaligned_be16(buffer); in s6sy761_hw_init() 365 *max_y = get_unaligned_be16(buffer + 2); in s6sy761_hw_init()
|
| H A D | cy8ctma140.c | 78 x = get_unaligned_be16(buf); in cy8ctma140_report() 79 y = get_unaligned_be16(buf + 2); in cy8ctma140_report()
|
| /linux/net/bluetooth/bnep/ |
| H A D | core.c | 110 n = get_unaligned_be16(data); in bnep_ctrl_set_netfilter() 126 f[i].start = get_unaligned_be16(data++); in bnep_ctrl_set_netfilter() 127 f[i].end = get_unaligned_be16(data++); in bnep_ctrl_set_netfilter() 156 n = get_unaligned_be16(data); in bnep_ctrl_set_mcfilter()
|
| /linux/security/apparmor/ |
| H A D | match.c | 46 th.td_id = get_unaligned_be16(blob) - 1; in unpack_table() 49 th.td_flags = get_unaligned_be16(blob + 2); in unpack_table() 73 u16, __be16, get_unaligned_be16); in unpack_table() 339 dfa->flags = get_unaligned_be16(data + 12); in aa_dfa_unpack()
|
| /linux/drivers/nfc/nxp-nci/ |
| H A D | firmware.c | 137 fw_info->frame_size = get_unaligned_be16(fw_info->data) & in nxp_nci_fw_send() 284 frame_crc = get_unaligned_be16(skb->data + len); in nxp_nci_fw_check_crc()
|
| /linux/tools/include/tools/ |
| H A D | be_byteshift.h | 41 static inline uint16_t get_unaligned_be16(const void *p) in get_unaligned_be16() function
|
| /linux/drivers/ata/ |
| H A D | libata-scsi.c | 1356 *plen = get_unaligned_be16(&cdb[7]); in scsi_10_lba_len() 2054 return get_unaligned_be16(&rbuf[2]) + 4; in ata_scsiop_inq_00() 2082 return get_unaligned_be16(&rbuf[2]) + 4; in ata_scsiop_inq_80() 2144 return get_unaligned_be16(&rbuf[2]) + 4; in ata_scsiop_inq_83() 2182 return get_unaligned_be16(&rbuf[2]) + 4; in ata_scsiop_inq_89() 2233 return get_unaligned_be16(&rbuf[2]) + 4; in ata_scsiop_inq_b0() 2263 return get_unaligned_be16(&rbuf[2]) + 4; in ata_scsiop_inq_b1() 2286 return get_unaligned_be16(&rbuf[2]) + 4; in ata_scsiop_inq_b2() 2324 return get_unaligned_be16(&rbuf[2]) + 4; in ata_scsiop_inq_b6() 2362 return get_unaligned_be16(&rbuf[2]) + 4; in ata_scsiop_inq_b9() [all …]
|
| /linux/net/sched/ |
| H A D | em_cmp.c | 40 val = get_unaligned_be16(ptr); in em_cmp_match()
|
| /linux/drivers/usb/serial/ |
| H A D | mxuport.c | 339 u16 rcv_msr_event = get_unaligned_be16(buf); in mxuport_msr_event() 481 rcv_port = get_unaligned_be16(data); in mxuport_process_read_urb_demux_data() 489 rcv_len = get_unaligned_be16(data + 2); in mxuport_process_read_urb_demux_data() 528 rcv_port = get_unaligned_be16(data); in mxuport_process_read_urb_demux_event() 538 rcv_event = get_unaligned_be16(data + 2); in mxuport_process_read_urb_demux_event()
|
| /linux/net/ipv4/ |
| H A D | cipso_ipv4.c | 915 cat = get_unaligned_be16(&enumcat[iter]); in cipso_v4_map_cat_enum_valid() 983 get_unaligned_be16(&net_cat[iter]), in cipso_v4_map_cat_enum_ntoh() 1017 cat_high = get_unaligned_be16(&rngcat[iter]); in cipso_v4_map_cat_rng_valid() 1019 cat_low = get_unaligned_be16(&rngcat[iter + 2]); in cipso_v4_map_cat_rng_valid() 1116 cat_high = get_unaligned_be16(&net_cat[net_iter]); in cipso_v4_map_cat_rng_ntoh() 1118 cat_low = get_unaligned_be16(&net_cat[net_iter + 2]); in cipso_v4_map_cat_rng_ntoh()
|
| /linux/sound/soc/codecs/ |
| H A D | tas2781-fmwlib.c | 267 get_unaligned_be16(&config_data[config_offset]); in tasdevice_add_config() 782 fw_hdr->device_family = get_unaligned_be16(&buf[offset]); in fw_parse_variable_header_kernel() 789 fw_hdr->device = get_unaligned_be16(&buf[offset]); in fw_parse_variable_header_kernel() 908 unsigned short len = get_unaligned_be16(&data[2]); in tasdevice_process_block() 934 unsigned short len = get_unaligned_be16(&data[2]); in tasdevice_process_block() 975 sleep_time = get_unaligned_be16(&data[2]) * 1000; in tasdevice_process_block() 1248 img_data->nr_blk = get_unaligned_be16(&data[offset]); in fw_parse_data() 1284 tas_fmw->nr_programs = get_unaligned_be16(&buf[offset]); in fw_parse_program_data() 1350 tas_fmw->nr_configurations = get_unaligned_be16(&data[offset]); in fw_parse_configuration_data() 2143 tas_fmw->nr_calibrations = get_unaligned_be16(&data[offset]); in fw_parse_calibration_data()
|