Lines Matching defs:ioc
165 static int ciss_user_command(struct ciss_softc *sc, IOCTL_Command_struct *ioc);
2622 ciss_user_command(struct ciss_softc *sc, IOCTL_Command_struct *ioc)
2644 cr->cr_length = ioc->buf_size;
2645 if (ioc->buf_size > 0) {
2646 if ((cr->cr_data = malloc(ioc->buf_size, CISS_MALLOC_CLASS, M_NOWAIT)) == NULL) {
2650 if ((error = copyin(ioc->buf, cr->cr_data, ioc->buf_size))) {
2651 debug(0, "copyin: bad data buffer %p/%d", ioc->buf, ioc->buf_size);
2659 bcopy(&ioc->LUN_info, &cc->header.address, sizeof(cc->header.address));
2660 bcopy(&ioc->Request, &cc->cdb, sizeof(cc->cdb));
2683 bcopy(ce, &ioc->error_info, sizeof(*ce));
2685 if ((ioc->buf_size > 0) &&
2686 (error = copyout(cr->cr_data, ioc->buf, ioc->buf_size))) {
2687 debug(0, "copyout: bad data buffer %p/%d", ioc->buf, ioc->buf_size);
4592 IOCTL_Command_struct *ioc = (IOCTL_Command_struct *)addr;
4715 ioc = &ioc_swab;
4720 error = ciss_user_command(sc, ioc);