Home | History | Annotate | Download | only in src

Lines Matching defs:towrite

939   unsigned long towrite = 0;
951 towrite = size-curwrite;
952 if (towrite > CONTEXT_BLOCK_SIZE) {
953 towrite = CONTEXT_BLOCK_SIZE;
956 if (towrite > ptp_usb->outep_maxpacket && towrite % ptp_usb->outep_maxpacket != 0) {
957 towrite -= towrite % ptp_usb->outep_maxpacket;
960 int getfunc_ret = handler->getfunc(NULL, handler->priv,towrite,bytes,&towrite);
963 while (usbwritten < towrite) {
964 result = USB_BULK_WRITE(ptp_usb->handle,ptp_usb->outep,((char*)bytes+usbwritten),towrite-usbwritten,ptp_usb->timeout);
999 if (result < towrite) /* short writes happen */
1010 if ((towrite % ptp_usb->outep_maxpacket) == 0) {
1127 unsigned long towrite;
1146 towrite = PTP_USB_BULK_REQ_LEN-(sizeof(uint32_t)*(5-req->Nparam));
1147 ptp_init_send_memory_handler (&memhandler, (unsigned char*)&usbreq, towrite);
1149 towrite,
1158 if (written != towrite && ret != PTP_ERROR_CANCEL && ret != PTP_ERROR_IO) {
1161 req->Code, written, towrite