Lines Matching refs:ehi
169 static __printf(2, 0) void __ata_ehi_pushv_desc(struct ata_eh_info *ehi,
172 ehi->desc_len += vscnprintf(ehi->desc + ehi->desc_len,
173 ATA_EH_DESC_LEN - ehi->desc_len,
179 * @ehi: target EHI
182 * Format string according to @fmt and append it to @ehi->desc.
187 void __ata_ehi_push_desc(struct ata_eh_info *ehi, const char *fmt, ...)
192 __ata_ehi_pushv_desc(ehi, fmt, args);
199 * @ehi: target EHI
202 * Format string according to @fmt and append it to @ehi->desc.
203 * If @ehi->desc is not empty, ", " is added in-between.
208 void ata_ehi_push_desc(struct ata_eh_info *ehi, const char *fmt, ...)
212 if (ehi->desc_len)
213 __ata_ehi_push_desc(ehi, ", ");
216 __ata_ehi_pushv_desc(ehi, fmt, args);
223 * @ehi: target EHI
225 * Clear @ehi->desc.
230 void ata_ehi_clear_desc(struct ata_eh_info *ehi)
232 ehi->desc[0] = '\0';
233 ehi->desc_len = 0;
437 struct ata_eh_info *ehi, unsigned int action)
442 ehi->action &= ~action;
444 ehi->dev_action[tdev->devno] &= ~action;
449 /* break ehi->action into ehi->dev_action */
450 if (ehi->action & action) {
452 ehi->dev_action[tdev->devno] |=
453 ehi->action & action;
454 ehi->action &= ~action;
458 ehi->dev_action[dev->devno] &= ~action;
1285 struct ata_eh_info *ehi = &link->eh_info;
1293 ata_eh_clear_action(link, dev, ehi, action);
2987 struct ata_eh_info *ehi = &link->eh_info;
2990 ehi->dev_action[dev->devno] & ATA_EH_PARK;
2991 ata_eh_clear_action(link, dev, ehi, ATA_EH_PARK);