Lines Matching defs:ehi
165 static __printf(2, 0) void __ata_ehi_pushv_desc(struct ata_eh_info *ehi,
168 ehi->desc_len += vscnprintf(ehi->desc + ehi->desc_len,
169 ATA_EH_DESC_LEN - ehi->desc_len,
175 * @ehi: target EHI
178 * Format string according to @fmt and append it to @ehi->desc.
183 void __ata_ehi_push_desc(struct ata_eh_info *ehi, const char *fmt, ...)
188 __ata_ehi_pushv_desc(ehi, fmt, args);
195 * @ehi: target EHI
198 * Format string according to @fmt and append it to @ehi->desc.
199 * If @ehi->desc is not empty, ", " is added in-between.
204 void ata_ehi_push_desc(struct ata_eh_info *ehi, const char *fmt, ...)
208 if (ehi->desc_len)
209 __ata_ehi_push_desc(ehi, ", ");
212 __ata_ehi_pushv_desc(ehi, fmt, args);
219 * @ehi: target EHI
221 * Clear @ehi->desc.
226 void ata_ehi_clear_desc(struct ata_eh_info *ehi)
228 ehi->desc[0] = '\0';
229 ehi->desc_len = 0;
433 struct ata_eh_info *ehi, unsigned int action)
438 ehi->action &= ~action;
440 ehi->dev_action[tdev->devno] &= ~action;
445 /* break ehi->action into ehi->dev_action */
446 if (ehi->action & action) {
448 ehi->dev_action[tdev->devno] |=
449 ehi->action & action;
450 ehi->action &= ~action;
454 ehi->dev_action[dev->devno] &= ~action;
1286 struct ata_eh_info *ehi = &link->eh_info;
1292 ata_eh_clear_action(link, dev, ehi, action);
2870 struct ata_eh_info *ehi = &link->eh_info;
2873 ehi->dev_action[dev->devno] & ATA_EH_PARK;
2874 ata_eh_clear_action(link, dev, ehi, ATA_EH_PARK);