Home
last modified time | relevance | path

Searched refs:mfunc (Results 1 – 10 of 10) sorted by relevance

/linux-4.1.27/drivers/pcmcia/
Dti113x.h369 u32 mfunc, mfunc_old, devctl; in ti12xx_irqroute_func0() local
373 mfunc = mfunc_old = config_readl(socket, TI122X_MFUNC); in ti12xx_irqroute_func0()
376 "TI: mfunc 0x%08x, devctl 0x%02x\n", mfunc, devctl); in ti12xx_irqroute_func0()
407 mfunc = (mfunc & ~TI122X_MFUNC3_MASK) | TI122X_MFUNC3_IRQSER; in ti12xx_irqroute_func0()
410 if (mfunc != mfunc_old) { in ti12xx_irqroute_func0()
411 config_writel(socket, TI122X_MFUNC, mfunc); in ti12xx_irqroute_func0()
417 mfunc_old = mfunc; in ti12xx_irqroute_func0()
422 mfunc = mfunc_old; in ti12xx_irqroute_func0()
423 config_writel(socket, TI122X_MFUNC, mfunc); in ti12xx_irqroute_func0()
454 mfunc = (mfunc & ~TI122X_MFUNC0_MASK) | TI122X_MFUNC0_INTA; in ti12xx_irqroute_func0()
[all …]
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Dcmd.c256 u32 status = readl(&priv->mfunc.comm->slave_read); in comm_pending()
281 &priv->mfunc.comm->slave_write); in mlx4_comm_cmd_post()
521 struct mlx4_vhcr_cmd *vhcr = priv->mfunc.vhcr; in mlx4_slave_cmd()
941 slave_cap_mask = priv->mfunc.master.slave_state[slave].ib_cap_mask[port]; in mlx4_MAD_IFC_wrapper()
1650 struct mlx4_vhcr_cmd *vhcr_cmd = in_vhcr ? in_vhcr : priv->mfunc.vhcr; in mlx4_master_process_vhcr()
1667 ret = mlx4_ACCESS_MEM(dev, priv->mfunc.vhcr_dma, slave, in mlx4_master_process_vhcr()
1668 priv->mfunc.master.slave_state[slave].vhcr_dma, in mlx4_master_process_vhcr()
1796 ret = mlx4_ACCESS_MEM(dev, priv->mfunc.vhcr_dma, slave, in mlx4_master_process_vhcr()
1797 priv->mfunc.master.slave_state[slave].vhcr_dma, in mlx4_master_process_vhcr()
1805 mlx4_GEN_EQE(dev, slave, &priv->mfunc.master.cmd_eqe)) in mlx4_master_process_vhcr()
[all …]
Deq.c141 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()
174 struct mlx4_slave_event_eq *slave_eq = &priv->mfunc.master.slave_eq; in slave_event()
195 queue_work(priv->mfunc.master.comm_wq, in slave_event()
196 &priv->mfunc.master.slave_event_work); in slave_event()
207 !priv->mfunc.master.slave_state[slave].active) in mlx4_slave_event()
218 struct mlx4_slave_state *s_slave = &priv->mfunc.master.slave_state[slave]; in mlx4_gen_pkey_eqe()
273 struct mlx4_slave_state *s_state = priv->mfunc.master.slave_state; in mlx4_get_slave_port_state()
290 struct mlx4_slave_state *s_state = priv->mfunc.master.slave_state; in mlx4_set_slave_port_state()
[all …]
Dresource_tracker.c302 &priv->mfunc.master.res_tracker.res_alloc[res_type]; in mlx4_grant_resource()
373 &priv->mfunc.master.res_tracker.res_alloc[res_type]; in mlx4_release_resource()
452 priv->mfunc.master.res_tracker.res_alloc[RES_QP].quota[pf]; in mlx4_init_quotas()
454 priv->mfunc.master.res_tracker.res_alloc[RES_CQ].quota[pf]; in mlx4_init_quotas()
456 priv->mfunc.master.res_tracker.res_alloc[RES_SRQ].quota[pf]; in mlx4_init_quotas()
458 priv->mfunc.master.res_tracker.res_alloc[RES_MTT].quota[pf]; in mlx4_init_quotas()
460 priv->mfunc.master.res_tracker.res_alloc[RES_MPT].quota[pf]; in mlx4_init_quotas()
468 priv->mfunc.master.res_tracker.slave_list = in mlx4_init_resource_tracker()
471 if (!priv->mfunc.master.res_tracker.slave_list) in mlx4_init_resource_tracker()
476 INIT_LIST_HEAD(&priv->mfunc.master.res_tracker. in mlx4_init_resource_tracker()
[all …]
Dcatas.c106 comm_flags = swab32(readl((__iomem char *)priv->mfunc.comm + in mlx4_reset_slave()
131 (__iomem char *)priv->mfunc.comm + MLX4_COMM_CHAN_FLAGS); in mlx4_reset_slave()
139 comm_flags = swab32(readl((__iomem char *)priv->mfunc.comm + in mlx4_reset_slave()
234 slave_read = swab32(readl(&priv->mfunc.comm->slave_read)); in poll_catas()
Dfw.c376 size = priv->mfunc.master.res_tracker.res_alloc[RES_QP].quota[slave]; in mlx4_QUERY_FUNC_CAP_wrapper()
381 size = priv->mfunc.master.res_tracker.res_alloc[RES_SRQ].quota[slave]; in mlx4_QUERY_FUNC_CAP_wrapper()
386 size = priv->mfunc.master.res_tracker.res_alloc[RES_CQ].quota[slave]; in mlx4_QUERY_FUNC_CAP_wrapper()
410 size = priv->mfunc.master.res_tracker.res_alloc[RES_MPT].quota[slave]; in mlx4_QUERY_FUNC_CAP_wrapper()
415 size = priv->mfunc.master.res_tracker.res_alloc[RES_MTT].quota[slave]; in mlx4_QUERY_FUNC_CAP_wrapper()
1272 def_mac = priv->mfunc.master.vf_oper[slave].vport[vhcr->in_modifier].state.mac; in mlx4_QUERY_PORT_wrapper()
1284 admin_link_state = priv->mfunc.master.vf_oper[slave].vport[vhcr->in_modifier].state.link_state; in mlx4_QUERY_PORT_wrapper()
2038 if (priv->mfunc.master.qp0_state[port].proxy_qp0_active && in check_qp0_state()
2039 priv->mfunc.master.qp0_state[port].qp0_active) in check_qp0_state()
2057 if (priv->mfunc.master.slave_state[slave].init_port_mask & (1 << port)) in mlx4_INIT_PORT_wrapper()
[all …]
Dqp.c152 priv->mfunc.master.qp0_state[port].proxy_qp0_active = 0; in __mlx4_qp_modify()
154 priv->mfunc.master.qp0_state[port].qp0_active = 0; in __mlx4_qp_modify()
187 priv->mfunc.master.qp0_state[port].proxy_qp0_active = 0; in __mlx4_qp_modify()
189 priv->mfunc.master.qp0_state[port].qp0_active = 0; in __mlx4_qp_modify()
192 priv->mfunc.master.qp0_state[port].proxy_qp0_active = 1; in __mlx4_qp_modify()
194 priv->mfunc.master.qp0_state[port].qp0_active = 1; in __mlx4_qp_modify()
Dport.c694 struct mlx4_mfunc_master_ctx *master = &priv->mfunc.master; in mlx4_common_set_port()
878 priv->mfunc.master.slave_state[slave].ib_cap_mask[port]; in mlx4_common_set_port()
879 priv->mfunc.master.slave_state[slave].ib_cap_mask[port] = new_cap_mask; in mlx4_common_set_port()
882 priv->mfunc.master.slave_state[i].ib_cap_mask[port]; in mlx4_common_set_port()
900 priv->mfunc.master.slave_state[slave].ib_cap_mask[port] = in mlx4_common_set_port()
Dmain.c655 s_state = &priv->mfunc.master.slave_state[i]; in mlx4_how_many_lives_vf()
725 s_slave = &priv->mfunc.master.slave_state[slave]; in mlx4_is_slave_active()
1716 comm_flags = swab32(readl((__iomem char *)priv->mfunc.comm + in mlx4_comm_check_offline()
1741 comm_caps = swab32(readl((__iomem char *)priv->mfunc.comm + in mlx4_reset_vf_support()
1752 u64 dma = (u64) priv->mfunc.vhcr_dma; in mlx4_init_slave()
1786 slave_read = swab32(readl(&priv->mfunc.comm->slave_read)); in mlx4_init_slave()
2267 priv->mfunc.master.vf_admin[entry].vport[port].guid = guid; in mlx4_set_admin_guid()
2275 return priv->mfunc.master.vf_admin[entry].vport[port].guid; in mlx4_get_admin_guid()
2291 priv->mfunc.master.vf_admin[entry].vport[port].guid = guid; in mlx4_set_random_admin_guid()
2420 priv->mfunc.master.slave_state[i].ib_cap_mask[port] = in mlx4_setup_hca()
Dmlx4.h855 struct mlx4_mfunc mfunc; member
1354 return &mlx4_priv(dev)->mfunc.master.res_tracker.lock; in mlx4_tlock()