Lines Matching refs:kern_data_ptr
675 msg.dt.sg_list[0].addr = io->scsiio.kern_data_ptr; in ctl_ha_datamove()
679 (void *)vtophys(io->scsiio.kern_data_ptr); in ctl_ha_datamove()
684 msg.dt.sg_list[0].addr = io->scsiio.kern_data_ptr; in ctl_ha_datamove()
710 sgl = (struct ctl_sg_entry *)io->scsiio.kern_data_ptr; in ctl_ha_datamove()
1588 io->scsiio.kern_data_ptr = (uint8_t *)sgl; in ctl_isc_event_handler()
1607 io->scsiio.kern_data_ptr; in ctl_isc_event_handler()
5130 free(io->scsiio.kern_data_ptr, M_CTL); in ctl_config_move_done()
5211 buf = io->scsiio.kern_data_ptr; in ctl_config_write_done()
5231 buf = io->scsiio.kern_data_ptr; in ctl_config_read_done()
5509 ctsio->kern_data_ptr = malloc(length, M_CTL, M_WAITOK); in ctl_format()
5528 ctsio->kern_data_ptr; in ctl_format()
5544 ctsio->kern_data_ptr; in ctl_format()
5563 free(ctsio->kern_data_ptr, M_CTL); in ctl_format()
5623 ctsio->kern_data_ptr = descr; in ctl_read_buffer()
5626 ctsio->kern_data_ptr = echo_descr; in ctl_read_buffer()
5633 ctsio->kern_data_ptr = lun->write_buffer + buffer_offset; in ctl_read_buffer()
5682 if (ctsio->kern_data_ptr == NULL) { in ctl_write_buffer()
5683 ctsio->kern_data_ptr = lun->write_buffer + buffer_offset; in ctl_write_buffer()
5821 ctsio->kern_data_ptr = malloc(len, M_CTL, M_WAITOK); in ctl_write_same()
5866 ctsio->kern_data_ptr = malloc(len, M_CTL, M_WAITOK); in ctl_unmap()
5879 hdr = (struct scsi_unmap_header *)ctsio->kern_data_ptr; in ctl_unmap()
5935 free(ctsio->kern_data_ptr, M_CTL); in ctl_unmap()
6064 (ctsio->kern_data_ptr + *len_used); in ctl_do_mode_select()
6067 free(ctsio->kern_data_ptr, M_CTL); in ctl_do_mode_select()
6072 free(ctsio->kern_data_ptr, M_CTL); in ctl_do_mode_select()
6079 free(ctsio->kern_data_ptr, M_CTL); in ctl_do_mode_select()
6142 free(ctsio->kern_data_ptr, M_CTL); in ctl_do_mode_select()
6167 free(ctsio->kern_data_ptr, M_CTL); in ctl_do_mode_select()
6172 free(ctsio->kern_data_ptr, M_CTL); in ctl_do_mode_select()
6218 free(ctsio->kern_data_ptr, M_CTL); in ctl_do_mode_select()
6252 free(ctsio->kern_data_ptr, M_CTL); in ctl_do_mode_select()
6349 ctsio->kern_data_ptr = malloc(param_len, M_CTL, M_WAITOK); in ctl_mode_select()
6365 mh6 = (struct scsi_mode_header_6 *)ctsio->kern_data_ptr; in ctl_mode_select()
6372 mh10 = (struct scsi_mode_header_10 *)ctsio->kern_data_ptr; in ctl_mode_select()
6381 free(ctsio->kern_data_ptr, M_CTL); in ctl_mode_select()
6568 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO); in ctl_mode_sense()
6578 header = (struct scsi_mode_hdr_6 *)ctsio->kern_data_ptr; in ctl_mode_sense()
6595 header = (struct scsi_mode_hdr_10 *)ctsio->kern_data_ptr; in ctl_mode_sense()
6678 memcpy(ctsio->kern_data_ptr + data_used, in ctl_mode_sense()
6723 memcpy(ctsio->kern_data_ptr + data_used, in ctl_mode_sense()
6961 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO); in ctl_log_sense()
6967 header = (struct scsi_log_header *)ctsio->kern_data_ptr; in ctl_log_sense()
7018 ctsio->kern_data_ptr = malloc(sizeof(*data), M_CTL, M_WAITOK | M_ZERO); in ctl_read_capacity()
7019 data = (struct scsi_read_capacity_data *)ctsio->kern_data_ptr; in ctl_read_capacity()
7075 ctsio->kern_data_ptr = malloc(sizeof(*data), M_CTL, M_WAITOK | M_ZERO); in ctl_read_capacity_16()
7076 data = (struct scsi_read_capacity_data_long *)ctsio->kern_data_ptr; in ctl_read_capacity_16()
7121 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO); in ctl_get_lba_status()
7122 data = (struct scsi_get_lba_status_data *)ctsio->kern_data_ptr; in ctl_get_lba_status()
7176 ctsio->kern_data_ptr = malloc(data_len, M_CTL, M_WAITOK | M_ZERO); in ctl_read_defect()
7184 ctsio->kern_data_ptr; in ctl_read_defect()
7189 ctsio->kern_data_ptr; in ctl_read_defect()
7247 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO); in ctl_report_ident_info()
7253 rii_ptr = (struct scsi_report_ident_info_data *)ctsio->kern_data_ptr; in ctl_report_ident_info()
7346 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO); in ctl_report_tagret_port_groups()
7354 ctsio->kern_data_ptr; in ctl_report_tagret_port_groups()
7361 ctsio->kern_data_ptr; in ctl_report_tagret_port_groups()
7536 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO); in ctl_report_supported_opcodes()
7545 ctsio->kern_data_ptr; in ctl_report_supported_opcodes()
7580 ctsio->kern_data_ptr; in ctl_report_supported_opcodes()
7585 ctsio->kern_data_ptr; in ctl_report_supported_opcodes()
7601 ctsio->kern_data_ptr; in ctl_report_supported_opcodes()
7640 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO); in ctl_report_supported_tmf()
7646 data = (struct scsi_report_supported_tmf_ext_data *)ctsio->kern_data_ptr; in ctl_report_supported_tmf()
7678 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO); in ctl_report_timestamp()
7684 data = (struct scsi_report_timestamp_data *)ctsio->kern_data_ptr; in ctl_report_timestamp()
7742 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO); in ctl_persistent_reserve_in()
7754 res_keys = (struct scsi_per_res_in_keys*)ctsio->kern_data_ptr; in ctl_persistent_reserve_in()
7767 free(ctsio->kern_data_ptr, M_CTL); in ctl_persistent_reserve_in()
7802 res = (struct scsi_per_res_in_rsrv *)ctsio->kern_data_ptr; in ctl_persistent_reserve_in()
7827 free(ctsio->kern_data_ptr, M_CTL); in ctl_persistent_reserve_in()
7855 res_cap = (struct scsi_per_res_cap *)ctsio->kern_data_ptr; in ctl_persistent_reserve_in()
7874 res_status = (struct scsi_per_res_in_full*)ctsio->kern_data_ptr; in ctl_persistent_reserve_in()
7887 free(ctsio->kern_data_ptr, M_CTL); in ctl_persistent_reserve_in()
8010 free(ctsio->kern_data_ptr, M_CTL); in ctl_pro_preempt()
8036 free(ctsio->kern_data_ptr, M_CTL); in ctl_pro_preempt()
8058 free(ctsio->kern_data_ptr, M_CTL); in ctl_pro_preempt()
8173 free(ctsio->kern_data_ptr, M_CTL); in ctl_pro_preempt()
8330 ctsio->kern_data_ptr = malloc(param_len, M_CTL, M_WAITOK); in ctl_persistent_reserve_out()
8342 param = (struct scsi_per_res_out_parms *)ctsio->kern_data_ptr; in ctl_persistent_reserve_out()
8362 free(ctsio->kern_data_ptr, M_CTL); in ctl_persistent_reserve_out()
8372 free(ctsio->kern_data_ptr, M_CTL); in ctl_persistent_reserve_out()
8382 free(ctsio->kern_data_ptr, M_CTL); in ctl_persistent_reserve_out()
8410 free(ctsio->kern_data_ptr, M_CTL); in ctl_persistent_reserve_out()
8515 free(ctsio->kern_data_ptr, M_CTL); in ctl_persistent_reserve_out()
8570 free(ctsio->kern_data_ptr, M_CTL); in ctl_persistent_reserve_out()
8643 free(ctsio->kern_data_ptr, M_CTL); in ctl_persistent_reserve_out()
9246 ctsio->kern_data_ptr = malloc(lun_datalen, M_CTL, M_WAITOK | M_ZERO); in ctl_report_luns()
9247 lun_data = (struct scsi_report_luns_data *)ctsio->kern_data_ptr; in ctl_report_luns()
9347 ctsio->kern_data_ptr = malloc(sizeof(*sense_ptr), M_CTL, M_WAITOK); in ctl_request_sense()
9348 sense_ptr = (struct scsi_sense_data *)ctsio->kern_data_ptr; in ctl_request_sense()
9472 ctsio->kern_data_ptr = malloc(sup_page_size, M_CTL, M_WAITOK | M_ZERO); in ctl_inquiry_evpd_supported()
9473 pages = (struct scsi_vpd_supported_pages *)ctsio->kern_data_ptr; in ctl_inquiry_evpd_supported()
9535 ctsio->kern_data_ptr = malloc(data_len, M_CTL, M_WAITOK | M_ZERO); in ctl_inquiry_evpd_serial()
9536 sn_ptr = (struct scsi_vpd_unit_serial_number *)ctsio->kern_data_ptr; in ctl_inquiry_evpd_serial()
9583 ctsio->kern_data_ptr = malloc(data_len, M_CTL, M_WAITOK | M_ZERO); in ctl_inquiry_evpd_eid()
9584 eid_ptr = (struct scsi_vpd_extended_inquiry_data *)ctsio->kern_data_ptr; in ctl_inquiry_evpd_eid()
9649 ctsio->kern_data_ptr = malloc(data_len, M_CTL, M_WAITOK | M_ZERO); in ctl_inquiry_evpd_mpp()
9650 mpp_ptr = (struct scsi_vpd_mode_page_policy *)ctsio->kern_data_ptr; in ctl_inquiry_evpd_mpp()
9704 ctsio->kern_data_ptr = malloc(data_len, M_CTL, M_WAITOK | M_ZERO); in ctl_inquiry_evpd_devid()
9705 devid_ptr = (struct scsi_vpd_device_id *)ctsio->kern_data_ptr; in ctl_inquiry_evpd_devid()
9826 ctsio->kern_data_ptr = malloc(data_len, M_CTL, M_WAITOK | M_ZERO); in ctl_inquiry_evpd_scsi_ports()
9827 sp = (struct scsi_vpd_scsi_ports *)ctsio->kern_data_ptr; in ctl_inquiry_evpd_scsi_ports()
9894 ctsio->kern_data_ptr = malloc(sfs_page_size, M_CTL, M_WAITOK | M_ZERO); in ctl_inquiry_evpd_sfs()
9895 sfs_ptr = (struct scsi_vpd_sfs *)ctsio->kern_data_ptr; in ctl_inquiry_evpd_sfs()
9946 ctsio->kern_data_ptr = malloc(sizeof(*bl_ptr), M_CTL, M_WAITOK | M_ZERO); in ctl_inquiry_evpd_block_limits()
9947 bl_ptr = (struct scsi_vpd_block_limits *)ctsio->kern_data_ptr; in ctl_inquiry_evpd_block_limits()
10022 ctsio->kern_data_ptr = malloc(sizeof(*bdc_ptr), M_CTL, M_WAITOK | M_ZERO); in ctl_inquiry_evpd_bdc()
10023 bdc_ptr = (struct scsi_vpd_block_device_characteristics *)ctsio->kern_data_ptr; in ctl_inquiry_evpd_bdc()
10069 ctsio->kern_data_ptr = malloc(sizeof(*lbp_ptr), M_CTL, M_WAITOK | M_ZERO); in ctl_inquiry_evpd_lbp()
10070 lbp_ptr = (struct scsi_vpd_logical_block_prov *)ctsio->kern_data_ptr; in ctl_inquiry_evpd_lbp()
10208 ctsio->kern_data_ptr = malloc(data_len, M_CTL, M_WAITOK | M_ZERO); in ctl_inquiry_std()
10209 inq_ptr = (struct scsi_inquiry_data *)ctsio->kern_data_ptr; in ctl_inquiry_std()
10432 ctsio->kern_data_ptr = malloc(data_len, M_CTL, M_WAITOK | M_ZERO); in ctl_get_config()
10436 hdr = (struct scsi_get_config_header *)ctsio->kern_data_ptr; in ctl_get_config()
10628 ctsio->kern_data_ptr = malloc(data_len, M_CTL, M_WAITOK | M_ZERO); in ctl_get_event_status()
10634 hdr = (struct scsi_get_event_status_header *)ctsio->kern_data_ptr; in ctl_get_event_status()
10657 ctsio->kern_data_ptr = malloc(data_len, M_CTL, M_WAITOK | M_ZERO); in ctl_mechanism_status()
10663 hdr = (struct scsi_mechanism_status_header *)ctsio->kern_data_ptr; in ctl_mechanism_status()
10708 ctsio->kern_data_ptr = malloc(data_len, M_CTL, M_WAITOK | M_ZERO); in ctl_read_toc()
10714 hdr = (struct scsi_read_toc_hdr *)ctsio->kern_data_ptr; in ctl_read_toc()
12724 io->scsiio.kern_data_ptr = (uint8_t *)CTL_LSGL(io);
12775 io->scsiio.kern_data_ptr = (uint8_t *)CTL_LSGL(io);