cmdp 221 block/scsi_ioctl.c if (copy_from_user(req->cmd, hdr->cmdp, hdr->cmd_len)) cmdp 632 block/scsi_ioctl.c hdr.cmdp = ((struct cdrom_generic_command __user*) arg)->cmd; cmdp 122 drivers/scsi/atp870u.c unsigned char i, j, c, target_id, lun,cmdp; cmdp 144 drivers/scsi/atp870u.c cmdp = atp_readb_io(dev, c, 0x10); cmdp 277 drivers/scsi/atp870u.c if (cmdp == 0x44 || i == 0x80) cmdp 283 drivers/scsi/atp870u.c if (cmdp == 0x41) { cmdp 80 drivers/scsi/csiostor/csio_mb.c struct fw_hello_cmd *cmdp = (struct fw_hello_cmd *)(mbp->mb); cmdp 82 drivers/scsi/csiostor/csio_mb.c CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); cmdp 84 drivers/scsi/csiostor/csio_mb.c cmdp->op_to_write = htonl(FW_CMD_OP_V(FW_HELLO_CMD) | cmdp 86 drivers/scsi/csiostor/csio_mb.c cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); cmdp 87 drivers/scsi/csiostor/csio_mb.c cmdp->err_to_clearinit = htonl( cmdp 143 drivers/scsi/csiostor/csio_mb.c struct fw_bye_cmd *cmdp = (struct fw_bye_cmd *)(mbp->mb); cmdp 145 drivers/scsi/csiostor/csio_mb.c CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); cmdp 147 drivers/scsi/csiostor/csio_mb.c cmdp->op_to_write = htonl(FW_CMD_OP_V(FW_BYE_CMD) | cmdp 149 drivers/scsi/csiostor/csio_mb.c cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); cmdp 166 drivers/scsi/csiostor/csio_mb.c struct fw_reset_cmd *cmdp = (struct fw_reset_cmd *)(mbp->mb); cmdp 168 drivers/scsi/csiostor/csio_mb.c CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); cmdp 170 drivers/scsi/csiostor/csio_mb.c cmdp->op_to_write = htonl(FW_CMD_OP_V(FW_RESET_CMD) | cmdp 172 drivers/scsi/csiostor/csio_mb.c cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); cmdp 173 drivers/scsi/csiostor/csio_mb.c cmdp->val = htonl(reset); cmdp 174 drivers/scsi/csiostor/csio_mb.c cmdp->halt_pkd = htonl(halt); cmdp 200 drivers/scsi/csiostor/csio_mb.c struct fw_params_cmd *cmdp = (struct fw_params_cmd *)(mbp->mb); cmdp 201 drivers/scsi/csiostor/csio_mb.c __be32 *p = &cmdp->param[0].mnem; cmdp 203 drivers/scsi/csiostor/csio_mb.c CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); cmdp 205 drivers/scsi/csiostor/csio_mb.c cmdp->op_to_vfn = htonl(FW_CMD_OP_V(FW_PARAMS_CMD) | cmdp 210 drivers/scsi/csiostor/csio_mb.c cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); cmdp 304 drivers/scsi/csiostor/csio_mb.c struct fw_caps_config_cmd *cmdp = cmdp 307 drivers/scsi/csiostor/csio_mb.c CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, wr ? 0 : 1); cmdp 309 drivers/scsi/csiostor/csio_mb.c cmdp->op_to_write = htonl(FW_CMD_OP_V(FW_CAPS_CONFIG_CMD) | cmdp 312 drivers/scsi/csiostor/csio_mb.c cmdp->cfvalid_to_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); cmdp 319 drivers/scsi/csiostor/csio_mb.c cmdp->fcoecaps = 0; cmdp 322 drivers/scsi/csiostor/csio_mb.c cmdp->fcoecaps |= htons(FW_CAPS_CONFIG_FCOE_CTRL_OFLD); cmdp 324 drivers/scsi/csiostor/csio_mb.c cmdp->fcoecaps |= htons(FW_CAPS_CONFIG_FCOE_INITIATOR); cmdp 326 drivers/scsi/csiostor/csio_mb.c cmdp->fcoecaps |= htons(FW_CAPS_CONFIG_FCOE_TARGET); cmdp 346 drivers/scsi/csiostor/csio_mb.c struct fw_port_cmd *cmdp = (struct fw_port_cmd *)(mbp->mb); cmdp 348 drivers/scsi/csiostor/csio_mb.c CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); cmdp 350 drivers/scsi/csiostor/csio_mb.c cmdp->op_to_portid = htonl(FW_CMD_OP_V(FW_PORT_CMD) | cmdp 355 drivers/scsi/csiostor/csio_mb.c cmdp->action_to_len16 = htonl( cmdp 359 drivers/scsi/csiostor/csio_mb.c FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); cmdp 364 drivers/scsi/csiostor/csio_mb.c cmdp->action_to_len16 = htonl( cmdp 368 drivers/scsi/csiostor/csio_mb.c FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); cmdp 371 drivers/scsi/csiostor/csio_mb.c cmdp->u.l1cfg.rcap = cpu_to_be32(fwcaps32_to_caps16(fc)); cmdp 373 drivers/scsi/csiostor/csio_mb.c cmdp->u.l1cfg32.rcap32 = cpu_to_be32(fc); cmdp 416 drivers/scsi/csiostor/csio_mb.c struct fw_initialize_cmd *cmdp = (struct fw_initialize_cmd *)(mbp->mb); cmdp 418 drivers/scsi/csiostor/csio_mb.c CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); cmdp 420 drivers/scsi/csiostor/csio_mb.c cmdp->op_to_write = htonl(FW_CMD_OP_V(FW_INITIALIZE_CMD) | cmdp 422 drivers/scsi/csiostor/csio_mb.c cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); cmdp 444 drivers/scsi/csiostor/csio_mb.c struct fw_iq_cmd *cmdp = (struct fw_iq_cmd *)(mbp->mb); cmdp 446 drivers/scsi/csiostor/csio_mb.c CSIO_INIT_MBP(mbp, cmdp, mb_tmo, priv, cbfn, 1); cmdp 448 drivers/scsi/csiostor/csio_mb.c cmdp->op_to_vfn = htonl(FW_CMD_OP_V(FW_IQ_CMD) | cmdp 453 drivers/scsi/csiostor/csio_mb.c cmdp->alloc_to_len16 = htonl(FW_IQ_CMD_ALLOC_F | cmdp 454 drivers/scsi/csiostor/csio_mb.c FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); cmdp 456 drivers/scsi/csiostor/csio_mb.c cmdp->type_to_iqandstindex = htonl( cmdp 461 drivers/scsi/csiostor/csio_mb.c cmdp->fl0size = htons(iq_params->fl0size); cmdp 462 drivers/scsi/csiostor/csio_mb.c cmdp->fl0size = htons(iq_params->fl1size); cmdp 490 drivers/scsi/csiostor/csio_mb.c struct fw_iq_cmd *cmdp = (struct fw_iq_cmd *)(mbp->mb); cmdp 503 drivers/scsi/csiostor/csio_mb.c CSIO_INIT_MBP(mbp, cmdp, mb_tmo, priv, cbfn, 1); cmdp 505 drivers/scsi/csiostor/csio_mb.c cmdp->op_to_vfn |= htonl(FW_CMD_OP_V(FW_IQ_CMD) | cmdp 509 drivers/scsi/csiostor/csio_mb.c cmdp->alloc_to_len16 |= htonl(iq_start_stop | cmdp 510 drivers/scsi/csiostor/csio_mb.c FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); cmdp 511 drivers/scsi/csiostor/csio_mb.c cmdp->iqid |= htons(iq_params->iqid); cmdp 512 drivers/scsi/csiostor/csio_mb.c cmdp->fl0id |= htons(iq_params->fl0id); cmdp 513 drivers/scsi/csiostor/csio_mb.c cmdp->fl1id |= htons(iq_params->fl1id); cmdp 514 drivers/scsi/csiostor/csio_mb.c cmdp->type_to_iqandstindex |= htonl( cmdp 519 drivers/scsi/csiostor/csio_mb.c cmdp->iqdroprss_to_iqesize |= htons( cmdp 527 drivers/scsi/csiostor/csio_mb.c cmdp->iqsize |= htons(iq_params->iqsize); cmdp 528 drivers/scsi/csiostor/csio_mb.c cmdp->iqaddr |= cpu_to_be64(iq_params->iqaddr); cmdp 531 drivers/scsi/csiostor/csio_mb.c cmdp->iqns_to_fl0congen |= htonl( cmdp 539 drivers/scsi/csiostor/csio_mb.c cmdp->iqns_to_fl0congen |= htonl( cmdp 546 drivers/scsi/csiostor/csio_mb.c cmdp->fl0dcaen_to_fl0cidxfthresh |= htons( cmdp 552 drivers/scsi/csiostor/csio_mb.c cmdp->fl0size |= htons(iq_params->fl0size); cmdp 553 drivers/scsi/csiostor/csio_mb.c cmdp->fl0addr |= cpu_to_be64(iq_params->fl0addr); cmdp 626 drivers/scsi/csiostor/csio_mb.c struct fw_iq_cmd *cmdp = (struct fw_iq_cmd *)(mbp->mb); cmdp 628 drivers/scsi/csiostor/csio_mb.c CSIO_INIT_MBP(mbp, cmdp, mb_tmo, priv, cbfn, 1); cmdp 630 drivers/scsi/csiostor/csio_mb.c cmdp->op_to_vfn = htonl(FW_CMD_OP_V(FW_IQ_CMD) | cmdp 634 drivers/scsi/csiostor/csio_mb.c cmdp->alloc_to_len16 = htonl(FW_IQ_CMD_FREE_F | cmdp 635 drivers/scsi/csiostor/csio_mb.c FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); cmdp 636 drivers/scsi/csiostor/csio_mb.c cmdp->type_to_iqandstindex = htonl(FW_IQ_CMD_TYPE_V(iq_params->type)); cmdp 638 drivers/scsi/csiostor/csio_mb.c cmdp->iqid = htons(iq_params->iqid); cmdp 639 drivers/scsi/csiostor/csio_mb.c cmdp->fl0id = htons(iq_params->fl0id); cmdp 640 drivers/scsi/csiostor/csio_mb.c cmdp->fl1id = htons(iq_params->fl1id); cmdp 662 drivers/scsi/csiostor/csio_mb.c struct fw_eq_ofld_cmd *cmdp = (struct fw_eq_ofld_cmd *)(mbp->mb); cmdp 664 drivers/scsi/csiostor/csio_mb.c CSIO_INIT_MBP(mbp, cmdp, mb_tmo, priv, cbfn, 1); cmdp 665 drivers/scsi/csiostor/csio_mb.c cmdp->op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_OFLD_CMD) | cmdp 669 drivers/scsi/csiostor/csio_mb.c cmdp->alloc_to_len16 = htonl(FW_EQ_OFLD_CMD_ALLOC_F | cmdp 670 drivers/scsi/csiostor/csio_mb.c FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); cmdp 699 drivers/scsi/csiostor/csio_mb.c struct fw_eq_ofld_cmd *cmdp = (struct fw_eq_ofld_cmd *)(mbp->mb); cmdp 711 drivers/scsi/csiostor/csio_mb.c CSIO_INIT_MBP(mbp, cmdp, mb_tmo, priv, cbfn, 1); cmdp 713 drivers/scsi/csiostor/csio_mb.c cmdp->op_to_vfn |= htonl(FW_CMD_OP_V(FW_EQ_OFLD_CMD) | cmdp 717 drivers/scsi/csiostor/csio_mb.c cmdp->alloc_to_len16 |= htonl(eq_start_stop | cmdp 718 drivers/scsi/csiostor/csio_mb.c FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); cmdp 720 drivers/scsi/csiostor/csio_mb.c cmdp->eqid_pkd |= htonl(FW_EQ_OFLD_CMD_EQID_V(eq_ofld_params->eqid)); cmdp 722 drivers/scsi/csiostor/csio_mb.c cmdp->fetchszm_to_iqid |= htonl( cmdp 728 drivers/scsi/csiostor/csio_mb.c cmdp->dcaen_to_eqsize |= htonl( cmdp 737 drivers/scsi/csiostor/csio_mb.c cmdp->eqaddr |= cpu_to_be64(eq_ofld_params->eqaddr); cmdp 812 drivers/scsi/csiostor/csio_mb.c struct fw_eq_ofld_cmd *cmdp = (struct fw_eq_ofld_cmd *)(mbp->mb); cmdp 814 drivers/scsi/csiostor/csio_mb.c CSIO_INIT_MBP(mbp, cmdp, mb_tmo, priv, cbfn, 1); cmdp 816 drivers/scsi/csiostor/csio_mb.c cmdp->op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_OFLD_CMD) | cmdp 820 drivers/scsi/csiostor/csio_mb.c cmdp->alloc_to_len16 = htonl(FW_EQ_OFLD_CMD_FREE_F | cmdp 821 drivers/scsi/csiostor/csio_mb.c FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); cmdp 822 drivers/scsi/csiostor/csio_mb.c cmdp->eqid_pkd = htonl(FW_EQ_OFLD_CMD_EQID_V(eq_ofld_params->eqid)); cmdp 843 drivers/scsi/csiostor/csio_mb.c struct fw_fcoe_link_cmd *cmdp = cmdp 846 drivers/scsi/csiostor/csio_mb.c CSIO_INIT_MBP(mbp, cmdp, mb_tmo, ln, cbfn, 1); cmdp 848 drivers/scsi/csiostor/csio_mb.c cmdp->op_to_portid = htonl(( cmdp 853 drivers/scsi/csiostor/csio_mb.c cmdp->sub_opcode_fcfi = htonl( cmdp 856 drivers/scsi/csiostor/csio_mb.c cmdp->lstatus = link_status; cmdp 857 drivers/scsi/csiostor/csio_mb.c cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); cmdp 877 drivers/scsi/csiostor/csio_mb.c struct fw_fcoe_res_info_cmd *cmdp = cmdp 880 drivers/scsi/csiostor/csio_mb.c CSIO_INIT_MBP(mbp, cmdp, mb_tmo, hw, cbfn, 1); cmdp 882 drivers/scsi/csiostor/csio_mb.c cmdp->op_to_read = htonl((FW_CMD_OP_V(FW_FCOE_RES_INFO_CMD) | cmdp 886 drivers/scsi/csiostor/csio_mb.c cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); cmdp 912 drivers/scsi/csiostor/csio_mb.c struct fw_fcoe_vnp_cmd *cmdp = cmdp 915 drivers/scsi/csiostor/csio_mb.c CSIO_INIT_MBP(mbp, cmdp, mb_tmo, ln, cbfn, 1); cmdp 917 drivers/scsi/csiostor/csio_mb.c cmdp->op_to_fcfi = htonl((FW_CMD_OP_V(FW_FCOE_VNP_CMD) | cmdp 922 drivers/scsi/csiostor/csio_mb.c cmdp->alloc_to_len16 = htonl(FW_FCOE_VNP_CMD_ALLOC | cmdp 923 drivers/scsi/csiostor/csio_mb.c FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); cmdp 925 drivers/scsi/csiostor/csio_mb.c cmdp->gen_wwn_to_vnpi = htonl(FW_FCOE_VNP_CMD_VNPI(vnpi)); cmdp 927 drivers/scsi/csiostor/csio_mb.c cmdp->iqid = htons(iqid); cmdp 930 drivers/scsi/csiostor/csio_mb.c cmdp->gen_wwn_to_vnpi |= htonl(FW_FCOE_VNP_CMD_GEN_WWN); cmdp 933 drivers/scsi/csiostor/csio_mb.c memcpy(cmdp->vnport_wwnn, vnport_wwnn, 8); cmdp 935 drivers/scsi/csiostor/csio_mb.c memcpy(cmdp->vnport_wwpn, vnport_wwpn, 8); cmdp 953 drivers/scsi/csiostor/csio_mb.c struct fw_fcoe_vnp_cmd *cmdp = cmdp 956 drivers/scsi/csiostor/csio_mb.c CSIO_INIT_MBP(mbp, cmdp, mb_tmo, ln, cbfn, 1); cmdp 957 drivers/scsi/csiostor/csio_mb.c cmdp->op_to_fcfi = htonl(FW_CMD_OP_V(FW_FCOE_VNP_CMD) | cmdp 961 drivers/scsi/csiostor/csio_mb.c cmdp->alloc_to_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); cmdp 962 drivers/scsi/csiostor/csio_mb.c cmdp->gen_wwn_to_vnpi = htonl(FW_FCOE_VNP_CMD_VNPI(vnpi)); cmdp 982 drivers/scsi/csiostor/csio_mb.c struct fw_fcoe_vnp_cmd *cmdp = cmdp 985 drivers/scsi/csiostor/csio_mb.c CSIO_INIT_MBP(mbp, cmdp, mb_tmo, ln, cbfn, 1); cmdp 987 drivers/scsi/csiostor/csio_mb.c cmdp->op_to_fcfi = htonl(FW_CMD_OP_V(FW_FCOE_VNP_CMD) | cmdp 991 drivers/scsi/csiostor/csio_mb.c cmdp->alloc_to_len16 = htonl(FW_FCOE_VNP_CMD_FREE | cmdp 992 drivers/scsi/csiostor/csio_mb.c FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); cmdp 993 drivers/scsi/csiostor/csio_mb.c cmdp->gen_wwn_to_vnpi = htonl(FW_FCOE_VNP_CMD_VNPI(vnpi)); cmdp 1013 drivers/scsi/csiostor/csio_mb.c struct fw_fcoe_fcf_cmd *cmdp = cmdp 1016 drivers/scsi/csiostor/csio_mb.c CSIO_INIT_MBP(mbp, cmdp, mb_tmo, ln, cbfn, 1); cmdp 1018 drivers/scsi/csiostor/csio_mb.c cmdp->op_to_fcfi = htonl(FW_CMD_OP_V(FW_FCOE_FCF_CMD) | cmdp 1022 drivers/scsi/csiostor/csio_mb.c cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); cmdp 1033 drivers/scsi/csiostor/csio_mb.c struct fw_fcoe_stats_cmd *cmdp = (struct fw_fcoe_stats_cmd *)(mbp->mb); cmdp 1035 drivers/scsi/csiostor/csio_mb.c CSIO_INIT_MBP(mbp, cmdp, mb_tmo, hw, cbfn, 1); cmdp 1038 drivers/scsi/csiostor/csio_mb.c cmdp->op_to_flowid = htonl(FW_CMD_OP_V(FW_FCOE_STATS_CMD) | cmdp 1040 drivers/scsi/csiostor/csio_mb.c cmdp->free_to_len16 = htonl(FW_CMD_LEN16_V(CSIO_MAX_MB_SIZE/16)); cmdp 1042 drivers/scsi/csiostor/csio_mb.c cmdp->u.ctl.nstats_port = FW_FCOE_STATS_CMD_NSTATS(portparams->nstats) | cmdp 1045 drivers/scsi/csiostor/csio_mb.c cmdp->u.ctl.port_valid_ix = FW_FCOE_STATS_CMD_IX(portparams->idx) | cmdp 1976 drivers/scsi/gdth.c register gdth_cmd_str *cmdp; cmdp 1982 drivers/scsi/gdth.c cmdp = ha->pccb; cmdp 1991 drivers/scsi/gdth.c cmdp->Service = CACHESERVICE; cmdp 1992 drivers/scsi/gdth.c cmdp->RequestBuffer = scp; cmdp 2005 drivers/scsi/gdth.c cmdp->OpCode = cmndinfo->OpCode; /* special cache cmd. */ cmdp 2007 drivers/scsi/gdth.c cmdp->OpCode = GDT_RESERVE_DRV; cmdp 2009 drivers/scsi/gdth.c cmdp->OpCode = GDT_RELEASE_DRV; cmdp 2012 drivers/scsi/gdth.c cmdp->OpCode = GDT_MOUNT; cmdp 2014 drivers/scsi/gdth.c cmdp->OpCode = GDT_UNMOUNT; cmdp 2016 drivers/scsi/gdth.c cmdp->OpCode = GDT_FLUSH; cmdp 2023 drivers/scsi/gdth.c cmdp->OpCode = GDT_WRITE_THR; cmdp 2025 drivers/scsi/gdth.c cmdp->OpCode = GDT_WRITE; cmdp 2028 drivers/scsi/gdth.c cmdp->OpCode = GDT_READ; cmdp 2031 drivers/scsi/gdth.c cmdp->BoardNode = LOCALBOARD; cmdp 2033 drivers/scsi/gdth.c cmdp->u.cache64.DeviceNo = hdrive; cmdp 2034 drivers/scsi/gdth.c cmdp->u.cache64.BlockNo = 1; cmdp 2035 drivers/scsi/gdth.c cmdp->u.cache64.sg_canz = 0; cmdp 2037 drivers/scsi/gdth.c cmdp->u.cache.DeviceNo = hdrive; cmdp 2038 drivers/scsi/gdth.c cmdp->u.cache.BlockNo = 1; cmdp 2039 drivers/scsi/gdth.c cmdp->u.cache.sg_canz = 0; cmdp 2059 drivers/scsi/gdth.c cmdp->u.cache64.BlockNo = blockno; cmdp 2060 drivers/scsi/gdth.c cmdp->u.cache64.BlockCnt = blockcnt; cmdp 2062 drivers/scsi/gdth.c cmdp->u.cache.BlockNo = (u32)blockno; cmdp 2063 drivers/scsi/gdth.c cmdp->u.cache.BlockCnt = blockcnt; cmdp 2074 drivers/scsi/gdth.c cmdp->u.cache64.DestAddr= (u64)-1; cmdp 2075 drivers/scsi/gdth.c cmdp->u.cache64.sg_canz = sgcnt; cmdp 2077 drivers/scsi/gdth.c cmdp->u.cache64.sg_lst[i].sg_ptr = sg_dma_address(sl); cmdp 2078 drivers/scsi/gdth.c cmdp->u.cache64.sg_lst[i].sg_len = sg_dma_len(sl); cmdp 2083 drivers/scsi/gdth.c cmdp->u.cache.DestAddr= 0xffffffff; cmdp 2084 drivers/scsi/gdth.c cmdp->u.cache.sg_canz = sgcnt; cmdp 2086 drivers/scsi/gdth.c cmdp->u.cache.sg_lst[i].sg_ptr = sg_dma_address(sl); cmdp 2087 drivers/scsi/gdth.c cmdp->u.cache.sg_lst[i].sg_len = sg_dma_len(sl); cmdp 2103 drivers/scsi/gdth.c cmdp->u.cache64.DestAddr,cmdp->u.cache64.sg_canz, cmdp 2104 drivers/scsi/gdth.c cmdp->u.cache64.sg_lst[0].sg_ptr, cmdp 2105 drivers/scsi/gdth.c cmdp->u.cache64.sg_lst[0].sg_len)); cmdp 2107 drivers/scsi/gdth.c cmdp->OpCode,cmdp->u.cache64.BlockNo,cmdp->u.cache64.BlockCnt)); cmdp 2109 drivers/scsi/gdth.c (u16)cmdp->u.cache64.sg_canz * sizeof(gdth_sg64_str); cmdp 2112 drivers/scsi/gdth.c cmdp->u.cache.DestAddr,cmdp->u.cache.sg_canz, cmdp 2113 drivers/scsi/gdth.c cmdp->u.cache.sg_lst[0].sg_ptr, cmdp 2114 drivers/scsi/gdth.c cmdp->u.cache.sg_lst[0].sg_len)); cmdp 2116 drivers/scsi/gdth.c cmdp->OpCode,cmdp->u.cache.BlockNo,cmdp->u.cache.BlockCnt)); cmdp 2118 drivers/scsi/gdth.c (u16)cmdp->u.cache.sg_canz * sizeof(gdth_sg_str); cmdp 2139 drivers/scsi/gdth.c register gdth_cmd_str *cmdp; cmdp 2148 drivers/scsi/gdth.c cmdp = ha->pccb; cmdp 2154 drivers/scsi/gdth.c cmdp->Service = SCSIRAWSERVICE; cmdp 2155 drivers/scsi/gdth.c cmdp->RequestBuffer = scp; cmdp 2168 drivers/scsi/gdth.c cmdp->OpCode = cmndinfo->OpCode; /* special raw cmd. */ cmdp 2169 drivers/scsi/gdth.c cmdp->BoardNode = LOCALBOARD; cmdp 2171 drivers/scsi/gdth.c cmdp->u.raw64.direction = (cmndinfo->phase >> 8); cmdp 2173 drivers/scsi/gdth.c cmdp->OpCode, cmdp->u.raw64.direction)); cmdp 2177 drivers/scsi/gdth.c cmdp->u.raw.direction = (cmndinfo->phase >> 8); cmdp 2179 drivers/scsi/gdth.c cmdp->OpCode, cmdp->u.raw.direction)); cmdp 2189 drivers/scsi/gdth.c cmdp->OpCode = GDT_WRITE; /* always */ cmdp 2190 drivers/scsi/gdth.c cmdp->BoardNode = LOCALBOARD; cmdp 2192 drivers/scsi/gdth.c cmdp->u.raw64.reserved = 0; cmdp 2193 drivers/scsi/gdth.c cmdp->u.raw64.mdisc_time = 0; cmdp 2194 drivers/scsi/gdth.c cmdp->u.raw64.mcon_time = 0; cmdp 2195 drivers/scsi/gdth.c cmdp->u.raw64.clen = scp->cmd_len; cmdp 2196 drivers/scsi/gdth.c cmdp->u.raw64.target = t; cmdp 2197 drivers/scsi/gdth.c cmdp->u.raw64.lun = l; cmdp 2198 drivers/scsi/gdth.c cmdp->u.raw64.bus = b; cmdp 2199 drivers/scsi/gdth.c cmdp->u.raw64.priority = 0; cmdp 2200 drivers/scsi/gdth.c cmdp->u.raw64.sdlen = scsi_bufflen(scp); cmdp 2201 drivers/scsi/gdth.c cmdp->u.raw64.sense_len = 16; cmdp 2202 drivers/scsi/gdth.c cmdp->u.raw64.sense_data = sense_paddr; cmdp 2203 drivers/scsi/gdth.c cmdp->u.raw64.direction = cmdp 2205 drivers/scsi/gdth.c memcpy(cmdp->u.raw64.cmd,scp->cmnd,16); cmdp 2206 drivers/scsi/gdth.c cmdp->u.raw64.sg_ranz = 0; cmdp 2208 drivers/scsi/gdth.c cmdp->u.raw.reserved = 0; cmdp 2209 drivers/scsi/gdth.c cmdp->u.raw.mdisc_time = 0; cmdp 2210 drivers/scsi/gdth.c cmdp->u.raw.mcon_time = 0; cmdp 2211 drivers/scsi/gdth.c cmdp->u.raw.clen = scp->cmd_len; cmdp 2212 drivers/scsi/gdth.c cmdp->u.raw.target = t; cmdp 2213 drivers/scsi/gdth.c cmdp->u.raw.lun = l; cmdp 2214 drivers/scsi/gdth.c cmdp->u.raw.bus = b; cmdp 2215 drivers/scsi/gdth.c cmdp->u.raw.priority = 0; cmdp 2216 drivers/scsi/gdth.c cmdp->u.raw.link_p = 0; cmdp 2217 drivers/scsi/gdth.c cmdp->u.raw.sdlen = scsi_bufflen(scp); cmdp 2218 drivers/scsi/gdth.c cmdp->u.raw.sense_len = 16; cmdp 2219 drivers/scsi/gdth.c cmdp->u.raw.sense_data = sense_paddr; cmdp 2220 drivers/scsi/gdth.c cmdp->u.raw.direction = cmdp 2222 drivers/scsi/gdth.c memcpy(cmdp->u.raw.cmd,scp->cmnd,12); cmdp 2223 drivers/scsi/gdth.c cmdp->u.raw.sg_ranz = 0; cmdp 2233 drivers/scsi/gdth.c cmdp->u.raw64.sdata = (u64)-1; cmdp 2234 drivers/scsi/gdth.c cmdp->u.raw64.sg_ranz = sgcnt; cmdp 2236 drivers/scsi/gdth.c cmdp->u.raw64.sg_lst[i].sg_ptr = sg_dma_address(sl); cmdp 2237 drivers/scsi/gdth.c cmdp->u.raw64.sg_lst[i].sg_len = sg_dma_len(sl); cmdp 2242 drivers/scsi/gdth.c cmdp->u.raw.sdata = 0xffffffff; cmdp 2243 drivers/scsi/gdth.c cmdp->u.raw.sg_ranz = sgcnt; cmdp 2245 drivers/scsi/gdth.c cmdp->u.raw.sg_lst[i].sg_ptr = sg_dma_address(sl); cmdp 2246 drivers/scsi/gdth.c cmdp->u.raw.sg_lst[i].sg_len = sg_dma_len(sl); cmdp 2260 drivers/scsi/gdth.c cmdp->u.raw64.sdata,cmdp->u.raw64.sg_ranz, cmdp 2261 drivers/scsi/gdth.c cmdp->u.raw64.sg_lst[0].sg_ptr, cmdp 2262 drivers/scsi/gdth.c cmdp->u.raw64.sg_lst[0].sg_len)); cmdp 2265 drivers/scsi/gdth.c (u16)cmdp->u.raw64.sg_ranz * sizeof(gdth_sg64_str); cmdp 2268 drivers/scsi/gdth.c cmdp->u.raw.sdata,cmdp->u.raw.sg_ranz, cmdp 2269 drivers/scsi/gdth.c cmdp->u.raw.sg_lst[0].sg_ptr, cmdp 2270 drivers/scsi/gdth.c cmdp->u.raw.sg_lst[0].sg_len)); cmdp 2273 drivers/scsi/gdth.c (u16)cmdp->u.raw.sg_ranz * sizeof(gdth_sg_str); cmdp 2296 drivers/scsi/gdth.c register gdth_cmd_str *cmdp; cmdp 2300 drivers/scsi/gdth.c cmdp= ha->pccb; cmdp 2303 drivers/scsi/gdth.c *cmdp = *cmndinfo->internal_cmd_str; cmdp 2304 drivers/scsi/gdth.c cmdp->RequestBuffer = scp; cmdp 2317 drivers/scsi/gdth.c if (cmdp->OpCode == GDT_IOCTL) { cmdp 2321 drivers/scsi/gdth.c } else if (cmdp->Service == CACHESERVICE) { cmdp 2322 drivers/scsi/gdth.c TRACE2(("cache command %d\n",cmdp->OpCode)); cmdp 2329 drivers/scsi/gdth.c } else if (cmdp->Service == SCSIRAWSERVICE) { cmdp 2330 drivers/scsi/gdth.c TRACE2(("raw command %d\n",cmdp->OpCode)); cmdp 2646 drivers/scsi/gdth.c gdth_cmd_str *cmdp; cmdp 2650 drivers/scsi/gdth.c cmdp = ha->pccb; cmdp 2669 drivers/scsi/gdth.c cmdp->Service = SCREENSERVICE; cmdp 2670 drivers/scsi/gdth.c cmdp->RequestBuffer = SCREEN_CMND; cmdp 2673 drivers/scsi/gdth.c cmdp->OpCode = GDT_READ; cmdp 2674 drivers/scsi/gdth.c cmdp->BoardNode = LOCALBOARD; cmdp 2675 drivers/scsi/gdth.c cmdp->u.screen.reserved = 0; cmdp 2676 drivers/scsi/gdth.c cmdp->u.screen.su.msg.msg_handle= msg->msg_handle; cmdp 2677 drivers/scsi/gdth.c cmdp->u.screen.su.msg.msg_addr = ha->msg_phys; cmdp 2703 drivers/scsi/gdth.c cmdp->Service = SCREENSERVICE; cmdp 2704 drivers/scsi/gdth.c cmdp->RequestBuffer = SCREEN_CMND; cmdp 2707 drivers/scsi/gdth.c cmdp->OpCode = GDT_WRITE; cmdp 2708 drivers/scsi/gdth.c cmdp->BoardNode = LOCALBOARD; cmdp 2709 drivers/scsi/gdth.c cmdp->u.screen.reserved = 0; cmdp 2710 drivers/scsi/gdth.c cmdp->u.screen.su.msg.msg_handle= msg->msg_handle; cmdp 2711 drivers/scsi/gdth.c cmdp->u.screen.su.msg.msg_addr = ha->msg_phys; cmdp 3009 drivers/scsi/gdth.c gdth_cmd_str *cmdp; cmdp 3012 drivers/scsi/gdth.c cmdp= ha->pccb; cmdp 3020 drivers/scsi/gdth.c cmdp->Service = SCREENSERVICE; cmdp 3021 drivers/scsi/gdth.c cmdp->RequestBuffer = SCREEN_CMND; cmdp 3024 drivers/scsi/gdth.c cmdp->OpCode = GDT_READ; cmdp 3025 drivers/scsi/gdth.c cmdp->BoardNode = LOCALBOARD; cmdp 3026 drivers/scsi/gdth.c cmdp->u.screen.reserved = 0; cmdp 3027 drivers/scsi/gdth.c cmdp->u.screen.su.msg.msg_handle= MSG_INV_HANDLE; cmdp 3028 drivers/scsi/gdth.c cmdp->u.screen.su.msg.msg_addr = ha->msg_phys; cmdp 5018 drivers/scsi/pmcraid.c struct pmcraid_cmd *cmdp = pinstance->cmd_list[i]; cmdp 5019 drivers/scsi/pmcraid.c pmcraid_init_cmdblk(cmdp, i); cmdp 5020 drivers/scsi/pmcraid.c cmdp->drv_inst = pinstance; cmdp 5021 drivers/scsi/pmcraid.c list_add_tail(&cmdp->free_list, &pinstance->free_cmd_pool); cmdp 764 drivers/scsi/sg.c if ((!hp->cmdp) || (hp->cmd_len < 6) || (hp->cmd_len > sizeof (cmnd))) { cmdp 768 drivers/scsi/sg.c if (!access_ok(hp->cmdp, hp->cmd_len)) { cmdp 772 drivers/scsi/sg.c if (__copy_from_user(cmnd, hp->cmdp, hp->cmd_len)) { cmdp 103 fs/compat_ioctl.c compat_uptr_t cmdp; /* [i], [*i] points to command to perform */ cmdp 194 fs/compat_ioctl.c unsigned char __user *cmdp; cmdp 197 fs/compat_ioctl.c if (get_user(data, &sgio32->cmdp)) cmdp 199 fs/compat_ioctl.c cmdp = compat_ptr(data); cmdp 205 fs/compat_ioctl.c if (put_user(cmdp, &sgio->cmdp) || cmdp 54 include/scsi/sg.h unsigned char __user *cmdp; /* [i], [*i] points to command to perform */