Lines Matching +full:cache +full:- +full:op +full:- +full:block +full:- +full:size

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
66 /* HRRQ_ENTRY_SIZE : size of hrrq buffer
197 /* structure to represent a scatter-gather element (IOADL descriptor) */
225 * IOA Request Control Block
321 /* extended configuration table sizes are also of 32 bytes in size */
518 * additional request parameters (of max size 48) any command.
526 /* pmcraid_sglist - Scatter-gather list allocated for passthrough ioctls
558 /* pmcraid_cmd - LLD representation of SCSI command */
561 /* Ptr and bus address of DMA.able control block for this command */
614 /* ISR parameters LLD allocates (one for each MSI-X if enabled) vectors */
646 struct pmcraid_cmd *cmd; /* pointer to command block used */
659 /* Array of allowed-to-be-exposed resources, initialized from
703 /* size of configuration table entry, varies based on the firmware */
730 dev_t dev; /* Major-Minor numbers for Char device */
743 struct kmem_cache *cmd_cachep; /* cache for cmd blocks */
745 char cmd_pool_name[64]; /* name of cmd cache */
746 char ctl_pool_name[64]; /* name of control cache */
758 /* Work-queue (Shared) for deferred reset processing */
764 /* should add/delete resources to mid-layer now ?*/
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 */
847 "Recovered Error, soft Cache Card Battery error threshold"},
849 "Recovered Error, soft Cache Card Battery error threshold"},
891 "Hardware Error, hard Cache Fearuee Card Battery error"},
913 "Unit Attention, cache exists for missing/failed device"},
963 "Data Protect, cannot locate cache data for device"},
965 "Data Protect, cache data exits for a changed device"},
994 ({ u8 op = opcode; u8 __type = 0;\
995 if (op == READ_6 || op == READ_10 || op == READ_12 || op == READ_16)\
997 else if (op == WRITE_6 || op == WRITE_10 || op == WRITE_12 || \
998 op == WRITE_16)\
1010 * pmcraid_ioctl_header - definition of header structure that precedes all the
1032 #define DRV_IOCTL(n, size) \ argument
1033 _IOC(_IOC_READ|_IOC_WRITE, PMCRAID_DRIVER_IOCTL, (n), (size))
1036 * _ARGSIZE: macro that gives size of the argument type passed to an IOCTL cmd.
1037 * This is to facilitate applications avoiding un-necessary memory allocations.