Home
last modified time | relevance | path

Searched refs:write_buf (Results 1 – 19 of 19) sorted by relevance

/Zephyr-latest/tests/subsys/ipc/pbuf/src/
Dmain.c38 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/
Dmain.c23 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/
Dmain.c42 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/
Dmpr.c41 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/
Dhdr_ddr.h103 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/
Dmcc_internal.h105 char write_buf[SEARCH_LEN_MAX]; member
110 char write_buf[sizeof(((struct mpl_cmd *)0)->opcode) + member
Dmcc.c2406 (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 …]
Dtbs_client.c1942 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/
Dw1_net.c369 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/
Dlwm2m_pull_context.c230 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()
Dlwm2m_message_handling.c999 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/
Di2c.h917 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()
Dw1.h576 const uint8_t *write_buf, size_t write_len,
Di3c.h1882 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/
Dinput_paw32xx.c115 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()
Dinput_pmw3610.c160 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()
Dinput_gt911.c94 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/
Dcentral.c56 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/
Dfuse_fs_access.c462 .write_buf = NULL,