Home
last modified time | relevance | path

Searched refs:cmdp (Results 1 – 9 of 9) sorted by relevance

/linux/drivers/scsi/csiostor/
H A Dcsio_mb.c80 struct fw_hello_cmd *cmdp = (struct fw_hello_cmd *)(mbp->mb); in csio_mb_hello() local
82 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); in csio_mb_hello()
84 cmdp->op_to_write = htonl(FW_CMD_OP_V(FW_HELLO_CMD) | in csio_mb_hello()
86 cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); in csio_mb_hello()
87 cmdp->err_to_clearinit = htonl( in csio_mb_hello()
143 struct fw_bye_cmd *cmdp = (struct fw_bye_cmd *)(mbp->mb); in csio_mb_bye() local
145 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); in csio_mb_bye()
147 cmdp->op_to_write = htonl(FW_CMD_OP_V(FW_BYE_CMD) | in csio_mb_bye()
149 cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); in csio_mb_bye()
166 struct fw_reset_cmd *cmdp = (struct fw_reset_cmd *)(mbp->mb); in csio_mb_reset() local
[all …]
/linux/tools/testing/selftests/powerpc/nx-gzip/
H A Dgzfht_test.c81 struct nx_gzip_crb_cpb_t *cmdp, void *handle) in compress_fht_sample() argument
85 assert(!!cmdp); in compress_fht_sample()
87 put32(cmdp->crb, gzip_fc, 0); /* clear */ in compress_fht_sample()
90 putnn(cmdp->crb, gzip_fc, fc); in compress_fht_sample()
91 putnn(cmdp->cpb, in_histlen, 0); /* resuming with no history */ in compress_fht_sample()
92 memset((void *) &cmdp->crb.csb, 0, sizeof(cmdp->crb.csb)); in compress_fht_sample()
98 put32(cmdp->cpb, out_spbc_comp, 0); in compress_fht_sample()
100 put32(cmdp->cpb, out_spbc_comp_with_count, 0); in compress_fht_sample()
103 put64(cmdp->crb, csb_address, 0); in compress_fht_sample()
104 put64(cmdp->crb, csb_address, in compress_fht_sample()
[all …]
H A Dgunz_test.c246 struct nx_gzip_crb_cpb_t *cmdp, void *handle) in nx_submit_job() argument
250 memset((void *)&cmdp->crb.csb, 0, sizeof(cmdp->crb.csb)); in nx_submit_job()
252 cmdp->crb.source_dde = *src; in nx_submit_job()
253 cmdp->crb.target_dde = *dst; in nx_submit_job()
256 csbaddr = ((uint64_t) &cmdp->crb.csb) & csb_address_mask; in nx_submit_job()
257 put64(cmdp->crb, csb_address, csbaddr); in nx_submit_job()
260 cmdp->cpb.out_spbc_comp_wrap = 0; in nx_submit_job()
261 cmdp->cpb.out_spbc_comp_with_count = 0; in nx_submit_job()
262 cmdp->cpb.out_spbc_decomp = 0; in nx_submit_job()
265 put32(cmdp->cpb, out_crc, INIT_CRC); in nx_submit_job()
[all …]
H A Dgzip_vas.c135 static int nx_wait_for_csb(struct nx_gzip_crb_cpb_t *cmdp) in nx_wait_for_csb() argument
152 while (getnn(cmdp->crb.csb, csb_v) == 0) { in nx_wait_for_csb()
184 if (getnn(cmdp->crb.csb, csb_v) == 0) { in nx_wait_for_csb()
195 static int nxu_run_job(struct nx_gzip_crb_cpb_t *cmdp, void *handle) in nxu_run_job() argument
205 vas_copy(&cmdp->crb, 0); in nxu_run_job()
214 ret = nx_wait_for_csb(cmdp); in nxu_run_job()
262 int nxu_submit_job(struct nx_gzip_crb_cpb_t *cmdp, void *handle) in nxu_submit_job() argument
266 cc = nxu_run_job(cmdp, handle); in nxu_submit_job()
269 cc = getnn(cmdp->crb.csb, csb_cc); /* CC Table 6-8 */ in nxu_submit_job()
/linux/include/scsi/
H A Dsg.h50 unsigned char __user *cmdp; /* [i], [*i] points to command to perform */ member
79 compat_uptr_t cmdp; /* [i], [*i] points to command to perform */ member
/linux/drivers/scsi/
H A Dscsi_ioctl.c355 if (copy_from_user(scmd->cmnd, hdr->cmdp, hdr->cmd_len)) in scsi_fill_sghdr_rq()
629 .cmdp = (uintptr_t)hdr->cmdp, in put_sg_io_hdr()
677 .cmdp = compat_ptr(hdr32.cmdp), in get_sg_io_hdr()
817 hdr.cmdp = ((struct cdrom_generic_command __user *) arg)->cmd; in scsi_cdrom_send_packet()
H A Datp870u.c123 unsigned char i, j, c, target_id, lun,cmdp; in atp870u_intr_handle() local
145 cmdp = atp_readb_io(dev, c, 0x10); in atp870u_intr_handle()
288 if (cmdp == 0x44 || i == 0x80) in atp870u_intr_handle()
294 if (cmdp == 0x41) { in atp870u_intr_handle()
H A Dpmcraid.c4561 struct pmcraid_cmd *cmdp = pinstance->cmd_list[i]; in pmcraid_init_buffers() local
4562 pmcraid_init_cmdblk(cmdp, i); in pmcraid_init_buffers()
4563 cmdp->drv_inst = pinstance; in pmcraid_init_buffers()
4564 list_add_tail(&cmdp->free_list, &pinstance->free_cmd_pool); in pmcraid_init_buffers()
H A Dsg.c761 if ((!hp->cmdp) || (hp->cmd_len < 6) || (hp->cmd_len > sizeof (cmnd))) { in sg_new_write()
765 if (copy_from_user(cmnd, hp->cmdp, hp->cmd_len)) { in sg_new_write()