Searched defs:pg_buf (Results 1 - 4 of 4) sorted by relevance

/illumos-gate/usr/src/cmd/luxadm/
H A Dlux_util.c1512 get_mode_page(char *path, uchar_t **pg_buf) argument
1525 if ((*pg_buf = (uchar_t *)calloc(1, size)) == NULL) {
1530 if (status = scsi_mode_sense_cmd(fd, *pg_buf, size,
1533 (void) free(*pg_buf);
1537 mode_header_ptr = (struct mode_header_g1 *)(void *)*pg_buf;
1540 (void) free(*pg_buf);
1541 if ((*pg_buf = (uchar_t *)calloc(1, size)) == NULL) {
1546 if (status = scsi_mode_sense_cmd(fd, *pg_buf, size,
1549 (void) free(*pg_buf);
H A Dfchba.c1520 uchar_t *pg_buf; local
1935 &pg_buf) == 0) {
1937 (void *)pg_buf;
1940 pg_hdr = (struct mode_page *)&pg_buf[offset];
1967 pg_hdr = (struct mode_page *)&pg_buf[offset];
H A Dg_adm.c2796 uchar_t *pg_buf; local
2803 if ((err = l_get_mode_pg(path, &pg_buf, verbose)) == 0) {
2805 mode_header_ptr = (struct mode_header_10_struct *)(int)pg_buf;
2806 pg_hdr = ((struct mode_page *)((int)pg_buf +
2856 pg_hdr = ((struct mode_page *)((int)pg_buf +
3862 uchar_t port_wwn[WWN_SIZE], *pg_buf; local
3981 if (l_get_mode_pg(path_phys, &pg_buf, Options & PVERBOSE) == 0) {
3982 mode_header_ptr = (struct mode_header_10_struct *)(int)pg_buf;
3983 pg_hdr = ((struct mode_page *)((int)pg_buf +
3996 pg_hdr = ((struct mode_page *)((int)pg_buf
4100 uchar_t node_wwn[WWN_SIZE], port_wwn[WWN_SIZE], *pg_buf = NULL; local
5858 uchar_t *pg_buf = NULL; local
[all...]
/illumos-gate/usr/src/lib/storage/liba5k/common/
H A Dmon.c98 * pg_buf ptr to mode pages
103 l_get_mode_pg(char *path, uchar_t **pg_buf, int verbose) argument
124 if ((*pg_buf = (uchar_t *)g_zalloc(size)) == NULL) {
129 if (status = g_scsi_mode_sense_cmd(fd, *pg_buf, size,
132 (void) g_destroy_data((char *)*pg_buf);
136 mode_header_ptr = (struct mode_header_10_struct *)(void *)*pg_buf;
138 (void) g_destroy_data((char *)*pg_buf);
139 if ((*pg_buf = (uchar_t *)g_zalloc(size)) == NULL) {
144 if (status = g_scsi_mode_sense_cmd(fd, *pg_buf, size,
147 (void) g_destroy_data((char *)*pg_buf);
[all...]

Completed in 79 milliseconds