Searched refs:current_sg_offset (Results 1 – 2 of 2) sorted by relevance
/linux-2.4.37.9/drivers/usb/storage/ |
D | jumpshot.c | 271 int sg_idx = 0, current_sg_offset = 0; in jumpshot_read_data() local 342 if (len - transferred >= sg[sg_idx].length - current_sg_offset) { in jumpshot_read_data() 343 …data: adding %d bytes to %d byte sg buffer\n", sg[sg_idx].length - current_sg_offset, sg[sg_idx].… in jumpshot_read_data() 344 memcpy(sg[sg_idx].address + current_sg_offset, in jumpshot_read_data() 346 sg[sg_idx].length - current_sg_offset); in jumpshot_read_data() 347 transferred += sg[sg_idx].length - current_sg_offset; in jumpshot_read_data() 348 current_sg_offset = 0; in jumpshot_read_data() 353 memcpy(sg[sg_idx].address + current_sg_offset, in jumpshot_read_data() 356 current_sg_offset += len - transferred; in jumpshot_read_data() 386 int sg_idx = 0, current_sg_offset = 0; in jumpshot_write_data() local [all …]
|
D | datafab.c | 186 int sg_idx = 0, current_sg_offset = 0; in datafab_read_data() local 266 if (len - transferred >= sg[sg_idx].length - current_sg_offset) { in datafab_read_data() 267 …data: adding %d bytes to %d byte sg buffer\n", sg[sg_idx].length - current_sg_offset, sg[sg_idx].… in datafab_read_data() 268 memcpy(sg[sg_idx].address + current_sg_offset, in datafab_read_data() 270 sg[sg_idx].length - current_sg_offset); in datafab_read_data() 271 transferred += sg[sg_idx].length - current_sg_offset; in datafab_read_data() 272 current_sg_offset = 0; in datafab_read_data() 277 memcpy(sg[sg_idx].address + current_sg_offset, in datafab_read_data() 280 current_sg_offset += len - transferred; in datafab_read_data() 311 int sg_idx = 0, current_sg_offset = 0; in datafab_write_data() local [all …]
|