Home
last modified time | relevance | path

Searched refs:pg_buf (Results 1 – 5 of 5) sorted by relevance

/illumos-gate/usr/src/cmd/luxadm/
H A Dlux_util.c1509 get_mode_page(char *path, uchar_t **pg_buf) in get_mode_page() argument
1522 if ((*pg_buf = (uchar_t *)calloc(1, size)) == NULL) { in get_mode_page()
1527 if (status = scsi_mode_sense_cmd(fd, *pg_buf, size, in get_mode_page()
1530 (void) free(*pg_buf); in get_mode_page()
1534 mode_header_ptr = (struct mode_header_g1 *)(void *)*pg_buf; in get_mode_page()
1537 (void) free(*pg_buf); in get_mode_page()
1538 if ((*pg_buf = (uchar_t *)calloc(1, size)) == NULL) { in get_mode_page()
1543 if (status = scsi_mode_sense_cmd(fd, *pg_buf, size, in get_mode_page()
1546 (void) free(*pg_buf); in get_mode_page()
H A Dg_adm.c2796 uchar_t *pg_buf; in adm_display_verbose_disk() local
2803 if ((err = l_get_mode_pg(path, &pg_buf, verbose)) == 0) { in adm_display_verbose_disk()
2805 mode_header_ptr = (struct mode_header_10_struct *)(int)pg_buf; in adm_display_verbose_disk()
2806 pg_hdr = ((struct mode_page *)((int)pg_buf + in adm_display_verbose_disk()
2856 pg_hdr = ((struct mode_page *)((int)pg_buf + in adm_display_verbose_disk()
3862 uchar_t port_wwn[WWN_SIZE], *pg_buf; in display_fc_disk() local
3981 if (l_get_mode_pg(path_phys, &pg_buf, Options & PVERBOSE) == 0) { in display_fc_disk()
3982 mode_header_ptr = (struct mode_header_10_struct *)(int)pg_buf; in display_fc_disk()
3983 pg_hdr = ((struct mode_page *)((int)pg_buf + in display_fc_disk()
3996 pg_hdr = ((struct mode_page *)((int)pg_buf + in display_fc_disk()
[all …]
H A Dfchba.c1520 uchar_t *pg_buf; in fchba_display_config() local
1935 &pg_buf) == 0) { in fchba_display_config()
1937 (void *)pg_buf; in fchba_display_config()
1940 pg_hdr = (struct mode_page *)&pg_buf[offset]; in fchba_display_config()
1967 pg_hdr = (struct mode_page *)&pg_buf[offset]; in fchba_display_config()
H A Dcommon.h472 int get_mode_page(char *path, uchar_t **pg_buf);
/illumos-gate/usr/src/lib/storage/liba5k/common/
H A Dmon.c104 l_get_mode_pg(char *path, uchar_t **pg_buf, int verbose) in l_get_mode_pg() argument
125 if ((*pg_buf = (uchar_t *)g_zalloc(size)) == NULL) { in l_get_mode_pg()
130 if (status = g_scsi_mode_sense_cmd(fd, *pg_buf, size, in l_get_mode_pg()
133 (void) g_destroy_data((char *)*pg_buf); in l_get_mode_pg()
137 mode_header_ptr = (struct mode_header_10_struct *)(void *)*pg_buf; in l_get_mode_pg()
139 (void) g_destroy_data((char *)*pg_buf); in l_get_mode_pg()
140 if ((*pg_buf = (uchar_t *)g_zalloc(size)) == NULL) { in l_get_mode_pg()
145 if (status = g_scsi_mode_sense_cmd(fd, *pg_buf, size, in l_get_mode_pg()
148 (void) g_destroy_data((char *)*pg_buf); in l_get_mode_pg()