Searched refs:sg_idx (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 341 while (sg_idx < use_sg && transferred < len) { in jumpshot_read_data() 342 if (len - transferred >= sg[sg_idx].length - current_sg_offset) { in jumpshot_read_data() 343 …ad_data: adding %d bytes to %d byte sg buffer\n", sg[sg_idx].length - current_sg_offset, sg[sg_id… 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() 350 ++sg_idx; in jumpshot_read_data() 352 …umpshot_read_data: adding %d bytes to %d byte sg buffer\n", len - transferred, sg[sg_idx].length); in jumpshot_read_data() 353 memcpy(sg[sg_idx].address + current_sg_offset, in jumpshot_read_data() [all …]
|
D | datafab.c | 186 int sg_idx = 0, current_sg_offset = 0; in datafab_read_data() local 265 while (sg_idx < use_sg && transferred < len) { in datafab_read_data() 266 if (len - transferred >= sg[sg_idx].length - current_sg_offset) { in datafab_read_data() 267 …ad_data: adding %d bytes to %d byte sg buffer\n", sg[sg_idx].length - current_sg_offset, sg[sg_id… 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() 274 ++sg_idx; in datafab_read_data() 276 …datafab_read_data: adding %d bytes to %d byte sg buffer\n", len - transferred, sg[sg_idx].length); in datafab_read_data() 277 memcpy(sg[sg_idx].address + current_sg_offset, in datafab_read_data() [all …]
|