Home
last modified time | relevance | path

Searched refs:data_read (Results 1 – 25 of 25) sorted by relevance

/external/libese/tools/ese_relay/
Dese_relay.c86 uint32_t tx_len, data_read; in main() local
126 for (data_read = 0; data_read < tx_len;) { in main()
127 printf("Reading payload: %u of %u remaining\n", data_read, tx_len); in main()
128 ssize_t bytes = read(client_fd, tx_buf + data_read, tx_len - data_read); in main()
134 data_read += bytes; in main()
195 for (data_read = 0; data_read < rx_len;) { in main()
197 write(client_fd, rx_buf + data_read, rx_len - data_read); in main()
203 data_read += bytes; in main()
/external/elfutils/libelf/
Delf_newdata.c81 if (scn->data_read in elf_newdata()
86 if (scn->data_read && scn->data_list_rear == NULL) in elf_newdata()
100 if (scn->data_read == 0) in elf_newdata()
Delf_rawdata.c54 || (scn->data_read != 0 && (scn->flags & ELF_F_FILEDATA) == 0)) in elf_rawdata()
63 if (scn->data_read == 0) in elf_rawdata()
Delf_strptr.c172 if (strscn->rawdata_base == NULL && ! strscn->data_read) in elf_strptr()
176 if (strscn->rawdata_base == NULL && ! strscn->data_read in elf_strptr()
Delf_getdata.c394 scn->data_read = 1; in __libelf_set_rawdata_wrlock()
522 if (scn->data_read == 0) in __elf_getdata_rdlock()
535 if (scn->data_read == 0 && __libelf_set_rawdata_wrlock (scn) != 0) in __elf_getdata_rdlock()
Delf_getscn.c90 scn0->data_read = 1; in elf_getscn()
Delf_newscn.c147 result->data_read = 1; in elf_newscn()
Delf32_updatenull.c270 if (scn->data_read == 0 in __elfw2()
Delf_compress.c337 scn->data_read = 1; in __libelf_reset_rawdata()
DlibelfP.h216 int data_read; /* Nonzero if the section was created by the member
/external/crosvm/devices/src/
Dpic.rs617 let mut data_read = [0]; in write_read_elcr() localVariable
620 data.pic.read(PIC_PRIMARY_ELCR, &mut data_read); in write_read_elcr()
621 assert_eq!(data_read, data_write); in write_read_elcr()
624 data.pic.read(PIC_SECONDARY_ELCR, &mut data_read); in write_read_elcr()
625 assert_eq!(data_read, data_write); in write_read_elcr()
698 let mut data_read = [0]; in ocw() localVariable
699 data.pic.read(PIC_SECONDARY_DATA, &mut data_read); in ocw()
700 assert_eq!(data_read, [0x5f]); in ocw()
916 let mut data_read = [0]; in ocw3() localVariable
917 data.pic.read(PIC_PRIMARY_COMMAND, &mut data_read); in ocw3()
[all …]
Dioapic.rs388 let mut data_read = [0; 4]; in write_read_ioregsel() localVariable
392 ioapic.read(IOREGSEL_OFF.into(), &mut data_read[i..i + 1]); in write_read_ioregsel()
393 assert_eq!(data_write[i], data_read[i]); in write_read_ioregsel()
/external/libbrillo/brillo/
Dcryptohome.cc59 unsigned int data_read = base::ReadFile(salt_path, buf.data(), file_size); in EnsureSystemSaltIsLoaded() local
60 if (data_read != file_size) { in EnsureSystemSaltIsLoaded()
61 PLOG(ERROR) << "Could not read entire file: " << data_read in EnsureSystemSaltIsLoaded()
/external/u-boot/drivers/ddr/marvell/a38x/
Dddr3_training_leveling.c46 u32 data_read[MAX_INTERFACE_NUM + 1] = { 0 }; in ddr3_tip_dynamic_read_leveling() local
223 [bus_num], data_read, in ddr3_tip_dynamic_read_leveling()
226 [if_id] = (u8)data_read[if_id]; in ddr3_tip_dynamic_read_leveling()
408 u32 data_read[MAX_INTERFACE_NUM]; in ddr3_tip_dynamic_per_bit_read_leveling() local
608 data_read, in ddr3_tip_dynamic_per_bit_read_leveling()
611 (data_read in ddr3_tip_dynamic_per_bit_read_leveling()
614 ((data_read in ddr3_tip_dynamic_per_bit_read_leveling()
815 u32 data_read[MAX_INTERFACE_NUM]; in ddr3_tip_dynamic_write_leveling() local
914 if (mv_ddr_is_training_done(MAX_POLLING_ITERATIONS, data_read) != MV_OK) { in ddr3_tip_dynamic_write_leveling()
917 reg_data = data_read[0]; in ddr3_tip_dynamic_write_leveling()
[all …]
Dddr3_training_hw_algo.c46 u32 data_read[MAX_INTERFACE_NUM] = { 0 }; in ddr3_tip_write_additional_odt_setting() local
60 data_read, MASK_ALL_BITS)); in ddr3_tip_write_additional_odt_setting()
61 val = data_read[if_id]; in ddr3_tip_write_additional_odt_setting()
Dddr3_debug.c1344 u32 data_read[MAX_INTERFACE_NUM]; in run_xsb_test() local
1360 data_read)); in run_xsb_test()
1366 data_read, in run_xsb_test()
Dddr3_training.c347 u32 data_read[MAX_INTERFACE_NUM]; in hws_ddr3_tip_init_controller() local
621 DRAM_PHY_CFG_REG, data_read, 0x30)); in hws_ddr3_tip_init_controller()
623 (data_read[if_id] == 0) ? (1 << 11) : 0; in hws_ddr3_tip_init_controller()
/external/crosvm/devices/src/usb/xhci/
Dscatter_gather_buffer.rs175 let mut data_read = [0; 7]; in scatter_gather_buffer_test() localVariable
176 buffer.read(&mut data_read).unwrap(); in scatter_gather_buffer_test()
177 assert_eq!(data_to_write, data_read); in scatter_gather_buffer_test()
/external/OpenCSD/decoder/tests/source/
Dc_api_pkt_print_test.c883 size_t data_read; in process_trace_data() local
919 data_read = fread(data_buffer,1,INPUT_BLOCK_SIZE,pf); in process_trace_data()
920 if(data_read > 0) in process_trace_data()
928 data_read); in process_trace_data()
929 index += data_read; in process_trace_data()
/external/u-boot/drivers/net/
Ddnet.c40 u16 data_read; in dnet_readw_mac() local
50 data_read = readl(&dnet->regs->MACREG_DATA); in dnet_readw_mac()
53 return data_read; in dnet_readw_mac()
/external/selinux/libsemanage/src/
Ddirect_api.c773 char *data_read = NULL; in read_from_pipe_to_data() local
778 data_read = malloc(max_len * sizeof(*data_read)); in read_from_pipe_to_data()
779 if (data_read == NULL) { in read_from_pipe_to_data()
784 while ((read_len = read(fd, data_read + data_read_len, max_len - data_read_len)) > 0) { in read_from_pipe_to_data()
788 data_read = realloc(data_read, max_len); in read_from_pipe_to_data()
789 if (data_read == NULL) { in read_from_pipe_to_data()
797 *out_data_read = data_read; in read_from_pipe_to_data()
808 char *data_read = NULL; in semanage_pipe_data() local
921 …retval = read_from_pipe_to_data(sh, initial_len, output_fd[PIPE_READ], &data_read, &data_read_len); in semanage_pipe_data()
961 if (data_read != NULL) { in semanage_pipe_data()
[all …]
/external/libchrome/base/files/
Dfile_unittest.cc337 char data_read[32]; in TEST() local
338 int bytes_read = file.Read(0, data_read, static_cast<int>(file_size)); in TEST()
341 EXPECT_EQ(data_to_write[i], data_read[i]); in TEST()
343 EXPECT_EQ(0, data_read[i]); in TEST()
353 bytes_read = file.Read(0, data_read, kTestDataSize); in TEST()
356 EXPECT_EQ(data_to_write[i], data_read[i]); in TEST()
/external/webrtc/webrtc/base/
Dvirtualsocketserver.cc287 size_t data_read = std::min(cb, packet->size()); in RecvFrom() local
288 memcpy(pv, packet->data(), data_read); in RecvFrom()
291 if (data_read < packet->size()) { in RecvFrom()
292 packet->Consume(data_read); in RecvFrom()
300 recv_buffer_size_ -= data_read; in RecvFrom()
308 return static_cast<int>(data_read); in RecvFrom()
/external/blktrace/
Dblktrace.c87 unsigned long long data_read; member
501 static inline void pdc_dr_update(struct devpath *dpp, int cpu, int data_read) in pdc_dr_update() argument
503 dpp->stats[cpu].data_read += data_read; in pdc_dr_update()
2036 unsigned long long nevents, data_read; in show_stats() local
2054 data_read = 0; in show_stats()
2063 sp->nevents = sp->data_read / in show_stats()
2069 cpu, sp->nevents, (sp->data_read + 1023) >> 10); in show_stats()
2071 data_read += sp->data_read; in show_stats()
2077 dpp->drops, (data_read + 1024) >> 10); in show_stats()
/external/pdfium/third_party/libopenjpeg20/
Dt2.c106 OPJ_UINT32 * data_read,