steer 3111 drivers/net/ethernet/mellanox/mlx4/main.c priv->steer = kcalloc(num_entries, sizeof(struct mlx4_steer), steer 3113 drivers/net/ethernet/mellanox/mlx4/main.c if (!priv->steer) steer 3118 drivers/net/ethernet/mellanox/mlx4/main.c INIT_LIST_HEAD(&priv->steer[i].promisc_qps[j]); steer 3119 drivers/net/ethernet/mellanox/mlx4/main.c INIT_LIST_HEAD(&priv->steer[i].steer_entries[j]); steer 3135 drivers/net/ethernet/mellanox/mlx4/main.c &priv->steer[i].promisc_qps[j], steer 3141 drivers/net/ethernet/mellanox/mlx4/main.c &priv->steer[i].steer_entries[j], steer 3154 drivers/net/ethernet/mellanox/mlx4/main.c kfree(priv->steer); steer 96 drivers/net/ethernet/mellanox/mlx4/mcg.c static int mlx4_WRITE_PROMISC(struct mlx4_dev *dev, u8 port, u8 steer, steer 101 drivers/net/ethernet/mellanox/mlx4/mcg.c in_mod = (u32) port << 16 | steer << 1; steer 124 drivers/net/ethernet/mellanox/mlx4/mcg.c enum mlx4_steer_type steer, steer 133 drivers/net/ethernet/mellanox/mlx4/mcg.c s_steer = &mlx4_priv(dev)->steer[port - 1]; steer 135 drivers/net/ethernet/mellanox/mlx4/mcg.c list_for_each_entry(pqp, &s_steer->promisc_qps[steer], list) { steer 148 drivers/net/ethernet/mellanox/mlx4/mcg.c enum mlx4_steer_type steer, steer 164 drivers/net/ethernet/mellanox/mlx4/mcg.c s_steer = &mlx4_priv(dev)->steer[port - 1]; steer 171 drivers/net/ethernet/mellanox/mlx4/mcg.c list_add_tail(&new_entry->list, &s_steer->steer_entries[steer]); steer 176 drivers/net/ethernet/mellanox/mlx4/mcg.c pqp = get_promisc_qp(dev, port, steer, qpn); steer 188 drivers/net/ethernet/mellanox/mlx4/mcg.c if (list_empty(&s_steer->promisc_qps[steer])) steer 207 drivers/net/ethernet/mellanox/mlx4/mcg.c list_for_each_entry(pqp, &s_steer->promisc_qps[steer], list) { steer 240 drivers/net/ethernet/mellanox/mlx4/mcg.c enum mlx4_steer_type steer, steer 251 drivers/net/ethernet/mellanox/mlx4/mcg.c s_steer = &mlx4_priv(dev)->steer[port - 1]; steer 253 drivers/net/ethernet/mellanox/mlx4/mcg.c pqp = get_promisc_qp(dev, port, steer, qpn); steer 257 drivers/net/ethernet/mellanox/mlx4/mcg.c list_for_each_entry(tmp_entry, &s_steer->steer_entries[steer], list) { steer 289 drivers/net/ethernet/mellanox/mlx4/mcg.c enum mlx4_steer_type steer, steer 299 drivers/net/ethernet/mellanox/mlx4/mcg.c s_steer = &mlx4_priv(dev)->steer[port - 1]; steer 302 drivers/net/ethernet/mellanox/mlx4/mcg.c if (!get_promisc_qp(dev, port, steer, qpn)) steer 307 drivers/net/ethernet/mellanox/mlx4/mcg.c list_for_each_entry(tmp_entry, &s_steer->steer_entries[steer], list) { steer 330 drivers/net/ethernet/mellanox/mlx4/mcg.c enum mlx4_steer_type steer, steer 356 drivers/net/ethernet/mellanox/mlx4/mcg.c if (!get_promisc_qp(dev, port, steer, qpn) && qpn != tqpn) { steer 369 drivers/net/ethernet/mellanox/mlx4/mcg.c enum mlx4_steer_type steer, steer 380 drivers/net/ethernet/mellanox/mlx4/mcg.c s_steer = &mlx4_priv(dev)->steer[port - 1]; steer 382 drivers/net/ethernet/mellanox/mlx4/mcg.c if (!promisc_steering_entry(dev, port, steer, index, steer 389 drivers/net/ethernet/mellanox/mlx4/mcg.c list_for_each_entry_safe(entry, tmp_entry, &s_steer->steer_entries[steer], list) { steer 419 drivers/net/ethernet/mellanox/mlx4/mcg.c enum mlx4_steer_type steer, u32 qpn) steer 437 drivers/net/ethernet/mellanox/mlx4/mcg.c s_steer = &mlx4_priv(dev)->steer[port - 1]; steer 441 drivers/net/ethernet/mellanox/mlx4/mcg.c if (get_promisc_qp(dev, port, steer, qpn)) { steer 460 drivers/net/ethernet/mellanox/mlx4/mcg.c if (!(mlx4_is_mfunc(dev) && steer == MLX4_UC_STEER)) { steer 466 drivers/net/ethernet/mellanox/mlx4/mcg.c &s_steer->steer_entries[steer], steer 515 drivers/net/ethernet/mellanox/mlx4/mcg.c list_add_tail(&pqp->list, &s_steer->promisc_qps[steer]); steer 519 drivers/net/ethernet/mellanox/mlx4/mcg.c list_for_each_entry(dqp, &s_steer->promisc_qps[steer], list) { steer 529 drivers/net/ethernet/mellanox/mlx4/mcg.c err = mlx4_WRITE_PROMISC(dev, port, steer, mailbox); steer 549 drivers/net/ethernet/mellanox/mlx4/mcg.c enum mlx4_steer_type steer, u32 qpn) steer 567 drivers/net/ethernet/mellanox/mlx4/mcg.c s_steer = &mlx4_priv(dev)->steer[port - 1]; steer 570 drivers/net/ethernet/mellanox/mlx4/mcg.c pqp = get_promisc_qp(dev, port, steer, qpn); steer 590 drivers/net/ethernet/mellanox/mlx4/mcg.c list_for_each_entry(dqp, &s_steer->promisc_qps[steer], list) steer 594 drivers/net/ethernet/mellanox/mlx4/mcg.c err = mlx4_WRITE_PROMISC(dev, port, steer, mailbox); steer 598 drivers/net/ethernet/mellanox/mlx4/mcg.c if (!(mlx4_is_mfunc(dev) && steer == MLX4_UC_STEER)) { steer 601 drivers/net/ethernet/mellanox/mlx4/mcg.c &s_steer->steer_entries[steer], steer 671 drivers/net/ethernet/mellanox/mlx4/mcg.c list_add_tail(&pqp->list, &s_steer->promisc_qps[steer]); steer 1106 drivers/net/ethernet/mellanox/mlx4/mcg.c enum mlx4_steer_type steer) steer 1194 drivers/net/ethernet/mellanox/mlx4/mcg.c err = new_steering_entry(dev, port, steer, steer 1197 drivers/net/ethernet/mellanox/mlx4/mcg.c err = existing_steering_entry(dev, port, steer, steer 1215 drivers/net/ethernet/mellanox/mlx4/mcg.c enum mlx4_protocol prot, enum mlx4_steer_type steer) steer 1249 drivers/net/ethernet/mellanox/mlx4/mcg.c check_duplicate_entry(dev, port, steer, index, qp->qpn) && steer 1250 drivers/net/ethernet/mellanox/mlx4/mcg.c !promisc_steering_entry(dev, port, steer, index, qp->qpn, NULL)) steer 1272 drivers/net/ethernet/mellanox/mlx4/mcg.c removed_entry = can_remove_steering_entry(dev, port, steer, steer 1566 drivers/net/ethernet/mellanox/mlx4/mcg.c enum mlx4_steer_type steer = vhcr->in_modifier; steer 1572 drivers/net/ethernet/mellanox/mlx4/mcg.c if (mlx4_is_mfunc(dev) && steer == MLX4_UC_STEER) steer 1576 drivers/net/ethernet/mellanox/mlx4/mcg.c return add_promisc_qp(dev, port, steer, qpn); steer 1578 drivers/net/ethernet/mellanox/mlx4/mcg.c return remove_promisc_qp(dev, port, steer, qpn); steer 1582 drivers/net/ethernet/mellanox/mlx4/mcg.c enum mlx4_steer_type steer, u8 add, u8 port) steer 1584 drivers/net/ethernet/mellanox/mlx4/mcg.c return mlx4_cmd(dev, (u64) qpn | (u64) port << 62, (u32) steer, add, steer 913 drivers/net/ethernet/mellanox/mlx4/mlx4.h struct mlx4_steer *steer; steer 1322 drivers/net/ethernet/mellanox/mlx4/mlx4.h enum mlx4_protocol prot, enum mlx4_steer_type steer); steer 1325 drivers/net/ethernet/mellanox/mlx4/mlx4.h enum mlx4_steer_type steer); steer 91 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c enum mlx4_steer_type steer; steer 4029 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c enum mlx4_steer_type steer, u64 reg_id) steer 4045 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res->steer = steer; steer 4057 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c enum mlx4_steer_type steer, u64 *reg_id) steer 4064 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (!res || res->prot != prot || res->steer != steer) steer 4595 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c rgid->prot, rgid->steer);