mrsas_ioctl.c (282531) | mrsas_ioctl.c (282533) |
---|---|
1/* 2 * Copyright (c) 2015, AVAGO Tech. All rights reserved. Author: Marian Choy 3 * Copyright (c) 2014, LSI Corp. All rights reserved. Author: Marian Choy 4 * Support: freebsdraid@avagotech.com 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: --- 24 unchanged lines hidden (view full) --- 33 * official policies,either expressed or implied, of the FreeBSD Project. 34 * 35 * Send feedback to: <megaraidfbsd@avagotech.com> Mail to: AVAGO TECHNOLOGIES, 1621 36 * Barber Lane, Milpitas, CA 95035 ATTN: MegaRaid FreeBSD 37 * 38 */ 39 40#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 2015, AVAGO Tech. All rights reserved. Author: Marian Choy 3 * Copyright (c) 2014, LSI Corp. All rights reserved. Author: Marian Choy 4 * Support: freebsdraid@avagotech.com 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: --- 24 unchanged lines hidden (view full) --- 33 * official policies,either expressed or implied, of the FreeBSD Project. 34 * 35 * Send feedback to: <megaraidfbsd@avagotech.com> Mail to: AVAGO TECHNOLOGIES, 1621 36 * Barber Lane, Milpitas, CA 95035 ATTN: MegaRaid FreeBSD 37 * 38 */ 39 40#include <sys/cdefs.h> |
41__FBSDID("$FreeBSD: head/sys/dev/mrsas/mrsas_ioctl.c 282531 2015-05-06 10:45:13Z kadesai $"); | 41__FBSDID("$FreeBSD: head/sys/dev/mrsas/mrsas_ioctl.c 282533 2015-05-06 10:46:28Z kadesai $"); |
42 43#include <dev/mrsas/mrsas.h> 44#include <dev/mrsas/mrsas_ioctl.h> 45 46/* 47 * Function prototypes 48 */ 49int mrsas_alloc_mfi_cmds(struct mrsas_softc *sc); --- 250 unchanged lines hidden (view full) --- 300 if (user_ioc->sense_len) { 301 if (ioctl_sense_phys_addr) 302 bus_dmamap_unload(ioctl_sense_tag, ioctl_sense_dmamap); 303 if (ioctl_sense_mem != NULL) 304 bus_dmamem_free(ioctl_sense_tag, ioctl_sense_mem, ioctl_sense_dmamap); 305 if (ioctl_sense_tag != NULL) 306 bus_dma_tag_destroy(ioctl_sense_tag); 307 } | 42 43#include <dev/mrsas/mrsas.h> 44#include <dev/mrsas/mrsas_ioctl.h> 45 46/* 47 * Function prototypes 48 */ 49int mrsas_alloc_mfi_cmds(struct mrsas_softc *sc); --- 250 unchanged lines hidden (view full) --- 300 if (user_ioc->sense_len) { 301 if (ioctl_sense_phys_addr) 302 bus_dmamap_unload(ioctl_sense_tag, ioctl_sense_dmamap); 303 if (ioctl_sense_mem != NULL) 304 bus_dmamem_free(ioctl_sense_tag, ioctl_sense_mem, ioctl_sense_dmamap); 305 if (ioctl_sense_tag != NULL) 306 bus_dma_tag_destroy(ioctl_sense_tag); 307 } |
308 | |
309 /* 310 * Release data buffers 311 */ 312 for (i = 0; i < user_ioc->sge_count; i++) { 313 if (ioctlCmd == MRSAS_IOC_FIRMWARE_PASS_THROUGH64) { 314 if (!user_ioc->sgl[i].iov_len) 315 continue; 316#ifdef COMPAT_FREEBSD32 --- 192 unchanged lines hidden --- | 308 /* 309 * Release data buffers 310 */ 311 for (i = 0; i < user_ioc->sge_count; i++) { 312 if (ioctlCmd == MRSAS_IOC_FIRMWARE_PASS_THROUGH64) { 313 if (!user_ioc->sgl[i].iov_len) 314 continue; 315#ifdef COMPAT_FREEBSD32 --- 192 unchanged lines hidden --- |