Lines Matching refs:zdev
62 static bool is_passed_through(struct zpci_dev *zdev) in is_passed_through() argument
64 return zdev->s390_domain; in is_passed_through()
98 struct zpci_dev *zdev = to_zpci(pdev); in zpci_event_do_error_state_clear() local
102 rc = zpci_reset_load_store_blocked(zdev); in zpci_event_do_error_state_clear()
122 rc = zpci_clear_error_state(zdev); in zpci_event_do_error_state_clear()
253 struct zpci_dev *zdev = get_zdev_by_fid(ccdf->fid); in __zpci_event_error() local
262 if (zdev) { in __zpci_event_error()
263 zpci_update_fh(zdev, ccdf->fh); in __zpci_event_error()
264 if (zdev->zbus->bus) in __zpci_event_error()
265 pdev = pci_get_slot(zdev->zbus->bus, zdev->devfn); in __zpci_event_error()
297 static void zpci_event_hard_deconfigured(struct zpci_dev *zdev, u32 fh) in zpci_event_hard_deconfigured() argument
299 zpci_update_fh(zdev, fh); in zpci_event_hard_deconfigured()
303 zpci_bus_remove_device(zdev, true); in zpci_event_hard_deconfigured()
307 if (zdev->dma_table) in zpci_event_hard_deconfigured()
308 zpci_dma_exit_device(zdev); in zpci_event_hard_deconfigured()
309 if (zdev_enabled(zdev)) in zpci_event_hard_deconfigured()
310 zpci_disable_device(zdev); in zpci_event_hard_deconfigured()
311 zdev->state = ZPCI_FN_STATE_STANDBY; in zpci_event_hard_deconfigured()
316 struct zpci_dev *zdev = get_zdev_by_fid(ccdf->fid); in __zpci_event_availability() local
326 if (!zdev) { in __zpci_event_availability()
327 zdev = zpci_create_device(ccdf->fid, ccdf->fh, ZPCI_FN_STATE_CONFIGURED); in __zpci_event_availability()
328 if (IS_ERR(zdev)) in __zpci_event_availability()
332 if (zdev->state != ZPCI_FN_STATE_STANDBY) in __zpci_event_availability()
334 zdev->state = ZPCI_FN_STATE_CONFIGURED; in __zpci_event_availability()
336 zpci_scan_configured_device(zdev, ccdf->fh); in __zpci_event_availability()
339 if (!zdev) in __zpci_event_availability()
342 zpci_update_fh(zdev, ccdf->fh); in __zpci_event_availability()
345 if (zdev) { in __zpci_event_availability()
349 if (zdev->state != ZPCI_FN_STATE_CONFIGURED) in __zpci_event_availability()
351 zpci_update_fh(zdev, ccdf->fh); in __zpci_event_availability()
352 zpci_deconfigure_device(zdev); in __zpci_event_availability()
356 if (zdev) { in __zpci_event_availability()
360 if (zdev->state == ZPCI_FN_STATE_CONFIGURED) in __zpci_event_availability()
361 zpci_event_hard_deconfigured(zdev, ccdf->fh); in __zpci_event_availability()
363 if (!clp_get_state(zdev->fid, &state) && in __zpci_event_availability()
365 zpci_device_reserved(zdev); in __zpci_event_availability()
374 if (!zdev) in __zpci_event_availability()
376 zpci_device_reserved(zdev); in __zpci_event_availability()