Lines Matching refs:user_mtu
1286 u16 user_mtu, prev_user_mtu; in mlx4_en_set_port_user_mtu() local
1291 user_mtu = be16_to_cpu(gen_context->user_mtu); in mlx4_en_set_port_user_mtu()
1292 user_mtu = min_t(int, user_mtu, dev->caps.eth_mtu_cap[port]); in mlx4_en_set_port_user_mtu()
1293 prev_user_mtu = slave_st->user_mtu[port]; in mlx4_en_set_port_user_mtu()
1294 slave_st->user_mtu[port] = user_mtu; in mlx4_en_set_port_user_mtu()
1295 if (user_mtu > master->max_user_mtu[port]) in mlx4_en_set_port_user_mtu()
1296 master->max_user_mtu[port] = user_mtu; in mlx4_en_set_port_user_mtu()
1297 if (user_mtu < prev_user_mtu && in mlx4_en_set_port_user_mtu()
1301 slave_st->user_mtu[port] = user_mtu; in mlx4_en_set_port_user_mtu()
1302 master->max_user_mtu[port] = user_mtu; in mlx4_en_set_port_user_mtu()
1306 master->slave_state[i].user_mtu[port]); in mlx4_en_set_port_user_mtu()
1308 gen_context->user_mtu = cpu_to_be16(master->max_user_mtu[port]); in mlx4_en_set_port_user_mtu()
1680 int mlx4_SET_PORT_user_mtu(struct mlx4_dev *dev, u8 port, u16 user_mtu) in mlx4_SET_PORT_user_mtu() argument
1692 context->user_mtu = cpu_to_be16(user_mtu); in mlx4_SET_PORT_user_mtu()