/Zephyr-latest/tests/subsys/mgmt/mcumgr/mcumgr_client/src/ |
D | smp_stub.c | 61 dst_hdr->nh_len = sys_be16_to_cpu(dst_hdr->nh_len); in smp_transport_read_hdr() 62 dst_hdr->nh_group = sys_be16_to_cpu(dst_hdr->nh_group); in smp_transport_read_hdr() 79 res_hdr.nh_len = sys_be16_to_cpu(res_hdr.nh_len); in smp_uart_tx_pkt() 80 res_hdr.nh_group = sys_be16_to_cpu(res_hdr.nh_group); in smp_uart_tx_pkt()
|
/Zephyr-latest/drivers/sensor/tdk/mpu6050/ |
D | mpu6050.c | 133 drv_data->accel_x = sys_be16_to_cpu(buf[0]); in mpu6050_sample_fetch() 134 drv_data->accel_y = sys_be16_to_cpu(buf[1]); in mpu6050_sample_fetch() 135 drv_data->accel_z = sys_be16_to_cpu(buf[2]); in mpu6050_sample_fetch() 136 drv_data->temp = sys_be16_to_cpu(buf[3]); in mpu6050_sample_fetch() 137 drv_data->gyro_x = sys_be16_to_cpu(buf[4]); in mpu6050_sample_fetch() 138 drv_data->gyro_y = sys_be16_to_cpu(buf[5]); in mpu6050_sample_fetch() 139 drv_data->gyro_z = sys_be16_to_cpu(buf[6]); in mpu6050_sample_fetch()
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/smp_client/src/ |
D | smp_transport_stub.c | 23 dst_hdr->nh_len = sys_be16_to_cpu(dst_hdr->nh_len); in smp_transport_read_hdr() 24 dst_hdr->nh_group = sys_be16_to_cpu(dst_hdr->nh_group); in smp_transport_read_hdr()
|
/Zephyr-latest/drivers/sensor/tdk/mpu9250/ |
D | mpu9250.c | 205 drv_data->accel_x = sys_be16_to_cpu(buf[0]); in mpu9250_sample_fetch() 206 drv_data->accel_y = sys_be16_to_cpu(buf[1]); in mpu9250_sample_fetch() 207 drv_data->accel_z = sys_be16_to_cpu(buf[2]); in mpu9250_sample_fetch() 208 drv_data->temp = sys_be16_to_cpu(buf[3]); in mpu9250_sample_fetch() 209 drv_data->gyro_x = sys_be16_to_cpu(buf[4]); in mpu9250_sample_fetch() 210 drv_data->gyro_y = sys_be16_to_cpu(buf[5]); in mpu9250_sample_fetch() 211 drv_data->gyro_z = sys_be16_to_cpu(buf[6]); in mpu9250_sample_fetch()
|
/Zephyr-latest/drivers/sensor/honeywell/hmc5883l/ |
D | hmc5883l.c | 74 drv_data->x_sample = sys_be16_to_cpu(buf[0]); in hmc5883l_sample_fetch() 75 drv_data->z_sample = sys_be16_to_cpu(buf[1]); in hmc5883l_sample_fetch() 76 drv_data->y_sample = sys_be16_to_cpu(buf[2]); in hmc5883l_sample_fetch()
|
/Zephyr-latest/drivers/sensor/ams/ams_iAQcore/ |
D | iAQcore.c | 48 drv_data->co2 = sys_be16_to_cpu(buf.co2_pred); in iaqcore_sample_fetch() 49 drv_data->voc = sys_be16_to_cpu(buf.voc); in iaqcore_sample_fetch()
|
/Zephyr-latest/drivers/sensor/ams/ccs811/ |
D | ccs811.c | 99 ptr->fw_boot_version = sys_be16_to_cpu(ptr->fw_boot_version); in ccs811_configver_fetch() 107 ptr->fw_app_version = sys_be16_to_cpu(ptr->fw_app_version); in ccs811_configver_fetch() 241 rp->co2 = sys_be16_to_cpu(buf[0]); in ccs811_sample_fetch() 242 rp->voc = sys_be16_to_cpu(buf[1]); in ccs811_sample_fetch() 246 rp->raw = sys_be16_to_cpu(buf[3]); in ccs811_sample_fetch() 524 fw_ver = sys_be16_to_cpu(fw_ver); in ccs811_init()
|
/Zephyr-latest/drivers/sensor/silabs/si7006/ |
D | si7006.c | 50 si_data->humidity = sys_be16_to_cpu(hum) & ~3; in si7006_get_humidity() 78 si_data->temperature = sys_be16_to_cpu(temp) & ~3; in si7006_get_temperature()
|
/Zephyr-latest/subsys/mgmt/mcumgr/smp_client/src/ |
D | client.c | 279 dst_hdr->nh_len = sys_be16_to_cpu(dst_hdr->nh_len); in smp_read_hdr() 280 dst_hdr->nh_group = sys_be16_to_cpu(dst_hdr->nh_group); in smp_read_hdr() 313 smp_header.nh_op, sys_be16_to_cpu(smp_header.nh_group), smp_header.nh_id, in smp_client_send_cmd()
|
/Zephyr-latest/subsys/mgmt/mcumgr/transport/src/ |
D | smp_reassembly.c | 41 uint16_t expected = sys_be16_to_cpu(((struct smp_hdr *)buf)->nh_len); in smp_reassembly_collect()
|
/Zephyr-latest/subsys/usb/device_next/class/ |
D | usbd_msc_scsi.c | 550 ret = MIN(sys_be16_to_cpu(cmd->allocation_length), in SCSI_CMD_HANDLER() 557 ret = MIN(sys_be16_to_cpu(cmd->allocation_length), in SCSI_CMD_HANDLER() 661 length = MIN(sys_be16_to_cpu(cmd->allocation_length), sizeof(r)); in SCSI_CMD_HANDLER() 727 uint16_t transfer_length = sys_be16_to_cpu(cmd->transfer_length); in SCSI_CMD_HANDLER() 781 uint16_t transfer_length = sys_be16_to_cpu(cmd->transfer_length); in SCSI_CMD_HANDLER() 820 length = MIN(sys_be16_to_cpu(cmd->allocation_length), sizeof(r)); in SCSI_CMD_HANDLER()
|
/Zephyr-latest/drivers/sensor/grow_r502a/ |
D | grow_r502a.c | 75 if (sys_be16_to_cpu(rx_packet->start) == R502A_STARTCODE) { in r502a_validate_rx_packet() 76 LOG_DBG("startcode matched 0x%X", sys_be16_to_cpu(rx_packet->start)); in r502a_validate_rx_packet() 78 LOG_ERR("startcode didn't match 0x%X", sys_be16_to_cpu(rx_packet->start)); in r502a_validate_rx_packet() 104 cks_start_idx = sys_be16_to_cpu(rx_packet->len) - R502A_CHECKSUM_LEN; in r502a_validate_rx_packet() 108 calc_cks += rx_packet->pid + (sys_be16_to_cpu(rx_packet->len) >> 8) + in r502a_validate_rx_packet() 109 (sys_be16_to_cpu(rx_packet->len) & 0xFF); in r502a_validate_rx_packet() 889 sys_be16_to_cpu(rx_packet.len) - R502A_CHECKSUM_LEN); in fps_upload_char_buf() 890 idx += sys_be16_to_cpu(rx_packet.len) - R502A_CHECKSUM_LEN; in fps_upload_char_buf()
|
/Zephyr-latest/drivers/sensor/nct75/ |
D | nct75.c | 62 raw_value = arithmetic_shift_right(sys_be16_to_cpu(read_buffer), 4); in nct75_sample_fetch()
|
/Zephyr-latest/drivers/input/ |
D | input_cst816s.c | 141 col = sys_be16_to_cpu(x) & 0x0fff; in cst816s_process() 142 row = sys_be16_to_cpu(y) & 0x0fff; in cst816s_process()
|
/Zephyr-latest/drivers/sensor/maxim/max31790/ |
D | max31790_fan_speed.c | 38 tach_count = sys_be16_to_cpu(tach_count); in max31790_fan_speed_sample_fetch()
|
/Zephyr-latest/drivers/sensor/meas/ms5607/ |
D | ms5607_spi.c | 88 *val = sys_be16_to_cpu(rx.prom_value); in ms5607_spi_read_prom()
|
/Zephyr-latest/drivers/mfd/ |
D | mfd_ad559x_spi.c | 71 *val = sys_be16_to_cpu(data); in mfd_ad559x_spi_read_reg()
|
/Zephyr-latest/drivers/sensor/ti/tmp007/ |
D | tmp007.c | 30 *val = sys_be16_to_cpu(*val); in tmp007_reg_read()
|
/Zephyr-latest/drivers/sensor/jedec/jc42/ |
D | jc42.c | 30 *val = sys_be16_to_cpu(*val); in jc42_reg_read()
|
/Zephyr-latest/drivers/wifi/eswifi/ |
D | eswifi_socket.c | 88 socket->port = sys_be16_to_cpu(net_sin(addr)->sin_port); in __eswifi_bind() 243 (uint16_t)sys_be16_to_cpu(net_sin(addr)->sin_port)); in __eswifi_off_start_client()
|
/Zephyr-latest/include/zephyr/sys/ |
D | byteorder.h | 231 #define sys_be16_to_cpu(val) BSWAP_16(val) macro 277 #define sys_be16_to_cpu(val) (val) macro
|
/Zephyr-latest/subsys/mgmt/mcumgr/smp/src/ |
D | smp.c | 101 dst_hdr->nh_len = sys_be16_to_cpu(dst_hdr->nh_len); in smp_read_hdr() 102 dst_hdr->nh_group = sys_be16_to_cpu(dst_hdr->nh_group); in smp_read_hdr()
|
/Zephyr-latest/subsys/bluetooth/host/classic/ |
D | avctp.c | 112 LOG_ERR("unsupported AVCTP PID received: 0x%04x", sys_be16_to_cpu(hdr->pid)); in avctp_l2cap_recv()
|
/Zephyr-latest/drivers/sensor/rohm/bh1750/ |
D | bh1750.c | 61 *val = sys_be16_to_cpu(*val); in bh1750_opcode_read()
|
/Zephyr-latest/drivers/sensor/st/vl53l1x/ |
D | vl53l1_platform.c | 110 *pdata = sys_be16_to_cpu(*pdata); in VL53L1_RdWord()
|