Lines Matching refs:cmnd_size
374 int cmnd_size;
2113 static int check_command(struct fsg_dev *fsg, int cmnd_size,
2123 /* Adjust the expected cmnd_size for protocol encapsulation padding.
2131 if (fsg->cmnd_size == 12)
2132 cmnd_size = 12;
2136 cmnd_size = 12;
2143 name, cmnd_size, dirletter[(int) data_dir],
2144 fsg->data_size_from_cmnd, fsg->cmnd_size, hdlen);
2173 if (cmnd_size != fsg->cmnd_size) {
2175 if (cmnd_size <= fsg->cmnd_size) {
2178 cmnd_size, fsg->cmnd_size);
2179 cmnd_size = fsg->cmnd_size;
2228 for (i = 1; i < cmnd_size; ++i) {
2463 if ((reply = check_command(fsg, fsg->cmnd_size,
2539 fsg->cmnd_size = cbw->Length;
2540 memcpy(fsg->cmnd, cbw->CDB, fsg->cmnd_size);
2607 fsg->cmnd_size = fsg->cbbuf_cmnd_size;
2608 memcpy(fsg->cmnd, fsg->cbbuf_cmnd, fsg->cmnd_size);