Lines Matching refs:buf_ptr
4087 check_file(int fd, int verbose, uchar_t **buf_ptr, int dl_info_offset)
4095 *buf_ptr = NULL;
4161 *buf_ptr = buf;
4275 ib_download_code_cmd(int fd, int promid, int off, uchar_t *buf_ptr,
4283 status = g_scsi_writebuffer_cmd(fd, off, buf_ptr, sz,
4287 buf_ptr += sz;
4301 * buf_ptr - uchar_t pointer to the firmware itself
4310 dak_download_code_cmd(int fd, uchar_t *buf_ptr, int buf_len)
4319 status = g_scsi_writebuffer_cmd(fd, offs, buf_ptr, sz, 0x07, 0);
4323 buf_ptr += sz;
4350 uchar_t *buf_ptr;
4414 buf_ptr = (uchar_t *)g_zalloc(statbuf.st_size);
4415 if (buf_ptr == NULL) {
4422 if (read(file_fd, buf_ptr, statbuf.st_size) == -1) {
4426 g_destroy_data((char *)buf_ptr);
4431 if (err = check_file(file_fd, verbose, &buf_ptr, FW_DL_INFO)) {
4432 if (buf_ptr) {
4433 (void) g_destroy_data((char *)buf_ptr);
4466 if (buf_ptr)
4467 (void) g_destroy_data((char *)buf_ptr);
4478 status = dak_download_code_cmd(controller_fd, buf_ptr,
4481 if (buf_ptr != NULL) {
4482 g_destroy_data((char *)buf_ptr);
4490 (uchar_t *)(buf_ptr + TEXT_OFFSET), TEXT_SZ, ps);
4493 (void) g_destroy_data((char *)buf_ptr);
4501 (uchar_t *)(buf_ptr + IDATA_OFFSET), IDATA_SZ, ps);
4504 (void) g_destroy_data((char *)buf_ptr);
4531 (void) g_destroy_data((char *)buf_ptr);
4544 (uchar_t *)(buf_ptr + FPM_OFFSET), FPM_SZ, ps);