Searched refs:bytes_read (Results 1 - 25 of 82) sorted by relevance

1234

/linux-master/drivers/net/wireless/ath/ath9k/
H A Drng.c73 int bytes_read = 0; local
77 bytes_read = ath9k_rng_data_read(sc, buf, max >> 2);
79 memcpy(buf + bytes_read, &word, max & 3UL);
80 bytes_read += max & 3UL;
83 if (!wait || !max || likely(bytes_read) || fail_stats > 110)
90 if (wait && !bytes_read && max)
91 bytes_read = -EIO;
92 return bytes_read;
/linux-master/tools/power/acpi/tools/ec/
H A Dec_access.c129 int byte_off, bytes_read; local
131 bytes_read = read(fd, buf, EC_SPACE_SIZE);
133 if (bytes_read == -1)
136 if (bytes_read != EC_SPACE_SIZE)
137 fprintf(stderr, "Could only read %d bytes\n", bytes_read);
140 for (byte_off = 0; byte_off < bytes_read; byte_off++) {
154 bytes_read = read(fd, buf2, EC_SPACE_SIZE);
156 if (bytes_read == -1)
159 if (bytes_read != EC_SPACE_SIZE)
160 fprintf(stderr, "Could only read %d bytes\n", bytes_read);
[all...]
/linux-master/tools/perf/scripts/perl/
H A Drwtop.pl44 $reads{$common_pid}{bytes_read} += $ret;
46 if (!defined ($reads{$common_pid}{bytes_read})) {
47 $reads{$common_pid}{bytes_read} = 0;
132 "# reads", "bytes_req", "bytes_read");
136 foreach my $pid (sort { ($reads{$b}{bytes_read} || 0) <=>
137 ($reads{$a}{bytes_read} || 0) } keys %reads) {
141 my $bytes_read = $reads{$pid}{bytes_read} || 0;
144 $total_reads, $bytes_requested, $bytes_read);
H A Drw-by-pid.pl31 $reads{$common_pid}{bytes_read} += $ret;
33 if (!defined ($reads{$common_pid}{bytes_read})) {
34 $reads{$common_pid}{bytes_read} = 0;
78 "# reads", "bytes_requested", "bytes_read");
82 foreach my $pid (sort { ($reads{$b}{bytes_read} || 0) <=>
83 ($reads{$a}{bytes_read} || 0) } keys %reads) {
87 my $bytes_read = $reads{$pid}{bytes_read} || 0;
90 $total_reads, $bytes_requested, $bytes_read);
/linux-master/arch/x86/events/
H A Dutils.c92 int bytes_read, bytes_left, insn_offset; local
126 bytes_read = MAX_INSN_SIZE - bytes_left;
127 if (!bytes_read)
147 bytes_read = MAX_INSN_SIZE;
160 insn_init(&insn, addr, bytes_read, is64);
171 bytes_read -= insn.length;
172 if (bytes_read < 0)
175 insn_init(&insn, addr + insn_offset, bytes_read, is64);
/linux-master/drivers/net/wwan/iosm/
H A Diosm_ipc_flash.c101 u32 bytes_read; local
111 IOSM_LER_RSP_SIZE, &bytes_read))
114 if (bytes_read != IOSM_LER_RSP_SIZE)
130 u32 bytes_read; local
134 IOSM_EBL_HEAD_SIZE, &bytes_read);
141 if (bytes_read != IOSM_EBL_HEAD_SIZE) {
147 &bytes_read);
154 if (bytes_read != size) {
452 u32 bytes_read, psi_size = fw->size - IOSM_DEVLINK_HDR_SIZE; local
470 IOSM_LER_ACK_SIZE, &bytes_read);
511 u32 bytes_read; local
[all...]
H A Diosm_ipc_coredump.c21 int ret, bytes_to_read, bytes_read = 0, i = 0; local
37 bytes_read = 0;
39 bytes_to_read, &bytes_read);
44 remaining -= bytes_read;
45 i += bytes_read;
H A Diosm_ipc_imem_ops.h130 * @bytes_read: Number of bytes read
135 u32 bytes_to_read, u32 *bytes_read);
/linux-master/drivers/char/
H A Dadi.c57 size_t ver_buf_sz, bytes_read = 0; local
70 while (bytes_read < count) {
80 if (copy_to_user(buf + bytes_read, ver_buf,
86 bytes_read += ver_buf_sz;
89 ver_buf_sz = min(count - bytes_read,
94 (*offp) += bytes_read;
95 ret = bytes_read;
/linux-master/drivers/usb/misc/
H A Didmouse.c125 int bytes_read; local
130 bytes_read = sizeof(HEADER)-1;
159 while (bytes_read < IMGSIZE) {
162 dev->bulk_in_buffer + bytes_read,
177 bytes_read += bulk_read;
182 for (bytes_read = sizeof(HEADER)-1 + WIDTH-1; bytes_read < IMGSIZE; bytes_read += WIDTH)
183 if (dev->bulk_in_buffer[bytes_read] != 0x00)
187 for (bytes_read
[all...]
/linux-master/drivers/mtd/parsers/
H A Dparser_trx.c32 size_t bytes_read; local
35 err = mtd_read(master, offset, sizeof(buf), &bytes_read,
58 size_t bytes_read; local
73 err = mtd_read(mtd, 0, sizeof(trx), &bytes_read, (uint8_t *)&trx);
H A Dbrcm_u-boot.c35 size_t bytes_read; local
47 err = mtd_read(mtd, offset, sizeof(header), &bytes_read, (uint8_t *)&header);
H A Dtplink_safeloader.c25 size_t bytes_read; local
42 err = mtd_read(mtd, offset, sizeof(hdr), &bytes_read, (uint8_t *)&hdr);
54 err = mtd_read(mtd, offset + sizeof(hdr), size, &bytes_read, buf);
H A Dbcm47xxpart.c93 size_t bytes_read; local
134 &bytes_read, (uint8_t *)buf);
236 err = mtd_read(master, offset + (blocksize / 2), 0x4, &bytes_read,
260 err = mtd_read(master, offset, 0x4, &bytes_read,
/linux-master/fs/befs/
H A Ddatastream.c133 befs_off_t bytes_read = 0; /* bytes readed */ local
139 while (bytes_read < len) {
140 bh = befs_read_datastream(sb, ds, bytes_read, NULL);
143 "starting from %llu", bytes_read);
145 return bytes_read;
148 plen = ((bytes_read + BEFS_SB(sb)->block_size) < len) ?
149 BEFS_SB(sb)->block_size : len - bytes_read;
150 memcpy(buff + bytes_read, bh->b_data, plen);
152 bytes_read += plen;
156 bytes_read);
[all...]
/linux-master/drivers/net/ethernet/cavium/liquidio/
H A Docteon_console.c435 s32 bytes_read)
442 for (i = 0; i < bytes_read; i++) {
470 if (line != &console_buffer[bytes_read]) {
471 console_buffer[bytes_read] = '\0';
480 s32 bytes_read, tries, total_read; local
496 bytes_read =
499 if (bytes_read > 0) {
500 total_read += bytes_read;
505 console_buffer, bytes_read);
507 } else if (bytes_read <
431 output_console_line(struct octeon_device *oct, struct octeon_console *console, size_t console_num, char *console_buffer, s32 bytes_read) argument
578 s32 bytes_read, tries, total_read; local
[all...]
/linux-master/drivers/w1/slaves/
H A Dw1_ds2413.c33 ssize_t bytes_read = -EIO; local
59 bytes_read = 1;
77 (bytes_read > 0) ? "succeeded" : "error", retries);
78 return bytes_read;
/linux-master/drivers/platform/x86/dell/
H A Ddell_rbu.c248 int length, int bytes_read, int *list_read_count)
256 if (*list_read_count > bytes_read) {
258 j = newpacket->length - (*list_read_count - bytes_read);
265 if (length > (*list_read_count - bytes_read))
270 bytes_copied = (*list_read_count - bytes_read);
284 int bytes_read = 0; local
293 bytes_read = rbu_data.packet_read_count;
297 remaining_bytes, bytes_read, &temp_count);
299 bytes_read += bytes_copied;
309 *pread_length = bytes_read
247 do_packet_read(char *data, struct packet_data *newpacket, int length, int bytes_read, int *list_read_count) argument
[all...]
/linux-master/tools/testing/selftests/sparc64/drivers/
H A Dadi-test.c182 int ret, bytes_read = 0; local
187 ret = read(fd, buf + bytes_read, buf_sz - bytes_read);
194 bytes_read += ret;
196 } while (bytes_read < buf_sz);
199 DEBUG_PRINT_L3("\tRead %d bytes\n", bytes_read);
201 return bytes_read;
207 int ret, i, bytes_read = 0; local
214 ret = pread(fd, buf + bytes_read, buf_sz - bytes_read,
[all...]
/linux-master/drivers/char/hw_random/
H A Dcore.c69 int bytes_read; local
72 bytes_read = rng_get_data(rng, rng_fillbuf, 32, 0);
74 if (bytes_read > 0) {
75 size_t entropy = bytes_read * 8 * rng->quality / 1024;
76 add_hwgenerator_randomness(rng_fillbuf, bytes_read, entropy, false);
218 int bytes_read, len; local
237 bytes_read = rng_get_data(rng, rng_buffer,
240 if (bytes_read < 0) {
241 err = bytes_read;
243 } else if (bytes_read
[all...]
/linux-master/drivers/ps3/
H A Dps3-vuart.c382 unsigned int bytes, u64 *bytes_read)
390 ps3_mm_phys_to_lpar(__pa(buf)), bytes, bytes_read);
398 priv->stats.bytes_read += *bytes_read;
401 *bytes_read, bytes, priv->stats.bytes_read);
448 priv->stats.bytes_read -= bytes_waiting;
605 unsigned long bytes_read; local
628 bytes_read = min((unsigned int)(lb->tail - lb->head), bytes);
630 memcpy(buf, lb->head, bytes_read);
381 ps3_vuart_raw_read(struct ps3_system_bus_device *dev, void *buf, unsigned int bytes, u64 *bytes_read) argument
[all...]
H A Dvuart.h16 unsigned long bytes_read; member in struct:ps3_vuart_stats
/linux-master/drivers/nvmem/
H A Dbcm-ocotp.c156 u32 bytes_read; local
160 for (bytes_read = 0; bytes_read < bytes;) {
173 bytes_read += sizeof(*buf);
/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_gnss.c89 unsigned int i, bytes_read, data_len, count; local
134 for (i = 0; i < data_len; i += bytes_read) {
137 bytes_read = min_t(typeof(bytes_left), bytes_left,
142 bytes_read, &buf[i], NULL);
/linux-master/drivers/video/fbdev/omap2/omapfb/displays/
H A Dconnector-dvi.c172 int r, l, bytes_read; local
182 bytes_read = l;
193 bytes_read += l;
196 return bytes_read;

Completed in 232 milliseconds

1234