Lines Matching refs:cmd_count
294 if (sp->cmd_count < 6) {
307 pkt->pkt_resid = sp->cmd_count - 6;
318 if (sp->cmd_count < 22) {
356 pkt->pkt_resid = sp->cmd_count - 22;
374 if (sp->cmd_count < sizeof (inq)) {
417 pkt->pkt_resid = sp->cmd_count - sizeof (inq);
534 if (sp->cmd_count < 9) {
559 pkt->pkt_resid = sp->cmd_count - 9;
642 "pc=%d n=%d\n", emul64_name, page_control, sp->cmd_count);
645 if (sp->cmd_count < (sizeof (header) + sizeof (page4))) {
689 pkt->pkt_resid = sp->cmd_count - sizeof (page4) - sizeof (header);
710 "pc=%d n=%d\n", emul64_name, page_control, sp->cmd_count);
713 if (sp->cmd_count < (sizeof (header) + sizeof (page1))) {
742 pkt->pkt_resid = sp->cmd_count - sizeof (page1) - sizeof (header);
763 "pc=%d n=%d\n", emul64_name, page_control, sp->cmd_count);
766 if (sp->cmd_count < (sizeof (header) + sizeof (page2))) {
795 pkt->pkt_resid = sp->cmd_count - sizeof (page2) - sizeof (header);
817 "pc=%d n=%d\n", emul64_name, page_control, sp->cmd_count);
820 if (sp->cmd_count < (sizeof (header) + sizeof (page3))) {
856 pkt->pkt_resid = sp->cmd_count - sizeof (page3) - sizeof (header);
877 "pc=%d n=%d\n", emul64_name, page_control, sp->cmd_count);
880 if (sp->cmd_count < (sizeof (header) + sizeof (page8))) {
909 pkt->pkt_resid = sp->cmd_count - sizeof (page8) - sizeof (header);
941 pkt->pkt_resid = sp->cmd_count - sizeof (struct scsi_capacity);
968 pkt->pkt_resid = sp->cmd_count - sizeof (struct scsi_capacity_16);