Lines Matching +full:write +full:- +full:protect
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * pmcraid.h -- PMC Sierra MaxRAID controller driver header file
5 * Written By: Anil Ravindranath<anil_ravindranath@pmc-sierra.com>
6 * PMC-Sierra Inc
39 #define PMC_BIT8(n) (1 << (7-n))
40 #define PMC_BIT16(n) (1 << (15-n))
41 #define PMC_BIT32(n) (1 << (31-n))
58 /* MAX_IOADLS : max number of scatter-gather lists supported by IOA
197 /* structure to represent a scatter-gather element (IOADL descriptor) */
526 /* pmcraid_sglist - Scatter-gather list allocated for passthrough ioctls
558 /* pmcraid_cmd - LLD representation of SCSI command */
614 /* ISR parameters LLD allocates (one for each MSI-X if enabled) vectors */
659 /* Array of allowed-to-be-exposed resources, initialized from
666 spinlock_t resource_lock; /* spinlock to protect resource list */
730 dev_t dev; /* Major-Minor numbers for Char device */
758 /* Work-queue (Shared) for deferred reset processing */
764 /* should add/delete resources to mid-layer now ?*/
802 atomic_t write_failures; /* count of failed WRITE commands */
806 #define RES_CHANGE_ADD 0x1 /* add this to mid-layer */
807 #define RES_CHANGE_DEL 0x2 /* remove this from mid-layer */
820 * this is VSET resource. For non-VSET resources this will be un-used
835 #define IOASC_LOG_LEVEL_MUST 0x1 /* must log: all high-severity errors */
943 "Data Protect, device is read/write protected by IOA"},
945 "Data Protect, IOA doesn't support device attribute"},
947 "Data Protect, NVRAM mirroring prohibited"},
949 "Data Protect, array is short 2 or more devices"},
951 "Data Protect, exposed array is short a required device"},
953 "Data Protect, array members not at required addresses"},
955 "Data Protect, exposed mode device resource address conflict"},
957 "Data Protect, incorrect resource address of exposed mode device"},
959 "Data Protect, Array is missing a device and parity is out of sync"},
961 "Data Protect, maximum number of arrays already exist"},
963 "Data Protect, cannot locate cache data for device"},
965 "Data Protect, cache data exits for a changed device"},
967 "Data Protect, detection of a device requiring format"},
969 "Data Protect, IOA exceeds maximum number of devices"},
971 "Data Protect, missing array, volume set is not functional"},
973 "Data Protect, single device for a volume set"},
975 "Data Protect, missing multiple devices for a volume set"},
977 "Data Protect, maximum number of volument sets already exists"},
979 "Data Protect, other volume set problem"},
990 /* check if given command is a SCSI READ or SCSI WRITE command */
992 #define SCSI_WRITE_CMD 0x2 /* any of SCSI WRITE commands */
1010 * pmcraid_ioctl_header - definition of header structure that precedes all the
1037 * This is to facilitate applications avoiding un-necessary memory allocations.