Lines Matching refs:datlen
85 pof_handle_data(hysdn_card *card, int datlen) in pof_handle_data() argument
101 DecryptBuf(boot, datlen); /* we need to encrypt the buffer */ in pof_handle_data()
106 datlen, boot->pof_recoffset); in pof_handle_data()
113 img_len = datlen; /* maximum length to transfer */ in pof_handle_data()
139 DecryptBuf(boot, datlen); /* we need to encrypt the buffer */ in pof_handle_data()
144 datlen, boot->pof_recoffset); in pof_handle_data()
146 if ((boot->last_error = card->writebootseq(card, boot->buf.BootBuf, datlen)) < 0) in pof_handle_data()
149 if (boot->pof_recoffset + datlen >= boot->pof_reclen) in pof_handle_data()
157 datlen, boot->pof_recoffset); in pof_handle_data()
174 pof_write_buffer(hysdn_card *card, int datlen) in pof_write_buffer() argument
184 hysdn_addlog(card, "POF write: got %d bytes ", datlen); in pof_write_buffer()
191 if (datlen != sizeof(tPofFileHdr)) { in pof_write_buffer()
209 if (datlen != sizeof(tPofRecHdr)) { in pof_write_buffer()
237 if (datlen != boot->last_error) { in pof_write_buffer()
241 if ((boot->last_error = pof_handle_data(card, datlen)) < 0) in pof_write_buffer()
243 boot->pof_recoffset += datlen; in pof_write_buffer()