Lines Matching full:amount
50 static PRInt32 nss_io_read(PRFileDesc *fd, void *buf, PRInt32 amount)
52 wpa_printf(MSG_DEBUG, "NSS: I/O read(%d)", amount);
57 static PRInt32 nss_io_write(PRFileDesc *fd, const void *buf, PRInt32 amount)
59 wpa_printf(MSG_DEBUG, "NSS: I/O write(%d)", amount);
72 static PRInt32 nss_io_recv(PRFileDesc *fd, void *buf, PRInt32 amount,
78 wpa_printf(MSG_DEBUG, "NSS: I/O recv(%d)", amount);
86 if (end - conn->pull_buf_offset < amount)
87 amount = end - conn->pull_buf_offset;
88 os_memcpy(buf, conn->pull_buf_offset, amount);
89 conn->pull_buf_offset += amount;
100 return amount;
104 static PRInt32 nss_io_send(PRFileDesc *fd, const void *buf, PRInt32 amount,
111 wpa_hexdump(MSG_MSGDUMP, "NSS: I/O send data", buf, amount);
113 nbuf = os_realloc(conn->push_buf, conn->push_buf_len + amount);
119 os_memcpy(nbuf + conn->push_buf_len, buf, amount);
121 conn->push_buf_len += amount;
123 return amount;
127 static PRInt32 nss_io_recvfrom(PRFileDesc *fd, void *buf, PRInt32 amount,
136 static PRInt32 nss_io_sendto(PRFileDesc *fd, const void *buf, PRInt32 amount,