Searched refs:mfunc (Results 1 – 9 of 9) sorted by relevance
/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_cmd.c | 257 u32 status = readl(&priv->mfunc.comm->slave_read); in comm_pending() 282 &priv->mfunc.comm->slave_write); in mlx4_comm_cmd_post() 522 struct mlx4_vhcr_cmd *vhcr = priv->mfunc.vhcr; in mlx4_slave_cmd() 967 slave_cap_mask = priv->mfunc.master.slave_state[slave].ib_cap_mask[port]; in mlx4_MAD_IFC_wrapper() 1680 struct mlx4_vhcr_cmd *vhcr_cmd = in_vhcr ? in_vhcr : priv->mfunc.vhcr; in mlx4_master_process_vhcr() 1697 ret = mlx4_ACCESS_MEM(dev, priv->mfunc.vhcr_dma, slave, in mlx4_master_process_vhcr() 1698 priv->mfunc.master.slave_state[slave].vhcr_dma, in mlx4_master_process_vhcr() 1826 ret = mlx4_ACCESS_MEM(dev, priv->mfunc.vhcr_dma, slave, in mlx4_master_process_vhcr() 1827 priv->mfunc.master.slave_state[slave].vhcr_dma, in mlx4_master_process_vhcr() 1835 mlx4_GEN_EQE(dev, slave, &priv->mfunc.master.cmd_eqe)) in mlx4_master_process_vhcr() [all …]
|
H A D | mlx4_eq.c | 141 struct mlx4_mfunc *mfunc = in mlx4_gen_slave_eqe() local 143 struct mlx4_priv *priv = container_of(mfunc, struct mlx4_priv, mfunc); in mlx4_gen_slave_eqe() 145 struct mlx4_slave_event_eq *slave_eq = &mfunc->master.slave_eq; in mlx4_gen_slave_eqe() 197 struct mlx4_slave_event_eq *slave_eq = &priv->mfunc.master.slave_eq; in slave_event() 218 queue_work(priv->mfunc.master.comm_wq, in slave_event() 219 &priv->mfunc.master.slave_event_work); in slave_event() 230 !priv->mfunc.master.slave_state[slave].active) in mlx4_slave_event() 253 struct mlx4_slave_state *s_slave = &priv->mfunc.master.slave_state[slave]; in mlx4_gen_pkey_eqe() 309 struct mlx4_slave_state *s_state = priv->mfunc.master.slave_state; in mlx4_get_slave_port_state() 326 struct mlx4_slave_state *s_state = priv->mfunc.master.slave_state; in mlx4_set_slave_port_state() [all …]
|
H A D | mlx4_resource_tracker.c | 311 &priv->mfunc.master.res_tracker.res_alloc[res_type]; in mlx4_grant_resource() 382 &priv->mfunc.master.res_tracker.res_alloc[res_type]; in mlx4_release_resource() 461 priv->mfunc.master.res_tracker.res_alloc[RES_QP].quota[pf]; in mlx4_init_quotas() 463 priv->mfunc.master.res_tracker.res_alloc[RES_CQ].quota[pf]; in mlx4_init_quotas() 465 priv->mfunc.master.res_tracker.res_alloc[RES_SRQ].quota[pf]; in mlx4_init_quotas() 467 priv->mfunc.master.res_tracker.res_alloc[RES_MTT].quota[pf]; in mlx4_init_quotas() 469 priv->mfunc.master.res_tracker.res_alloc[RES_MPT].quota[pf]; in mlx4_init_quotas() 487 priv->mfunc.master.res_tracker.slave_list = in mlx4_init_resource_tracker() 490 if (!priv->mfunc.master.res_tracker.slave_list) in mlx4_init_resource_tracker() 495 INIT_LIST_HEAD(&priv->mfunc.master.res_tracker. in mlx4_init_resource_tracker() [all …]
|
H A D | mlx4_catas.c | 108 comm_flags = swab32(readl((__iomem char *)priv->mfunc.comm + in mlx4_reset_slave() 133 (__iomem char *)priv->mfunc.comm + MLX4_COMM_CHAN_FLAGS); in mlx4_reset_slave() 141 comm_flags = swab32(readl((__iomem char *)priv->mfunc.comm + in mlx4_reset_slave() 236 slave_read = swab32(readl(&priv->mfunc.comm->slave_read)); in poll_catas()
|
H A D | mlx4_fw.c | 264 vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port]; in mlx4_activate_vst_qinq() 265 vp_admin = &priv->mfunc.master.vf_admin[slave].vport[port]; in mlx4_activate_vst_qinq() 296 vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port]; in mlx4_handle_vst_qinq() 297 vp_admin = &priv->mfunc.master.vf_admin[slave].vport[port]; in mlx4_handle_vst_qinq() 298 slave_state = &priv->mfunc.master.slave_state[slave]; in mlx4_handle_vst_qinq() 437 vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port]; in mlx4_QUERY_FUNC_CAP_wrapper() 453 &priv->mfunc.master.slave_state[slave]; in mlx4_QUERY_FUNC_CAP_wrapper() 474 size = priv->mfunc.master.res_tracker.res_alloc[RES_QP].quota[slave]; in mlx4_QUERY_FUNC_CAP_wrapper() 479 size = priv->mfunc.master.res_tracker.res_alloc[RES_SRQ].quota[slave]; in mlx4_QUERY_FUNC_CAP_wrapper() 484 size = priv->mfunc.master.res_tracker.res_alloc[RES_CQ].quota[slave]; in mlx4_QUERY_FUNC_CAP_wrapper() [all …]
|
H A D | mlx4_qp.c | 153 priv->mfunc.master.qp0_state[port].proxy_qp0_active = 0; in __mlx4_qp_modify() 155 priv->mfunc.master.qp0_state[port].qp0_active = 0; in __mlx4_qp_modify() 194 priv->mfunc.master.qp0_state[port].proxy_qp0_active = 0; in __mlx4_qp_modify() 196 priv->mfunc.master.qp0_state[port].qp0_active = 0; in __mlx4_qp_modify() 199 priv->mfunc.master.qp0_state[port].proxy_qp0_active = 1; in __mlx4_qp_modify() 201 priv->mfunc.master.qp0_state[port].qp0_active = 1; in __mlx4_qp_modify()
|
H A D | mlx4_main.c | 715 s_state = &priv->mfunc.master.slave_state[i]; in mlx4_how_many_lives_vf() 785 s_slave = &priv->mfunc.master.slave_state[slave]; in mlx4_is_slave_active() 1932 comm_flags = swab32(readl((__iomem char *)priv->mfunc.comm + in mlx4_comm_check_offline() 1957 comm_caps = swab32(readl((__iomem char *)priv->mfunc.comm + in mlx4_reset_vf_support() 1968 u64 dma = (u64) priv->mfunc.vhcr_dma; in mlx4_init_slave() 2002 slave_read = swab32(readl(&priv->mfunc.comm->slave_read)); in mlx4_init_slave() 2585 priv->mfunc.master.vf_admin[entry].vport[port].guid = guid; in mlx4_set_admin_guid() 2593 return priv->mfunc.master.vf_admin[entry].vport[port].guid; in mlx4_get_admin_guid() 2609 priv->mfunc.master.vf_admin[entry].vport[port].guid = guid; in mlx4_set_random_admin_guid() 2746 priv->mfunc.master.slave_state[i].ib_cap_mask[port] = in mlx4_setup_hca()
|
H A D | mlx4_port.c | 1252 struct mlx4_mfunc_master_ctx *master = &priv->mfunc.master; in mlx4_common_set_port() 1449 priv->mfunc.master.slave_state[slave].ib_cap_mask[port]; in mlx4_common_set_port() 1450 priv->mfunc.master.slave_state[slave].ib_cap_mask[port] = new_cap_mask; in mlx4_common_set_port() 1453 priv->mfunc.master.slave_state[i].ib_cap_mask[port]; in mlx4_common_set_port() 1471 priv->mfunc.master.slave_state[slave].ib_cap_mask[port] = in mlx4_common_set_port()
|
H A D | mlx4.h | 873 struct mlx4_mfunc mfunc; member 1377 return &mlx4_priv(dev)->mfunc.master.res_tracker.lock; in mlx4_tlock()
|