Home
last modified time | relevance | path

Searched refs:linecard_bdev (Results 1 – 1 of 1) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dcore_linecard_dev.c43 struct mlxsw_linecard_bdev *linecard_bdev = in mlxsw_linecard_bdev_release() local
47 kfree(linecard_bdev); in mlxsw_linecard_bdev_release()
52 struct mlxsw_linecard_bdev *linecard_bdev; in mlxsw_linecard_bdev_add() local
60 linecard_bdev = kzalloc(sizeof(*linecard_bdev), GFP_KERNEL); in mlxsw_linecard_bdev_add()
61 if (!linecard_bdev) { in mlxsw_linecard_bdev_add()
65 linecard_bdev->adev.id = id; in mlxsw_linecard_bdev_add()
66 linecard_bdev->adev.name = MLXSW_LINECARD_DEV_ID_NAME; in mlxsw_linecard_bdev_add()
67 linecard_bdev->adev.dev.release = mlxsw_linecard_bdev_release; in mlxsw_linecard_bdev_add()
68 linecard_bdev->adev.dev.parent = linecard->linecards->bus_info->dev; in mlxsw_linecard_bdev_add()
69 linecard_bdev->linecard = linecard; in mlxsw_linecard_bdev_add()
[all …]