Lines Matching +full:use +full:- +full:sw +full:- +full:pm

1 /* SPDX-License-Identifier: GPL-2.0-only */
63 /* ---------- Expander Devices ---------- */
129 /* ---------- SATA device ---------- */
134 u8 port_no; /* port number, if this is a PM (Port) */
206 static inline void INIT_SAS_WORK(struct sas_work *sw, void (*fn)(struct work_struct *)) in INIT_SAS_WORK() argument
208 INIT_WORK(&sw->work, fn); in INIT_SAS_WORK()
209 INIT_LIST_HEAD(&sw->drain_node); in INIT_SAS_WORK()
287 INIT_SAS_WORK(&ev->work, fn); in INIT_SAS_EVENT()
288 ev->phy = phy; in INIT_SAS_EVENT()
289 ev->event = event; in INIT_SAS_EVENT()
384 #define SHOST_TO_SAS_HA(_shost) (*(struct sas_ha_struct **)(_shost)->hostdata)
388 return starget->hostdata; in starget_to_domain_dev()
393 return starget_to_domain_dev(sdev->sdev_target); in sdev_to_domain_dev()
398 return &dev->sata_dev.ap->link.device[0]; in sas_to_ata_dev()
404 return sdev_to_domain_dev(cmd->device); in cmd_to_domain_dev()
407 /* Before calling a notify event, LLDD should use this function
414 phy->oob_mode = OOB_NOT_CONNECTED; in sas_phy_disconnected()
415 phy->linkrate = SAS_LINK_RATE_UNKNOWN; in sas_phy_disconnected()
425 put_device(&phy->dev); in sas_put_local_phy()
433 return -1; in try_test_sas_gpio_gp_bit()
437 /* ---------- Tasks ---------- */
441 ---------------------+---------------------+-----------------------+
448 ---------------------+---------------------+-----------------------+
453 SAS_TASK_UNDELIVERED = -1,
485 * - For an ATA task task_status_struct::stat is set to
488 * - For SSP tasks, if no data is present or status/TMF response
504 u8 ending_fis[ATA_RESP_FIS_SIZE]; /* dev to host or data-in */
589 u8 data_dir:2; /* Use PCI_DMA_... */
594 void *lldd_task; /* for use by LLDDs */
616 return task->task_proto == SAS_PROTOCOL_INTERNAL_ABORT; in sas_is_internal_abort()
623 if (task->task_proto & SAS_PROTOCOL_STP_ALL) { in sas_task_find_rq()
624 struct ata_queued_cmd *qc = task->uldd_task; in sas_task_find_rq()
626 scmd = qc ? qc->scsicmd : NULL; in sas_task_find_rq()
628 scmd = task->uldd_task; in sas_task_find_rq()
739 .this_id = -1, \