Lines Matching refs:attrp

180 static int print_ctl_attr(raidcfg_controller_t *attrp);
181 static int print_array_attr(raidcfg_array_t *attrp);
182 static int print_arraypart_attr(raidcfg_arraypart_t *attrp);
184 raid_obj_handle_t disk_handle, raidcfg_disk_t *attrp);
2078 * print_ctl_attr(attrp)
2083 print_ctl_attr(raidcfg_controller_t *attrp)
2088 if (attrp == NULL) {
2092 (void) snprintf(type, sizeof (type), "%s", attrp->controller_type);
2095 (void) snprintf(version, sizeof (version), "%s", attrp->fw_version);
2102 * print_array_attr(attrp)
2107 print_array_attr(raidcfg_array_t *attrp)
2113 if (attrp == NULL) {
2117 if (attrp->capacity != MAX64BIT) {
2118 if (size_to_string(attrp->capacity, capacity, 8) != SUCCESS) {
2126 if (attrp->stripe_size != MAX32BIT) {
2128 attrp->stripe_size / 1024);
2134 if (attrp->state & ARRAY_STATE_INACTIVATE)
2137 switch (attrp->state) {
2160 if (attrp->write_policy == CACHE_WR_OFF) {
2162 } else if (attrp->write_policy == CACHE_WR_ON) {
2169 switch (attrp->raid_level) {
2199 * print_arraypart_attr(attrp)
2204 print_arraypart_attr(raidcfg_arraypart_t *attrp)
2208 if (attrp == NULL) {
2212 if (attrp->size != MAX64BIT) {
2213 if (size_to_string(attrp->size, size, 8) != SUCCESS) {
2223 if (attrp->state == DISK_STATE_GOOD) {
2225 } else if (attrp->state == DISK_STATE_FAILED) {
2236 * print_disk_attr(ctl_handle, disk_handle, attrp)
2242 raidcfg_disk_t *attrp)
2256 if (attrp == NULL) {
2260 (void) memccpy(vendor, attrp->vendorid, '\0', DISK_VENDER_LEN);
2264 (void) memccpy(product, attrp->productid, '\0', DISK_PRODUCT_LEN);
2268 (void) memccpy(revision, attrp->revision, '\0', DISK_REV_LEN);
2272 if (attrp->capacity != MAX64BIT) {
2273 if (size_to_string(attrp->capacity, capacity, 16) != SUCCESS) {
2281 if (attrp->state == DISK_STATE_GOOD) {
2283 } else if (attrp->state == DISK_STATE_FAILED) {