/Zephyr-Core-2.7.6/drivers/sensor/bme680/ |
D | bme680.c | 195 uint8_t buff[BME680_LEN_FIELD] = { 0 }; in bme680_sample_fetch() local 204 ret = bme680_reg_read(dev, BME680_REG_FIELD0, buff, size); in bme680_sample_fetch() 209 data->new_data = buff[0] & BME680_MSK_NEW_DATA; in bme680_sample_fetch() 210 data->heatr_stab = buff[14] & BME680_MSK_HEATR_STAB; in bme680_sample_fetch() 212 adc_press = (uint32_t)(((uint32_t)buff[2] << 12) | ((uint32_t)buff[3] << 4) in bme680_sample_fetch() 213 | ((uint32_t)buff[4] >> 4)); in bme680_sample_fetch() 214 adc_temp = (uint32_t)(((uint32_t)buff[5] << 12) | ((uint32_t)buff[6] << 4) in bme680_sample_fetch() 215 | ((uint32_t)buff[7] >> 4)); in bme680_sample_fetch() 216 adc_hum = (uint16_t)(((uint32_t)buff[8] << 8) | (uint32_t)buff[9]); in bme680_sample_fetch() 217 adc_gas_res = (uint16_t)((uint32_t)buff[13] << 2 | (((uint32_t)buff[14]) >> 6)); in bme680_sample_fetch() [all …]
|
/Zephyr-Core-2.7.6/drivers/disk/ |
D | flashdisk.c | 67 static int disk_flash_access_read(struct disk_info *disk, uint8_t *buff, in disk_flash_access_read() argument 86 if (flash_read(flash_dev, fl_addr, buff, len) != 0) { in disk_flash_access_read() 91 buff += len; in disk_flash_access_read() 140 static int update_flash_block(off_t start_addr, uint32_t size, const void *buff) in update_flash_block() argument 143 uint8_t *src = (uint8_t *)buff; in update_flash_block() 150 rc = read_copy_flash_block(start_addr, size, buff, fs_buff); in update_flash_block() 184 static int disk_flash_access_write(struct disk_info *disk, const uint8_t *buff, in disk_flash_access_write() argument 204 if (update_flash_block(fl_addr, remaining, buff) != 0) { in disk_flash_access_write() 215 if (update_flash_block(fl_addr, size, buff) != 0) { in disk_flash_access_write() 221 buff += size; in disk_flash_access_write() [all …]
|
D | ramdisk.c | 38 static int disk_ram_access_read(struct disk_info *disk, uint8_t *buff, in disk_ram_access_read() argument 41 memcpy(buff, lba_to_address(sector), count * RAMDISK_SECTOR_SIZE); in disk_ram_access_read() 46 static int disk_ram_access_write(struct disk_info *disk, const uint8_t *buff, in disk_ram_access_write() argument 49 memcpy(lba_to_address(sector), buff, count * RAMDISK_SECTOR_SIZE); in disk_ram_access_write() 54 static int disk_ram_access_ioctl(struct disk_info *disk, uint8_t cmd, void *buff) in disk_ram_access_ioctl() argument 60 *(uint32_t *)buff = RAMDISK_VOLUME_SIZE / RAMDISK_SECTOR_SIZE; in disk_ram_access_ioctl() 63 *(uint32_t *)buff = RAMDISK_SECTOR_SIZE; in disk_ram_access_ioctl() 66 *(uint32_t *)buff = 1U; in disk_ram_access_ioctl()
|
D | sdmmc_stm32.c | 174 void *buff) in stm32_sdmmc_access_ioctl() argument 187 *(uint32_t *)buff = info.LogBlockNbr; in stm32_sdmmc_access_ioctl() 194 *(uint32_t *)buff = info.LogBlockSize; in stm32_sdmmc_access_ioctl() 197 *(uint32_t *)buff = 1; in stm32_sdmmc_access_ioctl()
|
/Zephyr-Core-2.7.6/tests/subsys/fs/fat_fs_dual_drive/src/ |
D | disk_access_test_drv.c | 41 static int disk_ram_access_read(struct disk_info *disk, uint8_t *buff, in disk_ram_access_read() argument 44 memcpy(buff, lba_to_address(sector), count * RAMDISK_SECTOR_SIZE); in disk_ram_access_read() 49 static int disk_ram_access_write(struct disk_info *disk, const uint8_t *buff, in disk_ram_access_write() argument 52 memcpy(lba_to_address(sector), buff, count * RAMDISK_SECTOR_SIZE); in disk_ram_access_write() 57 static int disk_ram_access_ioctl(struct disk_info *disk, uint8_t cmd, void *buff) in disk_ram_access_ioctl() argument 63 *(uint32_t *)buff = RAMDISK_VOLUME_SIZE / RAMDISK_SECTOR_SIZE; in disk_ram_access_ioctl() 66 *(uint32_t *)buff = RAMDISK_SECTOR_SIZE; in disk_ram_access_ioctl() 69 *(uint32_t *)buff = 1U; in disk_ram_access_ioctl()
|
/Zephyr-Core-2.7.6/modules/hal_nordic/nrf_802154/serialization/platform/ |
D | nrf_802154_spinel_response_notifier.c | 32 nrf_802154_spinel_notify_buff_t buff; member 84 result = ¬ify_buff.buff; in nrf_802154_spinel_response_notifier_property_await() 103 buff); in nrf_802154_spinel_response_notifier_free() 120 assert(data_len <= sizeof(notify_buff.buff.data)); in nrf_802154_spinel_response_notifier_property_notify() 122 memcpy(notify_buff.buff.data, p_data, data_len); in nrf_802154_spinel_response_notifier_property_notify() 123 notify_buff.buff.data_len = data_len; in nrf_802154_spinel_response_notifier_property_notify()
|
/Zephyr-Core-2.7.6/tests/drivers/i2c/i2c_tca9546a/src/ |
D | main.c | 36 uint8_t buff[1]; in test_tca9546a() local 44 i2c_read(i2c0, buff, 1, 0x42); in test_tca9546a() 45 i2c_read(i2c1, buff, 1, 0x42); in test_tca9546a()
|
/Zephyr-Core-2.7.6/scripts/tracing/ |
D | trace_capture_usb.py | 86 buff = usb.util.create_buffer(8192) 87 read_endpoint.read(buff, 10000) 91 buff = usb.util.create_buffer(8192) 92 length = read_endpoint.read(buff, 100000) 94 file_desc.write(chr(buff[index]).encode('latin1'))
|
/Zephyr-Core-2.7.6/subsys/shell/ |
D | shell_utils.c | 201 void z_shell_pattern_remove(char *buff, uint16_t *buff_len, const char *pattern) in z_shell_pattern_remove() argument 203 char *pattern_addr = strstr(buff, pattern); in z_shell_pattern_remove() 211 if (pattern_addr > buff) { in z_shell_pattern_remove() 411 static void buffer_trim(char *buff, uint16_t *buff_len) in buffer_trim() argument 416 if (buff[0] == '\0') { in buffer_trim() 420 while (isspace((int) buff[*buff_len - 1U])) { in buffer_trim() 423 buff[0] = '\0'; in buffer_trim() 427 buff[*buff_len] = '\0'; in buffer_trim() 432 while (isspace((int) buff[i++])) { in buffer_trim() 438 memmove(buff, buff + i, (*buff_len + 1U) - i); /* +1 for '\0' */ in buffer_trim()
|
D | shell_wildcard.c | 13 static enum shell_wildcard_status command_add(char *buff, uint16_t *buff_len, in command_add() argument 26 completion_addr = strstr(buff, pattern); in command_add()
|
D | shell_utils.h | 40 void z_shell_pattern_remove(char *buff, uint16_t *buff_len,
|
/Zephyr-Core-2.7.6/drivers/sensor/vcnl4040/ |
D | vcnl4040.c | 22 uint8_t buff[2] = { 0 }; in vcnl4040_read() local 26 ®, sizeof(reg), buff, sizeof(buff)); in vcnl4040_read() 29 *out = sys_get_le16(buff); in vcnl4040_read() 40 uint8_t buff[3]; in vcnl4040_write() local 42 sys_put_le16(value, &buff[1]); in vcnl4040_write() 44 buff[0] = reg; in vcnl4040_write() 46 msg.buf = buff; in vcnl4040_write() 48 msg.len = sizeof(buff); in vcnl4040_write()
|
/Zephyr-Core-2.7.6/drivers/misc/ft8xx/ |
D | ft8xx_drv.c | 52 static void insert_addr(uint32_t addr, uint8_t *buff) in insert_addr() argument 54 buff[0] = (addr >> 16) & 0x3f; in insert_addr() 55 buff[1] = (addr >> 8) & 0xff; in insert_addr() 56 buff[2] = (addr) & 0xff; in insert_addr()
|
/Zephyr-Core-2.7.6/samples/net/civetweb/websocket_server/src/ |
D | http_server_handlers.c | 35 const char *buff, 72 const char *buff, in this_send_buffer_chunked() argument 83 char *itr = (char *)buff; /* buffer iterator */ in this_send_buffer_chunked()
|
/Zephyr-Core-2.7.6/include/storage/ |
D | disk_access.h | 93 int disk_access_ioctl(const char *pdrv, uint8_t cmd, void *buff);
|
/Zephyr-Core-2.7.6/include/drivers/ |
D | disk.h | 89 int (*ioctl)(struct disk_info *disk, uint8_t cmd, void *buff);
|
/Zephyr-Core-2.7.6/drivers/ipm/ |
D | ipm_stm32_hsem.c | 78 const void *buff, int size) in stm32_hsem_mailbox_ipm_send() argument 83 ARG_UNUSED(buff); in stm32_hsem_mailbox_ipm_send()
|
D | ipm_stm32_ipcc.c | 156 const void *buff, int size) in stm32_ipcc_mailbox_ipm_send() argument 162 ARG_UNUSED(buff); in stm32_ipcc_mailbox_ipm_send()
|
/Zephyr-Core-2.7.6/drivers/clock_control/ |
D | clock_control_litex.c | 1155 uint64_t post_glob_div_f, buff, clkout_period; in litex_clk_get_phase_deg() local 1158 buff = PICOS_IN_SEC; in litex_clk_get_phase_deg() 1159 buff /= post_glob_div_f; in litex_clk_get_phase_deg() 1160 clkout_period = (uint32_t)buff; in litex_clk_get_phase_deg() 1163 buff = lcko->config.period_off * 1000 / clkout_period; in litex_clk_get_phase_deg() 1164 buff *= 360; in litex_clk_get_phase_deg() 1165 buff = litex_round(buff, 1000); in litex_clk_get_phase_deg() 1167 return (int)buff; in litex_clk_get_phase_deg()
|
/Zephyr-Core-2.7.6/tests/bluetooth/bsim_bt/edtt_ble_test_app/hci_test_app/src/ |
D | main.c | 149 uint8_t buff[size]; in echo() local 151 edtt_read(buff, size, EDTTT_BLOCK); in echo() 152 edtt_write(buff, size, EDTTT_BLOCK); in echo()
|
/Zephyr-Core-2.7.6/tests/kernel/mbox/mbox_api/src/ |
D | test_mbox_api.c | 529 char buff[MAIL_LEN]; in test_mbox_get_put_block_data() local 536 &bdmbox, buff, NULL, in test_mbox_get_put_block_data() 549 zassert_equal(memcmp(buff, data_put, sizeof(data_put)), 0, in test_mbox_get_put_block_data()
|
/Zephyr-Core-2.7.6/drivers/flash/ |
D | flash_esp32.c | 309 uint8_t *buff = (uint8_t *)buffer; in flash_esp32_read() local 332 buff += read_len; in flash_esp32_read() 333 buffer = (void *)buff; in flash_esp32_read()
|