/Zephyr-latest/drivers/sensor/adi/adxl362/ |
D | adxl362_decoder.c | 43 static inline void adxl362_temp_convert_q31(q31_t *out, int16_t data_in) in adxl362_temp_convert_q31() argument 46 data_in &= 0xFFF; in adxl362_temp_convert_q31() 48 if (data_in & BIT(11)) { in adxl362_temp_convert_q31() 49 data_in |= ADXL362_COMPLEMENT; in adxl362_temp_convert_q31() 52 *out = ((data_in - ADXL362_TEMP_BIAS_LSB) / ADXL362_TEMP_LSB_PER_C in adxl362_temp_convert_q31() 56 static inline void adxl362_accel_convert_q31(q31_t *out, int16_t data_in, int32_t range) in adxl362_accel_convert_q31() argument 58 data_in &= 0xFFF; in adxl362_accel_convert_q31() 60 if (data_in & BIT(11)) { in adxl362_accel_convert_q31() 61 data_in |= ADXL362_COMPLEMENT; in adxl362_accel_convert_q31() 64 *out = data_in * qscale_factor[range]; in adxl362_accel_convert_q31() [all …]
|
/Zephyr-latest/drivers/sensor/adi/adxl367/ |
D | adxl367_decoder.c | 45 int16_t data_in; in adxl367_temp_convert_q31() local 51 data_in = ((*((int8_t *)buff)) << 6) & 0x3FC0; in adxl367_temp_convert_q31() 58 data_in = ((int16_t)(*buff & 0x0F) << 8) | *(buff + 1); in adxl367_temp_convert_q31() 60 data_in = ((int16_t)(*buff) << 4) | (*(buff + 1) >> 4); in adxl367_temp_convert_q31() 63 data_in = (data_in << 2) & 0x3FFC; in adxl367_temp_convert_q31() 68 data_in = sys_le16_to_cpu(*((int16_t *)(buff))); in adxl367_temp_convert_q31() 69 if (ADXL367_FIFO_HDR_CHECK_TEMP(data_in)) { in adxl367_temp_convert_q31() 71 data_in &= 0x3FFF; in adxl367_temp_convert_q31() 73 data_in = (data_in << 2) & 0x3FFC; in adxl367_temp_convert_q31() 81 data_in = (int16_t)(((*tmp_buf >> 8) & 0xFF) | ((*tmp_buf << 8) & 0xFF00)); in adxl367_temp_convert_q31() [all …]
|
/Zephyr-latest/drivers/spi/ |
D | spi_sedi.c | 102 uint8_t *data_out = NULL, *data_in = NULL; in transceive() local 161 data_in = (uint8_t *)ctx->rx_buf; in transceive() 167 data_in = NULL; in transceive() 173 data_in = (uint8_t *)ctx->rx_buf; in transceive() 181 data_in = ctx->rx_buf; in transceive() 189 data_in = ctx->rx_buf; in transceive() 195 ret = sedi_spi_transfer(info->spi_device, data_out, data_in, in transceive()
|
/Zephyr-latest/drivers/sensor/adi/adxl372/ |
D | adxl372_decoder.c | 26 int16_t data_in = ((int16_t)*buff << 4) | (((int16_t)*(buff + 1) & 0xF0) >> 4); in adxl372_accel_convert_q31() local 28 if (data_in & BIT(11)) { in adxl372_accel_convert_q31() 29 data_in |= ADXL372_COMPLEMENT; in adxl372_accel_convert_q31() 32 *out = data_in * SENSOR_QSCALE_FACTOR; in adxl372_accel_convert_q31()
|
/Zephyr-latest/drivers/mdio/ |
D | mdio_esp32.c | 34 bool write, uint16_t data_in, uint16_t *data_out) in mdio_transfer() argument 47 emac_ll_set_phy_data(dev_data->hal.mac_regs, data_in); in mdio_transfer()
|
D | mdio_gpio.c | 77 uint16_t data_in, uint16_t *data_out) in mdio_gpio_transfer() argument 100 mdio_gpio_write(dev_cfg, data_in, 16); in mdio_gpio_transfer()
|
D | mdio_litex_liteeth.c | 99 uint16_t data_in, uint16_t *data_out) in mdio_litex_transfer() argument 121 mdio_litex_write(dev_cfg, data_in, 16); in mdio_litex_transfer()
|
D | mdio_sam.c | 43 enum mdio_opcode op, bool c45, uint16_t data_in, in mdio_transfer() argument 58 | GMAC_MAN_DATA(data_in); in mdio_transfer()
|
D | mdio_dwcxgmac.c | 87 uint16_t data_in, uint16_t *data_out) in mdio_transfer() argument 118 mdio_data = CORE_MDIO_SINGLE_COMMAND_CONTROL_DATA_SDATA_SET(data_in) | in mdio_transfer()
|
/Zephyr-latest/drivers/ps2/ |
D | ps2_npcx_controller.c | 293 uint8_t data_in = inst->PSDAT; in ps2_npcx_ctrl_isr() local 295 LOG_DBG("Recv:0x%02x", data_in); in ps2_npcx_ctrl_isr() 298 callback(dev, data_in); in ps2_npcx_ctrl_isr()
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/openisa/hal/RV32M1/radio/ |
D | radio.c | 1318 uint8_t data_in[29] = { in radio_ccm_tx_pkt_set_ut() local 1348 memcpy(pkt, data_in, sizeof(data_in)); in radio_ccm_tx_pkt_set_ut()
|
/Zephyr-latest/subsys/sd/ |
D | sdio.c | 90 uint8_t data_in, in sdio_io_rw_direct() argument 100 cmd.arg |= data_in & SDIO_DIRECT_CMD_DATA_MASK; in sdio_io_rw_direct()
|