Lines Matching +full:disable +full:- +full:report +full:- +full:mask
1 /*-
2 * SPDX-License-Identifier: (BSD-2-Clause OR GPL-2.0)
44 return ((elem->bytes[MK_ENUM(US,UF,_BYTE)] & MK_ENUM(US,UF,_MASK)) \
51 elem->bytes[MK_ENUM(US,UF,_BYTE)] &= ~MK_ENUM(US,UF,_MASK); \
52 elem->bytes[MK_ENUM(US,UF,_BYTE)] |= \
59 return ((page->hdr.page_specific_flags & MK_ENUM(US,UF,_MASK)) \
66 page->hdr.page_specific_flags &= ~MK_ENUM(US,UF,_MASK); \
67 page->hdr.page_specific_flags |= \
95 return (scsi_2btoul(hdr->length) in ses_page_length()
108 uint8_t subenc_id; /* Sub-enclosure Identifier */
121 return (&encdesc->length + encdesc->length); in ses_enc_desc_last_byte()
133 return (&encdesc->length <= last_buf_byte in ses_enc_desc_is_complete()
140 uint8_t etype_subenc; /* in sub-enclosure #n */
154 return (page->hdr.page_specific_flags + 1); in ses_cfg_page_get_num_subenc()
184 GEN_SES_CTRL_COMMON_ACCESSORS(disable, DISABLE)
188 /*------------------------ Device Slot Control Element ----------------------*/
250 /*--------------------- Array Device Slot Control Element --------------------*/
310 /*----------------------- Power Supply Control Element -----------------------*/
337 /*-------------------------- Cooling Control Element -------------------------*/
372 /*-------------------- Temperature Sensor Control Element --------------------*/
394 /*------------------------- Door Lock Control Element ------------------------*/
421 /*----------------------- Audible Alarm Control Element ----------------------*/
462 /*--------- Enclosure Services Controller Electronics Control Element --------*/
490 /*----------- SCSI Services Controller Electronics Control Element -----------*/
513 /*--------------------- Nonvolatile Cache Control Element --------------------*/
535 /*----------------- Invalid Operation Reason Control Element -----------------*/
543 /*--------------- Uninterruptible Power Supply Control Element ---------------*/
565 /*-------------------------- Display Control Element -------------------------*/
596 /*----------------------- Key Pad Entry Control Element ----------------------*/
618 /*------------------------- Enclosure Control Element ------------------------*/
666 /*------------------- SCSI Port/Transceiver Control Element ------------------*/
690 GEN_SES_CTRL_SCSI_PORT_OR_XCVR_ACCESSORS(disable, DISABLE)
694 /*------------------------- Language Control Element -------------------------*/
712 /*-------------------- Communication Port Control Element --------------------*/
736 GEN_SES_CTRL_COMM_PORT_ACCESSORS(disable, DISABLE)
739 /*---------------------- Voltage Sensor Control Element ----------------------*/
762 /*---------------------- Current Sensor Control Element ----------------------*/
785 /*--------------------- SCSI Target Port Control Element ---------------------*/
812 /*-------------------- SCSI Initiator Port Control Element -------------------*/
840 /*-------------------- Simple Subenclosure Control Element -------------------*/
863 /*----------------------- SAS Expander Control Element -----------------------*/
885 /*----------------------- SAS Connector Control Element ----------------------*/
908 /*------------------------- Universal Control Element ------------------------*/
937 /*--------------------- SCSI SES Control Diagnostic Page ---------------------*/
998 /*------------------------- Device Slot Status Element -----------------------*/
1080 GEN_SES_STATUS_DEV_SLOT_ACCESSORS(report, REPORT)
1091 /*---------------------- Array Device Slot Status Element --------------------*/
1150 /*----------------------- Power Supply Status Element ------------------------*/
1222 /*-------------------------- Cooling Status Element --------------------------*/
1284 /*-------------------- Temperature Sensor Status Element ---------------------*/
1331 /*------------------------- Door Lock Status Element -------------------------*/
1358 /*----------------------- Audible Alarm Status Element -----------------------*/
1404 /*---------- Enclosure Services Statusler Electronics Status Element ---------*/
1433 GEN_SES_STATUS_ECC_ELECTRONICS_ACCESSORS(report, REPORT)
1437 /*------------ SCSI Services Statusler Electronics Status Element ------------*/
1462 GEN_SES_STATUS_SCC_ELECTRONICS_ACCESSORS(report, REPORT)
1465 /*--------------------- Nonvolatile Cache Status Element ---------------------*/
1504 cache_size = scsi_2btoul(elem->cache_size); in GEN_SES_STATUS_NV_CACHE_ACCESSORS()
1509 /*----------------- Invalid Operation Reason Status Element ------------------*/
1542 /*--------------- Uninterruptible Power Supply Status Element ----------------*/
1616 /*-------------------------- Display Status Element --------------------------*/
1647 /*----------------------- Key Pad Entry Status Element -----------------------*/
1669 /*------------------------- Enclosure Status Element -------------------------*/
1720 /*------------------- SCSI Port/Transceiver Status Element -------------------*/
1757 GEN_SES_STATUS_SCSI_PORT_OR_XCVR_ACCESSORS(report, REPORT)
1758 GEN_SES_STATUS_SCSI_PORT_OR_XCVR_ACCESSORS(disable, DISABLED)
1763 /*------------------------- Language Status Element --------------------------*/
1781 /*-------------------- Communication Port Status Element ---------------------*/
1808 /*---------------------- Voltage Sensor Status Element -----------------------*/
1852 /*---------------------- Current Sensor Status Element -----------------------*/
1885 /*--------------------- SCSI Target Port Status Element ----------------------*/
1913 GEN_SES_STATUS_TARGET_PORT_ACCESSORS(report, REPORT)
1917 /*-------------------- SCSI Initiator Port Status Element --------------------*/
1946 GEN_SES_STATUS_INITIATOR_PORT_ACCESSORS(report, REPORT)
1950 /*-------------------- Simple Subenclosure Status Element --------------------*/
1974 /*----------------------- SAS Expander Status Element ------------------------*/
1996 /*----------------------- SAS Connector Status Element -----------------------*/
2030 /*------------------------- Universal Status Element -------------------------*/
2069 static const uint8_t mask[][4] = { in ses_status_to_ctrl() local
2098 if (type >= sizeof(mask) / sizeof(mask[0])) in ses_status_to_ctrl()
2101 bytes[i] &= mask[type][i]; in ses_status_to_ctrl()
2194 /* Status mask: All of the above OR'd together */
2215 * If SESCTL_CSEL is set, then PRDFAIL, DISABLE and RSTSWAP
2271 * SES v2 r20 6.1.13 - Element Additional Status diagnostic page
2272 * Tables 26-28 (general), 29-32 (FC), 33-41 (SAS)
2402 ((obj)->byte1 & 0x1)