Lines Matching refs:dlp
261 struct devlink_port *dlp = &dp->devlink_port; in dsa_port_setup() local
273 memset(dlp, 0, sizeof(*dlp)); in dsa_port_setup()
274 devlink_port_attrs_set(dlp, DEVLINK_PORT_FLAVOUR_CPU, in dsa_port_setup()
276 err = devlink_port_register(dl, dlp, dp->index); in dsa_port_setup()
293 memset(dlp, 0, sizeof(*dlp)); in dsa_port_setup()
294 devlink_port_attrs_set(dlp, DEVLINK_PORT_FLAVOUR_DSA, in dsa_port_setup()
296 err = devlink_port_register(dl, dlp, dp->index); in dsa_port_setup()
313 memset(dlp, 0, sizeof(*dlp)); in dsa_port_setup()
314 devlink_port_attrs_set(dlp, DEVLINK_PORT_FLAVOUR_PHYSICAL, in dsa_port_setup()
316 err = devlink_port_register(dl, dlp, dp->index); in dsa_port_setup()
326 devlink_port_type_eth_set(dlp, dp->slave); in dsa_port_setup()
335 devlink_port_unregister(dlp); in dsa_port_setup()
342 struct devlink_port *dlp = &dp->devlink_port; in dsa_port_teardown() local
350 devlink_port_unregister(dlp); in dsa_port_teardown()
355 devlink_port_unregister(dlp); in dsa_port_teardown()
359 devlink_port_unregister(dlp); in dsa_port_teardown()