Lines Matching defs:ioc
169 static int ciss_user_command(struct ciss_softc *sc, IOCTL_Command_struct *ioc);
2680 ciss_user_command(struct ciss_softc *sc, IOCTL_Command_struct *ioc)
2702 cr->cr_length = ioc->buf_size;
2703 if (ioc->buf_size > 0) {
2704 if ((cr->cr_data = malloc(ioc->buf_size, CISS_MALLOC_CLASS, M_NOWAIT)) == NULL) {
2708 if ((error = copyin(ioc->buf, cr->cr_data, ioc->buf_size))) {
2709 debug(0, "copyin: bad data buffer %p/%d", ioc->buf, ioc->buf_size);
2717 bcopy(&ioc->LUN_info, &cc->header.address, sizeof(cc->header.address));
2718 bcopy(&ioc->Request, &cc->cdb, sizeof(cc->cdb));
2741 bcopy(ce, &ioc->error_info, sizeof(*ce));
2743 if ((ioc->buf_size > 0) &&
2744 (error = copyout(cr->cr_data, ioc->buf, ioc->buf_size))) {
2745 debug(0, "copyout: bad data buffer %p/%d", ioc->buf, ioc->buf_size);
4620 IOCTL_Command_struct *ioc = (IOCTL_Command_struct *)addr;
4743 ioc = &ioc_swab;
4748 error = ciss_user_command(sc, ioc);