Lines Matching refs:i
653 int i = 0, k = 0; in sleep_thread() local
660 if (++i == 20000) { in sleep_thread()
662 i = 0; in sleep_thread()
1680 int i; in check_command() local
1778 for (i = 1; i < cmnd_size; ++i) { in check_command()
1779 if (common->cmnd[i] && !(mask & (1 << i))) { in check_command()
1795 int i; in do_scsi_command() local
1883 i = common->cmnd[4]; in do_scsi_command()
1884 common->data_size_from_cmnd = (i == 0 ? 256 : i) << 9; in do_scsi_command()
2001 i = common->cmnd[4]; in do_scsi_command()
2002 common->data_size_from_cmnd = (i == 0 ? 256 : i) << 9; in do_scsi_command()
2214 int i, rc = 0; in do_set_interface() local
2224 for (i = 0; i < FSG_NUM_BUFFERS; ++i) { in do_set_interface()
2225 struct fsg_buffhd *bh = &common->buffhds[i]; in do_set_interface()
2281 for (i = 0; i < FSG_NUM_BUFFERS; ++i) { in do_set_interface()
2282 struct fsg_buffhd *bh = &common->buffhds[i]; in do_set_interface()
2324 int i; in handle_exception() local
2332 for (i = 0; i < FSG_NUM_BUFFERS; ++i) { in handle_exception()
2333 bh = &common->buffhds[i]; in handle_exception()
2344 for (i = 0; i < FSG_NUM_BUFFERS; ++i) { in handle_exception()
2345 bh = &common->buffhds[i]; in handle_exception()
2364 for (i = 0; i < FSG_NUM_BUFFERS; ++i) { in handle_exception()
2365 bh = &common->buffhds[i]; in handle_exception()
2376 for (i = 0; i < common->nluns; ++i) { in handle_exception()
2377 curlun = &common->luns[i]; in handle_exception()
2482 int nluns, i, rc; in fsg_common_init() local
2528 for (i = 0; i < nluns; i++) { in fsg_common_init()
2529 common->luns[i].removable = 1; in fsg_common_init()
2531 rc = fsg_lun_open(&common->luns[i], ums[i].num_sectors, ""); in fsg_common_init()
2540 i = FSG_NUM_BUFFERS; in fsg_common_init()
2553 } while (--i); in fsg_common_init()
2584 common->nluns = i + 1; in fsg_common_init()
2605 unsigned i = common->nluns; in fsg_common_release() local
2608 for (; i; --i, ++lun) in fsg_common_release()
2616 unsigned i = FSG_NUM_BUFFERS; in fsg_common_release() local
2619 } while (++bh, --i); in fsg_common_release()
2697 int i; in fsg_bind() local
2702 i = usb_interface_id(c, f); in fsg_bind()
2703 if (i < 0) in fsg_bind()
2704 return i; in fsg_bind()
2705 fsg_intf_desc.bInterfaceNumber = i; in fsg_bind()
2706 fsg->interface_number = i; in fsg_bind()