/Zephyr-latest/tests/subsys/ipc/pbuf/src/ |
D | main.c | 38 uint8_t write_buf[MEM_AREA_SZ]; in ZTEST() local 58 write_buf[i] = i+1; in ZTEST() 64 ret = pbuf_write(&pb, write_buf, MSGA_SZ); in ZTEST() 68 ret = pbuf_write(&pb, write_buf+MSGA_SZ, MSGB_SZ); in ZTEST() 81 zassert_mem_equal(read_buf, write_buf, ret); in ZTEST() 90 zassert_mem_equal(read_buf, write_buf+MSGA_SZ, ret); in ZTEST() 97 ret = pbuf_write(&pb, write_buf, MPS); in ZTEST() 106 zassert_mem_equal(write_buf, read_buf, MPS); in ZTEST() 144 uint8_t write_buf[MEM_AREA_SZ]; in ZTEST() local 147 write_buf[i] = i+1; in ZTEST() [all …]
|
/Zephyr-latest/samples/drivers/spi_flash_at45/src/ |
D | main.c | 23 static uint8_t write_buf[TEST_REGION_SIZE]; variable 64 write_buf[i] = (uint8_t)(data + i); in main() 110 write_buf, TEST_REGION_SIZE/2); in main() 120 &write_buf[TEST_REGION_SIZE/2], TEST_REGION_SIZE/2); in main() 140 if (read_buf[i] != write_buf[i]) { in main() 143 i, write_buf[i], read_buf[i]); in main()
|
/Zephyr-latest/tests/subsys/storage/stream/stream_flash/src/ |
D | main.c | 42 const static uint8_t write_buf[TESTBUF_SIZE] = {[0 ... TESTBUF_SIZE - 1] = 0xaa}; variable 149 rc = stream_flash_buffered_write(&ctx, write_buf, BUF_LEN - 1, false); in ZTEST() 156 rc = stream_flash_buffered_write(&ctx, write_buf, 1, false); in ZTEST() 169 rc = stream_flash_buffered_write(&ctx, write_buf, BUF_LEN + 128, false); in ZTEST() 176 rc = stream_flash_buffered_write(&ctx, write_buf, BUF_LEN - 128, false); in ZTEST() 181 rc = stream_flash_buffered_write(&ctx, write_buf, BUF_LEN/2, false); in ZTEST() 185 rc = stream_flash_buffered_write(&ctx, write_buf, 0, true); in ZTEST() 203 rc = stream_flash_buffered_write(&ctx, write_buf, 1, true); in ZTEST() 219 rc = stream_flash_buffered_write(&ctx, write_buf, BUF_LEN - 1, true); in ZTEST() 234 rc = stream_flash_buffered_write(&ctx, write_buf, in ZTEST() [all …]
|
/Zephyr-latest/drivers/sensor/honeywell/mpr/ |
D | mpr.c | 41 uint8_t write_buf[] = { MPR_OUTPUT_MEASUREMENT_COMMAND, 0x00, 0x00 }; in mpr_read_reg() local 44 int rc = i2c_write_dt(&cfg->i2c, write_buf, sizeof(write_buf)); in mpr_read_reg()
|
/Zephyr-latest/include/zephyr/drivers/i3c/ |
D | hdr_ddr.h | 103 const void *write_buf, size_t num_write, uint8_t read_cmd, in i3c_hdr_ddr_write_read() argument 108 msg[0].buf = (uint8_t *)write_buf; in i3c_hdr_ddr_write_read()
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | mcc_internal.h | 105 char write_buf[SEARCH_LEN_MAX]; member 110 char write_buf[sizeof(((struct mpl_cmd *)0)->opcode) + member
|
D | mcc.c | 2406 (void)memcpy(mcs_inst->write_buf, &pos, sizeof(pos)); in bt_mcc_set_track_position() 2409 mcs_inst->write_params.data = mcs_inst->write_buf; in bt_mcc_set_track_position() 2491 (void)memcpy(mcs_inst->write_buf, &speed, sizeof(speed)); in bt_mcc_set_playback_speed() 2494 mcs_inst->write_params.data = mcs_inst->write_buf; in bt_mcc_set_playback_speed() 2657 sys_put_le48(obj_id, mcs_inst->write_buf); in bt_mcc_set_current_track_obj_id() 2659 mcs_inst->write_params.data = mcs_inst->write_buf; in bt_mcc_set_current_track_obj_id() 2742 sys_put_le48(obj_id, mcs_inst->write_buf); in bt_mcc_set_next_track_obj_id() 2744 mcs_inst->write_params.data = mcs_inst->write_buf; in bt_mcc_set_next_track_obj_id() 2865 sys_put_le48(obj_id, mcs_inst->write_buf); in bt_mcc_set_current_group_obj_id() 2867 mcs_inst->write_params.data = mcs_inst->write_buf; in bt_mcc_set_current_group_obj_id() [all …]
|
D | tbs_client.c | 1942 uint8_t write_buf[CONFIG_BT_L2CAP_TX_MTU]; in bt_tbs_client_originate_call() local 1945 const size_t max_uri_len = sizeof(write_buf) - sizeof(*originate); in bt_tbs_client_originate_call() 1972 originate = (struct bt_tbs_call_cp_originate *)write_buf; in bt_tbs_client_originate_call() 1996 uint8_t write_buf[CONFIG_BT_L2CAP_TX_MTU]; in bt_tbs_client_join_calls() local 1997 const size_t max_call_cnt = sizeof(write_buf) - sizeof(join->opcode); in bt_tbs_client_join_calls() 2015 join = (struct bt_tbs_call_cp_join *)write_buf; in bt_tbs_client_join_calls()
|
/Zephyr-latest/drivers/w1/ |
D | w1_net.c | 369 const uint8_t *write_buf, size_t write_len, in write_read() argument 379 ret = w1_write_block(dev, write_buf, write_len); in write_read() 391 const uint8_t *write_buf, size_t write_len, in w1_write_read() argument 397 ret = write_read(dev, config, write_buf, write_len, read_buf, read_len); in w1_write_read()
|
/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_pull_context.c | 230 uint8_t resp_code, *write_buf; in do_firmware_transfer_reply_cb() local 305 write_buf = res->res_instances->data_ptr; in do_firmware_transfer_reply_cb() 310 write_buf = res->pre_write_cb(0, 0, 0, &write_buflen); in do_firmware_transfer_reply_cb() 321 if (buf_read(write_buf, len, CPKT_BUF_READ(response), in do_firmware_transfer_reply_cb() 328 ret = context.write_cb(context.obj_inst_id, 0, 0, write_buf, len, in do_firmware_transfer_reply_cb()
|
D | lwm2m_message_handling.c | 999 void *write_buf; in lwm2m_write_handler_opaque() local 1015 write_buf = msg->ctx->validate_buf; in lwm2m_write_handler_opaque() 1020 write_buf = data_ptr; in lwm2m_write_handler_opaque() 1025 len = engine_get_opaque(&msg->in, write_buf, MIN(data_len, write_buf_len), in lwm2m_write_handler_opaque() 1034 res_inst->res_inst_id, write_buf, len, in lwm2m_write_handler_opaque() 1042 memcpy(data_ptr, write_buf, len); in lwm2m_write_handler_opaque() 1080 void *write_buf; in lwm2m_write_handler() local 1130 write_buf = msg->ctx->validate_buf; in lwm2m_write_handler() 1135 write_buf = data_ptr; in lwm2m_write_handler() 1149 ret = engine_get_string(&msg->in, write_buf, write_buf_len); in lwm2m_write_handler() [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | i2c.h | 917 uint8_t num_msgs, uint16_t addr, const void *write_buf, in i2c_write_read_cb() argument 925 msgs[0].buf = (uint8_t *)write_buf; in i2c_write_read_cb() 958 uint8_t num_msgs, const void *write_buf, size_t num_write, in i2c_write_read_cb_dt() argument 962 return i2c_write_read_cb(spec->bus, msgs, num_msgs, spec->addr, write_buf, num_write, in i2c_write_read_cb_dt() 1367 const void *write_buf, size_t num_write, in i2c_write_read() argument 1372 msg[0].buf = (uint8_t *)write_buf; in i2c_write_read() 1401 const void *write_buf, size_t num_write, in i2c_write_read_dt() argument 1405 write_buf, num_write, in i2c_write_read_dt()
|
D | w1.h | 576 const uint8_t *write_buf, size_t write_len,
|
D | i3c.h | 1882 const void *write_buf, size_t num_write, in i3c_write_read() argument 1887 msg[0].buf = (uint8_t *)write_buf; in i3c_write_read()
|
/Zephyr-latest/drivers/input/ |
D | input_paw32xx.c | 115 uint8_t write_buf[] = {addr | SPI_WRITE, value}; in paw32xx_write_reg() local 117 .buf = write_buf, in paw32xx_write_reg() 118 .len = sizeof(write_buf), in paw32xx_write_reg()
|
D | input_pmw3610.c | 160 uint8_t write_buf[] = {addr | SPI_WRITE, value}; in pmw3610_write_reg() local 162 .buf = write_buf, in pmw3610_write_reg() 163 .len = sizeof(write_buf), in pmw3610_write_reg()
|
D | input_gt911.c | 94 static int gt911_i2c_write_read(const struct device *dev, const void *write_buf, size_t num_write, in gt911_i2c_write_read() argument 100 return i2c_write_read(config->bus.bus, data->actual_address, write_buf, num_write, read_buf, in gt911_i2c_write_read()
|
/Zephyr-latest/tests/bsim/bluetooth/host/security/ccc_update/src/ |
D | central.c | 56 static int gatt_write(struct bt_conn *conn, uint16_t handle, const uint8_t *write_buf, in gatt_write() argument 65 params.data = write_buf; in gatt_write()
|
/Zephyr-latest/subsys/fs/ |
D | fuse_fs_access.c | 462 .write_buf = NULL,
|