Lines Matching refs:uchar_t

71 extern	uchar_t		g_switch_to_alpa[];
72 extern uchar_t g_sf_alpa_to_switch[];
77 static int copy_config_page(struct l_state_struct *, uchar_t *);
78 static void copy_page_7(struct l_state_struct *, uchar_t *);
81 static int check_file(int, int, uchar_t **, int);
83 static int ib_download_code_cmd(int, int, int, uchar_t *, int, int);
84 static int dak_download_code_cmd(int, uchar_t *, int);
102 l_get_mode_pg(char *path, uchar_t **pg_buf, int verbose)
123 if ((*pg_buf = (uchar_t *)g_zalloc(size)) == NULL) {
138 if ((*pg_buf = (uchar_t *)g_zalloc(size)) == NULL) {
525 uchar_t *page_buf;
591 if ((page_buf = (uchar_t *)calloc(1,
718 (uchar_t *)elem, sizeof (struct device_element),
722 (uchar_t *)page_buf, page_len)) {
743 (uchar_t *)status, sizeof (struct device_element),
1189 uchar_t *page_buf;
1200 (uchar_t *)&inq, sizeof (struct l_inquiry_struct))) {
1216 if ((page_buf = (uchar_t *)malloc(MAX_REC_DIAG_LENGTH)) == NULL) {
1272 (uchar_t *)front_elem,
1279 (uchar_t *)rear_elem,
1285 (uchar_t *)page_buf, page_len)) {
1326 (uchar_t *)&inq, sizeof (struct l_inquiry_struct))) {
1348 if (status = g_scsi_send_diag_cmd(fd, (uchar_t *)&page4,
1389 (uchar_t *)&inq, sizeof (struct l_inquiry_struct))) {
1407 if (status = g_scsi_send_diag_cmd(fd, (uchar_t *)&page4,
1417 (uchar_t *)&inq, sizeof (struct l_inquiry_struct))) {
1486 uchar_t node_wwn[WWN_SIZE], port_wwn[WWN_SIZE];
1547 (uchar_t *)&inq, sizeof (struct l_inquiry_struct))) {
1561 if ((status = l_get_envsen_page(fd, (uchar_t *)&page1,
2303 l_get_envsen_page(int fd, uchar_t *buf, int buf_size, uchar_t page_code,
2307 uchar_t *pg;
2320 if (status = g_scsi_rec_diag_cmd(fd, (uchar_t *)&hdr,
2343 if ((pg = (uchar_t *)g_zalloc(size)) == NULL) {
2373 l_get_envsen(char *path_phys, uchar_t *buf, int size, int verbose)
2376 uchar_t *page_list_ptr, page_code, *local_buf_ptr = buf;
2482 uchar_t node_wwn[WWN_SIZE], port_wwn[WWN_SIZE];
2673 (uchar_t *)&read_key_buf, sizeof (struct read_keys_struct),
2687 (uchar_t *)&read_reserv_buf,
2796 if (status = g_scsi_read_capacity_cmd(fd, (uchar_t *)&capacity,
2848 copy_config_page(struct l_state_struct *l_state, uchar_t *from_ptr)
2904 copy_page_7(struct l_state_struct *l_state, uchar_t *from_ptr)
2906 uchar_t *my_from_ptr;
2916 (uchar_t *)&l_state->ib_tbl.p7_s, size,
2974 uchar_t *ib_buf, *from_ptr;
2987 if ((ib_buf = (uchar_t *)calloc(1,
3026 (uchar_t *)&l_state->ib_tbl.p2_s, size,
3095 (uchar_t *)&l_state->ib_tbl.p2_s.element[front_index],
3817 uchar_t node_wwn[WWN_SIZE], port_wwn[WWN_SIZE];
4086 check_file(int fd, int verbose, uchar_t **buf_ptr, int dl_info_offset)
4090 uchar_t *buf;
4110 if (!(buf = (uchar_t *)g_zalloc(PROMSIZE)))
4253 uchar_t *buf;
4274 ib_download_code_cmd(int fd, int promid, int off, uchar_t *buf_ptr,
4300 * buf_ptr - uchar_t pointer to the firmware itself
4309 dak_download_code_cmd(int fd, uchar_t *buf_ptr, int buf_len)
4349 uchar_t *buf_ptr;
4389 if (g_scsi_inquiry_cmd(controller_fd, (uchar_t *)&inq, sizeof (inq))) {
4413 buf_ptr = (uchar_t *)g_zalloc(statbuf.st_size);
4489 (uchar_t *)(buf_ptr + TEXT_OFFSET), TEXT_SZ, ps);
4500 (uchar_t *)(buf_ptr + IDATA_OFFSET), IDATA_SZ, ps);
4543 (uchar_t *)(buf_ptr + FPM_OFFSET), FPM_SZ, ps);
4582 (uchar_t *)&inq, sizeof (struct l_inquiry_struct))) {
4598 if (g_string_to_wwn((uchar_t *)wwn, (uchar_t *)&page4.name)) {
4604 if (status = g_scsi_send_diag_cmd(fd, (uchar_t *)&page4,
4614 if (status = g_scsi_rec_diag_cmd(fd, (uchar_t *)&page4,
4647 uchar_t t_wwn[20], *ses_wwn, *ses_wwn1, *ses_nwwn;
4857 uchar_t node_wwn[WWN_SIZE], port_wwn[WWN_SIZE];
4922 l_element_msg_string(uchar_t code, char *es)