Home | History | Annotate | Download | only in crypto

Lines Matching full:amount

56 static PRInt32 nss_io_read(PRFileDesc *fd, void *buf, PRInt32 amount)
58 wpa_printf(MSG_DEBUG, "NSS: I/O read(%d)", amount);
63 static PRInt32 nss_io_write(PRFileDesc *fd, const void *buf, PRInt32 amount)
65 wpa_printf(MSG_DEBUG, "NSS: I/O write(%d)", amount);
78 static PRInt32 nss_io_recv(PRFileDesc *fd, void *buf, PRInt32 amount,
84 wpa_printf(MSG_DEBUG, "NSS: I/O recv(%d)", amount);
92 if (end - conn->pull_buf_offset < amount)
93 amount = end - conn->pull_buf_offset;
94 os_memcpy(buf, conn->pull_buf_offset, amount);
95 conn->pull_buf_offset += amount;
106 return amount;
110 static PRInt32 nss_io_send(PRFileDesc *fd, const void *buf, PRInt32 amount,
117 wpa_hexdump(MSG_MSGDUMP, "NSS: I/O send data", buf, amount);
119 nbuf = os_realloc(conn->push_buf, conn->push_buf_len + amount);
125 os_memcpy(nbuf + conn->push_buf_len, buf, amount);
127 conn->push_buf_len += amount;
129 return amount;
133 static PRInt32 nss_io_recvfrom(PRFileDesc *fd, void *buf, PRInt32 amount,
142 static PRInt32 nss_io_sendto(PRFileDesc *fd, const void *buf, PRInt32 amount,