/linux-6.6.21/drivers/scsi/isci/ |
D | host.c | 179 static bool sci_controller_completion_queue_has_entries(struct isci_host *ihost) in sci_controller_completion_queue_has_entries() argument 181 u32 get_value = ihost->completion_queue_get; in sci_controller_completion_queue_has_entries() 185 COMPLETION_QUEUE_CYCLE_BIT(ihost->completion_queue[get_index])) in sci_controller_completion_queue_has_entries() 191 static bool sci_controller_isr(struct isci_host *ihost) in sci_controller_isr() argument 193 if (sci_controller_completion_queue_has_entries(ihost)) in sci_controller_isr() 200 writel(SMU_ISR_COMPLETION, &ihost->smu_registers->interrupt_status); in sci_controller_isr() 208 spin_lock(&ihost->scic_lock); in sci_controller_isr() 209 if (test_bit(IHOST_IRQ_ENABLED, &ihost->flags)) { in sci_controller_isr() 210 writel(0xFF000000, &ihost->smu_registers->interrupt_mask); in sci_controller_isr() 211 writel(0, &ihost->smu_registers->interrupt_mask); in sci_controller_isr() [all …]
|
D | task.c | 76 static void isci_task_refuse(struct isci_host *ihost, struct sas_task *task, in isci_task_refuse() argument 84 dev_dbg(&ihost->pdev->dev, "%s: task = %p, response=%d, status=%d\n", in isci_task_refuse() 125 struct isci_host *ihost = dev_to_ihost(task->dev); in isci_task_execute_task() local 132 spin_lock_irqsave(&ihost->scic_lock, flags); in isci_task_execute_task() 135 tag = isci_alloc_tag(ihost); in isci_task_execute_task() 136 spin_unlock_irqrestore(&ihost->scic_lock, flags); in isci_task_execute_task() 138 dev_dbg(&ihost->pdev->dev, in isci_task_execute_task() 144 isci_task_refuse(ihost, task, SAS_TASK_UNDELIVERED, in isci_task_execute_task() 150 isci_task_refuse(ihost, task, SAS_TASK_COMPLETE, in isci_task_execute_task() 160 isci_task_refuse(ihost, task, in isci_task_execute_task() [all …]
|
D | host.h | 112 bool is_port_config_apc(struct isci_host *ihost); 113 bool is_controller_start_complete(struct isci_host *ihost); 307 static inline struct Scsi_Host *to_shost(struct isci_host *ihost) in to_shost() argument 309 return ihost->sas_ha.shost; in to_shost() 312 #define for_each_isci_host(id, ihost, pdev) \ argument 314 (ihost = to_pci_info(pdev)->hosts[id]); id++) 316 static inline void wait_for_start(struct isci_host *ihost) in wait_for_start() argument 318 wait_event(ihost->eventq, !test_bit(IHOST_START_PENDING, &ihost->flags)); in wait_for_start() 321 static inline void wait_for_stop(struct isci_host *ihost) in wait_for_stop() argument 323 wait_event(ihost->eventq, !test_bit(IHOST_STOP_PENDING, &ihost->flags)); in wait_for_stop() [all …]
|
D | port_config.c | 116 struct isci_host *ihost, in sci_port_configuration_agent_find_port() argument 133 for (i = 0; i < ihost->logical_port_entries; i++) { in sci_port_configuration_agent_find_port() 134 struct isci_port *iport = &ihost->ports[i]; in sci_port_configuration_agent_find_port() 160 struct isci_host *ihost, in sci_port_configuration_agent_validate_ports() argument 197 sci_phy_get_sas_address(&ihost->phys[0], &first_address); in sci_port_configuration_agent_validate_ports() 198 sci_phy_get_sas_address(&ihost->phys[3], &second_address); in sci_port_configuration_agent_validate_ports() 210 sci_phy_get_sas_address(&ihost->phys[0], &first_address); in sci_port_configuration_agent_validate_ports() 211 sci_phy_get_sas_address(&ihost->phys[2], &second_address); in sci_port_configuration_agent_validate_ports() 224 sci_phy_get_sas_address(&ihost->phys[1], &first_address); in sci_port_configuration_agent_validate_ports() 225 sci_phy_get_sas_address(&ihost->phys[3], &second_address); in sci_port_configuration_agent_validate_ports() [all …]
|
D | init.c | 138 struct isci_host *ihost = container_of(sas_ha, typeof(*ihost), sas_ha); in isci_show_id() local 140 return snprintf(buf, PAGE_SIZE, "%d\n", ihost->id); in isci_show_id() 334 struct isci_host *ihost; in isci_setup_interrupts() local 351 ihost = pci_info->hosts[id]; in isci_setup_interrupts() 359 isr, 0, DRV_NAME"-msix", ihost); in isci_setup_interrupts() 366 ihost = pci_info->hosts[id]; in isci_setup_interrupts() 368 ihost); in isci_setup_interrupts() 376 for_each_isci_host(i, ihost, pdev) { in isci_setup_interrupts() 379 ihost); in isci_setup_interrupts() 409 static enum sci_status sci_user_parameters_set(struct isci_host *ihost, in sci_user_parameters_set() argument [all …]
|
D | remote_device.c | 90 static void isci_remote_device_ready(struct isci_host *ihost, struct isci_remote_device *idev) in isci_remote_device_ready() argument 92 dev_dbg(&ihost->pdev->dev, in isci_remote_device_ready() 98 wake_up(&ihost->eventq); in isci_remote_device_ready() 102 struct isci_host *ihost, in sci_remote_device_terminate_req() argument 112 dev_dbg(&ihost->pdev->dev, in sci_remote_device_terminate_req() 118 return sci_controller_terminate_request(ihost, idev, ireq); in sci_remote_device_terminate_req() 125 struct isci_host *ihost = idev->owning_port->owning_controller; in sci_remote_device_terminate_reqs_checkabort() local 130 struct isci_request *ireq = ihost->reqs[i]; in sci_remote_device_terminate_reqs_checkabort() 133 s = sci_remote_device_terminate_req(ihost, idev, chk, ireq); in sci_remote_device_terminate_reqs_checkabort() 154 struct isci_host *ihost, in isci_check_reqterm() argument [all …]
|
D | port.c | 77 struct isci_host *ihost; in sciport_to_dev() local 83 ihost = container_of(table, typeof(*ihost), ports[0]); in sciport_to_dev() 85 return &ihost->pdev->dev; in sciport_to_dev() 159 static void isci_port_bc_change_received(struct isci_host *ihost, in isci_port_bc_change_received() argument 163 dev_dbg(&ihost->pdev->dev, in isci_port_bc_change_received() 319 struct isci_host *ihost = isci_port->owning_controller; in isci_port_hard_reset_complete() local 321 dev_dbg(&ihost->pdev->dev, in isci_port_hard_reset_complete() 333 struct isci_phy *iphy = &ihost->phys[phy_idx]; in isci_port_hard_reset_complete() 339 isci_port_link_down(ihost, iphy, isci_port); in isci_port_hard_reset_complete() 348 wake_up(&ihost->eventq); in isci_port_hard_reset_complete() [all …]
|
D | phy.c | 83 struct isci_host *ihost = container_of(table, typeof(*ihost), phys[0]); in phy_to_host() local 85 return ihost; in phy_to_host() 119 struct isci_host *ihost = iphy->owning_port->owning_controller; in sci_phy_link_layer_initialization() local 131 phy_user = &ihost->user_parameters.phys[phy_idx]; in sci_phy_link_layer_initialization() 132 phy_oem = &ihost->oem_parameters.phys[phy_idx]; in sci_phy_link_layer_initialization() 170 if (ihost->oem_parameters.controller.do_enable_ssc) { in sci_phy_link_layer_initialization() 171 struct scu_afe_registers __iomem *afe = &ihost->scu_registers->afe; in sci_phy_link_layer_initialization() 173 struct isci_pci_info *pci_info = to_pci_info(ihost->pdev); in sci_phy_link_layer_initialization() 187 sata_spread = ihost->oem_parameters.controller.ssc_sata_tx_spread_level; in sci_phy_link_layer_initialization() 188 sas_spread = ihost->oem_parameters.controller.ssc_sas_tx_spread_level; in sci_phy_link_layer_initialization() [all …]
|
D | remote_device.h | 139 enum sci_status isci_remote_device_stop(struct isci_host *ihost, 141 void isci_remote_device_nuke_requests(struct isci_host *ihost, 322 struct isci_host *ihost, 327 struct isci_host *ihost, 332 struct isci_host *ihost, 351 struct isci_host *ihost, 360 struct isci_host *ihost, 364 struct isci_host *ihost, 368 struct isci_host *ihost, 372 struct isci_host *ihost, [all …]
|
D | request.c | 87 static dma_addr_t to_sgl_element_pair_dma(struct isci_host *ihost, in to_sgl_element_pair_dma() argument 94 (void *) &ihost->task_context_table[0]; in to_sgl_element_pair_dma() 95 return ihost->tc_dma + offset; in to_sgl_element_pair_dma() 98 (void *) &ihost->task_context_table[0]; in to_sgl_element_pair_dma() 99 return ihost->tc_dma + offset; in to_sgl_element_pair_dma() 115 struct isci_host *ihost = ireq->isci_host; in sci_request_build_sgl() local 137 dma_addr = to_sgl_element_pair_dma(ihost, in sci_request_build_sgl() 153 dma_addr = dma_map_single(&ihost->pdev->dev, in sci_request_build_sgl() 783 struct isci_host *ihost = ireq->owning_controller; in sci_req_tx_bytes() local 786 if (readl(&ihost->smu_registers->address_modifier) == 0) { in sci_req_tx_bytes() [all …]
|
D | remote_node_context.c | 105 static union scu_remote_node_context *sci_rnc_by_id(struct isci_host *ihost, u16 id) in sci_rnc_by_id() argument 107 if (id < ihost->remote_node_entries && in sci_rnc_by_id() 108 ihost->device_table[id]) in sci_rnc_by_id() 109 return &ihost->remote_node_context_table[id]; in sci_rnc_by_id() 120 struct isci_host *ihost; in sci_remote_node_context_construct_buffer() local 123 ihost = idev->owning_port->owning_controller; in sci_remote_node_context_construct_buffer() 124 rnc = sci_rnc_by_id(ihost, rni); in sci_remote_node_context_construct_buffer() 148 ihost->user_parameters.stp_max_occupancy_timeout; in sci_remote_node_context_construct_buffer() 150 ihost->user_parameters.stp_inactivity_timeout; in sci_remote_node_context_construct_buffer() 153 ihost->user_parameters.ssp_max_occupancy_timeout; in sci_remote_node_context_construct_buffer() [all …]
|
D | unsolicited_frame_control.c | 60 void sci_unsolicited_frame_control_construct(struct isci_host *ihost) in sci_unsolicited_frame_control_construct() argument 62 struct sci_unsolicited_frame_control *uf_control = &ihost->uf_control; in sci_unsolicited_frame_control_construct() 64 dma_addr_t dma = ihost->ufi_dma; in sci_unsolicited_frame_control_construct() 65 void *virt = ihost->ufi_buf; in sci_unsolicited_frame_control_construct()
|
D | request.h | 290 struct isci_request *isci_tmf_request_from_tag(struct isci_host *ihost, 293 int isci_request_execute(struct isci_host *ihost, struct isci_remote_device *idev, 295 struct isci_request *isci_io_request_from_tag(struct isci_host *ihost, 299 sci_task_request_construct(struct isci_host *ihost,
|
D | task.h | 99 static inline void isci_print_tmf(struct isci_host *ihost, struct isci_tmf *tmf) in isci_print_tmf() argument 102 dev_dbg(&ihost->pdev->dev, in isci_print_tmf() 111 dev_dbg(&ihost->pdev->dev, in isci_print_tmf()
|
D | port.h | 205 struct isci_host *ihost); 280 int isci_port_perform_hard_reset(struct isci_host *ihost, struct isci_port *iport,
|
D | unsolicited_frame_control.h | 266 void sci_unsolicited_frame_control_construct(struct isci_host *ihost);
|
D | phy.h | 456 void isci_phy_init(struct isci_phy *iphy, struct isci_host *ihost, int index);
|
/linux-6.6.21/drivers/scsi/ |
D | libiscsi.c | 91 struct iscsi_host *ihost = shost_priv(shost); in iscsi_conn_queue_xmit() local 93 if (ihost->workq) in iscsi_conn_queue_xmit() 94 queue_work(ihost->workq, &conn->xmitwork); in iscsi_conn_queue_xmit() 101 struct iscsi_host *ihost = shost_priv(shost); in iscsi_conn_queue_recv() local 103 if (ihost->workq && !test_bit(ISCSI_CONN_FLAG_SUSPEND_RX, &conn->flags)) in iscsi_conn_queue_recv() 104 queue_work(ihost->workq, &conn->recvwork); in iscsi_conn_queue_recv() 808 struct iscsi_host *ihost = shost_priv(conn->session->host); in iscsi_send_mgmt_task() local 811 if (!ihost->workq) { in iscsi_send_mgmt_task() 1753 struct iscsi_host *ihost; in iscsi_queuecommand() local 1762 ihost = shost_priv(host); in iscsi_queuecommand() [all …]
|
D | scsi_transport_iscsi.c | 1534 iscsi_bsg_host_add(struct Scsi_Host *shost, struct iscsi_cls_host *ihost) in iscsi_bsg_host_add() argument 1553 ihost->bsg_q = q; in iscsi_bsg_host_add() 1561 struct iscsi_cls_host *ihost = shost->shost_data; in iscsi_setup_host() local 1563 memset(ihost, 0, sizeof(*ihost)); in iscsi_setup_host() 1564 mutex_init(&ihost->mutex); in iscsi_setup_host() 1566 iscsi_bsg_host_add(shost, ihost); in iscsi_setup_host() 1576 struct iscsi_cls_host *ihost = shost->shost_data; in iscsi_remove_host() local 1578 bsg_remove_queue(ihost->bsg_q); in iscsi_remove_host() 1769 struct iscsi_cls_host *ihost; in iscsi_user_scan_session() local 1781 ihost = shost->shost_data; in iscsi_user_scan_session() [all …]
|
/linux-6.6.21/drivers/scsi/be2iscsi/ |
D | be_iscsi.c | 707 struct iscsi_cls_host *ihost = shost->shost_data; in beiscsi_get_port_state() local 709 ihost->port_state = test_bit(BEISCSI_HBA_LINK_UP, &phba->state) ? in beiscsi_get_port_state() 721 struct iscsi_cls_host *ihost = shost->shost_data; in beiscsi_get_port_speed() local 725 ihost->port_speed = ISCSI_PORT_SPEED_10MBPS; in beiscsi_get_port_speed() 728 ihost->port_speed = ISCSI_PORT_SPEED_100MBPS; in beiscsi_get_port_speed() 731 ihost->port_speed = ISCSI_PORT_SPEED_1GBPS; in beiscsi_get_port_speed() 734 ihost->port_speed = ISCSI_PORT_SPEED_10GBPS; in beiscsi_get_port_speed() 737 ihost->port_speed = ISCSI_PORT_SPEED_25GBPS; in beiscsi_get_port_speed() 740 ihost->port_speed = ISCSI_PORT_SPEED_40GBPS; in beiscsi_get_port_speed() 743 ihost->port_speed = ISCSI_PORT_SPEED_UNKNOWN; in beiscsi_get_port_speed()
|
/linux-6.6.21/drivers/scsi/qla4xxx/ |
D | ql4_os.c | 1898 struct iscsi_cls_host *ihost = shost->shost_data; in qla4xxx_set_port_speed() local 1917 ihost->port_speed = speed; in qla4xxx_set_port_speed() 1923 struct iscsi_cls_host *ihost = shost->shost_data; in qla4xxx_set_port_state() local 1929 ihost->port_state = state; in qla4xxx_set_port_state()
|