Searched refs:bytes_read (Results 26 - 50 of 81) sorted by relevance

1234

/linux-master/drivers/tty/serial/
H A Dsunhv.c124 unsigned long bytes_read, i; local
125 long stat = sun4v_con_read(ra, PAGE_SIZE, &bytes_read);
128 bytes_read = 0;
138 bytes_read = 1;
155 for (i = 0; i < bytes_read; i++)
163 port->icount.rx += bytes_read;
166 bytes_read);
/linux-master/fs/verity/
H A Denable.c112 ssize_t bytes_read; local
117 bytes_read = __kernel_read(filp, buffers[-1].data,
119 if (bytes_read < 0) {
120 err = bytes_read;
124 if (bytes_read != buffers[-1].filled) {
/linux-master/tools/testing/vsock/
H A Dvsock_perf.c219 ssize_t bytes_read; local
223 bytes_read = read(fds.fd, data, buf_size_bytes);
227 if (!bytes_read)
230 if (bytes_read < 0) {
235 total_recv += bytes_read;
/linux-master/drivers/usb/misc/
H A Dadutux.c347 size_t bytes_read = 0; local
390 bytes_read += amount;
435 retval = bytes_read ? bytes_read : -ENOMEM;
460 retval = bytes_read ? bytes_read : -ETIMEDOUT;
468 retval = bytes_read ? bytes_read : -EINTR;
475 retval = bytes_read;
H A Dusblcd.c129 int bytes_read; local
146 &bytes_read, 10000);
150 if (copy_to_user(buffer, dev->bulk_in_buffer, bytes_read))
153 retval = bytes_read;
/linux-master/drivers/media/rc/
H A Dredrat3.c228 u16 bytes_read; member in struct:redrat3_dev
623 rr3->bytes_read = len;
624 dev_dbg(rr3->dev, "bytes_read %d, pktlen %d\n",
625 rr3->bytes_read, pktlen);
639 if (len + rr3->bytes_read > sizeof(rr3->irdata)) {
641 rr3->bytes_read = 0;
645 memcpy(irdata + rr3->bytes_read, rr3->bulk_in_buf, len);
647 rr3->bytes_read += len;
648 dev_dbg(rr3->dev, "bytes_read %d, pktlen %d\n", rr3->bytes_read,
[all...]
/linux-master/drivers/pci/hotplug/
H A Dacpiphp_ibm.c359 int bytes_read = -EINVAL; local
365 bytes_read = ibm_get_table_from_acpi(&table);
366 if (bytes_read > 0 && bytes_read <= size)
367 memcpy(buffer, table, bytes_read);
370 return bytes_read;
/linux-master/tools/perf/tests/
H A Dcode-reading.c48 size_t bytes_read = 0; local
67 bytes_read++;
82 if (bytes_read > 1 && !host_is_bigendian()) {
83 unsigned char *chunk_end = chunk_start + bytes_read - 1;
95 return bytes_read;
102 size_t ret, bytes_read = 0; local
119 bytes_read += ret;
124 return bytes_read;
/linux-master/drivers/nvmem/
H A Du-boot-env.c55 size_t bytes_read; local
58 err = mtd_read(priv->mtd, offset, bytes, &bytes_read, val);
64 if (bytes_read != bytes) {
/linux-master/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_debugdump.c163 int bytes_read; local
177 bytes_read = nfp_rtsym_read(cpp, specsym, 0, dumpspec->data, sym_size);
178 if (bytes_read != sym_size) {
460 int bytes_read; local
489 bytes_read = nfp_cpp_read(pf->cpp, cpp_id, cpp_rd_addr,
491 err = bytes_read == reg_sz ? 0 : -EIO;
615 int bytes_read; local
652 bytes_read = nfp_rtsym_read(pf->cpp, sym, 0, dest, sym_size);
653 if (bytes_read != sym_size) {
654 if (bytes_read >
[all...]
/linux-master/drivers/char/
H A Dppdev.c121 ssize_t bytes_read = 0; local
146 while (bytes_read == 0) {
162 bytes_read = (*fn)(pport, kbuffer, need, flags);
164 bytes_read = parport_read(pport, kbuffer, need);
167 if (bytes_read != 0)
171 bytes_read = -EAGAIN;
176 bytes_read = -ERESTARTSYS;
185 if (bytes_read > 0 && copy_to_user(buf, kbuffer, bytes_read))
186 bytes_read
[all...]
/linux-master/drivers/media/dvb-core/
H A Ddvb_ca_en50221.c641 int bytes_read; local
674 bytes_read = status;
694 bytes_read = status << 8;
699 bytes_read |= status;
703 if (bytes_read > sl->link_buf_size) {
705 ca->dvbdev->adapter->num, bytes_read,
711 if (bytes_read < 2) {
719 if (bytes_read > ecount) {
728 for (i = 0; i < bytes_read; i++) {
760 dvb_ringbuffer_pkt_write(&sl->rx_buffer, buf, bytes_read);
[all...]
/linux-master/fs/hfs/
H A Dbnode.c22 int bytes_read; local
29 for (bytes_read = 0; bytes_read < len; bytes_read += bytes_to_read) {
33 bytes_to_read = min_t(int, len - bytes_read, PAGE_SIZE - off);
35 memcpy_from_page(buf + bytes_read, page, off, bytes_to_read);
/linux-master/drivers/crypto/cavium/zip/
H A Dcommon.h113 * @bytes_read: Input bytes read in current instruction
146 u32 bytes_read; member in struct:zip_operation
H A Dzip_inflate.c192 zip_ops->bytes_read = result_ptr->s.totalbytesread;
/linux-master/tools/power/acpi/os_specific/service_layers/
H A Dosunixxf.c52 acpi_status acpi_ut_read_line(char *buffer, u32 buffer_length, u32 *bytes_read);
430 * bytes_read - Where the actual byte count is returned
440 acpi_status acpi_os_get_line(char *buffer, u32 buffer_length, u32 *bytes_read) argument
469 if (bytes_read) {
470 *bytes_read = end_of_line;
/linux-master/drivers/usb/misc/sisusbvga/
H A Dsisusbvga.c437 void *kernbuffer, char __user *userbuffer, ssize_t *bytes_read,
445 (*bytes_read) = 0;
488 (*bytes_read) += thispass;
509 return ((*bytes_read) == len) ? 0 : -EIO;
1094 ssize_t *bytes_read)
1101 (*bytes_read = 0);
1111 (*bytes_read)++;
1124 (*bytes_read) += 2;
1138 (*bytes_read) += 3;
1164 (*bytes_read)
436 sisusb_recv_bulk_msg(struct sisusb_usb_data *sisusb, int ep, int len, void *kernbuffer, char __user *userbuffer, ssize_t *bytes_read, unsigned int tflags) argument
1092 sisusb_read_mem_bulk(struct sisusb_usb_data *sisusb, u32 addr, char *kernbuffer, int length, char __user *userbuffer, ssize_t *bytes_read) argument
2300 ssize_t bytes_read = 0; local
[all...]
/linux-master/drivers/gpio/
H A Dgpiolib-cdev.c1619 ssize_t bytes_read = 0; local
1633 if (bytes_read)
1634 return bytes_read;
1657 if (copy_to_user(buf + bytes_read, &le, sizeof(le)))
1659 bytes_read += sizeof(le);
1660 } while (count >= bytes_read + sizeof(le));
1662 return bytes_read;
1957 ssize_t bytes_read = 0; local
1985 if (bytes_read)
1986 return bytes_read;
2671 ssize_t bytes_read = 0; local
[all...]
/linux-master/drivers/firmware/broadcom/
H A Dbcm47xx_nvram.c159 size_t bytes_read; local
166 err = mtd_read(mtd, 0, sizeof(header), &bytes_read, (uint8_t *)&header);
/linux-master/drivers/i2c/busses/
H A Di2c-bcm-kona.c321 unsigned int bytes_read = 0; local
326 while (bytes_read < msg->len) {
327 if (msg->len - bytes_read <= MAX_RX_FIFO_SIZE) {
329 bytes_to_read = msg->len - bytes_read;
337 bytes_read += bytes_to_read;
/linux-master/drivers/hid/
H A Dhid-rmi.c194 int bytes_read; local
226 bytes_read = 0;
228 while (bytes_read < len) {
239 memcpy(buf + bytes_read, &data->readReport[2],
242 bytes_read += read_input_count;
/linux-master/drivers/net/wireless/ath/ath9k/
H A Dcommon-spectral.c40 typedef int (ath_cmn_fft_idx_validator) (u8 *sample_end, int bytes_read);
43 ath_cmn_max_idx_verify_ht20_fft(u8 *sample_end, int bytes_read) argument
54 if (bytes_read < SPECTRAL_HT20_SAMPLE_LEN - 1)
71 if (bytes_read < SPECTRAL_HT20_SAMPLE_LEN && max_index < 1)
81 ath_cmn_max_idx_verify_ht20_40_fft(u8 *sample_end, int bytes_read) argument
93 if (bytes_read < SPECTRAL_HT20_40_SAMPLE_LEN - 1)
113 if (bytes_read < SPECTRAL_HT20_40_SAMPLE_LEN &&
/linux-master/drivers/net/ethernet/qualcomm/
H A Dqca_spi.c331 u32 bytes_read; local
375 bytes_read = qcaspi_read_legacy(qca, qca->rx_buffer,
378 bytes_read = qcaspi_read_burst(qca, qca->rx_buffer,
383 available, bytes_read);
385 if (bytes_read) {
386 available -= bytes_read;
394 while ((bytes_read--) && (qca->rx_skb)) {
/linux-master/drivers/hv/
H A Dring_buffer.c574 u32 curr_write_sz, pending_sz, bytes_read, start_read_index; local
619 bytes_read = hv_pkt_iter_bytes_read(rbi, start_read_index);
641 if (curr_write_sz - bytes_read > pending_sz)
/linux-master/drivers/firmware/microchip/
H A Dmpfs-auto-update.c229 size_t bytes_written = 0, bytes_read = 0; local
245 ret = mtd_read(priv->flash, AUTO_UPDATE_DIRECTORY_BASE, erase_size, &bytes_read,
250 if (bytes_read != erase_size)

Completed in 337 milliseconds

1234