Lines Matching refs:line_cards
42 struct mlxsw_m_line_card **line_cards; member
329 return &mlxsw_m->line_cards[slot_index]->module_to_port[module]; in mlxsw_m_port_mapping_get()
347 if (mlxsw_m->line_cards[slot_index]->active) in mlxsw_m_port_module_map()
404 mlxsw_m->line_cards = kcalloc(mlxsw_m->num_of_slots, in mlxsw_m_linecards_init()
405 sizeof(*mlxsw_m->line_cards), in mlxsw_m_linecards_init()
407 if (!mlxsw_m->line_cards) { in mlxsw_m_linecards_init()
413 mlxsw_m->line_cards[i] = in mlxsw_m_linecards_init()
414 kzalloc(struct_size(mlxsw_m->line_cards[i], in mlxsw_m_linecards_init()
418 if (!mlxsw_m->line_cards[i]) { in mlxsw_m_linecards_init()
425 mlxsw_m->line_cards[i]->module_to_port[j] = -1; in mlxsw_m_linecards_init()
432 kfree(mlxsw_m->line_cards[i]); in mlxsw_m_linecards_init()
443 kfree(mlxsw_m->line_cards[i]); in mlxsw_m_linecards_fini()
444 kfree(mlxsw_m->line_cards); in mlxsw_m_linecards_fini()
476 if (!mlxsw_m->line_cards[slot_index]->active) in mlxsw_m_linecard_ports_create()
477 mlxsw_m->line_cards[slot_index]->active = true; in mlxsw_m_linecard_ports_create()
489 if (mlxsw_m->line_cards[slot_index]->active) in mlxsw_m_linecard_ports_create()
490 mlxsw_m->line_cards[slot_index]->active = false; in mlxsw_m_linecard_ports_create()
565 linecard = mlxsw_m->line_cards[linecard_priv->slot_index]; in mlxsw_m_ports_remove_selected()
599 linecard = mlxsw_m->line_cards[slot_index]; in mlxsw_m_got_active()
632 linecard = mlxsw_m->line_cards[slot_index]; in mlxsw_m_got_inactive()