Lines Matching refs:kern_data_ptr
677 msg.dt.sg_list[0].addr = io->scsiio.kern_data_ptr; in ctl_ha_datamove()
681 (void *)vtophys(io->scsiio.kern_data_ptr); in ctl_ha_datamove()
686 msg.dt.sg_list[0].addr = io->scsiio.kern_data_ptr; in ctl_ha_datamove()
712 sgl = (struct ctl_sg_entry *)io->scsiio.kern_data_ptr; in ctl_ha_datamove()
1515 io->scsiio.kern_data_ptr = (uint8_t *)sgl; in ctl_isc_event_handler()
1534 io->scsiio.kern_data_ptr; in ctl_isc_event_handler()
5048 free(io->scsiio.kern_data_ptr, M_CTL); in ctl_config_move_done()
5129 buf = io->scsiio.kern_data_ptr; in ctl_config_write_done()
5149 buf = io->scsiio.kern_data_ptr; in ctl_config_read_done()
5427 ctsio->kern_data_ptr = malloc(length, M_CTL, M_WAITOK); in ctl_format()
5446 ctsio->kern_data_ptr; in ctl_format()
5462 ctsio->kern_data_ptr; in ctl_format()
5481 free(ctsio->kern_data_ptr, M_CTL); in ctl_format()
5541 ctsio->kern_data_ptr = descr; in ctl_read_buffer()
5544 ctsio->kern_data_ptr = echo_descr; in ctl_read_buffer()
5551 ctsio->kern_data_ptr = lun->write_buffer + buffer_offset; in ctl_read_buffer()
5597 ctsio->kern_data_ptr = lun->write_buffer + buffer_offset; in ctl_write_buffer()
5736 ctsio->kern_data_ptr = malloc(len, M_CTL, M_WAITOK); in ctl_write_same()
5781 ctsio->kern_data_ptr = malloc(len, M_CTL, M_WAITOK); in ctl_unmap()
5794 hdr = (struct scsi_unmap_header *)ctsio->kern_data_ptr; in ctl_unmap()
5850 free(ctsio->kern_data_ptr, M_CTL); in ctl_unmap()
5979 (ctsio->kern_data_ptr + *len_used); in ctl_do_mode_select()
5982 free(ctsio->kern_data_ptr, M_CTL); in ctl_do_mode_select()
5987 free(ctsio->kern_data_ptr, M_CTL); in ctl_do_mode_select()
5994 free(ctsio->kern_data_ptr, M_CTL); in ctl_do_mode_select()
6057 free(ctsio->kern_data_ptr, M_CTL); in ctl_do_mode_select()
6082 free(ctsio->kern_data_ptr, M_CTL); in ctl_do_mode_select()
6087 free(ctsio->kern_data_ptr, M_CTL); in ctl_do_mode_select()
6133 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()
6264 ctsio->kern_data_ptr = malloc(param_len, M_CTL, M_WAITOK); in ctl_mode_select()
6280 mh6 = (struct scsi_mode_header_6 *)ctsio->kern_data_ptr; in ctl_mode_select()
6287 mh10 = (struct scsi_mode_header_10 *)ctsio->kern_data_ptr; in ctl_mode_select()
6296 free(ctsio->kern_data_ptr, M_CTL); in ctl_mode_select()
6483 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO); in ctl_mode_sense()
6493 header = (struct scsi_mode_hdr_6 *)ctsio->kern_data_ptr; in ctl_mode_sense()
6510 header = (struct scsi_mode_hdr_10 *)ctsio->kern_data_ptr; in ctl_mode_sense()
6593 memcpy(ctsio->kern_data_ptr + data_used, in ctl_mode_sense()
6638 memcpy(ctsio->kern_data_ptr + data_used, in ctl_mode_sense()
6876 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO); in ctl_log_sense()
6882 header = (struct scsi_log_header *)ctsio->kern_data_ptr; in ctl_log_sense()
6933 ctsio->kern_data_ptr = malloc(sizeof(*data), M_CTL, M_WAITOK | M_ZERO); in ctl_read_capacity()
6934 data = (struct scsi_read_capacity_data *)ctsio->kern_data_ptr; in ctl_read_capacity()
6990 ctsio->kern_data_ptr = malloc(sizeof(*data), M_CTL, M_WAITOK | M_ZERO); in ctl_read_capacity_16()
6991 data = (struct scsi_read_capacity_data_long *)ctsio->kern_data_ptr; in ctl_read_capacity_16()
7036 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO); in ctl_get_lba_status()
7037 data = (struct scsi_get_lba_status_data *)ctsio->kern_data_ptr; in ctl_get_lba_status()
7091 ctsio->kern_data_ptr = malloc(data_len, M_CTL, M_WAITOK | M_ZERO); in ctl_read_defect()
7099 ctsio->kern_data_ptr; in ctl_read_defect()
7104 ctsio->kern_data_ptr; in ctl_read_defect()
7162 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO); in ctl_report_ident_info()
7168 rii_ptr = (struct scsi_report_ident_info_data *)ctsio->kern_data_ptr; in ctl_report_ident_info()
7261 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO); in ctl_report_tagret_port_groups()
7269 ctsio->kern_data_ptr; in ctl_report_tagret_port_groups()
7276 ctsio->kern_data_ptr; in ctl_report_tagret_port_groups()
7452 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO); in ctl_report_supported_opcodes()
7461 ctsio->kern_data_ptr; in ctl_report_supported_opcodes()
7496 ctsio->kern_data_ptr; in ctl_report_supported_opcodes()
7501 ctsio->kern_data_ptr; in ctl_report_supported_opcodes()
7517 ctsio->kern_data_ptr; in ctl_report_supported_opcodes()
7556 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO); in ctl_report_supported_tmf()
7562 data = (struct scsi_report_supported_tmf_ext_data *)ctsio->kern_data_ptr; in ctl_report_supported_tmf()
7594 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO); in ctl_report_timestamp()
7600 data = (struct scsi_report_timestamp_data *)ctsio->kern_data_ptr; in ctl_report_timestamp()
7658 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO); in ctl_persistent_reserve_in()
7670 res_keys = (struct scsi_per_res_in_keys*)ctsio->kern_data_ptr; in ctl_persistent_reserve_in()
7683 free(ctsio->kern_data_ptr, M_CTL); in ctl_persistent_reserve_in()
7718 res = (struct scsi_per_res_in_rsrv *)ctsio->kern_data_ptr; in ctl_persistent_reserve_in()
7743 free(ctsio->kern_data_ptr, M_CTL); in ctl_persistent_reserve_in()
7771 res_cap = (struct scsi_per_res_cap *)ctsio->kern_data_ptr; in ctl_persistent_reserve_in()
7790 res_status = (struct scsi_per_res_in_full*)ctsio->kern_data_ptr; in ctl_persistent_reserve_in()
7803 free(ctsio->kern_data_ptr, M_CTL); in ctl_persistent_reserve_in()
7926 free(ctsio->kern_data_ptr, M_CTL); in ctl_pro_preempt()
7952 free(ctsio->kern_data_ptr, M_CTL); in ctl_pro_preempt()
7974 free(ctsio->kern_data_ptr, M_CTL); in ctl_pro_preempt()
8089 free(ctsio->kern_data_ptr, M_CTL); in ctl_pro_preempt()
8234 ctsio->kern_data_ptr = malloc(param_len, M_CTL, M_WAITOK); in ctl_persistent_reserve_out()
8246 param = (struct scsi_per_res_out_parms *)ctsio->kern_data_ptr; in ctl_persistent_reserve_out()
8266 free(ctsio->kern_data_ptr, M_CTL); in ctl_persistent_reserve_out()
8276 free(ctsio->kern_data_ptr, M_CTL); in ctl_persistent_reserve_out()
8286 free(ctsio->kern_data_ptr, M_CTL); in ctl_persistent_reserve_out()
8314 free(ctsio->kern_data_ptr, M_CTL); in ctl_persistent_reserve_out()
8419 free(ctsio->kern_data_ptr, M_CTL); in ctl_persistent_reserve_out()
8474 free(ctsio->kern_data_ptr, M_CTL); in ctl_persistent_reserve_out()
8547 free(ctsio->kern_data_ptr, M_CTL); in ctl_persistent_reserve_out()
9150 ctsio->kern_data_ptr = malloc(lun_datalen, M_CTL, M_WAITOK | M_ZERO); in ctl_report_luns()
9151 lun_data = (struct scsi_report_luns_data *)ctsio->kern_data_ptr; in ctl_report_luns()
9251 ctsio->kern_data_ptr = malloc(sizeof(*sense_ptr), M_CTL, M_WAITOK); in ctl_request_sense()
9252 sense_ptr = (struct scsi_sense_data *)ctsio->kern_data_ptr; in ctl_request_sense()
9382 ctsio->kern_data_ptr = malloc(sup_page_size, M_CTL, M_WAITOK | M_ZERO); in ctl_inquiry_evpd_supported()
9383 pages = (struct scsi_vpd_supported_pages *)ctsio->kern_data_ptr; in ctl_inquiry_evpd_supported()
9445 ctsio->kern_data_ptr = malloc(data_len, M_CTL, M_WAITOK | M_ZERO); in ctl_inquiry_evpd_serial()
9446 sn_ptr = (struct scsi_vpd_unit_serial_number *)ctsio->kern_data_ptr; in ctl_inquiry_evpd_serial()
9493 ctsio->kern_data_ptr = malloc(data_len, M_CTL, M_WAITOK | M_ZERO); in ctl_inquiry_evpd_eid()
9494 eid_ptr = (struct scsi_vpd_extended_inquiry_data *)ctsio->kern_data_ptr; in ctl_inquiry_evpd_eid()
9559 ctsio->kern_data_ptr = malloc(data_len, M_CTL, M_WAITOK | M_ZERO); in ctl_inquiry_evpd_mpp()
9560 mpp_ptr = (struct scsi_vpd_mode_page_policy *)ctsio->kern_data_ptr; in ctl_inquiry_evpd_mpp()
9614 ctsio->kern_data_ptr = malloc(data_len, M_CTL, M_WAITOK | M_ZERO); in ctl_inquiry_evpd_devid()
9615 devid_ptr = (struct scsi_vpd_device_id *)ctsio->kern_data_ptr; in ctl_inquiry_evpd_devid()
9736 ctsio->kern_data_ptr = malloc(data_len, M_CTL, M_WAITOK | M_ZERO); in ctl_inquiry_evpd_scsi_ports()
9737 sp = (struct scsi_vpd_scsi_ports *)ctsio->kern_data_ptr; in ctl_inquiry_evpd_scsi_ports()
9804 ctsio->kern_data_ptr = malloc(sfs_page_size, M_CTL, M_WAITOK | M_ZERO); in ctl_inquiry_evpd_sfs()
9805 sfs_ptr = (struct scsi_vpd_sfs *)ctsio->kern_data_ptr; in ctl_inquiry_evpd_sfs()
9856 ctsio->kern_data_ptr = malloc(sizeof(*bl_ptr), M_CTL, M_WAITOK | M_ZERO); in ctl_inquiry_evpd_block_limits()
9857 bl_ptr = (struct scsi_vpd_block_limits *)ctsio->kern_data_ptr; in ctl_inquiry_evpd_block_limits()
9932 ctsio->kern_data_ptr = malloc(sizeof(*bdc_ptr), M_CTL, M_WAITOK | M_ZERO); in ctl_inquiry_evpd_bdc()
9933 bdc_ptr = (struct scsi_vpd_block_device_characteristics *)ctsio->kern_data_ptr; in ctl_inquiry_evpd_bdc()
9979 ctsio->kern_data_ptr = malloc(sizeof(*lbp_ptr), M_CTL, M_WAITOK | M_ZERO); in ctl_inquiry_evpd_lbp()
9980 lbp_ptr = (struct scsi_vpd_logical_block_prov *)ctsio->kern_data_ptr; in ctl_inquiry_evpd_lbp()
10118 ctsio->kern_data_ptr = malloc(data_len, M_CTL, M_WAITOK | M_ZERO); in ctl_inquiry_std()
10119 inq_ptr = (struct scsi_inquiry_data *)ctsio->kern_data_ptr; in ctl_inquiry_std()
10342 ctsio->kern_data_ptr = malloc(data_len, M_CTL, M_WAITOK | M_ZERO); in ctl_get_config()
10346 hdr = (struct scsi_get_config_header *)ctsio->kern_data_ptr; in ctl_get_config()
10538 ctsio->kern_data_ptr = malloc(data_len, M_CTL, M_WAITOK | M_ZERO); in ctl_get_event_status()
10544 hdr = (struct scsi_get_event_status_header *)ctsio->kern_data_ptr; in ctl_get_event_status()
10567 ctsio->kern_data_ptr = malloc(data_len, M_CTL, M_WAITOK | M_ZERO); in ctl_mechanism_status()
10573 hdr = (struct scsi_mechanism_status_header *)ctsio->kern_data_ptr; in ctl_mechanism_status()
10618 ctsio->kern_data_ptr = malloc(data_len, M_CTL, M_WAITOK | M_ZERO); in ctl_read_toc()
10624 hdr = (struct scsi_read_toc_hdr *)ctsio->kern_data_ptr; in ctl_read_toc()
12632 io->scsiio.kern_data_ptr = (uint8_t *)CTL_LSGL(io);
12683 io->scsiio.kern_data_ptr = (uint8_t *)CTL_LSGL(io);