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()
107 datlen, boot->pof_recoffset); in pof_handle_data()
114 img_len = datlen; /* maximum length to transfer */ in pof_handle_data()
140 DecryptBuf(boot, datlen); /* we need to encrypt the buffer */ in pof_handle_data()
146 datlen, boot->pof_recoffset); in pof_handle_data()
148 if ((boot->last_error = card->writebootseq(card, boot->buf.BootBuf, datlen)) < 0) in pof_handle_data()
151 if (boot->pof_recoffset + datlen >= boot->pof_reclen) in pof_handle_data()
159 datlen, boot->pof_recoffset); in pof_handle_data()
176 pof_write_buffer(hysdn_card *card, int datlen) in pof_write_buffer() argument
186 hysdn_addlog(card, "POF write: got %d bytes ", datlen); in pof_write_buffer()
193 if (datlen != sizeof(tPofFileHdr)) { in pof_write_buffer()
211 if (datlen != sizeof(tPofRecHdr)) { in pof_write_buffer()
239 if (datlen != boot->last_error) { in pof_write_buffer()
243 if ((boot->last_error = pof_handle_data(card, datlen)) < 0) in pof_write_buffer()
245 boot->pof_recoffset += datlen; in pof_write_buffer()