Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/
Dmain.c387 if (mlx4_is_master(dev)) in mlx4_enable_cqe_eqe_stride()
648 if (mlx4_is_master(dev) && (dev->caps.num_ports == 2) && in mlx4_dev_cap()
695 dev->caps.sqp_demux = (mlx4_is_master(dev)) ? MLX4_MAX_NUM_SLAVES : 0; in mlx4_dev_cap()
716 mlx4_is_master(dev)) in mlx4_dev_cap()
783 if (!mlx4_is_master(dev)) in mlx4_sync_pkey_table()
794 if (!mlx4_is_master(dev)) in mlx4_put_slave_node_guid()
805 if (!mlx4_is_master(dev)) in mlx4_get_slave_node_guid()
817 if (!mlx4_is_master(dev)) in mlx4_is_slave_active()
1458 if (!ret && mlx4_is_master(dev)) { in mlx4_bond()
1488 if (mlx4_is_master(dev)) in mlx4_unbond()
[all …]
Deq.c534 if (mlx4_is_master(dev)) { in mlx4_eq_int()
563 if (mlx4_is_master(dev)) { in mlx4_eq_int()
612 if (!mlx4_is_master(dev)) in mlx4_eq_int()
654 if (!mlx4_is_master(dev)) in mlx4_eq_int()
689 if (mlx4_is_master(dev)) { in mlx4_eq_int()
725 if (!mlx4_is_master(dev)) { in mlx4_eq_int()
738 if (!mlx4_is_master(dev)) { in mlx4_eq_int()
768 if (mlx4_is_master(dev)) in mlx4_eq_int()
Dcmd.c529 if (mlx4_is_master(dev)) { in mlx4_slave_cmd()
781 if (!mlx4_is_mfunc(dev) || (native && mlx4_is_master(dev))) { in __mlx4_cmd()
2351 if (mlx4_is_master(dev)) in mlx4_multi_func_init()
2365 if (mlx4_is_master(dev)) { in mlx4_multi_func_init()
2577 if (mlx4_is_master(dev)) { in mlx4_multi_func_cleanup()
2930 if (!mlx4_is_master(dev) || in mlx4_is_vf_vst_and_prio_qos()
2981 if (!mlx4_is_master(dev)) in mlx4_set_vf_mac()
3016 if ((!mlx4_is_master(dev)) || in mlx4_set_vf_vlan()
3087 if (!mlx4_is_master(dev) || in mlx4_set_vf_rate()
3174 if ((!mlx4_is_master(dev)) || in mlx4_set_vf_spoofchk()
[all …]
Den_port.c157 if (!priv->port_up || mlx4_is_master(mdev->dev)) in mlx4_en_fold_software_stats()
301 if (mlx4_is_master(mdev->dev)) { in mlx4_en_DUMP_ETH_STATS()
Dcatas.c73 if (mlx4_is_master(dev)) in mlx4_reset_master()
Dqp.c147 if (mlx4_is_master(dev) && cur_state != MLX4_QP_STATE_ERR && in __mlx4_qp_modify()
187 if (mlx4_is_master(dev) && is_master_qp0(dev, qp, &real_qp0, &proxy_qp0)) { in __mlx4_qp_modify()
Dport.c1582 if (pkey_tbl_sz >= 0 && mlx4_is_master(dev)) { in mlx4_SET_PORT()
1961 if (!mlx4_is_master(dev)) in mlx4_get_roce_gid_from_slave()
Den_netdev.c3136 if (mlx4_is_master(dev)) in mlx4_en_set_stats_bitmap()
3312 if (mlx4_is_master(priv->mdev->dev)) in mlx4_en_init_netdev()
Dresource_tracker.c1778 (mlx4_is_master(dev) || mlx4_is_guest_proxy(dev, slave, qpn)); in valid_reserved()
/linux-6.1.9/drivers/infiniband/hw/mlx4/
Dmad.c176 mlx4_is_master(dev->dev) ? (op_modifier & ~0x8) : op_modifier, in mlx4_MAD_IFC()
294 if (!mlx4_is_master(dev->dev)) in smp_snoop()
298 if (mlx4_is_master(dev->dev) && in smp_snoop()
1082 if (mlx4_is_master(dev->dev) && !dev->sriov.is_going_down) in handle_lid_change_event()
1090 if (mlx4_is_master(dev->dev)) { in handle_client_rereg_event()
1107 if (mlx4_is_master(dev->dev)) in handle_client_rereg_event()
1133 if (!mlx4_is_mfunc(dev->dev) || !mlx4_is_master(dev->dev)) in handle_slaves_guid_change()
1205 if (mlx4_is_master(dev->dev)) { in handle_port_mgmt_change_event()
1228 if (mlx4_is_master(dev->dev)) in handle_port_mgmt_change_event()
1239 if (mlx4_is_master(dev->dev) && !dev->sriov.is_going_down) in handle_port_mgmt_change_event()
[all …]
Dalias_GUID.c82 if (!mlx4_is_master(dev->dev)) in mlx4_ib_update_cache_on_guid_change()
200 if (!mlx4_is_master(dev->dev)) in mlx4_ib_notify_slaves_on_guid_change()
624 if (mlx4_is_master(dev->dev) && !dev->sriov.is_going_down) { in mlx4_ib_invalidate_all_guid_record()
778 if (!mlx4_is_master(dev->dev)) in mlx4_ib_init_alias_guid_work()
837 if (!mlx4_is_master(dev->dev)) in mlx4_ib_init_alias_guid_service()
Dsysfs.c762 if (!mlx4_is_master(device->dev)) in register_pkey_tree()
777 if (!mlx4_is_master(device->dev)) in unregister_pkey_tree()
804 if (!mlx4_is_master(dev->dev)) in mlx4_ib_device_register_sysfs()
846 if (!mlx4_is_master(device->dev)) in unregister_alias_guid_tree()
Dmain.c1573 if (mlx4_is_master(mdev->dev) && flow_type == MLX4_FS_REGULAR && in __mlx4_ib_create_flow()
1987 if (mlx4_is_master(dev->dev)) in init_node_data()
2404 if (mlx4_is_master(ibdev->dev)) { in init_pkeys()
2838 if (mlx4_is_master(ibdev->dev)) { in mlx4_ib_add()
3007 if (!mlx4_is_master(dev)) in do_slave_init()
3216 if (mlx4_is_master(dev)) in mlx4_ib_event()
3246 if (mlx4_is_master(dev)) in mlx4_ib_event()
3255 if (mlx4_is_master(dev)) { in mlx4_ib_event()
3269 if (mlx4_is_master(dev)) { in mlx4_ib_event()
Dqp.c107 if (!mlx4_is_master(dev->dev)) in is_tunnel_qp()
121 real_sqp = ((mlx4_is_master(dev->dev) || !mlx4_is_mfunc(dev->dev)) && in is_sqp()
149 real_qp0 = ((mlx4_is_master(dev->dev) || !mlx4_is_mfunc(dev->dev)) && in is_qp0()
968 (!mlx4_is_master(dev->dev) || in create_qp_common()
973 if (mlx4_is_master(dev->dev) || in create_qp_common()
989 !mlx4_is_master(dev->dev)) in create_qp_common()
1464 (mlx4_is_master(dev->dev) && in get_sqp_num()
2882 if (mlx4_is_master(mdev->dev)) { in build_sriov_qp0_header()
/linux-6.1.9/include/linux/mlx4/
Ddevice.h1034 static inline int mlx4_is_master(struct mlx4_dev *dev) in mlx4_is_master() function
1042 16 * MLX4_MFUNC_MAX * !!mlx4_is_master(dev); in mlx4_num_reserved_sqps()
1048 16 * MLX4_MFUNC_MAX * !!mlx4_is_master(dev) && in mlx4_is_qp_reserved()