Lines Matching refs:delay_drop

4533 	struct mlx5_ib_delay_drop *delay_drop =  in delay_drop_handler()  local
4537 atomic_inc(&delay_drop->events_cnt); in delay_drop_handler()
4539 mutex_lock(&delay_drop->lock); in delay_drop_handler()
4540 err = mlx5_core_set_delay_drop(delay_drop->dev->mdev, in delay_drop_handler()
4541 delay_drop->timeout); in delay_drop_handler()
4543 mlx5_ib_warn(delay_drop->dev, "Failed to set delay drop, timeout=%u\n", in delay_drop_handler()
4544 delay_drop->timeout); in delay_drop_handler()
4545 delay_drop->activate = false; in delay_drop_handler()
4547 mutex_unlock(&delay_drop->lock); in delay_drop_handler()
4559 schedule_work(&ibdev->delay_drop.delay_drop_work); in handle_general_event()
5713 if (!dev->delay_drop.dbg) in delay_drop_debugfs_cleanup()
5715 debugfs_remove_recursive(dev->delay_drop.dbg->dir_debugfs); in delay_drop_debugfs_cleanup()
5716 kfree(dev->delay_drop.dbg); in delay_drop_debugfs_cleanup()
5717 dev->delay_drop.dbg = NULL; in delay_drop_debugfs_cleanup()
5725 cancel_work_sync(&dev->delay_drop.delay_drop_work); in cancel_delay_drop()
5732 struct mlx5_ib_delay_drop *delay_drop = filp->private_data; in delay_drop_timeout_read() local
5736 len = snprintf(lbuf, sizeof(lbuf), "%u\n", delay_drop->timeout); in delay_drop_timeout_read()
5743 struct mlx5_ib_delay_drop *delay_drop = filp->private_data; in delay_drop_timeout_write() local
5753 mlx5_ib_dbg(delay_drop->dev, "Round delay drop timeout to %u usec\n", in delay_drop_timeout_write()
5756 delay_drop->timeout = timeout; in delay_drop_timeout_write()
5779 dev->delay_drop.dbg = dbg; in delay_drop_debugfs_init()
5790 &dev->delay_drop.events_cnt); in delay_drop_debugfs_init()
5797 &dev->delay_drop.rqs_cnt); in delay_drop_debugfs_init()
5804 &dev->delay_drop, in delay_drop_debugfs_init()
5821 mutex_init(&dev->delay_drop.lock); in init_delay_drop()
5822 dev->delay_drop.dev = dev; in init_delay_drop()
5823 dev->delay_drop.activate = false; in init_delay_drop()
5824 dev->delay_drop.timeout = MLX5_MAX_DELAY_DROP_TIMEOUT_MS * 1000; in init_delay_drop()
5825 INIT_WORK(&dev->delay_drop.delay_drop_work, delay_drop_handler); in init_delay_drop()
5826 atomic_set(&dev->delay_drop.rqs_cnt, 0); in init_delay_drop()
5827 atomic_set(&dev->delay_drop.events_cnt, 0); in init_delay_drop()